/*! @ SeoRomin JS Library v1.0.8 @ Pure JS in action @ Copyright (c) by SeoRomin @ Licensed MIT */ const $=function(){const e="_sr_elements";function t(n,i){if(!(this instanceof t))return new t(n,i);if("function"==typeof n)"interactive"===document.readyState||"complete"===document.readyState?n():document.addEventListener("DOMContentLoaded",n,{once:!0}),this[e]=[];else{let r=[];if("string"==typeof n){const s=n.trim();$._internal.isHtmlString(s)?r=$._internal.createNodesFromHTML(s):i?i instanceof t?i[e].forEach(e=>{r.push(...$._internal.scopedQuerySelectorAll(e,s))}):r=i.nodeType?$._internal.scopedQuerySelectorAll(i,s):$._internal.scopedQuerySelectorAll(document,s):r=$._internal.scopedQuerySelectorAll(document,s)}else n instanceof t?r=n[e]:n===window||n&&n.nodeType?r=[n]:n&&"object"==typeof n&&"function"==typeof n[Symbol.iterator]&&(r=n);let s=Array.from(r||[]);if(i&&"string"!=typeof n&&s.length){const n=i instanceof t?i[e]:i.nodeType?[i]:[];if(n.length)if(1===n.length){const e=n[0];s=s.filter(t=>t.nodeType&&e!==t&&e.contains(t))}else s=s.filter(e=>e.nodeType&&n.some(t=>t!==e&&t.contains(e)))}this[e]=[...new Set(s)]}return new Proxy(this,{get(t,n,i){if(Reflect.has(t,n))return Reflect.get(t,n,i);if("string"==typeof n&&/^\d+$/.test(n))return t[e][parseInt(n,10)];const r=t[e][0];if(r){const e=r[n];return"function"==typeof e?e.bind(r):e}},set(t,n,i,r){if(Reflect.has(t,n))return Reflect.set(t,n,i,r);if("string"==typeof n&&/^\d+$/.test(n))return t[e][parseInt(n,10)]=i,!0;const s=t[e][0];return s?Reflect.set(s,n,i):Reflect.set(t,n,i,r)}})}return t.fn=t.prototype={constructor:t,get length(){return this[e].length},[Symbol.iterator]:function*(){for(const t of this[e])yield t}},t._internal={},t.extend=function(e,n){"string"==typeof e&&"function"==typeof n?t.fn.hasOwnProperty(e)?console.warn(`SR: Plugin "${e}" already exists. It will not be replaced.`):Object.defineProperty(t.fn,e,{value:n,enumerable:!0,writable:!1,configurable:!1}):console.error("SR: To add a plugin, you must provide a name (string) and a function.")},t.plugin=function(e,n){"string"==typeof e&&e.trim()?"function"==typeof n?t.fn.hasOwnProperty(e)?console.warn(`SR Plugin: A method named "${e}" already exists on the prototype. It will not be replaced.`):Object.defineProperty(t.fn,e,{value:n,enumerable:!0,writable:!1,configurable:!1}):console.error(`SR Plugin: The plugin "${e}" must be a function.`):console.error("SR Plugin: Plugin name must be a non-empty string.")},t.method=function(e,n){if("string"!=typeof e||!e.trim())return void console.error("SR Method: Static method name must be a non-empty string.");if("function"!=typeof n)return void console.error(`SR Method: The method "${e}" must be a function.`);const i=Object.getOwnPropertyDescriptor(t,e);if(i){if(!i.configurable)return void console.error(`SR Method: Cannot overwrite non-configurable static method "${e}".`);console.warn(`SR Method: A static method named "${e}" already exists. It will be overwritten.`)}Object.defineProperty(t,e,{value:n,enumerable:!0,writable:!0,configurable:!0})},t}();!function(){$._internal.camelCase=e=>e.replace(/-(\w)/g,(e,t)=>t.toUpperCase()),$._internal.camelToKebab=e=>e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),$._internal.splitByWhitespace=e=>"string"==typeof e&&e.match(/\S+/g)||[],$._internal.isHtmlString=e=>{if("string"!=typeof e)return!1;const t=e.trim();return t.startsWith("<")&&t.endsWith(">")&&t.length>=3},$._internal.dataCache=new WeakMap,$._internal.createNodesFromHTML=function(e){let t;if(/^<(?svg|g|path|circle|rect|line|text)/i.test(e)){const n=(new DOMParser).parseFromString(`${e}`,"image/svg+xml"),i=n.querySelector("parsererror");i?(console.error("SR: Error parsing SVG string.",i.textContent),t=[]):t=Array.from(n.documentElement.childNodes).filter(e=>1===e.nodeType)}else{const n=document.createElement("template");n.innerHTML=e,t=n.content.childNodes}return t},$._internal.setupEvents=function(e,t,n){const[i,r,s,o]=t,a="object"==typeof i&&null!==i;let l,c,u;if(a)"object"==typeof r&&null!==r?(l=null,u=r):(l="string"==typeof r&&r.trim()||null,u=s);else{if("string"!=typeof i)return e;{let t=r,n=s,i=o;if("function"==typeof t&&(i=n,n=t,t=null),"function"!=typeof n)return e;c=n,u=i,l="string"==typeof t&&t.trim()||null}}const f="object"==typeof u&&null!==u?{...u}:{};return n&&(f.once=!0),e.each(function(){const e=this;if(a)for(const t in i)Object.hasOwn(i,t)&&"function"==typeof i[t]&&$._internal.addEvent(e,t,l,i[t],f);else $._internal.addEvent(e,i,l,c,f)}),e},$._internal.addEvent=function(e,t,n,i,r={}){const s=$._internal.splitByWhitespace(t);if(!s.length)return;const{once:o=!1,passive:a=!1}=r;e.__sr_events||(e.__sr_events=[]),e.__sr_dispatchers||(e.__sr_dispatchers={}),s.forEach(t=>{const r=t.split("."),s=r[0],l=r.slice(1).sort().join(".");if(!s)return;e.__sr_events.push({type:s,namespace:l,handler:i,selector:n,once:o,passive:a,originalType:t});const c=`${s}_${a?"passive":"active"}`;e.__sr_dispatchers[c]||(e.addEventListener(s,$._internal.eventDispatcher,{passive:a}),e.__sr_dispatchers[c]=!0)})},$._internal.eventMatchesCriteria=(e,t,n,i,r)=>{if(t&&e.type!==t)return!1;if(n.length>0){const t=e.namespace?e.namespace.split("."):[];if(!n.every(e=>t.includes(e)))return!1}return!(void 0!==i&&e.selector!==i||r&&e.handler!==r)},$._internal.removeEvent=function(e,t,n,i){const r=e.__sr_events;if(!r||!r.length)return;const s=new Set(r.map(e=>e.type)),o=t?t.split("."):[""],a=o[0],l=o.slice(1).filter(Boolean),c=r.filter(e=>!$._internal.eventMatchesCriteria(e,a,l,n,i));e.__sr_events=c,((e,t,n)=>{e.__sr_dispatchers&&t.forEach(t=>{if(!e.__sr_dispatchers)return;const i=n.filter(e=>e.type===t),r=i.some(e=>!e.passive),s=i.some(e=>e.passive),o=`${t}_active`;!r&&e.__sr_dispatchers[o]&&(e.removeEventListener(t,$._internal.eventDispatcher,{passive:!1}),delete e.__sr_dispatchers[o]);const a=`${t}_passive`;!s&&e.__sr_dispatchers[a]&&(e.removeEventListener(t,$._internal.eventDispatcher,{passive:!0}),delete e.__sr_dispatchers[a])})})(e,s,c)},$._internal.findDelegatedTarget=(e,t,n)=>{const i=new Set($._internal.scopedQuerySelectorAll(t,n));if(0===i.size)return null;let r=e.target;for(;r&&r!==t.parentElement;){if(i.has(r))return r;if(r===t)break;r=r.parentElement}return null},$._internal.shouldHandlerRunForEvent=(e,t)=>{if(e.type!==t.type)return!1;const n=t.isTrigger?t.detail?._sr_namespaces||[]:null;if(n){const t=e.namespace?e.namespace.split("."):[];return 0===t.length||t.every(e=>n.includes(e))}return!0};const e=(e,t,n,i)=>{t.handler.call(i,n),t.once&&$._internal.removeEvent(e,t.originalType,t.selector,t.handler)};$._internal.eventDispatcher=function(t){const n=this,i=n.__sr_events||[];if(!i.length)return;const r=i.filter(e=>$._internal.shouldHandlerRunForEvent(e,t));r.length&&[...r].forEach(i=>{const{selector:r}=i;if(r){let s=null;if(/^\s*(:scope|[>+~])/.test(r))s=$._internal.findDelegatedTarget(t,n,r);else try{const e=t.target.closest(r);e&&n.contains(e)&&(s=e)}catch(e){}s&&e(n,i,t,s)}else e(n,i,t,n)})},$._internal.cleanupNodeTree=function(e,t=!0){if(!e||1!==e.nodeType)return;const n=t?[e,...e.querySelectorAll("*")]:[...e.querySelectorAll("*")];for(const e of n)e.__sr_dispatchers&&(Object.keys(e.__sr_dispatchers).forEach(t=>{const[n,i]=t.split("_"),r="passive"===i;e.removeEventListener(n,$._internal.eventDispatcher,{passive:r})}),delete e.__sr_dispatchers),e.__sr_events&&delete e.__sr_events,$._internal.dataCache.delete(e)},$._internal.cloneNode=function(e,t,n){const i=e.cloneNode(!0),r=(e,t)=>{e.__sr_events&&e.__sr_events.forEach(e=>{const{originalType:n,selector:i,handler:r,once:s,passive:o}=e;$._internal.addEvent(t,n,i,r,{once:s,passive:o})});const n=$._internal.dataCache.get(e);if(n&&$._internal.dataCache.set(t,structuredClone(n)),e instanceof SVGElement)for(const n of e.attributes)t.setAttributeNS(n.namespaceURI,n.name,n.value)};if(t&&r(e,i),n){const t=e.querySelectorAll("*"),n=i.querySelectorAll("*");for(let e=0;e{const t=e.tagName;if($._internal.defaultDisplayMap[t])return $._internal.defaultDisplayMap[t];const n=document.createElement(t),i=document.body||document.documentElement;i.appendChild(n);const r=window.getComputedStyle(n).display;return i.removeChild(n),$._internal.defaultDisplayMap[t]=r&&"none"!==r?r:"block",$._internal.defaultDisplayMap[t]},$._internal.resolveDisplayValue=e=>{const t=$._internal.dataCache.get(e),n=t&&Object.hasOwn(t,"_srOldDisplay")?t._srOldDisplay:void 0;if("string"==typeof n)return n;"none"===e.style.display&&(e.style.display="");const i=window.getComputedStyle(e).display;return i&&"none"!==i?i:$._internal.getDefaultDisplay(e)},$._internal.removeAttribute=function(e,t){if(e instanceof SVGElement){const n=e.getAttributeNode(t);if(n&&n.namespaceURI)return void e.removeAttributeNS(n.namespaceURI,n.localName)}e.removeAttribute(t)},$._internal.unitlessCssProps=new Set(["animationIterationCount","columnCount","fillOpacity","flex","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridRow","lineHeight","opacity","order","orphans","scale","widows","zIndex","zoom","strokeOpacity"]);const t=/^\s*[>+~]/;$._internal.scopedQuerySelectorAll=function(e,n){const i=e&&9===e.nodeType,r=t.test(n),s=i&&r?e.documentElement:e;if(!s||"function"!=typeof s.querySelectorAll)return[];const o=9!==s.nodeType,a=n.split(",").map(e=>{const n=e.trim();return o&&t.test(n)?`:scope ${n}`:n}).join(",");try{return Array.from(s.querySelectorAll(a))}catch(e){return[]}},$._internal.matches=(e,t)=>{if(!e||1!==e.nodeType||!t||"string"!=typeof t)return!1;try{return e.matches(t)}catch(e){return!1}},$._internal.uniqueSort=e=>Array.from(e).sort((e,t)=>e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1),$._internal.domManip=(e,t,n)=>{if(null==t||!e.length)return e;const i=$(t)._sr_elements.slice();return i.length?(e.each((t,r)=>{const s=t===e.length-1,o=[];for(const e of i){const t=s?e:$._internal.cloneNode(e,!0,!0);o.push(t)}n.call(r,r,o)}),e):e},$._internal.animationQueues=new WeakMap,$._internal.enqueueAnimation=(e,t)=>{$._internal.animationQueues.has(e)||$._internal.animationQueues.set(e,[]);const n=$._internal.animationQueues.get(e);n.push(t),1===n.length&&t()},$._internal.dequeueAnimation=e=>{const t=$._internal.animationQueues.get(e);t&&(t.shift(),t.length&&t[0]())}}(),$.extend("add",function(e){const t=$(e),n=new Set(this._sr_elements);t._sr_elements.forEach(e=>n.add(e));const i=$._internal.uniqueSort(n);return $(i)}),$.extend("addClass",function(e){const t=$._internal.splitByWhitespace(e);return t.length?(this.each(function(){this.classList.add(...t)}),this):this}),$.extend("after",function(e){return $._internal.domManip(this,e,function(e,t){e.after(...t)})}),function(){class e extends Error{constructor(e,t){super(`SR: HTTP Error ${e.status}: ${e.statusText}`),this.name="HttpError",this.status=e.status,this.statusText=e.statusText,this.responseText=t,this.response=e}}class t extends Error{constructor(e,t,n){super(`SR: Parser Error: ${e}`),this.name="ParserError",this.responseText=t,this.cause=n}}class n extends Error{constructor(e){super(`SR: Request Timeout (${e}ms)`),this.name="TimeoutError",this.status=0,this.statusText="timeout"}}class i extends Error{constructor(){super("SR: Request Aborted"),this.name="AbortError",this.status=0,this.statusText="abort"}}const r=e=>{const t=[],n=(e,i)=>{if(e&&(i instanceof File||i instanceof Blob))throw new TypeError("SR: Cannot serialize File/Blob - use FormData with processData: false");if(Array.isArray(i))i.forEach((t,i)=>{n("object"==typeof t&&null!==t?`${e}[${i}]`:`${e}[]`,t)});else if(null!==i&&"object"==typeof i)for(const t in i)Object.hasOwn(i,t)&&n(e?`${e}[${t}]`:t,i[t]);else{const n="function"==typeof i?i():i;void 0!==n&&t.push(`${encodeURIComponent(e)}=${encodeURIComponent(null===n?"":n)}`)}};return n("",e),t.join("&").replace(/%20/g,"+")};$.ajax=function(s={}){const{url:o,method:a,headers:l={},data:c=null,dataType:u,contentType:f="application/x-www-form-urlencoded; charset=UTF-8",processData:h=!0,cache:p=!0,timeout:d=0,crossDomain:y,xhrFields:m={}}=s;if(!o)return Promise.reject(new Error("SR: AJAX URL is required"));const _=String(a||"GET").toUpperCase(),g=String(u||"text").toLowerCase();if(h&&(c instanceof Blob||c instanceof ArrayBuffer))throw new TypeError("SR: processData must be false for Blob or ArrayBuffer data.");const v="GET"===_||"HEAD"===_,b=new Headers(l);let w,x=o;if(v&&!p){const[e,t]=x.split("#"),n=e.split("?"),i=n[0],r=new URLSearchParams(n[1]||"");r.set("_",Date.now()),x=`${i}?${r.toString()}`,void 0!==t&&(x+=`#${t}`)}if((void 0!==y?!!y:(()=>{try{return new URL(x,window.location.href).origin!==window.location.origin}catch(e){return!0}})())||b.has("X-Requested-With")||b.set("X-Requested-With","XMLHttpRequest"),"string"!=typeof f||v||b.has("Content-Type")||(h||"string"!=typeof c)&&b.set("Content-Type",f),c instanceof FormData&&!1===f&&b.delete("Content-Type"),null!=c){if(h&&c instanceof URLSearchParams)throw new TypeError("SR: Use data.toString() for URLSearchParams");const e=c instanceof Blob||c instanceof ArrayBuffer||c instanceof FormData;if(v){if(h&&!e){const e="string"==typeof c?c:r(c);e&&(x+=(x.includes("?")?"&":"?")+e)}}else w=!h||e?c:(b.get("Content-Type")?.toLowerCase()||"").includes("application/json")?"string"==typeof c?c:JSON.stringify(c):"string"==typeof c?c:r(c)}if(!b.has("Accept"))switch(g){case"json":b.set("Accept","application/json, text/javascript, */*; q=0.01");break;case"html":b.set("Accept","text/html, */*; q=0.01");break;case"script":b.set("Accept","text/javascript, application/javascript, */*; q=0.01");break;case"text":b.set("Accept","text/plain, */*; q=0.01");break;default:b.set("Accept","*/*")}let S="same-origin";!0===m.withCredentials?S="include":!1===m.withCredentials&&(S="omit");const C=new AbortController,T=d>0?setTimeout(()=>C.abort(new n(d)),d):null;return fetch(x,{method:_,headers:b,body:v?void 0:w,signal:C.signal,credentials:S}).then(async n=>{const i=await n.text().catch(()=>"");if(!n.ok)throw new e(n,i);if("json"===g){if(!i.trim())return null;try{return JSON.parse(i)}catch(e){throw new t(e.message,i,e)}}return i}).catch(e=>{if("AbortError"===e.name){if(C.signal.reason)throw C.signal.reason;throw new i}throw e}).finally(()=>{T&&clearTimeout(T)})}}(),function(){const e={slow:600,fast:200,_default:400},t="swing",n={linear:"linear",swing:"ease-out",ease:"ease","ease-in":"ease-in","ease-out":"ease-out","ease-in-out":"ease-in-out"},i=["height","maxHeight","paddingTop","paddingBottom","marginTop","marginBottom","borderTopWidth","borderBottomWidth"],r=e=>{e.offsetHeight},s=e=>$._internal.dataCache.get(e)?._sr_anim,o=(e,t)=>{const n=$._internal.dataCache.get(e)||{};null===t?delete n._sr_anim:n._sr_anim=t,$._internal.dataCache.set(e,n)},a=(e,t,n)=>{t&&(clearTimeout(t.timer),e.removeEventListener("transitionend",t.onEnd),t.originalWillChange?e.style.willChange=t.originalWillChange:e.style.removeProperty("will-change"),t.originalTransition?e.style.transition=t.originalTransition:e.style.removeProperty("transition"),n&&"function"==typeof t.callback&&t.callback.call(e),o(e,null),$._internal.dequeueAnimation(e))},l=(e,t,n,i,r)=>{const l=Object.keys(t).map(e=>$._internal.camelToKebab(e));if(!l.length)return"function"==typeof r&&r.call(e),void $._internal.dequeueAnimation(e);const c=e.style.willChange,u=new Set(c&&"auto"!==c?c.split(", "):[]);l.forEach(e=>u.add(e)),e.style.willChange=[...u].join(", ");const f=t=>{if(t&&t.target!==e)return;const n=s(e);n&&a(e,n,!0)};o(e,{originalTransition:e.style.transition,originalWillChange:c,targetProps:t,onEnd:f,timer:setTimeout(f,n+50),callback:r}),e.style.transition=l.map(e=>`${e} ${n}ms ${i}`).join(", "),e.addEventListener("transitionend",f),Object.assign(e.style,t)},c=(i,r,s)=>{let o=i,a=r,l=s;return"function"==typeof o?(l=o,o=e._default):"string"==typeof o&&(e[o]?o=e[o]:(l=a,a=o,o=e._default)),"function"==typeof a&&(l=a,a=t),{duration:"number"==typeof o&&o>=0?o:e._default,easing:n[a]||n[t],callback:l}};$.extend("animate",function(e,t){const n=t||{},i=c(n.duration,n.easing,n.after);return this.each(function(){const t=this;$._internal.enqueueAnimation(t,()=>{if(!t.isConnected)return $._internal.dequeueAnimation(t);const n=window.getComputedStyle(t),s={};for(const t in e){if(!Object.hasOwn(e,t))continue;const i=$._internal.camelCase(t);let r=e[t];"number"!=typeof r||$._internal.unitlessCssProps.has(i)||(r+="px"),n[i]!==String(r)&&(s[i]=String(r))}r(t),l(t,s,i.duration,i.easing,i.callback)})})}),$.extend("delay",function(e){return this.each(function(){const t=this;$._internal.enqueueAnimation(t,()=>{const n=setTimeout(()=>{o(t,null),$._internal.dequeueAnimation(t)},parseFloat(e)||0);o(t,{timer:n,isDelay:!0})})})}),$.extend("stop",function(e=!1,t=e){return this.each(function(){const n=this,i=s(n);if(e){const e=$._internal.animationQueues.get(n);e&&(e.length=0)}if(!i)return void(e||$._internal.dequeueAnimation(n));if(i.isDelay)clearTimeout(i.timer);else{const e={};if(t)Object.assign(e,i.targetProps);else{const t=window.getComputedStyle(n);Object.keys(i.targetProps).forEach(n=>{e[n]=t[n]})}n.style.transition="none",Object.assign(n.style,e),r(n)}const o=t&&!i.isDelay;a(n,i,o)})});const u=(e,t,n,i,s)=>{const o=c(n,s.easing,i);return e.each(function(){const e=this;$._internal.enqueueAnimation(e,()=>{if(!e.isConnected)return $._internal.dequeueAnimation(e);const n=window.getComputedStyle(e);if(s.skipInline&&"inline"===n.display)return"function"==typeof o.callback&&o.callback.call(e),$._internal.dequeueAnimation(e);const i="none"===n.display,a="toggle"===t?i:"show"===t;if(a&&!i||!a&&i)return"function"==typeof o.callback&&o.callback.call(e),$._internal.dequeueAnimation(e);s.prepare(e,a),r(e);const c=s.measure(e,a,window.getComputedStyle(e));Object.assign(e.style,c.from),r(e),requestAnimationFrame(()=>{l(e,c.to,o.duration,o.easing,function(){s.cleanup(this,a),o.callback&&o.callback.call(this)})})})})},f={easing:"linear",skipInline:!1,prepare:(e,t)=>{t&&(e.style.opacity="0",e.style.display=$._internal.resolveDisplayValue(e))},measure:(e,t,n)=>({from:{opacity:n.opacity},to:{opacity:t?"1":"0"}}),cleanup:(e,t)=>{e.style.removeProperty("opacity"),t||(e.style.display="none")}},h={easing:"swing",skipInline:!0,prepare:(e,t)=>{t&&(e.style.display=$._internal.resolveDisplayValue(e)),e.style.overflow="hidden"},measure:(e,t,n)=>{const r={},s={};return t?i.forEach(e=>{const t=n[e];"maxHeight"===e&&"none"===t||(s[e]=t,r[e]="0px")}):i.forEach(e=>{const t=n[e];"maxHeight"===e&&"none"===t||(r[e]=t,s[e]="0px")}),{from:r,to:s}},cleanup:(e,t)=>{i.forEach(t=>e.style.removeProperty($._internal.camelToKebab(t))),e.style.removeProperty("overflow"),t||(e.style.display="none")}};$.extend("fadeIn",function(e,t){return u(this,"show",e,t,f)}),$.extend("fadeOut",function(e,t){return u(this,"hide",e,t,f)}),$.extend("fadeToggle",function(e,t){return u(this,"toggle",e,t,f)}),$.extend("slideDown",function(e,t){return u(this,"show",e,t,h)}),$.extend("slideUp",function(e,t){return u(this,"hide",e,t,h)}),$.extend("slideToggle",function(e,t){return u(this,"toggle",e,t,h)})}(),$.extend("append",function(e){return $._internal.domManip(this,e,function(e,t){e.append(...t)})}),$.extend("appendTo",function(e){const t=$(e),n=[];return t.length&&this.length?(t.each((e,i)=>{const r=e===t.length-1,s=[];this.each((e,t)=>{const n=r?t:$._internal.cloneNode(t,!0,!0);s.push(n)}),i.append(...s),n.push(...s)}),$(n)):$([])}),function(){function e(t,n,i){return Reflect.ownKeys(n).forEach(r=>{const s=n[r],o=t[r];if(s!==t)if(null!==s&&"object"==typeof s){if(i.has(s))return void(t[r]=i.get(s));let n;n=Array.isArray(s)?[]:null===o||"object"!=typeof o||Array.isArray(o)?{}:o,i.set(s,n),t[r]=e(n,s,i)}else void 0!==s&&(t[r]=s)}),t}$.assign=function(){const t=Array.from(arguments);let n,i=!1,r=1;if("boolean"==typeof t[0]?(i=t[0],n=t[1]||{},r=2):n=t[0]||{},i){"object"==typeof n&&null!==n||(n={});const i=new WeakMap;for(;r{const i=e[t];void 0!==i&&(n[t]=i)})}return n}}(),function(){const e=new Set(["async","autofocus","autoplay","checked","controls","defer","disabled","hidden","ismap","loop","multiple","muted","open","readonly","required","selected"]);$.extend("attr",function(t,n){if("string"==typeof t&&void 0===n){const n=this._sr_elements[0];if(!n)return;if(e.has(t))return n.hasAttribute(t)?t:void 0;const i=n.getAttribute(t);return null===i?void 0:i}if("object"==typeof t)this.each(function(){const e=this;for(const[n,i]of Object.entries(t))null==i?$._internal.removeAttribute(e,n):e.setAttribute(n,String(i))});else if("string"==typeof t){const i="function"==typeof n;this.each(function(r){const s=this;let o=n;if(i){let i;if(e.has(t))i=s.hasAttribute(t)?t:void 0;else{const e=s.getAttribute(t);i=null===e?void 0:e}o=n.call(s,r,i)}null==o?$._internal.removeAttribute(s,t):s.setAttribute(t,String(o))})}return this})}(),$.extend("before",function(e){return $._internal.domManip(this,e,function(e,t){e.before(...t)})}),$.extend("children",function(e){if(e&&"string"!=typeof e)return $();const t=new Set;return this.each(function(){if(this.children)for(const n of this.children)e&&!$._internal.matches(n,e)||t.add(n)}),$(t)}),$.extend("clone",function(e=!1,t=e){const n=this._sr_elements.map(n=>$._internal.cloneNode(n,e,t));return $(n)}),$.extend("closest",function(e){if(!e)return $();const t=new Set;if("string"==typeof e)this.each(function(){if("function"==typeof this.closest){const n=this.closest(e);n&&t.add(n)}});else{let n;if(e instanceof $)n=e._sr_elements;else if(1===e.nodeType)n=[e];else{if("function"!=typeof e[Symbol.iterator])return $();n=Array.from(e).filter(e=>e&&1===e.nodeType)}if(!n.length)return $();const i=new Set(n);this.each(function(){let e=this;for(;e;){if(i.has(e)){t.add(e);break}e=e.parentElement}})}if(0===t.size)return $();const n=$._internal.uniqueSort(t);return $(n)}),function(){const e=(e,t,n)=>{const i=((e,t)=>{if(null==t||"string"!=typeof t&&"number"!=typeof t)return t;const n=String(t).trim();if(e.startsWith("--"))return n;if(/^-?\d+(\.\d+)?$/.test(n)){const t=$._internal.camelCase(e);if(!$._internal.unitlessCssProps.has(t))return n+"px"}return n})(t,n);if(null==i){const n=t.startsWith("--")?t:$._internal.camelToKebab(t);e.style.removeProperty(n)}else t.startsWith("--")?e.style.setProperty(t,i):e.style[$._internal.camelCase(t)]=i};$.extend("css",function(t,n){if("string"==typeof t&&void 0===n){const e=this._sr_elements[0];if(!e)return;const n=t.startsWith("--")?t:$._internal.camelToKebab(t),i=window.getComputedStyle(e).getPropertyValue(n).trim();return""===i?void 0:i}return this.each(function(){if("object"==typeof t)for(const[n,i]of Object.entries(t))e(this,n,i);else"string"==typeof t&&e(this,t,n)}),this})}(),function(){const e=(e,t)=>{const n=$._internal.dataCache,i=$._internal.camelCase(t);let r=n.get(e);if(r&&Object.hasOwn(r,i))return r[i];const s=e.dataset?e.dataset[i]:void 0;if(void 0!==s){const t=(e=>{if("string"!=typeof e)return e;try{return JSON.parse(e)}catch(t){return e}})(s);return r||(r={},n.set(e,r)),r[i]=t,t}};$.extend("data",function(t,n){const i=$._internal.dataCache;if(void 0===t){const t=this._sr_elements[0];if(!t)return;const n={};if(t.dataset)for(const i of Object.keys(t.dataset))n[i]=e(t,i);const r=i.get(t);return r&&Object.assign(n,r),n}if("string"==typeof t&&void 0===n){const n=this._sr_elements[0];return n?e(n,t):void 0}return this.each(function(){let e=i.get(this);e||(e={},i.set(this,e));const r=(t,n)=>{const i=$._internal.camelCase(t);void 0===n?delete e[i]:e[i]=n};if("object"==typeof t&&null!==t)for(const[e,n]of Object.entries(t))r(e,n);else"string"==typeof t&&r(t,n)}),this})}(),$.extend("each",function(e){if("function"!=typeof e)return this;for(const[t,n]of this._sr_elements.entries())if(!1===e.call(n,t,n))break;return this}),$.extend("empty",function(){return this.each(function(){$._internal.cleanupNodeTree(this,!1),this.textContent=""})}),$.extend("eq",function(e){if("number"!=typeof e||Number.isNaN(e))return $();const t=e<0?this.length+e:e;return t<0||t>=this.length?$():$(this._sr_elements[t])}),$.extend("filter",function(e){if(null==e)return $();const t=this._sr_elements;let n=[];if("function"==typeof e)n=t.filter((t,n)=>e.call(t,n,t));else if("string"==typeof e){if(!e.trim())return $();n=t.filter(t=>$._internal.matches(t,e))}else if(e instanceof $){const i=new Set(e._sr_elements);n=t.filter(e=>i.has(e))}else if(1===e.nodeType)n=t.filter(t=>t===e);else if("function"==typeof e[Symbol.iterator]){const i=new Set;for(const t of e)t&&1===t.nodeType&&i.add(t);n=t.filter(e=>i.has(e))}return $(n)}),$.extend("find",function(e){if("string"!=typeof e||!e)return $();const t=new Set;return this.each(function(){$._internal.scopedQuerySelectorAll(this,e).forEach(e=>t.add(e))}),$(t)}),$.extend("first",function(){const{_sr_elements:e}=this;return e.length?$(e[0]):$()}),$.extend("formData",function(e=!1){const t=this._sr_elements.find(e=>e.tagName&&"FORM"===e.tagName.toUpperCase());if(!e)return t?new FormData(t):new FormData;if(!t)return{};const n={},i=(e,t,i)=>{Object.hasOwn(n,e)?(Array.isArray(n[e])||(n[e]=[n[e]]),n[e].push(t)):n[e]=i?[t]:t};for(const e of t.elements){if(!e.name||e.disabled)continue;const t=e.type?e.type.toLowerCase():"",n="SELECT"===e.tagName&&e.multiple,r="checkbox"===t;if(!["file","submit","reset","button"].includes(t)&&(!r&&"radio"!==t||e.checked))if(n)for(const t of e.options)t.selected&&i(e.name,t.value,!0);else{let t=e.value;!r||""!==e.getAttribute("value")&&"on"!==t||(t=!0),i(e.name,t,r)}}return n}),$.extend("hasClass",function(e){if("string"!=typeof e)return!1;const t=e.trim();return!(!t||/\s/.test(t))&&this._sr_elements.some(e=>e.classList.contains(t))}),$.extend("hide",function(){return this.each(function(){const e=this,t=window.getComputedStyle(e);if("none"===t.display)return;const n=e instanceof SVGElement;let i;i=n?e.getAttribute("display"):e.isConnected?t.display:void 0;const r=$._internal.dataCache.get(e)||{};r._srOldDisplay=i,$._internal.dataCache.set(e,r),n?e.setAttribute("display","none"):e.style.display="none"})}),$.extend("html",function(e){if(void 0===e){const e=this._sr_elements[0];return e&&1===e.nodeType?e.innerHTML:""}const t="function"==typeof e,n=this.length;let i=null;return t||null===e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e||(i=$(e)._sr_elements),this.each(function(r){if(!this||1!==this.nodeType)return;$._internal.cleanupNodeTree(this,!1);const s=t?e.call(this,r,this.innerHTML):e;if(null==s||"string"==typeof s||"number"==typeof s||"boolean"==typeof s){const e=null==s?"":String(s);this.innerHTML!==e&&(this.innerHTML=e)}else{let e;if(this.textContent="",i){const t=r===n-1;e=[];for(const n of i)e.push(t?n:$._internal.cloneNode(n,!0,!0))}else e=$(s)._sr_elements;e.length&&this.append(...e)}}),this}),function(){const e=e=>{if(!e.isConnected)return!1;if("none"===window.getComputedStyle(e).display)return!1;if(e instanceof SVGElement)try{const t=e.getBBox();return t.width>0||t.height>0}catch(e){return!1}return e.getClientRects().length>0};$.extend("is",function(t){if(!this.length||!t)return!1;if("string"==typeof t){const n=[],i=/:(visible|hidden|empty)/g,r=t.replace(i,(e,t)=>(n.push({type:t}),"")).trim();return this._sr_elements.some(t=>!(r&&!$._internal.matches(t,r))&&n.every(n=>{switch(n.type){case"visible":return e(t);case"hidden":return!e(t);case"empty":return 0===t.childNodes.length}return!1}))}if("function"==typeof t)return this._sr_elements.some((e,n)=>t.call(e,n,e));let n;if(t instanceof $)n=t._sr_elements;else if(t.nodeType)n=[t];else{if("function"!=typeof t[Symbol.iterator])return!1;n=Array.from(t)}const i=new Set(n);return this._sr_elements.some(e=>i.has(e))})}(),$.extend("join",function(e=","){return this._sr_elements.map(e=>e.textContent).join(e)}),$.extend("last",function(){const{_sr_elements:e}=this,{length:t}=e;return t?$(e[t-1]):$()}),$.extend("next",function(e){const t=new Set;return this.each(function(){const n=this.nextElementSibling;n&&(e&&!$._internal.matches(n,e)||t.add(n))}),$(t)}),$.extend("off",function(e,t,n){if(void 0===e)return this.each(function(){this.__sr_dispatchers&&Object.keys(this.__sr_dispatchers).forEach(e=>{const[t,n]=e.split("_"),i="passive"===n;this.removeEventListener(t,$._internal.eventDispatcher,{passive:i})}),this.__sr_events=[],this.__sr_dispatchers={}}),this;if("string"!=typeof e)return this;let i,r;"function"==typeof t?(i=null,r=t):"string"==typeof t?(i=t,r=n):(i=void 0,r=void 0);const s=$._internal.splitByWhitespace(e);return s.length?(this.each(function(){s.forEach(e=>{$._internal.removeEvent(this,e,i,r)})}),this):this}),$.extend("on",function(){return $._internal.setupEvents(this,arguments,!1)}),$.extend("one",function(){return $._internal.setupEvents(this,arguments,!0)}),$.extend("parent",function(e){const t=new Set;return this.each(function(){const n=this.parentElement;n&&(e&&!$._internal.matches(n,e)||t.add(n))}),$(t)}),$.extend("prepend",function(e){return $._internal.domManip(this,e,function(e,t){e.prepend(...t)})}),$.extend("prependTo",function(e){const t=$(e),n=[];return t.length&&this.length?(t.each((e,i)=>{const r=e===t.length-1,s=[];this.each((e,t)=>{const n=r?t:$._internal.cloneNode(t,!0,!0);s.push(n)}),i.prepend(...s),n.push(...s)}),$(n)):$([])}),$.extend("prev",function(e){const t=new Set;return this.each(function(){const n=this.previousElementSibling;n&&(e&&!$._internal.matches(n,e)||t.add(n))}),$(t)}),$.extend("prop",function(e,t){if("string"==typeof e&&void 0===t){const t=e.trim();if(!t)return;const n=this._sr_elements[0];return n?n[t]:void 0}if("object"==typeof e)this.each(function(){const t=this;for(const[n,i]of Object.entries(e)){const e=n.trim();e&&(t[e]=i)}});else if("string"==typeof e){const n=e.trim();if(!n)return this;const i="function"==typeof t;this.each(function(e){const r=this,s=i?t.call(r,e,r[n]):t;r[n]=s})}return this}),$.extend("remove",function(){return this.each(function(){$._internal.cleanupNodeTree(this),this.remove()}),this._sr_elements=[],this}),function(){const e=e=>"string"==typeof e?$._internal.splitByWhitespace(e):Array.isArray(e)?e.filter(e=>"string"==typeof e&&e.trim()):[];$.extend("removeAttr",function(t){if(!t)return this;if("function"==typeof t)return this.each(function(n){const i=this,r=t.call(i,n,i),s=e(r);for(const e of s)$._internal.removeAttribute(i,e)});const n=e(t);return n.length?this.each(function(){const e=this;for(const t of n)$._internal.removeAttribute(e,t)}):this})}(),$.extend("removeClass",function(e){if("string"==typeof e&&e){const t=$._internal.splitByWhitespace(e);t.length&&this.each(function(){this.classList.remove(...t)})}else null!=e&&""!==e||this.each(function(){this.className=""});return this}),$.extend("removeData",function(e){const t=$._internal.dataCache;if(void 0===e)return this.each(function(){t.delete(this)});let n;if("string"==typeof e)n=$._internal.splitByWhitespace(e);else{if(!Array.isArray(e))return this;n=e.filter(e=>"string"==typeof e&&e.trim())}return n.length?this.each(function(){const e=t.get(this);e&&n.forEach(t=>{delete e[$._internal.camelCase(t)]})}):this}),$.extend("replaceWith",function(e){return $._internal.domManip(this,e,function(e,t){$._internal.cleanupNodeTree(e),e.replaceWith(...t)})}),$.extend("show",function(){return this.each(function(){const e=this;if("none"===window.getComputedStyle(e).display)if(e instanceof SVGElement){const t=$._internal.dataCache.get(e),n=t?t._srOldDisplay:void 0;null===n?e.removeAttribute("display"):"string"==typeof n?e.setAttribute("display",n):e.removeAttribute("display")}else e.style.display=$._internal.resolveDisplayValue(e)})}),$.t=function(e,t){if("string"!=typeof e)return $();const n=$._internal.isHtmlString(e)?$(e):$([document.createTextNode(e)]);if(!n.length||!t||"object"!=typeof t)return n;const i=new Set(["id","value","textContent","innerHTML","checked","selected","disabled","title","href","src"]);for(const[e,r]of Object.entries(t))"function"==typeof r?n.on(e,r):"text"===e?n.each(function(){this.textContent=r}):"html"===e?n.html(r):"class"===e?n.addClass(String(r)):"css"===e&&"object"==typeof r&&null!==r?n.css(r):"data"===e&&"object"==typeof r&&null!==r?n.data(r):i.has(e)?n.each(function(){this[e]=r}):n.attr(e,r);return n},$.extend("text",function(e){if(void 0===e)return this._sr_elements.map(e=>e&&e.nodeType?e.textContent:"").join("");const t="function"==typeof e;return this.each(function(n){const i=this;if(!i||!i.nodeType)return;const r=t?e.call(i,n,i.textContent):e,s=null==r?"":String(r);i.textContent!==s&&($._internal.cleanupNodeTree(i,!1),i.textContent=s)}),this}),$.extend("toggleClass",function(e,t){const n=$._internal.splitByWhitespace(e);return n.length?(this.each(function(){n.forEach(e=>{this.classList.toggle(e,t)})}),this):this}),function(){const e=new Set(["mouseenter","mouseleave","focus","blur","load","unload","scroll"]);$.extend("trigger",function(t,n){const i=$._internal.splitByWhitespace(t);return i.length?this.each(function(){const t=this;i.forEach(i=>{const r=i.split("."),s=r[0];if(!s)return;const o=r.slice(1),a=!e.has(s);let l;try{l=new CustomEvent(s,{bubbles:a,cancelable:!0,detail:{_sr_extra:n,_sr_namespaces:o.length?o:void 0}})}catch(e){l=document.createEvent("CustomEvent"),l.initCustomEvent(s,a,!0,{_sr_extra:n,_sr_namespaces:o.length?o:void 0})}Object.defineProperty(l,"isTrigger",{value:!0,configurable:!0}),t.dispatchEvent(l)})}):this})}(),function(){const e=e=>"SELECT"===e.nodeName.toUpperCase()&&e.multiple?e.options?Array.from(e.options).filter(e=>e.selected).map(e=>e.value):[]:e.value,t=e=>{if(null==e)return new Set;const t=Array.isArray(e)?e:[e];return new Set(t.map(String))},n=e=>null==e?"":e;$.extend("val",function(i){if(void 0===i){const t=this._sr_elements[0];return t?e(t):void 0}const r="function"==typeof i,s=r?null:t(i);return this.each(function(o){const a=this,l=r?i.call(a,o,e(a)):i;if("SELECT"===a.nodeName.toUpperCase())if(a.multiple){if(a.options){const e=r?t(l):s;for(const t of a.options)t.selected=e.has(t.value)}}else a.value=n(l);else if("checkbox"===a.type||"radio"===a.type){const e=r?t(l):s;a.checked=e.has(a.value)}else a.value=n(l)}),this})}();