smbls 3.14.13 → 3.14.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/smbls.cjs +57 -57
- package/dist/smbls.esm.js +34 -34
- package/dist/smbls.iife-string.js +1 -1
- package/dist/smbls.iife.js +53 -53
- package/package.json +1 -1
package/dist/smbls.iife.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
"use strict";var Smbls=(()=>{var
|
|
2
|
-
`),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${t}\\b\\s*:\\s*`),l=0,c=!1;for(let u=0;u<r.length;u++)if(a.test(r[u])&&!c){if(c=!0,n=u+1,s=r[u].indexOf(t)+1,r[u].includes("{}")){o=n,i=r[u].indexOf("{}")+3;break}let d=r[u].slice(s+t.length);if(d.includes("{")||d.includes("["))l=1;else{o=u+1,i=r[u].length+1;break}}else if(c&&(l+=(r[u].match(/{/g)||[]).length,l+=(r[u].match(/\[/g)||[]).length,l-=(r[u].match(/}/g)||[]).length,l-=(r[u].match(/]/g)||[]).length,l===0)){o=u+1,i=r[u].lastIndexOf("}")!==-1?r[u].lastIndexOf("}")+2:r[u].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},
|
|
3
|
-
`).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),
|
|
4
|
-
`;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let i=e[s],a=!1;for(let c=0;c<s.length;c++)if(
|
|
5
|
-
`;for(let c of i)Q(c)&&c!==null?o+=`${n} ${
|
|
6
|
-
`:
|
|
1
|
+
"use strict";var Smbls=(()=>{var SR=Object.create;var Ja=Object.defineProperty;var kR=Object.getOwnPropertyDescriptor;var CR=Object.getOwnPropertyNames;var AR=Object.getPrototypeOf,ER=Object.prototype.hasOwnProperty;var OR=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var q=(e,t)=>()=>(e&&(t=e(e=0)),t);var Sd=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),G=(e,t)=>{for(var r in t)Ja(e,r,{get:t[r],enumerable:!0})},mv=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of CR(t))!ER.call(e,o)&&o!==r&&Ja(e,o,{get:()=>t[o],enumerable:!(n=kR(t,o))||n.enumerable});return e};var yv=(e,t,r)=>(r=e!=null?SR(AR(e)):{},mv(t||!e||!e.__esModule?Ja(r,"default",{value:e,enumerable:!0}):r,e)),TR=e=>mv(Ja({},"__esModule",{value:!0}),e);var Od,Td,A,ce,Ko=q(()=>{"use strict";Od=globalThis,Td=globalThis,A=globalThis,ce=A.document});var tr,Xo,He,Yo=q(()=>{"use strict";Ko();tr=e=>(typeof Node=="object"?e instanceof A.Node:e&&typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string")||!1,Xo=e=>(typeof HTMLElement=="object"?e instanceof A.HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string")||!1,He=e=>typeof A<"u"&&(A.Node&&e instanceof A.Node||A.Window&&e instanceof A.Window||e===A||e===document)});var w,C,zt,E,nl,ol,$,sl,Q,qe,Pe,Zo,Ge,Pd,Re=q(()=>{"use strict";Yo();w=e=>e===null?!1:typeof e=="object"&&e.constructor===Object,C=e=>typeof e=="string",zt=e=>typeof e=="number",E=e=>typeof e=="function",nl=e=>e===!0||e===!1,ol=e=>e===null,$=e=>Array.isArray(e),sl=e=>e instanceof Date,Q=e=>e===null?!1:typeof e=="object",qe=e=>e!==void 0,Pe=e=>e===void 0,Zo={boolean:nl,array:$,object:w,string:C,date:sl,number:zt,null:ol,function:E,objectLike:Q,node:tr,htmlElement:Xo,defined:qe},Ge=e=>(...t)=>t.some(r=>Zo[r](e)),Pd=e=>(...t)=>!t.some(r=>Zo[r](e))});var Rd,$d,Id,Fd,Dn,Jo,jd,Dd,Qo,Ld,Md,Nd,Bd,Vd,zd,Wd,Ln,es,Mn=q(()=>{"use strict";rr();Re();Rd=(e,t)=>t.every(r=>e.includes(r)),$d=(e,t)=>{let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r},Id=(e,t)=>{if(C(t)&&(t=parseInt(t)),zt(t)){if(t<0||t>=e.length||isNaN(t))throw new Error("Invalid index");e.splice(t,1)}else throw new Error("Invalid index");return e},Fd=(e,t,r)=>{t<0||r<0||t>=e.length||r>=e.length||([e[t],e[r]]=[e[r],e[t]])},Dn=(...e)=>[].concat(...e),Jo=(e,t=[])=>e.reduce((r,n)=>ae(r,ue(n,{exclude:t}),t),{}),jd=(e,t)=>{let r=e.indexOf(t);return r!==-1?e.slice(0,r):e},Dd=(e,t)=>{if(!$(e))return;let r=e.indexOf(t);return r!==-1?e.slice(r+1):e},Qo=(e,t)=>{let r=e.indexOf(t);if(r>-1){let n=[...e];return n.splice(r,1),n}return e},Ld=(e,t)=>e.filter(r=>r!==t),Md=(e,t)=>{let r=[];for(let n=0;n<e.length;n++)r.push(e[n]),n<e.length-1&&r.push(t);return r},Nd=(e,t,r)=>{let n=[...e],o=n.indexOf(t),s=n.indexOf(r);if(o!==-1&&s!==-1){let i=n.splice(o,1)[0],a=s<o?s:s+1;n.splice(a,0,i)}return n},Bd=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},Vd=(e,t)=>e.filter(r=>!t.includes(r)),zd=(e,t)=>{let r=new Set(t);return e.filter(n=>!r.has(n))},Wd=(e,t)=>{if(!e)return 0;let r=0;for(let n=0;n<t.length;n++)e.includes(t[n])&&r++;return r},Ln=e=>$(e)?[...new Set(e)]:e,es=(e,t)=>{for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!1,configurable:!0,writable:!0})}});function Zr(e,t,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!e.includes(o))return e;let s=$R[n],i=t||this.state||{},a=this;return e.replace(s,(l,c,u,d)=>{let f=u.trim();if(d){let p=a?.context,h=p?.functions?.[d]||p?.utils?.[d]||p?.methods?.[d]||p?.snippets?.[d]||a?.[d];if(h&&typeof h=="function")try{return String(h.call(a,f)??"")}catch{return""}return""}if(c){let p=(c.match(/\.\.\//g)||[]).length,h=i;for(let m=0;m<p;m++){if(!h||!h.parent)return"";h=h.parent}if(f==="parent")return String(h.value??"");let g=ts(h,f);return String(g??"")}else{let p=ts(i,f);if(p!=null)return String(p);let h=a?.context?.polyglot;if(h?.translations){let g=i?.root?.lang||i?.lang||a?.context?.state?.lang||h.defaultLang||"en",m=h.translations[g];if(m){let b=ts(m,f);if(b!=null&&typeof b!="object")return String(b);for(let x in m){let v=m[x];if(v&&typeof v=="object"&&!Array.isArray(v)){let _=ts(v,f);if(_!=null&&typeof _!="object")return String(_)}}}let y=ts(h.translations,f);if(y!=null&&typeof y!="object")return String(y)}return""}})}var rs,Ud,$R,ts,Jr,Hd,IR,qd,Gd,Kd,FR,Xd,Yd,ns=q(()=>{"use strict";rs=(e,t)=>{for(let r of t)if(e.includes(r))return!0;return!1},Ud=(e,t)=>{let r=new RegExp(`[${t.join("\\")}]`,"g");return e.replace(r,"")},$R={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},ts=(e,t)=>t.split(".").reduce((r,n)=>r?.[n],e);Jr=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`,Hd=(e,t)=>{let r=e.split(`
|
|
2
|
+
`),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${t}\\b\\s*:\\s*`),l=0,c=!1;for(let u=0;u<r.length;u++)if(a.test(r[u])&&!c){if(c=!0,n=u+1,s=r[u].indexOf(t)+1,r[u].includes("{}")){o=n,i=r[u].indexOf("{}")+3;break}let d=r[u].slice(s+t.length);if(d.includes("{")||d.includes("["))l=1;else{o=u+1,i=r[u].length+1;break}}else if(c&&(l+=(r[u].match(/{/g)||[]).length,l+=(r[u].match(/\[/g)||[]).length,l-=(r[u].match(/}/g)||[]).length,l-=(r[u].match(/]/g)||[]).length,l===0)){o=u+1,i=r[u].lastIndexOf("}")!==-1?r[u].lastIndexOf("}")+2:r[u].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},IR=/\\([0-7]{1,3})/g,qd=e=>e.replace(IR,(t,r)=>String.fromCharCode(parseInt(r,8))),Gd=e=>e.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),Kd=e=>e.replace(/\/\/\/\/\/n/g,`
|
|
3
|
+
`).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),FR=/[^a-zA-Z0-9\s]/g,Xd=e=>e.replace(FR,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase()),Yd=e=>e.replace(/%[0-9A-Fa-f]{2}/g,t=>String.fromCharCode(parseInt(t.slice(1),16)))});var xr,os,Zd,Qr,vr,Nn,ss,Jd,Bn=q(()=>{"use strict";xr=new Set(["attr","style","text","html","content","data","classlist","state","scope","root","deps","extend","extends","$router","routes","children","childExtend","childExtends","childExtendRecursive","childExtendsRecursive","props","if","define","__name","__ref","__hash","__text","key","tag","query","parent","node","variables","on","fetch","component","context","preventContentUpdate","preventContentRecreate"]),os=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),Zd=["ref","parent","__element","__depends","__ref","__children","root"],Qr=new Set(["update","parse","clean","create","destroy","add","toggle","remove","apply","set","reset","replace","quietReplace","quietUpdate","applyReplace","applyFunction","keys","values","ref","rootUpdate","parentUpdate","parent","__element","__depends","__ref","__children","root","setByPath","setPathCollection","removeByPath","removePathCollection","getByPath"]),vr=new Set(["update","__element"]),Nn=new Set(["set","reset","update","remove","updateContent","removeContent","lookup","lookdown","lookdownAll","getRef","getPath","setNodeStyles","spotByPath","keys","parse","setProps","parseDeep","variables","if","log","verbose","warn","error","call","nextElement","previousElement","getRootState","getRoot","getRootData","getRootContext","getContext","getQuery","getDB","getChildren","preventContentUpdate","preventContentRecreate"]),ss=new Set(["node","context","extends","__element","__ref",...Nn,...Qr,...vr]),Jd=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var kv,en,le,Qd,ge,ae,Cv,ep,ue,is,jR,as,DR,LR,Vn,MR,lt,ls,tp,rp,il,np,op,cs,tn,Ke,al,NR,sp,ip,ll,ap,lp,cp,up,fp,dp,pp,rr=q(()=>{"use strict";Ko();Re();Mn();ns();Yo();Bn();kv="production",en=e=>e.charCodeAt(0)===95&&e.charCodeAt(1)===95,le=(e,t,r,n)=>{if(E(e))return t?typeof e.call!="function"?e:e.call(t,t,r||t.state,n||t.context):void 0;if(e!=null&&t?.context?.plugins&&($(e)||w(e)&&!He(e))){let o=t.context.plugins;for(let s of o)if(s.resolveHandler){let i=s.resolveHandler(e,t);if(typeof i=="function")return le(i,t,r,n)}}return e},Qd=(e,t,r)=>{for(let n in t)e[n]=le(t[n],r)},ge=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(en(o)||(n?r.has(o):r.includes(o))||e[o]===void 0&&(e[o]=t[o]));return e},ae=(e,t,r=ss)=>Cv(e,t,r,null),Cv=(e,t,r,n)=>{if(e===t)return e;if(n){for(let s=0;s<n.length;s+=2)if(n[s]===e&&n[s+1]===t)return e}let o=r instanceof Set;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||en(s)||s==="constructor"||s==="prototype"||(o?r.has(s):r.includes(s)))continue;let i=e[s],a=t[s];if(Q(i)&&Q(a)){let l=n||[];l.push(e,t),Cv(i,a,r,l),l.length-=2}else i===void 0&&(e[s]=a)}return e},ep=(e,t=[])=>{let r=t instanceof Set,n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(en(o)||(r?t.has(o):t.includes(o))||(n[o]=e[o]));return n},ue=(e,t={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,window:s,visited:i=new WeakMap,handleExtends:a=!1}=t,l=s||A||globalThis;if(!Q(e)||He(e))return e;if(i.has(e))return i.get(e);let u=$(e)?[]:{};i.set(e,u);let d=r instanceof Set?r:r.length>3?new Set(r):null;for(let f in e){if(!Object.prototype.hasOwnProperty.call(e,f)||en(f)||f==="__proto__"||(d?d.has(f):r.includes(f)))continue;let p=e[f];if(!(n&&p===void 0)&&!(o&&p===null)){if(He(p)){u[f]=p;continue}if(a&&f==="extends"&&$(p)){u[f]=Jo(p,r);continue}if(E(p)){u[f]=p;continue}Q(p)?u[f]=ue(p,{...t,visited:i}):u[f]=p}}return u},is=(e,t={})=>{(e.node||e.__ref||e.parent||e.__element||e.parse)&&((e.__element||e.parent?.__element).warn("Trying to clone element or state at",e),e=e.parse?.());for(let r in e){let n=e[r];if(E(n))t[r]=n.toString();else if(w(n))t[r]={},is(n,t[r]);else if($(n)){let o=t[r]=[];for(let s=0;s<n.length;s++){let i=n[s];w(i)?(o[s]={},is(i,o[s])):E(i)?o[s]=i.toString():o[s]=i}}else t[r]=n}return t},jR=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),as=(e={},t=0)=>{if(e===null||typeof e!="object")return String(e);let r=!1;for(let s in e){r=!0;break}if(!r)return"{}";let n=" ".repeat(t),o=`{
|
|
4
|
+
`;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let i=e[s],a=!1;for(let c=0;c<s.length;c++)if(jR.has(s[c])){a=!0;break}let l=a?`'${s}'`:s;if(o+=`${n} ${l}: `,$(i)){o+=`[
|
|
5
|
+
`;for(let c of i)Q(c)&&c!==null?o+=`${n} ${as(c,t+2)},
|
|
6
|
+
`:C(c)?o+=`${n} '${c}',
|
|
7
7
|
`:o+=`${n} ${c},
|
|
8
|
-
`;o+=`${n} ]`}else Q(i)?o+=
|
|
8
|
+
`;o+=`${n} ]`}else Q(i)?o+=as(i,t+1):C(i)?o+=rs(i,[`
|
|
9
9
|
`,"'"])?`\`${i}\``:`'${i}'`:o+=i;o+=`,
|
|
10
|
-
`}return o+=`${n}}`,o},
|
|
11
|
-
First 200 chars of source: `+String(o).slice(0,200)),t[n]=o}else t[n]=o;else if(
|
|
12
|
-
First 200 chars: ${String(a).slice(0,200)}`),s.push(a)}else s.push(a);else
|
|
13
|
-
`);t[n]=
|
|
14
|
-
return (${o}); })`)(t)}catch{try{t[n]=T.eval(`(${o})`)}catch{t[n]=o}}return t},gp=(e,t={verbose:!0})=>{try{return e?T.eval("("+e+")"):{}}catch(r){t.verbose&&console.warn(r)}},mp=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),pl=e=>{for(let t in e)return!1;return!0},yp=e=>_(e)&&pl(e),bp=()=>Object.create(null),gs=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in t)n.includes(s)||!o&&nn(s)||s==="constructor"||s==="prototype"||t[s]!==void 0&&(e[s]=t[s]);return e},on=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)nn(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(e[o]=t[o]);return e},Ye=(e,t,r={},n=new WeakMap)=>{if(!Q(e)||!Q(t)||Ze(e)||Ze(t))return t;if(n.has(e))return n.get(e);n.set(e,e);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a)||s&&s.has(a)||i&&nn(a)||a==="constructor"||a==="prototype")continue;let l=e[a],c=t[a];Ze(c)?e[a]=c:Q(l)&&Q(c)?e[a]=Ye(l,c,r,n):c!==void 0&&(e[a]=c)}return e},hl=(e,t,r=new Set)=>{if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e===t;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(t,i)||!hl(e[i],t[i],r))return!1}return!0},EF=new Set(["node","__ref"]),vp=(e,t,r=EF)=>{if(e===t)return!0;if(!Q(e)||!Q(t)||Ze(e)||Ze(t))return e===t;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function s(i,a){if(o.has(a))return!0;o.add(a);for(let l in a){if(!Object.prototype.hasOwnProperty.call(a,l)||n.has(l))continue;if(!Object.prototype.hasOwnProperty.call(i,l))return!1;let c=a[l],u=i[l];if(Ze(c)||Ze(u)){if(c!==u)return!1}else if(Q(c)&&Q(u)){if(!s(u,c))return!1}else if(c!==u)return!1}return!0}return s(e,t)},xp=(e,t)=>{if(t==null)return e;if(Xe(t)("string","number"))delete e[t];else if(j(t))for(let r=0;r<t.length;r++)delete e[t[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return e},gl=e=>{if(e===null||typeof e!="object")return e;let t=Object.create(null);for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=gl(e[r]));return t},wp=(e,t)=>{if(e.length===0)return t;let r={},n=r;for(let o=0;o<e.length;o++)o===e.length-1&&t?n[e[o]]=t:(n[e[o]]={},n=n[e[o]]);return r},Sp=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let o=0;o<t.length-1;o++){if(r[t[o]]===void 0)return;r=r[t[o]]}let n=t[t.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},_p=(e,t,r)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let n=e;for(let o=0;o<t.length-1;o++)(!n[t[o]]||typeof n[t[o]]!="object")&&(n[t[o]]={}),n=n[t[o]];return n[t[t.length-1]]=r,e},kp=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let n=0;n<t.length;n++){if(r==null)return;r=r[t[n]]}return r},Cp=e=>{let t=[],r=0;for(let n=0;n<e.length;n++)if(t.length<2)t.push(e[n]);else if(e[n]===t[n%2]?r++:(t=[e[n-1],e[n]],r=1),r>=20)return(_w==="test"||_w==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",t),!0},Ap=e=>{let t=new WeakSet;function r(n){if(n&&typeof n=="object"){if(t.has(n))return!0;t.add(n);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return console.log(n,"cycle at "+o),!0}return!1}return r(e)},Ep=(e,t)=>{let r=t instanceof Set?t:new Set(t),n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&!r.has(o)&&(n[o]=e[o]);return n}});var ms,ys,bs,ml=K(()=>{or();ms=(function(){let e=0;function t(){return e++,e}return t})(),ys=ms,bs=(e,t,r)=>(le(r,e)||r||e.key||ms()).toString()});var Pt,Tp,kr,yl,Op,Pp,Rp,Cr,$p,sn,Ip=K(()=>{Pt="production",Tp=Pt,kr=(e=Pt)=>e==="production",yl=(e=Pt)=>e==="testing"||e==="test",Op=yl,Pp=(e=Pt)=>e==="staging",Rp=(e=Pt)=>e==="local",Cr=(e=Pt)=>e==="development"||e==="dev"||e==="local",$p=(e,t=Pt)=>t[e],sn=(e=Pt)=>!kr(e)});function vs(e,t,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||e.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,t),a&&e.apply(o,s)}}function Lp(e,t=window){let r=function(){return e.apply(t,arguments)};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var jp,Fp,TF,Dp,Xn,Yn,Jn,bl=K(()=>{jp=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},Fp=e=>{let t={};return(...r)=>{let n=r[0];if(n in t)return t[n];{let o=e(n);return t[n]=o,o}}},TF=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Dp=e=>TF.test(e),Xn=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},Yn=(e,t)=>{if(typeof e=="function")return e;let r=t?.context?.plugins;if(!r)return e;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(e,t);if(typeof o=="function")return o}return e},Jn=(e,t,...r)=>{let n=t?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[e]=="function"&&(s[e](t,...r),o=!0);return o}});var Bp,Cw=K(()=>{$e();or();Bp=(e,t)=>{let{__ref:r}=e,n=e.if;if(O(n)){let o;try{o=n(e,e.state,e.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete r.__if;return}o?r.__if=!0:delete r.__if}else n!=null&&typeof n=="object"?le(n,e)?r.__if=!0:delete r.__if:r.__if=!0}});var Mp,Np,Aw=K(()=>{Mp=(e,...t)=>{e&&t.map(r=>console.log(r))},Np=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function qp(e){let t;try{if(!window.localStorage)return;t=window.localStorage.getItem(e)}catch{return}if(t!==null)try{return JSON.parse(t)}catch{return}}function Up(e,t){if(t!=null)try{if(!window.localStorage)return;let r=typeof t=="object"?JSON.stringify(t):t;window.localStorage.setItem(e,r)}catch{}}var zp,Wp,Hp,Vp,Ew=K(()=>{$e();es();zp=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Wp=(e,t,r=365)=>{if(_e(ue)||_e(ue.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;ue.cookie=`${e}=${t};${o};path=/`},Hp=e=>{if(_e(ue)||_e(ue.cookie))return;let t=`${e}=`,r=decodeURIComponent(ue.cookie).split(";");for(let n=0;n<r.length;n++){let o=r[n];for(;o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return""},Vp=e=>{_e(ue)||_e(ue.cookie)||(ue.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var Qn,Tw,Gp,Kp=K(()=>{Qn={root:["body","html"],head:["title","base","meta","style","noscript","script"],body:new Set(["string","style","fragment","a","abbr","acronym","address","applet","area","article","aside","audio","b","basefont","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","search","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","hgroup","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","template","hgroup","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr","svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"])},Tw=new Set(["svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"]),Gp=e=>Qn.body.has(e)});var Zp,Ow,eo,Ss,Je,Xp,vl,_s,Yp,ks,xl,wl,Cs,Sl,to,OF,Kt,Pw,xs,As,Jp,ws,Qp,eh,_l,kl,Cl,Al,El,Tl,Rw,Ol=K(()=>{Un();th();or();$e();Zp="production",Ow=e=>e.sourcemap!==!1&&Zp!=="production",eo=e=>{if(e.includes("+"))return e.split("+").filter(Zt);if(e.includes("_")){let[t]=e.split("_");return[t]}if(e.includes(".")&&!Zt(e.split(".")[1])){let[t]=e.split(".");return[t]}return[e]},Ss=(e,t,r)=>{let n=[],o=eo(r);o&&(n=[...o]);let s=e.extends;return s&&(n=j(s)?[...n,...s]:[...n,s]),n},Je=(e,t)=>{let{__ref:r}=t,{__extends:n}=r;if(!e)return n;let o=t.variant,s=t.context;if(o&&s?.components&&!Array.isArray(e)&&typeof e=="string"){let i=`${e}.${o}`;s.components[i]&&(e=i)}return n.includes(e)||(n=Array.isArray(e)?[...n,...e]:[...n,e],r.__extends=n),n},Xp=(e,t)=>{if(!e)return t;let{extends:r}=t,n=j(r)?r:[r],o=j(e)?e:[e];return{...t,extends:Vn(o,n)}},vl=()=>Math.random().toString(36).substring(2),_s={},Yp={},ks=e=>_s[e.__hash],xl=(e,t)=>{let r=vl();return k(e)||(e.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(_s[r]=t),t},wl=(e,t)=>e.__hash?t.concat(ks(e)):xl(e,t),Cs=(e,t,r,n=new Set,o,s)=>{for(let i of e)j(i)?Cs(i,t,r,n,o,s):to(i,t,r,n,o,void 0,s);return t},Sl=(e,t,r,n=new Set,o,s,i)=>{let a=e.extends,l={...e};delete l.extends;let c=!1;for(let u in l){c=!0;break}return c&&(t.push(l),o&&o.push(s)),a&&to(a,t,r,n,o,s,i),t},to=(e,t,r,n=new Set,o,s,i)=>{if(!e||n.has(e))return t;if(j(e))return Cs(e,t,r,n,o,i);let a=s;return k(e)?(a=e,e=As(e,r)):i&&_(e)&&i.has(e)&&(a=i.get(e)),n.add(e),e?.extends?Sl(e,t,r,n,o,a,i):e&&(t.push(e),o&&o.push(a)),t},OF=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),Kt=(e,t,r,n,o)=>{t=fe(t);for(let s in t){if(OF.has(s))continue;let i=e[s],a=t[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(t,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)e[s]=a,r&&n?_(a)&&!j(a)?(r[s]=r[s]||{},Pw(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(_(i)&&_(a)){let l=r?r[s]=r[s]||{}:void 0,c=o?.[s];Zt(s)?e[s]=Kt(i,a,l,n,c):Kt(i,a,l,n,c)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(j(i)&&j(a))e[s]=i.concat(a);else if(j(i)&&_(a)){let l=Kt({},i);e[s]=Kt(l,a)}}}}return e},Pw=(e,t,r,n)=>{if(n||(n=new WeakSet),!n.has(t)){n.add(t);for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=t[o];_(s)&&!j(s)?(e[o]=e[o]||{},Pw(e[o],s,r,n)):e[o]=r}}},xs=(e,t,r)=>e.reduce((n,o,s)=>{let i=fe(o),a=r?r[s]:void 0;return Kt(n,i,t,a)},{}),As=(e,t,r={},n)=>{let o=t?.components||r.components,s=t?.pages||r.pages;if(k(e)){let i=o&&(o[e+"."+n]||o[e]||o["smbls."+e]),a=s&&e.charCodeAt(0)===47&&s[e];if(i)return i;if(a)return a;r.verbose&&(Zp==="test"||Zp==="development")&&console.warn("Extend is string but component was not found:",e);return}return e},Jp=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),ws=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return ks(e)||[];let o=to(e,[],t,new Set,r,void 0,n);return r?o:wl(e,o)},Qp=(e,t)=>{if(!e)return t;let r=j(e)?e:[e];return Vn(r,t)},eh=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(Zt(o)&&t.push(o),o==="extends"&&(typeof n[o]=="string"?t.push(n[o]):Array.isArray(n[o])&&(t=t.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(e),t},_l=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant;if(e.extends)if(Array.isArray(e.extends)&&e.extends.length>0){let[i,...a]=e.extends;if(typeof i=="string"&&s&&o?.components){let l=`${i}.${s}`;o.components[l]?Je([l,...a],e):Je(e.extends,e)}else Je(e.extends,e)}else if(typeof e.extends=="string"&&s&&o?.components){let i=`${e.extends}.${s}`;o.components[i]?Je(i,e):Je(e.extends,e)}else Je(e.extends,e);return kl(e,t,r),Cl(e,t,r),Al(e,t,r),e.component&&Je(le(e.component,e),e),o.defaultExtends&&Je(o.defaultExtends,e),qn(n.__extends)},kl=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Je(t.childProps.extends,e),n.__extends},Cl=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,s=t.childExtends;return!o&&s&&Je(s,e),n.__extends},Al=(e,t,r={})=>{let{__ref:n}=e,o=t.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||e.ignoreChildExtendsRecursive,i=e.key==="__text";return o&&!i&&!s&&Je(o,e),n.__extends},El=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant,i=Ow(r),a=i?[...n.__extends]:null,l=qn(n.__extends.map((c,u)=>As(c,o,r,u===0&&s)));if(i){let c=new WeakMap;for(let f=0;f<l.length;f++){let h=l[f],p=a[f];h&&_(h)&&k(p)&&c.set(h,p)}let u=[],d=ws(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=ws(l,o);n.__extendsStack=c}return n.__extendsStack},Tl=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(Ow(r)){let s={},i=n.__extendsNames||[],a=xs(o,s,i),l={};Kt(e,a,l,void 0,s),n.__sourcemap=l}else{let s=xs(o);Kt(e,s)}return e},Rw=(e,t,r={})=>(_l(e,t,r),El(e,t,r),Tl(e,t,r),e)});function rh(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function nh(e){return Object.keys(e).filter(t=>/^\d+$/.test(t))}function oh(e,t,r){let{context:n}=t||{},[o]=eo(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var Zt,th=K(()=>{Ol();$e();Zt=e=>{if(!k(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function $w(e,t){let{props:r,on:n}=t,o=tn(e.split("on")[1]),s=n[o],i=r[e];O(s)?n[o]=(...a)=>{if(s(...a)!==!1&&O(i))return i(...a)}:n[o]=i}var Iw=K(()=>{cs();$e()});function Pl(e,t={}){let r=t.cachedKeys||[];for(let n in e){let o=e[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(O(o)||o!=null&&Xn(this.context))){let f=tn(n.slice(2));e.on&&(e.on[f]=o),delete e[n];continue}if(n==="childProps"){e.props[n]=o,delete e[n],r.push(n);continue}let s=this.define?.[n],i=this.context?.define?.[n],a=_(s)||O(s),l=_(i)||O(i);if(a||l)continue;let c=n.charAt(0);if(Fw.has(c)){e.props[n]=o,delete e[n],r.push(n);continue}let u=sh.test(n)||jw.test(n)||RF(o),d=Sr.has(n);!u&&!d&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function Rl(e=this,t){let r=t.cachedKeys||[];for(let n in e.props){let o=e.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=O(o)||o!=null&&Xn(this.context);if(s&&i){$w(n,e),delete e.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(Fw.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=_(l)||O(l),d=_(c)||O(c),f=sh.test(n)||jw.test(n),h=Sr.has(n);(f||h||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function $l(e=this){let t=[];return Pl.call(this,e,{cachedKeys:t}),Rl.call(this,e,{cachedKeys:t}),e}function ih(e={}){return e.on||(e.on={}),e.props||(e.props={}),$l.call(this,e)}function lh(e,t){this.__element.update({props:e},t)}function Rs(e){let t={update:lh.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var sh,jw,Fw,PF,RF,Os,Es,ah,Ps,$s,Is,Il,Ts,ch,uh,fh=K(()=>{Kn();Iw();or();$e();cs();bl();sh=/^[A-Z]/,jw=/^\d+$/,Fw=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),PF=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),RF=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;for(let t in e)if(PF.has(t)||sh.test(t))return!0;return!1},Os=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return Q(n)?{...n}:(o.__propsStack.push(n),{})};Es=e=>Xe(e)("string","number")?{inheritedString:e}:e,ah=(e,t)=>!e||!t.length?!1:t.includes(e),Ps=(e,t)=>{let{__ref:r}=e,n=r.__propsStack||[],o=t.props;if(!o)return n;let s=o[e.key],i=o.childProps||t.childProps,a=e.props?.ignoreChildProps;if(i&&!a){let l=Es(i);n.unshift(l)}if(s){let l=Es(s);n.unshift(l)}return n};$s=e=>{let t=new Set;return e.filter(r=>!r||_r.has(r)||t.has(r)?!1:(t.add(r),!0))},Is=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(_r.has(o))return n;for(;O(o);)o=le(o,t);return ae(n,fe(o,{exclude:_r}))},{}),Rs(t),t.props),Il=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...Ps(e,t)]),_(r)?o.push(r):r==="inherit"&&t?.props?o.push(t.props):r&&o.push(r),j(n.__extendsStack))for(let s=0;s<n.__extendsStack.length;s++){let i=n.__extendsStack[s];i.props&&i.props!==r&&o.push(i.props)}return n.__propsStack=$s(o),n.__propsStack},Ts=(e,t)=>{let{__ref:r}=e,n=Il(e,t);n.length?Is(n,e):(r.__propsStack=[],e.props={})},ch=function(e,t,r){let{__ref:n}=e;if(n.__if)Ts(e,t);else try{Ts(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),e.props={},n.__propsStack=[]}return Rs(e),e},uh=(e,t,r)=>{let{__ref:n}=t,o=[...n.__propsStack||[]],s=Ps(t,r);return s.length&&(o=[...s,...o]),e&&(o=[e,...o]),n.__propsStack=$s(o),n.__propsStack.length&&Is(n.__propsStack,t),t}});var Dw,jl,Fl,Dl,Ll,dh,Bl,Ml,Nl,ph,Lw=K(()=>{Ol();ml();rs();fh();Kp();$e();Dw="production",jl=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,s=Qn.body.has(r)&&r;return{text:e,tag:n||o||s||"string"}},Fl=(e,t,r)=>{if(e===void 0)return(Dw==="test"||Dw==="development")&&console.warn(r,"element is undefined in",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Xe(e)("string","number")?jl(e,t,r):O(e)?{props:e}:e},Dl=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},Ll=(e,t,r,n,o)=>{if(!t)return o;if(nr(t)){let s={key:":root",node:t};return o[`${r}_parent`]=s,s}return t},dh=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===":root";r?.root||(r.root=o?e:n?.root)},Bl=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},Ml=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),Nl=(e,t,r)=>{let n=Dl(e,t);return e.__ref=n,n.__defineCache||(n.__defineCache={}),n.__exec||(n.__exec={}),n.__execProps||(n.__execProps={}),n.__class||(n.__class={}),n.__classNames||(n.__classNames={}),n.__attr||(n.__attr={}),n.__changes||(n.__changes=[]),n.__children||(n.__children=[]),n.__extends=Ss(e,t,r),n.path=Bl(e,t,r),n},ph=(e,t,r,n,o)=>{let s=e?.__hash?{extends:[e]}:Fl(e,t,r);if(!s)return;let i=Ll(s,t,r,n,o),a=bs(s,i,r);Nl(s,i,a);let l=Os(s,i,a),c=Ml(s,i,a,n,o),u=s.on||{};return{...s,key:a,props:l,parent:i,context:c,on:u}}});var hh,zl,Wl,Hl,Vl,gh,ql,mh,yh,bh,vh,Bw=K(()=>{Un();Kn();or();$e();hh=e=>{let{state:t,props:r,__ref:n}=e,o=r?.state||t;return Xe(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=e.key,{}):o?(n.__hasRootState=!0,o):!1},zl=(e,t)=>{if(e.includes("~/")&&e.split("~/").length>1)return t.root},Wl=(e,t)=>{if(!e.includes("../"))return;let r=e.split("../").length-1;for(let n=0;n<r;n++){if(!t.parent)return null;t=t.parent}return t},Hl=(e,t,r={})=>{let n=k(e)?e.split("/"):[e],o=n.length-1;for(let s=0;s<o;s++){let i=n[s],a=n[s+1];if(i==="__proto__"||a==="__proto__")return;let l=t[i];l||(l=t[i]={}),l[a]||(l[a]={}),e=a,t=l}return r.returnParent?t:t[e]},Vl=(e,t,r={})=>{let n=e.__ref.__state;if(!ql(e))return;let o=zl(n,t.state),s=t.state;if(o)s=o,n=n.replaceAll("~/","");else{let i=Wl(n,t.state);i&&(s=i,n=n.replaceAll("../",""))}if(s)return Hl(n,s,r)},gh=(e,t)=>{let r=e.__ref,n=Vl(e,t);if(n===void 0)return e.state;if(Xe(n)("object","array"))return fe(n);if(Xe(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},ql=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Xe(r)("number","string","boolean"))},mh=function(e){return Q(e)?!!(e.update&&e.parse&&e.clean&&e.create&&e.parent&&e.destroy&&e.rootUpdate&&e.parentUpdate&&e.keys&&e.values&&e.toggle&&e.replace&&e.quietUpdate&&e.quietReplace&&e.add&&e.apply&&e.applyReplace&&e.setByPath&&e.setPathCollection&&e.removeByPath&&e.removePathCollection&&e.getByPath&&e.applyFunction&&e.__element&&e.__children):!1},yh=(e,t)=>{if(!e)return t||{};let r=e.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?t||{}:{},o=o[r[i]];return n},bh=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=fe(n,rn),s={[e.key]:o},i=_(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?is(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},vh=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){ae(e,t,rn);return}(o?on:Ye)(e,t,rn)}});var xh,Mw=K(()=>{xh=(e,t)=>{let{__ref:r}=e,n=e.context||t.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=t.scope||r.root?.scope,s=n?.globalScope;if(!e.scope)o?e.scope=o:s?e.scope=Object.create(s):e.scope={};else if(typeof e.scope=="object"&&e.scope!==null&&Object.getPrototypeOf(e.scope)===Object.prototype){let i=o||s;i&&Object.setPrototypeOf(e.scope,i)}}});var Nw,Ul,Ar,Gl,wh,Sh=K(()=>{$e();bl();Nw=(e,t)=>{let r="on"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},Ul=(e,t,r,n,o)=>{if(e=Yn(e,t),!!O(e))try{let s=e.call(t,t,r||t.state,n||t.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{t.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(t.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),t.context?.strictMode)throw s}},Ar=(e,t,r)=>{if(!t)throw new Error("Element is required");Jn(e,t,r);let n=Nw(e,t);if(n){let{state:o,context:s}=t;return Ul(n,t,o,s,r)}},Gl=(e,t,r,n,o,s)=>{if(e=Yn(e,r),!!O(e))try{let i=e.call(r,t,r,n||r.state,o||r.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{r.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(r.error=i,console.error("[DOMQL] Event update error:",i),r.context?.strictMode)throw i}},wh=(e,t,r,n)=>{Jn(e,r,t,n);let o=Nw(e,r);if(o){let{state:s,context:i}=r;return Gl(o,t,r,s,i,n)}}});var _h,js,kh=K(()=>{_h={},js={}});var Hw={};P(Hw,{setup:()=>IF,supabaseAdapter:()=>Ww});var zw,$F,IF,Ch,jF,Ww,Vw=K(()=>{"use strict";zw=new Map,$F=(e,t,r)=>`${e}|${t}|${r?"off":"on"}`,IF=async({url:e,key:t,projectId:r,createClient:n,auth:o,retry:s,adapter:i,...a})=>{let l=e||r&&`https://${r}.supabase.co`;if(!l||!t)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let c=$F(l,t,o===!1),u=zw.get(c);return u||(u=await n(l,t,a),u?.auth&&zw.set(c,u)),!u||!u.auth?null:Ww(u)},Ch=(e,t)=>{if(!t)return e;for(let r in t){let n=t[r];if(n===null)e=e.is(r,null);else if(Array.isArray(n))e=e.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?e=e.gt(r,n[o]):o==="gte"?e=e.gte(r,n[o]):o==="lt"?e=e.lt(r,n[o]):o==="lte"?e=e.lte(r,n[o]):o==="neq"?e=e.neq(r,n[o]):o==="like"?e=e.like(r,n[o]):o==="ilike"?e=e.ilike(r,n[o]):o==="in"?e=e.in(r,n[o]):o==="is"?e=e.is(r,n[o]):o==="contains"?e=e.contains(r,n[o]):o==="containedBy"?e=e.containedBy(r,n[o]):o==="textSearch"&&(e=e.textSearch(r,n[o]));else e=e.eq(r,n)}return e},jF=(e,{limit:t,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s=="string"?s:s.by;e=e.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;e=e.order(s,{ascending:n.asc!==!1})}return t&&(e=e.limit(t)),r&&(e=e.range(r,r+(t||20)-1)),o&&(e=e.single()),e},Ww=e=>({name:"supabase",client:e,getSession:async()=>{let{data:t}=await e.auth.getSession();return t?.session||null},getUser:async()=>{let{data:t}=await e.auth.getUser();return t?.user||null},signIn:t=>t.provider?e.auth.signInWithOAuth({provider:t.provider}):t.token?e.auth.signInWithIdToken(t):e.auth.signInWithPassword(t),signUp:t=>e.auth.signUp(t),signOut:()=>e.auth.signOut(),onAuthStateChange:t=>{let{data:{subscription:r}}=e.auth.onAuthStateChange((n,o)=>t(n,o));return()=>r.unsubscribe()},select:async({from:t,schema:r,select:n,params:o,headers:s,...i})=>{let l=(r?e.schema(r):e).from(t).select(n||"*");if(l=Ch(l,o),l=jF(l,i),s)try{for(let c in s)l.setHeader?l=l.setHeader(c,s[c]):e.rest&&(e.rest.headers[c]=s[c])}catch(c){console.warn("[supabase] setHeader failed:",c.message)}return l},rpc:({from:t,params:r})=>e.rpc(t,r),insert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).insert(n).select(o||"*"),update:({from:t,schema:r,data:n,params:o,select:s})=>{let a=(r?e.schema(r):e).from(t).update(n);return a=Ch(a,o),a.select(s||"*")},upsert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).upsert(n).select(o||"*"),delete:({from:t,params:r})=>{let n=e.from(t).delete();return n=Ch(n,r),n},subscribe:({from:t,params:r,on:n},o)=>{let s=n||"*",i=e.channel(`db-${t}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:t,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>e.removeChannel(i)},upload:({bucket:t,path:r,file:n,options:o})=>e.storage.from(t).upload(r,n,o),download:({bucket:t,path:r})=>e.storage.from(t).download(r),getPublicUrl:({bucket:t,path:r})=>e.storage.from(t).getPublicUrl(r)})});var Uw={};P(Uw,{restAdapter:()=>qw,setup:()=>DF});var FF,Er,DF,qw,Gw=K(()=>{"use strict";FF=(e,t,r)=>{let n=t&&!t.startsWith("/")?"/":"",o=new URL(`${e}${n}${t}`);if(r)for(let s in r){let i=r[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},Er=async(e,t)=>{let r=await globalThis.fetch(e,t),n=r.headers.get("content-type"),o=n&&n.includes("json")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},DF=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return qw(e,t,r,n)},qw=(e,t={},r,n={})=>{let o=r?.token||null,s=u=>{let d={...t,...u};return o&&(d.Authorization=`Bearer ${o}`),d},i=u=>({...s(u),"Content-Type":"application/json"}),a=u=>({...n,...u}),l=(u,d)=>{let f=d||e;if(u&&(u.startsWith("http://")||u.startsWith("https://")))return u;let h=u&&!u.startsWith("/")?"/":"";return`${f}${h}${u||""}`};return{name:"rest",setToken:u=>{o=u},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let u=await Er(l(r.sessionUrl,r.baseUrl),a({headers:s()}));return u.error?null:u.data},signIn:async u=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let d=await Er(l(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(u)}));return d.data?.token&&(o=d.data.token),d},signOut:async()=>(r?.signOutUrl&&await Er(l(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:u,params:d,select:f,limit:h,offset:p,order:g,single:m,headers:y,baseUrl:b})=>{let v={...d};return f&&(v.select=f),h&&(v.limit=h),p&&(v.offset=p),m&&(v.single=!0),g&&(typeof g=="string"?v.order=g:Array.isArray(g)?v.order=g.map(x=>`${x.by}:${x.asc===!1?"desc":"asc"}`).join(","):g.by&&(v.order=`${g.by}:${g.asc===!1?"desc":"asc"}`)),Er(FF(b||e,u||"",v),a({headers:s(y)}))},rpc:({from:u,params:d,headers:f,baseUrl:h})=>Er(l(`rpc/${u}`,h),a({method:"POST",headers:i(f),body:JSON.stringify(d)})),insert:({from:u,data:d,headers:f,baseUrl:h})=>Er(l(u,h),a({method:"POST",headers:i(f),body:JSON.stringify(d)})),update:({from:u,data:d,params:f,method:h,headers:p,baseUrl:g})=>{let m=f?.id||d?.id,y=m?`${u}/${m}`:u;return Er(l(y,g),a({method:h||"PATCH",headers:i(p),body:JSON.stringify(d)}))},delete:({from:u,params:d,headers:f,baseUrl:h})=>{let p=d?.id,g=p?`${u}/${p}`:u;return Er(l(g,h),a({method:"DELETE",headers:s(f)}))}}}});var Zw={};P(Zw,{localAdapter:()=>Kw,setup:()=>BF});var Ah,LF,BF,Kw,Xw=K(()=>{"use strict";Ah=(e,t)=>{if(!t)return!0;for(let r in t){let n=t[r];if(n===null){if(e[r]!==null&&e[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(e[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(e[r]>n[o])||o==="gte"&&!(e[r]>=n[o])||o==="lt"&&!(e[r]<n[o])||o==="lte"&&!(e[r]<=n[o])||o==="neq"&&e[r]===n[o]||o==="like"&&!String(e[r]).includes(n[o]))return!1}else if(e[r]!==n)return!1}return!0},LF=(e,{order:t,limit:r,offset:n,single:o})=>{let s=[...e];if(t){let i=typeof t=="string"?t:t.by,a=t.asc!==!1;s.sort((l,c)=>l[i]<c[i]?a?-1:1:l[i]>c[i]?a?1:-1:0)}return n&&(s=s.slice(n)),r&&(s=s.slice(0,r)),o?{data:s[0]||null,error:null}:{data:s,error:null}},BF=async({data:e,...t})=>Kw(e,t),Kw=(e={},t={})=>{let r={},n={},o=t.persist!==!1&&typeof localStorage<"u",s=t.prefix||"smbls_db_",i=u=>{if(!r[u])if(o)try{let d=localStorage.getItem(s+u);r[u]=d?JSON.parse(d):e[u]||[]}catch{r[u]=e[u]||[]}else r[u]=e[u]||[];return r[u]},a=u=>{if(o)try{localStorage.setItem(s+u,JSON.stringify(r[u]))}catch{}},l=(u,d,f,h)=>{let p=n[u];if(p)for(let g of p)g(f,h,{event:d,table:u})},c=Date.now();return{name:"local",store:r,select:async({from:u,params:d,...f})=>{let p=i(u).filter(g=>Ah(g,d));return LF(p,f)},insert:async({from:u,data:d})=>{let f=i(u),p=(Array.isArray(d)?d:[d]).map(g=>{let m={id:g.id||++c,...g};return f.push(m),m});a(u);for(let g of p)l(u,"INSERT",g,null);return{data:Array.isArray(d)?p:p[0],error:null}},update:async({from:u,data:d,params:f})=>{let h=i(u),p=[];for(let g=0;g<h.length;g++)if(Ah(h[g],f)){let m={...h[g]};Object.assign(h[g],d),p.push(h[g]),l(u,"UPDATE",h[g],m)}return a(u),{data:p,error:null}},delete:async({from:u,params:d})=>{let f=i(u),h=[];for(let p=f.length-1;p>=0;p--)Ah(f[p],d)&&(h.push(f[p]),f.splice(p,1),l(u,"DELETE",null,h[h.length-1]));return a(u),{data:h,error:null}},subscribe:({from:u,on:d},f)=>{n[u]||(n[u]=[]);let h=(p,g,m)=>{d&&d!=="*"&&d!==m.event||f(p,g,m)};return n[u].push(h),()=>{let p=n[u].indexOf(h);p>-1&&n[u].splice(p,1)}}}}});var Ws={};P(Ws,{createAdapter:()=>zF,default:()=>YF,executeFetch:()=>zs,fetchPlugin:()=>Rh,initAdapterAuth:()=>Xl,parseDuration:()=>Ds,queryClient:()=>XF,registerAdapter:()=>NF,resolveDb:()=>tS});var MF,eS,NF,zF,tS,Ds,He,rS,Fs,WF,Ns,Ls,Bs,Kl,Oh,Zl,HF,Yw,Eh,nS,oS,ro,Jw,VF,Qw,qF,Yl,sS,Xl,Ph,dt,Rt,Ms,an,Xt,Tr,UF,GF,KF,Th,ZF,zs,XF,Rh,YF,ln=K(()=>{"use strict";F();MF=["select","rpc","insert","update","delete","subscribe"],eS={supabase:()=>Promise.resolve().then(()=>(Vw(),Hw)),rest:()=>Promise.resolve().then(()=>(Gw(),Uw)),local:()=>Promise.resolve().then(()=>(Xw(),Zw))},NF=(e,t)=>{eS[e]=t},zF=e=>{let t={};for(let r of MF)e[r]&&(t[r]=e[r]);return t.name=e.name||"custom",t},tS=async e=>{if(!e)return null;if(typeof e.select=="function")return e;let{adapter:t,...r}=e,n=typeof t=="string"?t:typeof e=="string"?e:null;if(!n)return null;let o=eS[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},Ds=e=>{if(!e)return 0;if(typeof e=="number")return e;let t=e.match(/^(\d+)(ms|s|m|h)$/);if(!t)return 0;let r=parseInt(t[1]),n=t[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},He=new Map,rS=new Map,Fs=new Map,WF=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=qF(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||"")}`;return t?`${n}:${t}`:n},Ns=e=>He.get(e)||null,Ls=(e,t,r)=>{let n=He.get(e),o={data:t,error:r,time:Date.now(),stale:!1};He.set(e,o);let s=rS.get(e);if(s)for(let i of s)O(i)&&i(o);return o},Bs=e=>{if(e){let t=He.get(e);t&&(t.stale=!0);return}for(let[,t]of He)t.stale=!0},Kl=e=>{if(e){He.delete(e);return}He.clear()},Oh=e=>!e&&e!==!1?{staleTime:6e4,gcTime:3e5}:e===!1?null:e===!0?{staleTime:6e4,gcTime:3e5}:typeof e=="number"?{staleTime:e,gcTime:Math.max(e*5,3e5)}:k(e)?{staleTime:Ds(e),gcTime:3e5}:{staleTime:Ds(e.stale||e.staleTime)||6e4,gcTime:Ds(e.gc||e.gcTime||e.expire)||3e5,key:e.key},Zl=null,HF=()=>{Zl||(Zl=setInterval(()=>{let e=Date.now();for(let[t,r]of He){let n=rS.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&He.delete(t)}},3e4),Zl.unref&&Zl.unref())};HF();Yw=3,Eh=e=>Math.min(1e3*2**e,3e4),nS=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:Yw,delay:Eh}:typeof t=="number"?{count:t,delay:Eh}:{count:t.count??Yw,delay:O(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:Eh}},oS=async(e,t)=>{let{count:r,delay:n}=t,o;for(let s=0;s<=r;s++)try{let i=await e();if(i?.error){if(o=i.error,s<r){let a=O(n)?n(s,o):n;await new Promise(l=>setTimeout(l,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=O(n)?n(s,i):n;await new Promise(l=>setTimeout(l,a));continue}throw i}return{data:null,error:o}},ro={focus:new Set,online:new Set},Jw=!1,VF=()=>{if(Jw||typeof window>"u")return;Jw=!0;let e=()=>{for(let r of ro.focus)r()},t=()=>{for(let r of ro.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},Qw=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:"select",query:!0,on:"create"};if(k(e))return{from:e,method:"select",query:!0,on:"create"};if(_(e)){let n={...e};return n.from=n.from||r.__state||t.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},qF=e=>(!e||O(e),e),Yl=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},sS=(e,t,r)=>{let n;if(!e)n=void 0;else if(O(e))n=e(t,t.state);else{n={};for(let o in e){let s=e[o];n[o]=O(s)?s(t,t.state):s}}return n},Xl=async(e,t)=>{if(!e||e.__authInitialized||(e.__authInitialized=!0,!e.getSession))return;let r=(n,o)=>{let s=t.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await e.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}e.onAuthStateChange&&e.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},Ph=async(e,t)=>{if(O(e.select))return e.auth!==!1&&await Xl(e,t),e;if(e.__resolved)return e.auth!==!1&&await Xl(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=tS(e);let r=await e.__resolving;return delete e.__resolving,r?(r.auth=e.auth,r.url=e.url,r.key=e.key,e.__resolved=r,t.fetch=r,e.auth!==!1&&await Xl(r,t),r):null},dt=(e,t,...r)=>{let n=O(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},Rt=(e,t,r,...n)=>{let o=e&&O(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},Ms=e=>{let t={},r=e.node;if(!r)return t;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())t[s]=i;return t}let n=r.querySelectorAll("input, textarea, select");for(let o=0;o<n.length;o++){let s=n[o],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?t[i]=s.checked:s.type==="file"?t[i]=s.files:t[i]=s.value)}return t},an=(e,t,r,n={})=>{let o=r&&r.startsWith("~/"),s=o&&e.state?.root||e.state;if(s?.update)if(o){let i=r.slice(2);t&&typeof t=="object"&&!Array.isArray(t)&&i in t?s.update(t,{preventFetch:!0,...n}):s.update({[i]:t},{preventFetch:!0,...n})}else{let i=r?{[r]:t}:t;s.update(i,{preventFetch:!0,...n})}},Xt=(e,t)=>{let r=e?.__ref;r&&(r.__fetchStatus=t,r.__fetching=t.isFetching,r.__fetchError=t.error)},Tr=async(e,t,r,n={})=>{let o=r?.fetch;if(!o||!t||!t.__ref||e.enabled===!1||O(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||O(e.skip)&&e.skip(t,t.state))return;let s=await Ph(o,r);if(!s||!t.__ref)return;let i=t.__ref,{from:a,method:l,query:c,params:u,cache:d,transform:f,single:h,auth:p,fields:g,as:m,limit:y,offset:b,order:v,headers:x,baseUrl:w,page:E,cursor:A,getNextPageParam:C,getPreviousPageParam:S,infinite:z,placeholderData:re,initialData:G,select:V,keepPreviousData:ve}=e,he=k(V)?V:void 0;if(c&&O(t.getQuery)){let N=t.getQuery(s.name||"paths");N&&(he=N.select||N.length&&N.join(",")||he)}let xe=sS(u,t,r),ge=Oh(d),rr=nS(e),Jr=Yl(t,r),jd=Jr?`:${Jr}`:"",X=ge?d?.key||`${a}:${l}:${JSON.stringify(xe||"")}${z?":infinite":""}${E?":p"+JSON.stringify(E):""}${jd}`:null;if(!i.__fetchInitialized&&X&&(i.__fetchInitialized=!0,G!==void 0)){let N=O(G)?G():G;Ls(X,N,null)}if((l==="select"||l==="rpc")&&X&&ge){let N=Ns(X);if(N&&!N.error){let W=Date.now()-N.time,M=N.stale||W>(ge.staleTime||0),H=N.data;if(O(V)&&(H=V(H,t,t.state)),f&&(H=f(H,t,t.state)),an(t,H,m),!M){Xt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(re!==void 0){let W=O(re)?re(t,t.state):re;W!==void 0&&an(t,W,m)}}if(X&&Fs.has(X)&&!n.force){let N=Fs.get(X);try{let W=await Promise.race([N,new Promise((M,H)=>setTimeout(()=>H("DEDUP_TIMEOUT"),15e3))]);if(W?.data!==void 0){let M=W.data;O(V)&&(M=V(M,t,t.state)),f&&(M=f(M,t,t.state)),an(t,M,m),dt(t,"onFetchComplete",M),Rt(e,t,"onFetchComplete",M)}}catch{}return}let Fd=!Ns(X)?.data;Xt(t,{isFetching:!0,isLoading:Fd,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),dt(t,"onFetchStart"),Rt(e,t,"onFetchStart");let Ee=r?.analyze?.emitNetwork,Qr=Ee?typeof performance<"u"?performance.now():Date.now():0;Ee&&Ee({phase:"start",mode:"query",from:a,method:l,cacheKey:X,lang:Jr});let ie=oS(async()=>{if(p!==!1&&s.auth!==!1&&s.getSession){let H=await s.getSession();if(p===!0&&!H){let Te={message:"Not authenticated"};return Xt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Te,status:"error",fetchStatus:"idle"}),dt(t,"onFetchError",Te),Rt(e,t,"onFetchError",Te),{data:null,error:Te}}}let N=s[l];if(!O(N))return{data:null,error:{message:`Method "${l}" not found on adapter`}};let W={from:a,select:he,params:xe,single:h,limit:y,offset:b,order:v,headers:x,baseUrl:w},M=Yl(t,r);if(M&&(W.headers={...W.headers,"Accept-Language":M}),E!==void 0){if(_(E))E.offset!==void 0&&(W.offset=E.offset),E.limit!==void 0&&(W.limit=E.limit),E.cursor!==void 0&&(W.params={...W.params,cursor:E.cursor});else if(typeof E=="number"){let H=e.pageSize||y||20;W.offset=(E-1)*H,W.limit=H}}if(A!==void 0&&(W.params={...W.params,cursor:A}),l==="insert"||l==="update"||l==="upsert"){let H;if(g===!0||e.on==="submit")H=Ms(t);else if(j(g)){let Te=Ms(t);H={};for(let ol of g)H[ol]=Te[ol]}else t.state?.parse?H=t.state.parse():_(t.state)&&(H={...t.state});f&&(H=f(H,t,t.state)),W.data=H}if(l==="rpc"){let H=xe;if(e.on==="submit"){let Te=Ms(t);H=e.transformParams?e.transformParams(Te,t,t.state):Te}W.params=H}if(l==="subscribe"){let H=s.subscribe({from:a,params:xe,on:e.subscribeOn},(Te,ol,Tz)=>{an(t,Te,m),dt(t,"onFetchComplete",Te),Rt(e,t,"onFetchComplete",Te)});return i.__unsubscribe=H,{data:null,error:null,subscribed:!0}}return N(W)},rr);X&&Fs.set(X,ie);try{let N=await ie;if(N?.subscribed)return;let{data:W,error:M}=N||{};if(M){X&&Ls(X,null,M),Xt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:M,status:"error",fetchStatus:"idle"}),dt(t,"onFetchError",M),Rt(e,t,"onFetchError",M),Ee&&Ee({phase:"error",mode:"query",from:a,method:l,cacheKey:X,error:M.message||M,durationMs:(typeof performance<"u"?performance.now():Date.now())-Qr});return}if(W!==void 0){if((l==="select"||l==="rpc")&&X){let Te=Ls(X,W,null);Te.gcTime=ge?.gcTime||3e5}let H=W;z&&j(W)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(W):i.__pages.push(W),H=i.__pages.flat(),C&&(i.__nextPageParam=C(W,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),S&&(i.__prevPageParam=S(W,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),O(V)&&(H=V(H,t,t.state)),f&&(H=f(H,t,t.state)),(!ve||H!==void 0)&&an(t,H,m),Xt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),dt(t,"onFetchComplete",H),Rt(e,t,"onFetchComplete",H),Ee&&Ee({phase:"success",mode:"query",ok:!0,from:a,method:l,cacheKey:X,durationMs:(typeof performance<"u"?performance.now():Date.now())-Qr})}}catch(N){Xt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:N,status:"error",fetchStatus:"idle"}),dt(t,"onFetchError",N),Rt(e,t,"onFetchError",N),Ee&&Ee({phase:"error",mode:"query",from:a,method:l,cacheKey:X,error:N.message||String(N),durationMs:(typeof performance<"u"?performance.now():Date.now())-Qr})}finally{X&&Fs.delete(X)}},UF=(e,t,r)=>{let n=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=e.__runner||Tr;if(n==="submit"){let i=l=>{l.preventDefault(),s(e,t,r)},a=t.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(e,t,r),a=t.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(e,t,r))},GF=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),VF();let o=e.refetchInterval;if(o){let s=typeof o=="number"?o:Ds(o);if(s>0){let i=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&Tr(e,t,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(e.refetchOnWindowFocus!==!1){let s=()=>{let i=Yl(t,r),a=WF(e,i),l=Ns(a),c=Oh(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&Tr(e,t,r,{force:!0})};ro.focus.add(s),n.__fetchCleanups.push(()=>ro.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>Tr(e,t,r,{force:!0});ro.online.add(s),n.__fetchCleanups.push(()=>ro.online.delete(s))}},KF=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,s=e.state?.parse?e.state.parse():_(e.state)?{...e.state}:e.state;n.__optimisticSnapshot=s;let i=O(t.optimistic)?t.optimistic(r,s,e):t.optimistic;return i!==void 0&&an(e,i,o),s},Th=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(an(e,n,t.as),delete r.__optimisticSnapshot)},ZF=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await Ph(n,r);if(!o)return;let s=t.__ref,{method:i,from:a,fields:l,transform:c,as:u,on:d,auth:f,headers:h,baseUrl:p,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:v,onSettled:x}=e,w;if(l===!0||d==="submit")w=Ms(t);else if(j(l)){let S=Ms(t);w={};for(let z of l)w[z]=S[z]}else t.state?.parse?w=t.state.parse():_(t.state)&&(w={...t.state});c&&(w=c(w,t,t.state)),O(y)&&y(w,t,t.state);let E=m?KF(t,e,w):null;s.__fetching=!0,Xt(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),dt(t,"onFetchStart"),Rt(e,t,"onFetchStart");let A=r?.analyze?.emitNetwork,C=A?typeof performance<"u"?performance.now():Date.now():0;A&&A({phase:"start",mode:"mutation",from:a,method:i});try{if(f!==!1&&o.auth!==!1&&o.getSession){let xe=await o.getSession();if(f===!0&&!xe){E!==void 0&&Th(t,e);let ge={message:"Not authenticated"};dt(t,"onFetchError",ge),Rt(e,t,"onFetchError",ge);return}}let S=o[i];if(!O(S))return;let z={from:a,data:w,headers:h,baseUrl:p};e.params&&(z.params=sS(e.params,t,r));let re=Yl(t,r);re&&(z.headers={...z.headers,"Accept-Language":re});let G=nS(e),V=await oS(()=>S(z),G),{data:ve,error:he}=V||{};if(he){E!==void 0&&Th(t,e),Xt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:he,status:"error",fetchStatus:"idle"}),dt(t,"onFetchError",he),O(v)&&v(he,w,t),O(x)&&x(null,he,w,t),A&&A({phase:"error",mode:"mutation",from:a,method:i,error:he.message||String(he),durationMs:(typeof performance<"u"?performance.now():Date.now())-C});return}if(delete s.__optimisticSnapshot,ve!==void 0){let xe=u?{[u]:ve}:ve;t.state?.update&&t.state.update(xe,{preventFetch:!0})}if(Xt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),dt(t,"onFetchComplete",ve),Rt(e,t,"onFetchComplete",ve),O(b)&&b(ve,w,t),O(x)&&x(ve,null,w,t),A&&A({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-C}),g){let xe=j(g)?g:[g];for(let ge of xe)if(ge===!0||ge==="*")for(let[rr]of He)rr.startsWith(a+":")&&Bs(rr);else Bs(ge)}}catch(S){E!==void 0&&Th(t,e),Xt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:S,status:"error",fetchStatus:"idle"}),dt(t,"onFetchError",S),Rt(e,t,"onFetchError",S),O(v)&&v(S,w,t),O(x)&&x(null,S,w,t),A&&A({phase:"error",mode:"mutation",from:a,method:i,error:S.message||String(S),durationMs:(typeof performance<"u"?performance.now():Date.now())-C})}finally{s.__fetching=!1}},zs=(e,t,r,n)=>{if(!e||!n?.fetch)return;let s=le(e,t);if(!s)return;let i=j(s)?s.map(l=>Qw(le(l,t),t)).filter(Boolean):[Qw(s,t)].filter(Boolean);for(let l of i){let c=l.method==="insert"||l.method==="update"||l.method==="upsert"||l.method==="delete",u=c?ZF:Tr;l.on==="create"?u(l,t,n):Promise.resolve().then(()=>{UF({...l,__runner:u},t,n)}),!c&&l.on==="create"&&(l.refetchInterval||l.refetchOnWindowFocus!==!1||l.refetchOnReconnect!==!1)&&GF(l,t,n)}let a=t.__ref;a.refetch=l=>{for(let c of i)Tr(c,t,n,{force:!0,...l})},a.fetchNextPage=()=>{let l=i[0];if(!l||!l.infinite)return;let c=a.__nextPageParam;if(c==null)return;let u={...l,cursor:c};Tr(u,t,n,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let l=i[0];if(!l||!l.infinite)return;let c=a.__prevPageParam;if(c==null)return;let u={...l,cursor:c};Tr(u,t,n,{direction:"previous",force:!0})}},XF={invalidateQueries:e=>{if(!e){Bs();return}if(k(e))for(let[t]of He)(t.startsWith(e)||t.includes(e))&&Bs(t);else if(j(e)){let t=e.join(":");for(let[r]of He)r.includes(t)&&Bs(r)}},removeQueries:e=>{if(!e){Kl();return}if(k(e))for(let[t]of He)(t.startsWith(e)||t.includes(e))&&Kl(t)},getQueryData:e=>Ns(e)?.data??void 0,setQueryData:(e,t)=>{let r=Ns(e),n=O(t)?t(r?.data):t;Ls(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await Ph(r,t);if(!n)return;let o=e.cache?.key||`${e.from}:${e.method||"select"}:${JSON.stringify(e.params||"")}`,s=n[e.method||"select"];if(!O(s))return;let i=await s({from:e.from,params:e.params,limit:e.limit,offset:e.offset,order:e.order,single:e.single});if(i?.data!==void 0&&!i?.error){let a=Ls(o,i.data,null);a.gcTime=Oh(e.cache)?.gcTime||3e5}return i},getCache:()=>He,clear:()=>Kl(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of He)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||Kl(r))}},Rh={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||Fs.clear(),zs(t,e,e.state,e.context))}},YF=zs});function Vs(e){let t=this,{__ref:r}=t,n=[].concat(e),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",t.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function Ih(e){let t=this,{parent:r}=t;if(O(e))return r.state&&e(r,r.state,r.context)?r:r.parent?r.lookup(e):void 0;if(t[e])return t[e];for(;r.param!==e;){if(r[e])return r[e];if(r=r.parent,!r)return}return r}function jh(e){let t=this,{__ref:r}=t,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=t[s];if(s===e)return i;if(O(e)){let l=e(i,i.state,i.context);if(i.state&&l)return i}let a=i?.lookdown?.(e);if(a)return a}}function Fh(e,t=[]){let r=this,{__ref:n}=r,o=n?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=r[i];if(i===e)t.push(a);else if(O(e)){let l=e(a,a.state,a.context);a.state&&l&&t.push(a)}a?.lookdownAll?.(e,t)}return t.length?t:void 0}}function Jl(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(_(n)&&o)Jl.call(o,n);else if(n!=null){let s=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(n).replace(/\s*!important\s*$/,"");t.node.style.setProperty(s,i,"important")}}return t}}function aS(e){let t=this;if(Ar("beforeRemove",t,e)===!1)return t;O(t.node.remove)?t.node.remove():kr()||(console.warn("This item cant be removed"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=ss(t.parent.__ref.__children,t.key)),Ar("remove",t,e)}function Dh(e){return this[e]}function Lh(e,t){let r=this;if(e)return r.update(e,t),r}function Bh(e){return e?this.__ref&&this.__ref[e]:this.__ref}function qs(){return this.getRef("__children").map(e=>this[e])}function Us(){return this.getRef().path}function Ks(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=iS();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=O(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=iS()),e?t?.[e]:t}function Zs(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function Xs(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function Ys(e){let t=this.getRoot()?.context;return e?t[e]:t}function Js(e){let t=this.context;return e?t[e]:t}function Ql(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||Sr.has(r)&&!us.has(r)||t.push(r);return t}function ec(e=[]){let t=this,r={},n=Ql.call(t),o=n.includes("children"),s=e.length?new Set(e):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(t,a)||o&&a==="content")continue;let l=t[a];if(a==="state"){if(t.__ref&&!t.__ref.__hasRootState)continue;let c=O(l&&l.parse)?l.parse():l;r[a]=O(c)?c:JSON.parse(JSON.stringify(c||{}))}else if(a==="scope"){if(t.__ref&&!t.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(l||{}))}else if(a==="props"){let{__element:c,update:u,...d}=t[a];r[a]=d}else Ne(l)&&Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=l)}return r}function Hs(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=ec.call(r,e),o=e.length?new Set(e):null;for(let s in n){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=n[s];Array.isArray(i)?n[s]=i.map(a=>Q(a)?Hs.call(a,e,t):a):Q(i)&&(n[s]=Hs.call(i,e,t))}return n}function no(...e){if(Or!=="test"&&Or!=="development")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(n=>console.log(`%c${n}:
|
|
15
|
-
`,"font-weight: bold",t[n])):(console.log(r.path),t.keys().forEach(
|
|
16
|
-
${
|
|
10
|
+
`}return o+=`${n}}`,o},DR=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],LR=/^["[{]/,Vn=e=>{if(!e)return!1;let t=e.trim().replace(/\n\s*/g," ").trim();if(t===""||t==="{}"||t==="[]"||!DR.some(s=>s.test(t)))return!1;let n=t.charCodeAt(0),o=t.includes("=>");return!(n===123&&!o||n===91||LR.test(t)&&!o)},MR=e=>(0,eval)(e),lt=(e,t={},r={window:{eval:MR}})=>{for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let o=e[n];if(C(o))if(Vn(o))try{t[n]=r.window.eval(`(${o})`)}catch(s){typeof console<"u"&&console.warn&&console.warn('[smbls] deepDestringifyFunctions: eval failed on "'+n+'" \u2014 function will be left as a string and el.call("'+n+'") will silently no-op. Reason: '+(s&&s.message?s.message:String(s))+`.
|
|
11
|
+
First 200 chars of source: `+String(o).slice(0,200)),t[n]=o}else t[n]=o;else if($(o)){let s=t[n]=[];for(let i=0;i<o.length;i++){let a=o[i];if(C(a))if(Vn(a))try{s.push(r.window.eval(`(${a})`))}catch(l){typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed in array at index ${i} (prop "${n}"). Reason: ${l&&l.message?l.message:String(l)}.
|
|
12
|
+
First 200 chars: ${String(a).slice(0,200)}`),s.push(a)}else s.push(a);else w(a)?s.push(lt(a)):s.push(a)}}else w(o)?t[n]=lt(o,t[n]):t[n]=o}return t},ls=e=>{if(!e||typeof e!="object")return e;let t={},r=[];for(let n of Object.keys(e)){let o=e[n];C(o)&&Vn(o)?r.push([n,o]):t[n]=o}for(let[n,o]of r)try{let s=Object.keys(t).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
|
|
13
|
+
`);t[n]=A.eval(`(function(__gs__) { ${s}
|
|
14
|
+
return (${o}); })`)(t)}catch{try{t[n]=A.eval(`(${o})`)}catch{t[n]=o}}return t},tp=(e,t={verbose:!0})=>{try{return e?A.eval("("+e+")"):{}}catch(r){t.verbose&&console.warn(r)}},rp=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),il=e=>{for(let t in e)return!1;return!0},np=e=>w(e)&&il(e),op=()=>Object.create(null),cs=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in t)n.includes(s)||!o&&en(s)||s==="constructor"||s==="prototype"||t[s]!==void 0&&(e[s]=t[s]);return e},tn=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)en(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(e[o]=t[o]);return e},Ke=(e,t,r={},n=new WeakMap)=>{if(!Q(e)||!Q(t)||He(e)||He(t))return t;if(n.has(e))return n.get(e);n.set(e,e);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a)||s&&s.has(a)||i&&en(a)||a==="constructor"||a==="prototype")continue;let l=e[a],c=t[a];He(c)?e[a]=c:Q(l)&&Q(c)?e[a]=Ke(l,c,r,n):c!==void 0&&(e[a]=c)}return e},al=(e,t,r=new Set)=>{if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e===t;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(t,i)||!al(e[i],t[i],r))return!1}return!0},NR=new Set(["node","__ref"]),sp=(e,t,r=NR)=>{if(e===t)return!0;if(!Q(e)||!Q(t)||He(e)||He(t))return e===t;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function s(i,a){if(o.has(a))return!0;o.add(a);for(let l in a){if(!Object.prototype.hasOwnProperty.call(a,l)||n.has(l))continue;if(!Object.prototype.hasOwnProperty.call(i,l))return!1;let c=a[l],u=i[l];if(He(c)||He(u)){if(c!==u)return!1}else if(Q(c)&&Q(u)){if(!s(u,c))return!1}else if(c!==u)return!1}return!0}return s(e,t)},ip=(e,t)=>{if(t==null)return e;if(Ge(t)("string","number"))delete e[t];else if($(t))for(let r=0;r<t.length;r++)delete e[t[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return e},ll=e=>{if(e===null||typeof e!="object")return e;let t=Object.create(null);for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=ll(e[r]));return t},ap=(e,t)=>{if(e.length===0)return t;let r={},n=r;for(let o=0;o<e.length;o++)o===e.length-1&&t?n[e[o]]=t:(n[e[o]]={},n=n[e[o]]);return r},lp=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let o=0;o<t.length-1;o++){if(r[t[o]]===void 0)return;r=r[t[o]]}let n=t[t.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},cp=(e,t,r)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let n=e;for(let o=0;o<t.length-1;o++)(!n[t[o]]||typeof n[t[o]]!="object")&&(n[t[o]]={}),n=n[t[o]];return n[t[t.length-1]]=r,e},up=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let n=0;n<t.length;n++){if(r==null)return;r=r[t[n]]}return r},fp=e=>{let r=[],n=0;for(let o=0;o<e.length;o++)if(r.length<2)r.push(e[o]);else if(e[o]===r[o%2]?n++:(r=[e[o-1],e[o]],n=1),n>=20)return(kv==="test"||kv==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},dp=e=>{let t=new WeakSet;function r(n){if(n&&typeof n=="object"){if(t.has(n))return!0;t.add(n);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return console.log(n,"cycle at "+o),!0}return!1}return r(e)},pp=(e,t)=>{let r=t instanceof Set?t:new Set(t),n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&!r.has(o)&&(n[o]=e[o]);return n}});var us,fs,ds,cl=q(()=>{"use strict";rr();us=(function(){let e=0;function t(){return e++,e}return t})(),fs=us,ds=(e,t,r)=>(le(r,e)||r||e.key||us()).toString()});var kt,hp,_r,ul,gp,mp,yp,wr,bp,rn,xp=q(()=>{"use strict";kt="production",hp=kt,_r=(e=kt)=>e==="production",ul=(e=kt)=>e==="testing"||e==="test",gp=ul,mp=(e=kt)=>e==="staging",yp=(e=kt)=>e==="local",wr=(e=kt)=>e==="development"||e==="dev"||e==="local",bp=(e,t=kt)=>t[e],rn=(e=kt)=>!_r(e)});function ps(e,t,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||e.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,t),a&&e.apply(o,s)}}function Sp(e,t=window){let r=function(){return e.apply(t,arguments)};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var vp,_p,BR,wp,zn,Wn,Ct,Un=q(()=>{"use strict";vp=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},_p=e=>{let t={};return(...r)=>{let n=r[0];if(n in t)return t[n];{let o=e(n);return t[n]=o,o}}},BR=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,wp=e=>BR.test(e),zn=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},Wn=(e,t)=>{if(typeof e=="function")return e;let r=t?.context?.plugins;if(!r)return e;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(e,t);if(typeof o=="function")return o}return e},Ct=(e,t,...r)=>{let n=t?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[e]=="function"&&(s[e](t,...r),o=!0);return o}});var kp,Av=q(()=>{"use strict";Re();rr();kp=(e,t)=>{let{__ref:r}=e,n=e.if;if(E(n)){let o;try{o=n(e,e.state,e.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete r.__if;return}o?r.__if=!0:delete r.__if}else n!=null&&typeof n=="object"?le(n,e)?r.__if=!0:delete r.__if:r.__if=!0}});var Cp,Ap,Ev=q(()=>{"use strict";Cp=(e,...t)=>{e&&t.map(r=>console.log(r))},Ap=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function Rp(e){let t;try{if(!window.localStorage)return;t=window.localStorage.getItem(e)}catch{return}if(t!==null)try{return JSON.parse(t)}catch{return}}function $p(e,t){if(t!=null)try{if(!window.localStorage)return;let r=typeof t=="object"?JSON.stringify(t):t;window.localStorage.setItem(e,r)}catch{}}var Ep,Op,Tp,Pp,Ov=q(()=>{"use strict";Re();Ko();Ep=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Op=(e,t,r=365)=>{if(Pe(ce)||Pe(ce.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;ce.cookie=`${e}=${t};${o};path=/`},Tp=e=>{if(Pe(ce)||Pe(ce.cookie))return;let t=`${e}=`,n=decodeURIComponent(ce.cookie).split(";");for(let o=0;o<n.length;o++){let s=n[o];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(t)===0)return s.substring(t.length,s.length)}return""},Pp=e=>{Pe(ce)||Pe(ce.cookie)||(ce.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var Hn,Tv,Ip,Fp=q(()=>{"use strict";Hn={root:["body","html"],head:["title","base","meta","style","noscript","script"],body:new Set(["string","style","fragment","a","abbr","acronym","address","applet","area","article","aside","audio","b","basefont","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","search","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","hgroup","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","template","hgroup","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr","svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"])},Tv=new Set(["svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"]),Ip=e=>Hn.body.has(e)});var jp,Pv,qn,ms,Xe,Dp,fl,ys,Lp,bs,dl,pl,xs,hl,Gn,VR,Wt,Rv,hs,vs,Mp,gs,Np,Bp,gl,ml,yl,bl,xl,vl,$v,_l=q(()=>{"use strict";Mn();Vp();rr();Re();jp="production",Pv=e=>e.sourcemap!==!1&&jp!=="production",qn=e=>{if(e.includes("+"))return e.split("+").filter(Ut);if(e.includes("_")){let[t]=e.split("_");return[t]}if(e.includes(".")&&!Ut(e.split(".")[1])){let[t]=e.split(".");return[t]}return[e]},ms=(e,t,r)=>{let n=[],o=qn(r);o&&(n=[...o]);let s=e.extends;return s&&(n=$(s)?[...n,...s]:[...n,s]),n},Xe=(e,t)=>{let{__ref:r}=t,{__extends:n}=r;if(!e)return n;let o=t.variant,s=t.context;if(o&&s?.components&&!Array.isArray(e)&&typeof e=="string"){let i=`${e}.${o}`;s.components[i]&&(e=i)}return n.includes(e)||(n=Array.isArray(e)?[...n,...e]:[...n,e],r.__extends=n),n},Dp=(e,t)=>{if(!e)return t;let{extends:r}=t,n=$(r)?r:[r],o=$(e)?e:[e];return{...t,extends:Dn(o,n)}},fl=()=>Math.random().toString(36).substring(2),ys={},Lp={},bs=e=>ys[e.__hash],dl=(e,t)=>{let r=fl();return C(e)||(e.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(ys[r]=t),t},pl=(e,t)=>e.__hash?t.concat(bs(e)):dl(e,t),xs=(e,t,r,n=new Set,o,s)=>{for(let i of e)$(i)?xs(i,t,r,n,o,s):Gn(i,t,r,n,o,void 0,s);return t},hl=(e,t,r,n=new Set,o,s,i)=>{let a=e.extends,l={...e};delete l.extends;let c=!1;for(let u in l){c=!0;break}return c&&(t.push(l),o&&o.push(s)),a&&Gn(a,t,r,n,o,s,i),t},Gn=(e,t,r,n=new Set,o,s,i)=>{if(!e||n.has(e))return t;if($(e))return xs(e,t,r,n,o,i);let a=s;return C(e)?(a=e,e=vs(e,r)):i&&w(e)&&i.has(e)&&(a=i.get(e)),n.add(e),e?.extends?hl(e,t,r,n,o,a,i):e&&(t.push(e),o&&o.push(a)),t},VR=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),Wt=(e,t,r,n,o)=>{t=ue(t);for(let s in t){if(VR.has(s))continue;let i=e[s],a=t[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(t,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)e[s]=a,r&&n?w(a)&&!$(a)?(r[s]=r[s]||{},Rv(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(w(i)&&w(a)){let l=r?r[s]=r[s]||{}:void 0,c=o?.[s];Ut(s)?e[s]=Wt(i,a,l,n,c):Wt(i,a,l,n,c)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if($(i)&&$(a))e[s]=i.concat(a);else if($(i)&&w(a)){let l=Wt({},i);e[s]=Wt(l,a)}}}}return e},Rv=(e,t,r,n)=>{if(n||(n=new WeakSet),!n.has(t)){n.add(t);for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=t[o];w(s)&&!$(s)?(e[o]=e[o]||{},Rv(e[o],s,r,n)):e[o]=r}}},hs=(e,t,r)=>e.reduce((n,o,s)=>{let i=ue(o),a=r?r[s]:void 0;return Wt(n,i,t,a)},{}),vs=(e,t,r={},n)=>{let o=t?.components||r.components,s=t?.pages||r.pages;if(C(e)){let i=o&&(o[e+"."+n]||o[e]||o["smbls."+e]),a=s&&e.charCodeAt(0)===47&&s[e];if(i)return i;if(a)return a;r.verbose&&(jp==="test"||jp==="development")&&console.warn("Extend is string but component was not found:",e);return}return e},Mp=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),gs=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return bs(e)||[];let s=Gn(e,[],t,new Set,r,void 0,n);return r?s:pl(e,s)},Np=(e,t)=>{if(!e)return t;let r=$(e)?e:[e];return Dn(r,t)},Bp=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(Ut(o)&&t.push(o),o==="extends"&&(typeof n[o]=="string"?t.push(n[o]):Array.isArray(n[o])&&(t=t.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(e),t},gl=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant;if(e.extends)if(Array.isArray(e.extends)&&e.extends.length>0){let[i,...a]=e.extends;if(typeof i=="string"&&s&&o?.components){let l=`${i}.${s}`;o.components[l]?Xe([l,...a],e):Xe(e.extends,e)}else Xe(e.extends,e)}else if(typeof e.extends=="string"&&s&&o?.components){let i=`${e.extends}.${s}`;o.components[i]?Xe(i,e):Xe(e.extends,e)}else Xe(e.extends,e);return ml(e,t,r),yl(e,t,r),bl(e,t,r),e.component&&Xe(le(e.component,e),e),o.defaultExtends&&Xe(o.defaultExtends,e),Ln(n.__extends)},ml=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Xe(t.childProps.extends,e),n.__extends},yl=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,s=t.childExtends;return!o&&s&&Xe(s,e),n.__extends},bl=(e,t,r={})=>{let{__ref:n}=e,o=t.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||e.ignoreChildExtendsRecursive,i=e.key==="__text";return o&&!i&&!s&&Xe(o,e),n.__extends},xl=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant,i=Pv(r),a=i?[...n.__extends]:null,l=Ln(n.__extends.map((c,u)=>vs(c,o,r,u===0&&s)));if(i){let c=new WeakMap;for(let f=0;f<l.length;f++){let p=l[f],h=a[f];p&&w(p)&&C(h)&&c.set(p,h)}let u=[],d=gs(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=gs(l,o);n.__extendsStack=c}return n.__extendsStack},vl=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(Pv(r)){let s={},i=n.__extendsNames||[],a=hs(o,s,i),l={};Wt(e,a,l,void 0,s),n.__sourcemap=l}else{let s=hs(o);Wt(e,s)}return e},$v=(e,t,r={})=>(gl(e,t,r),xl(e,t,r),vl(e,t,r),e)});function zp(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function Wp(e){return Object.keys(e).filter(t=>/^\d+$/.test(t))}function Up(e,t,r){let{context:n}=t||{},[o]=qn(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var Ut,Vp=q(()=>{"use strict";_l();Re();Ut=e=>{if(!C(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function Iv(e,t){let{props:r,on:n}=t,o=Jr(e.split("on")[1]),s=n[o],i=r[e];E(s)?n[o]=(...a)=>{if(s(...a)!==!1&&E(i))return i(...a)}:n[o]=i}var Fv=q(()=>{"use strict";ns();Re()});function wl(e,t={}){let r=t.cachedKeys||[];for(let n in e){let o=e[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(E(o)||o!=null&&zn(this.context))){let h=Jr(n.slice(2));e.on&&(e.on[h]=o),delete e[n];continue}if(n==="childProps"){e.props[n]=o,delete e[n],r.push(n);continue}let a=this.define?.[n],l=this.context?.define?.[n],c=w(a)||E(a),u=w(l)||E(l);if(c||u)continue;let d=n.charAt(0);if(Dv.has(d)){e.props[n]=o,delete e[n],r.push(n);continue}let f=Hp.test(n)||jv.test(n)||WR(o),p=xr.has(n);!f&&!p&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function Sl(e=this,t){let r=t.cachedKeys||[];for(let n in e.props){let o=e.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=E(o)||o!=null&&zn(this.context);if(s&&i){Iv(n,e),delete e.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(Dv.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=w(l)||E(l),d=w(c)||E(c),f=Hp.test(n)||jv.test(n),p=xr.has(n);(f||p||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function kl(e=this){let t=[];return wl.call(this,e,{cachedKeys:t}),Sl.call(this,e,{cachedKeys:t}),e}function qp(e={}){return e.on||(e.on={}),e.props||(e.props={}),kl.call(this,e)}function Kp(e,t){this.__element.update({props:e},t)}function Cs(e){let t={update:Kp.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var Hp,jv,Dv,zR,WR,Ss,_s,Gp,ks,As,Es,Cl,ws,Xp,Yp,Zp=q(()=>{"use strict";Bn();Fv();rr();Re();ns();Un();Hp=/^[A-Z]/,jv=/^\d+$/,Dv=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),zR=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),WR=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;for(let t in e)if(zR.has(t)||Hp.test(t))return!0;return!1},Ss=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return Q(n)?{...n}:(o.__propsStack.push(n),{})};_s=e=>Ge(e)("string","number")?{inheritedString:e}:e,Gp=(e,t)=>!e||!t.length?!1:t.includes(e),ks=(e,t)=>{let{__ref:r}=e,n=r.__propsStack||[],o=t.props;if(!o)return n;let s=o[e.key],i=o.childProps||t.childProps,a=e.props?.ignoreChildProps;if(i&&!a){let l=_s(i);n.unshift(l)}if(s){let l=_s(s);n.unshift(l)}return n};As=e=>{let t=new Set;return e.filter(r=>!r||vr.has(r)||t.has(r)?!1:(t.add(r),!0))},Es=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(vr.has(o))return n;for(;E(o);)o=le(o,t);return ae(n,ue(o,{exclude:vr}))},{}),Cs(t),t.props),Cl=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...ks(e,t)]),w(r)?o.push(r):r==="inherit"&&t?.props?o.push(t.props):r&&o.push(r),$(n.__extendsStack))for(let s=0;s<n.__extendsStack.length;s++){let i=n.__extendsStack[s];i.props&&i.props!==r&&o.push(i.props)}return n.__propsStack=As(o),n.__propsStack},ws=(e,t)=>{let{__ref:r}=e,n=Cl(e,t);n.length?Es(n,e):(r.__propsStack=[],e.props={})},Xp=function(e,t,r){let{__ref:n}=e;if(n.__if)ws(e,t);else try{ws(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),e.props={},n.__propsStack=[]}return Cs(e),e},Yp=(e,t,r)=>{let{__ref:n}=t,s=[...n.__propsStack||[]],i=ks(t,r);return i.length&&(s=[...i,...s]),e&&(s=[e,...s]),n.__propsStack=As(s),n.__propsStack.length&&Es(n.__propsStack,t),t}});var Lv,Al,El,Ol,Tl,Jp,Pl,Rl,$l,Qp,Mv=q(()=>{"use strict";_l();cl();Yo();Zp();Fp();Re();Lv="production",Al=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,s=Hn.body.has(r)&&r;return{text:e,tag:n||o||s||"string"}},El=(e,t,r)=>{if(e===void 0)return(Lv==="test"||Lv==="development")&&console.warn(r,"element is undefined in",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Ge(e)("string","number")?Al(e,t,r):E(e)?{props:e}:e},Ol=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},Tl=(e,t,r,n,o)=>{if(!t)return o;if(tr(t)){let s={key:":root",node:t};return o[`${r}_parent`]=s,s}return t},Jp=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===":root";r?.root||(r.root=o?e:n?.root)},Pl=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},Rl=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),$l=(e,t,r)=>{let n=Ol(e,t);return e.__ref=n,n.__defineCache||(n.__defineCache={}),n.__exec||(n.__exec={}),n.__execProps||(n.__execProps={}),n.__class||(n.__class={}),n.__classNames||(n.__classNames={}),n.__attr||(n.__attr={}),n.__changes||(n.__changes=[]),n.__children||(n.__children=[]),n.__extends=ms(e,t,r),n.path=Pl(e,t,r),n},Qp=(e,t,r,n,o)=>{let i=e?.__hash?{extends:[e]}:El(e,t,r);if(!i)return;let a=Tl(i,t,r,n,o),l=ds(i,a,r);$l(i,a,l);let c=Ss(i,a,l),u=Rl(i,a,l,n,o),d=i.on||{};return{...i,key:l,props:c,parent:a,context:u,on:d}}});var eh,Il,Fl,jl,Dl,th,Ll,rh,nh,oh,sh,Nv=q(()=>{"use strict";Mn();Bn();rr();Re();eh=e=>{let{state:t,props:r,__ref:n}=e,o=r?.state||t;return Ge(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=e.key,{}):o?(n.__hasRootState=!0,o):!1},Il=(e,t)=>{if(!e.includes("~/"))return;if(e.split("~/").length>1)return t.root},Fl=(e,t)=>{if(!e.includes("../"))return;let n=e.split("../").length-1;for(let o=0;o<n;o++){if(!t.parent)return null;t=t.parent}return t},jl=(e,t,r={})=>{let n=C(e)?e.split("/"):[e],o=n.length-1;for(let s=0;s<o;s++){let i=n[s],a=n[s+1];if(i==="__proto__"||a==="__proto__")return;let l=t[i];l||(l=t[i]={}),l[a]||(l[a]={}),e=a,t=l}return r.returnParent?t:t[e]},Dl=(e,t,r={})=>{let o=e.__ref.__state;if(!Ll(e))return;let s=Il(o,t.state),i=t.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=Fl(o,t.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return jl(o,i,r)},th=(e,t)=>{let r=e.__ref,n=Dl(e,t);if(n===void 0)return e.state;if(Ge(n)("object","array"))return ue(n);if(Ge(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},Ll=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Ge(r)("number","string","boolean"))},rh=function(e){return Q(e)?!!(e.update&&e.parse&&e.clean&&e.create&&e.parent&&e.destroy&&e.rootUpdate&&e.parentUpdate&&e.keys&&e.values&&e.toggle&&e.replace&&e.quietUpdate&&e.quietReplace&&e.add&&e.apply&&e.applyReplace&&e.setByPath&&e.setPathCollection&&e.removeByPath&&e.removePathCollection&&e.getByPath&&e.applyFunction&&e.__element&&e.__children):!1},nh=(e,t)=>{if(!e)return t||{};let r=e.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?t||{}:{},o=o[r[i]];return n},oh=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=ue(n,Qr),s={[e.key]:o},i=w(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?es(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},sh=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){ae(e,t,Qr);return}(o?tn:Ke)(e,t,Qr)}});var ih,Bv=q(()=>{"use strict";ih=(e,t)=>{let{__ref:r}=e,n=e.context||t.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=t.scope||r.root?.scope,s=n?.globalScope;if(!e.scope)o?e.scope=o:s?e.scope=Object.create(s):e.scope={};else if(typeof e.scope=="object"&&e.scope!==null&&Object.getPrototypeOf(e.scope)===Object.prototype){let i=o||s;i&&Object.setPrototypeOf(e.scope,i)}}});var Vv,Ml,Sr,Nl,ah,lh=q(()=>{"use strict";Re();Un();Vv=(e,t)=>{let r="on"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},Ml=(e,t,r,n,o)=>{if(e=Wn(e,t),!!E(e))try{let s=e.call(t,t,r||t.state,n||t.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{t.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(t.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),t.context?.strictMode)throw s}},Sr=(e,t,r)=>{if(!t)throw new Error("Element is required");Ct(e,t,r);let n=Vv(e,t);if(n){let{state:o,context:s}=t;return Ml(n,t,o,s,r)}},Nl=(e,t,r,n,o,s)=>{if(e=Wn(e,r),!!E(e))try{let i=e.call(r,t,r,n||r.state,o||r.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{r.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(r.error=i,console.error("[DOMQL] Event update error:",i),r.context?.strictMode)throw i}},ah=(e,t,r,n)=>{Ct(e,r,t,n);let o=Vv(e,r);if(o){let{state:s,context:i}=r;return Nl(o,t,r,s,i,n)}}});var ch,Os,uh=q(()=>{"use strict";ch={},Os={}});var Uv={};G(Uv,{setup:()=>HR,supabaseAdapter:()=>Wv});var zv,UR,HR,fh,qR,Wv,Hv=q(()=>{"use strict";zv=new Map,UR=(e,t,r)=>`${e}|${t}|${r?"off":"on"}`,HR=async({url:e,key:t,projectId:r,createClient:n,auth:o,retry:s,adapter:i,...a})=>{let l=e||r&&`https://${r}.supabase.co`;if(!l||!t)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let c=UR(l,t,o===!1),u=zv.get(c);return u||(u=await n(l,t,a),u?.auth&&zv.set(c,u)),!u||!u.auth?null:Wv(u)},fh=(e,t)=>{if(!t)return e;for(let r in t){let n=t[r];if(n===null)e=e.is(r,null);else if(Array.isArray(n))e=e.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?e=e.gt(r,n[o]):o==="gte"?e=e.gte(r,n[o]):o==="lt"?e=e.lt(r,n[o]):o==="lte"?e=e.lte(r,n[o]):o==="neq"?e=e.neq(r,n[o]):o==="like"?e=e.like(r,n[o]):o==="ilike"?e=e.ilike(r,n[o]):o==="in"?e=e.in(r,n[o]):o==="is"?e=e.is(r,n[o]):o==="contains"?e=e.contains(r,n[o]):o==="containedBy"?e=e.containedBy(r,n[o]):o==="textSearch"&&(e=e.textSearch(r,n[o]));else e=e.eq(r,n)}return e},qR=(e,{limit:t,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s=="string"?s:s.by;e=e.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;e=e.order(s,{ascending:n.asc!==!1})}return t&&(e=e.limit(t)),r&&(e=e.range(r,r+(t||20)-1)),o&&(e=e.single()),e},Wv=e=>({name:"supabase",client:e,getSession:async()=>{let{data:t}=await e.auth.getSession();return t?.session||null},getUser:async()=>{let{data:t}=await e.auth.getUser();return t?.user||null},signIn:t=>t.provider?e.auth.signInWithOAuth({provider:t.provider}):t.token?e.auth.signInWithIdToken(t):e.auth.signInWithPassword(t),signUp:t=>e.auth.signUp(t),signOut:()=>e.auth.signOut(),onAuthStateChange:t=>{let{data:{subscription:r}}=e.auth.onAuthStateChange((n,o)=>t(n,o));return()=>r.unsubscribe()},select:async({from:t,schema:r,select:n,params:o,headers:s,...i})=>{let l=(r?e.schema(r):e).from(t).select(n||"*");if(l=fh(l,o),l=qR(l,i),s)try{for(let c in s)l.setHeader?l=l.setHeader(c,s[c]):e.rest&&(e.rest.headers[c]=s[c])}catch(c){console.warn("[supabase] setHeader failed:",c.message)}return l},rpc:({from:t,params:r})=>e.rpc(t,r),insert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).insert(n).select(o||"*"),update:({from:t,schema:r,data:n,params:o,select:s})=>{let a=(r?e.schema(r):e).from(t).update(n);return a=fh(a,o),a.select(s||"*")},upsert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).upsert(n).select(o||"*"),delete:({from:t,params:r})=>{let n=e.from(t).delete();return n=fh(n,r),n},subscribe:({from:t,params:r,on:n},o)=>{let s=n||"*",i=e.channel(`db-${t}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:t,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>e.removeChannel(i)},upload:({bucket:t,path:r,file:n,options:o})=>e.storage.from(t).upload(r,n,o),download:({bucket:t,path:r})=>e.storage.from(t).download(r),getPublicUrl:({bucket:t,path:r})=>e.storage.from(t).getPublicUrl(r)})});var Gv={};G(Gv,{restAdapter:()=>qv,setup:()=>KR});var GR,kr,KR,qv,Kv=q(()=>{"use strict";GR=(e,t,r)=>{let n=t&&!t.startsWith("/")?"/":"",o=new URL(`${e}${n}${t}`);if(r)for(let s in r){let i=r[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},kr=async(e,t)=>{let r=await globalThis.fetch(e,t),n=r.headers.get("content-type"),o=n&&n.includes("json")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},KR=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return qv(e,t,r,n)},qv=(e,t={},r,n={})=>{let o=r?.token||null,s=u=>{let d={...t,...u};return o&&(d.Authorization=`Bearer ${o}`),d},i=u=>({...s(u),"Content-Type":"application/json"}),a=u=>({...n,...u}),l=(u,d)=>{let f=d||e;if(u&&(u.startsWith("http://")||u.startsWith("https://")))return u;let p=u&&!u.startsWith("/")?"/":"";return`${f}${p}${u||""}`};return{name:"rest",setToken:u=>{o=u},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let u=await kr(l(r.sessionUrl,r.baseUrl),a({headers:s()}));return u.error?null:u.data},signIn:async u=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let d=await kr(l(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(u)}));return d.data?.token&&(o=d.data.token),d},signOut:async()=>(r?.signOutUrl&&await kr(l(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:u,params:d,select:f,limit:p,offset:h,order:g,single:m,headers:y,baseUrl:b})=>{let x={...d};return f&&(x.select=f),p&&(x.limit=p),h&&(x.offset=h),m&&(x.single=!0),g&&(typeof g=="string"?x.order=g:Array.isArray(g)?x.order=g.map(v=>`${v.by}:${v.asc===!1?"desc":"asc"}`).join(","):g.by&&(x.order=`${g.by}:${g.asc===!1?"desc":"asc"}`)),kr(GR(b||e,u||"",x),a({headers:s(y)}))},rpc:({from:u,params:d,headers:f,baseUrl:p})=>kr(l(`rpc/${u}`,p),a({method:"POST",headers:i(f),body:JSON.stringify(d)})),insert:({from:u,data:d,headers:f,baseUrl:p})=>kr(l(u,p),a({method:"POST",headers:i(f),body:JSON.stringify(d)})),update:({from:u,data:d,params:f,method:p,headers:h,baseUrl:g})=>{let m=f?.id||d?.id,y=m?`${u}/${m}`:u;return kr(l(y,g),a({method:p||"PATCH",headers:i(h),body:JSON.stringify(d)}))},delete:({from:u,params:d,headers:f,baseUrl:p})=>{let h=d?.id,g=h?`${u}/${h}`:u;return kr(l(g,p),a({method:"DELETE",headers:s(f)}))}}}});var Yv={};G(Yv,{localAdapter:()=>Xv,setup:()=>YR});var dh,XR,YR,Xv,Zv=q(()=>{"use strict";dh=(e,t)=>{if(!t)return!0;for(let r in t){let n=t[r];if(n===null){if(e[r]!==null&&e[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(e[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(e[r]>n[o])||o==="gte"&&!(e[r]>=n[o])||o==="lt"&&!(e[r]<n[o])||o==="lte"&&!(e[r]<=n[o])||o==="neq"&&e[r]===n[o]||o==="like"&&!String(e[r]).includes(n[o]))return!1}else if(e[r]!==n)return!1}return!0},XR=(e,{order:t,limit:r,offset:n,single:o})=>{let s=[...e];if(t){let i=typeof t=="string"?t:t.by,a=t.asc!==!1;s.sort((l,c)=>l[i]<c[i]?a?-1:1:l[i]>c[i]?a?1:-1:0)}return n&&(s=s.slice(n)),r&&(s=s.slice(0,r)),o?{data:s[0]||null,error:null}:{data:s,error:null}},YR=async({data:e,...t})=>Xv(e,t),Xv=(e={},t={})=>{let r={},n={},o=t.persist!==!1&&typeof localStorage<"u",s=t.prefix||"smbls_db_",i=u=>{if(!r[u])if(o)try{let d=localStorage.getItem(s+u);r[u]=d?JSON.parse(d):e[u]||[]}catch{r[u]=e[u]||[]}else r[u]=e[u]||[];return r[u]},a=u=>{if(o)try{localStorage.setItem(s+u,JSON.stringify(r[u]))}catch{}},l=(u,d,f,p)=>{let h=n[u];if(h)for(let g of h)g(f,p,{event:d,table:u})},c=Date.now();return{name:"local",store:r,select:async({from:u,params:d,...f})=>{let h=i(u).filter(g=>dh(g,d));return XR(h,f)},insert:async({from:u,data:d})=>{let f=i(u),h=(Array.isArray(d)?d:[d]).map(g=>{let m={id:g.id||++c,...g};return f.push(m),m});a(u);for(let g of h)l(u,"INSERT",g,null);return{data:Array.isArray(d)?h:h[0],error:null}},update:async({from:u,data:d,params:f})=>{let p=i(u),h=[];for(let g=0;g<p.length;g++)if(dh(p[g],f)){let m={...p[g]};Object.assign(p[g],d),h.push(p[g]),l(u,"UPDATE",p[g],m)}return a(u),{data:h,error:null}},delete:async({from:u,params:d})=>{let f=i(u),p=[];for(let h=f.length-1;h>=0;h--)dh(f[h],d)&&(p.push(f[h]),f.splice(h,1),l(u,"DELETE",null,p[p.length-1]));return a(u),{data:p,error:null}},subscribe:({from:u,on:d},f)=>{n[u]||(n[u]=[]);let p=(h,g,m)=>{d&&d!=="*"&&d!==m.event||f(h,g,m)};return n[u].push(p),()=>{let h=n[u].indexOf(p);h>-1&&n[u].splice(h,1)}}}}});var Ds={};G(Ds,{createAdapter:()=>QR,default:()=>c2,executeFetch:()=>js,fetchPlugin:()=>yh,initAdapterAuth:()=>zl,parseDuration:()=>Ps,queryClient:()=>l2,registerAdapter:()=>JR,resolveDb:()=>r_});var ZR,t_,JR,QR,r_,Ps,Be,n_,Ts,e2,Fs,Rs,$s,Bl,gh,Vl,t2,Jv,ph,o_,s_,Kn,Qv,r2,e_,n2,Wl,i_,zl,mh,ct,At,Is,nn,Ht,Cr,o2,s2,i2,hh,a2,js,l2,yh,c2,on=q(()=>{"use strict";I();ZR=["select","rpc","insert","update","delete","subscribe"],t_={supabase:()=>Promise.resolve().then(()=>(Hv(),Uv)),rest:()=>Promise.resolve().then(()=>(Kv(),Gv)),local:()=>Promise.resolve().then(()=>(Zv(),Yv))},JR=(e,t)=>{t_[e]=t},QR=e=>{let t={};for(let r of ZR)e[r]&&(t[r]=e[r]);return t.name=e.name||"custom",t},r_=async e=>{if(!e)return null;if(typeof e.select=="function")return e;let{adapter:t,...r}=e,n=typeof t=="string"?t:typeof e=="string"?e:null;if(!n)return null;let o=t_[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},Ps=e=>{if(!e)return 0;if(typeof e=="number")return e;let t=e.match(/^(\d+)(ms|s|m|h)$/);if(!t)return 0;let r=parseInt(t[1]),n=t[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},Be=new Map,n_=new Map,Ts=new Map,e2=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=n2(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||"")}`;return t?`${n}:${t}`:n},Fs=e=>Be.get(e)||null,Rs=(e,t,r)=>{let n=Be.get(e),o={data:t,error:r,time:Date.now(),stale:!1};Be.set(e,o);let s=n_.get(e);if(s)for(let i of s)E(i)&&i(o);return o},$s=e=>{if(e){let t=Be.get(e);t&&(t.stale=!0);return}for(let[,t]of Be)t.stale=!0},Bl=e=>{if(e){Be.delete(e);return}Be.clear()},gh=e=>!e&&e!==!1?{staleTime:6e4,gcTime:3e5}:e===!1?null:e===!0?{staleTime:6e4,gcTime:3e5}:typeof e=="number"?{staleTime:e,gcTime:Math.max(e*5,3e5)}:C(e)?{staleTime:Ps(e),gcTime:3e5}:{staleTime:Ps(e.stale||e.staleTime)||6e4,gcTime:Ps(e.gc||e.gcTime||e.expire)||3e5,key:e.key},Vl=null,t2=()=>{Vl||(Vl=setInterval(()=>{let e=Date.now();for(let[t,r]of Be){let n=n_.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&Be.delete(t)}},3e4),Vl.unref&&Vl.unref())};t2();Jv=3,ph=e=>Math.min(1e3*2**e,3e4),o_=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:Jv,delay:ph}:typeof t=="number"?{count:t,delay:ph}:{count:t.count??Jv,delay:E(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:ph}},s_=async(e,t)=>{let{count:r,delay:n}=t,o;for(let s=0;s<=r;s++)try{let i=await e();if(i?.error){if(o=i.error,s<r){let a=E(n)?n(s,o):n;await new Promise(l=>setTimeout(l,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=E(n)?n(s,i):n;await new Promise(l=>setTimeout(l,a));continue}throw i}return{data:null,error:o}},Kn={focus:new Set,online:new Set},Qv=!1,r2=()=>{if(Qv||typeof window>"u")return;Qv=!0;let e=()=>{for(let r of Kn.focus)r()},t=()=>{for(let r of Kn.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},e_=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:"select",query:!0,on:"create"};if(C(e))return{from:e,method:"select",query:!0,on:"create"};if(w(e)){let n={...e};return n.from=n.from||r.__state||t.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},n2=e=>(!e||E(e),e),Wl=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},i_=(e,t,r)=>{let n;if(!e)n=void 0;else if(E(e))n=e(t,t.state);else{n={};for(let o in e){let s=e[o];n[o]=E(s)?s(t,t.state):s}}return n},zl=async(e,t)=>{if(!e||e.__authInitialized||(e.__authInitialized=!0,!e.getSession))return;let r=(n,o)=>{let s=t.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await e.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}e.onAuthStateChange&&e.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},mh=async(e,t)=>{if(E(e.select))return e.auth!==!1&&await zl(e,t),e;if(e.__resolved)return e.auth!==!1&&await zl(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=r_(e);let r=await e.__resolving;return delete e.__resolving,r?(r.auth=e.auth,r.url=e.url,r.key=e.key,e.__resolved=r,t.fetch=r,e.auth!==!1&&await zl(r,t),r):null},ct=(e,t,...r)=>{let n=E(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},At=(e,t,r,...n)=>{let o=e&&E(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},Is=e=>{let t={},r=e.node;if(!r)return t;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())t[s]=i;return t}let n=r.querySelectorAll("input, textarea, select");for(let o=0;o<n.length;o++){let s=n[o],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?t[i]=s.checked:s.type==="file"?t[i]=s.files:t[i]=s.value)}return t},nn=(e,t,r,n={})=>{let o=r&&r.startsWith("~/"),s=o&&e.state?.root||e.state;if(s?.update)if(o){let i=r.slice(2);t&&typeof t=="object"&&!Array.isArray(t)&&i in t?s.update(t,{preventFetch:!0,...n}):s.update({[i]:t},{preventFetch:!0,...n})}else{let i=r?{[r]:t}:t;s.update(i,{preventFetch:!0,...n})}},Ht=(e,t)=>{let r=e?.__ref;r&&(r.__fetchStatus=t,r.__fetching=t.isFetching,r.__fetchError=t.error)},Cr=async(e,t,r,n={})=>{let o=r?.fetch;if(!o||!t||!t.__ref||e.enabled===!1||E(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||E(e.skip)&&e.skip(t,t.state))return;let s=await mh(o,r);if(!s||!t.__ref)return;let i=t.__ref,{from:a,method:l,query:c,params:u,cache:d,transform:f,single:p,auth:h,fields:g,as:m,limit:y,offset:b,order:x,headers:v,baseUrl:_,page:S,cursor:O,getNextPageParam:T,getPreviousPageParam:k,infinite:D,placeholderData:te,initialData:z,select:N,keepPreviousData:ye}=e,pe=C(N)?N:void 0;if(c&&E(t.getQuery)){let B=t.getQuery(s.name||"paths");B&&(pe=B.select||B.length&&B.join(",")||pe)}let be=i_(u,t,r),he=gh(d),er=o_(e),Xr=Wl(t,r),vd=Xr?`:${Xr}`:"",Y=he?d?.key||`${a}:${l}:${JSON.stringify(be||"")}${D?":infinite":""}${S?":p"+JSON.stringify(S):""}${vd}`:null;if(!i.__fetchInitialized&&Y&&(i.__fetchInitialized=!0,z!==void 0)){let B=E(z)?z():z;Rs(Y,B,null)}if((l==="select"||l==="rpc")&&Y&&he){let B=Fs(Y);if(B&&!B.error){let V=Date.now()-B.time,L=B.stale||V>(he.staleTime||0),W=B.data;if(E(N)&&(W=N(W,t,t.state)),f&&(W=f(W,t,t.state)),nn(t,W,m),!L){Ht(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(te!==void 0){let V=E(te)?te(t,t.state):te;V!==void 0&&nn(t,V,m)}}if(Y&&Ts.has(Y)&&!n.force){let B=Ts.get(Y);try{let V=await Promise.race([B,new Promise((L,W)=>setTimeout(()=>W("DEDUP_TIMEOUT"),15e3))]);if(V?.data!==void 0){let L=V.data;E(N)&&(L=N(L,t,t.state)),f&&(L=f(L,t,t.state)),nn(t,L,m),ct(t,"onFetchComplete",L),At(e,t,"onFetchComplete",L)}}catch{}return}let _d=!Fs(Y)?.data;Ht(t,{isFetching:!0,isLoading:_d,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),ct(t,"onFetchStart"),At(e,t,"onFetchStart");let ke=r?.analyze?.emitNetwork,Yr=ke?typeof performance<"u"?performance.now():Date.now():0;ke&&ke({phase:"start",mode:"query",from:a,method:l,cacheKey:Y,lang:Xr});let ie=s_(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let W=await s.getSession();if(h===!0&&!W){let Ce={message:"Not authenticated"};return Ht(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Ce,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",Ce),At(e,t,"onFetchError",Ce),{data:null,error:Ce}}}let B=s[l];if(!E(B))return{data:null,error:{message:`Method "${l}" not found on adapter`}};let V={from:a,select:pe,params:be,single:p,limit:y,offset:b,order:x,headers:v,baseUrl:_},L=Wl(t,r);if(L&&(V.headers={...V.headers,"Accept-Language":L}),S!==void 0){if(w(S))S.offset!==void 0&&(V.offset=S.offset),S.limit!==void 0&&(V.limit=S.limit),S.cursor!==void 0&&(V.params={...V.params,cursor:S.cursor});else if(typeof S=="number"){let W=e.pageSize||y||20;V.offset=(S-1)*W,V.limit=W}}if(O!==void 0&&(V.params={...V.params,cursor:O}),l==="insert"||l==="update"||l==="upsert"){let W;if(g===!0||e.on==="submit")W=Is(t);else if($(g)){let Ce=Is(t);W={};for(let Za of g)W[Za]=Ce[Za]}else t.state?.parse?W=t.state.parse():w(t.state)&&(W={...t.state});f&&(W=f(W,t,t.state)),V.data=W}if(l==="rpc"){let W=be;if(e.on==="submit"){let Ce=Is(t);W=e.transformParams?e.transformParams(Ce,t,t.state):Ce}V.params=W}if(l==="subscribe"){let W=s.subscribe({from:a,params:be,on:e.subscribeOn},(Ce,Za,TN)=>{nn(t,Ce,m),ct(t,"onFetchComplete",Ce),At(e,t,"onFetchComplete",Ce)});return i.__unsubscribe=W,{data:null,error:null,subscribed:!0}}return B(V)},er);Y&&Ts.set(Y,ie);try{let B=await ie;if(B?.subscribed)return;let{data:V,error:L}=B||{};if(L){Y&&Rs(Y,null,L),Ht(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:L,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",L),At(e,t,"onFetchError",L),ke&&ke({phase:"error",mode:"query",from:a,method:l,cacheKey:Y,error:L.message||L,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr});return}if(V!==void 0){if((l==="select"||l==="rpc")&&Y){let Ce=Rs(Y,V,null);Ce.gcTime=he?.gcTime||3e5}let W=V;D&&$(V)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(V):i.__pages.push(V),W=i.__pages.flat(),T&&(i.__nextPageParam=T(V,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),k&&(i.__prevPageParam=k(V,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),E(N)&&(W=N(W,t,t.state)),f&&(W=f(W,t,t.state)),(!ye||W!==void 0)&&nn(t,W,m),Ht(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),ct(t,"onFetchComplete",W),At(e,t,"onFetchComplete",W),ke&&ke({phase:"success",mode:"query",ok:!0,from:a,method:l,cacheKey:Y,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}}catch(B){Ht(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:B,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",B),At(e,t,"onFetchError",B),ke&&ke({phase:"error",mode:"query",from:a,method:l,cacheKey:Y,error:B.message||String(B),durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}finally{Y&&Ts.delete(Y)}},o2=(e,t,r)=>{let n=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=e.__runner||Cr;if(n==="submit"){let i=l=>{l.preventDefault(),s(e,t,r)},a=t.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(e,t,r),a=t.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(e,t,r))},s2=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),r2();let o=e.refetchInterval;if(o){let s=typeof o=="number"?o:Ps(o);if(s>0){let i=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&Cr(e,t,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(e.refetchOnWindowFocus!==!1){let s=()=>{let i=Wl(t,r),a=e2(e,i),l=Fs(a),c=gh(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&Cr(e,t,r,{force:!0})};Kn.focus.add(s),n.__fetchCleanups.push(()=>Kn.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>Cr(e,t,r,{force:!0});Kn.online.add(s),n.__fetchCleanups.push(()=>Kn.online.delete(s))}},i2=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,s=e.state?.parse?e.state.parse():w(e.state)?{...e.state}:e.state;n.__optimisticSnapshot=s;let i=E(t.optimistic)?t.optimistic(r,s,e):t.optimistic;return i!==void 0&&nn(e,i,o),s},hh=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(nn(e,n,t.as),delete r.__optimisticSnapshot)},a2=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await mh(n,r);if(!o)return;let s=t.__ref,{method:i,from:a,fields:l,transform:c,as:u,on:d,auth:f,headers:p,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:x,onSettled:v}=e,_;if(l===!0||d==="submit")_=Is(t);else if($(l)){let k=Is(t);_={};for(let D of l)_[D]=k[D]}else t.state?.parse?_=t.state.parse():w(t.state)&&(_={...t.state});c&&(_=c(_,t,t.state)),E(y)&&y(_,t,t.state);let S=m?i2(t,e,_):null;s.__fetching=!0,Ht(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),ct(t,"onFetchStart"),At(e,t,"onFetchStart");let O=r?.analyze?.emitNetwork,T=O?typeof performance<"u"?performance.now():Date.now():0;O&&O({phase:"start",mode:"mutation",from:a,method:i});try{if(f!==!1&&o.auth!==!1&&o.getSession){let be=await o.getSession();if(f===!0&&!be){S!==void 0&&hh(t,e);let he={message:"Not authenticated"};ct(t,"onFetchError",he),At(e,t,"onFetchError",he);return}}let k=o[i];if(!E(k))return;let D={from:a,data:_,headers:p,baseUrl:h};e.params&&(D.params=i_(e.params,t,r));let te=Wl(t,r);te&&(D.headers={...D.headers,"Accept-Language":te});let z=o_(e),N=await s_(()=>k(D),z),{data:ye,error:pe}=N||{};if(pe){S!==void 0&&hh(t,e),Ht(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:pe,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",pe),E(x)&&x(pe,_,t),E(v)&&v(null,pe,_,t),O&&O({phase:"error",mode:"mutation",from:a,method:i,error:pe.message||String(pe),durationMs:(typeof performance<"u"?performance.now():Date.now())-T});return}if(delete s.__optimisticSnapshot,ye!==void 0){let be=u?{[u]:ye}:ye;t.state?.update&&t.state.update(be,{preventFetch:!0})}if(Ht(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),ct(t,"onFetchComplete",ye),At(e,t,"onFetchComplete",ye),E(b)&&b(ye,_,t),E(v)&&v(ye,null,_,t),O&&O({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-T}),g){let be=$(g)?g:[g];for(let he of be)if(he===!0||he==="*")for(let[er]of Be)er.startsWith(a+":")&&$s(er);else $s(he)}}catch(k){S!==void 0&&hh(t,e),Ht(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:k,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",k),At(e,t,"onFetchError",k),E(x)&&x(k,_,t),E(v)&&v(null,k,_,t),O&&O({phase:"error",mode:"mutation",from:a,method:i,error:k.message||String(k),durationMs:(typeof performance<"u"?performance.now():Date.now())-T})}finally{s.__fetching=!1}},js=(e,t,r,n)=>{if(!e||!n?.fetch)return;let s=le(e,t);if(!s)return;let i=$(s)?s.map(l=>e_(le(l,t),t)).filter(Boolean):[e_(s,t)].filter(Boolean);for(let l of i){let c=l.method==="insert"||l.method==="update"||l.method==="upsert"||l.method==="delete",u=c?a2:Cr;l.on==="create"?u(l,t,n):Promise.resolve().then(()=>{o2({...l,__runner:u},t,n)}),!c&&l.on==="create"&&(l.refetchInterval||l.refetchOnWindowFocus!==!1||l.refetchOnReconnect!==!1)&&s2(l,t,n)}let a=t.__ref;a.refetch=l=>{for(let c of i)Cr(c,t,n,{force:!0,...l})},a.fetchNextPage=()=>{let l=i[0];if(!l||!l.infinite)return;let c=a.__nextPageParam;if(c==null)return;let u={...l,cursor:c};Cr(u,t,n,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let l=i[0];if(!l||!l.infinite)return;let c=a.__prevPageParam;if(c==null)return;let u={...l,cursor:c};Cr(u,t,n,{direction:"previous",force:!0})}},l2={invalidateQueries:e=>{if(!e){$s();return}if(C(e))for(let[t]of Be)(t.startsWith(e)||t.includes(e))&&$s(t);else if($(e)){let t=e.join(":");for(let[r]of Be)r.includes(t)&&$s(r)}},removeQueries:e=>{if(!e){Bl();return}if(C(e))for(let[t]of Be)(t.startsWith(e)||t.includes(e))&&Bl(t)},getQueryData:e=>Fs(e)?.data??void 0,setQueryData:(e,t)=>{let r=Fs(e),n=E(t)?t(r?.data):t;Rs(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await mh(r,t);if(!n)return;let o=e.cache?.key||`${e.from}:${e.method||"select"}:${JSON.stringify(e.params||"")}`,s=n[e.method||"select"];if(!E(s))return;let i=await s({from:e.from,params:e.params,limit:e.limit,offset:e.offset,order:e.order,single:e.single});if(i?.data!==void 0&&!i?.error){let a=Rs(o,i.data,null);a.gcTime=gh(e.cache)?.gcTime||3e5}return i},getCache:()=>Be,clear:()=>Bl(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of Be)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||Bl(r))}},yh={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||Ts.clear(),js(t,e,e.state,e.context))}},c2=js});function Ms(e){let t=this,{__ref:r}=t,n=[].concat(e),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",t.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function xh(e){let t=this,{parent:r}=t;if(E(e))return r.state&&e(r,r.state,r.context)?r:r.parent?r.lookup(e):void 0;if(t[e])return t[e];for(;r.param!==e;){if(r[e])return r[e];if(r=r.parent,!r)return}return r}function vh(e){let t=this,{__ref:r}=t,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=t[s];if(s===e)return i;if(E(e)){let l=e(i,i.state,i.context);if(i.state&&l)return i}let a=i?.lookdown?.(e);if(a)return a}}function _h(e,t=[]){let r=this,{__ref:n}=r,o=n?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=r[i];if(i===e)t.push(a);else if(E(e)){let l=e(a,a.state,a.context);a.state&&l&&t.push(a)}a?.lookdownAll?.(e,t)}return t.length?t:void 0}}function Ul(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(w(n)&&o)Ul.call(o,n);else if(n!=null){let s=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(n).replace(/\s*!important\s*$/,"");t.node.style.setProperty(s,i,"important")}}return t}}function l_(e){let t=this;if(Sr("beforeRemove",t,e)===!1)return t;E(t.node.remove)?t.node.remove():_r()||(console.warn("This item cant be removed"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=Qo(t.parent.__ref.__children,t.key)),Sr("remove",t,e)}function wh(e){return this[e]}function Sh(e,t){let r=this;if(e)return r.update(e,t),r}function kh(e){return e?this.__ref&&this.__ref[e]:this.__ref}function Ns(){return this.getRef("__children").map(t=>this[t])}function Bs(){return this.getRef().path}function zs(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=a_();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=E(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=a_()),e?t?.[e]:t}function Ws(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function Us(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function Hs(e){let t=this.getRoot()?.context;return e?t[e]:t}function qs(e){let t=this.context;return e?t[e]:t}function Hl(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||xr.has(r)&&!os.has(r)||t.push(r);return t}function ql(e=[]){let t=this,r={},n=Hl.call(t),o=n.includes("children"),s=e.length?new Set(e):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(t,a)||o&&a==="content")continue;let l=t[a];if(a==="state"){if(t.__ref&&!t.__ref.__hasRootState)continue;let c=E(l&&l.parse)?l.parse():l;r[a]=E(c)?c:JSON.parse(JSON.stringify(c||{}))}else if(a==="scope"){if(t.__ref&&!t.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(l||{}))}else if(a==="props"){let{__element:c,update:u,...d}=t[a];r[a]=d}else qe(l)&&Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=l)}return r}function Ls(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=ql.call(r,e),o=e.length?new Set(e):null;for(let s in n){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=n[s];Array.isArray(i)?n[s]=i.map(a=>Q(a)?Ls.call(a,e,t):a):Q(i)&&(n[s]=Ls.call(i,e,t))}return n}function Xn(...e){if(Ar!=="test"&&Ar!=="development")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(n=>console.log(`%c${n}:
|
|
15
|
+
`,"font-weight: bold",t[n])):(console.log(r.path),t.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",t[o]))),console.log(t),console.groupEnd(t.key),t}function Ah(...e){(Ar==="test"||Ar==="development")&&console.log(...e)}function Gs(...e){(Ar==="test"||Ar==="development")&&console.warn(...e)}function sn(...e){if(Ar==="test"||Ar==="development"){if(e[e.length-1]?.debugger)debugger;throw e[e.length-1]?.verbose&&Xn.call(this),new Error(...e)}}function Ks(){let e=this,{key:t,parent:r}=e,{__children:n}=r.__ref,o=n.indexOf(t),s=n[o+1];return r[s]}function Xs(e){let t=e||this,{key:r,parent:n}=t,{__children:o}=n.__ref;if(!o)return;let s=o.indexOf(r);return n[o[s-1]]}function Ys(e={}){let t=this;t.data||(t.data={}),t.data.varCaches||(t.data.varCaches={});let r=t.data.varCaches,n={},o;for(let s in e)e[s]!==r[s]&&(o=!0,n[s]=e[s]);return{changed:s=>{if(!o)return;let i=s(n,ue(r));for(let a in n)r[a]=n[a];return i},timeout:(s,i)=>{if(!o)return;let a=setTimeout(()=>{s(n),clearTimeout(a)},i)}}}function Eh(e,...t){let r=this.context,n=r.utils?.[e]||r.functions?.[e]||r.methods?.[e]||r.snippets?.[e];if(n)try{let o=n.call(this,...t);return o&&typeof o.then=="function"&&o.catch(s=>{sn.call(this,s)}),o}catch(o){if(sn.call(this,o),r?.strictMode)throw o}}async function Zs(){let e=this,t=e.context?.fetch;if(!t)return null;if(typeof t.select=="function"){if(!t.__authInitialized&&t.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(on(),Ds));await o(t,e.context)}return t}if(t.__resolved){if(!t.__resolved.__authInitialized&&t.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(on(),Ds));await o(t.__resolved,e.context)}return t.__resolved}if(t.__resolving)return t.__resolving;let r=Promise.resolve().then(()=>(on(),Ds)).then(({resolveDb:o})=>o(t));t.__resolving=r;let n=await r;if(t.__resolved=n,e.context.fetch=n,delete t.__resolving,n.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(on(),Ds));await o(n,e.context)}return n}function Js(e){let t=this,r=e||Os.useStateQuery||t.context?.useStateQuery;if(!r)return null;let n={};if(bh(t,n),r===!0)return n;let o=y2[r];return o?o(n):n}function Oh(e,t){return!!(Nn.has(e)||t?.context?.methods?.[e])}var Ar,c_,Vs,a_,Ch,bh,u2,u_,f2,d2,p2,h2,g2,m2,y2,f_=q(()=>{"use strict";lh();Bn();Re();rr();xp();Mn();uh();Ar="production";c_=null,Vs=e=>{c_=e||null},a_=()=>c_||null;Ch=(e,t,r,n)=>Object.defineProperty(e,t,{get:r,set:n});bh=(e,t)=>{let r=e.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&u2(t,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let l=e[o[a]];l&&l.__ref&&bh(l,t)}let s=r.contentElementKey||"content",i=e[s];i&&i.__ref&&bh(i,t)},u2=(e,t)=>{let n=t.replaceAll("../","").replaceAll("~/","").split("/"),o=e;for(let s=0;s<n.length;s++){let i=n[s];s===n.length-1?o[i]||(o[i]=!0):(o[i]===!0&&(o[i]={}),o[i]||(o[i]={}),o=o[i])}},u_=(e,t=0)=>{let r=" ".repeat(t),n=Object.entries(e);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {
|
|
16
|
+
${u_(i,t+1)}
|
|
17
17
|
${r}}`).join(`
|
|
18
|
-
`):""},
|
|
19
|
-
${
|
|
20
|
-
}`,
|
|
18
|
+
`):""},f2=e=>`{
|
|
19
|
+
${u_(e,1)}
|
|
20
|
+
}`,d2=e=>{let t={fields:{},include:[]},r=(n,o)=>{let s=[];for(let i in n)if(n[i]===!0)s.push(i);else{let a=o?`${o}.${i}`:i;t.include.push(a),r(n[i],a)}s.length&&(t.fields[o||"_root"]=s)};return r(e,""),t},p2=e=>{let t=s=>{let i=[],a=[];for(let l in s)if(s[l]===!0)i.push(l);else{let c=t(s[l]),u=[];c.select&&u.push(`$select=${c.select}`),c.expand&&u.push(`$expand=${c.expand}`),a.push(u.length?`${l}(${u.join(";")})`:l)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:r,expand:n}=t(e),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join("&")},h2=(e,t)=>{let r=[],n=[],o=new Set,s=(u,d,f)=>{o.add(d),f&&n.push(`LEFT JOIN ${d} ON ${d}.${f}_id = ${f}.id`);for(let p in u)u[p]===!0?r.push(`${d}.${p}`):s(u[p],p,d)},i=Object.keys(e);i.length===1&&e[i[0]]!==!0?s(e[i[0]],i[0],null):s(e,"_root",null);let a=[...o][0]||"_root",l=r.length?r.join(", "):"*",c=n.length?`
|
|
21
21
|
`+n.join(`
|
|
22
22
|
`):"";return`SELECT ${l}
|
|
23
|
-
FROM ${a}${c}`},
|
|
23
|
+
FROM ${a}${c}`},g2=e=>{let t=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;n[s]===!0?t.push(i):r(n[s],i)}};return r(e,""),t},m2=e=>{let t=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${t(n[s])})`);return o.join(", ")},r=Object.keys(e);return r.length===1&&e[r[0]]!==!0?{from:r[0],select:t(e[r[0]])}:{from:null,select:t(e)}},y2={graphql:f2,"json-api":d2,odata:p2,sql:h2,supabase:m2,paths:g2}});var b2,Th,d_=q(()=>{"use strict";cl();b2={snapshotId:fs},Th=(e,t)=>{let r=e.__ref,{currentSnapshot:n,calleeElement:o}=t;if(!o||o===e){let a=b2.snapshotId();return r.__currentSnapshot=a,[a,e]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var Gl,Ph,p_=q(()=>{Gl=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),Ph=e=>typeof e=="string"&&Gl.has(e)});async function Rh(e){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(t){console.warn(`Error attempting to enable fullscreen mode: ${t.message} (${t.name})`)}}var h_=q(()=>{"use strict"});function x2(e){return/^[0-9.]+$/.test(e)&&e!==""}var Et,Er,Yn,Ot,$h,g_=q(()=>{"use strict";Et={skypack:{url:"https://cdn.skypack.dev",formatUrl:(e,t)=>`${Et.skypack.url}/${e}${t!=="latest"?`@${t}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(e,t)=>`${Et.esmsh.url}/${e}${t!=="latest"?`@${t}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(e,t)=>`${Et.unpkg.url}/${e}${t!=="latest"?`@${t}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(e,t)=>`${Et.jsdelivr.url}/${e}${t!=="latest"?`@${t}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(e,t)=>e.split("/").length>2||!x2(t)?`${Et.symbols.url}/${e}`:`${Et.symbols.url}/${e}/${t}.js`}},Er={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},Yn=(e={})=>{let{packageManager:t}=e;return Er[t]||null},Ot=(e,t="latest",r="esmsh")=>(Et[r]||Et.esmsh).formatUrl(e,t),$h=(e,t="skypack")=>{let r=e.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let s of n){let i=r[s]||"latest";o[s]=Ot(s,i,t)}return`<script type="importmap">{
|
|
24
24
|
"imports": ${JSON.stringify(o,null,2)}
|
|
25
|
-
}<\/script>`}});var
|
|
26
|
-
`)),cD=e=>typeof e=="string"&&e.length>0&&!e.startsWith("/")&&!e.startsWith("http")});var nc,sg,SS=K(()=>{$e();nc=(e,t)=>(j(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),sg=(e,t)=>(e=parseFloat(e),_(t)&&(t=Object.values(t)),nc(e,t))});function io(e){let t=String(e||"").trim();if(!t)return{owner:_S,key:"",full:""};let r=null,n=t;if(t.includes("/")){let s=t.indexOf("/");r=t.slice(0,s),n=t.slice(s+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=_S);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function oc(e,t={}){return(t.provider||"kv")==="api"?kS(e,t):await hD(e,t)||kS(e,t)}async function hD(e,t={}){let r=t.kvBaseUrl||dD,n=t.env||"production",o=`${r}/kv/${encodeURIComponent(e)}?env=${n}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function kS(e,t={}){let r=t.apiBaseUrl||pD,{key:n}=io(e);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,s=await fetch(o,{method:"GET"});if(!s.ok)return null;let i=await s.json(),a=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(f=>{let{key:h}=io(f?.key);return h.toLowerCase()===n.toLowerCase()});if(!a?.id&&!a?._id)return null;let l=a.id||a._id,c=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,u=await fetch(c,{method:"GET"});if(!u.ok)return null;let d=await u.json();return d?.data||d||null}catch{return null}}async function ig(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async r=>{if(_(r))return r;if(k(r)){let{full:n}=io(r);if(!n)return null;try{let o=await oc(n,t);return o||console.warn(`[smbls] Shared library "${n}" not found`),o}catch(o){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,o.message),null}}return null}))).filter(Boolean)}var _S,dD,pD,si,ii,CS=K(()=>{$e();_S="system",dD="https://smbls-kv.nika-980.workers.dev",pD="https://api.symbols.app";si=(e,t)=>{for(let r in t)r in e?_(e[r])&&_(t[r])&&si(e[r],t[r]):e[r]=t[r]},ii=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(_(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(_(n[o])&&_(e[o]))if(o==="designSystem")si(e[o],n[o]);else for(let s in n[o])s in e[o]||(e[o][s]=n[o][s]);else o in e||(e[o]=n[o])}}}});var ag,lg,cg,ai,ug,li,fg,un,AS=K(()=>{$e();ag=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn("Failed to copy text: ",t)}},lg=async e=>{try{let t=new Blob([e],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":t});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(t){console.error("Failed to copy JavaScript code: ",t)}},cg=e=>e.replace(/[^a-zA-Z0-9_]/g,""),ai=e=>(typeof e!="string"&&(e=String(e||"")),e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(t,r){return r===0?t.toLowerCase():t.toUpperCase()}).replace(/\s+/g,"")),ug=e=>e&&e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),li=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),fg=(e="")=>{if(typeof e!="string")return;let t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},un=e=>{if(j(e))return e;if(k(e))return e.split(" ");if(_(e))return Object.values(e);if(Gt(e))return[e]}});var dg,ES=K(()=>{dg=()=>{let e=document.styleSheets[0],t="";if(e)try{let r=e.cssRules||e.rules;for(let n=0;n<r.length;n++)t+=r[n].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return t}});var pe,ao,fn,dn,TS=K(()=>{pe=e=>{let t=e&&e.src;if(!t||typeof t!="string")return null;let r=e.context;if(!r)return null;let n=r.assets&&r.assets[t]||r.files&&r.files[t];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},ao=(e,{keepOneX:t=!0}={})=>{if(!Array.isArray(e)||!e.length)return"";let r=e.some(o=>typeof o.width=="number"),n=[];for(let o of e)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&t?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},fn=e=>{if(!e||!Array.isArray(e.variants))return"";let t=e.variants.filter(r=>r.format===e.type);return ao(t,{keepOneX:!1})},dn=(e,t)=>{if(!e||typeof e!="object"||typeof e.src!="string")return[];if(!Array.isArray(e.variants)||!e.variants.length)return[{tag:"img",attr:{src:e.src,alt:t||""}}];let r=new Map;for(let a of e.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,l]of r)a!==e.type&&n.push({tag:"source",attr:{type:a,srcset:ao(l,{keepOneX:!0})}});let o=r.get(e.type)||[],s=ao(o,{keepOneX:!1}),i={src:e.src,alt:t||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}});var OS={};P(OS,{CDN_PROVIDERS:()=>$t,DOMQL_EVENTS:()=>dp,DOMQ_PROPERTIES:()=>Sr,ENV:()=>Tp,HTML_TAGS:()=>Qn,METHODS:()=>Gn,METHODS_EXL:()=>fs,NODE_ENV:()=>Pt,OPTIONS:()=>js,PACKAGE_MANAGER_TO_CDN:()=>Pr,PARSED_DOMQ_PROPERTIES:()=>us,PROPS_METHODS:()=>_r,STATE_METHODS:()=>rn,STATE_PROPERTIES:()=>fp,SVG_TAGS:()=>Tw,TYPES:()=>ns,UNIVERSAL_RESERVED_KEYS:()=>tc,addCaching:()=>Nl,addContext:()=>Ml,addExtend:()=>Qp,addExtends:()=>Je,addItemAfterEveryElement:()=>Jd,addProtoToArray:()=>is,addRef:()=>Dl,applyDependentState:()=>bh,applyEvent:()=>Ul,applyEventUpdate:()=>Gl,applyExtends:()=>Rw,applyProps:()=>Ts,arrayContainsOtherArray:()=>qd,arraysEqual:()=>ep,arrayzeValue:()=>un,buildImgSrcset:()=>fn,buildSourcesAndImg:()=>dn,cache:()=>_h,call:()=>zh,captureSnapshot:()=>Hh,checkForStateTypes:()=>hh,checkIfInherits:()=>ql,checkIfStringIsInArray:()=>np,clone:()=>hp,cloneAndMergeArrayExtend:()=>xs,cloneFunction:()=>Lp,concatAddExtends:()=>Xp,copyJavaScriptToClipboard:()=>lg,copyStringToClipboard:()=>ag,createBasedOnType:()=>Fl,createElement:()=>ph,createElementExtends:()=>_l,createExtends:()=>Ss,createExtendsFromKeys:()=>eo,createExtendsStack:()=>El,createIfConditionFlag:()=>Bp,createInheritedState:()=>gh,createKey:()=>bs,createNestedObject:()=>wp,createNestedObjectByKeyPath:()=>yh,createObjectWithoutPrototype:()=>gl,createParent:()=>Ll,createPath:()=>Bl,createProps:()=>Os,createPropsStack:()=>Il,createRoot:()=>dh,createScope:()=>xh,createSnapshotId:()=>ys,customDecodeURIComponent:()=>up,customEncodeURIComponent:()=>cp,cutArrayAfterValue:()=>Xd,cutArrayBeforeValue:()=>Zd,debounce:()=>vs,debounceOnContext:()=>jp,decodeNewlines:()=>lp,deepClone:()=>fe,deepContains:()=>vp,deepDefaults:()=>si,deepDestringifyFunctions:()=>ft,deepExtend:()=>Sl,deepMerge:()=>ae,deepMergeExtends:()=>Kt,deepStringifyFunctions:()=>ds,defineSetter:()=>Mh,destringifyGlobalScope:()=>hs,detectHeightOnInit:()=>Kh,detectInfiniteLoop:()=>Cp,document:()=>ue,encodeNewlines:()=>ap,error:()=>cn,excludeKeysFromObject:()=>Ep,exec:()=>le,extendCachedRegistry:()=>Yp,extendStackRegistry:()=>_s,extractArrayExtend:()=>Cs,fetchLibraryData:()=>oc,fibonacciNumberByIndex:()=>Zh,filterArrays:()=>tp,filterArraysFast:()=>rp,finalizeExtends:()=>Tl,findClosestNumber:()=>nc,findClosestNumberInFactory:()=>sg,findInheritedState:()=>Vl,findKeyPosition:()=>sp,flattenExtend:()=>to,formatDate:()=>Gh,generateHash:()=>vl,generateKey:()=>ms,generateMetaTags:()=>ng,get:()=>Dh,getCDNUrl:()=>It,getCapitalCaseKeys:()=>rh,getCdnProviderFromConfig:()=>oo,getChildStateInKey:()=>Hl,getChildren:()=>qs,getContext:()=>Js,getCookie:()=>Hp,getDB:()=>ni,getEmotionStylesheet:()=>dg,getExtendsInElement:()=>eh,getExtendsStack:()=>ws,getExtendsStackRegistry:()=>wl,getFrequencyInArray:()=>Ud,getHashedExtend:()=>ks,getImportMapScript:()=>Uh,getInObjectByPath:()=>kp,getLocalStorage:()=>qp,getNev:()=>$p,getPageMetadata:()=>og,getParentStateInKey:()=>Wl,getPath:()=>Us,getQuery:()=>oi,getRef:()=>Bh,getRoot:()=>Zs,getRootContext:()=>Ys,getRootData:()=>Xs,getRootState:()=>Ks,getRootStateInKey:()=>zl,getSpreadChildren:()=>nh,global:()=>Wd,hasFunction:()=>Zn,hasHandlerPlugin:()=>Xn,hasOwnProperty:()=>mp,inheritChildExtends:()=>Cl,inheritChildPropsExtends:()=>kl,inheritParentProps:()=>Ps,inheritRecursiveChildExtends:()=>Al,initProps:()=>ch,is:()=>Xe,isArray:()=>j,isBoolean:()=>ul,isContextComponent:()=>oh,isCyclic:()=>Ap,isDOMNode:()=>Ze,isDate:()=>dl,isDefined:()=>Ne,isDevelopment:()=>Cr,isEmpty:()=>pl,isEmptyObject:()=>yp,isEqualDeep:()=>hl,isFunction:()=>O,isHtmlElement:()=>ts,isLocal:()=>Rp,isMethod:()=>Wh,isMobile:()=>zp,isNode:()=>nr,isNot:()=>Vd,isNotProduction:()=>sn,isNull:()=>fl,isNumber:()=>Gt,isObject:()=>_,isObjectLike:()=>Q,isPhoto:()=>Xh,isProduction:()=>kr,isStaging:()=>Pp,isState:()=>mh,isString:()=>k,isStringFunction:()=>Dp,isTest:()=>yl,isTesting:()=>Op,isUndefined:()=>_e,isUniversallyReservedKey:()=>Vh,isValidHtmlTag:()=>Gp,joinArrays:()=>Vn,jointStacks:()=>Jp,keys:()=>Ql,loadCssFile:()=>eg,loadJavascript:()=>tg,loadJavascriptFile:()=>Yh,loadJavascriptFileEmbedSync:()=>Qh,loadJavascriptFileSync:()=>Jh,loadRemoteCSS:()=>rg,loadRemoteScript:()=>so,log:()=>Nh,logGroupIf:()=>Np,logIf:()=>Mp,lookdown:()=>jh,lookdownAll:()=>Fh,lookup:()=>Ih,lowercaseFirstLetter:()=>tn,makeObjectWithoutPrototype:()=>bp,map:()=>pp,mapStringsWithContextComponents:()=>As,matchesComponentNaming:()=>Zt,memoize:()=>Fp,merge:()=>me,mergeSharedLibraries:()=>ii,nextElement:()=>ei,normalizeLibraryKey:()=>io,objectToString:()=>ps,objectizeStringProperty:()=>Es,overwrite:()=>gs,overwriteDeep:()=>Ye,overwriteShallow:()=>on,overwriteState:()=>vh,parse:()=>ec,parseDeep:()=>Hs,pickupElementFromProps:()=>Rl,pickupPropsFromElement:()=>Pl,previousElement:()=>ti,propExists:()=>ah,propertizeElement:()=>$l,propertizeUpdate:()=>ih,remove:()=>aS,removeChars:()=>cg,removeCookie:()=>Vp,removeDuplicateProps:()=>$s,removeDuplicatesInArray:()=>qn,removeFromArray:()=>Gd,removeFromObject:()=>xp,removeNestedKeyByPath:()=>Sp,removeValueFromArray:()=>ss,removeValueFromArrayAll:()=>Yd,reorderArrayByValues:()=>Qd,replaceLiteralsWithObjectFields:()=>en,replaceOctalEscapeSequences:()=>ip,resolveAsset:()=>pe,resolveHandler:()=>Yn,resolveSharedLibraries:()=>ig,returnValueAsText:()=>jl,runPluginHook:()=>Jn,self:()=>Hd,setActiveRootState:()=>Gs,setCookie:()=>Wp,setHashedExtend:()=>xl,setInObjectByPath:()=>_p,setLocalStorage:()=>Up,setNodeStyles:()=>Jl,setProps:()=>Lh,setPropsPrototype:()=>Rs,spotByPath:()=>Vs,srcsetFor:()=>ao,stringIncludesAny:()=>ls,stringToObject:()=>gp,swapItemsInArray:()=>Kd,syncProps:()=>Is,toCamelCase:()=>ai,toDashCase:()=>li,toDescriptionCase:()=>fg,toTitleCase:()=>ug,toggleFullscreen:()=>qh,triggerEventOn:()=>Ar,triggerEventOnUpdate:()=>wh,trimStringFromSymbols:()=>op,unstackArrayOfObjects:()=>os,update:()=>lh,updateProps:()=>uh,variables:()=>ri,verbose:()=>no,warn:()=>Qs,window:()=>T});var F=K(()=>{ml();Ip();$e();or();bl();Un();rs();Cw();Aw();cs();es();Ew();Kp();th();fh();Ol();Lw();Bw();Kn();Mw();uS();kh();fS();Sh();dS();pS();hS();gS();mS();yS();bS();vS();wS();SS();CS();AS();ES();TS()});var QE=Ld((dX,JE)=>{var To=1e3,Oo=To*60,Po=Oo*60,Tn=Po*24,kM=Tn*7,CM=Tn*365.25;JE.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return AM(e);if(r==="number"&&isFinite(e))return t.long?TM(e):EM(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function AM(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*CM;case"weeks":case"week":case"w":return r*kM;case"days":case"day":case"d":return r*Tn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Po;case"minutes":case"minute":case"mins":case"min":case"m":return r*Oo;case"seconds":case"second":case"secs":case"sec":case"s":return r*To;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function EM(e){var t=Math.abs(e);return t>=Tn?Math.round(e/Tn)+"d":t>=Po?Math.round(e/Po)+"h":t>=Oo?Math.round(e/Oo)+"m":t>=To?Math.round(e/To)+"s":e+"ms"}function TM(e){var t=Math.abs(e);return t>=Tn?ju(e,t,Tn,"day"):t>=Po?ju(e,t,Po,"hour"):t>=Oo?ju(e,t,Oo,"minute"):t>=To?ju(e,t,To,"second"):e+" ms"}function ju(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var tT=Ld((pX,eT)=>{function OM(e){r.debug=r,r.default=r,r.coerce=l,r.disable=i,r.enable=o,r.enabled=a,r.humanize=QE(),r.destroy=c,Object.keys(e).forEach(u=>{r[u]=e[u]}),r.names=[],r.skips=[],r.formatters={};function t(u){let d=0;for(let f=0;f<u.length;f++)d=(d<<5)-d+u.charCodeAt(f),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=t;function r(u){let d,f=null,h,p;function g(...m){if(!g.enabled)return;let y=g,b=Number(new Date),v=b-(d||b);y.diff=v,y.prev=d,y.curr=b,d=b,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let x=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(E,A)=>{if(E==="%%")return"%";x++;let C=r.formatters[A];if(typeof C=="function"){let S=m[x];E=C.call(y,S),m.splice(x,1),x--}return E}),r.formatArgs.call(y,m),(y.log||r.log).apply(y,m)}return g.namespace=u,g.useColors=r.useColors(),g.color=r.selectColor(u),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(h!==r.namespaces&&(h=r.namespaces,p=r.enabled(u)),p),set:m=>{f=m}}),typeof r.init=="function"&&r.init(g),g}function n(u,d){let f=r(this.namespace+(typeof d>"u"?":":d)+u);return f.log=this.log,f}function o(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let d=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let f of d)f[0]==="-"?r.skips.push(f.slice(1)):r.names.push(f)}function s(u,d){let f=0,h=0,p=-1,g=0;for(;f<u.length;)if(h<d.length&&(d[h]===u[f]||d[h]==="*"))d[h]==="*"?(p=h,g=f,h++):(f++,h++);else if(p!==-1)h=p+1,g++,f=g;else return!1;for(;h<d.length&&d[h]==="*";)h++;return h===d.length}function i(){let u=[...r.names,...r.skips.map(d=>"-"+d)].join(",");return r.enable(""),u}function a(u){for(let d of r.skips)if(s(u,d))return!1;for(let d of r.names)if(s(u,d))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}eT.exports=OM});var rT=Ld((et,Fu)=>{et.formatArgs=RM;et.save=$M;et.load=IM;et.useColors=PM;et.storage=jM();et.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();et.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function PM(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function RM(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Fu.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}et.log=console.debug||console.log||(()=>{});function $M(e){try{e?et.storage.setItem("debug",e):et.storage.removeItem("debug")}catch{}}function IM(){let e;try{e=et.storage.getItem("debug")||et.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function jM(){try{return localStorage}catch{}}Fu.exports=tT()(et);var{formatters:FM}=Fu.exports;FM.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Ez={};P(Ez,{ANIMATION_PROPS:()=>Yg,ARIA_ROLES:()=>AL,ATTR_TRANSFORMS:()=>dm,BLOCK_PROPS:()=>Jg,CDN_PROVIDERS:()=>$t,CONFIG:()=>fc,CSS_NATIVE_COLOR_REGEX:()=>Yt,CSS_PROPS_REGISTRY:()=>Ce,CSS_UNITS:()=>Hn,DEFAULT_CONFIG:()=>Ri,DEFAULT_CSS_PROPERTIES_LIST:()=>ze,DELEGATED_EVENTS:()=>_i,DESIGN_SYSTEM_OPTIONS:()=>vy,DOMQL_EVENTS:()=>dp,DOMQ_PROPERTIES:()=>Sr,DOM_EVENTS:()=>V_,ENV:()=>Tp,FACTORY:()=>ar,FLEX_PROPS:()=>nm,FONT_PROPS:()=>Qg,GRID_PROPS:()=>om,HTML_ATTRIBUTES:()=>Uc,HTML_TAGS:()=>Qn,LIFECYCLE_EVENTS:()=>kn,METHODS:()=>Gn,METHODS_EXL:()=>fs,MISC_PROPS:()=>em,MIXINS:()=>Gg,NODE_ENV:()=>Pt,OPTIONS:()=>js,PACKAGE_MANAGER_TO_CDN:()=>Pr,PARSED_DOMQ_PROPERTIES:()=>us,POSITION_PROPS:()=>tm,PROPS_METHODS:()=>_r,REGISTRY:()=>Qe,ROUTER_OPTIONS:()=>su,STATE_PROPERTIES:()=>fp,SVG_TAGS:()=>wi,THEME_PROPS:()=>rm,TIMING_PROPS:()=>An,TYPES:()=>ns,UNIVERSAL_RESERVED_KEYS:()=>tc,VALUE_TRANSFORMERS:()=>zg,activateConfig:()=>SD,addCaching:()=>Nl,addContext:()=>Ml,addDelegatedEvent:()=>Vc,addExtend:()=>Qp,addExtends:()=>Je,addItemAfterEveryElement:()=>Jd,addMethods:()=>Pi,addProtoToArray:()=>is,addRef:()=>Dl,animation:()=>e_,appendSVGSprite:()=>jc,appendSvgIconsSprite:()=>Dc,applyAttrTransforms:()=>gm,applyCSS:()=>gy,applyDependentState:()=>bh,applyDocument:()=>Ic,applyEvent:()=>Ul,applyEventUpdate:()=>Gl,applyExtends:()=>Ci,applyHeadings:()=>Ig,applyInitialState:()=>um,applyMediaSequenceVars:()=>mn,applyProps:()=>Ts,applyReset:()=>Lc,applySequenceGlobalVars:()=>bc,applySequenceVars:()=>Fr,applySpacingSequence:()=>Oc,applyStateMethods:()=>xt,applyTimingSequence:()=>$c,applyTrueProps:()=>im,applyTypographySequence:()=>Ac,arrayContainsOtherArray:()=>qd,arraysEqual:()=>ep,arrayzeValue:()=>un,batch:()=>wr,breakpoints:()=>JS,buildImgSrcset:()=>fn,buildSourcesAndImg:()=>dn,cache:()=>_h,cacheNode:()=>_n,call:()=>zh,captureSnapshot:()=>Hh,changeGlobalTheme:()=>Wg,changeLightness:()=>FS,checkAttributeByTagName:()=>Lr,checkEventFunctions:()=>hm,checkForStateTypes:()=>hh,checkIfBoxSize:()=>Tc,checkIfInherits:()=>ql,checkIfStringIsInArray:()=>np,class:()=>s_,clone:()=>hp,cloneAndMergeArrayExtend:()=>xs,cloneFunction:()=>Lp,color:()=>qS,colorStringToRgbaArray:()=>sr,components:()=>uy,concatAddExtends:()=>Xp,convertSvgToSymbol:()=>vc,copyJavaScriptToClipboard:()=>lg,copyStringToClipboard:()=>ag,create:()=>hw,createAsync:()=>kz,createBasedOnType:()=>Fl,createComputed:()=>bw,createConfig:()=>Cg,createDefine:()=>uC,createEffect:()=>Oe,createElement:()=>ph,createElementExtends:()=>_l,createExtends:()=>Ss,createExtendsFromKeys:()=>eo,createExtendsStack:()=>El,createHTMLNode:()=>xi,createIfConditionFlag:()=>Bp,createInheritedState:()=>gh,createKey:()=>bs,createNestedObject:()=>wp,createNestedObjectByKeyPath:()=>yh,createObjectWithoutPrototype:()=>gl,createParent:()=>Ll,createPath:()=>Bl,createProps:()=>Os,createPropsStack:()=>Il,createRoot:()=>dh,createScope:()=>xh,createSignal:()=>xr,createSkeleton:()=>Az,createSnapshotId:()=>ys,createState:()=>W_,createStore:()=>ut,createSync:()=>Cz,css:()=>Dr,cssMediaVars:()=>_g,cssVars:()=>Sg,customDecodeURIComponent:()=>up,customEncodeURIComponent:()=>cp,cutArrayAfterValue:()=>Xd,cutArrayBeforeValue:()=>Zd,debounce:()=>vs,debounceOnContext:()=>jp,decodeNewlines:()=>lp,deepClone:()=>fe,deepContains:()=>vp,deepDefaults:()=>si,deepDestringifyFunctions:()=>ft,deepExtend:()=>Sl,deepMerge:()=>ae,deepMergeExtends:()=>Kt,deepStringifyFunctions:()=>ds,defaultDefine:()=>bo,defineSetter:()=>Mh,destringifyGlobalScope:()=>hs,destroy:()=>Fi,detectHeightOnInit:()=>Kh,detectInfiniteLoop:()=>Cp,detectTag:()=>Sn,devices:()=>QS,dispose:()=>Cn,encodeNewlines:()=>ap,error:()=>cn,excludeKeysFromObject:()=>Ep,exec:()=>le,executeAttr:()=>TL,exetuteClassPerComponent:()=>vL,extendCachedRegistry:()=>Yp,extendStackRegistry:()=>_s,extractArrayExtend:()=>Cs,extractConditionalAttrs:()=>RL,fetchLibraryData:()=>oc,fibonacciNumberByIndex:()=>Zh,filterArrays:()=>tp,filterArraysFast:()=>rp,filterAttributesByTagName:()=>EL,finalizeExtends:()=>Tl,findClosestNumber:()=>nc,findClosestNumberInFactory:()=>sg,findHeadingLetter:()=>Og,findHeadings:()=>yc,findInheritedState:()=>Vl,findKeyPosition:()=>sp,flattenExtend:()=>to,font:()=>MS,fontFace:()=>WS,fontFamily:()=>NS,fontFamilyTypes:()=>zS,formatDate:()=>Gh,generateHash:()=>vl,generateKey:()=>ms,generateMetaTags:()=>ng,generateSequence:()=>ht,generateSequencePosition:()=>u_,generateSprite:()=>pi,generateSubSequence:()=>gc,get:()=>Dh,getActiveConfig:()=>R,getActiveDocument:()=>qg,getActiveLang:()=>Bi,getCDNUrl:()=>It,getCacheSize:()=>A_,getCapitalCaseKeys:()=>rh,getCdnProviderFromConfig:()=>oo,getChildStateInKey:()=>Hl,getChildren:()=>qs,getColor:()=>ce,getColorShade:()=>yg,getContext:()=>Js,getCookie:()=>Hp,getDB:()=>ni,getDefaultOrFirstKey:()=>lo,getEmotionStylesheet:()=>dg,getExtendsInElement:()=>eh,getExtendsStack:()=>ws,getExtendsStackRegistry:()=>wl,getFnPrefixAndValue:()=>jr,getFontFace:()=>LS,getFontFaceEach:()=>co,getFontFaceEachString:()=>wg,getFontFaceString:()=>ic,getFontFamily:()=>Cc,getFontFormat:()=>vg,getFontSizeByKey:()=>Ec,getFrequencyInArray:()=>Ud,getHashedExtend:()=>ks,getImportMapScript:()=>Uh,getInObjectByPath:()=>kp,getLanguages:()=>pu,getLocalStateLang:()=>bu,getLocalStorage:()=>qp,getMediaColor:()=>je,getMediaTheme:()=>Ft,getNev:()=>$p,getObserver:()=>ll,getPageMetadata:()=>og,getParentStateInKey:()=>Wl,getPath:()=>Us,getQuery:()=>oi,getRef:()=>Bh,getRgbTone:()=>hn,getRoot:()=>Zs,getRootContext:()=>Ys,getRootData:()=>Xs,getRootState:()=>Ks,getRootStateInKey:()=>zl,getSequenceValue:()=>mc,getSequenceValueBySymbols:()=>Tg,getSequenceValuePropertyPair:()=>cr,getShadow:()=>Rc,getSignals:()=>Sw,getSpacingBasedOnRatio:()=>gt,getSpacingByKey:()=>Pe,getSpreadChildren:()=>nh,getSubratio:()=>hc,getSubratioDifference:()=>pc,getSystemGlobalTheme:()=>vt,getTheme:()=>wc,getTimingByKey:()=>mt,getTimingFunction:()=>Dt,global:()=>Wd,gradient:()=>US,grid:()=>o_,hasFunction:()=>Zn,hasHandlerPlugin:()=>Xn,hasOwnProperty:()=>mp,hexToRgb:()=>RS,hexToRgbArray:()=>pg,hexToRgba:()=>IS,hslToRgb:()=>mg,icons:()=>ZS,inheritChildExtends:()=>Cl,inheritChildPropsExtends:()=>kl,inheritParentProps:()=>Ps,inheritRecursiveChildExtends:()=>Al,init:()=>yo,initPolyglot:()=>eb,initProps:()=>ch,injectGlobal:()=>ke,is:()=>Xe,isArray:()=>j,isBoolean:()=>ul,isCSSVar:()=>we,isContextComponent:()=>oh,isCyclic:()=>Ap,isDOMNode:()=>Ze,isDate:()=>dl,isDefined:()=>Ne,isDevelopment:()=>Cr,isEmpty:()=>pl,isEmptyObject:()=>yp,isEqualDeep:()=>hl,isFunction:()=>O,isGoogleFontsUrl:()=>ci,isHtmlElement:()=>ts,isLocal:()=>Rp,isMethod:()=>Wh,isMobile:()=>zp,isNode:()=>nr,isNot:()=>Vd,isNotProduction:()=>sn,isNull:()=>fl,isNumber:()=>Gt,isObject:()=>_,isObjectLike:()=>Q,isPhoto:()=>Xh,isProduction:()=>kr,isResolvedColor:()=>ir,isScalingUnit:()=>Wn,isStaging:()=>Pp,isState:()=>mh,isStore:()=>Me,isString:()=>k,isStringFunction:()=>Dp,isSvgTag:()=>Si,isTest:()=>yl,isTesting:()=>Op,isUndefined:()=>_e,isUniversallyReservedKey:()=>Vh,isValidHtmlTag:()=>Gp,isValidTag:()=>vi,isWasmLoaded:()=>Y1,joinArrays:()=>Vn,jointStacks:()=>Jp,keyframes:()=>bi,keys:()=>Ql,loadCssFile:()=>eg,loadJavascript:()=>tg,loadJavascriptFile:()=>Yh,loadJavascriptFileEmbedSync:()=>Qh,loadJavascriptFileSync:()=>Jh,loadRemoteCSS:()=>rg,loadRemoteScript:()=>so,loadTranslations:()=>gu,loadWasm:()=>X1,log:()=>Nh,logGroupIf:()=>Np,logIf:()=>Mp,lookdown:()=>jh,lookdownAll:()=>Fh,lookup:()=>Ih,lowercaseFirstLetter:()=>tn,makeObjectWithoutPrototype:()=>bp,map:()=>pp,mapStringsWithContextComponents:()=>As,matchesComponentNaming:()=>Zt,media:()=>HS,memoize:()=>Fp,merge:()=>me,mergeSharedLibraries:()=>ii,mixTwoColors:()=>PS,mixTwoRgb:()=>jS,mixTwoRgba:()=>bg,nextElement:()=>ei,normalizeLibraryKey:()=>io,numToLetterMap:()=>lr,objectToString:()=>ps,objectizeStringProperty:()=>Es,opacify:()=>Rr,overwrite:()=>gs,overwriteDeep:()=>Ye,overwriteShallow:()=>on,overwriteState:()=>vh,parse:()=>ec,parseColorToken:()=>$r,parseDeep:()=>Hs,pickupElementFromProps:()=>Rl,pickupPropsFromElement:()=>Pl,polyglotFunctions:()=>Mi,polyglotPlugin:()=>vu,popConfig:()=>Ie,previousElement:()=>ti,propExists:()=>ah,propertizeElement:()=>$l,propertizeUpdate:()=>ih,pushConfig:()=>Fe,registerEvent:()=>ki,reinit:()=>hy,remove:()=>Ti,removeChars:()=>cg,removeCookie:()=>Vp,removeDelegatedEvent:()=>qc,removeDuplicateProps:()=>$s,removeDuplicatesInArray:()=>qn,removeFromArray:()=>Gd,removeFromObject:()=>xp,removeNestedKeyByPath:()=>Sp,removeValueFromArray:()=>ss,removeValueFromArrayAll:()=>Yd,reorderArrayByValues:()=>Qd,replaceLiteralsWithObjectFields:()=>en,replaceOctalEscapeSequences:()=>ip,resolveAsset:()=>pe,resolveColorsInGradient:()=>Mc,resolveFileSource:()=>fm,resolveFileUrl:()=>jt,resolveHandler:()=>Yn,resolvePropValue:()=>Bt,resolveSharedLibraries:()=>ig,returnSubThemeOrDefault:()=>DS,returnValueAsText:()=>jl,rgbArrayToHex:()=>hg,rgbToHSL:()=>gg,rgbToHex:()=>$S,runPluginHook:()=>Jn,runThroughMedia:()=>$g,scratchDefaultConfig:()=>fi,scratchSystem:()=>yi,scratchUtils:()=>yn,self:()=>Hd,semanticIcons:()=>XS,sequence:()=>Ir,set:()=>uo,setActiveConfig:()=>kg,setActiveDocument:()=>k_,setActiveRootState:()=>Gs,setClass:()=>aB,setClassname:()=>xL,setColor:()=>bn,setCookie:()=>Wp,setCssEngineHook:()=>tu,setCustomFont:()=>sc,setCustomFontMedia:()=>gn,setEach:()=>x_,setFont:()=>kc,setFontFamily:()=>gi,setFontImport:()=>ui,setGradient:()=>vn,setHashedExtend:()=>xl,setInCustomFontMedia:()=>xg,setInObjectByPath:()=>_p,setLang:()=>mu,setLocalStorage:()=>Up,setMediaTheme:()=>_c,setNodeStyles:()=>Jl,setObserver:()=>yw,setProps:()=>Lh,setPropsPrototype:()=>Rs,setSVG:()=>mi,setScalingVar:()=>dc,setShadow:()=>xn,setSubScalingVar:()=>Eg,setSvgIcon:()=>Fc,setTheme:()=>Sc,setValue:()=>v_,setVariables:()=>f_,setWasmEngine:()=>Hc,shadow:()=>KS,spacing:()=>VS,splitSpacedValue:()=>Pc,splitTopLevelCommas:()=>pn,splitTransition:()=>Ng,spotByPath:()=>Vs,srcsetFor:()=>ao,stringIncludesAny:()=>ls,stringToObject:()=>gp,svg:()=>t_,svgData:()=>r_,swapItemsInArray:()=>Kd,syncProps:()=>Is,templates:()=>n_,theme:()=>GS,timing:()=>YS,toCamel:()=>uc,toCamelCase:()=>ai,toDashCase:()=>li,toDescriptionCase:()=>fg,toTitleCase:()=>ug,toggleFullscreen:()=>qh,transformBackgroundImage:()=>Bg,transformBorder:()=>ur,transformBorderRadius:()=>zc,transformBoxShadow:()=>Bc,transformClassname:()=>B_,transformDuration:()=>Nc,transformShadow:()=>Lg,transformSize:()=>Se,transformSizeRatio:()=>ee,transformTextStroke:()=>Dg,transformTransition:()=>b_,transformersByPrefix:()=>am,transfromGap:()=>Mg,translate:()=>hu,triggerEventOn:()=>Ar,triggerEventOnUpdate:()=>wh,trimStringFromSymbols:()=>op,typography:()=>ac,unit:()=>BS,unstackArrayOfObjects:()=>os,update:()=>Ei,updateProps:()=>uh,updateVars:()=>iB,upsertTranslation:()=>yu,useCssInProps:()=>Ve,usePropsAsCSS:()=>D_,useSelectorsAsCSS:()=>L_,variables:()=>ri,vars:()=>i_,verbose:()=>no,warn:()=>Qs,window:()=>T});var Ke=null,il=0,al=[],ll=()=>Ke,yw=e=>{Ke=e};function xr(e){let t=new Set;function r(){return Ke&&(t.add(Ke),Ke._sources.add(s)),e}function n(i){i!==e&&(e=i,xw(t))}function o(){return e}let s={get:r,set:n,peek:o,_subscribers:t,_type:"signal"};return s}function bw(e){let t,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){Nd(o);let s=Ke;Ke=o;try{let i=e();i!==t?(t=i,r=!1,xw(n)):r=!1}finally{Ke=s}},_notify(){r=!0,n.size>0&&o._execute()},get(){return Ke&&(n.add(Ke),Ke._sources.add(o)),r&&o._execute(),t},peek(){return r&&o._execute(),t}};return o._execute(),o}var Bd=new Set,Md=!1;function Oe(e,t){let r=t?.depth??0,n={_sources:new Set,_type:"effect",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(n._disposed)return;Nd(n);let o=Ke;Ke=n;try{e()}catch(s){console.error("[smbls] effect error:",s)}finally{Ke=o}},_notify(){n._disposed||(il>0?al.push(n):vw(n))},dispose(){n._disposed=!0,Nd(n)}};return n._execute(),n}function wr(e){il++;try{e()}finally{il--,il===0&&vF()}}function vw(e){Bd.add(e),Md||(Md=!0,queueMicrotask(bF))}function bF(){Md=!1;let e=Array.from(Bd).sort((t,r)=>t._depth-r._depth);Bd=new Set;for(let t=0;t<e.length;t++){let r=e[t];r._disposed||r._execute()}}function vF(){for(let e=0;e<al.length;e++)vw(al[e]);al.length=0}function xw(e){let t=Array.from(e);for(let r=0;r<t.length;r++)t[r]._notify()}function Nd(e){for(let t of e._sources)t._subscribers.delete(e);e._sources.clear()}var cl=Symbol("store"),ww=Symbol("signals"),zd=e=>!e||typeof e!="object"||Array.isArray(e)||e[cl]||Object.isFrozen(e)||typeof Node<"u"&&e instanceof Node||e.__ref||e.nodeType||e.nodeName;function ut(e,t,r){r===void 0&&(r=0);let n={},o={},s=t&&t.maxDepth||8;if(e&&typeof e=="object")for(let y in e){let b=e[y];r<s&&b&&typeof b=="object"&&!zd(b)?(o[y]=b,n[y]=xr(ut(b,t,r+1))):(o[y]=b,n[y]=xr(b))}let i=new Proxy(o,{get(y,b){if(b===cl)return!0;if(b===ww)return n;if(b==="__raw")return y;if(b==="update")return a;if(b==="parse")return c;if(b==="clean")return u;if(b==="keys")return d;if(b==="values")return f;if(b==="replace")return h;if(b==="add")return p;if(b==="remove")return g;if(b==="destroy")return m;if(b==="quietUpdate")return l;if(b==="__element")return y.__element;if(b==="parent")return y.parent;if(b==="root")return y.root;if(Object.prototype.hasOwnProperty.call(n,b))return n[b].get();if(y[b]!==void 0)return y[b];if(b!=="root"&&y.root&&y.root!==i)return y.root[b];if(typeof b=="string"&&!b.startsWith("__")&&b!=="then"&&b!=="constructor"&&ll()!=null)return n[b]=xr(void 0),n[b].get()},set(y,b,v){return b==="__element"||b==="parent"||b==="root"?(y[b]=v,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=v,v&&typeof v=="object"&&!zd(v)?n[b].set(ut(v,t,r+1)):n[b].set(v)):(y[b]=v,v&&typeof v=="object"&&!zd(v)?n[b]=xr(ut(v,t,r+1)):n[b]=xr(v)),!0)},has(y,b){return b in n||b in y},ownKeys(y){return Object.keys(n)},getOwnPropertyDescriptor(y,b){return b in n?{enumerable:!0,configurable:!0,value:n[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return n[b]&&(n[b].set(void 0),delete n[b]),delete y[b],!0}});function a(y,b){wr(()=>{for(let x in y)i[x]=y[x]});let v=o.__element;return v&&v.onUpdate&&!b?.quiet&&v.onUpdate(v,i,v.context),i}function l(y){return a(y,{quiet:!0})}function c(y){if(y||(y=new Set),y.has(i))return"[Circular]";y.add(i);let b={};for(let v in n){if(v==="parent"||v==="root"||v.startsWith("__"))continue;let x=n[v].peek();x&&x[cl]?b[v]=x.parse(y):b[v]=x}return b}function u(){return wr(()=>{for(let y in n)delete i[y]}),i}function d(){return Object.keys(n)}function f(){return Object.keys(n).map(y=>n[y].peek())}function h(y){return wr(()=>{for(let b in n)b in y||delete i[b];for(let b in y)i[b]=y[b]}),i}function p(y,b){return i[y]=b,i}function g(y){return delete i[y],i}function m(){u(),o.__element=null,o.parent=null}return i}function Me(e){return e&&e[cl]===!0}function Sw(e){return e[ww]}var yn={};P(yn,{CSS_NATIVE_COLOR_REGEX:()=>Yt,CSS_UNITS:()=>Hn,applyMediaSequenceVars:()=>mn,applySequenceGlobalVars:()=>bc,applySequenceVars:()=>Fr,changeLightness:()=>FS,colorStringToRgbaArray:()=>sr,convertSvgToSymbol:()=>vc,findHeadingLetter:()=>Og,findHeadings:()=>yc,generateSequence:()=>ht,generateSequencePosition:()=>u_,generateSprite:()=>pi,generateSubSequence:()=>gc,getColorShade:()=>yg,getDefaultOrFirstKey:()=>lo,getFnPrefixAndValue:()=>jr,getFontFace:()=>LS,getFontFaceEach:()=>co,getFontFaceEachString:()=>wg,getFontFaceString:()=>ic,getFontFormat:()=>vg,getRgbTone:()=>hn,getSequenceValue:()=>mc,getSequenceValueBySymbols:()=>Tg,getSequenceValuePropertyPair:()=>cr,getSubratio:()=>hc,getSubratioDifference:()=>pc,hexToRgb:()=>RS,hexToRgbArray:()=>pg,hexToRgba:()=>IS,hslToRgb:()=>mg,isCSSVar:()=>we,isGoogleFontsUrl:()=>ci,isResolvedColor:()=>ir,isScalingUnit:()=>Wn,mixTwoColors:()=>PS,mixTwoRgb:()=>jS,mixTwoRgba:()=>bg,numToLetterMap:()=>lr,opacify:()=>Rr,parseColorToken:()=>$r,resolveFileUrl:()=>jt,returnSubThemeOrDefault:()=>DS,rgbArrayToHex:()=>hg,rgbToHSL:()=>gg,rgbToHex:()=>$S,setCustomFont:()=>sc,setCustomFontMedia:()=>gn,setFontImport:()=>ui,setInCustomFontMedia:()=>xg,setScalingVar:()=>dc,setSubScalingVar:()=>Eg,setVariables:()=>f_,splitTopLevelCommas:()=>pn});var Wn=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",Hn=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"];F();var sr=e=>{if(e==="")return[0,0,0,0];if(e.toLowerCase()==="transparent")return[0,0,0,0];if(e[0]==="#")return e.length<7&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(e.length>4?e[4]+e[4]:"")),[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),e.length>7?parseInt(e.substr(7,2),16)/255:1];if(e.indexOf("rgb")===-1&&ue&&T){let t=ue.body.appendChild(ue.createElement("fictum")),r="rgb(1, 2, 3)";if(t.style.color=r,t.style.color!==r){ue.body.removeChild(t);return}if(t.style.color=e,t.style.color===r||t.style.color==="")return ue.body.removeChild(t),[0,0,0,0];e=T.getComputedStyle(t).color,ue.body.removeChild(t)}return e.indexOf("rgb")===0?(e.indexOf("rgba")===-1&&(e=`${e}, 1`),e.match(/[\.\d]+/g).map(t=>+t)):[0,0,0,0]},PS=(e,t,r=.5)=>(e=sr(e),t=sr(t),bg(e,t,r)),RS=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},pg=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},$S=(e,t,r)=>"#"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),hg=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),IS=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${t})`},jS=(e,t,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(e[o]+(t[o]-e[o])*r);return`rgb(${n})`},FS=(e,t)=>{let[r,n,o]=t,s=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,s]},gg=(e,t,r)=>{let n=Math.max(e,t,r),o=n-Math.min(e,t,r),s=1-Math.abs(n+n-o-1),i=o&&(n==e?(t-r)/o:n==t?2+(r-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},mg=(e,t,r,n=t*Math.min(r,1-r),o=(s,i=(s+e/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],yg=(e,t)=>{let r=parseInt(e,16),n=(r>>16)+t;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+t;o>255?o=255:o<0&&(o=0);let s=(r&255)+t;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},bg=(e,t,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(e[o]+(t[o]-e[o])*r)}return`rgba(${n})`},Rr=(e,t)=>{let r=sr(e);if(!r){sn()&&console.warn(e+" color is not rgba");return}return r[3]=t,`rgba(${r})`},we=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,Yt=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,gD=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,$r=e=>{if(!k(e))return null;if(Yt.test(e))return{passthrough:e};if(we(e))return{cssVar:e};let t=e.match(gD);if(!t)return null;let[,r,n,o]=t,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},ir=e=>k(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),pn=e=>{let t=[],r="",n=0;for(let o of e){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){t.push(r),r="";continue}r+=o}return(r.length||!t.length)&&t.push(r),t},hn=(e,t)=>{k(e)&&e.includes("rgb")&&(e=sr(e).join(", ")),k(e)&&(e=e.split(",").map(o=>parseFloat(o.trim()))),Gt(t)&&(t+="");let r=hg(e),n=t.slice(0,1);if(n==="-"||n==="+"){let o=yg(r,parseFloat(t));return pg(o).join(", ")}else{let[o,s,i]=e,a=gg(o,s,i),[l,c,u]=a;return mg(l,c,parseFloat(t)/100*255)}};var DS=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e};var jt=(e,t)=>{if(!e||!t)return null;try{return new URL(e),null}catch{}let r=t[e];return r?r.content&&r.content.src:null},lo=(e,t)=>{if(e[t])return e[t].value;if(e.default)return e[e.default].value;let r=Object.keys(e)[0];return r&&e[r]&&e[r].value},vg=e=>{if(typeof e!="string"||!e)return null;let t=e.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(t)?t:null},ci=e=>e&&(e.includes("fonts.googleapis.com")||e.includes("fonts.gstatic.com")),ui=e=>`@import url('${e}');`,xg=e=>`@font-face { ${e} }`,sc=(e,t,r,n={})=>{let o=(Array.isArray(t)?t:[t]).filter(s=>typeof s=="string"&&s).map(s=>{let i=vg(s),a=i?` format('${i}')`:"";return`url('${s}')${a}`}).join(`,
|
|
25
|
+
}<\/script>`}});var Ih,m_=q(()=>{"use strict";Ih=e=>{if(!e)return"";let t=new Date(e),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(t),n=new Intl.DateTimeFormat("en",{month:"short"}).format(t);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(t)} ${n}, ${r}`}});var Fh,y_=q(()=>{"use strict";Fh=(e,t)=>{let r=setTimeout(()=>{let{props:n}=e;if(!t.clientHeight){let{node:{clientHeight:o}}=e;o&&(t.clientHeight=o)}if(t.active){if(n.height==="auto")return;e.update({height:t.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let o=setTimeout(()=>{e.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(o)},450)}else e.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}});var jh,b_=q(()=>{"use strict";jh=function(t){let r=[0,1];for(let n=2;n<=t;n++)r[n]=r[n-1]+r[n-2];return r[t]}});var Dh,x_=q(()=>{"use strict";Dh=e=>["jpeg","gif","jpg","png","tiff","woff"].includes(e)});function Zn(e,t={}){let{window:r=globalThis}=t,{document:n=r.document}=t;return new Promise((o,s)=>{let i=n.querySelector(`script[src="${e}"]`);if(i)return o(i);let a=n.createElement("script");a.src=e,a.async=t.async===!0,a.type=t.type||"text/javascript",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${e}`))},n.head.appendChild(a)})}async function zh(e,t={}){let{window:r=globalThis}=t,{document:n=r.document}=t;return new Promise((o,s)=>{let i=n.querySelector(`link[href="${e}"]`);if(i)return o(i);let a=n.createElement("link");a.href=e,a.rel=t.rel||"stylesheet",a.type="text/css",a.media=t.media||"all",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${e}`))},n.head.appendChild(a)})}var Lh,Mh,Nh,Bh,Vh,v_=q(()=>{"use strict";Lh=(e,t=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("script");i.type=n,i.async=t,i.src=e,i.addEventListener("load",a=>{o({status:!0})}),i.addEventListener("error",a=>{s(new Error({status:!1,message:`Failed to load the script ${e}`}))}),r.body.appendChild(i)}catch(i){s(i)}}),Mh=(e,t=document,r="text/javascript")=>new Promise((n,o)=>{let s=t.createElement("script");s.type=r,s.src=e;let i=t.createElement("div");i.style.cssText="position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.8);z-index:9999;",t.body.appendChild(i),s.onload=()=>{console.log(`Successfully loaded: ${e}`),t.body.removeChild(i),n()},s.onerror=()=>{t.body.removeChild(i),o(new Error(`Failed to load: ${e}`))},t.body.appendChild(s)}),Nh=(e,t=document,r,n="text/javascript")=>{let o=new window.XMLHttpRequest;if(o.open("GET",e,!1),o.send(),o.status===200){let s=t.createElement("script");s.type=n,s.text=o.responseText,t.body.appendChild(s),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${e}`)},Bh=(e,t=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("link");i.rel="stylesheet",i.href=e,i.addEventListener("load",a=>{o({status:!0})}),r.head.appendChild(i)}catch(i){s(i)}}),Vh=(e,t=!1,r=document,n="text/javascript",o="smbls-script")=>{try{let s=r.createElement("script");s.type=n,s.async=t,s.id=o,s.innerHTML=e,r.body.appendChild(s)}catch(s){console.warn(s)}}});function w2(e,t){if(!t||typeof t!="object")return e;let r=o=>{if(!_2(o))return o;let s=t[o];return s?.src?s.src:o},n={...e};for(let[o,s]of Object.entries(n))typeof s=="string"?n[o]=r(s):Array.isArray(s)&&(n[o]=s.map(i=>typeof i=="string"?r(i):i));return n}function Kl(e,t){if(!e||!t)return;let r=t.split("."),n=e;for(let o of r){if(n==null||typeof n!="object")return;n=n[o]}return n}function S2(e,t,r){let o=(t.config||t.settings||{}).polyglot||t.polyglot,s=r?.lang||o?.defaultLang||"en",a=(o?.translations||{})[s]||{},l=r?.state||{},c={...e};for(let[u,d]of Object.entries(c))typeof d!="string"||!d.includes("{{")||(c[u]=d.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(f,p,h)=>{let g=p.trim();if(h==="polyglot")return a[g]??Kl(a,g)??f;if(h==="getLocalStateLang")return Kl(l,g+s)??f;let m=Kl(l,g);return m!==void 0?m:a[g]??Kl(a,g)??f}));return c}function __(e){let t={...e};for(let[r,n]of Object.entries(t))if(typeof n=="function"){let o=n.toString(),s=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){t[r]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){t[r]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){t[r]=`{{ ${a[1]} }}`;continue}delete t[r]}else if(typeof n=="string"){let o=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){t[r]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){t[r]=`{{ ${s[1]} | polyglot }}`;continue}if(n.includes("=>")&&n.includes("s.")){let i=n.match(/s\.(\w+(?:\.\w+)+)/);if(i){t[r]=`{{ ${i[1]} }}`;continue}}}return t}function Uh(e,t,r,{isProduction:n=!1,channel:o="production"}={}){let s=e.pages?.[t],i=w(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},l=__(a),c=new Set(Object.keys(l)),u=e.app?.metadata||{},d=__(u),f={};if(e.integrations?.seo?f={...e.integrations.seo,...d,...l}:Object.keys(d).length?f={...d,...l}:f={...l},!f.title){let g=e.name||e.key;g?n?f.title=g:o==="development"?f.title=`${g} / dev:symbo.ls`:o==="staging"?f.title=`${g} / staging:symbo.ls`:f.title=`${g} / symbo.ls`:f.title="Symbols demo"}f=S2(f,e,r),f.title&&(c.has("title")||!f["og:title"])&&(c.has("og:title")||(f["og:title"]=f.title)),f.description&&(c.has("description")||!f["og:description"])&&(c.has("og:description")||(f["og:description"]=f.description)),f.title&&!f["twitter:title"]&&(f["twitter:title"]=f.title),f.description&&!f["twitter:description"]&&(f["twitter:description"]=f.description);let p=r?.actualPathname||t;if(f["og:url"]||f.url){let g=(f["og:url"]||f.url||"").replace(/\/$/,"");if(g&&p&&p!=="/"){let m=p.startsWith("/")?p:"/"+p;f["og:url"]=g+m}}f=w2(f,e.files);let h=e.name||e.app?.metadata?.title||e.app?.name||"";for(let[g,m]of Object.entries(f))if(typeof m=="string"&&m.includes("{{")){let y=m.replace(/\{\{[^}]*\}\}/g,"").trim();y?f[g]=y:g==="title"?f[g]=h:delete f[g]}return f}var ut,v2,Wh,_2,w_=q(()=>{"use strict";Re();ut=e=>{if(e==null)return"";let t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.toString().replace(/[&<>"']/g,r=>t[r])},v2=e=>Object.entries(e||{}).filter(([t,r])=>r!==void 0).map(([t,r])=>`${t}="${ut(r)}"`).join(" "),Wh=(e,t)=>(t||(e={...e,robots:"noindex"}),Object.entries(e).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1)return n;if(o==="title")return n.push(`<title>${ut(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${ut(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${ut(s)}">`),n;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(s)?s:[s]).forEach(u=>{if(typeof u=="string")n.push(`<link rel="icon" href="${ut(u)}">`);else if(typeof u=="object"){let d=v2(u);/rel=/.test(d)?n.push(`<link ${d}>`):n.push(`<link rel="icon" ${d}>`)}}),n;if(o==="alternate")return(Array.isArray(s)?s:[s]).forEach(u=>{if(typeof u=="object"){let d=Object.entries(u).filter(([f,p])=>p!==void 0).map(([f,p])=>`${f}="${ut(p)}"`).join(" ");n.push(`<link rel="alternate" ${d}>`)}}),n;let i=(c,u,d="name")=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")n.push(`<meta ${d}="${ut(c)}" content="${ut(u)}">`);else if(Array.isArray(u))u.forEach(f=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")n.push(`<meta ${d}="${ut(c)}" content="${ut(f)}">`);else if(typeof f=="object"){let p=Object.entries(f).filter(([h,g])=>g!==void 0).map(([h,g])=>`${h}="${ut(g)}"`).join(" ");n.push(`<meta ${p}>`)}});else if(typeof u=="object"){let f=Object.entries(u).filter(([p,h])=>h!==void 0).map(([p,h])=>`${p}="${ut(h)}"`).join(" ");n.push(`<meta ${f}>`)}};if(o.startsWith("http-equiv:")){let c=o.replace("http-equiv:","");return i(c,s,"http-equiv"),n}if(o.startsWith("itemprop:")){let c=o.replace("itemprop:","");return i(c,s,"itemprop"),n}let l=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(c=>o.startsWith(c));if(l){let c=o.replace(l,"");return i(`${l.replace(":","")}:${c}`,s,l==="twitter:"||l==="DC:"||l==="DCTERMS:"?"name":"property"),n}if(o.startsWith("apple:")||o.startsWith("msapplication:")){let c=o.startsWith("apple:")?"apple-":"msapplication-",u=o.replace(/^apple:|^msapplication:/,"");return i(`${c}${u}`,s,"name"),n}return i(o,s),n},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">']).join(`
|
|
26
|
+
`)),_2=e=>typeof e=="string"&&e.length>0&&!e.startsWith("/")&&!e.startsWith("http")});var Xl,Hh,S_=q(()=>{"use strict";Re();Xl=(e,t)=>($(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),Hh=(e,t)=>(e=parseFloat(e),w(t)&&(t=Object.values(t)),Xl(e,t))});function Jn(e){let t=String(e||"").trim();if(!t)return{owner:k_,key:"",full:""};let r=null,n=t;if(t.includes("/")){let s=t.indexOf("/");r=t.slice(0,s),n=t.slice(s+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=k_);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function Yl(e,t={}){if((t.provider||"kv")==="api")return C_(e,t);let n=await A2(e,t);return n||C_(e,t)}async function A2(e,t={}){let r=t.kvBaseUrl||k2,n=t.env||"production",o=`${r}/kv/${encodeURIComponent(e)}?env=${n}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function C_(e,t={}){let r=t.apiBaseUrl||C2,{key:n}=Jn(e);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,s=await fetch(o,{method:"GET"});if(!s.ok)return null;let i=await s.json(),l=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(p=>{let{key:h}=Jn(p?.key);return h.toLowerCase()===n.toLowerCase()});if(!l?.id&&!l?._id)return null;let c=l.id||l._id,u=`${r}/core/projects/${encodeURIComponent(c)}/data?branch=main`,d=await fetch(u,{method:"GET"});if(!d.ok)return null;let f=await d.json();return f?.data||f||null}catch{return null}}async function qh(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async n=>{if(w(n))return n;if(C(n)){let{full:o}=Jn(n);if(!o)return null;try{let s=await Yl(o,t);return s||console.warn(`[smbls] Shared library "${o}" not found`),s}catch(s){return console.warn(`[smbls] Failed to fetch shared library "${o}":`,s.message),null}}return null}))).filter(Boolean)}var k_,k2,C2,Qs,ei,A_=q(()=>{"use strict";Re();k_="system",k2="https://smbls-kv.nika-980.workers.dev",C2="https://api.symbols.app";Qs=(e,t)=>{for(let r in t)r in e?w(e[r])&&w(t[r])&&Qs(e[r],t[r]):e[r]=t[r]},ei=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(w(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(w(n[o])&&w(e[o]))if(o==="designSystem")Qs(e[o],n[o]);else for(let s in n[o])s in e[o]||(e[o][s]=n[o][s]);else o in e||(e[o]=n[o])}}}});var Gh,Kh,Xh,ti,Yh,ri,Zh,an,E_=q(()=>{"use strict";Re();Gh=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn("Failed to copy text: ",t)}},Kh=async e=>{try{let t=new Blob([e],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":t});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(t){console.error("Failed to copy JavaScript code: ",t)}},Xh=e=>e.replace(/[^a-zA-Z0-9_]/g,""),ti=e=>(typeof e!="string"&&(e=String(e||"")),e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(t,r){return r===0?t.toLowerCase():t.toUpperCase()}).replace(/\s+/g,"")),Yh=e=>e&&e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),ri=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Zh=(e="")=>{if(typeof e!="string")return;let t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},an=e=>{if($(e))return e;if(C(e))return e.split(" ");if(w(e))return Object.values(e);if(zt(e))return[e]}});var Jh,O_=q(()=>{"use strict";Jh=()=>{let e=document.styleSheets[0],t="";if(e)try{let r=e.cssRules||e.rules;for(let n=0;n<r.length;n++)t+=r[n].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return t}});var Ye,Qn,ni,oi,T_=q(()=>{"use strict";Ye=e=>{let t=e&&e.src;if(!t||typeof t!="string")return null;let r=e.context;if(!r)return null;let n=r.assets&&r.assets[t]||r.files&&r.files[t];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},Qn=(e,{keepOneX:t=!0}={})=>{if(!Array.isArray(e)||!e.length)return"";let r=e.some(o=>typeof o.width=="number"),n=[];for(let o of e)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&t?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},ni=e=>{if(!e||!Array.isArray(e.variants))return"";let t=e.variants.filter(r=>r.format===e.type);return Qn(t,{keepOneX:!1})},oi=(e,t)=>{if(!e||typeof e!="object"||typeof e.src!="string")return[];if(!Array.isArray(e.variants)||!e.variants.length)return[{tag:"img",attr:{src:e.src,alt:t||""}}];let r=new Map;for(let a of e.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,l]of r)a!==e.type&&n.push({tag:"source",attr:{type:a,srcset:Qn(l,{keepOneX:!0})}});let o=r.get(e.type)||[],s=Qn(o,{keepOneX:!1}),i={src:e.src,alt:t||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}});var P_={};G(P_,{CDN_PROVIDERS:()=>Et,DOMQL_EVENTS:()=>Jd,DOMQ_PROPERTIES:()=>xr,ENV:()=>hp,HTML_TAGS:()=>Hn,METHODS:()=>Nn,METHODS_EXL:()=>ss,NODE_ENV:()=>kt,OPTIONS:()=>Os,PACKAGE_MANAGER_TO_CDN:()=>Er,PARSED_DOMQ_PROPERTIES:()=>os,PROPS_METHODS:()=>vr,STATE_METHODS:()=>Qr,STATE_PROPERTIES:()=>Zd,SVG_TAGS:()=>Tv,TYPES:()=>Zo,UNIVERSAL_RESERVED_KEYS:()=>Gl,addCaching:()=>$l,addContext:()=>Rl,addExtend:()=>Np,addExtends:()=>Xe,addItemAfterEveryElement:()=>Md,addProtoToArray:()=>es,addRef:()=>Ol,applyDependentState:()=>oh,applyEvent:()=>Ml,applyEventUpdate:()=>Nl,applyExtends:()=>$v,applyProps:()=>ws,arrayContainsOtherArray:()=>Rd,arraysEqual:()=>Bd,arrayzeValue:()=>an,buildImgSrcset:()=>ni,buildSourcesAndImg:()=>oi,cache:()=>ch,call:()=>Eh,captureSnapshot:()=>Th,checkForStateTypes:()=>eh,checkIfInherits:()=>Ll,checkIfStringIsInArray:()=>Wd,clone:()=>ep,cloneAndMergeArrayExtend:()=>hs,cloneFunction:()=>Sp,concatAddExtends:()=>Dp,copyJavaScriptToClipboard:()=>Kh,copyStringToClipboard:()=>Gh,createBasedOnType:()=>El,createElement:()=>Qp,createElementExtends:()=>gl,createExtends:()=>ms,createExtendsFromKeys:()=>qn,createExtendsStack:()=>xl,createIfConditionFlag:()=>kp,createInheritedState:()=>th,createKey:()=>ds,createNestedObject:()=>ap,createNestedObjectByKeyPath:()=>nh,createObjectWithoutPrototype:()=>ll,createParent:()=>Tl,createPath:()=>Pl,createProps:()=>Ss,createPropsStack:()=>Cl,createRoot:()=>Jp,createScope:()=>ih,createSnapshotId:()=>fs,customDecodeURIComponent:()=>Yd,customEncodeURIComponent:()=>Xd,cutArrayAfterValue:()=>Dd,cutArrayBeforeValue:()=>jd,debounce:()=>ps,debounceOnContext:()=>vp,decodeNewlines:()=>Kd,deepClone:()=>ue,deepContains:()=>sp,deepDefaults:()=>Qs,deepDestringifyFunctions:()=>lt,deepExtend:()=>hl,deepMerge:()=>ae,deepMergeExtends:()=>Wt,deepStringifyFunctions:()=>is,defineSetter:()=>Ch,destringifyGlobalScope:()=>ls,detectHeightOnInit:()=>Fh,detectInfiniteLoop:()=>fp,document:()=>ce,encodeNewlines:()=>Gd,error:()=>sn,excludeKeysFromObject:()=>pp,exec:()=>le,extendCachedRegistry:()=>Lp,extendStackRegistry:()=>ys,extractArrayExtend:()=>xs,fetchLibraryData:()=>Yl,fibonacciNumberByIndex:()=>jh,filterArrays:()=>Vd,filterArraysFast:()=>zd,finalizeExtends:()=>vl,findClosestNumber:()=>Xl,findClosestNumberInFactory:()=>Hh,findInheritedState:()=>Dl,findKeyPosition:()=>Hd,flattenExtend:()=>Gn,formatDate:()=>Ih,generateHash:()=>fl,generateKey:()=>us,generateMetaTags:()=>Wh,get:()=>wh,getCDNUrl:()=>Ot,getCapitalCaseKeys:()=>zp,getCdnProviderFromConfig:()=>Yn,getChildStateInKey:()=>jl,getChildren:()=>Ns,getContext:()=>qs,getCookie:()=>Tp,getDB:()=>Zs,getEmotionStylesheet:()=>Jh,getExtendsInElement:()=>Bp,getExtendsStack:()=>gs,getExtendsStackRegistry:()=>pl,getFrequencyInArray:()=>$d,getHashedExtend:()=>bs,getImportMapScript:()=>$h,getInObjectByPath:()=>up,getLocalStorage:()=>Rp,getNev:()=>bp,getPageMetadata:()=>Uh,getParentStateInKey:()=>Fl,getPath:()=>Bs,getQuery:()=>Js,getRef:()=>kh,getRoot:()=>Ws,getRootContext:()=>Hs,getRootData:()=>Us,getRootState:()=>zs,getRootStateInKey:()=>Il,getSpreadChildren:()=>Wp,global:()=>Od,hasFunction:()=>Vn,hasHandlerPlugin:()=>zn,hasOwnProperty:()=>rp,inheritChildExtends:()=>yl,inheritChildPropsExtends:()=>ml,inheritParentProps:()=>ks,inheritRecursiveChildExtends:()=>bl,initProps:()=>Xp,is:()=>Ge,isArray:()=>$,isBoolean:()=>nl,isContextComponent:()=>Up,isCyclic:()=>dp,isDOMNode:()=>He,isDate:()=>sl,isDefined:()=>qe,isDevelopment:()=>wr,isEmpty:()=>il,isEmptyObject:()=>np,isEqualDeep:()=>al,isFunction:()=>E,isHtmlElement:()=>Xo,isLocal:()=>yp,isMethod:()=>Oh,isMobile:()=>Ep,isNode:()=>tr,isNot:()=>Pd,isNotProduction:()=>rn,isNull:()=>ol,isNumber:()=>zt,isObject:()=>w,isObjectLike:()=>Q,isPhoto:()=>Dh,isProduction:()=>_r,isStaging:()=>mp,isState:()=>rh,isString:()=>C,isStringFunction:()=>wp,isTest:()=>ul,isTesting:()=>gp,isUndefined:()=>Pe,isUniversallyReservedKey:()=>Ph,isValidHtmlTag:()=>Ip,joinArrays:()=>Dn,jointStacks:()=>Mp,keys:()=>Hl,loadCssFile:()=>Bh,loadJavascript:()=>Vh,loadJavascriptFile:()=>Lh,loadJavascriptFileEmbedSync:()=>Nh,loadJavascriptFileSync:()=>Mh,loadRemoteCSS:()=>zh,loadRemoteScript:()=>Zn,log:()=>Ah,logGroupIf:()=>Ap,logIf:()=>Cp,lookdown:()=>vh,lookdownAll:()=>_h,lookup:()=>xh,lowercaseFirstLetter:()=>Jr,makeObjectWithoutPrototype:()=>op,map:()=>Qd,mapStringsWithContextComponents:()=>vs,matchesComponentNaming:()=>Ut,memoize:()=>_p,merge:()=>ge,mergeSharedLibraries:()=>ei,nextElement:()=>Ks,normalizeLibraryKey:()=>Jn,objectToString:()=>as,objectizeStringProperty:()=>_s,overwrite:()=>cs,overwriteDeep:()=>Ke,overwriteShallow:()=>tn,overwriteState:()=>sh,parse:()=>ql,parseDeep:()=>Ls,pickupElementFromProps:()=>Sl,pickupPropsFromElement:()=>wl,previousElement:()=>Xs,propExists:()=>Gp,propertizeElement:()=>kl,propertizeUpdate:()=>qp,remove:()=>l_,removeChars:()=>Xh,removeCookie:()=>Pp,removeDuplicateProps:()=>As,removeDuplicatesInArray:()=>Ln,removeFromArray:()=>Id,removeFromObject:()=>ip,removeNestedKeyByPath:()=>lp,removeValueFromArray:()=>Qo,removeValueFromArrayAll:()=>Ld,reorderArrayByValues:()=>Nd,replaceLiteralsWithObjectFields:()=>Zr,replaceOctalEscapeSequences:()=>qd,resolveAsset:()=>Ye,resolveHandler:()=>Wn,resolveSharedLibraries:()=>qh,returnValueAsText:()=>Al,runPluginHook:()=>Ct,self:()=>Td,setActiveRootState:()=>Vs,setCookie:()=>Op,setHashedExtend:()=>dl,setInObjectByPath:()=>cp,setLocalStorage:()=>$p,setNodeStyles:()=>Ul,setProps:()=>Sh,setPropsPrototype:()=>Cs,spotByPath:()=>Ms,srcsetFor:()=>Qn,stringIncludesAny:()=>rs,stringToObject:()=>tp,swapItemsInArray:()=>Fd,syncProps:()=>Es,toCamelCase:()=>ti,toDashCase:()=>ri,toDescriptionCase:()=>Zh,toTitleCase:()=>Yh,toggleFullscreen:()=>Rh,triggerEventOn:()=>Sr,triggerEventOnUpdate:()=>ah,trimStringFromSymbols:()=>Ud,unstackArrayOfObjects:()=>Jo,update:()=>Kp,updateProps:()=>Yp,variables:()=>Ys,verbose:()=>Xn,warn:()=>Gs,window:()=>A});var I=q(()=>{"use strict";cl();xp();Re();rr();Un();Mn();Yo();Av();Ev();ns();Ko();Ov();Fp();Vp();Zp();_l();Mv();Nv();Bn();Bv();f_();uh();d_();lh();p_();h_();g_();m_();y_();b_();x_();v_();w_();S_();A_();E_();O_();T_()});var vC=Sd((E9,xC)=>{var vo=1e3,_o=vo*60,wo=_o*60,wn=wo*24,RF=wn*7,$F=wn*365.25;xC.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return IF(e);if(r==="number"&&isFinite(e))return t.long?jF(e):FF(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function IF(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*$F;case"weeks":case"week":case"w":return r*RF;case"days":case"day":case"d":return r*wn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*wo;case"minutes":case"minute":case"mins":case"min":case"m":return r*_o;case"seconds":case"second":case"secs":case"sec":case"s":return r*vo;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function FF(e){var t=Math.abs(e);return t>=wn?Math.round(e/wn)+"d":t>=wo?Math.round(e/wo)+"h":t>=_o?Math.round(e/_o)+"m":t>=vo?Math.round(e/vo)+"s":e+"ms"}function jF(e){var t=Math.abs(e);return t>=wn?wu(e,t,wn,"day"):t>=wo?wu(e,t,wo,"hour"):t>=_o?wu(e,t,_o,"minute"):t>=vo?wu(e,t,vo,"second"):e+" ms"}function wu(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var wC=Sd((O9,_C)=>{function DF(e){r.debug=r,r.default=r,r.coerce=l,r.disable=i,r.enable=o,r.enabled=a,r.humanize=vC(),r.destroy=c,Object.keys(e).forEach(u=>{r[u]=e[u]}),r.names=[],r.skips=[],r.formatters={};function t(u){let d=0;for(let f=0;f<u.length;f++)d=(d<<5)-d+u.charCodeAt(f),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=t;function r(u){let d,f=null,p,h;function g(...m){if(!g.enabled)return;let y=g,b=Number(new Date),x=b-(d||b);y.diff=x,y.prev=d,y.curr=b,d=b,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let v=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(S,O)=>{if(S==="%%")return"%";v++;let T=r.formatters[O];if(typeof T=="function"){let k=m[v];S=T.call(y,k),m.splice(v,1),v--}return S}),r.formatArgs.call(y,m),(y.log||r.log).apply(y,m)}return g.namespace=u,g.useColors=r.useColors(),g.color=r.selectColor(u),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(p!==r.namespaces&&(p=r.namespaces,h=r.enabled(u)),h),set:m=>{f=m}}),typeof r.init=="function"&&r.init(g),g}function n(u,d){let f=r(this.namespace+(typeof d>"u"?":":d)+u);return f.log=this.log,f}function o(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let d=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let f of d)f[0]==="-"?r.skips.push(f.slice(1)):r.names.push(f)}function s(u,d){let f=0,p=0,h=-1,g=0;for(;f<u.length;)if(p<d.length&&(d[p]===u[f]||d[p]==="*"))d[p]==="*"?(h=p,g=f,p++):(f++,p++);else if(h!==-1)p=h+1,g++,f=g;else return!1;for(;p<d.length&&d[p]==="*";)p++;return p===d.length}function i(){let u=[...r.names,...r.skips.map(d=>"-"+d)].join(",");return r.enable(""),u}function a(u){for(let d of r.skips)if(s(u,d))return!1;for(let d of r.names)if(s(u,d))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}_C.exports=DF});var SC=Sd((Je,Su)=>{Je.formatArgs=MF;Je.save=NF;Je.load=BF;Je.useColors=LF;Je.storage=VF();Je.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Je.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function LF(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function MF(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Su.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}Je.log=console.debug||console.log||(()=>{});function NF(e){try{e?Je.storage.setItem("debug",e):Je.storage.removeItem("debug")}catch{}}function BF(){let e;try{e=Je.storage.getItem("debug")||Je.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function VF(){try{return localStorage}catch{}}Su.exports=wC()(Je);var{formatters:zF}=Su.exports;zF.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var ON={};G(ON,{ANIMATION_PROPS:()=>Lg,ARIA_ROLES:()=>M$,ATTR_TRANSFORMS:()=>Jg,BLOCK_PROPS:()=>Mg,CDN_PROVIDERS:()=>Et,CONFIG:()=>nc,CSS_NATIVE_COLOR_REGEX:()=>qt,CSS_PROPS_REGISTRY:()=>we,CSS_UNITS:()=>jn,DEFAULT_CONFIG:()=>Oi,DEFAULT_CSS_PROPERTIES_LIST:()=>Le,DELEGATED_EVENTS:()=>vi,DESIGN_SYSTEM_OPTIONS:()=>oy,DOMQL_EVENTS:()=>Jd,DOMQ_PROPERTIES:()=>xr,DOM_EVENTS:()=>Hw,ENV:()=>hp,FACTORY:()=>sr,FLEX_PROPS:()=>Wg,FONT_PROPS:()=>Ng,GRID_PROPS:()=>Ug,HTML_ATTRIBUTES:()=>Mc,HTML_TAGS:()=>Hn,LIFECYCLE_EVENTS:()=>xn,METHODS:()=>Nn,METHODS_EXL:()=>ss,MISC_PROPS:()=>Bg,MIXINS:()=>Ig,NODE_ENV:()=>kt,OPTIONS:()=>Os,PACKAGE_MANAGER_TO_CDN:()=>Er,PARSED_DOMQ_PROPERTIES:()=>os,POSITION_PROPS:()=>Vg,PROPS_METHODS:()=>vr,REGISTRY:()=>Ze,ROUTER_OPTIONS:()=>Jc,STATE_PROPERTIES:()=>Zd,SVG_TAGS:()=>bi,THEME_PROPS:()=>zg,TIMING_PROPS:()=>Ci,TYPES:()=>Zo,UNIVERSAL_RESERVED_KEYS:()=>Gl,VALUE_TRANSFORMERS:()=>Eg,activateConfig:()=>F2,addCaching:()=>$l,addContext:()=>Rl,addDelegatedEvent:()=>Dc,addExtend:()=>Np,addExtends:()=>Xe,addItemAfterEveryElement:()=>Md,addMethods:()=>Ei,addProtoToArray:()=>es,addRef:()=>Ol,animation:()=>tw,appendSVGSprite:()=>Ac,appendSvgIconsSprite:()=>Oc,applyAttrTransforms:()=>tm,applyCSS:()=>ey,applyDependentState:()=>oh,applyDocument:()=>Cc,applyEvent:()=>Ml,applyEventUpdate:()=>Nl,applyExtends:()=>wi,applyHeadings:()=>xg,applyInitialState:()=>Yg,applyMediaSequenceVars:()=>fn,applyProps:()=>ws,applyReset:()=>Tc,applySequenceGlobalVars:()=>uc,applySequenceVars:()=>Rr,applySpacingSequence:()=>_c,applyStateMethods:()=>mt,applyTimingSequence:()=>kc,applyTrueProps:()=>qg,applyTypographySequence:()=>bc,arrayContainsOtherArray:()=>Rd,arraysEqual:()=>Bd,arrayzeValue:()=>an,batch:()=>br,breakpoints:()=>Q_,buildImgSrcset:()=>ni,buildSourcesAndImg:()=>oi,cache:()=>ch,cacheNode:()=>bn,call:()=>Eh,captureSnapshot:()=>Th,changeGlobalTheme:()=>Og,changeLightness:()=>D_,checkAttributeByTagName:()=>Fr,checkEventFunctions:()=>em,checkForStateTypes:()=>eh,checkIfBoxSize:()=>vc,checkIfInherits:()=>Ll,checkIfStringIsInArray:()=>Wd,class:()=>iw,clone:()=>ep,cloneAndMergeArrayExtend:()=>hs,cloneFunction:()=>Sp,color:()=>q_,colorStringToRgbaArray:()=>nr,components:()=>lo,concatAddExtends:()=>Dp,convertSvgToSymbol:()=>fc,copyJavaScriptToClipboard:()=>Kh,copyStringToClipboard:()=>Gh,create:()=>gv,createAsync:()=>CN,createBasedOnType:()=>El,createComputed:()=>xv,createConfig:()=>fg,createDefine:()=>u1,createEffect:()=>Ae,createElement:()=>Qp,createElementExtends:()=>gl,createExtends:()=>ms,createExtendsFromKeys:()=>qn,createExtendsStack:()=>xl,createHTMLNode:()=>yi,createIfConditionFlag:()=>kp,createInheritedState:()=>th,createKey:()=>ds,createNestedObject:()=>ap,createNestedObjectByKeyPath:()=>nh,createObjectWithoutPrototype:()=>ll,createParent:()=>Tl,createPath:()=>Pl,createProps:()=>Ss,createPropsStack:()=>Cl,createRoot:()=>Jp,createScope:()=>ih,createSignal:()=>yr,createSkeleton:()=>EN,createSnapshotId:()=>fs,createState:()=>Ww,createStore:()=>at,createSync:()=>AN,css:()=>$r,cssMediaVars:()=>cg,cssVars:()=>lg,customDecodeURIComponent:()=>Yd,customEncodeURIComponent:()=>Xd,cutArrayAfterValue:()=>Dd,cutArrayBeforeValue:()=>jd,debounce:()=>ps,debounceOnContext:()=>vp,decodeNewlines:()=>Kd,deepClone:()=>ue,deepContains:()=>sp,deepDefaults:()=>Qs,deepDestringifyFunctions:()=>lt,deepExtend:()=>hl,deepMerge:()=>ae,deepMergeExtends:()=>Wt,deepStringifyFunctions:()=>is,defaultDefine:()=>fo,defineSetter:()=>Ch,destringifyGlobalScope:()=>ls,destroy:()=>$i,detectHeightOnInit:()=>Fh,detectInfiniteLoop:()=>fp,detectTag:()=>yn,devices:()=>ew,dispose:()=>vn,encodeNewlines:()=>Gd,error:()=>sn,excludeKeysFromObject:()=>pp,exec:()=>le,executeAttr:()=>B$,exetuteClassPerComponent:()=>R$,extendCachedRegistry:()=>Lp,extendStackRegistry:()=>ys,extractArrayExtend:()=>xs,extractConditionalAttrs:()=>W$,fetchLibraryData:()=>Yl,fibonacciNumberByIndex:()=>jh,filterArrays:()=>Vd,filterArraysFast:()=>zd,filterAttributesByTagName:()=>N$,finalizeExtends:()=>vl,findClosestNumber:()=>Xl,findClosestNumberInFactory:()=>Hh,findHeadingLetter:()=>gg,findHeadings:()=>cc,findInheritedState:()=>Dl,findKeyPosition:()=>Hd,flattenExtend:()=>Gn,font:()=>B_,fontFace:()=>W_,fontFamily:()=>V_,fontFamilyTypes:()=>z_,formatDate:()=>Ih,generateHash:()=>fl,generateKey:()=>us,generateMetaTags:()=>Wh,generateSequence:()=>ft,generateSequencePosition:()=>fw,generateSprite:()=>ui,generateSubSequence:()=>ac,get:()=>wh,getActiveConfig:()=>P,getActiveDocument:()=>Rg,getActiveLang:()=>Fi,getCDNUrl:()=>Ot,getCacheSize:()=>Ew,getCapitalCaseKeys:()=>zp,getCdnProviderFromConfig:()=>Yn,getChildStateInKey:()=>jl,getChildren:()=>Ns,getColor:()=>de,getColorShade:()=>ng,getContext:()=>qs,getCookie:()=>Tp,getDB:()=>Zs,getDefaultOrFirstKey:()=>eo,getEmotionStylesheet:()=>Jh,getExtendsInElement:()=>Bp,getExtendsStack:()=>gs,getExtendsStackRegistry:()=>pl,getFnPrefixAndValue:()=>Pr,getFontFace:()=>M_,getFontFaceEach:()=>to,getFontFaceEachString:()=>ag,getFontFaceString:()=>Jl,getFontFamily:()=>yc,getFontFormat:()=>sg,getFontSizeByKey:()=>xc,getFrequencyInArray:()=>$d,getHashedExtend:()=>bs,getImportMapScript:()=>$h,getInObjectByPath:()=>up,getLanguages:()=>tu,getLocalStateLang:()=>iu,getLocalStorage:()=>Rp,getMediaColor:()=>De,getMediaTheme:()=>Pt,getNev:()=>bp,getObserver:()=>tl,getPageMetadata:()=>Uh,getParentStateInKey:()=>Fl,getPath:()=>Bs,getQuery:()=>Js,getRef:()=>kh,getRgbTone:()=>cn,getRoot:()=>Ws,getRootContext:()=>Hs,getRootData:()=>Us,getRootState:()=>zs,getRootStateInKey:()=>Il,getSequenceValue:()=>lc,getSequenceValueBySymbols:()=>hg,getSequenceValuePropertyPair:()=>ar,getShadow:()=>Sc,getSignals:()=>Sv,getSpacingBasedOnRatio:()=>Gt,getSpacingByKey:()=>Ee,getSpreadChildren:()=>Wp,getSubratio:()=>ic,getSubratioDifference:()=>sc,getSystemGlobalTheme:()=>gt,getTheme:()=>pc,getTimingByKey:()=>dt,getTimingFunction:()=>Rt,global:()=>Od,gradient:()=>G_,grid:()=>sw,hasFunction:()=>Vn,hasHandlerPlugin:()=>zn,hasOwnProperty:()=>rp,hexToRgb:()=>$_,hexToRgbArray:()=>Qh,hexToRgba:()=>F_,hslToRgb:()=>rg,icons:()=>Y_,inheritChildExtends:()=>yl,inheritChildPropsExtends:()=>ml,inheritParentProps:()=>ks,inheritRecursiveChildExtends:()=>bl,init:()=>uo,initPolyglot:()=>sy,initProps:()=>Xp,injectGlobal:()=>_e,is:()=>Ge,isArray:()=>$,isBoolean:()=>nl,isCSSVar:()=>xe,isContextComponent:()=>Up,isCyclic:()=>dp,isDOMNode:()=>He,isDate:()=>sl,isDefined:()=>qe,isDevelopment:()=>wr,isEmpty:()=>il,isEmptyObject:()=>np,isEqualDeep:()=>al,isFunction:()=>E,isGoogleFontsUrl:()=>ii,isHtmlElement:()=>Xo,isLocal:()=>yp,isMethod:()=>Oh,isMobile:()=>Ep,isNode:()=>tr,isNot:()=>Pd,isNotProduction:()=>rn,isNull:()=>ol,isNumber:()=>zt,isObject:()=>w,isObjectLike:()=>Q,isPhoto:()=>Dh,isProduction:()=>_r,isResolvedColor:()=>or,isScalingUnit:()=>Fn,isStaging:()=>mp,isState:()=>rh,isStore:()=>je,isString:()=>C,isStringFunction:()=>wp,isSvgTag:()=>xi,isTest:()=>ul,isTesting:()=>gp,isUndefined:()=>Pe,isUniversallyReservedKey:()=>Ph,isValidHtmlTag:()=>Ip,isValidTag:()=>mi,isWasmLoaded:()=>Zk,joinArrays:()=>Dn,jointStacks:()=>Mp,keyframes:()=>gi,keys:()=>Hl,loadCssFile:()=>Bh,loadJavascript:()=>Vh,loadJavascriptFile:()=>Lh,loadJavascriptFileEmbedSync:()=>Nh,loadJavascriptFileSync:()=>Mh,loadRemoteCSS:()=>zh,loadRemoteScript:()=>Zn,loadTranslations:()=>nu,loadWasm:()=>Yk,log:()=>Ah,logGroupIf:()=>Ap,logIf:()=>Cp,lookdown:()=>vh,lookdownAll:()=>_h,lookup:()=>xh,lowercaseFirstLetter:()=>Jr,makeObjectWithoutPrototype:()=>op,map:()=>Qd,mapStringsWithContextComponents:()=>vs,matchesComponentNaming:()=>Ut,media:()=>U_,memoize:()=>_p,merge:()=>ge,mergeSharedLibraries:()=>ei,mixTwoColors:()=>R_,mixTwoRgb:()=>j_,mixTwoRgba:()=>og,nextElement:()=>Ks,normalizeLibraryKey:()=>Jn,numToLetterMap:()=>ir,objectToString:()=>as,objectizeStringProperty:()=>_s,opacify:()=>si,overwrite:()=>cs,overwriteDeep:()=>Ke,overwriteShallow:()=>tn,overwriteState:()=>sh,parse:()=>ql,parseColorToken:()=>Or,parseDeep:()=>Ls,pickupElementFromProps:()=>Sl,pickupPropsFromElement:()=>wl,polyglotFunctions:()=>ji,polyglotPlugin:()=>au,popConfig:()=>$e,previousElement:()=>Xs,propExists:()=>Gp,propertizeElement:()=>kl,propertizeUpdate:()=>qp,pushConfig:()=>Ie,registerEvent:()=>_i,reinit:()=>Qm,remove:()=>ki,removeChars:()=>Xh,removeCookie:()=>Pp,removeDelegatedEvent:()=>Lc,removeDuplicateProps:()=>As,removeDuplicatesInArray:()=>Ln,removeFromArray:()=>Id,removeFromObject:()=>ip,removeNestedKeyByPath:()=>lp,removeValueFromArray:()=>Qo,removeValueFromArrayAll:()=>Ld,reorderArrayByValues:()=>Nd,replaceLiteralsWithObjectFields:()=>Zr,replaceOctalEscapeSequences:()=>qd,resolveAsset:()=>Ye,resolveColorsInGradient:()=>Rc,resolveFileSource:()=>Zg,resolveFileUrl:()=>Tt,resolveHandler:()=>Wn,resolvePropValue:()=>Ir,resolveSharedLibraries:()=>qh,returnSubThemeOrDefault:()=>L_,returnValueAsText:()=>Al,rgbArrayToHex:()=>eg,rgbToHSL:()=>tg,rgbToHex:()=>I_,runPluginHook:()=>Ct,runThroughMedia:()=>bg,scratchDefaultConfig:()=>li,scratchSystem:()=>hi,scratchUtils:()=>dn,self:()=>Td,semanticIcons:()=>Z_,sequence:()=>Tr,set:()=>ro,setActiveConfig:()=>ug,setActiveDocument:()=>Cw,setActiveRootState:()=>Vs,setClass:()=>bI,setClassname:()=>$$,setColor:()=>pn,setCookie:()=>Op,setCssEngineHook:()=>Kc,setCustomFont:()=>Zl,setCustomFontMedia:()=>un,setEach:()=>_w,setFont:()=>mc,setFontFamily:()=>di,setFontImport:()=>ai,setGradient:()=>hn,setHashedExtend:()=>dl,setInCustomFontMedia:()=>ig,setInObjectByPath:()=>cp,setLang:()=>ou,setLocalStorage:()=>$p,setMediaTheme:()=>gc,setNodeStyles:()=>Ul,setObserver:()=>bv,setProps:()=>Sh,setPropsPrototype:()=>Cs,setSVG:()=>pi,setScalingVar:()=>oc,setShadow:()=>gn,setSubScalingVar:()=>pg,setSvgIcon:()=>Ec,setTheme:()=>hc,setValue:()=>vw,setVariables:()=>dw,setWasmEngine:()=>jc,shadow:()=>X_,spacing:()=>H_,splitSpacedValue:()=>wc,splitTopLevelCommas:()=>ln,splitTransition:()=>Ag,spotByPath:()=>Ms,srcsetFor:()=>Qn,stringIncludesAny:()=>rs,stringToObject:()=>tp,svg:()=>rw,svgData:()=>nw,swapItemsInArray:()=>Fd,syncProps:()=>Es,templates:()=>ow,theme:()=>K_,timing:()=>J_,toCamel:()=>rc,toCamelCase:()=>ti,toDashCase:()=>ri,toDescriptionCase:()=>Zh,toTitleCase:()=>Yh,toggleFullscreen:()=>Rh,transformBackgroundImage:()=>kg,transformBorder:()=>lr,transformBorderRadius:()=>Ic,transformBoxShadow:()=>Pc,transformClassname:()=>Nw,transformDuration:()=>$c,transformShadow:()=>Sg,transformSize:()=>ve,transformSizeRatio:()=>ee,transformTextStroke:()=>wg,transformTransition:()=>xw,transformersByPrefix:()=>Gg,transfromGap:()=>Cg,translate:()=>ru,triggerEventOn:()=>Sr,triggerEventOnUpdate:()=>ah,trimStringFromSymbols:()=>Ud,typography:()=>Ql,unit:()=>N_,unstackArrayOfObjects:()=>Jo,update:()=>Si,updateProps:()=>Yp,updateVars:()=>yI,upsertTranslation:()=>su,useCssInProps:()=>tt,usePropsAsCSS:()=>Lw,useSelectorsAsCSS:()=>Mw,variables:()=>Ys,vars:()=>aw,verbose:()=>Xn,warn:()=>Gs,window:()=>A});var Ue=null,Qa=0,el=[],tl=()=>Ue,bv=e=>{Ue=e};function yr(e){let t=new Set;function r(){return Ue&&(t.add(Ue),Ue._sources.add(s)),e}function n(i){i!==e&&(e=i,_v(t))}function o(){return e}let s={get:r,set:n,peek:o,_subscribers:t,_type:"signal"};return s}function xv(e){let t,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){Ad(o);let s=Ue;Ue=o;try{let i=e();i!==t?(t=i,r=!1,_v(n)):r=!1}finally{Ue=s}},_notify(){r=!0,n.size>0&&o._execute()},get(){return Ue&&(n.add(Ue),Ue._sources.add(o)),r&&o._execute(),t},peek(){return r&&o._execute(),t}};return o._execute(),o}var kd=new Set,Cd=!1;function Ae(e,t){let r=t?.depth??0,n={_sources:new Set,_type:"effect",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(n._disposed)return;Ad(n);let o=Ue;Ue=n;try{e()}catch(s){console.error("[smbls] effect error:",s)}finally{Ue=o}},_notify(){n._disposed||(Qa>0?el.push(n):vv(n))},dispose(){n._disposed=!0,Ad(n)}};return n._execute(),n}function br(e){Qa++;try{e()}finally{Qa--,Qa===0&&RR()}}function vv(e){kd.add(e),Cd||(Cd=!0,queueMicrotask(PR))}function PR(){Cd=!1;let e=Array.from(kd).sort((t,r)=>t._depth-r._depth);kd=new Set;for(let t=0;t<e.length;t++){let r=e[t];r._disposed||r._execute()}}function RR(){for(let e=0;e<el.length;e++)vv(el[e]);el.length=0}function _v(e){let t=Array.from(e);for(let r=0;r<t.length;r++)t[r]._notify()}function Ad(e){for(let t of e._sources)t._subscribers.delete(e);e._sources.clear()}var rl=Symbol("store"),wv=Symbol("signals"),Ed=e=>!e||typeof e!="object"||Array.isArray(e)||e[rl]||Object.isFrozen(e)||typeof Node<"u"&&e instanceof Node||e.__ref||e.nodeType||e.nodeName;function at(e,t,r){r===void 0&&(r=0);let n={},o={},s=t&&t.maxDepth||8;if(e&&typeof e=="object")for(let y in e){let b=e[y];r<s&&b&&typeof b=="object"&&!Ed(b)?(o[y]=b,n[y]=yr(at(b,t,r+1))):(o[y]=b,n[y]=yr(b))}let i=new Proxy(o,{get(y,b){if(b===rl)return!0;if(b===wv)return n;if(b==="__raw")return y;if(b==="update")return a;if(b==="parse")return c;if(b==="clean")return u;if(b==="keys")return d;if(b==="values")return f;if(b==="replace")return p;if(b==="add")return h;if(b==="remove")return g;if(b==="destroy")return m;if(b==="quietUpdate")return l;if(b==="__element")return y.__element;if(b==="parent")return y.parent;if(b==="root")return y.root;if(Object.prototype.hasOwnProperty.call(n,b))return n[b].get();if(y[b]!==void 0)return y[b];if(b!=="root"&&y.root&&y.root!==i)return y.root[b];if(typeof b=="string"&&!b.startsWith("__")&&b!=="then"&&b!=="constructor"&&tl()!=null)return n[b]=yr(void 0),n[b].get()},set(y,b,x){return b==="__element"||b==="parent"||b==="root"?(y[b]=x,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=x,x&&typeof x=="object"&&!Ed(x)?n[b].set(at(x,t,r+1)):n[b].set(x)):(y[b]=x,x&&typeof x=="object"&&!Ed(x)?n[b]=yr(at(x,t,r+1)):n[b]=yr(x)),!0)},has(y,b){return b in n||b in y},ownKeys(y){return Object.keys(n)},getOwnPropertyDescriptor(y,b){return b in n?{enumerable:!0,configurable:!0,value:n[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return n[b]&&(n[b].set(void 0),delete n[b]),delete y[b],!0}});function a(y,b){br(()=>{for(let v in y)i[v]=y[v]});let x=o.__element;return x&&x.onUpdate&&!b?.quiet&&x.onUpdate(x,i,x.context),i}function l(y){return a(y,{quiet:!0})}function c(y){if(y||(y=new Set),y.has(i))return"[Circular]";y.add(i);let b={};for(let x in n){if(x==="parent"||x==="root"||x.startsWith("__"))continue;let v=n[x].peek();v&&v[rl]?b[x]=v.parse(y):b[x]=v}return b}function u(){return br(()=>{for(let y in n)delete i[y]}),i}function d(){return Object.keys(n)}function f(){return Object.keys(n).map(y=>n[y].peek())}function p(y){return br(()=>{for(let b in n)b in y||delete i[b];for(let b in y)i[b]=y[b]}),i}function h(y,b){return i[y]=b,i}function g(y){return delete i[y],i}function m(){u(),o.__element=null,o.parent=null}return i}function je(e){return e&&e[rl]===!0}function Sv(e){return e[wv]}var dn={};G(dn,{CSS_NATIVE_COLOR_REGEX:()=>qt,CSS_UNITS:()=>jn,applyMediaSequenceVars:()=>fn,applySequenceGlobalVars:()=>uc,applySequenceVars:()=>Rr,changeLightness:()=>D_,colorStringToRgbaArray:()=>nr,convertSvgToSymbol:()=>fc,findHeadingLetter:()=>gg,findHeadings:()=>cc,generateSequence:()=>ft,generateSequencePosition:()=>fw,generateSprite:()=>ui,generateSubSequence:()=>ac,getColorShade:()=>ng,getDefaultOrFirstKey:()=>eo,getFnPrefixAndValue:()=>Pr,getFontFace:()=>M_,getFontFaceEach:()=>to,getFontFaceEachString:()=>ag,getFontFaceString:()=>Jl,getFontFormat:()=>sg,getRgbTone:()=>cn,getSequenceValue:()=>lc,getSequenceValueBySymbols:()=>hg,getSequenceValuePropertyPair:()=>ar,getSubratio:()=>ic,getSubratioDifference:()=>sc,hexToRgb:()=>$_,hexToRgbArray:()=>Qh,hexToRgba:()=>F_,hslToRgb:()=>rg,isCSSVar:()=>xe,isGoogleFontsUrl:()=>ii,isResolvedColor:()=>or,isScalingUnit:()=>Fn,mixTwoColors:()=>R_,mixTwoRgb:()=>j_,mixTwoRgba:()=>og,numToLetterMap:()=>ir,opacify:()=>si,parseColorToken:()=>Or,resolveFileUrl:()=>Tt,returnSubThemeOrDefault:()=>L_,rgbArrayToHex:()=>eg,rgbToHSL:()=>tg,rgbToHex:()=>I_,setCustomFont:()=>Zl,setCustomFontMedia:()=>un,setFontImport:()=>ai,setInCustomFontMedia:()=>ig,setScalingVar:()=>oc,setSubScalingVar:()=>pg,setVariables:()=>dw,splitTopLevelCommas:()=>ln});var Fn=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",jn=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"];I();var nr=e=>{if(e==="")return[0,0,0,0];if(e.toLowerCase()==="transparent")return[0,0,0,0];if(e[0]==="#")return e.length<7&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(e.length>4?e[4]+e[4]:"")),[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),e.length>7?parseInt(e.substr(7,2),16)/255:1];if(e.indexOf("rgb")===-1&&ce&&A){let t=ce.body.appendChild(ce.createElement("fictum")),r="rgb(1, 2, 3)";if(t.style.color=r,t.style.color!==r){ce.body.removeChild(t);return}if(t.style.color=e,t.style.color===r||t.style.color==="")return ce.body.removeChild(t),[0,0,0,0];e=A.getComputedStyle(t).color,ce.body.removeChild(t)}return e.indexOf("rgb")===0?(e.indexOf("rgba")===-1&&(e=`${e}, 1`),e.match(/[\.\d]+/g).map(t=>+t)):[0,0,0,0]},R_=(e,t,r=.5)=>(e=nr(e),t=nr(t),og(e,t,r)),$_=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},Qh=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},I_=(e,t,r)=>"#"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),eg=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),F_=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${t})`},j_=(e,t,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(e[o]+(t[o]-e[o])*r);return`rgb(${n})`},D_=(e,t)=>{let[r,n,o]=t,s=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,s]},tg=(e,t,r)=>{let n=Math.max(e,t,r),o=n-Math.min(e,t,r),s=1-Math.abs(n+n-o-1),i=o&&(n==e?(t-r)/o:n==t?2+(r-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},rg=(e,t,r,n=t*Math.min(r,1-r),o=(s,i=(s+e/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],ng=(e,t)=>{let r=parseInt(e,16),n=(r>>16)+t;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+t;o>255?o=255:o<0&&(o=0);let s=(r&255)+t;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},og=(e,t,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(e[o]+(t[o]-e[o])*r)}return`rgba(${n})`},si=(e,t)=>{let r=nr(e);if(!r){rn()&&console.warn(e+" color is not rgba");return}return r[3]=t,`rgba(${r})`},xe=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,qt=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,E2=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Or=e=>{if(!C(e))return null;if(qt.test(e))return{passthrough:e};if(xe(e))return{cssVar:e};let t=e.match(E2);if(!t)return null;let[,r,n,o]=t,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},or=e=>C(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),ln=e=>{let t=[],r="",n=0;for(let o of e){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){t.push(r),r="";continue}r+=o}return(r.length||!t.length)&&t.push(r),t},cn=(e,t)=>{C(e)&&e.includes("rgb")&&(e=nr(e).join(", ")),C(e)&&(e=e.split(",").map(o=>parseFloat(o.trim()))),zt(t)&&(t+="");let r=eg(e),n=t.slice(0,1);if(n==="-"||n==="+"){let o=ng(r,parseFloat(t));return Qh(o).join(", ")}else{let[o,s,i]=e,a=tg(o,s,i),[l,c,u]=a;return rg(l,c,parseFloat(t)/100*255)}};var L_=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e};var Tt=(e,t)=>{if(!e||!t)return null;try{return new URL(e),null}catch{}let r=t[e];return r?r.content&&r.content.src:null},eo=(e,t)=>{if(e[t])return e[t].value;if(e.default)return e[e.default].value;let r=Object.keys(e)[0];return r&&e[r]&&e[r].value},sg=e=>{if(typeof e!="string"||!e)return null;let t=e.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(t)?t:null},ii=e=>e&&(e.includes("fonts.googleapis.com")||e.includes("fonts.gstatic.com")),ai=e=>`@import url('${e}');`,ig=e=>`@font-face { ${e} }`,Zl=(e,t,r,n={})=>{let i=(Array.isArray(t)?t:[t]).filter(a=>typeof a=="string"&&a).map(a=>{let l=sg(a),c=l?` format('${l}')`:"";return`url('${a}')${c}`}).join(`,
|
|
27
27
|
`);return`
|
|
28
28
|
font-family: '${e}';
|
|
29
29
|
font-style: ${n.fontStyle||"normal"};${r?`
|
|
30
30
|
font-weight: ${r};`:""}${n.fontStretch?`
|
|
31
31
|
font-stretch: ${n.fontStretch};`:""}${n.fontDisplay?`
|
|
32
32
|
font-display: ${n.fontDisplay};`:""}
|
|
33
|
-
src: ${
|
|
34
|
-
}`,co=(e,t,r)=>Object.keys(t).map(n=>{let{url:o,fontWeight:s,fontStyle:i,fontDisplay:a,fontStretch:l}=t[n],c=Array.isArray(o)?o.map(u=>jt(u,r)||u):jt(o,r)||o;return sc(e,c,s,{fontStyle:i,fontDisplay:a,fontStretch:l})}),LS=e=>Object.keys(e).map(t=>co(t,e[t].value)),wg=(e,t,r)=>{if(t&&t.isVariable){let o=jt(t.url,r)||t.url;return ci(o)?ui(o):gn(e,o,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return co(e,t,r).map(xg);let n=Array.isArray(t.url)?t.url.map(o=>jt(o,r)||o):jt(t.url,r)||t.url;return gn(e,n,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},ic=(e,t)=>Object.keys(e).map(r=>wg(r,e[r].value,t));F();F();F();var fi={};P(fi,{animation:()=>e_,breakpoints:()=>JS,class:()=>s_,color:()=>qS,devices:()=>QS,document:()=>vD,font:()=>MS,fontFace:()=>WS,fontFamily:()=>NS,fontFamilyTypes:()=>zS,gradient:()=>US,grid:()=>o_,icons:()=>ZS,media:()=>HS,reset:()=>wD,semanticIcons:()=>XS,sequence:()=>Ir,shadow:()=>KS,spacing:()=>VS,svg:()=>t_,svgData:()=>r_,templates:()=>n_,theme:()=>GS,timing:()=>YS,typography:()=>ac,unit:()=>BS,vars:()=>i_});var Ir={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4};var BS={default:"em"};var mD={browserDefault:16,base:16,type:"font-size",ratio:Ir["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},ac=mD;var MS={};var NS={},zS={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},WS={};var HS={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var yD={base:ac.base,type:"spacing",ratio:Ir.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},VS=yD;var qS={},US={};var GS={};var KS={};var ZS={},XS={};var bD={default:150,base:150,type:"timing",ratio:Ir["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},YS=bD;var vD={};var JS={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},QS={screenXXL:[2560,1440],screenXL:[2240,1260],screenL:[1920,1024],screenM:[1680,1024],screenS:[1440,720],tabletL:[1366,926],tabletM:[1280,768],tabletS:[1024,768],mobileL:[768,375],mobileM:[560,768],mobileS:[480,768],mobileXS:[375,768]};var e_={};var t_={},r_={};var n_={};var xD={},o_=xD;var s_={};var wD={},i_={};var Sg={},_g={},lc=fi,cc={},uc=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in lc){let t=e.toLowerCase();cc[t]=lc[e];let r=uc(t);r!==t&&(cc[r]=lc[e]),t!==e&&(cc[e]=lc[e])}var fc={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:Sg,cssMediaVars:_g,CSS_VARS:Sg,CSS_MEDIA_VARS:_g,_scratchConfig:!0,...cc},a_=fe(fc),ar={active:"0",0:fc},SD=e=>(Ne(e)&&(ar.active=e),ar[e||ar.active]),di=[],Fe=e=>{e&&e._scratchConfig&&di.push(e)},Ie=()=>{di.pop()},R=e=>di.length?di[di.length-1]:ar[e||ar.active]||fc,kg=e=>{if(_(e))return ar.active="1",ar[1]=ae(e,fe(a_)),e},_D=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],kD=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],CD=e=>{for(let t of kD){let r;for(let n of t){let o=e[n];_(o)&&(r=r?ae(o,r):o)}if(r)for(let n of t)_(e[n])&&(e[n]=r)}},Cg=(e,t,{cleanBase:r=!1}={})=>{let n=r?null:R(),o=fe(!r&&n&&n._scratchConfig?n:a_);for(let i of _D)delete o[i];let s=ae(t||{},o);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,CD(s),e&&(ar[e]=s),s};var lr={"-6":"U","-5":"V","-4":"W","-3":"X","-2":"Y","-1":"Z",0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T"},Ag=(e,t)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=e;t.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},t.scales[r]=s;let l=l_.has(t.unit)?"rem":t.unit;t.vars[n]=s+l},jr=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},l_=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),dc=(e,t)=>{let{base:r,type:n,unit:o}=t,s=l_.has(o)?"rem":o,i=(Wn(s)?1:r)+s;if(e===0)return i;let a="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-")),l=`${a}-ratio`;if(e>0){let c=lr[e-1];return`calc(var(${a}-${c}) * var(${l}))`}if(e<0){let c=lr[e+1],u=Math.abs(e),d=Math.pow(c_,2*u),f=lr[u];return f?`max(calc(var(${a}-${c}) / var(${l})), calc(var(${a}-${f}) / ${d.toFixed(4)}))`:`calc(var(${a}-${c}) / var(${l}))`}},Eg=(e,t,r,n)=>{let{type:o}=n,s=e===2&&t.length===2?e+1:e,i=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${i+s}))`},pc=(e,t)=>{let r=(e*t-e)/1.618,n=e*t-r,o=e+r,s=(n+o)/2;return[n,s,o]},hc=(e,t)=>pc(e,t).map(r=>r/e),gc=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,l=~~(o*s)-~~o,c,[u,d,f]=pc(o,s);l>16?c=[u,d,f]:c=[u,f],c.forEach((h,p)=>{let g=~~(h/n*1e3)/1e3,m=i+(p+1),y=a+(p+1)/10,b=Eg(p+1,c,i,t),v={key:r+(p+1),variable:m,value:h,scaling:g,scalingVariable:b,index:y};Ag(v,t)})},c_=1.618,AD=(e,t,r)=>{if(e>=0)return t*Math.pow(r,e);let n=Math.abs(e),o=t*Math.pow(r,e),s=t*Math.pow(r,n)/Math.pow(c_,2*n);return Math.max(o,s)},ht=e=>{let{type:t,base:r,ratio:n,range:o,subSequence:s}=e,i=Math.abs(o[0])+Math.abs(o[1]),a="--"+(e.varPrefix?e.varPrefix+"-":"")+(t&&t.replace(".","-"))+"-";for(let l=0;l<=i;l++){let c=o[1]-l,u=lr[c],d=AD(c,r,n),f=~~(d/r*100)/100,h=a+u,p=dc(c,e),g={key:u,variable:h,value:d,base:r,scaling:f,scalingVariable:p,ratio:n,index:c};Ag(g,e),s&&gc(g,e)}return e},u_=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=k(t)?t:lr[t],a=k(t)?Object.entries(lr).find(([,p])=>p===t)?.[0]:t;if(!i)return console.warn(`Position ${t} is out of range in numToLetterMap`),null;let l={sequence:{},scales:{},vars:{},...e},c=n*Math.pow(o,a),u=~~(c/n*100)/100,d="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,f=dc(a,e),h={key:i,variable:d,value:c,base:n,scaling:u,scalingVariable:f,ratio:o,index:a};return Ag(h,l),s&&gc(h,l),l},mc=(e="A",t)=>{let r=R(),{unit:n}=r;if(k(e)&&we(e))return`var(${e})`;let{sequence:o,unit:s=n.default,useVariable:i}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(Hn.some(m=>e.includes(m))||!l||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(e))return e;let c=`--${t.varPrefix?t.varPrefix+"-":""}${li(t.type.replace(".","-"))}-`,u=e.toUpperCase(),d=u.slice(0,1)==="-"?"-":"",f=d?u.slice(1):u,h="";f.includes("_")&&(h="_"+f.split("_")[1].toLowerCase(),f=f.split("_")[0]);let p=m=>a.test(m)?`var(${c}${m}${h})`:m;if(f.includes("+")){let[m,y]=f.split("+"),b=`${p(m)} + ${p(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("*")){let[m,y]=f.split("*"),b=`${p(m)} * ${p(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("-")){let[m,y]=f.split("-"),b=`${p(m)} - ${p(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}if(!o[f]&&f.length===2&&(r.verbose&&console.warn(f,"- value is not found because `subSequence` is set to false"),f=f.slice(0,1)),i||r.useVariable){let m=`var(${c}${f}${h})`;return d?`calc(${m} * -1)`:m}let g=o?o[f]:null;return g?s==="ms"||s==="s"?d+g.val+s:d+g.scaling+s:console.warn("can't find",o,f)},Tg=(e,t)=>{if(!["+","-","*","/",","].filter(n=>e.includes(n+" ")).length)return e;let r=/(\s*[+\-*/,]\s*)/;return e.split(r).map(n=>{let o=n.trim();return!o||["+","-","*","/",","].includes(o)?n:mc(o,t)}).join("")},cr=(e,t,r,n)=>{if(typeof e!="string")return R().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let o=jr(e);n=o[0],e=o[1]}return["+","-","*","/",","].filter(o=>e.includes(o+" ")).length?e=Tg(e,r):e=mc(e,r),{[t]:n?`${n}(${e})`:e}},Og=(e,t)=>lr[e-t],yc=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=Og(t,o);return r[s]})};F();var f_=(e,t)=>{let r=R(),{cssVars:n}=r;Q(e.value)||(n[e.var]=e.value)},bc=(e,t,r)=>{let n=R(),{unit:o}=n,s=t.unit||o.default,{base:i,ratio:a,type:l}=t,c="--"+(t.varPrefix?t.varPrefix+"-":"")+(l&&l.replace(".","-"));e[`${c}-base`]=i,e[`${c}-unit`]=s;let u=`${c}-ratio`;e[u]=a;let[d,f,h]=hc(i,a);e[`${c}-sub-ratio-1`]=`calc(var(${c}-ratio) * ${d/a})`,e[`${c}-sub-ratio-2`]=`calc(var(${c}-ratio) * ${f/a})`,e[`${c}-sub-ratio-3`]=`calc(var(${c}-ratio) * ${h/a})`},d_=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Fr=(e,t={})=>{let r=R(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=d_.has(i)?"rem":i,{mediaRegenerate:l,sequence:c,scales:u}=e;l||bc(s,e,t);for(let d in c){let f=c[d],h=(e.type===o.type?c[d].val:u[d])+a;if(!l){s[f.variable+"_default"]=h,s[f.variable]=f.scalingVariable;continue}t.useDefault===!1?s[f.variable]=h:(s[f.variable+"_default"]=h,s[f.variable]=`var(${f.variable+"_default"})`)}},mn=(e,t,r={})=>{let n=R(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=d_.has(c)?"rem":c,{mediaRegenerate:d}=e,{sequence:f,scales:h}=l,p=s[a];if(!p&&n.verbose&&console.warn("Can't find media query ",p),!d){let g=i[`@media ${p}`];g||(g=i[`@media ${p}`]={}),bc(g,l,r);let m=e.unit||o.default;if(u!==m&&f)for(let y in f){let b=f[y],v=h[y]+u;g[b.variable+"_default"]=v,g[b.variable]=v}return}for(let g in f){let m=f[g],y=(Wn(u)?h[g]:f[g].val)+u;!p&&n.verbose&&console.warn("Can't find query ",p);let b=i[`@media ${p}`];b||(b=i[`@media ${p}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};F();var ED=sn(),pi=e=>{let t=R(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},TD=e=>{let t=e&&(e.default||e);if(!k(t))return ED&&console.warn("parseRootAttributes:",t,"is not a string"),{};let r=t.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let n=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return n?n.reduce((o,s)=>{let[i,a]=s.split("=");return o[i]=a.replace(/['"]/g,""),o},{}):{}},OD=(e,t)=>{let r=[];if(e.replace(/id="([^"]*)"/g,(o,s)=>(r.push(s),o)),!r.length)return e;let n=e;for(let o of r){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${t}-${o}`;n=n.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return n},vc=(e,t)=>{let r=TD(t),{width:n,height:o}=r,s=r.viewBox||`0 0 ${n||24} ${o||24}`,i=OD(t,e).replace("<svg",`<symbol id="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="${s}"`);return i=i.replace(/width="[^"]*"/,""),i=i.replace(/height="[^"]*"/,""),i=i.replace("</svg","</symbol"),i=$D(i),i},PD="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",RD=new RegExp(`<(${PD})\\b([^>]*?)\\s*/>`,"g"),$D=e=>e.replace(RD,"<$1$2></$1>");var yi={};P(yi,{appendSVGSprite:()=>jc,appendSvgIconsSprite:()=>Dc,applyDocument:()=>Ic,applyHeadings:()=>Ig,applyReset:()=>Lc,applySpacingSequence:()=>Oc,applyTimingSequence:()=>$c,applyTypographySequence:()=>Ac,checkIfBoxSize:()=>Tc,getColor:()=>ce,getFontFamily:()=>Cc,getFontSizeByKey:()=>Ec,getMediaColor:()=>je,getMediaTheme:()=>Ft,getShadow:()=>Rc,getSpacingBasedOnRatio:()=>gt,getSpacingByKey:()=>Pe,getTheme:()=>wc,getTimingByKey:()=>mt,getTimingFunction:()=>Dt,runThroughMedia:()=>$g,setColor:()=>bn,setFont:()=>kc,setFontFamily:()=>gi,setGradient:()=>vn,setMediaTheme:()=>_c,setSVG:()=>mi,setShadow:()=>xn,setSvgIcon:()=>Fc,setTheme:()=>Sc,splitSpacedValue:()=>Pc});F();var ce=(e,t,r)=>{let n=r||R();if(!k(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(we(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,s,i;if(j(e))[o,s,i]=e;else{let d=$r(e);if(!d){let{color:f,gradient:h}=n,p=h[e]||f[e];return p?n.useVariable?`var(${p.var})`:p.value:e}if(d.passthrough)return d.passthrough;if(d.cssVar)return`var(${d.cssVar})`;o=d.name,s=d.alpha,i=d.tone}let{color:a,gradient:l}=n,c=a[o]||l[o];if(!c)return n.verbose&&console.warn("Can't find color ",o),e;t&&(c[t]?c=c[t]:n.verbose&&console.warn(e," - does not have ",t));let u=c.rgb;return u?(i&&!c[i]&&(u=hn(u,i),c[i]={rgb:u,var:`${c.var}-${i}`}),c[i]&&(u=c[i].rgb),s?`rgba(${u}, ${s})`:i?`rgba(${u}, 1)`:n.useVariable?`var(${c.var})`:`rgb(${u})`):n.useVariable?`var(${c.var})`:c.value},je=(e,t,r)=>{let n=r||R();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!k(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(we(e))return`var(${e})`;let o;if(j(e))o=e[0];else{let c=$r(e);if(!c)return e;if(c.passthrough)return c.passthrough;if(c.cssVar)return`var(${c.cssVar})`;o=c.name}let{color:s,gradient:i}=n,a=s[o]||i[o],l=_(a);if(l&&a.value)return ce(e,`@${t}`,r);if(l){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return ce(e,`@${t}`,r);{let c={};for(let u in a){if(u.charCodeAt(0)!==64)continue;let d=n.media[u.slice(1)];if(!d)continue;let f="@media "+(d==="print"?`${d}`:`screen and ${d}`);c[f]=ce(e,u,r)}return c}}else return n.verbose&&console.warn("Can't find color",e),e},bn=(e,t,r)=>{let n=R();if(k(e)&&we(e)){let p=e.slice(2);if(e=ce(p),!(e.includes("rgb")||e.includes("var")||e.includes("#"))){let g=p.split(" "),m=n.color[g[0]];if(m&&!m.value&&!m.rgb&&(k(m)||j(m)||_(m))&&(n.color[g[0]]=bn(m,g[0]),m=n.color[g[0]]),m&&m.value){let y=m.rgb,b=g[1]!==void 0?g[1]:"1",v=g[2];v&&(y=hn(y,v)),e=`rgba(${y}, ${b})`}else{let y=g[2],b=g[1]!==void 0?g[1]:"1";if(y)try{let v=sr(g[0]);v&&v.length>=3?e=`rgba(${hn(v.slice(0,3).join(", "),y)}, ${b})`:e=g[0]}catch{e=g[0]}else e=g[0]}}}if(j(e)&&(e={"@light":e[0],"@dark":e[1]}),_(e)){let p={};for(let g in e)p[g]=bn(e[g],t,g.slice(0,1)==="@"?g.slice(1):g);if(n.useVariable){let g=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`,m,y={};for(let b in p){if(b.charCodeAt(0)!==64)continue;let v=b.slice(1),x=p[b],w=x&&(x.value||x);!w||typeof w!="string"||(y[v]=w,(v==="light"||m===void 0)&&(m=w))}if(m!==void 0){n.cssVars[g]=m,n.cssMediaVars||(n.cssMediaVars={});for(let b in y){let v=`[data-theme="${b}"]`;if(n.cssMediaVars[v]||(n.cssMediaVars[v]={}),n.cssMediaVars[v][g]=y[b],b==="light"||b==="dark"){let x=`@media (prefers-color-scheme: ${b})`;n.cssMediaVars[x]||(n.cssMediaVars[x]={}),n.cssMediaVars[x][g]=y[b]}}p.var=g}}return p}let o=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),s=e.value||e;if(k(s)&&s.includes(".")&&!s.includes("(")){let[p,g]=s.split("."),m=n.color[p];m&&m.rgb&&(s=`rgba(${m.rgb}, ${parseFloat("0."+g)||1})`)}if(k(s)&&!s.includes("(")&&!s.startsWith("#")){let p=$r(s);if(p&&p.name&&!p.passthrough&&!p.cssVar){let g=n.color[p.name];g&&!g.value&&!g.rgb&&(k(g)||j(g)||_(g))&&(n.color[p.name]=bn(g,p.name));let m=n.color[p.name];if(m&&m.rgb){let y=m.rgb;p.tone&&(y=hn(y,p.tone));let b=p.alpha?parseFloat(p.alpha):1;s=`rgba(${y}, ${b})`}}}let i=sr(s),[a,l,c,u=1]=i,d=parseFloat(u.toFixed(2)),f=`${a}, ${l}, ${c}`,h=`rgba(${f}, ${d})`;return n.useVariable&&(n.cssVars[o]=h),{var:o,rgb:f,alpha:d,value:h}},vn=(e,t,r)=>{let n=R();if(k(e)&&we(e)&&(e=ce(e.slice(2))),j(e))return{"@light":vn(e[0],t,"light"),"@dark":vn(e[0],t,"dark")};if(_(e)){let s={};for(let i in e)s[i]=vn(e[i],t,i.slice(0,1)==="@"?i.slice(1):i);return s}let o=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${t}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[o]=e.value||e),{var:o,value:e.value||e}};F();var ID=new Set(["black","white","red","green","blue","yellow","orange","purple","pink","brown","gray","grey","cyan","magenta","lime","olive","navy","teal","aqua","maroon","silver","fuchsia","transparent","currentColor","currentcolor","inherit","initial","unset","none","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),p_=["color","Color","background","Background","fill","Fill","stroke","Stroke"],jD=e=>{for(let t=0;t<p_.length;t++)if(e.includes(p_[t]))return!0;return!1},xc=e=>{let t={},{state:r,media:n,helpers:o,...s}=e;return Object.keys(s).map(i=>{let a=["color","Color","background","border"].some(l=>i.includes(l));return t[i]=a?ce(e[i]):e[i]}),t},hi=e=>(e.value||(e.value=xc(e)),e.value),wc=(e,t)=>{let r=R();if(r.useVariable)return Ft(e,t);let n=r.theme;if(k(e)){let[o,s]=e.split(" "),i=n[o];if(i){if(!s&&!t)return hi(i);e=[o,s||t]}}if(Q(e)&&e[1]){let o=e[0],s=e[1],{helpers:i,media:a,state:l}=n[o];if(a&&a[s])return hi(a[s]);if(i&&i[s])return hi(i[s]);if(l&&l[s])return hi(l[s])}else if(_(e))return xc(e)},FD=(e,t,r)=>{if(_(t))e.variants.inverse.value=xc(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},DD=(e,t,r,n)=>{let o=wc(r);n[`&:${t}`]=o,_(r)&&!r.value&&(r.value=o)},LD=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return DD(e,n,o,t),e}),e):void 0},BD=(e,t,r,n)=>{let o=wc(r);n[`@media (prefers-color-scheme: ${t})`]=o,_(r)&&!r.value&&(r.value=o)},MD=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return(n==="dark"||n==="light")&&BD(e,n,o,t),n==="inverse"&&FD(e,o,t),e}),e):void 0},ND=(e,t)=>{let r=R(),{helpers:n}=e;return n?(Object.keys(n).map(o=>{let s=n[o];return k(s)?n[o]=r.theme[s]:hi(n[o]),e}),e):void 0},Sc=(e,t)=>{let r=R();if(r.useVariable)return _c(e,t);let{state:n,media:o,helpers:s}=e,i=xc(e,t),a=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return LD(e,i),MD(e,i),ND(e,i),{var:a,value:i,state:n,media:o,helpers:s}};var Pg=(e,t,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let c in e)if(e[c])for(let u of Object.keys(e[c]))a.add(u);let l=new Set;for(let c of a){let u=c.slice(0,1);if(!(u==="@"||u==="."||u===":")&&jD(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let h=ce(f,`@${d}`);h!==void 0&&k(h)&&/^[a-z][a-zA-Z]+$/.test(h)&&!ID.has(h)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>Q(f?.[c]));if(u==="."&&d){let f=c.slice(1),h={};for(let p in e)Q(e[p]?.[c])&&(h[p]=e[p][c]);i[c]=Pg(h,`${t}-${f}`,r)}else if(u===":"&&d){let f=c.replace(/^:+/,""),h={};for(let p in e)Q(e[p]?.[c])&&(h[p]=e[p][c]);i[c]=Pg(h,`${t}-${f}`,r)}else if(u!=="@"&&u!=="."&&u!==":"){let f=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}-${c}`,h=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,p;for(let g in e){if(l.has(g))continue;let m=e[g]?.[c];if(m===void 0)continue;let y=ce(m,`@${g}`);if(y===void 0)continue;(h&&g===h||!h&&(g==="light"||p===void 0))&&(p=y);let b=`[data-theme="${g}"]`;if(o[b]||(o[b]={}),o[b][f]=y,g==="dark"||g==="light"){let v=`@media (prefers-color-scheme: ${g})`;o[v]||(o[v]={}),o[v][f]=y}}p!==void 0&&(n[f]=p),i[c]=`var(${f})`,i[`.${c}`]={[c]:i[c]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},_c=(e,t,r,n)=>{let o=R(),{cssVars:s}=o,i={value:e},a=!r&&!n;if(Q(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith("@")&&Q(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=Pg(l,t,o);Object.assign(i,c)}}for(let l in e){let c=l.slice(0,1),u=e[l];if(c==="@"||c===":"||c==="."){let d=c==="@"&&l;i[l]=_c(u,t,l,n||d)}else if(!a){let d=ce(u,n),f=[...new Set([n,r].filter(g=>g).map(g=>g.slice(1)))],h=f.length?"-"+f.join("-"):"",p=`--${o.varPrefix?o.varPrefix+"-":""}theme-${t}${h}-${l}`;o.useVariable?(o.useThemeSuffixedVars&&(s[p]=d),i[l]=`var(${p})`):i[l]=d,i[`.${l}`]={[l]:i[l]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(k(e)&&we(e)){let l=o.theme[e.slice(2)];return Ft(l,n)}return i},Rg=e=>{let t=R(),r={};for(let n in e){let o=n.slice(0,1);if(Q(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=Rg(e[n]):o==="."&&(r[`&${n}`]=Rg(e[n]))}else r[n]=e[n]}return r},g_=(e,t)=>{let r=t.shift();return e[r]?g_(e[r],t):e},h_=(e,t)=>j(t)?g_(e,t):k(t)&&e[t]?e[t]:e;var Ft=(e,t)=>{let r=R();if(k(e)&&we(e)&&(e=Ft(e.slice(2))),!e||!k(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=j(e)?e:e.split(" "),s=r.theme[n];return s&&o.length?s=h_(s,o):s&&t&&(s=h_(s,t)),Rg(s)};F();F();var kc=(e,t)=>{let r=R(),n=`--font-${t}`;if(!e||j(e)&&!e[0])return;let o;if(e.isVariable){let s=jt(e.url,r.files)||e.url;ci(s)?o=ui(s):o=gn(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=co(t,e,r.files);else{let s=Array.isArray(e.url)?e.url.map(i=>jt(i,r.files)||i):jt(e.url,r.files)||e.url;o=gn(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},Cc=(e,t)=>{let r=R(),{fontFamily:n}=r;return lo(t||n,e)},gi=(e,t)=>{let r=R(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),_(s)&&(s=un(s));let a=`--font-family-${t}`,l=`${s.join(", ")}, ${o[i]}`;return{var:a,value:l,arr:s,type:i}};F();var $g=e=>{let t=R(),{typography:r,media:n}=t;for(let o in e){let s=o.slice(0,1)==="@",i=e[o];if(!s)continue;let{mediaRegenerate:a}=e,l=o.slice(1),{type:c,base:u,ratio:d,range:f,subSequence:h,h1Matches:p,unit:g}=e;me(i,{type:c,base:u,ratio:d,range:f,subSequence:h,h1Matches:p,unit:g});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||g,b=!i.unit&&m.has(g)?"rem":y,v=n[l],x="@media "+(v==="print"?`${v}`:`screen and ${v}`);if(r.templates[x]={fontSize:i.base/r.browserDefault+b},!a){me(i,{sequence:{},scales:{},vars:{}}),ht(i),mn(e,o);continue}me(i,{sequence:{},scales:{},templates:{},vars:{}}),ht(i),mn(e,o)}},Ig=e=>{let t=R();if(e.h1Matches){let r=e.unit,n=yc(e),{templates:o}=e;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:t.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:e.lineHeight,letterSpacing:a?a.letterSpacing:e.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},Ac=()=>{let e=R(),{typography:t}=e;ht(t),Ig(t),Fr(t),$g(t)},Ec=e=>{let t=R(),{typography:r}=t;return cr(e,"fontSize",r)};F();F();var zD=e=>{for(let t in e){let r=e[t];if(t.slice(0,1)!=="@")continue;let{type:n,base:o,ratio:s,range:i,subSequence:a,h1Matches:l,unit:c}=e;me(r,{type:n,base:o,ratio:s,range:i,subSequence:a,h1Matches:l,unit:c,sequence:{},scales:{},templates:{},vars:{}}),ht(r),mn(e,t)}},Tc=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},Oc=()=>{let e=R(),{spacing:t}=e;ht(t),Fr(t),zD(t)},WD=e=>{let t=R(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:ht(e)},Pe=(e,t="padding",r,n)=>{let o=WD(r);if(k(e)&&!n&&e.includes("(")){let i=jr(e);n=i[0],e=i[1]}let s=n?[e]:un(e);if(j(s)){if(s.length>1){let i="";t==="borderWidth"&&(t="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},l=(c,u)=>cr(s[u],t+c+i,o,n);return a[s.length].map((c,u)=>l(c,u))}return cr(e,t,o,n)}},gt=(e,t,r,n)=>{let o=R(),{spacing:s}=o,i=r||e[t];if(!n&&k(i)&&i.includes("(")){let a=jr(i);n=a[0],i=a[1]}if(e.spacingRatio){let a=applyCustomSequence(e);return Pe(i,t,a,n)}return Pe(i,t,s,n)},Pc=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=Hn.some(s=>e.includes(s));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return e.split(",").map(r=>r.trim()).map(t).join(",").split(" ").map(t).join(" ")};F();var xn=(e,t,r,n)=>{let o=R();if(j(e))return{"@light":xn(e[0],t,"light"),"@dark":xn(e[1],t,"dark")};if(_(e)){let i={};for(let a in e)i[a]=xn(e[a],t,a.startsWith("@")?a.slice(1):a);return i}k(e)&&!Yt.test(e)&&(e=pn(e).map(i=>(i=i.trim(),i.split(/\s+/).map(a=>{if(a=a.trim(),!a)return"";if(a.startsWith("--"))return`var(${a})`;let l=ce(a);if(ir(l))return l;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let c=Pe(a,"shadow");return c&&c.shadow?c.shadow:a}).join(" "))).join(", "));let s=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${t}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[s]=e),{var:s,value:e}},Rc=(e,t)=>{let r=R();if(t||(t=r.globalTheme),!k(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(we(e))return`var(${e})`;let[n]=j(e)?e:e.split(" "),o=r.shadow[n],s=_(o);if(!o)return r.verbose&&console.warn("Can't find color ",n),e;if(t){if(o[t])return o[t].value;r.verbose&&console.warn(e," - does not have ",t)}if(s&&o.value)return o.value;if(s){let i={};for(let a in o){let l=r.media[a.slice(1)],c="@media "+(l==="print"?`${l}`:`screen and ${l}`);i[c]=o.value}return i}return r.verbose&&console.warn("Can't find color",e),e};F();var $c=()=>{let e=R(),{timing:t}=e;ht(t),Fr(t)},Dt=e=>{let t=R(),{timing:r}=t;return r[e]||r[ai(e)]||e},mt=(e,t="timing")=>{let r=R(),{timing:n}=r;return cr(e,t,n)};F();var Ic=()=>{let e=R(),{document:t,fontFamily:r,theme:n,typography:o}=e;return me(t,{theme:n.document,fontFamily:lo(r),fontSize:o.base,lineHeight:o.lineHeight})};F();var Fg={document:ue},mi=(e,t)=>{let r=R();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?vc(t,e):e},jc=(e,t=Fg)=>{let r=R(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];y_(n,t)},Fc=(e,t)=>{let r=R();return r.useIconSprite&&!r.semanticIcons?.[t]?mi(e,t):e},Dc=(e,t=Fg)=>{let r=R(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];y_(n,t)},jg=(e,t={isRoot:!0})=>{if(!e||!e.createElementNS)return;let r=e.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},HD=(e,t)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,o=new r().parseFromString(n,"image/svg+xml");return o.querySelector("parsererror")?null:o.documentElement}return null},m_=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},y_=(e,t=Fg)=>{let r=R(),n=t.document||ue;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),pi(e);let o=n.querySelector("#svgSprite"),s=pi(e),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=HD(n,s);if(o)if(a)m_(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let l=jg(n,{isRoot:!1});l.innerHTML=s,o.append(...l.children)}else if(a){let l=jg(n);l&&l.nodeType&&(m_(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let l=jg(n);l&&l.nodeType&&(l.innerHTML=s,n.body.prepend(l))}};F();var Lc=(e={})=>{let t=R(),{reset:r,typography:n,document:o}=t;if(r){if(r[":root"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?Ft("document"):{},...c.body},l.h1=c.h1,l.h2=c.h2,l.h3=c.h3,l.h4=c.h4,l.h5=c.h5,l.h6=c.h6}let{body:s,...i}=n.templates,a=t.useDocumentTheme?Ft("document"):{};if(r.html&&Ye(r.html,a),n.unit){let{media:l}=t;for(let c in n){if(c.charAt(0)!=="@")continue;let u=n[c];if(!u||u.unit===n.unit||!u.unit)continue;let d=u.unit,f=u.base||n.base,h=u.browserDefault||n.browserDefault,p=c.slice(1),g=l[p];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=f/h+d}}return ae(me(r,e),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+t.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}})}};F();var VD=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),qD=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),UD=e=>VD.has(e),ur=e=>{let t=e+"";if(Yt.test(t))return t;let r=t.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?t:t.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(we(n))return`var(${n})`;if(UD(n)||/^\d/.test(n)||n==="0")return n;let o=ce(n);if(ir(o))return o;let s=Pe(n,"border");return s&&s.border?s.border:n}).join(" ")},Dg=e=>Yt.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(we(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let r=ce(t);return ir(r)?r:t}).join(" "),Lg=(e,t)=>Rc(e,t),Bc=(e,t)=>Yt.test(e)?e:pn(e).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(we(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=ce(n);if(ir(o)){let i=je(n,t);return _(i)?Object.values(i).filter(a=>a.includes(": "+t))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=Pe(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),Mc=(e,t)=>{let r=e.indexOf("(");if(r===-1)return e;let n=e.slice(0,r+1),o=e.slice(r+1,e.lastIndexOf(")")),s=")",i=pn(o).map(a=>(a=a.trim(),a.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||qD.has(l)||l==="transparent"||Yt.test(l))return l;let c=ce(l);return ir(c)?c:l}).join(" ")));return n+i.join(", ")+s},Bg=(e,t)=>{let r=R();return e.split(", ").map(n=>we(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?Mc(n,t):r.gradient[e]?{backgroundImage:je(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!$r(n)?`url(${n})`:n).join(" ")},Mg=e=>k(e)&&e.split(" ").map(t=>Pe(t,"gap").gap).join(" "),b_=e=>{let t=e.split(" ");return t.length?t.map(r=>we(r)?`var(${r})`:r.length<3||r.includes("ms")?mt(r).timing||r:Dt(r)?Dt(r):r).join(" "):e},Nc=(e,t,r)=>{if(k(e))return e.split(",").map(n=>mt(n).timing||n).join(",")},Ng=e=>{let t=e.split(",");if(t.length)return t.map(b_).join(",")};function Se(e,t,r={},n={}){let o=le.call(this,t||r[e]);if(o==null)return;let s;if(k(o)){if(o.includes("(")){let l=jr(o);s=l[0],o=l[1]}let i=r.scaleBoxSize,a=Tc(e);!i&&a&&!n.ratio&&(o=Pc(o))}return n.ratio?gt(r,e,o,s):Pe(o,e,void 0,s)}var ee=(e,t=null,r)=>Se(e,t,r,{ratio:!0}),zc=(e,t,r)=>{if(k(e))return{borderRadius:e.split(" ").map((n,o)=>gt(t,r,n)[r]).join(" ")}};F();var GD=(e,t)=>{let r=R(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},yt=e=>e,zg={color:bn,gradient:vn,font:kc,fontFamily:gi,fontfamily:gi,theme:Sc,icons:Fc,semanticIcons:yt,semanticicons:yt,svg:mi,svgData:yt,typography:yt,shadow:xn,spacing:yt,media:yt,grid:yt,class:yt,timing:yt,reset:yt,unit:yt,animation:yt,vars:GD},v_=(e,t,r)=>{let n=R(),o=uc(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=zg[o]||zg[s];if(a)try{let l=a(t,r);return i&&(i[r]=l),i}catch(l){n.verbose&&console.warn("Error setting",s,"value",t,r,l)}n.verbose&&console.warn("Can not find",s,"method in scratch")},x_=(e,t)=>{let r=R(),n=e.toLowerCase();return Object.keys(t).sort((o,s)=>{let i=_(t[o])||j(t[o])?1:0,a=_(t[s])||j(t[s])?1:0;return i-a}).forEach(o=>{try{return v_(n,t[o],o)}catch(s){r.verbose&&console.warn("Error setting",n,"value",t[o],o,s)}}),r[n]||r[e]},Wg=(e,t)=>{let r=t||R();r.globalTheme=e;let n=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),o=n&&n.defaultView||(typeof window<"u"?window:null);if(n){let i=r.themeRoot||n.documentElement;if(e&&e!=="auto")i.setAttribute("data-theme",e),e==="dark"||e==="light"?i.style.colorScheme=e:i.style.colorScheme="light dark";else if(o&&o.matchMedia){let a=c=>{i.setAttribute("data-theme",c.matches?"dark":"light")},l=o.matchMedia("(prefers-color-scheme: dark)");if(a(l),i.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=a;try{l.addEventListener("change",a)}catch{l.addListener(a)}}}else i.setAttribute("data-theme","light"),i.style.colorScheme="light"}let s=r.varPrefix?`--${r.varPrefix}-theme-`:"--theme-";for(let i in r.cssVars)i.startsWith(s)&&delete r.cssVars[i];for(let i in r.cssMediaVars)delete r.cssMediaVars[i];if(n&&r.cssVars){let i=r.scopeSelector||":root",a=n.styleSheets;for(let l=0;l<a.length;l++)try{let c=a[l].cssRules;for(let u=0;u<c.length;u++)if(c[u].selectorText===i){for(let d in r.cssVars)c[u].style.setProperty(d,r.cssVars[d]);return r}}catch{}}return r},KD={},uo=(e,t=KD)=>{let r=t.config||R(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:l,useIconSprite:c,globalTheme:u,themeRoot:d,useDocumentTheme:f,useDefaultConfig:h,semanticIcons:p,files:g,assets:m,...y}=e;t.newConfig&&(r=kg(t.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),l!==void 0&&(r.useFontImport=l),a!==void 0&&(r.useSvgSprite=a),c!==void 0&&(r.useIconSprite=c),f!==void 0&&(r.useDocumentTheme=f),u!==void 0&&(r.globalTheme=u),d!==void 0&&(r.themeRoot=d),e.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=e.useThemeSuffixedVars),h!==void 0&&(r.useDefaultConfig=h),p!==void 0&&(r.semanticIcons=p),r.verbose&&console.log(r);let b=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),v=b&&b.defaultView||(typeof window<"u"?window:null),x=b&&(r.themeRoot||b.documentElement);if(x&&typeof x.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")x.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?x.style.colorScheme=r.globalTheme:x.style.colorScheme="light dark";else if(v&&v.matchMedia){let C=z=>{x.setAttribute("data-theme",z.matches?"dark":"light")},S=v.matchMedia("(prefers-color-scheme: dark)");if(C(S),x.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=C;try{S.addEventListener("change",C)}catch{S.addListener(C)}}}else x.setAttribute("data-theme","light"),x.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let w=Object.keys(y),E=new Set(w);if(w.forEach(C=>{let S=C.toLowerCase();S!==C&&E.has(S)&&ae(y[S],y[C])}),w.map(C=>{let S=C.toLowerCase();if(!(S!==C&&E.has(S)))return x_(C,y[C])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{Ac()}catch(C){r.verbose&&console.warn("Error applying typography sequence",C)}if(y.spacing)try{Oc()}catch(C){r.verbose&&console.warn("Error applying spacing sequence",C)}if(y.timing)try{$c()}catch(C){r.verbose&&console.warn("Error applying timing sequence",C)}Ic();let A=Lc();return A&&(r.reset=A),r};var fo=new Map,ZD=null,Vg=null,XD=null;function Hc(e){e.batchAtomicCss&&(Vg=e.batchAtomicCss),e.compoundCssClass&&(XD=e.compoundCssClass)}var YD=new Set;function k_(e){try{let t=R();t&&(t.document=e)}catch{}e&&YD.add(e)}function qg(){try{let e=R();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}var JD={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk"};function wn(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function Wc(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t.toString(36)}function QD(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Wc(t)}function w_(e,t,r){let n=(r?r+"":"")+e+":"+t,o=fo.get(n),s=o?null:wn(e);if(!o){let a=JD[e]||Wc(e),l=QD(t);o=r?`_${r}_${a}-${l}`:`_${a}-${l}`,fo.set(n,o)}if(typeof t=="string"&&(t.indexOf("}")!==-1||t.indexOf("{")!==-1))return o;let i=`.${o}{${s||wn(e)}:${t}}`;return bt(i),o}var S_=new WeakMap;function bt(e,t){let r=C_(t);if(!r)return;let n=S_.get(r);if(n||(n=new Set,S_.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var __=new WeakMap;function C_(e){let t=e||qg();if(!t||!t.head)return null;let r=__.get(t);if(r&&r.ownerNode&&r.ownerNode.parentNode===t.head)return r;let n=t.head.querySelector("style[data-smbls]");n||(n=t.createElement("style"),n.setAttribute("data-smbls",""),t.head.appendChild(n));let o=n.sheet;return __.set(t,o),ZD=o,o}var eL=8;function Dr(e,t,r){if(!e||typeof e!="object")return"";let n=null,o=0,s=[];for(let i in e){let a=e[i];a==null||a===!1||a===""||(typeof a=="object"?s.push(tL(i,a,r)):Vg?(n||(n=[]),n.push(i,String(a)),o++):s.push(w_(i,String(a),r)))}if(n&&o>=eL){let i=n.join("\0"),a=Vg(i),l=a.indexOf("\0"),c=a.substring(0,l),u=a.substring(l+1);if(u){let d=u.split(`
|
|
35
|
-
`);for(let f=0;f<d.length;f++)d[f]&&bt(d[f])}if(s.length>0)s.push(c);else return c}else if(n)for(let i=0;i<n.length;i+=2)s.push(w_(n[i],n[i+1],r));return s.join(" ")}var Hg=new Map;function tL(e,t,r){let n=(r?r+"":"")+e+JSON.stringify(t),o=fo.get(n);if(o){let f=Hg.get(o);if(f)for(let h=0;h<f.length;h++)bt(f[h]);return o}o=r?`_${r}_c${Wc(n)}`:`_c${Wc(n)}`;let s="",i=[],a=f=>typeof f=="string"&&(f.indexOf("{")!==-1||f.indexOf("}")!==-1),l=(f,h)=>{let p="";for(let g in h){let m=h[g];if(m!=null)if(typeof m=="object")l([...f,g],m);else{if(a(m))continue;p+=`${wn(g)}:${m};`}}p&&(f.length===0?s+=p:i.push({chain:f,body:p}))};l([],t);let c=f=>{if(!f.length)return`.${o}`;let h=f[0].split(",").map(p=>p.trim()).map(p=>p.includes("&")?p.replace(/&/g,`.${o}`):p.startsWith(":")?`.${o}${p}`:`.${o} ${p}`);for(let p=1;p<f.length;p++){let g=f[p].split(",").map(y=>y.trim()),m=[];for(let y of h)for(let b of g)b.includes("&")?m.push(b.replace(/&/g,y)):b.startsWith(":")?m.push(y+b):m.push(y+" "+b);h=m}return h.join(", ")},u=[];if(e.startsWith("@media")||e.startsWith("@supports")){if(s){let f=`${e}{.${o}{${s}}}`;u.push(f),bt(f)}for(let f of i){let h=c(f.chain),p=`${e}{${h}{${f.body}}}`;u.push(p),bt(p)}return Hg.set(o,u),fo.set(n,o),o}let d=c([e]);if(s){let f=`${d}{${s}}`;u.push(f),bt(f)}for(let f of i){let h=`${c([e,...f.chain])}{${f.body}}`;u.push(h),bt(h)}return Hg.set(o,u),fo.set(n,o),o}function ke(e){if(C_(),typeof e=="string"){bt(e);return}let t=Object.keys(e),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};t.sort((n,o)=>{let s=n.startsWith("@media"),i=o.startsWith("@media");return!s&&!i?0:s?i?r(o)-r(n):1:-1});for(let n of t){let o=e[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let s in o){let i=o[s];if(typeof i=="object"&&i!==null){let a="";for(let l in i){let c=l.startsWith("--")?l:wn(l);a+=`${c}:${i[l]};`}bt(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:wn(s);bt(`${n}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in o){let l=o[a];if(typeof l=="object"&&l!==null)i=!0;else{let c=a.startsWith("--")?a:wn(a);s+=`${c}:${l};`}}if(s&&bt(`${n}{${s}}`),i){let a=[],l=[];for(let c in o)typeof o[c]=="object"&&o[c]!==null&&(c.startsWith("@media")||c.startsWith("@supports")?a.push(c):l.push(c));a.sort((c,u)=>{let d=f=>{let h=f.match(/max-width:\s*(\d+)/);return h?parseInt(h[1]):0};return d(u)-d(c)});for(let c of l)ke({[`${n} ${c}`]:o[c]});for(let c of a)ke({[c]:{[n]:o[c]}})}}}}function bi(e,t){let r="";for(let n in t){let o="";for(let s in t[n])o+=`${wn(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return bt(`@keyframes ${e}{${r}}`),e}function A_(){return fo.size}F();var Ug="http://www.w3.org/2000/svg",wi=new Set(["svg","path","circle","ellipse","line","polyline","polygon","rect","g","defs","use","symbol","clipPath","mask","pattern","image","text","tspan","textPath","marker","linearGradient","radialGradient","stop","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","animate","animateMotion","animateTransform","set","foreignObject","desc","title","metadata"]),rL=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","string","fragment","shadow"]);function vi(e){return rL.has(e)||wi.has(e)}function Si(e){return wi.has(e)}function Sn(e){let{tag:t,key:r}=e;if(typeof t=="function"&&(t=t(e)),t===!0&&(t=r),typeof t=="string"&&vi(t))return t;if(!r||typeof r!="string")return"div";let n=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template"]),o=r.toLowerCase();return o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),vi(o)&&!n.has(o)?o:"div"}var E_={};function xi(e,t){let r=t?.context?.document||globalThis.document;if(!r)return null;if(e==="string")return r.createTextNode(t?.text||"");if(e==="fragment")return r.createDocumentFragment();if(Si(e)){let n=t?.parent;if(e==="svg"||n?.node?.namespaceURI===Ug)return r.createElementNS(Ug,e);if(e!=="svg")return r.createElement("div")}return r.createElement(e)}function _n(e){let t=e.tag=Sn(e),r=Si(t)&&(t==="svg"||e.parent?.node?.namespaceURI===Ug)?"svg:"+t:t,n=e?.context?.document||globalThis.document,o=E_[r];if(o||(o=E_[r]=xi(t,e)),!o)return null;let s=n&&o.ownerDocument!==n?xi(t,e):o.cloneNode(!0);return t==="string"&&(s.nodeValue=e.text||""),s}var Qe=new Set(["extends","children","content","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","__name","__ref","__hash","__text","parent","node"]),Gg={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},kn=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","error","beforeRemove","remove"]),T_=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),_i=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseenter","mouseleave","mouseover","mouseout","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointerover","pointerout","touchstart","touchend","touchmove","keydown","keyup","keypress","input","change","submit","reset","focus","blur","focusin","focusout","scroll","wheel","contextmenu","drag","dragstart","dragend","dragenter","dragleave","dragover","drop"]);var Kg=new WeakMap,nL={passive:!0},oL={passive:!0,capture:!0},Zg=(e,t)=>T_.has(e)?t?oL:nL:t||!1;function P_(e){let t=Kg.get(e);return t||(t={handlers:new Map,installed:new Set},Kg.set(e,t)),t}function sL(e,t){let r=P_(t);if(r.installed.has(e))return;r.installed.add(e);let n=e==="focus"||e==="blur"||e==="focusin"||e==="focusout"||e==="mouseenter"||e==="mouseleave",o=e==="mouseenter"||e==="mouseleave";t.addEventListener(e,s=>{let i=s.target;for(;i&&i!==t;){let a=r.handlers.get(e);if(a){let l=a.get(i);if(l){if(o&&s.relatedTarget&&i.contains(s.relatedTarget)){i=i.parentNode;continue}if(l(s),s.cancelBubble)return}}i=i.parentNode}},Zg(e,n))}function Vc(e,t,r,n){n||(n=t.ownerDocument?.documentElement||t.getRootNode());let o=P_(n);sL(e,n),o.handlers.has(e)||o.handlers.set(e,new WeakMap),o.handlers.get(e).set(t,r)}function qc(e,t,r){r||(r=t.ownerDocument?.documentElement||t.getRootNode());let n=Kg.get(r);if(!n)return;let o=n.handlers.get(e);o&&o.delete(t)}function O_(e){return _i.has(e)&&!kn.has(e)}function ki(e,t,r){let{node:n,context:o}=t;if(!n)return;let s=o?.designSystem,i=a=>{s&&Fe(s);try{let l=r.call(t,a,t,t.state,o);if(l&&typeof l.then=="function"){l.catch(c=>{t.error=c,console.error("[DOMQL] Async event error:",c)}).finally(()=>{s&&Ie()});return}}catch(l){if(t.error=l,console.error("[DOMQL] Event error:",l),o?.strictMode)throw l}s&&Ie()};if(O_(e)){let a=o?.rootNode||n.ownerDocument?.documentElement;Vc(e,n,i,a)}else n.addEventListener(e,i,Zg(e,!1));t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{if(O_(e)){let a=o?.rootNode||n.ownerDocument?.documentElement;qc(e,n,a)}else n.removeEventListener(e,i,Zg(e,!1))})}function R_(e){let t=[];return e.extends&&(Array.isArray(e.extends)?t.push(...e.extends):t.push(e.extends)),e.extend&&(Array.isArray(e.extend)?t.push(...e.extend):t.push(e.extend)),t}function Ci(e,t,r){let n=R_(t);if(!n.length)return;let o=(e.context||r?.context||{}).components||{};for(let s=0;s<n.length;s++){let i=$_(n[s],o);i&&i!==t&&I_(e,i,r,new Set([t]))}}function $_(e,t){if(typeof e=="string"){if(e.includes(">")){let r=e.split(">").map(o=>o.trim()),n=t[r[0]]||t[`smbls.${r[0]}`];for(let o=1;o<r.length&&n;o++)n=n[r[o]];return n||null}return t[e]||t[`smbls.${e}`]||null}return typeof e=="object"&&e!==null?e:null}function I_(e,t,r,n=new Set){if(n.has(t))return;n.add(t);let o=R_(t);if(o.length){let s=(e.context||r?.context||{}).components||{};for(let i=0;i<o.length;i++){let a=$_(o[i],s);a&&I_(e,a,r,n)}}for(let s in t){if(s==="extends"||s==="extend")continue;let i=t[s];e[s]===void 0?i&&typeof i=="object"&&!Array.isArray(i)&&typeof i!="function"?e[s]={...i}:e[s]=i:typeof e[s]=="object"&&typeof i=="object"&&!Array.isArray(e[s])&&!Array.isArray(i)&&e[s]!==null&&i!==null?e[s]=j_(e[s],i):e[s]=i}}function j_(e,t){let r={...e};for(let n in t){let o=r[n],s=t[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=j_(o,s):r[n]=s}return r}var Ai=(e,t,...r)=>{let n=t?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[e]=="function"&&(s[e](t,...r),o=!0);return o};function Ei(e={},t={}){let r=this,n=r.__ref;if(n){if((typeof e=="string"||typeof e=="number")&&(e={text:e}),!t.preventListeners&&typeof r.onBeforeUpdate=="function"&&r.onBeforeUpdate(r,r.state,r.context,t)===!1)return r;if(wr(()=>{if(e.state&&Me(r.state)&&r.state.update(e.state),e.text!==void 0&&(r.text=e.text,!n.__exec.text&&r.node&&(r.tag==="string"?r.node.nodeValue=e.text??"":r.node.textContent=e.text??"")),e.html!==void 0&&(r.html=e.html,!n.__exec.html&&r.node&&(r.node.innerHTML=e.html)),e.style&&r.node?.style){if(!n.__exec.style)for(let o in e.style){let s=e.style[o];if(s==null)continue;let i=o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),a=String(s).replace(/\s*!important\s*$/,"");r.node.style.setProperty(i,a,"important")}r.style||(r.style={}),Object.assign(r.style,e.style)}if(e.attr&&r.node?.setAttribute){for(let o in e.attr){let s=e.attr[o];s==null||s===!1?r.node.removeAttribute(o):typeof s!="function"&&typeof s!="object"&&r.node.setAttribute(o,s===!0?"":s)}r.attr||(r.attr={}),Object.assign(r.attr,e.attr)}if(e.data&&r.node?.dataset){for(let o in e.data)r.node.dataset[o]=e.data[o];r.data||(r.data={}),Object.assign(r.data,e.data)}for(let o in e){if(Qe.has(o)||o==="state")continue;let s=e[o],i=r[o];if(i&&i.__ref&&typeof i.update=="function")i.update(s,t);else if(typeof s=="object"&&s!==null){let a=o.charCodeAt(0);a>=65&&a<=90&&Lt(s,r,o,t)}else o!=="text"&&o!=="html"&&o!=="style"&&o!=="attr"&&o!=="data"&&(r[o]=s)}}),r.node&&n.__conditionalRunners)for(let o of n.__conditionalRunners)o();return Ai("update",r),!t.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,t),r}}function Cn(e){if(!e)return;let t=e.__ref;if(t){try{typeof e.onBeforeRemove=="function"&&e.onBeforeRemove(e,e.state,e.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(t.__effects){for(let r=0;r<t.__effects.length;r++)t.__effects[r].dispose();t.__effects.length=0}if(t.__eventCleanup){for(let r=0;r<t.__eventCleanup.length;r++)t.__eventCleanup[r]();t.__eventCleanup.length=0}if(t.__children){for(let r=0;r<t.__children.length;r++){let n=t.__children[r],o=e[n];o&&o.__ref&&Cn(o)}t.__children.length=0}if(e.node?.parentNode&&e.node.remove(),e.state?.destroy&&e.state.__element===e&&e.state.destroy(),e.parent?.__ref?.__children){let r=e.parent.__ref.__children.indexOf(e.key);r!==-1&&e.parent.__ref.__children.splice(r,1),delete e.parent[e.key]}try{typeof e.onRemove=="function"&&e.onRemove(e)}catch(r){console.error("[smbls] onRemove error:",r)}e.node=null,e.parent=null,e.__ref=null}}function Ti(){Cn(this)}F();F();var iL=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],aL=["none","forwards","backwards","both"],lL=["normal","reverse","alternate","alternate-reverse"],cL=["running","paused"],uL=e=>/^[\d.]+m?s$/.test(e),fL=0,Xg=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(_(e)){let o=`smbls-anim-${fL++}`;return{animationName:bi(o,e)}}let n=r&&r[e];return _(n)?bi(e,n):e},dL=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{},n=e.split(/\s+/),o=null,s=[],i=null,a=null,l=null,c=null,u=null;for(let d of n)r&&r[d]?o=d:uL(d)?s.push(d):iL.includes(d)||d.startsWith("cubic-bezier")||d.startsWith("steps(")?i=d:d==="infinite"||/^\d+$/.test(d)?a=d==="infinite"?d:Number(d):lL.includes(d)?l=d:aL.includes(d)?c=d:cL.includes(d)?u=d:o||(o=d);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:l,fillMode:c,playState:u}},Yg={animation:(e,t)=>{if(k(e)&&e.includes(" ")){let r=dL(e,t);return{animationName:Xg(r.name||e,t),animationDuration:r.durations[0]||mt(t.animationDuration||"A").timing,animationDelay:r.durations[1]||mt(t.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Dt(t.animationTimingFunction||"ease"),animationFillMode:r.fillMode||t.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:t.animationIterationCount||1,animationPlayState:r.playState||t.animationPlayState,animationDirection:r.direction||t.animationDirection}}return{animationName:Xg(e,t),animationDuration:mt(t.animationDuration||"A").timing,animationDelay:mt(t.animationDelay||"0s").timing,animationTimingFunction:Dt(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:Xg(e,t)}),animationDuration:e=>({animationDuration:mt(e).timing}),animationDelay:e=>({animationDelay:mt(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Dt(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};F();var Jg={show:e=>e?void 0:{display:"none !important"},hide:e=>e?{display:"none !important"}:void 0,height:(e,t)=>ee("height",e,t),width:(e,t)=>ee("width",e,t),boxSizing:e=>_e(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...Se("height",t),...Se("width",r||t)}},inlineSize:(e,t)=>ee("inlineSize",e,t),blockSize:(e,t)=>ee("blockSize",e,t),minWidth:(e,t)=>ee("minWidth",e,t),maxWidth:(e,t)=>ee("maxWidth",e,t),widthRange:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...Se("minWidth",t),...Se("maxWidth",r||t)}},minHeight:(e,t)=>ee("minHeight",e,t),maxHeight:(e,t)=>ee("maxHeight",e,t),heightRange:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...Se("minHeight",t),...Se("maxHeight",r||t)}},size:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...ee("inlineSize",t),...ee("blockSize",r||t)}},minBlockSize:(e,t)=>ee("minBlockSize",e,t),minInlineSize:(e,t)=>ee("minInlineSize",e,t),maxBlockSize:(e,t)=>ee("maxBlockSize",e,t),maxInlineSize:(e,t)=>ee("maxInlineSize",e,t),minSize:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...Se("minInlineSize",t),...Se("minBlockSize",r||t)}},maxSize:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...Se("maxInlineSize",t),...Se("maxBlockSize",r||t)}},borderWidth:(e,t)=>ee("borderWidth",e,t),padding:(e,t)=>ee("padding",e,t),scrollPadding:(e,t)=>ee("scrollPadding",e,t),paddingInline:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...Se("paddingInlineStart",t),...Se("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...Se("paddingBlockStart",t),...Se("paddingBlockEnd",r||t)}},paddingTop:(e,t)=>ee("paddingBlockStart",e,t),paddingBottom:(e,t)=>ee("paddingBlockEnd",e,t),paddingLeft:(e,t)=>ee("paddingInlineStart",e,t),paddingRight:(e,t)=>ee("paddingInlineEnd",e,t),paddingBlockStart:(e,t)=>ee("paddingBlockStart",e,t),paddingBlockEnd:(e,t)=>ee("paddingBlockEnd",e,t),paddingInlineStart:(e,t)=>ee("paddingInlineStart",e,t),paddingInlineEnd:(e,t)=>ee("paddingInlineEnd",e,t),margin:(e,t)=>ee("margin",e,t),marginInline:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...Se("marginInlineStart",t),...Se("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!k(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{...Se("marginBlockStart",r),...Se("marginBlockEnd",n||r)}},marginTop:(e,t)=>ee("marginBlockStart",e,t),marginBottom:(e,t)=>ee("marginBlockEnd",e,t),marginLeft:(e,t)=>ee("marginInlineStart",e,t),marginRight:(e,t)=>ee("marginInlineEnd",e,t),marginInlineStart:(e,t)=>ee("marginInlineStart",e,t),marginInlineEnd:(e,t)=>ee("marginInlineEnd",e,t),marginBlockStart:(e,t)=>ee("marginBlockStart",e,t),marginBlockEnd:(e,t)=>ee("marginBlockEnd",e,t),gap:e=>({gap:Mg(e)}),columnGap:(e,t)=>gt(t,"columnGap",e),rowGap:(e,t)=>gt(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!k(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>zc(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>zc(e??t.round,t,"borderRadius")};var Qg={fontSize:e=>Ec(e)||e,fontFamily:e=>({fontFamily:Cc(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})};var em={overflow:e=>({overflow:e,scrollBehavior:"smooth"}),cursor:(e,t,r,n)=>{if(!e)return;let o=n.assets&&n.assets[e];if(o&&o.content)e=`url(${o.content.src})`;else{let s=n.files&&n.files[e];s&&s.content&&(e=`url(${s.content.src})`)}return{cursor:e}},opacity:e=>e!=null?{opacity:String(e)}:void 0,visibility:e=>e!=null?{visibility:e}:void 0,pointerEvents:e=>e!=null?{pointerEvents:e}:void 0};var tm={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>Pe(r,"k").k).join(" ")}},left:e=>Pe(e,"left"),top:e=>Pe(e,"top"),right:e=>Pe(e,"right"),bottom:e=>Pe(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Pe(r,"k").k);return{top:t[0],bottom:t[1]||t[0]}},horizontalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Pe(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};F();var vt=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},rm={theme:(e,t)=>{if(e)return t.themeModifier?Ft(e,`@${t.themeModifier}`):Ft(e)},color:(e,t)=>{let r=vt(t);if(e)return{color:je(e,r)}},background:(e,t)=>{let r=vt(t);if(e)return k(e)&&e.includes("gradient")?{background:Mc(e,r)}:{background:je(e,r)}},backgroundColor:(e,t)=>{let r=vt(t);if(e)return{backgroundColor:je(e,r)}},backgroundImage:(e,t,r,n)=>{let o=vt(t);if(!e)return;let s=n.assets&&n.assets[e];if(s&&s.content)e=s.content.src;else{let i=n.files&&n.files[e];i&&i.content&&(e=i.content.src)}return{backgroundImage:Bg(e,o)}},textStroke:e=>({WebkitTextStroke:Dg(e)}),outline:e=>({outline:ur(e)}),outlineOffset:(e,t)=>ee("outlineOffset",e,t),border:e=>({border:ur(e)}),borderColor:(e,t)=>{let r=vt(t);if(e)return{borderColor:je(e,r)}},borderTopColor:(e,t)=>{let r=vt(t);if(e)return{borderTopColor:je(e,r)}},borderBottomColor:(e,t)=>{let r=vt(t);if(e)return{borderBottomColor:je(e,r)}},borderLeftColor:(e,t)=>{let r=vt(t);if(e)return{borderLeftColor:je(e,r)}},borderRightColor:(e,t)=>{let r=vt(t);if(e)return{borderRightColor:je(e,r)}},borderLeft:e=>({borderLeft:ur(e)}),borderTop:e=>({borderTop:ur(e)}),borderRight:e=>({borderRight:ur(e)}),borderBottom:e=>({borderBottom:ur(e)}),shadow:(e,t)=>{let r=vt(t);if(e)return{boxShadow:Lg(e,r)}},boxShadow:(e,t)=>{if(!k(e))return;let[r,n]=e.split("!importan"),o=vt(t),s=n?" !important":"";return{boxShadow:Bc(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:Bc(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:ur(e)})};var An={transition:e=>({transition:Ng(e)}),transitionDuration:e=>({transitionDuration:Nc(e)}),transitionDelay:e=>({transitionDelay:Nc(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Dt(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};F();var nm={flow:(e,t)=>{let r=t.reverse;if(!k(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(e,t)=>({display:"flex",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var om={area:e=>({gridArea:e}),template:e=>({gridTemplate:e}),templateAreas:e=>({gridTemplateAreas:e}),column:e=>({gridColumn:e}),columns:e=>({gridTemplateColumns:e}),templateColumns:e=>({gridTemplateColumns:e}),autoColumns:e=>({gridAutoColumns:e}),columnStart:e=>({gridColumnStart:e}),row:e=>({gridRow:e}),rows:e=>({gridTemplateRows:e}),templateRows:e=>({gridTemplateRows:e}),autoRows:e=>({gridAutoRows:e}),rowStart:e=>({gridRowStart:e}),autoFlow:e=>({gridAutoFlow:e})};var Ce={...Yg,...Jg,...Qg,...em,...tm,...rm,...An,...nm,...om};var ze=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);F();var pL=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,hL=(e,t,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=e.slice(1),s=n.designSystem.media[o],i=Ve(t,r);if(!s)return{[e]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(pL),l=a?a[1]||a[2]:o,c={[`${s} &`]:i};if(l==="dark"||l==="light"){let u=n.designSystem?.scopeSelector||":root",d=u===":root"?":root:not([data-theme])":`${u}:not([data-theme])`;c[`@media (prefers-color-scheme: ${l})`]={[`${d} &`]:i}}return c},F_=(e,t,r)=>({[e]:Ve(t,r)}),Oi=(e,t,r)=>{let n=`&${e}`,o=Ve(t,r);if(e.includes(",")&&o){let s={},i={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?i[a]=o[a]:s[a]=o[a];if(Object.keys(i).length){let a=n.split(",").map(c=>c.trim()),l={};Object.keys(s).length&&(l[n]=s);for(let c in i){let u=a.map(d=>`${d} ${c}`).join(", ");l[u]=i[c]}return l}}return{[n]:o}},sm=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return O(r)?r.call(t,t):!!r},gL=(e,t,r)=>{let n=e.slice(1),o=sm(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Ve(t,r)},mL=(e,t,r)=>({[e]:t}),yL=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=sm(n,r);s!==void 0&&(o=s)}if(o)return Ve(t,r)},bL=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=sm(n,r);s!==void 0&&(o=s)}if(!o)return Ve(t,r)},im=(e,t)=>Ve(e,t),am={"@":hL,":":Oi,"[":Oi,"*":Oi,"+":Oi,"~":Oi,"&":F_,">":F_,$:gL,"-":mL,".":yL,"!":bL};var lm=kr(),D_=(e,t,r)=>{let n=t?.context?.designSystem;n&&Fe(n);try{let o={},s={},i=(a,l)=>{if(r.unpack){o={...o,...l};return}o[a]=l};for(let a in e){let l=e[a];if(a==="class"&&t.call("isString",e.class)){let c=l.split(" ");if(c.length){let u=t.context.designSystem.class,d=c.reduce((f,h)=>me(f,u[h]),{});o.designSystemClass=d}}else if(a==="true"){let c=le(l,t);me(o,im(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=O(c)?c(t,t.state,t.context):c;u&&i(a,u),!lm&&_(o[a])&&(o[a].label=a)}else if(Ce[a]){let c=le(l,t);j(c)&&(c=c.reduce((d,f)=>me(d,f),{}));let u=Ce[a](c,t,t.state,t.context);j(u)&&(u=u.reduce((d,f)=>me(d,f),{})),u&&i(a,u),!lm&&_(o[a])&&(o[a].label=a)}else if(ze.has(a)){let c=le(l,t);typeof c=="string"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),i(a,{[a]:c}),!lm&&_(o[a])&&(o[a].label=a)}else s[a]=l}return[o,s]}finally{n&&Ie()}},L_=(e,t)=>{let r={};for(let n in e){let o=am[n.slice(0,1)];if(o){let s=o(n,e[n],t);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?Ye(r[i],s[i]):r[i]=s[i])}}return r},Ve=(e,t,r={unpack:!0})=>{let[n,o]=D_(e,t,r),s=L_(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return gs(n,s);n._selectors=s}return n},vL=(e,t)=>{let r={};if(e.class)for(let n in e.class)r[n]=e.class[n](t);return r};F();var B_=e=>{if(_(e))return Ve(e,e)},xL=(e,t)=>{let r=B_(e);return typeof t=="function"?t(r):Dr(r)};F();function z_(e,t,r){let n=e?.context?.analyze;if(!n||!n.emit||t==="warn"&&!n.shouldCapture("warnings")||t==="error"&&!n.shouldCapture("errors"))return;let o=r.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:t==="error"?"error":"warning",level:t,hook:t==="error"?"el.error":"el.warn",element:{key:e.key!=null?String(e.key):null,name:e.__name||null,tag:e.tag||null},message:o||null,args:r})}function wL(...e){return z_(this,"warn",e),Qs.apply(this,e)}function SL(...e){return z_(this,"error",e),cn.apply(this,e)}var M_={update:Ei,remove:Ti,getDB:ni,getQuery:oi,getRootData:Xs,getChildren:qs,getPath:Us,nextElement:ei,previousElement:ti,verbose:no,warn:wL,error:SL,variables:ri,spotByPath:Vs,set(e,t){if(this.removeContent(),e!=null){let r=this.context?.__create;r&&r(e,this,"content",t)}},reset(e){let t=this.context?.__create;if(!t)return this;let r=this.parent,n=this.key,o=this.parse();return this.remove(),t(o,r,n,e)},lookup(e){let t=this.parent;for(;t;){if(typeof e=="function"){if(e(t))return t}else if(typeof e=="string"){if(t.key===e)return t;if(t[e]&&t[e].__ref)return t[e]}t=t.parent}return null},lookdown(e){let t=this.__ref;if(!t?.__children)return null;for(let r of t.__children){let n=this[r];if(!n)continue;if(typeof e=="function"){if(e(n))return n}else if(typeof e=="string"&&n.key===e)return n;let o=n.lookdown?.(e);if(o)return o}return null},lookdownAll(e,t=[]){let r=this.__ref;if(!r?.__children)return t;for(let n of r.__children){let o=this[n];o&&(typeof e=="function"?e(o)&&t.push(o):typeof e=="string"&&o.key===e&&t.push(o),o.lookdownAll?.(e,t))}return t},getRef(){return this.__ref},getRoot:Zs,getRootState:Ks,getRootContext:Ys,getContext:Js,parse(e){let t={},r=e?new Set(e):null,n=this.__ref?.__exec;for(let o in this)if(!(o==="parent"||o==="node"||o==="__ref")&&!r?.has(o)){if(n&&n[o]!==void 0){t[o]=n[o];continue}typeof this[o]!="function"&&(t[o]=this[o])}return t},parseDeep(e){let t=this.parse(e),r=this.__ref;if(r?.__children)for(let n of r.__children)this[n]?.parseDeep&&(t[n]=this[n].parseDeep(e));return t},keys(){return Object.keys(this)},log(...e){if(e.length){let t={};for(let r of e)t[r]=this[r];console.log(t)}else console.log(this)},setProps(e,t){return this.update(e,t)},setNodeStyles(e){if(this.node?.style)for(let t in e){let r=e[t];if(r==null)continue;let n=t.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),o=String(r).replace(/\s*!important\s*$/,"");this.node.style.setProperty(n,o,"important")}},call(e,...t){let r=this.context,n=r?.methods?.[e]||r?.functions?.[e]||r?.utils?.[e]||this[e];if(typeof n=="function")return n.call(this,...t)},removeContent(){let e=this.__ref;if(!e?.__children)return;let t=this.content;if(t?.remove){t.remove(),delete this.content;let r=e.__children.indexOf("content");r!==-1&&e.__children.splice(r,1)}t?.node?.parentNode&&t.node.parentNode.removeChild(t.node)}},N_=new WeakMap;function _L(e){if(!e)return M_;let t=N_.get(e);if(t)return t;t=Object.create(M_);let r=e.methods;if(r)for(let n in r)t[n]=r[n];return N_.set(e,t),t}function Pi(e){let t=_L(e.context);Object.setPrototypeOf(e,t)}F();var kL=(e,t,r)=>{Object.defineProperty(e,t,{value:r,enumerable:!1,configurable:!0,writable:!0})},xt=(e,t)=>{if(Me(t)){let o=t.__raw||t;t.toggle||Object.defineProperty(o,"toggle",{value:function(s,i={}){t[s]=!t[s]},enumerable:!1,configurable:!0}),t.set||Object.defineProperty(o,"set",{value:function(s,i={}){return t.clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&t.update(s,i),t},enumerable:!1,configurable:!0}),Object.defineProperty(o,"setByPath",{value:function(s,i,a={}){let l=s.split("."),c=t;for(let u=0;u<l.length-1;u++)c[l[u]]===void 0&&(c[l[u]]={}),c=c[l[u]];return c[l[l.length-1]]=i,t},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"getByPath",{value:function(s){let i=s.split("."),a=t;for(let l=0;l<i.length;l++){if(a==null)return;a=a[i[l]]}return a},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"removeByPath",{value:function(s,i={}){let a=s.split("."),l=t;for(let c=0;c<a.length-1;c++){if(l==null)return t;l=l[a[c]]}return l&&delete l[a[a.length-1]],t},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"reset",{value:function(s={}){let i=t.parse();return t.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"apply",{value:function(s,i={}){if(typeof s=="function"){let a=s(t);return t.update(a,i)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"applyFunction",{value:function(s,i={}){if(typeof s=="function")return s(t),t.update(t.parse(),i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"rootUpdate",{value:function(s,i={}){let a=t;for(;a?.parent&&Me(a.parent);)a=a.parent;return a.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"parentUpdate",{value:function(s,i={}){if(t.parent)return t.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"quietReplace",{value:function(s,i={}){return t.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(o,"root")||Object.defineProperty(o,"root",{get:function(){let s=t;for(;s?.parent&&Me(s.parent);)s=s.parent;return s},enumerable:!1,configurable:!0});return}if(!t||typeof t!="object")return;let r=()=>{for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&delete t[o]},n={update(o){if(!o||typeof o!="object")return t;for(let s in o)t[s]=o[s];return t},apply(o){if(typeof o!="function")return t;let s=o(t);return s?t.update(s):t},parse(){return{...t}},toggle(o){return t[o]=!t[o],t},set(o){if(!o||typeof o!="object")return t;r();for(let s in o)t[s]=o[s];return t},replace(o){return t.set(o)},clean(){return r(),t}};for(let o in n)typeof t[o]!="function"&&kL(t,o,n[o])};var W_=function(e,t,r){return e.state=um(e,t,r),e.state},um=function(e,t,r){let{__ref:n}=e,o=e.state;if(o==null||o===!1){let s=t?.state||{};return xt(e,s),s}if(typeof o=="string")return n&&(n.__state=o),n.__stateType="string",CL(o,e,t);if(typeof o=="number"||typeof o=="boolean"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=ut({value:o});return s.__element=e,t?.state&&(s.parent=t.state),xt(e,s),s}if(typeof o=="function"&&(o=o(e,t?.state)||{}),typeof o=="object"&&!Me(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let s=ut({...o});if(s.__element=e,!Object.getOwnPropertyDescriptor(s,"root")){let i=t?.state?.root||t?.state||s;Object.defineProperty(s,"root",{get:()=>i,enumerable:!1,configurable:!0})}return t?.state&&(s.parent=t.state,t.state.__children&&(t.state.__children[e.key]=s)),xt(e,s),typeof e.onStateCreated=="function"&&e.onStateCreated(e,s,e.context,r),s}return Me(o)?(o.__element=e,o):t?.state||{}};function cm(e,t){if(!t)return e;let r=t.split("/"),n=e;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function CL(e,t,r){if(!r?.state)return{};if(e===".")return r.state;if(e.startsWith("../")){let o=e.slice(3),s=r.state?.parent;return o&&s?cm(s,o):s??r.state??{}}if(e.startsWith("~/")){let o=r.state;for(;o?.parent;)o=o.parent;let s=e.slice(2);return s?cm(o,s):o??{}}let n=cm(r.state,e);if(n&&typeof n=="object"&&!Me(n)&&!Object.getOwnPropertyDescriptor(n,"root")){let o=r.state?.root||r.state;Object.defineProperty(n,"root",{get:()=>o,enumerable:!1,configurable:!0})}return n}F();var AL=["alert","alertdialog","application","article","banner","button","cell","checkbox","columnheader","combobox","complementary","contentinfo","definition","dialog","directory","document","feed","figure","form","grid","gridcell","group","heading","img","link","list","listbox","listitem","log","main","marquee","math","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","presentation","progressbar","radio","radiogroup","region","row","rowgroup","rowheader","scrollbar","search","searchbox","separator","slider","spinbutton","status","switch","tab","table","tablist","tabpanel","term","textbox","timer","toolbar","tooltip","tree","treegrid","treeitem"],Uc={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","hidden","id","lang","part","placeholder","slot","spellcheck","style","tabindex","title","translate","inert","radiogroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autocapitalize","autocorrect","autosave","color","itemprop","itemscope","itemtype","itemid","itemref","results","security","unselectable","is"],a:["accesskey","charset","coords","download","href","hreflang","name","rel","rev","shape","target","type"],aria:["aria-activedescendant","aria-atomic","aria-autocomplete","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],anchor:["download","href","hreflang","media","ping","rel","target","type","referrerpolicy"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["open"],del:["cite","datetime"],dialog:["open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["acceptcharset","action","autocomplete","enctype","method","name","novalidate","target","rel"],html:["manifest"],iframe:["allow","allowfullscreen","allowtransparency","frameborder","height","loading","marginheight","marginwidth","mozallowfullscreen","name","referrerpolicy","sandbox","scrolling","seamless","src","srcdoc","webkitallowfullscreen","width"],img:["alt","crossorigin","decoding","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alt","autocomplete","capture","checked","crossorigin","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","crossorigin","href","hreflang","integrity","media","imagesrcset","imagesizes","referrerpolicy","rel","sizes","type","charset"],map:["name"],menu:["type"],media:["autoplay","controls","currenttime","defaultmuted","defaultplaybackrate","loop","mediagroup","muted","playsinline","preload","src","volume"],meta:["charset","content","http-equiv","name","media"],meter:["form","high","low","max","min","optimum","value"],quote:["cite"],object:["classid","data","form","height","name","type","usemap","width","wmode"],ol:["reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["form","for","name"],param:["name","value"],progress:["max","value"],slot:["name"],script:["async","charset","crossorigin","defer","integrity","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","disabled","form","multiple","name","required","size","value","onchange"],source:["height","media","sizes","src","srcset","type","width"],style:["media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],textarea:["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","value","wrap"],td:["align","colspan","headers","rowspan","scope","abbr","height","width","valign"],th:["align","colspan","headers","rowspan","scope","abbr"],time:["datetime"],track:["default","kind","label","src","srclang"],video:["autoplay","controls","crossorigin","disablepictureinpicture","disableremoteplayback","height","loop","muted","playsinline","poster","preload","src","width"],svg:["className","class","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabindex","crossorigin","accent-height","accumulate","additive","alignment-baseline","allowReorder","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by","calcMode","cap-height","clip","clip-path","clipPathUnits","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy","edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired","fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","focusable","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fx","fy","g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits","hanging","href","horiz-adv-x","horiz-origin-x","ideographic","image-rendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local","marker-end","markerHeight","marker-mid","marker-start","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness","paint-order","panose-1","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage","tableValues","targetX","targetY","text-anchor","text-decoration","textLength","text-rendering","to","transform","u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em","v-alphabetic","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","v-hanging","v-ideographic","viewBox","viewTarget","visibility","v-mathematical","widths","word-spacing","writing-mode","x1","x2","x","xChannelSelector","x-height","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xmlns","xmlns:xlink","xml:space","y1","y2","y","yChannelSelector","z","zoomAndPan"]},V_=["oncopy","oncut","onpaste","oncompositionend","oncompositionstart","oncompositionupdate","onfocus","onfocusin","onfocusout","onblur","onchange","onbeforeinput","oninput","onreset","onsubmit","oninvalid","onformdata","onload","onerror","ontoggle","onkeydown","onkeypress","onkeyup","onabort","oncanplay","oncanplaythrough","oncuechange","ondurationchange","onemptied","onencrypted","onended","onloadeddata","onloadedmetadata","onloadstart","onpause","onplay","onplaying","onprogress","onratechange","onseeked","onseeking","onstalled","onsuspend","ontimeupdate","onvolumechange","onwaiting","onauxclick","onclick","oncontextmenu","ondblclick","ondrag","ondragend","ondragenter","ondragexit","ondragleave","ondragover","ondragstart","ondrop","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onselect","onselectionchange","onselectstart","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ongotpointercapture","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onlostpointercapture","onscroll","onresize","onwheel","onanimationstart","onanimationend","onanimationiteration","ontransitionstart","ontransitionrun","ontransitionend","ontransitioncancel","onoutrostart","onoutroend","onintrostart","onintroend","onmessage","onmessageerror","onvisibilitychange","oncancel","onclose","onfullscreenchange","onfullscreenerror"],pm=e=>e.startsWith("aria")&&e.length>4&&e.charCodeAt(4)>=65&&e.charCodeAt(4)<=90?"aria-"+e.charAt(4).toLowerCase()+e.slice(5).replace(/([A-Z])/g,t=>"-"+t.toLowerCase()):e.startsWith("data")&&e.length>4&&e.charCodeAt(4)>=65&&e.charCodeAt(4)<=90?"data-"+e.charAt(4).toLowerCase()+e.slice(5).replace(/([A-Z])/g,t=>"-"+t.toLowerCase()):null,Lr=(e,t)=>t.startsWith("aria-")||t.startsWith("data-")||pm(t)||Uc.default.includes(t)?!0:Object.prototype.hasOwnProperty.call(Uc,e)?Uc[e].includes(t):!1,hm=e=>{if(!k(e))return!1;let t=e.toLowerCase();return V_.includes(t)},EL=(e,t,r)=>{let n={};for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)){if(r&&o in r)continue;if(o==="aria"&&t[o]&&typeof t[o]=="object"){for(let a in t[o])Ne(t[o][a])&&(n["aria-"+a]=t[o][a]);continue}if(o==="data"&&t[o]&&typeof t[o]=="object"){for(let a in t[o])if(Ne(t[o][a])){let l=a.replace(/([A-Z])/g,c=>"-"+c.toLowerCase());n["data-"+l]=t[o][a]}continue}let s=Lr(e,o),i=hm(o);if(Ne(t[o])&&(s||i)){let a=pm(o)||o;n[a]=t[o]}}return n},TL=(e,t)=>{let r={};if(e.attr)for(let n in e.attr)r[n]=e.attr[n](t,t.state,t.context);if(e.aria&&typeof e.aria=="object")for(let n in e.aria){let o=e.aria[n];typeof o=="function"&&(r["aria-"+n]=o(t,t.state,t.context))}if(e.data&&typeof e.data=="object")for(let n in e.data){let o=e.data[n];if(typeof o=="function"){let s=n.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());r["data-"+s]=o(t,t.state,t.context)}}return r},Bt=(e,t)=>{let r=e.call("exec",t,e);if(r)return k(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r},fm=(e,t)=>{let r=(e.preSrc||"")+(Bt(e,t)||"");if(!r)return;try{return new URL(r),r}catch{}let{context:n}=e;if(!n.files&&!n.assets)return r;if(r.startsWith("/assets/")){let o=r.slice(8),s=n.assets&&(n.assets[r]||n.assets[o]);return s&&s.content?s.content.src:r}if(r.startsWith("/files/")){let o=r.slice(7),s=n.files&&(n.files[r]||n.files[o]);return s&&s.content?s.content.src:r}if(n.assets){let o=n.assets[r];if(o&&o.content)return o.content.src}if(n.files){let o=n.files[r];if(o&&o.content)return o.content.src}return r},dm={src:e=>fm(e,e.src),href:e=>Bt(e,e.href),action:e=>Bt(e,e.action),poster:e=>fm(e,e.poster),data:e=>Bt(e,e.data)},gm=e=>{let t=e.tag||"div",r={};for(let n in dm)if(e[n]!==void 0&&Lr(t,n)){let o=dm[n](e);o!==void 0&&(r[n]=o)}return r},H_=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return O(r)?r.call(t,t):!!r},OL=(e,t,r)=>{if(e==="$"){let o=H_(t,r);return o===void 0&&(o=!!r[t]),o}let n=r[t]===!0||r.state[t];if(!n){let o=H_(t,r);o!==void 0&&(n=o)}return e==="."?!!n:!n},PL=new Set(["$",".","!"]),RL=(e,t,r)=>{let n={},o=(s,i,a,l)=>{let c=i;n[s]=u=>{if(OL(a,l,u))return O(c)?c(u):c}};for(let s in e){let i=s.charAt(0);if(!PL.has(i))continue;let a=e[s];if(!a||typeof a!="object")continue;let l=s.slice(1);for(let c in a){if(r&&c in r)continue;if(c==="aria"&&a[c]&&typeof a[c]=="object"){for(let h in a[c])o("aria-"+h,a[c][h],i,l);continue}if(c==="data"&&a[c]&&typeof a[c]=="object"){for(let h in a[c]){let p=h.replace(/([A-Z])/g,g=>"-"+g.toLowerCase());o("data-"+p,a[c][h],i,l)}continue}let u=Lr(t,c),d=hm(c);if(!u&&!d)continue;let f=pm(c)||c;o(f,a[c],i,l)}}return n};var $L=1;function ho(e){return e.length>2&&e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90}function IL(e){return e.charAt(2).toLowerCase()+e.slice(3)}function jL(e){return e.toLowerCase()}function bm(e,t){let r={...e};for(let n in t){let o=r[n],s=t[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=bm(o,s):r[n]=s}return r}function Lt(e,t,r,n={},o){if(e==null||e===!1)return null;(typeof e=="string"||typeof e=="number")&&(e={text:e});let s=Object.create(null);s.key=r||e.key||`_${$L++}`,s.parent=t||null,s.context=e.context||t?.context||n.context||{},s.context.__create||(s.context.__create=Lt);let i=s.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:t?.__ref?.root||s,path:t?.__ref?.path?[...t.__ref.path,s.key]:[s.key]};if(r&&!e.extends&&!e.extend){let g=r.indexOf("_");if(g>0){let m=r.substring(0,g),y=s.context?.components;y&&(y[m]||y["smbls."+m])&&(e={extends:m,...e})}}Ci(s,e,n);let a=new Set(["childProps","attr","style","scope","data"]),l=s.props&&typeof s.props=="object"?s.props:null;for(let g in e){if(g==="parent"||g==="node"||g==="__ref"||g==="extends"||g==="context"||g==="props")continue;let m=e[g],y=s[g],b=y&&m&&typeof y=="object"&&typeof m=="object"&&!Array.isArray(y)&&!Array.isArray(m)&&typeof y!="function"&&typeof m!="function";b&&g.charCodeAt(0)>=65&&g.charCodeAt(0)<=90?s[g]=bm(y,m):b&&a.has(g)?s[g]={...y,...m}:s[g]=m}function c(g){for(let m in g){let y=g[m],b=s[m],v=b&&y&&typeof b=="object"&&typeof y=="object"&&!Array.isArray(b)&&!Array.isArray(y)&&typeof b!="function"&&typeof y!="function";v&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?s[m]=bm(b,y):v&&a.has(m)?s[m]={...b,...y}:s[m]=y}}l&&c(l),e.props&&typeof e.props=="object"&&c(e.props),e.data!==void 0&&(s.data=e.data),e.classlist!==void 0&&(s.classlist=e.classlist),e.text!==void 0&&(s.text=e.text),e.html!==void 0&&(s.html=e.html);let u=s.scope&&typeof s.scope=="object"?s.scope:null,d=t?.scope,f=s.context&&typeof s.context.globalScope=="object"&&s.context.globalScope||null,h=d||(f?Object.create(f):null);if(e.scope!==void 0||u){let g=h?Object.create(h):{};u&&Object.assign(g,u),e.scope!==void 0&&Object.assign(g,e.scope),s.scope=g}else h&&(s.scope=Object.create(h));if(e.if!==void 0&&(s.if=e.if),Pi(s),FL(s,t,e),s.if!=null){let g=typeof s.if=="function"?s.if(s,s.state,s.context):s.if;i.__if=!!g}if(i.__if)typeof e.if=="function"&&(i.__ifInitialized=!0);else return t&&(t[s.key]=s),typeof e.if=="function"&&vm(s,{if:e.if}),s;s.tag||(s.tag=Sn(s)),Br("Init",s,n);let p=s.node=_n(s);if(!p)return s;Br("AttachNode",s,n),p.setAttribute&&s.key&&p.setAttribute("data-key",s.key),p.setAttribute&&s.context?.scopeSelector&&s.context.scopeSelector!==":root"&&s.context.key&&s.key===s.context.key&&p.setAttribute("data-smbls-app",s.context.key),s.id&&p.setAttribute&&(p.id=s.id),vm(s,e),xm(s),U_(s),G_(s,n);try{K_(s,n)}catch(g){if(typeof console<"u"&&console.error){let m=s.__ref?.path?.join(".")||s.key||"<root>";console.error(`[smbls] createChildren failed at ${m}:`,g?.message||g,g?.stack?`
|
|
33
|
+
src: ${i};`},un=(e,t,r,n)=>`@font-face {${Zl(e,t,r,n)}
|
|
34
|
+
}`,to=(e,t,r)=>Object.keys(t).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:l,fontStretch:c}=t[o],u=Array.isArray(s)?s.map(d=>Tt(d,r)||d):Tt(s,r)||s;return Zl(e,u,i,{fontStyle:a,fontDisplay:l,fontStretch:c})}),M_=e=>Object.keys(e).map(r=>to(r,e[r].value)),ag=(e,t,r)=>{if(t&&t.isVariable){let s=Tt(t.url,r)||t.url;return ii(s)?ai(s):un(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return to(e,t,r).map(ig);let o=Array.isArray(t.url)?t.url.map(s=>Tt(s,r)||s):Tt(t.url,r)||t.url;return un(e,o,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},Jl=(e,t)=>Object.keys(e).map(n=>ag(n,e[n].value,t));I();I();I();var li={};G(li,{animation:()=>tw,breakpoints:()=>Q_,class:()=>iw,color:()=>q_,devices:()=>ew,document:()=>R2,font:()=>B_,fontFace:()=>W_,fontFamily:()=>V_,fontFamilyTypes:()=>z_,gradient:()=>G_,grid:()=>sw,icons:()=>Y_,media:()=>U_,reset:()=>I2,semanticIcons:()=>Z_,sequence:()=>Tr,shadow:()=>X_,spacing:()=>H_,svg:()=>rw,svgData:()=>nw,templates:()=>ow,theme:()=>K_,timing:()=>J_,typography:()=>Ql,unit:()=>N_,vars:()=>aw});var Tr={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4};var N_={default:"em"};var O2={browserDefault:16,base:16,type:"font-size",ratio:Tr["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},Ql=O2;var B_={};var V_={},z_={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},W_={};var U_={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var T2={base:Ql.base,type:"spacing",ratio:Tr.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},H_=T2;var q_={},G_={};var K_={};var X_={};var Y_={},Z_={};var P2={default:150,base:150,type:"timing",ratio:Tr["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},J_=P2;var R2={};var Q_={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},ew={screenXXL:[2560,1440],screenXL:[2240,1260],screenL:[1920,1024],screenM:[1680,1024],screenS:[1440,720],tabletL:[1366,926],tabletM:[1280,768],tabletS:[1024,768],mobileL:[768,375],mobileM:[560,768],mobileS:[480,768],mobileXS:[375,768]};var tw={};var rw={},nw={};var ow={};var $2={},sw=$2;var iw={};var I2={},aw={};var lg={},cg={},ec=li,tc={},rc=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in ec){let t=e.toLowerCase();tc[t]=ec[e];let r=rc(t);r!==t&&(tc[r]=ec[e]),t!==e&&(tc[e]=ec[e])}var nc={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:lg,cssMediaVars:cg,CSS_VARS:lg,CSS_MEDIA_VARS:cg,_scratchConfig:!0,...tc},lw=ue(nc),sr={active:"0",0:nc},F2=e=>(qe(e)&&(sr.active=e),sr[e||sr.active]),ci=[],Ie=e=>{e&&e._scratchConfig&&ci.push(e)},$e=()=>{ci.pop()},P=e=>ci.length?ci[ci.length-1]:sr[e||sr.active]||nc,ug=e=>{if(w(e))return sr.active="1",sr[1]=ae(e,ue(lw)),e},j2=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],D2=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],L2=e=>{for(let t of D2){let r;for(let n of t){let o=e[n];w(o)&&(r=r?ae(o,r):o)}if(r)for(let n of t)w(e[n])&&(e[n]=r)}},fg=(e,t,{cleanBase:r=!1}={})=>{let n=r?null:P(),o=ue(!r&&n&&n._scratchConfig?n:lw);for(let i of j2)delete o[i];let s=ae(t||{},o);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,L2(s),e&&(sr[e]=s),s};var ir={"-6":"U","-5":"V","-4":"W","-3":"X","-2":"Y","-1":"Z",0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T"},dg=(e,t)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=e;t.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},t.scales[r]=s;let l=cw.has(t.unit)?"rem":t.unit;t.vars[n]=s+l},Pr=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},cw=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),oc=(e,t)=>{let{base:r,type:n,unit:o}=t,s=cw.has(o)?"rem":o,i=(Fn(s)?1:r)+s;if(e===0)return i;let l="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-")),c=`${l}-ratio`;if(e>0){let u=ir[e-1];return`calc(var(${l}-${u}) * var(${c}))`}if(e<0){let u=ir[e+1],d=Math.abs(e),f=Math.pow(uw,2*d),p=ir[d];return p?`max(calc(var(${l}-${u}) / var(${c})), calc(var(${l}-${p}) / ${f.toFixed(4)}))`:`calc(var(${l}-${u}) / var(${c}))`}},pg=(e,t,r,n)=>{let{type:o}=n,i=e===2&&t.length===2?e+1:e,c=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${c+i}))`},sc=(e,t)=>{let n=(e*t-e)/1.618,o=e*t-n,s=e+n,i=(o+s)/2;return[o,i,s]},ic=(e,t)=>sc(e,t).map(r=>r/e),ac=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,c=~~(o*s)-~~o,u,[d,f,p]=sc(o,s);c>16?u=[d,f,p]:u=[d,p],u.forEach((h,g)=>{let m=~~(h/n*1e3)/1e3,y=i+(g+1),b=a+(g+1)/10,x=pg(g+1,u,i,t),v={key:r+(g+1),variable:y,value:h,scaling:m,scalingVariable:x,index:b};dg(v,t)})},uw=1.618,M2=(e,t,r)=>{if(e>=0)return t*Math.pow(r,e);let n=Math.abs(e),o=t*Math.pow(r,e),s=t*Math.pow(r,n)/Math.pow(uw,2*n);return Math.max(o,s)},ft=e=>{let{type:t,base:r,ratio:n,range:o,subSequence:s}=e,i=Math.abs(o[0])+Math.abs(o[1]),l="--"+(e.varPrefix?e.varPrefix+"-":"")+(t&&t.replace(".","-"))+"-";for(let c=0;c<=i;c++){let u=o[1]-c,d=ir[u],f=M2(u,r,n),p=~~(f/r*100)/100,h=l+d,g=oc(u,e),m={key:d,variable:h,value:f,base:r,scaling:p,scalingVariable:g,ratio:n,index:u};dg(m,e),s&&ac(m,e)}return e},fw=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=C(t)?t:ir[t],a=C(t)?Object.entries(ir).find(([,m])=>m===t)?.[0]:t;if(!i)return console.warn(`Position ${t} is out of range in numToLetterMap`),null;let l={sequence:{},scales:{},vars:{},...e},c=n*Math.pow(o,a),u=~~(c/n*100)/100,p="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,h=oc(a,e),g={key:i,variable:p,value:c,base:n,scaling:u,scalingVariable:h,ratio:o,index:a};return dg(g,l),s&&ac(g,l),l},lc=(e="A",t)=>{let r=P(),{unit:n}=r;if(C(e)&&xe(e))return`var(${e})`;let{sequence:o,unit:s=n.default,useVariable:i}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(jn.some(x=>e.includes(x))||!l||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(e))return e;let f=`--${t.varPrefix?t.varPrefix+"-":""}${ri(t.type.replace(".","-"))}-`,p=e.toUpperCase(),h=p.slice(0,1)==="-"?"-":"",g=h?p.slice(1):p,m="";g.includes("_")&&(m="_"+g.split("_")[1].toLowerCase(),g=g.split("_")[0]);let y=x=>a.test(x)?`var(${f}${x}${m})`:x;if(g.includes("+")){let[x,v]=g.split("+"),_=`${y(x)} + ${y(v)}`;return h?`calc((${_}) * -1)`:`calc(${_})`}else if(g.includes("*")){let[x,v]=g.split("*"),_=`${y(x)} * ${y(v)}`;return h?`calc((${_}) * -1)`:`calc(${_})`}else if(g.includes("-")){let[x,v]=g.split("-"),_=`${y(x)} - ${y(v)}`;return h?`calc((${_}) * -1)`:`calc(${_})`}if(!o[g]&&g.length===2&&(r.verbose&&console.warn(g,"- value is not found because `subSequence` is set to false"),g=g.slice(0,1)),i||r.useVariable){let x=`var(${f}${g}${m})`;return h?`calc(${x} * -1)`:x}let b=o?o[g]:null;return b?s==="ms"||s==="s"?h+b.val+s:h+b.scaling+s:console.warn("can't find",o,g)},hg=(e,t)=>{if(!["+","-","*","/",","].filter(s=>e.includes(s+" ")).length)return e;let n=/(\s*[+\-*/,]\s*)/;return e.split(n).map(s=>{let i=s.trim();return!i||["+","-","*","/",","].includes(i)?s:lc(i,t)}).join("")},ar=(e,t,r,n)=>{if(typeof e!="string")return P().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let s=Pr(e);n=s[0],e=s[1]}return["+","-","*","/",","].filter(s=>e.includes(s+" ")).length?e=hg(e,r):e=lc(e,r),{[t]:n?`${n}(${e})`:e}},gg=(e,t)=>ir[e-t],cc=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=gg(t,o);return r[s]})};I();var dw=(e,t)=>{let r=P(),{cssVars:n}=r;Q(e.value)||(n[e.var]=e.value)},uc=(e,t,r)=>{let n=P(),{unit:o}=n,s=t.unit||o.default,{base:i,ratio:a,type:l}=t,u="--"+(t.varPrefix?t.varPrefix+"-":"")+(l&&l.replace(".","-"));e[`${u}-base`]=i,e[`${u}-unit`]=s;let d=`${u}-ratio`;e[d]=a;let[f,p,h]=ic(i,a);e[`${u}-sub-ratio-1`]=`calc(var(${u}-ratio) * ${f/a})`,e[`${u}-sub-ratio-2`]=`calc(var(${u}-ratio) * ${p/a})`,e[`${u}-sub-ratio-3`]=`calc(var(${u}-ratio) * ${h/a})`},pw=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Rr=(e,t={})=>{let r=P(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=pw.has(i)?"rem":i,{mediaRegenerate:l,sequence:c,scales:u}=e;l||uc(s,e,t);for(let d in c){let f=c[d],p=(e.type===o.type?c[d].val:u[d])+a;if(!l){s[f.variable+"_default"]=p,s[f.variable]=f.scalingVariable;continue}t.useDefault===!1?s[f.variable]=p:(s[f.variable+"_default"]=p,s[f.variable]=`var(${f.variable+"_default"})`)}},fn=(e,t,r={})=>{let n=P(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=pw.has(c)?"rem":c,{mediaRegenerate:d}=e,{sequence:f,scales:p}=l,h=s[a];if(!h&&n.verbose&&console.warn("Can't find media query ",h),!d){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),uc(g,l,r);let m=e.unit||o.default;if(u!==m&&f)for(let y in f){let b=f[y],x=p[y]+u;g[b.variable+"_default"]=x,g[b.variable]=x}return}for(let g in f){let m=f[g],y=(Fn(u)?p[g]:f[g].val)+u;!h&&n.verbose&&console.warn("Can't find query ",h);let b=i[`@media ${h}`];b||(b=i[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};I();var N2=rn(),ui=e=>{let t=P(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},B2=e=>{let t=e&&(e.default||e);if(!C(t))return N2&&console.warn("parseRootAttributes:",t,"is not a string"),{};let r=t.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let o=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return o?o.reduce((s,i)=>{let[a,l]=i.split("=");return s[a]=l.replace(/['"]/g,""),s},{}):{}},V2=(e,t)=>{let r=[];if(e.replace(/id="([^"]*)"/g,(o,s)=>(r.push(s),o)),!r.length)return e;let n=e;for(let o of r){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${t}-${o}`;n=n.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return n},fc=(e,t)=>{let r=B2(t),{width:n,height:o}=r,s=r.viewBox||`0 0 ${n||24} ${o||24}`,l=V2(t,e).replace("<svg",`<symbol id="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="${s}"`);return l=l.replace(/width="[^"]*"/,""),l=l.replace(/height="[^"]*"/,""),l=l.replace("</svg","</symbol"),l=U2(l),l},z2="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",W2=new RegExp(`<(${z2})\\b([^>]*?)\\s*/>`,"g"),U2=e=>e.replace(W2,"<$1$2></$1>");var hi={};G(hi,{appendSVGSprite:()=>Ac,appendSvgIconsSprite:()=>Oc,applyDocument:()=>Cc,applyHeadings:()=>xg,applyReset:()=>Tc,applySpacingSequence:()=>_c,applyTimingSequence:()=>kc,applyTypographySequence:()=>bc,checkIfBoxSize:()=>vc,getColor:()=>de,getFontFamily:()=>yc,getFontSizeByKey:()=>xc,getMediaColor:()=>De,getMediaTheme:()=>Pt,getShadow:()=>Sc,getSpacingBasedOnRatio:()=>Gt,getSpacingByKey:()=>Ee,getTheme:()=>pc,getTimingByKey:()=>dt,getTimingFunction:()=>Rt,runThroughMedia:()=>bg,setColor:()=>pn,setFont:()=>mc,setFontFamily:()=>di,setGradient:()=>hn,setMediaTheme:()=>gc,setSVG:()=>pi,setShadow:()=>gn,setSvgIcon:()=>Ec,setTheme:()=>hc,splitSpacedValue:()=>wc});I();var de=(e,t,r)=>{let n=r||P();if(!C(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(xe(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,s,i;if($(e))[o,s,i]=e;else{let d=Or(e);if(!d){let{color:f,gradient:p}=n,h=p[e]||f[e];return h?n.useVariable?`var(${h.var})`:h.value:e}if(d.passthrough)return d.passthrough;if(d.cssVar)return`var(${d.cssVar})`;o=d.name,s=d.alpha,i=d.tone}let{color:a,gradient:l}=n,c=a[o]||l[o];if(!c)return n.verbose&&console.warn("Can't find color ",o),e;t&&(c[t]?c=c[t]:n.verbose&&console.warn(e," - does not have ",t));let u=c.rgb;return u?(i&&!c[i]&&(u=cn(u,i),c[i]={rgb:u,var:`${c.var}-${i}`}),c[i]&&(u=c[i].rgb),s?`rgba(${u}, ${s})`:i?`rgba(${u}, 1)`:n.useVariable?`var(${c.var})`:`rgb(${u})`):n.useVariable?`var(${c.var})`:c.value},De=(e,t,r)=>{let n=r||P();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!C(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(xe(e))return`var(${e})`;let o;if($(e))o=e[0];else{let c=Or(e);if(!c)return e;if(c.passthrough)return c.passthrough;if(c.cssVar)return`var(${c.cssVar})`;o=c.name}let{color:s,gradient:i}=n,a=s[o]||i[o],l=w(a);if(l&&a.value)return de(e,`@${t}`,r);if(l){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return de(e,`@${t}`,r);{let c={};for(let u in a){if(u.charCodeAt(0)!==64)continue;let d=n.media[u.slice(1)];if(!d)continue;let f="@media "+(d==="print"?`${d}`:`screen and ${d}`);c[f]=de(e,u,r)}return c}}else return n.verbose&&console.warn("Can't find color",e),e},pn=(e,t,r)=>{let n=P();if(C(e)&&xe(e)){let g=e.slice(2);if(e=de(g),!(e.includes("rgb")||e.includes("var")||e.includes("#"))){let m=g.split(" "),y=n.color[m[0]];if(y&&!y.value&&!y.rgb&&(C(y)||$(y)||w(y))&&(n.color[m[0]]=pn(y,m[0]),y=n.color[m[0]]),y&&y.value){let b=y.rgb,x=m[1]!==void 0?m[1]:"1",v=m[2];v&&(b=cn(b,v)),e=`rgba(${b}, ${x})`}else{let b=m[2],x=m[1]!==void 0?m[1]:"1";if(b)try{let v=nr(m[0]);v&&v.length>=3?e=`rgba(${cn(v.slice(0,3).join(", "),b)}, ${x})`:e=m[0]}catch{e=m[0]}else e=m[0]}}}if($(e)&&(e={"@light":e[0],"@dark":e[1]}),w(e)){let g={};for(let m in e)g[m]=pn(e[m],t,m.slice(0,1)==="@"?m.slice(1):m);if(n.useVariable){let y=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`,b,x={};for(let v in g){if(v.charCodeAt(0)!==64)continue;let _=v.slice(1),S=g[v],O=S&&(S.value||S);!O||typeof O!="string"||(x[_]=O,(_==="light"||b===void 0)&&(b=O))}if(b!==void 0){n.cssVars[y]=b,n.cssMediaVars||(n.cssMediaVars={});for(let v in x){let _=`[data-theme="${v}"]`;if(n.cssMediaVars[_]||(n.cssMediaVars[_]={}),n.cssMediaVars[_][y]=x[v],v==="light"||v==="dark"){let S=`@media (prefers-color-scheme: ${v})`;n.cssMediaVars[S]||(n.cssMediaVars[S]={}),n.cssMediaVars[S][y]=x[v]}}g.var=y}}return g}let s=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),i=e.value||e;if(C(i)&&i.includes(".")&&!i.includes("(")){let[g,m]=i.split("."),y=n.color[g];y&&y.rgb&&(i=`rgba(${y.rgb}, ${parseFloat("0."+m)||1})`)}if(C(i)&&!i.includes("(")&&!i.startsWith("#")){let g=Or(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=n.color[g.name];m&&!m.value&&!m.rgb&&(C(m)||$(m)||w(m))&&(n.color[g.name]=pn(m,g.name));let y=n.color[g.name];if(y&&y.rgb){let b=y.rgb;g.tone&&(b=cn(b,g.tone));let x=g.alpha?parseFloat(g.alpha):1;i=`rgba(${b}, ${x})`}}}let a=nr(i),[l,c,u,d=1]=a,f=parseFloat(d.toFixed(2)),p=`${l}, ${c}, ${u}`,h=`rgba(${p}, ${f})`;return n.useVariable&&(n.cssVars[s]=h),{var:s,rgb:p,alpha:f,value:h}},hn=(e,t,r)=>{let n=P();if(C(e)&&xe(e)&&(e=de(e.slice(2))),$(e))return{"@light":hn(e[0],t,"light"),"@dark":hn(e[0],t,"dark")};if(w(e)){let i={};for(let a in e)i[a]=hn(e[a],t,a.slice(0,1)==="@"?a.slice(1):a);return i}let s=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${t}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[s]=e.value||e),{var:s,value:e.value||e}};I();var H2=new Set(["black","white","red","green","blue","yellow","orange","purple","pink","brown","gray","grey","cyan","magenta","lime","olive","navy","teal","aqua","maroon","silver","fuchsia","transparent","currentColor","currentcolor","inherit","initial","unset","none","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),hw=["color","Color","background","Background","fill","Fill","stroke","Stroke"],q2=e=>{for(let t=0;t<hw.length;t++)if(e.includes(hw[t]))return!0;return!1},dc=e=>{let t={},{state:r,media:n,helpers:o,...s}=e;return Object.keys(s).map(a=>{let c=["color","Color","background","border"].some(u=>a.includes(u));return t[a]=c?de(e[a]):e[a]}),t},fi=e=>(e.value||(e.value=dc(e)),e.value),pc=(e,t)=>{let r=P();if(r.useVariable)return Pt(e,t);let n=r.theme;if(C(e)){let[o,s]=e.split(" "),i=n[o];if(i){if(!s&&!t)return fi(i);e=[o,s||t]}}if(Q(e)&&e[1]){let o=e[0],s=e[1],{helpers:i,media:a,state:l}=n[o];if(a&&a[s])return fi(a[s]);if(i&&i[s])return fi(i[s]);if(l&&l[s])return fi(l[s])}else if(w(e))return dc(e)},G2=(e,t,r)=>{if(w(t))e.variants.inverse.value=dc(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},K2=(e,t,r,n)=>{let o=pc(r);n[`&:${t}`]=o,w(r)&&!r.value&&(r.value=o)},X2=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(o=>{let s=r[o];return K2(e,o,s,t),e}),e):void 0},Y2=(e,t,r,n)=>{let o=pc(r);n[`@media (prefers-color-scheme: ${t})`]=o,w(r)&&!r.value&&(r.value=o)},Z2=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&Y2(e,o,s,t),o==="inverse"&&G2(e,s,t),e}),e):void 0},J2=(e,t)=>{let r=P(),{helpers:n}=e;return n?(Object.keys(n).map(s=>{let i=n[s];return C(i)?n[s]=r.theme[i]:fi(n[s]),e}),e):void 0},hc=(e,t)=>{let r=P();if(r.useVariable)return gc(e,t);let{state:n,media:o,helpers:s}=e,i=dc(e,t),l=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return X2(e,i),Z2(e,i),J2(e,i),{var:l,value:i,state:n,media:o,helpers:s}};var mg=(e,t,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let c in e)if(e[c])for(let u of Object.keys(e[c]))a.add(u);let l=new Set;for(let c of a){let u=c.slice(0,1);if(!(u==="@"||u==="."||u===":")&&q2(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let p=de(f,`@${d}`);p!==void 0&&C(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!H2.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>Q(f?.[c]));if(u==="."&&d){let f=c.slice(1),p={};for(let h in e)Q(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=mg(p,`${t}-${f}`,r)}else if(u===":"&&d){let f=c.replace(/^:+/,""),p={};for(let h in e)Q(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=mg(p,`${t}-${f}`,r)}else if(u!=="@"&&u!=="."&&u!==":"){let p=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}-${c}`,h=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,g;for(let m in e){if(l.has(m))continue;let y=e[m]?.[c];if(y===void 0)continue;let b=de(y,`@${m}`);if(b===void 0)continue;(h&&m===h||!h&&(m==="light"||g===void 0))&&(g=b);let x=`[data-theme="${m}"]`;if(o[x]||(o[x]={}),o[x][p]=b,m==="dark"||m==="light"){let v=`@media (prefers-color-scheme: ${m})`;o[v]||(o[v]={}),o[v][p]=b}}g!==void 0&&(n[p]=g),i[c]=`var(${p})`,i[`.${c}`]={[c]:i[c]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},gc=(e,t,r,n)=>{let o=P(),{cssVars:s}=o,i={value:e},a=!r&&!n;if(Q(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith("@")&&Q(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=mg(l,t,o);Object.assign(i,c)}}for(let l in e){let c=l.slice(0,1),u=e[l];if(c==="@"||c===":"||c==="."){let d=c==="@"&&l;i[l]=gc(u,t,l,n||d)}else if(!a){let d=de(u,n),f=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],p=f.length?"-"+f.join("-"):"",g=`--${o.varPrefix?o.varPrefix+"-":""}theme-${t}${p}-${l}`;o.useVariable?(o.useThemeSuffixedVars&&(s[g]=d),i[l]=`var(${g})`):i[l]=d,i[`.${l}`]={[l]:i[l]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(C(e)&&xe(e)){let c=o.theme[e.slice(2)];return Pt(c,n)}return i},yg=e=>{let t=P(),r={};for(let n in e){let o=n.slice(0,1);if(Q(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=yg(e[n]):o==="."&&(r[`&${n}`]=yg(e[n]))}else r[n]=e[n]}return r},mw=(e,t)=>{let r=t.shift();return e[r]?mw(e[r],t):e},gw=(e,t)=>$(t)?mw(e,t):C(t)&&e[t]?e[t]:e;var Pt=(e,t)=>{let r=P();if(C(e)&&xe(e)&&(e=Pt(e.slice(2))),!e||!C(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=$(e)?e:e.split(" "),s=r.theme[n];return s&&o.length?s=gw(s,o):s&&t&&(s=gw(s,t)),yg(s)};I();I();var mc=(e,t)=>{let r=P(),n=`--font-${t}`;if(!e||$(e)&&!e[0])return;let o;if(e.isVariable){let s=Tt(e.url,r.files)||e.url;ii(s)?o=ai(s):o=un(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=to(t,e,r.files);else{let s=Array.isArray(e.url)?e.url.map(i=>Tt(i,r.files)||i):Tt(e.url,r.files)||e.url;o=un(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},yc=(e,t)=>{let r=P(),{fontFamily:n}=r;return eo(t||n,e)},di=(e,t)=>{let r=P(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),w(s)&&(s=an(s));let a=`--font-family-${t}`,l=`${s.join(", ")}, ${o[i]}`;return{var:a,value:l,arr:s,type:i}};I();var bg=e=>{let t=P(),{typography:r,media:n}=t;for(let o in e){let s=o.slice(0,1)==="@",i=e[o];if(!s)continue;let{mediaRegenerate:a}=e,l=o.slice(1),{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g}=e;ge(i,{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||g,b=!i.unit&&m.has(g)?"rem":y,x=n[l],v="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[v]={fontSize:i.base/r.browserDefault+b},!a){ge(i,{sequence:{},scales:{},vars:{}}),ft(i),fn(e,o);continue}ge(i,{sequence:{},scales:{},templates:{},vars:{}}),ft(i),fn(e,o)}},xg=e=>{let t=P();if(e.h1Matches){let r=e.unit,n=cc(e),{templates:o}=e;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:t.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:e.lineHeight,letterSpacing:a?a.letterSpacing:e.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},bc=()=>{let e=P(),{typography:t}=e;ft(t),xg(t),Rr(t),bg(t)},xc=e=>{let t=P(),{typography:r}=t;return ar(e,"fontSize",r)};I();I();var Q2=e=>{for(let t in e){let r=e[t];if(!(t.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:l,h1Matches:c,unit:u}=e;ge(r,{type:o,base:s,ratio:i,range:a,subSequence:l,h1Matches:c,unit:u,sequence:{},scales:{},templates:{},vars:{}}),ft(r),fn(e,t)}},vc=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},_c=()=>{let e=P(),{spacing:t}=e;ft(t),Rr(t),Q2(t)},e$=e=>{let t=P(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:ft(e)},Ee=(e,t="padding",r,n)=>{let o=e$(r);if(C(e)&&!n&&e.includes("(")){let i=Pr(e);n=i[0],e=i[1]}let s=n?[e]:an(e);if($(s)){if(s.length>1){let i="";t==="borderWidth"&&(t="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},l=(c,u)=>ar(s[u],t+c+i,o,n);return a[s.length].map((c,u)=>l(c,u))}return ar(e,t,o,n)}},Gt=(e,t,r,n)=>{let o=P(),{spacing:s}=o,i=r||e[t];if(!n&&C(i)&&i.includes("(")){let a=Pr(i);n=a[0],i=a[1]}if(e.spacingRatio){let a=applyCustomSequence(e);return Ee(i,t,a,n)}return Ee(i,t,s,n)},wc=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=jn.some(i=>e.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return e.split(",").map(r=>r.trim()).map(t).join(",").split(" ").map(t).join(" ")};I();var gn=(e,t,r,n)=>{let o=P();if($(e))return{"@light":gn(e[0],t,"light"),"@dark":gn(e[1],t,"dark")};if(w(e)){let a={};for(let l in e)a[l]=gn(e[l],t,l.startsWith("@")?l.slice(1):l);return a}C(e)&&!qt.test(e)&&(e=ln(e).map(a=>(a=a.trim(),a.split(/\s+/).map(l=>{if(l=l.trim(),!l)return"";if(l.startsWith("--"))return`var(${l})`;let c=de(l);if(or(c))return c;if(/^\d/.test(l)||l==="0"||l.includes("px")||l.slice(-2)==="em"||l==="inset"||l==="none")return l;let u=Ee(l,"shadow");return u&&u.shadow?u.shadow:l}).join(" "))).join(", "));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${t}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[i]=e),{var:i,value:e}},Sc=(e,t)=>{let r=P();if(t||(t=r.globalTheme),!C(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(xe(e))return`var(${e})`;let[n]=$(e)?e:e.split(" "),s=r.shadow[n],i=w(s);if(!s)return r.verbose&&console.warn("Can't find color ",n),e;if(t){if(s[t])return s[t].value;r.verbose&&console.warn(e," - does not have ",t)}if(i&&s.value)return s.value;if(i){let a={};for(let l in s){let c=r.media[l.slice(1)],u="@media "+(c==="print"?`${c}`:`screen and ${c}`);a[u]=s.value}return a}return r.verbose&&console.warn("Can't find color",e),e};I();var kc=()=>{let e=P(),{timing:t}=e;ft(t),Rr(t)},Rt=e=>{let t=P(),{timing:r}=t;return r[e]||r[ti(e)]||e},dt=(e,t="timing")=>{let r=P(),{timing:n}=r;return ar(e,t,n)};I();var Cc=()=>{let e=P(),{document:t,fontFamily:r,theme:n,typography:o}=e;return ge(t,{theme:n.document,fontFamily:eo(r),fontSize:o.base,lineHeight:o.lineHeight})};I();var _g={document:ce},pi=(e,t)=>{let r=P();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?fc(t,e):e},Ac=(e,t=_g)=>{let r=P(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];bw(n,t)},Ec=(e,t)=>{let r=P();return r.useIconSprite&&!r.semanticIcons?.[t]?pi(e,t):e},Oc=(e,t=_g)=>{let r=P(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];bw(n,t)},vg=(e,t={isRoot:!0})=>{if(!e||!e.createElementNS)return;let r=e.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},t$=(e,t)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,s=new r().parseFromString(n,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},yw=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},bw=(e,t=_g)=>{let r=P(),n=t.document||ce;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),ui(e);let o=n.querySelector("#svgSprite"),s=ui(e),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=t$(n,s);if(o)if(a)yw(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let l=vg(n,{isRoot:!1});l.innerHTML=s,o.append(...l.children)}else if(a){let l=vg(n);l&&l.nodeType&&(yw(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let l=vg(n);l&&l.nodeType&&(l.innerHTML=s,n.body.prepend(l))}};I();var Tc=(e={})=>{let t=P(),{reset:r,typography:n,document:o}=t;if(r){if(r[":root"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?Pt("document"):{},...c.body},l.h1=c.h1,l.h2=c.h2,l.h3=c.h3,l.h4=c.h4,l.h5=c.h5,l.h6=c.h6}let{body:s,...i}=n.templates,a=t.useDocumentTheme?Pt("document"):{};if(r.html&&Ke(r.html,a),n.unit){let{media:l}=t;for(let c in n){if(c.charAt(0)!=="@")continue;let u=n[c];if(!u||u.unit===n.unit||!u.unit)continue;let d=u.unit,f=u.base||n.base,p=u.browserDefault||n.browserDefault,h=c.slice(1),g=l[h];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=f/p+d}}return ae(ge(r,e),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+t.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}})}};I();var r$=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),n$=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),o$=e=>r$.has(e),lr=e=>{let t=e+"";if(qt.test(t))return t;let r=t.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?t:t.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(xe(o))return`var(${o})`;if(o$(o)||/^\d/.test(o)||o==="0")return o;let s=de(o);if(or(s))return s;let i=Ee(o,"border");return i&&i.border?i.border:o}).join(" ")},wg=e=>qt.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(xe(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let r=de(t);return or(r)?r:t}).join(" "),Sg=(e,t)=>Sc(e,t),Pc=(e,t)=>qt.test(e)?e:ln(e).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(xe(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=de(n);if(or(o)){let i=De(n,t);return w(i)?Object.values(i).filter(a=>a.includes(": "+t))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=Ee(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),Rc=(e,t)=>{let r=e.indexOf("(");if(r===-1)return e;let n=e.slice(0,r+1),o=e.slice(r+1,e.lastIndexOf(")")),s=")",a=ln(o).map(l=>(l=l.trim(),l.split(/\s+/).map(u=>{if(!u||/^\d/.test(u)||u==="0"||n$.has(u)||u==="transparent"||qt.test(u))return u;let d=de(u);return or(d)?d:u}).join(" ")));return n+a.join(", ")+s},kg=(e,t)=>{let r=P();return e.split(", ").map(n=>xe(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?Rc(n,t):r.gradient[e]?{backgroundImage:De(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!Or(n)?`url(${n})`:n).join(" ")},Cg=e=>C(e)&&e.split(" ").map(t=>Ee(t,"gap").gap).join(" "),xw=e=>{let t=e.split(" ");return t.length?t.map(r=>xe(r)?`var(${r})`:r.length<3||r.includes("ms")?dt(r).timing||r:Rt(r)?Rt(r):r).join(" "):e},$c=(e,t,r)=>{if(C(e))return e.split(",").map(n=>dt(n).timing||n).join(",")},Ag=e=>{let t=e.split(",");if(t.length)return t.map(xw).join(",")};function ve(e,t,r={},n={}){let o=le.call(this,t||r[e]);if(o==null)return;let s;if(C(o)){if(o.includes("(")){let l=Pr(o);s=l[0],o=l[1]}let i=r.scaleBoxSize,a=vc(e);!i&&a&&!n.ratio&&(o=wc(o))}return n.ratio?Gt(r,e,o,s):Ee(o,e,void 0,s)}var ee=(e,t=null,r)=>ve(e,t,r,{ratio:!0}),Ic=(e,t,r)=>{if(C(e))return{borderRadius:e.split(" ").map((n,o)=>Gt(t,r,n)[r]).join(" ")}};I();var s$=(e,t)=>{let r=P(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},pt=e=>e,Eg={color:pn,gradient:hn,font:mc,fontFamily:di,fontfamily:di,theme:hc,icons:Ec,semanticIcons:pt,semanticicons:pt,svg:pi,svgData:pt,typography:pt,shadow:gn,spacing:pt,media:pt,grid:pt,class:pt,timing:pt,reset:pt,unit:pt,animation:pt,vars:s$},vw=(e,t,r)=>{let n=P(),o=rc(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=Eg[o]||Eg[s];if(a)try{let l=a(t,r);return i&&(i[r]=l),i}catch(l){n.verbose&&console.warn("Error setting",s,"value",t,r,l)}n.verbose&&console.warn("Can not find",s,"method in scratch")},_w=(e,t)=>{let r=P(),n=e.toLowerCase();return Object.keys(t).sort((s,i)=>{let a=w(t[s])||$(t[s])?1:0,l=w(t[i])||$(t[i])?1:0;return a-l}).forEach(s=>{try{return vw(n,t[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",t[s],s,i)}}),r[n]||r[e]},Og=(e,t)=>{let r=t||P();r.globalTheme=e;let o=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),s=o&&o.defaultView||(typeof window<"u"?window:null);if(o){let a=r.themeRoot||o.documentElement;if(e&&e!=="auto")a.setAttribute("data-theme",e),e==="dark"||e==="light"?a.style.colorScheme=e:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let c=d=>{a.setAttribute("data-theme",d.matches?"dark":"light")},u=s.matchMedia("(prefers-color-scheme: dark)");if(c(u),a.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=c;try{u.addEventListener("change",c)}catch{u.addListener(c)}}}else a.setAttribute("data-theme","light"),a.style.colorScheme="light"}let i=r.varPrefix?`--${r.varPrefix}-theme-`:"--theme-";for(let a in r.cssVars)a.startsWith(i)&&delete r.cssVars[a];for(let a in r.cssMediaVars)delete r.cssMediaVars[a];if(o&&r.cssVars){let a=r.scopeSelector||":root",l=o.styleSheets;for(let c=0;c<l.length;c++)try{let u=l[c].cssRules;for(let d=0;d<u.length;d++)if(u[d].selectorText===a){for(let f in r.cssVars)u[d].style.setProperty(f,r.cssVars[f]);return r}}catch{}}return r},i$={},ro=(e,t=i$)=>{let r=t.config||P(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:l,useIconSprite:c,globalTheme:u,themeRoot:d,useDocumentTheme:f,useDefaultConfig:p,semanticIcons:h,files:g,assets:m,...y}=e;t.newConfig&&(r=ug(t.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),l!==void 0&&(r.useFontImport=l),a!==void 0&&(r.useSvgSprite=a),c!==void 0&&(r.useIconSprite=c),f!==void 0&&(r.useDocumentTheme=f),u!==void 0&&(r.globalTheme=u),d!==void 0&&(r.themeRoot=d),e.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=e.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let x=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),v=x&&x.defaultView||(typeof window<"u"?window:null),_=x&&(r.themeRoot||x.documentElement);if(_&&typeof _.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")_.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?_.style.colorScheme=r.globalTheme:_.style.colorScheme="light dark";else if(v&&v.matchMedia){let D=z=>{_.setAttribute("data-theme",z.matches?"dark":"light")},te=v.matchMedia("(prefers-color-scheme: dark)");if(D(te),_.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=D;try{te.addEventListener("change",D)}catch{te.addListener(D)}}}else _.setAttribute("data-theme","light"),_.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let S=Object.keys(y),O=new Set(S);if(S.forEach(k=>{let D=k.toLowerCase();D!==k&&O.has(D)&&ae(y[D],y[k])}),S.map(k=>{let D=k.toLowerCase();if(!(D!==k&&O.has(D)))return _w(k,y[k])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{bc()}catch(k){r.verbose&&console.warn("Error applying typography sequence",k)}if(y.spacing)try{_c()}catch(k){r.verbose&&console.warn("Error applying spacing sequence",k)}if(y.timing)try{kc()}catch(k){r.verbose&&console.warn("Error applying timing sequence",k)}Cc();let T=Tc();return T&&(r.reset=T),r};var no=new Map,a$=null,Pg=null,l$=null;function jc(e){e.batchAtomicCss&&(Pg=e.batchAtomicCss),e.compoundCssClass&&(l$=e.compoundCssClass)}var c$=new Set;function Cw(e){try{let t=P();t&&(t.document=e)}catch{}e&&c$.add(e)}function Rg(){try{let e=P();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}var u$={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk"};function mn(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function Fc(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t.toString(36)}function f$(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Fc(t)}function ww(e,t,r){let n=(r?r+"":"")+e+":"+t,o=no.get(n),s=o?null:mn(e);if(!o){let a=u$[e]||Fc(e),l=f$(t);o=r?`_${r}_${a}-${l}`:`_${a}-${l}`,no.set(n,o)}if(typeof t=="string"&&(t.indexOf("}")!==-1||t.indexOf("{")!==-1))return o;let i=`.${o}{${s||mn(e)}:${t}}`;return ht(i),o}var Sw=new WeakMap;function ht(e,t){let r=Aw(t);if(!r)return;let n=Sw.get(r);if(n||(n=new Set,Sw.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var kw=new WeakMap;function Aw(e){let t=e||Rg();if(!t||!t.head)return null;let r=kw.get(t);if(r&&r.ownerNode&&r.ownerNode.parentNode===t.head)return r;let n=t.head.querySelector("style[data-smbls]");n||(n=t.createElement("style"),n.setAttribute("data-smbls",""),t.head.appendChild(n));let o=n.sheet;return kw.set(t,o),a$=o,o}var d$=8;function $r(e,t,r){if(!e||typeof e!="object")return"";let n=null,o=0,s=[];for(let i in e){let a=e[i];a==null||a===!1||a===""||(typeof a=="object"?s.push(p$(i,a,r)):Pg?(n||(n=[]),n.push(i,String(a)),o++):s.push(ww(i,String(a),r)))}if(n&&o>=d$){let i=n.join("\0"),a=Pg(i),l=a.indexOf("\0"),c=a.substring(0,l),u=a.substring(l+1);if(u){let d=u.split(`
|
|
35
|
+
`);for(let f=0;f<d.length;f++)d[f]&&ht(d[f])}if(s.length>0)s.push(c);else return c}else if(n)for(let i=0;i<n.length;i+=2)s.push(ww(n[i],n[i+1],r));return s.join(" ")}var Tg=new Map;function p$(e,t,r){let n=(r?r+"":"")+e+JSON.stringify(t),o=no.get(n);if(o){let f=Tg.get(o);if(f)for(let p=0;p<f.length;p++)ht(f[p]);return o}o=r?`_${r}_c${Fc(n)}`:`_c${Fc(n)}`;let s="",i=[],a=f=>typeof f=="string"&&(f.indexOf("{")!==-1||f.indexOf("}")!==-1),l=(f,p)=>{let h="";for(let g in p){let m=p[g];if(m!=null)if(typeof m=="object")l([...f,g],m);else{if(a(m))continue;h+=`${mn(g)}:${m};`}}h&&(f.length===0?s+=h:i.push({chain:f,body:h}))};l([],t);let c=f=>{if(!f.length)return`.${o}`;let p=f[0].split(",").map(h=>h.trim()).map(h=>h.includes("&")?h.replace(/&/g,`.${o}`):h.startsWith(":")?`.${o}${h}`:`.${o} ${h}`);for(let h=1;h<f.length;h++){let g=f[h].split(",").map(y=>y.trim()),m=[];for(let y of p)for(let b of g)b.includes("&")?m.push(b.replace(/&/g,y)):b.startsWith(":")?m.push(y+b):m.push(y+" "+b);p=m}return p.join(", ")},u=[];if(e.startsWith("@media")||e.startsWith("@supports")){if(s){let f=`${e}{.${o}{${s}}}`;u.push(f),ht(f)}for(let f of i){let p=c(f.chain),h=`${e}{${p}{${f.body}}}`;u.push(h),ht(h)}return Tg.set(o,u),no.set(n,o),o}let d=c([e]);if(s){let f=`${d}{${s}}`;u.push(f),ht(f)}for(let f of i){let h=`${c([e,...f.chain])}{${f.body}}`;u.push(h),ht(h)}return Tg.set(o,u),no.set(n,o),o}function _e(e){if(Aw(),typeof e=="string"){ht(e);return}let t=Object.keys(e),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};t.sort((n,o)=>{let s=n.startsWith("@media"),i=o.startsWith("@media");return!s&&!i?0:s?i?r(o)-r(n):1:-1});for(let n of t){let o=e[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let s in o){let i=o[s];if(typeof i=="object"&&i!==null){let a="";for(let l in i){let c=l.startsWith("--")?l:mn(l);a+=`${c}:${i[l]};`}ht(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:mn(s);ht(`${n}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in o){let l=o[a];if(typeof l=="object"&&l!==null)i=!0;else{let c=a.startsWith("--")?a:mn(a);s+=`${c}:${l};`}}if(s&&ht(`${n}{${s}}`),i){let a=[],l=[];for(let c in o)typeof o[c]=="object"&&o[c]!==null&&(c.startsWith("@media")||c.startsWith("@supports")?a.push(c):l.push(c));a.sort((c,u)=>{let d=f=>{let p=f.match(/max-width:\s*(\d+)/);return p?parseInt(p[1]):0};return d(u)-d(c)});for(let c of l)_e({[`${n} ${c}`]:o[c]});for(let c of a)_e({[c]:{[n]:o[c]}})}}}}function gi(e,t){let r="";for(let n in t){let o="";for(let s in t[n])o+=`${mn(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return ht(`@keyframes ${e}{${r}}`),e}function Ew(){return no.size}I();var $g="http://www.w3.org/2000/svg",bi=new Set(["svg","path","circle","ellipse","line","polyline","polygon","rect","g","defs","use","symbol","clipPath","mask","pattern","image","text","tspan","textPath","marker","linearGradient","radialGradient","stop","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","animate","animateMotion","animateTransform","set","foreignObject","desc","title","metadata"]),h$=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","string","fragment","shadow"]);function mi(e){return h$.has(e)||bi.has(e)}function xi(e){return bi.has(e)}function yn(e){let{tag:t,key:r}=e;if(typeof t=="function"&&(t=t(e)),t===!0&&(t=r),typeof t=="string"&&mi(t))return t;if(!r||typeof r!="string")return"div";let n=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template"]),o=r.toLowerCase();return o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),mi(o)&&!n.has(o)?o:"div"}var Ow={};function yi(e,t){let r=t?.context?.document||globalThis.document;if(!r)return null;if(e==="string")return r.createTextNode(t?.text||"");if(e==="fragment")return r.createDocumentFragment();if(xi(e)){let n=t?.parent;if(e==="svg"||n?.node?.namespaceURI===$g)return r.createElementNS($g,e);if(e!=="svg")return r.createElement("div")}return r.createElement(e)}function bn(e){let t=e.tag=yn(e),n=xi(t)&&(t==="svg"||e.parent?.node?.namespaceURI===$g)?"svg:"+t:t,o=e?.context?.document||globalThis.document,s=Ow[n];if(s||(s=Ow[n]=yi(t,e)),!s)return null;let i=o&&s.ownerDocument!==o?yi(t,e):s.cloneNode(!0);return t==="string"&&(i.nodeValue=e.text||""),i}var Ze=new Set(["extends","children","content","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","__name","__ref","__hash","__text","parent","node"]),Ig={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},xn=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","error","beforeRemove","remove"]),Tw=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),vi=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseenter","mouseleave","mouseover","mouseout","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointerover","pointerout","touchstart","touchend","touchmove","keydown","keyup","keypress","input","change","submit","reset","focus","blur","focusin","focusout","scroll","wheel","contextmenu","drag","dragstart","dragend","dragenter","dragleave","dragover","drop"]);var Fg=new WeakMap,g$={passive:!0},m$={passive:!0,capture:!0},jg=(e,t)=>Tw.has(e)?t?m$:g$:t||!1;function Rw(e){let t=Fg.get(e);return t||(t={handlers:new Map,installed:new Set},Fg.set(e,t)),t}function y$(e,t){let r=Rw(t);if(r.installed.has(e))return;r.installed.add(e);let n=e==="focus"||e==="blur"||e==="focusin"||e==="focusout"||e==="mouseenter"||e==="mouseleave",o=e==="mouseenter"||e==="mouseleave";t.addEventListener(e,s=>{let i=s.target;for(;i&&i!==t;){let a=r.handlers.get(e);if(a){let l=a.get(i);if(l){if(o&&s.relatedTarget&&i.contains(s.relatedTarget)){i=i.parentNode;continue}if(l(s),s.cancelBubble)return}}i=i.parentNode}},jg(e,n))}function Dc(e,t,r,n){n||(n=t.ownerDocument?.documentElement||t.getRootNode());let o=Rw(n);y$(e,n),o.handlers.has(e)||o.handlers.set(e,new WeakMap),o.handlers.get(e).set(t,r)}function Lc(e,t,r){r||(r=t.ownerDocument?.documentElement||t.getRootNode());let n=Fg.get(r);if(!n)return;let o=n.handlers.get(e);o&&o.delete(t)}function Pw(e){return vi.has(e)&&!xn.has(e)}function _i(e,t,r){let{node:n,context:o}=t;if(!n)return;let s=o?.designSystem,i=a=>{s&&Ie(s);try{let l=r.call(t,a,t,t.state,o);if(l&&typeof l.then=="function"){l.catch(c=>{t.error=c,console.error("[DOMQL] Async event error:",c)}).finally(()=>{s&&$e()});return}}catch(l){if(t.error=l,console.error("[DOMQL] Event error:",l),o?.strictMode)throw l}s&&$e()};if(Pw(e)){let a=o?.rootNode||n.ownerDocument?.documentElement;Dc(e,n,i,a)}else n.addEventListener(e,i,jg(e,!1));t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{if(Pw(e)){let a=o?.rootNode||n.ownerDocument?.documentElement;Lc(e,n,a)}else n.removeEventListener(e,i,jg(e,!1))})}function $w(e){let t=[];return e.extends&&(Array.isArray(e.extends)?t.push(...e.extends):t.push(e.extends)),e.extend&&(Array.isArray(e.extend)?t.push(...e.extend):t.push(e.extend)),t}function wi(e,t,r){let n=$w(t);if(!n.length)return;let s=(e.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=Iw(n[i],s);a&&a!==t&&Fw(e,a,r,new Set([t]))}}function Iw(e,t){if(typeof e=="string"){if(e.includes(">")){let r=e.split(">").map(o=>o.trim()),n=t[r[0]]||t[`smbls.${r[0]}`];for(let o=1;o<r.length&&n;o++)n=n[r[o]];return n||null}return t[e]||t[`smbls.${e}`]||null}return typeof e=="object"&&e!==null?e:null}function Fw(e,t,r,n=new Set){if(n.has(t))return;n.add(t);let o=$w(t);if(o.length){let i=(e.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let l=Iw(o[a],i);l&&Fw(e,l,r,n)}}for(let s in t){if(s==="extends"||s==="extend")continue;let i=t[s];e[s]===void 0?i&&typeof i=="object"&&!Array.isArray(i)&&typeof i!="function"?e[s]={...i}:e[s]=i:typeof e[s]=="object"&&typeof i=="object"&&!Array.isArray(e[s])&&!Array.isArray(i)&&e[s]!==null&&i!==null?e[s]=jw(e[s],i):e[s]=i}}function jw(e,t){let r={...e};for(let n in t){let o=r[n],s=t[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=jw(o,s):r[n]=s}return r}Un();function Si(e={},t={}){let r=this,n=r.__ref;if(n){if((typeof e=="string"||typeof e=="number")&&(e={text:e}),!t.preventListeners&&typeof r.onBeforeUpdate=="function"&&r.onBeforeUpdate(r,r.state,r.context,t)===!1)return r;if(br(()=>{if(e.state&&je(r.state)&&r.state.update(e.state),e.text!==void 0&&(r.text=e.text,!n.__exec.text&&r.node&&(r.tag==="string"?r.node.nodeValue=e.text??"":r.node.textContent=e.text??"")),e.html!==void 0&&(r.html=e.html,!n.__exec.html&&r.node&&(r.node.innerHTML=e.html)),e.style&&r.node?.style){if(!n.__exec.style)for(let o in e.style){let s=e.style[o];if(s==null)continue;let i=o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),a=String(s).replace(/\s*!important\s*$/,"");r.node.style.setProperty(i,a,"important")}r.style||(r.style={}),Object.assign(r.style,e.style)}if(e.attr&&r.node?.setAttribute){for(let o in e.attr){let s=e.attr[o];s==null||s===!1?r.node.removeAttribute(o):typeof s!="function"&&typeof s!="object"&&r.node.setAttribute(o,s===!0?"":s)}r.attr||(r.attr={}),Object.assign(r.attr,e.attr)}if(e.data&&r.node?.dataset){for(let o in e.data)r.node.dataset[o]=e.data[o];r.data||(r.data={}),Object.assign(r.data,e.data)}for(let o in e){if(Ze.has(o)||o==="state")continue;let s=e[o],i=r[o];if(i&&i.__ref&&typeof i.update=="function")i.update(s,t);else if(typeof s=="object"&&s!==null){let a=o.charCodeAt(0);a>=65&&a<=90&&$t(s,r,o,t)}else o!=="text"&&o!=="html"&&o!=="style"&&o!=="attr"&&o!=="data"&&(r[o]=s)}}),r.node&&n.__conditionalRunners)for(let o of n.__conditionalRunners)o();return Ct("update",r),!t.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,t),r}}function vn(e){if(!e)return;let t=e.__ref;if(t){try{typeof e.onBeforeRemove=="function"&&e.onBeforeRemove(e,e.state,e.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(t.__effects){for(let r=0;r<t.__effects.length;r++)t.__effects[r].dispose();t.__effects.length=0}if(t.__eventCleanup){for(let r=0;r<t.__eventCleanup.length;r++)t.__eventCleanup[r]();t.__eventCleanup.length=0}if(t.__children){for(let r=0;r<t.__children.length;r++){let n=t.__children[r],o=e[n];o&&o.__ref&&vn(o)}t.__children.length=0}if(e.node?.parentNode&&e.node.remove(),e.state?.destroy&&e.state.__element===e&&e.state.destroy(),e.parent?.__ref?.__children){let r=e.parent.__ref.__children.indexOf(e.key);r!==-1&&e.parent.__ref.__children.splice(r,1),delete e.parent[e.key]}try{typeof e.onRemove=="function"&&e.onRemove(e)}catch(r){console.error("[smbls] onRemove error:",r)}e.node=null,e.parent=null,e.__ref=null}}function ki(){vn(this)}I();I();var b$=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],x$=["none","forwards","backwards","both"],v$=["normal","reverse","alternate","alternate-reverse"],_$=["running","paused"],w$=e=>/^[\d.]+m?s$/.test(e),S$=0,Dg=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(w(e)){let o=`smbls-anim-${S$++}`;return{animationName:gi(o,e)}}let n=r&&r[e];return w(n)?gi(e,n):e},k$=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{},n=e.split(/\s+/),o=null,s=[],i=null,a=null,l=null,c=null,u=null;for(let d of n)r&&r[d]?o=d:w$(d)?s.push(d):b$.includes(d)||d.startsWith("cubic-bezier")||d.startsWith("steps(")?i=d:d==="infinite"||/^\d+$/.test(d)?a=d==="infinite"?d:Number(d):v$.includes(d)?l=d:x$.includes(d)?c=d:_$.includes(d)?u=d:o||(o=d);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:l,fillMode:c,playState:u}},Lg={animation:(e,t)=>{if(C(e)&&e.includes(" ")){let r=k$(e,t);return{animationName:Dg(r.name||e,t),animationDuration:r.durations[0]||dt(t.animationDuration||"A").timing,animationDelay:r.durations[1]||dt(t.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Rt(t.animationTimingFunction||"ease"),animationFillMode:r.fillMode||t.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:t.animationIterationCount||1,animationPlayState:r.playState||t.animationPlayState,animationDirection:r.direction||t.animationDirection}}return{animationName:Dg(e,t),animationDuration:dt(t.animationDuration||"A").timing,animationDelay:dt(t.animationDelay||"0s").timing,animationTimingFunction:Rt(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:Dg(e,t)}),animationDuration:e=>({animationDuration:dt(e).timing}),animationDelay:e=>({animationDelay:dt(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Rt(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};I();var Mg={show:e=>e?void 0:{display:"none !important"},hide:e=>e?{display:"none !important"}:void 0,height:(e,t)=>ee("height",e,t),width:(e,t)=>ee("width",e,t),boxSizing:e=>Pe(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{...ve("height",t),...ve("width",r||t)}},inlineSize:(e,t)=>ee("inlineSize",e,t),blockSize:(e,t)=>ee("blockSize",e,t),minWidth:(e,t)=>ee("minWidth",e,t),maxWidth:(e,t)=>ee("maxWidth",e,t),widthRange:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{...ve("minWidth",t),...ve("maxWidth",r||t)}},minHeight:(e,t)=>ee("minHeight",e,t),maxHeight:(e,t)=>ee("maxHeight",e,t),heightRange:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{...ve("minHeight",t),...ve("maxHeight",r||t)}},size:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{...ee("inlineSize",t),...ee("blockSize",r||t)}},minBlockSize:(e,t)=>ee("minBlockSize",e,t),minInlineSize:(e,t)=>ee("minInlineSize",e,t),maxBlockSize:(e,t)=>ee("maxBlockSize",e,t),maxInlineSize:(e,t)=>ee("maxInlineSize",e,t),minSize:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{...ve("minInlineSize",t),...ve("minBlockSize",r||t)}},maxSize:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{...ve("maxInlineSize",t),...ve("maxBlockSize",r||t)}},borderWidth:(e,t)=>ee("borderWidth",e,t),padding:(e,t)=>ee("padding",e,t),scrollPadding:(e,t)=>ee("scrollPadding",e,t),paddingInline:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{...ve("paddingInlineStart",t),...ve("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{...ve("paddingBlockStart",t),...ve("paddingBlockEnd",r||t)}},paddingTop:(e,t)=>ee("paddingBlockStart",e,t),paddingBottom:(e,t)=>ee("paddingBlockEnd",e,t),paddingLeft:(e,t)=>ee("paddingInlineStart",e,t),paddingRight:(e,t)=>ee("paddingInlineEnd",e,t),paddingBlockStart:(e,t)=>ee("paddingBlockStart",e,t),paddingBlockEnd:(e,t)=>ee("paddingBlockEnd",e,t),paddingInlineStart:(e,t)=>ee("paddingInlineStart",e,t),paddingInlineEnd:(e,t)=>ee("paddingInlineEnd",e,t),margin:(e,t)=>ee("margin",e,t),marginInline:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{...ve("marginInlineStart",t),...ve("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!C(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{...ve("marginBlockStart",r),...ve("marginBlockEnd",n||r)}},marginTop:(e,t)=>ee("marginBlockStart",e,t),marginBottom:(e,t)=>ee("marginBlockEnd",e,t),marginLeft:(e,t)=>ee("marginInlineStart",e,t),marginRight:(e,t)=>ee("marginInlineEnd",e,t),marginInlineStart:(e,t)=>ee("marginInlineStart",e,t),marginInlineEnd:(e,t)=>ee("marginInlineEnd",e,t),marginBlockStart:(e,t)=>ee("marginBlockStart",e,t),marginBlockEnd:(e,t)=>ee("marginBlockEnd",e,t),gap:e=>({gap:Cg(e)}),columnGap:(e,t)=>Gt(t,"columnGap",e),rowGap:(e,t)=>Gt(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!C(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>Ic(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>Ic(e??t.round,t,"borderRadius")};var Ng={fontSize:e=>xc(e)||e,fontFamily:e=>({fontFamily:yc(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})};var Bg={overflow:e=>({overflow:e,scrollBehavior:"smooth"}),cursor:(e,t,r,n)=>{if(!e)return;let o=n.assets&&n.assets[e];if(o&&o.content)e=`url(${o.content.src})`;else{let s=n.files&&n.files[e];s&&s.content&&(e=`url(${s.content.src})`)}return{cursor:e}},opacity:e=>e!=null?{opacity:String(e)}:void 0,visibility:e=>e!=null?{visibility:e}:void 0,pointerEvents:e=>e!=null?{pointerEvents:e}:void 0};var Vg={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>Ee(r,"k").k).join(" ")}},left:e=>Ee(e,"left"),top:e=>Ee(e,"top"),right:e=>Ee(e,"right"),bottom:e=>Ee(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Ee(r,"k").k);return{top:t[0],bottom:t[1]||t[0]}},horizontalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Ee(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};I();var gt=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},zg={theme:(e,t)=>{if(e)return t.themeModifier?Pt(e,`@${t.themeModifier}`):Pt(e)},color:(e,t)=>{let r=gt(t);if(e)return{color:De(e,r)}},background:(e,t)=>{let r=gt(t);if(e)return C(e)&&e.includes("gradient")?{background:Rc(e,r)}:{background:De(e,r)}},backgroundColor:(e,t)=>{let r=gt(t);if(e)return{backgroundColor:De(e,r)}},backgroundImage:(e,t,r,n)=>{let o=gt(t);if(!e)return;let s=n.assets&&n.assets[e];if(s&&s.content)e=s.content.src;else{let i=n.files&&n.files[e];i&&i.content&&(e=i.content.src)}return{backgroundImage:kg(e,o)}},textStroke:e=>({WebkitTextStroke:wg(e)}),outline:e=>({outline:lr(e)}),outlineOffset:(e,t)=>ee("outlineOffset",e,t),border:e=>({border:lr(e)}),borderColor:(e,t)=>{let r=gt(t);if(e)return{borderColor:De(e,r)}},borderTopColor:(e,t)=>{let r=gt(t);if(e)return{borderTopColor:De(e,r)}},borderBottomColor:(e,t)=>{let r=gt(t);if(e)return{borderBottomColor:De(e,r)}},borderLeftColor:(e,t)=>{let r=gt(t);if(e)return{borderLeftColor:De(e,r)}},borderRightColor:(e,t)=>{let r=gt(t);if(e)return{borderRightColor:De(e,r)}},borderLeft:e=>({borderLeft:lr(e)}),borderTop:e=>({borderTop:lr(e)}),borderRight:e=>({borderRight:lr(e)}),borderBottom:e=>({borderBottom:lr(e)}),shadow:(e,t)=>{let r=gt(t);if(e)return{boxShadow:Sg(e,r)}},boxShadow:(e,t)=>{if(!C(e))return;let[r,n]=e.split("!importan"),o=gt(t),s=n?" !important":"";return{boxShadow:Pc(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:Pc(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:lr(e)})};var Ci={transition:e=>({transition:Ag(e)}),transitionDuration:e=>({transitionDuration:$c(e)}),transitionDelay:e=>({transitionDelay:$c(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Rt(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};I();var Wg={flow:(e,t)=>{let r=t.reverse;if(!C(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(e,t)=>({display:"flex",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var Ug={area:e=>({gridArea:e}),template:e=>({gridTemplate:e}),templateAreas:e=>({gridTemplateAreas:e}),column:e=>({gridColumn:e}),columns:e=>({gridTemplateColumns:e}),templateColumns:e=>({gridTemplateColumns:e}),autoColumns:e=>({gridAutoColumns:e}),columnStart:e=>({gridColumnStart:e}),row:e=>({gridRow:e}),rows:e=>({gridTemplateRows:e}),templateRows:e=>({gridTemplateRows:e}),autoRows:e=>({gridAutoRows:e}),rowStart:e=>({gridRowStart:e}),autoFlow:e=>({gridAutoFlow:e})};var we={...Lg,...Mg,...Ng,...Bg,...Vg,...zg,...Ci,...Wg,...Ug};var Le=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);I();var C$=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,A$=(e,t,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=e.slice(1),s=n.designSystem.media[o],i=tt(t,r);if(!s)return{[e]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(C$),l=a?a[1]||a[2]:o,c={[`${s} &`]:i};if(l==="dark"||l==="light"){let u=n.designSystem?.scopeSelector||":root",d=u===":root"?":root:not([data-theme])":`${u}:not([data-theme])`;c[`@media (prefers-color-scheme: ${l})`]={[`${d} &`]:i}}return c},Dw=(e,t,r)=>({[e]:tt(t,r)}),Ai=(e,t,r)=>{let n=`&${e}`,o=tt(t,r);if(e.includes(",")&&o){let s={},i={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?i[a]=o[a]:s[a]=o[a];if(Object.keys(i).length){let a=n.split(",").map(c=>c.trim()),l={};Object.keys(s).length&&(l[n]=s);for(let c in i){let u=a.map(d=>`${d} ${c}`).join(", ");l[u]=i[c]}return l}}return{[n]:o}},Hg=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return E(r)?r.call(t,t):!!r},E$=(e,t,r)=>{let n=e.slice(1),o=Hg(n,r);if(o===void 0&&(o=!!r[n]),!!o)return tt(t,r)},O$=(e,t,r)=>({[e]:t}),T$=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=Hg(n,r);s!==void 0&&(o=s)}if(o)return tt(t,r)},P$=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=Hg(n,r);s!==void 0&&(o=s)}if(!o)return tt(t,r)},qg=(e,t)=>tt(e,t),Gg={"@":A$,":":Ai,"[":Ai,"*":Ai,"+":Ai,"~":Ai,"&":Dw,">":Dw,$:E$,"-":O$,".":T$,"!":P$};var Kg=_r(),Lw=(e,t,r)=>{let n=t?.context?.designSystem;n&&Ie(n);try{let o={},s={},i=(a,l)=>{if(r.unpack){o={...o,...l};return}o[a]=l};for(let a in e){let l=e[a];if(a==="class"&&t.call("isString",e.class)){let c=l.split(" ");if(c.length){let u=t.context.designSystem.class,d=c.reduce((f,p)=>ge(f,u[p]),{});o.designSystemClass=d}}else if(a==="true"){let c=le(l,t);ge(o,qg(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=E(c)?c(t,t.state,t.context):c;u&&i(a,u),!Kg&&w(o[a])&&(o[a].label=a)}else if(we[a]){let c=le(l,t);$(c)&&(c=c.reduce((d,f)=>ge(d,f),{}));let u=we[a](c,t,t.state,t.context);$(u)&&(u=u.reduce((d,f)=>ge(d,f),{})),u&&i(a,u),!Kg&&w(o[a])&&(o[a].label=a)}else if(Le.has(a)){let c=le(l,t);typeof c=="string"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),i(a,{[a]:c}),!Kg&&w(o[a])&&(o[a].label=a)}else s[a]=l}return[o,s]}finally{n&&$e()}},Mw=(e,t)=>{let r={};for(let n in e){let o=Gg[n.slice(0,1)];if(o){let s=o(n,e[n],t);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?Ke(r[i],s[i]):r[i]=s[i])}}return r},tt=(e,t,r={unpack:!0})=>{let[n,o]=Lw(e,t,r),s=Mw(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return cs(n,s);n._selectors=s}return n},R$=(e,t)=>{let r={};if(e.class)for(let n in e.class)r[n]=e.class[n](t);return r};I();var Nw=e=>{if(w(e))return tt(e,e)},$$=(e,t)=>{let r=Nw(e);return typeof t=="function"?t(r):$r(r)};I();function zw(e,t,r){let n=e?.context?.analyze;if(!n||!n.emit||t==="warn"&&!n.shouldCapture("warnings")||t==="error"&&!n.shouldCapture("errors"))return;let o=r.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:t==="error"?"error":"warning",level:t,hook:t==="error"?"el.error":"el.warn",element:{key:e.key!=null?String(e.key):null,name:e.__name||null,tag:e.tag||null},message:o||null,args:r})}function I$(...e){return zw(this,"warn",e),Gs.apply(this,e)}function F$(...e){return zw(this,"error",e),sn.apply(this,e)}var Bw={update:Si,remove:ki,getDB:Zs,getQuery:Js,getRootData:Us,getChildren:Ns,getPath:Bs,nextElement:Ks,previousElement:Xs,verbose:Xn,warn:I$,error:F$,variables:Ys,spotByPath:Ms,set(e,t){if(this.removeContent(),e!=null){let r=this.context?.__create;r&&r(e,this,"content",t)}},reset(e){let t=this.context?.__create;if(!t)return this;let r=this.parent,n=this.key,o=this.parse();return this.remove(),t(o,r,n,e)},lookup(e){let t=this.parent;for(;t;){if(typeof e=="function"){if(e(t))return t}else if(typeof e=="string"){if(t.key===e)return t;if(t[e]&&t[e].__ref)return t[e]}t=t.parent}return null},lookdown(e){let t=this.__ref;if(!t?.__children)return null;for(let r of t.__children){let n=this[r];if(!n)continue;if(typeof e=="function"){if(e(n))return n}else if(typeof e=="string"&&n.key===e)return n;let o=n.lookdown?.(e);if(o)return o}return null},lookdownAll(e,t=[]){let r=this.__ref;if(!r?.__children)return t;for(let n of r.__children){let o=this[n];o&&(typeof e=="function"?e(o)&&t.push(o):typeof e=="string"&&o.key===e&&t.push(o),o.lookdownAll?.(e,t))}return t},getRef(){return this.__ref},getRoot:Ws,getRootState:zs,getRootContext:Hs,getContext:qs,parse(e){let t={},r=e?new Set(e):null,n=this.__ref?.__exec;for(let o in this)if(!(o==="parent"||o==="node"||o==="__ref")&&!r?.has(o)){if(n&&n[o]!==void 0){t[o]=n[o];continue}typeof this[o]!="function"&&(t[o]=this[o])}return t},parseDeep(e){let t=this.parse(e),r=this.__ref;if(r?.__children)for(let n of r.__children)this[n]?.parseDeep&&(t[n]=this[n].parseDeep(e));return t},keys(){return Object.keys(this)},log(...e){if(e.length){let t={};for(let r of e)t[r]=this[r];console.log(t)}else console.log(this)},setProps(e,t){return this.update(e,t)},setNodeStyles(e){if(this.node?.style)for(let t in e){let r=e[t];if(r==null)continue;let n=t.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),o=String(r).replace(/\s*!important\s*$/,"");this.node.style.setProperty(n,o,"important")}},call(e,...t){let r=this.context,n=r?.methods?.[e]||r?.functions?.[e]||r?.utils?.[e]||this[e];if(typeof n=="function")return n.call(this,...t)},removeContent(){let e=this.__ref;if(!e?.__children)return;let t=this.content;if(t?.remove){t.remove(),delete this.content;let r=e.__children.indexOf("content");r!==-1&&e.__children.splice(r,1)}t?.node?.parentNode&&t.node.parentNode.removeChild(t.node)}},Vw=new WeakMap;function j$(e){if(!e)return Bw;let t=Vw.get(e);if(t)return t;t=Object.create(Bw);let r=e.methods;if(r)for(let n in r)t[n]=r[n];return Vw.set(e,t),t}function Ei(e){let t=j$(e.context);Object.setPrototypeOf(e,t)}I();Un();var D$=(e,t,r)=>{Object.defineProperty(e,t,{value:r,enumerable:!1,configurable:!0,writable:!0})},mt=(e,t)=>{if(je(t)){let o=t.__raw||t;t.toggle||Object.defineProperty(o,"toggle",{value:function(s,i={}){t[s]=!t[s]},enumerable:!1,configurable:!0}),t.set||Object.defineProperty(o,"set",{value:function(s,i={}){return t.clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&t.update(s,i),t},enumerable:!1,configurable:!0}),Object.defineProperty(o,"setByPath",{value:function(s,i,a={}){let l=s.split("."),c=t;for(let u=0;u<l.length-1;u++)c[l[u]]===void 0&&(c[l[u]]={}),c=c[l[u]];return c[l[l.length-1]]=i,t},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"getByPath",{value:function(s){let i=s.split("."),a=t;for(let l=0;l<i.length;l++){if(a==null)return;a=a[i[l]]}return a},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"removeByPath",{value:function(s,i={}){let a=s.split("."),l=t;for(let c=0;c<a.length-1;c++){if(l==null)return t;l=l[a[c]]}return l&&delete l[a[a.length-1]],t},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"reset",{value:function(s={}){let i=t.parse();return t.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"apply",{value:function(s,i={}){if(typeof s=="function"){let a=s(t);return t.update(a,i)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"applyFunction",{value:function(s,i={}){if(typeof s=="function")return s(t),t.update(t.parse(),i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"rootUpdate",{value:function(s,i={}){let a=t;for(;a?.parent&&je(a.parent);)a=a.parent;return a.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"parentUpdate",{value:function(s,i={}){if(t.parent)return t.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"quietReplace",{value:function(s,i={}){return t.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(o,"root")||Object.defineProperty(o,"root",{get:function(){let s=t;for(;s?.parent&&je(s.parent);)s=s.parent;return s},enumerable:!1,configurable:!0});return}if(!t||typeof t!="object")return;let r=()=>{for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&delete t[o]},n={update(o){if(!o||typeof o!="object")return t;for(let s in o)t[s]=o[s];return t},apply(o){if(typeof o!="function")return t;let s=o(t);return s?t.update(s):t},parse(){return{...t}},toggle(o){return t[o]=!t[o],t},set(o){if(!o||typeof o!="object")return t;r();for(let s in o)t[s]=o[s];return t},replace(o){return t.set(o)},clean(){return r(),t}};for(let o in n)typeof t[o]!="function"&&D$(t,o,n[o])};var Ww=function(e,t,r){return e.state=Yg(e,t,r),e.state},Yg=function(e,t,r){let{__ref:n}=e,o=e.state;if(o==null||o===!1){let s=t?.state||{};return mt(e,s),s}if(typeof o=="string")return n&&(n.__state=o),n.__stateType="string",L$(o,e,t);if(typeof o=="number"||typeof o=="boolean"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=at({value:o});return s.__element=e,t?.state&&(s.parent=t.state),mt(e,s),s}if(typeof o=="function"&&(o=o(e,t?.state)||{}),typeof o=="object"&&!je(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let s=at({...o});if(s.__element=e,!Object.getOwnPropertyDescriptor(s,"root")){let i=t?.state?.root||t?.state||s;Object.defineProperty(s,"root",{get:()=>i,enumerable:!1,configurable:!0})}return t?.state&&(s.parent=t.state,t.state.__children&&(t.state.__children[e.key]=s)),mt(e,s),typeof e.onStateCreated=="function"&&e.onStateCreated(e,s,e.context,r),s}return je(o)?(o.__element=e,o):t?.state||{}};function Xg(e,t){if(!t)return e;let r=t.split("/"),n=e;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function L$(e,t,r){if(!r?.state)return{};if(e===".")return r.state;if(e.startsWith("../")){let o=e.slice(3),s=r.state?.parent;return o&&s?Xg(s,o):s??r.state??{}}if(e.startsWith("~/")){let o=r.state;for(;o?.parent;)o=o.parent;let s=e.slice(2);return s?Xg(o,s):o??{}}let n=Xg(r.state,e);if(n&&typeof n=="object"&&!je(n)&&!Object.getOwnPropertyDescriptor(n,"root")){let o=r.state?.root||r.state;Object.defineProperty(n,"root",{get:()=>o,enumerable:!1,configurable:!0})}return n}I();var M$=["alert","alertdialog","application","article","banner","button","cell","checkbox","columnheader","combobox","complementary","contentinfo","definition","dialog","directory","document","feed","figure","form","grid","gridcell","group","heading","img","link","list","listbox","listitem","log","main","marquee","math","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","presentation","progressbar","radio","radiogroup","region","row","rowgroup","rowheader","scrollbar","search","searchbox","separator","slider","spinbutton","status","switch","tab","table","tablist","tabpanel","term","textbox","timer","toolbar","tooltip","tree","treegrid","treeitem"],Mc={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","hidden","id","lang","part","placeholder","slot","spellcheck","style","tabindex","title","translate","inert","radiogroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autocapitalize","autocorrect","autosave","color","itemprop","itemscope","itemtype","itemid","itemref","results","security","unselectable","is"],a:["accesskey","charset","coords","download","href","hreflang","name","rel","rev","shape","target","type"],aria:["aria-activedescendant","aria-atomic","aria-autocomplete","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],anchor:["download","href","hreflang","media","ping","rel","target","type","referrerpolicy"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["open"],del:["cite","datetime"],dialog:["open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["acceptcharset","action","autocomplete","enctype","method","name","novalidate","target","rel"],html:["manifest"],iframe:["allow","allowfullscreen","allowtransparency","frameborder","height","loading","marginheight","marginwidth","mozallowfullscreen","name","referrerpolicy","sandbox","scrolling","seamless","src","srcdoc","webkitallowfullscreen","width"],img:["alt","crossorigin","decoding","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alt","autocomplete","capture","checked","crossorigin","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","crossorigin","href","hreflang","integrity","media","imagesrcset","imagesizes","referrerpolicy","rel","sizes","type","charset"],map:["name"],menu:["type"],media:["autoplay","controls","currenttime","defaultmuted","defaultplaybackrate","loop","mediagroup","muted","playsinline","preload","src","volume"],meta:["charset","content","http-equiv","name","media"],meter:["form","high","low","max","min","optimum","value"],quote:["cite"],object:["classid","data","form","height","name","type","usemap","width","wmode"],ol:["reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["form","for","name"],param:["name","value"],progress:["max","value"],slot:["name"],script:["async","charset","crossorigin","defer","integrity","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","disabled","form","multiple","name","required","size","value","onchange"],source:["height","media","sizes","src","srcset","type","width"],style:["media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],textarea:["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","value","wrap"],td:["align","colspan","headers","rowspan","scope","abbr","height","width","valign"],th:["align","colspan","headers","rowspan","scope","abbr"],time:["datetime"],track:["default","kind","label","src","srclang"],video:["autoplay","controls","crossorigin","disablepictureinpicture","disableremoteplayback","height","loop","muted","playsinline","poster","preload","src","width"],svg:["className","class","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabindex","crossorigin","accent-height","accumulate","additive","alignment-baseline","allowReorder","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by","calcMode","cap-height","clip","clip-path","clipPathUnits","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy","edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired","fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","focusable","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fx","fy","g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits","hanging","href","horiz-adv-x","horiz-origin-x","ideographic","image-rendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local","marker-end","markerHeight","marker-mid","marker-start","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness","paint-order","panose-1","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage","tableValues","targetX","targetY","text-anchor","text-decoration","textLength","text-rendering","to","transform","u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em","v-alphabetic","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","v-hanging","v-ideographic","viewBox","viewTarget","visibility","v-mathematical","widths","word-spacing","writing-mode","x1","x2","x","xChannelSelector","x-height","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xmlns","xmlns:xlink","xml:space","y1","y2","y","yChannelSelector","z","zoomAndPan"]},Hw=["oncopy","oncut","onpaste","oncompositionend","oncompositionstart","oncompositionupdate","onfocus","onfocusin","onfocusout","onblur","onchange","onbeforeinput","oninput","onreset","onsubmit","oninvalid","onformdata","onload","onerror","ontoggle","onkeydown","onkeypress","onkeyup","onabort","oncanplay","oncanplaythrough","oncuechange","ondurationchange","onemptied","onencrypted","onended","onloadeddata","onloadedmetadata","onloadstart","onpause","onplay","onplaying","onprogress","onratechange","onseeked","onseeking","onstalled","onsuspend","ontimeupdate","onvolumechange","onwaiting","onauxclick","onclick","oncontextmenu","ondblclick","ondrag","ondragend","ondragenter","ondragexit","ondragleave","ondragover","ondragstart","ondrop","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onselect","onselectionchange","onselectstart","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ongotpointercapture","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onlostpointercapture","onscroll","onresize","onwheel","onanimationstart","onanimationend","onanimationiteration","ontransitionstart","ontransitionrun","ontransitionend","ontransitioncancel","onoutrostart","onoutroend","onintrostart","onintroend","onmessage","onmessageerror","onvisibilitychange","oncancel","onclose","onfullscreenchange","onfullscreenerror"],Qg=e=>e.startsWith("aria")&&e.length>4&&e.charCodeAt(4)>=65&&e.charCodeAt(4)<=90?"aria-"+e.charAt(4).toLowerCase()+e.slice(5).replace(/([A-Z])/g,t=>"-"+t.toLowerCase()):e.startsWith("data")&&e.length>4&&e.charCodeAt(4)>=65&&e.charCodeAt(4)<=90?"data-"+e.charAt(4).toLowerCase()+e.slice(5).replace(/([A-Z])/g,t=>"-"+t.toLowerCase()):null,Fr=(e,t)=>t.startsWith("aria-")||t.startsWith("data-")||Qg(t)||Mc.default.includes(t)?!0:Object.prototype.hasOwnProperty.call(Mc,e)?Mc[e].includes(t):!1,em=e=>{if(!C(e))return!1;let t=e.toLowerCase();return Hw.includes(t)},N$=(e,t,r)=>{let n={};for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)){if(r&&o in r)continue;if(o==="aria"&&t[o]&&typeof t[o]=="object"){for(let a in t[o])qe(t[o][a])&&(n["aria-"+a]=t[o][a]);continue}if(o==="data"&&t[o]&&typeof t[o]=="object"){for(let a in t[o])if(qe(t[o][a])){let l=a.replace(/([A-Z])/g,c=>"-"+c.toLowerCase());n["data-"+l]=t[o][a]}continue}let s=Fr(e,o),i=em(o);if(qe(t[o])&&(s||i)){let a=Qg(o)||o;n[a]=t[o]}}return n},B$=(e,t)=>{let r={};if(e.attr)for(let n in e.attr)r[n]=e.attr[n](t,t.state,t.context);if(e.aria&&typeof e.aria=="object")for(let n in e.aria){let o=e.aria[n];typeof o=="function"&&(r["aria-"+n]=o(t,t.state,t.context))}if(e.data&&typeof e.data=="object")for(let n in e.data){let o=e.data[n];if(typeof o=="function"){let s=n.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());r["data-"+s]=o(t,t.state,t.context)}}return r},Ir=(e,t)=>{let r=e.call("exec",t,e);if(r)return C(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r},Zg=(e,t)=>{let r=(e.preSrc||"")+(Ir(e,t)||"");if(!r)return;try{return new URL(r),r}catch{}let{context:n}=e;if(!n.files&&!n.assets)return r;if(r.startsWith("/assets/")){let o=r.slice(8),s=n.assets&&(n.assets[r]||n.assets[o]);return s&&s.content?s.content.src:r}if(r.startsWith("/files/")){let o=r.slice(7),s=n.files&&(n.files[r]||n.files[o]);return s&&s.content?s.content.src:r}if(n.assets){let o=n.assets[r];if(o&&o.content)return o.content.src}if(n.files){let o=n.files[r];if(o&&o.content)return o.content.src}return r},Jg={src:e=>Zg(e,e.src),href:e=>Ir(e,e.href),action:e=>Ir(e,e.action),poster:e=>Zg(e,e.poster),data:e=>Ir(e,e.data)},tm=e=>{let t=e.tag||"div",r={};for(let n in Jg)if(e[n]!==void 0&&Fr(t,n)){let o=Jg[n](e);o!==void 0&&(r[n]=o)}return r},Uw=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return E(r)?r.call(t,t):!!r},V$=(e,t,r)=>{if(e==="$"){let o=Uw(t,r);return o===void 0&&(o=!!r[t]),o}let n=r[t]===!0||r.state[t];if(!n){let o=Uw(t,r);o!==void 0&&(n=o)}return e==="."?!!n:!n},z$=new Set(["$",".","!"]),W$=(e,t,r)=>{let n={},o=(s,i,a,l)=>{let c=i;n[s]=u=>{if(V$(a,l,u))return E(c)?c(u):c}};for(let s in e){let i=s.charAt(0);if(!z$.has(i))continue;let a=e[s];if(!a||typeof a!="object")continue;let l=s.slice(1);for(let c in a){if(r&&c in r)continue;if(c==="aria"&&a[c]&&typeof a[c]=="object"){for(let p in a[c])o("aria-"+p,a[c][p],i,l);continue}if(c==="data"&&a[c]&&typeof a[c]=="object"){for(let p in a[c]){let h=p.replace(/([A-Z])/g,g=>"-"+g.toLowerCase());o("data-"+h,a[c][p],i,l)}continue}let u=Fr(t,c),d=em(c);if(!u&&!d)continue;let f=Qg(c)||c;o(f,a[c],i,l)}}return n};var U$=1;function so(e){return e.length>2&&e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90}function H$(e){return e.charAt(2).toLowerCase()+e.slice(3)}function q$(e){return e.toLowerCase()}function om(e,t){let r={...e};for(let n in t){let o=r[n],s=t[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=om(o,s):r[n]=s}return r}function $t(e,t,r,n={},o){if(e==null||e===!1)return null;(typeof e=="string"||typeof e=="number")&&(e={text:e});let s=Object.create(null);s.key=r||e.key||`_${U$++}`,s.parent=t||null,s.context=e.context||t?.context||n.context||{},s.context.__create||(s.context.__create=$t);let i=s.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:t?.__ref?.root||s,path:t?.__ref?.path?[...t.__ref.path,s.key]:[s.key]};if(r&&!e.extends&&!e.extend){let g=r.indexOf("_");if(g>0){let m=r.substring(0,g),y=s.context?.components;y&&(y[m]||y["smbls."+m])&&(e={extends:m,...e})}}wi(s,e,n);let a=new Set(["childProps","attr","style","scope","data"]),l=s.props&&typeof s.props=="object"?s.props:null;for(let g in e){if(g==="parent"||g==="node"||g==="__ref"||g==="extends"||g==="context"||g==="props")continue;let m=e[g],y=s[g],b=y&&m&&typeof y=="object"&&typeof m=="object"&&!Array.isArray(y)&&!Array.isArray(m)&&typeof y!="function"&&typeof m!="function";b&&g.charCodeAt(0)>=65&&g.charCodeAt(0)<=90?s[g]=om(y,m):b&&a.has(g)?s[g]={...y,...m}:s[g]=m}function c(g){for(let m in g){let y=g[m],b=s[m],x=b&&y&&typeof b=="object"&&typeof y=="object"&&!Array.isArray(b)&&!Array.isArray(y)&&typeof b!="function"&&typeof y!="function";x&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?s[m]=om(b,y):x&&a.has(m)?s[m]={...b,...y}:s[m]=y}}l&&c(l),e.props&&typeof e.props=="object"&&c(e.props),e.data!==void 0&&(s.data=e.data),e.classlist!==void 0&&(s.classlist=e.classlist),e.text!==void 0&&(s.text=e.text),e.html!==void 0&&(s.html=e.html);let u=s.scope&&typeof s.scope=="object"?s.scope:null,d=t?.scope,f=s.context&&typeof s.context.globalScope=="object"&&s.context.globalScope||null,p=d||(f?Object.create(f):null);if(e.scope!==void 0||u){let g=p?Object.create(p):{};u&&Object.assign(g,u),e.scope!==void 0&&Object.assign(g,e.scope),s.scope=g}else p&&(s.scope=Object.create(p));if(e.if!==void 0&&(s.if=e.if),Ei(s),G$(s,t,e),s.if!=null){let g=typeof s.if=="function"?s.if(s,s.state,s.context):s.if;i.__if=!!g}if(i.__if)typeof e.if=="function"&&(i.__ifInitialized=!0);else return t&&(t[s.key]=s),typeof e.if=="function"&&sm(s,{if:e.if}),s;s.tag||(s.tag=yn(s)),jr("Init",s,n);let h=s.node=bn(s);if(!h)return s;jr("AttachNode",s,n),h.setAttribute&&s.key&&h.setAttribute("data-key",s.key),h.setAttribute&&s.context?.scopeSelector&&s.context.scopeSelector!==":root"&&s.context.key&&s.key===s.context.key&&h.setAttribute("data-smbls-app",s.context.key),s.id&&h.setAttribute&&(h.id=s.id),sm(s,e),im(s),Gw(s),Kw(s,n);try{Xw(s,n)}catch(g){if(typeof console<"u"&&console.error){let m=s.__ref?.path?.join(".")||s.key||"<root>";console.error(`[smbls] createChildren failed at ${m}:`,g?.message||g,g?.stack?`
|
|
36
36
|
`+g.stack.split(`
|
|
37
37
|
`).slice(0,6).join(`
|
|
38
|
-
`):"")}}if(_m(s,t,o),t&&(t[s.key]=s,t.__ref?.__children&&(t.__ref.__children.includes(s.key)||t.__ref.__children.push(s.key))),typeof s.html=="function"&&s.node&&!s.node.innerHTML)try{let g=s.html(s,s.state,s.context);g!=null&&typeof g!="function"&&(s.node.innerHTML=g)}catch{}if(Br("Create",s,n),Br("Complete",s,n),Br("Render",s,n),Br("RenderRouter",s,n),typeof s.onFrame=="function"){let g=s.onFrame,m=s.context?.designSystem,y=()=>{if(s.node){if(s.node.isConnected){m&&Fe(m);try{g(s,s.state,s.context)}catch(b){console.error("[DOMQL] onFrame error:",b)}finally{m&&Ie()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function FL(e,t,r){let n=!t,o=r.state&&typeof r.state=="object"&&!Array.isArray(r.state)&&Object.keys(r.state).length===0,s=n&&o&&e.context?.state,i=r.state!==void 0&&!s?r.state:e.state&&!Me(e.state)?e.state:void 0;if(i==null){if(t?.state)e.state=t.state,xt(e,e.state);else if(e.context?.state){let a=e.context.state,l={...a},c=e.context?.polyglot;if(c?.translations){let u=a.lang||c.defaultLang||"en",d=c.translations[u];if(d&&typeof d=="object")for(let h in d)l[h]===void 0&&(l[h]=d[h]);let f=new Set(c.languages||[]);for(let h in c.translations)!f.has(h)&&l[h]===void 0&&(l[h]=c.translations[h])}e.state=Me(l)?l:ut(l),e.state.__element=e,e.state.root=e.state,xt(e,e.state)}else e.state={},Object.defineProperty(e.state,"root",{value:e.state,enumerable:!1,configurable:!0,writable:!0}),xt(e,e.state);return}if(typeof i=="string"){if(e.state=q_(i,t),e.state&&typeof e.state=="object"&&!Me(e.state)){let a=t?.state?.root||t?.state||e.state;Object.defineProperty(e.state,"root",{value:a,enumerable:!1,configurable:!0,writable:!0})}xt(e,e.state);return}if(typeof i=="function"){let a=i(e,t?.state);e.state=ut(a||{})}else e.state=ut({...i});e.state.__element=e,t?.state?(e.state.parent=t.state,e.state.root=t.state.root||t.state):e.state.root=e.state,xt(e,e.state)}function mm(e,t){if(!t)return e;let r=t.split("/"),n=e;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function q_(e,t){if(!t)return{};if(e===".")return t.state||{};if(e.startsWith("../")){let o=e.slice(3);return o?mm(t.state,o):t.state??{}}if(e.startsWith("~/")){let o=t.state?.root||t.state,s=e.slice(2);return s?mm(o,s):o??{}}if(t.state?.[e]!==void 0)return t.state[e];let r=mm(t.state,e);if(r!=null&&Object.keys(r).length>0)return r;let n=t.context?.polyglot;if(n?.translations){let o=t.state?.root?.lang||n.defaultLang||"en",s=n.translations[o];if(s?.[e]!==void 0)return s[e];if(n.translations[e]!==void 0)return n.translations[e]}return{}}function DL(e){let t=e.__ref,r=e.tag||"div",n=e.context?.designSystem,o=[],s=Object.keys(e);for(let i=0;i<s.length;i++){let a=s[i];if(typeof e[a]!="function"||Qe.has(a))continue;let l=a.charCodeAt(0);l>=65&&l<=90||ho(a)||Ce[a]||ze&&ze.has(a)||Lr(r,a)||o.push({prop:a,fn:e[a]})}for(let i=0;i<o.length;i++){let{prop:a,fn:l}=o[i];t.__exec[a]=l,Object.defineProperty(e,a,{get(){n&&Fe(n);try{return l(e,e.state,e.context)}catch{return}finally{n&&Ie()}},set(c){delete t.__exec[a],Object.defineProperty(e,a,{value:c,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function vm(e,t){let r=e.__ref;if(DL(e),typeof e.text=="function"){let o=e.text,s=Oe(()=>{try{let i=o(e,e.state,e.context);e.node&&i!=null&&typeof i!="function"&&typeof i!="object"&&(typeof i=="string"&&i.includes("{{")&&(i=en.call(e,i,e.state)),e.tag==="string"?e.node.nodeValue=i:e.node.textContent=i)}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}else if(typeof e.text=="string"&&e.text.includes("{{")){let o=e.text,s=Oe(()=>{let i=en.call(e,o,e.state);i!=null&&(e.text=i),e.node&&(e.tag==="string"?e.node.nodeValue=i??"":e.node.textContent=i??"")},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&typeof e[o]=="function"&&!Qe.has(o)&&!ho(o)&&!r.__exec[o]){if(Ce[o]){let s=e[o],i=o,a=Oe(()=>{let l=e.context?.designSystem;l&&Fe(l);try{let c=s(e,e.state,e.context),u=Ce[i](c,e,e.state,e.context);u&&e.node?po(e.node,u):e.node&&(i==="show"||i==="hide")&&(e.node.style.display="")}finally{l&&Ie()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}else if(ze&&ze.has(o)){let s=e[o],i=o,a=Oe(()=>{let l=e.context?.designSystem;l&&Fe(l);try{let c=s(e,e.state,e.context);e.node&&(c!=null?po(e.node,{[i]:c}):e.node.style[i]="")}finally{l&&Ie()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}}if(typeof t.html=="function"){let o=t.html,s=Oe(()=>{let i=o(e,e.state,e.context);e.node&&i!=null&&typeof i!="function"&&(e.node.innerHTML=i)},{depth:r.path.length});r.__effects.push(s),r.__exec.html=o}if(typeof t.value=="function"){let o=t.value,s=Oe(()=>{try{let i=o(e,e.state,e.context);if(!e.node||!("value"in e.node))return;let a=i==null?"":String(i);if(e.node.value===a)return;let l=typeof document<"u"&&document.activeElement===e.node,c=l&&typeof e.node.selectionStart=="number"?e.node.selectionStart:null,u=l&&typeof e.node.selectionEnd=="number"?e.node.selectionEnd:null;if(e.node.value=a,l&&c!=null&&u!=null)try{e.node.setSelectionRange(c,u)}catch{}}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.value=o}if(typeof t.style=="function"){let o=t.style,s=Oe(()=>{let i=o(e,e.state,e.context);po(e.node,i)},{depth:r.path.length});r.__effects.push(s),r.__exec.style=o}else if(e.style&&typeof e.style=="object")for(let o in e.style){let s=e.style[o];if(typeof s!="function")continue;let i=Oe(()=>{try{let a=s(e,e.state,e.context);e.node&&po(e.node,{[o]:a})}catch{}},{depth:r.path.length});r.__effects.push(i)}if(e.attr&&typeof e.attr=="object"){for(let o in e.attr)if(typeof e.attr[o]=="function"){let s=e.attr[o],i=o,a=Oe(()=>{try{let l=s(e,e.state,e.context);e.node?.setAttribute&&(l==null||l===!1?e.node.removeAttribute(i):typeof l!="function"&&typeof l!="object"&&e.node.setAttribute(i,l===!0?"":l))}catch{}},{depth:r.path.length});r.__effects.push(a)}}if(e.aria&&typeof e.aria=="object")for(let o in e.aria){let s=e.aria[o];if(typeof s!="function")continue;let i="aria-"+o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),a=Oe(()=>{try{let l=s(e,e.state,e.context);if(!e.node?.setAttribute)return;l==null||l===!1?e.node.removeAttribute(i):typeof l!="function"&&typeof l!="object"&&e.node.setAttribute(i,l===!0?"":l)}catch{}},{depth:r.path.length});r.__effects.push(a)}if(e.data&&typeof e.data=="object")for(let o in e.data){let s=e.data[o];if(typeof s!="function")continue;let i="data-"+o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),a=Oe(()=>{try{let l=s(e,e.state,e.context);if(!e.node?.setAttribute)return;l==null||l===!1?e.node.removeAttribute(i):typeof l!="function"&&typeof l!="object"&&e.node.setAttribute(i,l===!0?"":l)}catch{}},{depth:r.path.length});r.__effects.push(a)}let n=e.classlist&&typeof e.classlist=="object"&&!Array.isArray(e.classlist)?e.classlist:e.class&&typeof e.class=="object"&&!Array.isArray(e.class)?e.class:null;if(n)for(let o in n){let s=n[o];if(typeof s!="function")continue;let i=Oe(()=>{try{let a=s(e,e.state,e.context);if(!e.node?.classList)return;typeof a=="string"?e.node.classList.add(a):a?e.node.classList.add(o):e.node.classList.remove(o)}catch{}},{depth:r.path.length});r.__effects.push(i)}if(typeof t.if=="function"){let o=t.if,s=Oe(()=>{let i=o(e,e.state,e.context),a=r.__if;if(r.__if=!!i,a&&!r.__if&&e.node)e.node.remove();else if(!a&&r.__if)if(r.__ifInitialized){e.node||(e.node=_n(e));let l=e.parent,c=l?.node;if(c&&e.node){let u=null,d=Object.keys(l),f=d.indexOf(e.key);for(let h=f+1;h<d.length;h++){let p=l[d[h]];if(p?.node?.parentNode===c){u=p.node;break}}u?c.insertBefore(e.node,u):c.appendChild(e.node)}else _m(e,e.parent);xm(e)}else{if(r.__ifInitialized=!0,e.tag||(e.tag=Sn(e)),Br("Init",e,{}),e.node||(e.node=_n(e)),!e.node)return;Br("AttachNode",e,{}),e.node.setAttribute&&e.key&&e.node.setAttribute("data-key",e.key),e.id&&e.node.setAttribute&&(e.node.id=e.id);let l=t.if;delete t.if;try{vm(e,t)}finally{t.if=l}xm(e),U_(e),G_(e,{}),K_(e,{}),_m(e,e.parent)}},{depth:r.path.length});r.__effects.push(s)}for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||Qe.has(o)||typeof e[o]!="function")continue;let s=o.charCodeAt(0);if(s>=65&&s<=90||ho(o))continue;let i=e[o];r.__exec[o]=i;let a=e.tag||"div";if(Lr(a,o)&&!Ce[o]&&!(ze&&ze.has(o))){let l=o,c=Oe(()=>{try{let u=i(e,e.state,e.context);e.node?.setAttribute&&(u==null||u===!1?e.node.removeAttribute(l):typeof u!="function"&&typeof u!="object"&&(l==="src"&&"src"in e.node?e.node.src=u:e.node.setAttribute(l,u===!0?"":u)))}catch{}},{depth:r.path.length});r.__effects.push(c)}}ML(e)}function xm(e){let{node:t}=e;if(t){if(typeof e.text=="string"&&!e.text.includes("{{")?e.tag==="string"?t.nodeValue=e.text:t.textContent=e.text:typeof e.text=="number"&&(t.textContent=e.text),NL(e),typeof e.html=="string"&&(t.innerHTML=e.html),e.value!=null&&typeof e.value!="function"&&"value"in t){let r=String(e.value);t.value!==r&&(t.value=r)}if(e.style&&typeof e.style=="object"&&po(t,e.style),e.attr&&typeof e.attr=="object")for(let r in e.attr){let n=e.attr[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||t.setAttribute&&t.setAttribute(r,n===!0?"":n)}if(e.data&&typeof e.data=="object")for(let r in e.data){let n=e.data[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||t.dataset&&(t.dataset[r]=n===!0?"":n)}if(e.classlist||e.class){let r=e.classlist||e.class;if(typeof r=="string")r.split(" ").forEach(n=>n&&t.classList.add(n));else if(typeof r=="object")for(let n in r){let o=typeof r[n]=="function"?r[n](e,e.state,e.context):r[n];o&&t.classList.add(typeof o=="string"?o:n)}}}}function po(e,t){if(!e||!t||!e.style)return;let r=null;for(let n in t){let o=t[n];if(o!=null){if(n.charAt(0)==="&"&&typeof o=="object"){r||(r={}),r[n]=o;continue}try{let s=String(o),i=n.replace(/[A-Z]/g,u=>"-"+u.toLowerCase()),a=s.trim(),l=/\s*!important\s*$/.test(a),c=a.replace(/\s*!important\s*$/,"");e.style.setProperty(i,c,l?"important":"")}catch{}}}r&&BL(e,r)}var LL=0;function BL(e,t){let r=`_ds${LL++}`;e.classList.add(r);let n=e.ownerDocument,o=n.querySelector("style[data-smbls-scoped]");o||(o=n.createElement("style"),o.setAttribute("data-smbls-scoped",""),n.head.appendChild(o));let s="";for(let i in t){let a="."+r,l=i.replace(/&/g,a).split(",").map(u=>{let d=u.trim();return d.includes(a)?d:a+d}).join(", "),c=t[i];if(typeof c=="object"){let u="",d="";for(let f in c){let h=c[f];if(typeof h=="object"){let p=f.includes("&")?l.split(", ").map(m=>f.replace(/&/g,m)).join(", "):l.split(", ").map(m=>`${m} ${f}`).join(", "),g="";for(let m in h)g+=`${m.replace(/[A-Z]/g,y=>"-"+y.toLowerCase())}: ${h[m]};`;d+=`${p} { ${g} }
|
|
39
|
-
`}else u+=`${f.replace(/[A-Z]/g,
|
|
40
|
-
`),d&&(s+=d)}}s&&(o.textContent+=s)}function ML(e){let t=e.__ref;t.__conditionalRunners=[];for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let n=r.charAt(0);if(n!=="."&&n!=="!")continue;let o=r.slice(1);if(!o)continue;let s=e[r];if(!s||typeof s!="object")continue;let i=n==="!",a={lastMatch:!1,appliedKeys:null},l=()=>{if(!e.node)return;let u,d=e[o];if(d===void 0)if(e.state&&o in e.state)u=e.state[o];else{let p=e.context?.cases?.[o];if(p===void 0)return;u=typeof p=="function"?p.call(e,e):p}else typeof d=="function"?u=d(e,e.state,e.context):u=d;let f=i?!u:!!u;if(f===a.lastMatch)return;a.lastMatch=f;let h=e.context?.designSystem;h&&Fe(h);try{if(f){let p={};for(let m in s){if(!Object.prototype.hasOwnProperty.call(s,m))continue;let y=typeof s[m]=="function"?s[m](e,e.state,e.context):s[m];if(y!=null)if(Ce[m]){let b=Ce[m](y,e,e.state,e.context);if(b){let v=Array.isArray(b)?b:[b];for(let x of v)x&&Object.assign(p,x)}}else ze&&ze.has(m)&&(p[m]=y)}let g=Object.keys(p);g.length?(po(e.node,p),a.appliedKeys=g):a.appliedKeys=null}else if(a.appliedKeys){for(let p of a.appliedKeys)e.node.style[p]="";a.appliedKeys=null}}finally{h&&Ie()}};t.__conditionalRunners.push(l);let c=Oe(l,{depth:t.path.length});t.__effects.push(c)}}var ym=new WeakSet;function NL(e){let{node:t}=e;if(!t)return;if(ym.has(e)){console.error("[applyCssInProps] re-entry detected for element",e.key,"prop path:",e.__ref?.path);return}ym.add(e);let r=e.context?.designSystem;r&&Fe(r);try{let n={},o=!1;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||typeof e[s]=="function"||Qe.has(s))continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!ho(s)){if(Ce[s]){let a=e[s],l=Ce[s](a,e,e.state,e.context);if(l){if(Array.isArray(l))for(let c of l)c&&Object.assign(n,c);else Object.assign(n,l);o=!0}}else if(ze&&ze.has(s)){let a=e[s];a!=null&&typeof a!="object"&&(n[s]=a,o=!0)}else if(s.charCodeAt(0)===45){let a=e[s];a!=null&&typeof a!="object"&&(n[s]=a,o=!0)}else if(s.charAt(0)==="&"){let a=e[s];a&&typeof a=="object"&&(n[s]=a,o=!0)}else if(s.charAt(0)==="@"||s.charAt(0)===":"){let a=e[s];if(a&&typeof a=="object"){let l={};for(let c in a){let u=a[c];if(typeof u=="function"&&(u=u(e,e.state,e.context)),!(u==null||typeof u=="function"))if(Ce[c]){let d=Ce[c](u,e,e.state,e.context);if(d)if(Array.isArray(d))for(let f of d)f&&Object.assign(l,f);else Object.assign(l,d)}else l[c]=u}if(Object.keys(l).length){if(s.length>1&&s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")&&!s.startsWith("@supports")&&(s==="@dark"||s==="@light"||!e.context?.designSystem?.media?.[s.slice(1)])){let c={};for(let d in l){let f=l[d];c[d]=typeof f=="string"&&!f.includes("!important")?f+" !important":f}let u=s.slice(1);n[`[data-theme="${u}"] &`]=c}else{let c=s;if(s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")){let d=s.slice(1),f=e.context?.designSystem?.media?.[d]||e.context?.designSystem?.media?.[d];f&&(c=`@media ${f}`)}let u={};for(let d in l){let f=l[d];if(f&&typeof f=="object"&&!Array.isArray(f)){let h={};for(let g in f)if(Ce[g]){let m=Ce[g](f[g],e,e.state,e.context);if(m)if(Array.isArray(m))for(let y of m)y&&Object.assign(h,y);else Object.assign(h,m)}else h[g]=f[g];let p=d.startsWith(":")?"":" ";if(c.includes(",")){let g=c.split(",").map(m=>`${m.trim()}${p}${d}`).join(", ");n[g]=h}else n[`${c}${p}${d}`]=h}else u[d]=f}Object.keys(u).length&&(n[c]=u)}o=!0}o=!0}}}}if(o){n.display&&String(n.display).includes("!important")&&(t.style.setProperty("display",String(n.display).replace(/\s*!important\s*$/,""),"important"),delete n.display);let s=Dr(n,null,e.context?.cssPrefix);s&&t.classList&&s.split(" ").forEach(a=>a&&t.classList.add(a));let i=e.display!=null&&typeof e.display!="function"?e.display:e.hide===!0||e.show===!1?"none":null;if(i!=null){let a=n.display;if(a&&a!==i)if(i==="none"){let l=[];for(let c of t.classList)c.startsWith("_d-")&&c!=="_d-none"&&l.push(c);for(let c of l)t.classList.remove(c);t.classList.add("_d-none")}else t.style.display=e.display}}}finally{r&&Ie(),ym.delete(e)}}function U_(e){let{node:t}=e;if(!t||!t.setAttribute)return;if(e.aria&&typeof e.aria=="object")for(let o in e.aria){let s=e.aria[o];if(typeof s=="function"||typeof s=="object"||s==null||s===!1)continue;let i="aria-"+o.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());t.setAttribute(i,s===!0?"":s)}let r=gm(e);for(let o in r){let s=r[o];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&t.setAttribute(o,s===!0?"":s)}let n=e.tag||"div";for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||typeof e[o]=="function"||Qe.has(o)||o==="on"||r[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!ho(o)&&!(Ce[o]||ze&&ze.has(o))&&Lr(n,o)){let i=e[o];if(i==null||i===!1||(typeof i=="string"&&i.includes("{{")&&(i=en(i,e,e.state,e.context),e[o]=i),i==null||i===!1||typeof i=="function"||typeof i=="object"))continue;t.setAttribute(o,i===!0?"":i)}}}function G_(e,t){for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||!ho(r))continue;let n=e[r];if(typeof n=="string"&&/^[A-Za-z_$][\w$]*$/.test(n)){let s=n;n=function(i){return e.call(s,i)}}if(typeof n!="function")continue;let o=IL(r);kn.has(o)||ki(jL(o),e,n)}}function wm(e,t){let r={...e};for(let n in t){let o=r[n],s=t[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=wm(o,s):r[n]=s}return r}function Sm(e,t,r){if(!t||!e.node)return;let n=e.childExtends;if(Array.isArray(t)){let o=(e.context?.document||globalThis.document)?.createDocumentFragment();if(!o)return;let s=e.childProps,i=e.childrenAs;for(let a=0;a<t.length;a++){let l=t[a],c=l;(typeof l=="string"||typeof l=="number")&&(l={text:l});let u=s;if(typeof s=="function")try{u=s(e,l)}catch{u=null}if(i==="state"){let h=c;(typeof c=="string"||typeof c=="number")&&(h={value:c,text:c}),l=u?{...u,state:h}:{state:h}}else u&&(l=wm(u,l));if(n&&!l.ignoreChildExtends)if(l.extends){let h=Array.isArray(l.extends)?l.extends:[l.extends],p=Array.isArray(n)?n:[n];l={...l,extends:[...p,...h]}}else l={extends:n,...l};let d=l?.key||`${a}`,f=Lt(l,e,d,r);f?.node&&o.appendChild(f.node)}e.node.appendChild(o);return}if(typeof t=="string"){let o=q_(t,e);if(Array.isArray(o)){Sm(e,o,r);return}}if(typeof t=="object")for(let o in t){if(Qe.has(o))continue;let s=t[o];if(!(s==null||s===!1)){if((typeof s=="string"||typeof s=="number")&&(s={text:s}),e.childProps&&(s=wm(e.childProps,s)),n&&!s.ignoreChildExtends)if(s.extends){let i=Array.isArray(s.extends)?s.extends:[s.extends],a=Array.isArray(n)?n:[n];s={...s,extends:[...a,...i]}}else s={extends:n,...s};Lt(s,e,o,r)}}}function K_(e,t){let{children:r,content:n}=e,o=e.childExtends;if(typeof r=="function"){let i=r;r=i(e,e.state,e.context),e.children=r;let a=e.__ref,l=!1,c=Oe(()=>{let u=i(e,e.state,e.context);if(!l){l=!0;return}if(u!==e.children){if(e.children=u,Array.isArray(u)&&e.childrenAs==="state"){let d=e.childProps,f=[],h=new Map;for(let y=0;y<u.length;y++){let b=u[y],v=d;if(typeof d=="function")try{v=d(e,b)}catch{v=null}let x=v&&v.key||b&&b.key||`${y}`;f.push(x),h.set(x,{rawChild:b,childProps:v})}let p=new Set(f);for(let y=a.__children.length-1;y>=0;y--){let b=a.__children[y];if(!p.has(b)){let v=e[b];v?.remove&&v.remove(),delete e[b],a.__children.splice(y,1)}}let g=e.childExtends,m=(e.context?.document||globalThis.document)?.createDocumentFragment();for(let y of f){let b=h.get(y),v=b.rawChild,x=e[y];if(x&&x.state){if(v&&typeof v=="object"){let S=x.state;if(typeof S.replace=="function")S.replace(v);else if(typeof S.update=="function"){for(let z in S)if(!(z==="__element"||z==="root"||z==="parent"||z==="update")&&!Object.prototype.hasOwnProperty.call(v,z))try{S[z]=void 0}catch{}S.update(v)}else for(let z in v)S[z]=v[z]}continue}let w=v;(typeof v=="string"||typeof v=="number")&&(w={value:v,text:v});let E=b.childProps,A=E?{...E,state:w}:{state:w};if(g&&!A.ignoreChildExtends)if(A.extends){let S=Array.isArray(A.extends)?A.extends:[A.extends],z=Array.isArray(g)?g:[g];A={...A,extends:[...z,...S]}}else A={extends:g,...A};let C=Lt(A,e,y,t);C?.node&&m&&m.appendChild(C.node)}m&&m.childNodes.length&&e.node&&e.node.appendChild(m),a.__children=f;return}for(let d of[...a.__children]){let f=e[d];f?.remove&&f.remove(),delete e[d]}a.__children=[],Sm(e,u,t)}},{depth:a.path.length});a.__effects.push(c)}if(Sm(e,r||n,t),r||n)return;let s=e.context?.components||{};{let i=Object.keys(e);for(let a=0;a<i.length;a++){let l=i[a];if(!l.endsWith("Extends")||typeof e[l]!="string")continue;let c=l.slice(0,-7);if(!c||c.charCodeAt(0)<65||c.charCodeAt(0)>90)continue;let u={extends:e[l]};delete e[l];for(let d=a+1;d<i.length;d++){let f=i[d],h=f.charCodeAt(0);if(h>=65&&h<=90||Qe.has(f)||typeof e[f]=="function"&&(f.startsWith("on")||f.startsWith(".")))break;let p=e[f];p!==void 0&&(u[f]=p,delete e[f])}e[c]&&typeof e[c]=="object"?e[c]={...u,...e[c]}:e[c]=u}}for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i)||Qe.has(i)||typeof e[i]!="object"||e[i]===null)continue;let a=i.charCodeAt(0);if(a<65||a>90)continue;let l=e[i];if(!l.__ref){if(!l.extends&&!l.extend){let c=s[i]||s[`smbls.${i}`];c&&(l={extends:c,...l})}if(e.childProps&&(l={...e.childProps,...l}),o&&!l.ignoreChildExtends)if(l.extends){let c=Array.isArray(l.extends)?l.extends:[l.extends],u=Array.isArray(o)?o:[o];l={...l,extends:[...u,...c]}}else l={extends:o,...l};Lt(l,e,i,t)}}}function _m(e,t,r){let{node:n}=e;if(!n)return;let o=t?.node||(t?.nodeType?t:null);if(o)if(r?.position==="before"&&r.node)o.insertBefore(n,r.node);else if(r?.position==="after"&&r.node){let s=r.node.nextSibling;s?o.insertBefore(n,s):o.appendChild(n)}else o.appendChild(n)}function Br(e,t,r){let n=e.charAt(0).toLowerCase()+e.slice(1);t.context?.plugins?.length&&Ai(n,t,r);let o="on"+e,s=t[o];if(typeof s=="function"){let i=t.context?.designSystem;i&&Fe(i);try{if(s(t,t.state,t.context,r)===!1)return!1}catch(a){if(t.context?.plugins?.length&&Ai("error",t,{hook:o,error:a})||console.error(`[DOMQL] Lifecycle "${o}" error:`,a),t.context?.strictMode)throw a}finally{i&&Ie()}}return!0}var Z_={blue:"#213eb0",green:"#389d34",red:"#e15c55",yellow:"#EDCB38",orange:"#e97c16",transparent:"rgba(0, 0, 0, 0)",black:"black",gray:"#4e4e50",white:"white",title:["--gray 1 -168","--gray 1 +168"],caption:["--gray 1 -68","--gray 1 +68"],paragraph:["--gray 1 -42","--gray 1 +42"],disabled:["--gray 1 -26","--gray 1 +26"],line:["--gray 1 -16","--gray 1 +16"]},X_={"gradient-blue-light":`linear-gradient(to right,
|
|
38
|
+
`):"")}}if(cm(s,t,o),t&&(t[s.key]=s,t.__ref?.__children&&(t.__ref.__children.includes(s.key)||t.__ref.__children.push(s.key))),typeof s.html=="function"&&s.node&&!s.node.innerHTML)try{let g=s.html(s,s.state,s.context);g!=null&&typeof g!="function"&&(s.node.innerHTML=g)}catch{}if(jr("Create",s,n),jr("Complete",s,n),jr("Render",s,n),jr("RenderRouter",s,n),typeof s.onFrame=="function"){let g=s.onFrame,m=s.context?.designSystem,y=()=>{if(s.node){if(s.node.isConnected){m&&Ie(m);try{g(s,s.state,s.context)}catch(b){console.error("[DOMQL] onFrame error:",b)}finally{m&&$e()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function G$(e,t,r){let n=!t,o=r.state&&typeof r.state=="object"&&!Array.isArray(r.state)&&Object.keys(r.state).length===0,s=n&&o&&e.context?.state,i=r.state!==void 0&&!s?r.state:e.state&&!je(e.state)?e.state:void 0;if(i==null){if(t?.state)e.state=t.state,mt(e,e.state);else if(e.context?.state){let a=e.context.state,l={...a},c=e.context?.polyglot;if(c?.translations){let u=a.lang||c.defaultLang||"en",d=c.translations[u];if(d&&typeof d=="object")for(let p in d)l[p]===void 0&&(l[p]=d[p]);let f=new Set(c.languages||[]);for(let p in c.translations)!f.has(p)&&l[p]===void 0&&(l[p]=c.translations[p])}e.state=je(l)?l:at(l),e.state.__element=e,e.state.root=e.state,mt(e,e.state)}else e.state={},Object.defineProperty(e.state,"root",{value:e.state,enumerable:!1,configurable:!0,writable:!0}),mt(e,e.state);return}if(typeof i=="string"){if(e.state=qw(i,t),e.state&&typeof e.state=="object"&&!je(e.state)){let a=t?.state?.root||t?.state||e.state;Object.defineProperty(e.state,"root",{value:a,enumerable:!1,configurable:!0,writable:!0})}mt(e,e.state);return}if(typeof i=="function"){let a=i(e,t?.state);e.state=at(a||{})}else e.state=at({...i});e.state.__element=e,t?.state?(e.state.parent=t.state,e.state.root=t.state.root||t.state):e.state.root=e.state,mt(e,e.state)}function rm(e,t){if(!t)return e;let r=t.split("/"),n=e;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function qw(e,t){if(!t)return{};if(e===".")return t.state||{};if(e.startsWith("../")){let o=e.slice(3);return o?rm(t.state,o):t.state??{}}if(e.startsWith("~/")){let o=t.state?.root||t.state,s=e.slice(2);return s?rm(o,s):o??{}}if(t.state?.[e]!==void 0)return t.state[e];let r=rm(t.state,e);if(r!=null&&Object.keys(r).length>0)return r;let n=t.context?.polyglot;if(n?.translations){let o=t.state?.root?.lang||n.defaultLang||"en",s=n.translations[o];if(s?.[e]!==void 0)return s[e];if(n.translations[e]!==void 0)return n.translations[e]}return{}}function K$(e){let t=e.__ref,r=e.tag||"div",n=e.context?.designSystem,o=[],s=Object.keys(e);for(let i=0;i<s.length;i++){let a=s[i];if(typeof e[a]!="function"||Ze.has(a))continue;let l=a.charCodeAt(0);l>=65&&l<=90||so(a)||we[a]||Le&&Le.has(a)||Fr(r,a)||o.push({prop:a,fn:e[a]})}for(let i=0;i<o.length;i++){let{prop:a,fn:l}=o[i];t.__exec[a]=l,Object.defineProperty(e,a,{get(){n&&Ie(n);try{return l(e,e.state,e.context)}catch{return}finally{n&&$e()}},set(c){delete t.__exec[a],Object.defineProperty(e,a,{value:c,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function sm(e,t){let r=e.__ref;if(K$(e),typeof e.text=="function"){let o=e.text,s=Ae(()=>{try{let i=o(e,e.state,e.context);e.node&&i!=null&&typeof i!="function"&&typeof i!="object"&&(typeof i=="string"&&i.includes("{{")&&(i=Zr.call(e,i,e.state)),e.tag==="string"?e.node.nodeValue=i:e.node.textContent=i)}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}else if(typeof e.text=="string"&&e.text.includes("{{")){let o=e.text,s=Ae(()=>{let i=Zr.call(e,o,e.state);i!=null&&(e.text=i),e.node&&(e.tag==="string"?e.node.nodeValue=i??"":e.node.textContent=i??"")},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&typeof e[o]=="function"&&!Ze.has(o)&&!so(o)&&!r.__exec[o]){if(we[o]){let s=e[o],i=o,a=Ae(()=>{let l=e.context?.designSystem;l&&Ie(l);try{let c=s(e,e.state,e.context),u=we[i](c,e,e.state,e.context);u&&e.node?oo(e.node,u):e.node&&(i==="show"||i==="hide")&&(e.node.style.display="")}finally{l&&$e()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}else if(Le&&Le.has(o)){let s=e[o],i=o,a=Ae(()=>{let l=e.context?.designSystem;l&&Ie(l);try{let c=s(e,e.state,e.context);e.node&&(c!=null?oo(e.node,{[i]:c}):e.node.style[i]="")}finally{l&&$e()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}}if(typeof t.html=="function"){let o=t.html,s=Ae(()=>{let i=o(e,e.state,e.context);e.node&&i!=null&&typeof i!="function"&&(e.node.innerHTML=i)},{depth:r.path.length});r.__effects.push(s),r.__exec.html=o}if(typeof t.value=="function"){let o=t.value,s=Ae(()=>{try{let i=o(e,e.state,e.context);if(!e.node||!("value"in e.node))return;let a=i==null?"":String(i);if(e.node.value===a)return;let l=typeof document<"u"&&document.activeElement===e.node,c=l&&typeof e.node.selectionStart=="number"?e.node.selectionStart:null,u=l&&typeof e.node.selectionEnd=="number"?e.node.selectionEnd:null;if(e.node.value=a,l&&c!=null&&u!=null)try{e.node.setSelectionRange(c,u)}catch{}}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.value=o}if(typeof t.style=="function"){let o=t.style,s=Ae(()=>{let i=o(e,e.state,e.context);oo(e.node,i)},{depth:r.path.length});r.__effects.push(s),r.__exec.style=o}else if(e.style&&typeof e.style=="object")for(let o in e.style){let s=e.style[o];if(typeof s!="function")continue;let i=Ae(()=>{try{let a=s(e,e.state,e.context);e.node&&oo(e.node,{[o]:a})}catch{}},{depth:r.path.length});r.__effects.push(i)}if(e.attr&&typeof e.attr=="object"){for(let o in e.attr)if(typeof e.attr[o]=="function"){let s=e.attr[o],i=o,a=Ae(()=>{try{let l=s(e,e.state,e.context);e.node?.setAttribute&&(l==null||l===!1?e.node.removeAttribute(i):typeof l!="function"&&typeof l!="object"&&e.node.setAttribute(i,l===!0?"":l))}catch{}},{depth:r.path.length});r.__effects.push(a)}}if(e.aria&&typeof e.aria=="object")for(let o in e.aria){let s=e.aria[o];if(typeof s!="function")continue;let i="aria-"+o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),a=Ae(()=>{try{let l=s(e,e.state,e.context);if(!e.node?.setAttribute)return;l==null||l===!1?e.node.removeAttribute(i):typeof l!="function"&&typeof l!="object"&&e.node.setAttribute(i,l===!0?"":l)}catch{}},{depth:r.path.length});r.__effects.push(a)}if(e.data&&typeof e.data=="object")for(let o in e.data){let s=e.data[o];if(typeof s!="function")continue;let a="data-"+o.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),l=Ae(()=>{try{let c=s(e,e.state,e.context);if(!e.node?.setAttribute)return;c==null||c===!1?e.node.removeAttribute(a):typeof c!="function"&&typeof c!="object"&&e.node.setAttribute(a,c===!0?"":c)}catch{}},{depth:r.path.length});r.__effects.push(l)}let n=e.classlist&&typeof e.classlist=="object"&&!Array.isArray(e.classlist)?e.classlist:e.class&&typeof e.class=="object"&&!Array.isArray(e.class)?e.class:null;if(n)for(let o in n){let s=n[o];if(typeof s!="function")continue;let i=Ae(()=>{try{let a=s(e,e.state,e.context);if(!e.node?.classList)return;typeof a=="string"?e.node.classList.add(a):a?e.node.classList.add(o):e.node.classList.remove(o)}catch{}},{depth:r.path.length});r.__effects.push(i)}if(typeof t.if=="function"){let o=t.if,s=Ae(()=>{let i=o(e,e.state,e.context),a=r.__if;if(r.__if=!!i,a&&!r.__if&&e.node)e.node.remove();else if(!a&&r.__if)if(r.__ifInitialized){e.node||(e.node=bn(e));let l=e.parent,c=l?.node;if(c&&e.node){let u=null,d=Object.keys(l),f=d.indexOf(e.key);for(let p=f+1;p<d.length;p++){let h=l[d[p]];if(h?.node?.parentNode===c){u=h.node;break}}u?c.insertBefore(e.node,u):c.appendChild(e.node)}else cm(e,e.parent);im(e)}else{if(r.__ifInitialized=!0,e.tag||(e.tag=yn(e)),jr("Init",e,{}),e.node||(e.node=bn(e)),!e.node)return;jr("AttachNode",e,{}),e.node.setAttribute&&e.key&&e.node.setAttribute("data-key",e.key),e.id&&e.node.setAttribute&&(e.node.id=e.id);let l=t.if;delete t.if;try{sm(e,t)}finally{t.if=l}im(e),Gw(e),Kw(e,{}),Xw(e,{}),cm(e,e.parent)}},{depth:r.path.length});r.__effects.push(s)}for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||Ze.has(o)||typeof e[o]!="function")continue;let s=o.charCodeAt(0);if(s>=65&&s<=90||so(o))continue;let i=e[o];r.__exec[o]=i;let a=e.tag||"div";if(Fr(a,o)&&!we[o]&&!(Le&&Le.has(o))){let l=o,c=Ae(()=>{try{let u=i(e,e.state,e.context);e.node?.setAttribute&&(u==null||u===!1?e.node.removeAttribute(l):typeof u!="function"&&typeof u!="object"&&(l==="src"&&"src"in e.node?e.node.src=u:e.node.setAttribute(l,u===!0?"":u)))}catch{}},{depth:r.path.length});r.__effects.push(c)}}Z$(e)}function im(e){let{node:t}=e;if(t){if(typeof e.text=="string"&&!e.text.includes("{{")?e.tag==="string"?t.nodeValue=e.text:t.textContent=e.text:typeof e.text=="number"&&(t.textContent=e.text),J$(e),typeof e.html=="string"&&(t.innerHTML=e.html),e.value!=null&&typeof e.value!="function"&&"value"in t){let r=String(e.value);t.value!==r&&(t.value=r)}if(e.style&&typeof e.style=="object"&&oo(t,e.style),e.attr&&typeof e.attr=="object")for(let r in e.attr){let n=e.attr[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||t.setAttribute&&t.setAttribute(r,n===!0?"":n)}if(e.data&&typeof e.data=="object")for(let r in e.data){let n=e.data[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||t.dataset&&(t.dataset[r]=n===!0?"":n)}if(e.classlist||e.class){let r=e.classlist||e.class;if(typeof r=="string")r.split(" ").forEach(n=>n&&t.classList.add(n));else if(typeof r=="object")for(let n in r){let o=typeof r[n]=="function"?r[n](e,e.state,e.context):r[n];o&&t.classList.add(typeof o=="string"?o:n)}}}}function oo(e,t){if(!e||!t||!e.style)return;let r=null;for(let n in t){let o=t[n];if(o!=null){if(n.charAt(0)==="&"&&typeof o=="object"){r||(r={}),r[n]=o;continue}try{let s=String(o),i=n.replace(/[A-Z]/g,u=>"-"+u.toLowerCase()),a=s.trim(),l=/\s*!important\s*$/.test(a),c=a.replace(/\s*!important\s*$/,"");e.style.setProperty(i,c,l?"important":"")}catch{}}}r&&Y$(e,r)}var X$=0;function Y$(e,t){let r=`_ds${X$++}`;e.classList.add(r);let n=e.ownerDocument,o=n.querySelector("style[data-smbls-scoped]");o||(o=n.createElement("style"),o.setAttribute("data-smbls-scoped",""),n.head.appendChild(o));let s="";for(let i in t){let a="."+r,l=i.replace(/&/g,a).split(",").map(u=>{let d=u.trim();return d.includes(a)?d:a+d}).join(", "),c=t[i];if(typeof c=="object"){let u="",d="";for(let f in c){let p=c[f];if(typeof p=="object"){let h=f.includes("&")?l.split(", ").map(m=>f.replace(/&/g,m)).join(", "):l.split(", ").map(m=>`${m} ${f}`).join(", "),g="";for(let m in p)g+=`${m.replace(/[A-Z]/g,y=>"-"+y.toLowerCase())}: ${p[m]};`;d+=`${h} { ${g} }
|
|
39
|
+
`}else u+=`${f.replace(/[A-Z]/g,h=>"-"+h.toLowerCase())}: ${p};`}u&&(s+=`${l} { ${u} }
|
|
40
|
+
`),d&&(s+=d)}}s&&(o.textContent+=s)}function Z$(e){let t=e.__ref;t.__conditionalRunners=[];for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let n=r.charAt(0);if(n!=="."&&n!=="!")continue;let o=r.slice(1);if(!o)continue;let s=e[r];if(!s||typeof s!="object")continue;let i=n==="!",a={lastMatch:!1,appliedKeys:null},l=()=>{if(!e.node)return;let u,d=e[o];if(d===void 0)if(e.state&&o in e.state)u=e.state[o];else{let h=e.context?.cases?.[o];if(h===void 0)return;u=typeof h=="function"?h.call(e,e):h}else typeof d=="function"?u=d(e,e.state,e.context):u=d;let f=i?!u:!!u;if(f===a.lastMatch)return;a.lastMatch=f;let p=e.context?.designSystem;p&&Ie(p);try{if(f){let h={};for(let m in s){if(!Object.prototype.hasOwnProperty.call(s,m))continue;let y=typeof s[m]=="function"?s[m](e,e.state,e.context):s[m];if(y!=null)if(we[m]){let b=we[m](y,e,e.state,e.context);if(b){let x=Array.isArray(b)?b:[b];for(let v of x)v&&Object.assign(h,v)}}else Le&&Le.has(m)&&(h[m]=y)}let g=Object.keys(h);g.length?(oo(e.node,h),a.appliedKeys=g):a.appliedKeys=null}else if(a.appliedKeys){for(let h of a.appliedKeys)e.node.style[h]="";a.appliedKeys=null}}finally{p&&$e()}};t.__conditionalRunners.push(l);let c=Ae(l,{depth:t.path.length});t.__effects.push(c)}}var nm=new WeakSet;function J$(e){let{node:t}=e;if(!t)return;if(nm.has(e)){console.error("[applyCssInProps] re-entry detected for element",e.key,"prop path:",e.__ref?.path);return}nm.add(e);let r=e.context?.designSystem;r&&Ie(r);try{let n={},o=!1;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||typeof e[s]=="function"||Ze.has(s))continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!so(s)){if(we[s]){let a=e[s],l=we[s](a,e,e.state,e.context);if(l){if(Array.isArray(l))for(let c of l)c&&Object.assign(n,c);else Object.assign(n,l);o=!0}}else if(Le&&Le.has(s)){let a=e[s];a!=null&&typeof a!="object"&&(n[s]=a,o=!0)}else if(s.charCodeAt(0)===45){let a=e[s];a!=null&&typeof a!="object"&&(n[s]=a,o=!0)}else if(s.charAt(0)==="&"){let a=e[s];a&&typeof a=="object"&&(n[s]=a,o=!0)}else if(s.charAt(0)==="@"||s.charAt(0)===":"){let a=e[s];if(a&&typeof a=="object"){let l={};for(let c in a){let u=a[c];if(typeof u=="function"&&(u=u(e,e.state,e.context)),!(u==null||typeof u=="function"))if(we[c]){let d=we[c](u,e,e.state,e.context);if(d)if(Array.isArray(d))for(let f of d)f&&Object.assign(l,f);else Object.assign(l,d)}else l[c]=u}if(Object.keys(l).length){if(s.length>1&&s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")&&!s.startsWith("@supports")&&(s==="@dark"||s==="@light"||!e.context?.designSystem?.media?.[s.slice(1)])){let u={};for(let f in l){let p=l[f];u[f]=typeof p=="string"&&!p.includes("!important")?p+" !important":p}let d=s.slice(1);n[`[data-theme="${d}"] &`]=u}else{let u=s;if(s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")){let f=s.slice(1),p=e.context?.designSystem?.media?.[f]||e.context?.designSystem?.media?.[f];p&&(u=`@media ${p}`)}let d={};for(let f in l){let p=l[f];if(p&&typeof p=="object"&&!Array.isArray(p)){let h={};for(let m in p)if(we[m]){let y=we[m](p[m],e,e.state,e.context);if(y)if(Array.isArray(y))for(let b of y)b&&Object.assign(h,b);else Object.assign(h,y)}else h[m]=p[m];let g=f.startsWith(":")?"":" ";if(u.includes(",")){let m=u.split(",").map(y=>`${y.trim()}${g}${f}`).join(", ");n[m]=h}else n[`${u}${g}${f}`]=h}else d[f]=p}Object.keys(d).length&&(n[u]=d)}o=!0}o=!0}}}}if(o){n.display&&String(n.display).includes("!important")&&(t.style.setProperty("display",String(n.display).replace(/\s*!important\s*$/,""),"important"),delete n.display);let s=$r(n,null,e.context?.cssPrefix);s&&t.classList&&s.split(" ").forEach(a=>a&&t.classList.add(a));let i=e.display!=null&&typeof e.display!="function"?e.display:e.hide===!0||e.show===!1?"none":null;if(i!=null){let a=n.display;if(a&&a!==i)if(i==="none"){let l=[];for(let c of t.classList)c.startsWith("_d-")&&c!=="_d-none"&&l.push(c);for(let c of l)t.classList.remove(c);t.classList.add("_d-none")}else t.style.display=e.display}}}finally{r&&$e(),nm.delete(e)}}function Gw(e){let{node:t}=e;if(!t||!t.setAttribute)return;if(e.aria&&typeof e.aria=="object")for(let o in e.aria){let s=e.aria[o];if(typeof s=="function"||typeof s=="object"||s==null||s===!1)continue;let i="aria-"+o.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());t.setAttribute(i,s===!0?"":s)}let r=tm(e);for(let o in r){let s=r[o];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&t.setAttribute(o,s===!0?"":s)}let n=e.tag||"div";for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||typeof e[o]=="function"||Ze.has(o)||o==="on"||r[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!so(o)&&!(we[o]||Le&&Le.has(o))&&Fr(n,o)){let i=e[o];if(i==null||i===!1||(typeof i=="string"&&i.includes("{{")&&(i=Zr(i,e,e.state,e.context),e[o]=i),i==null||i===!1||typeof i=="function"||typeof i=="object"))continue;t.setAttribute(o,i===!0?"":i)}}}function Kw(e,t){for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||!so(r))continue;let n=e[r];if(typeof n=="string"&&/^[A-Za-z_$][\w$]*$/.test(n)){let s=n;n=function(a){return e.call(s,a)}}if(typeof n!="function")continue;let o=H$(r);xn.has(o)||_i(q$(o),e,n)}}function am(e,t){let r={...e};for(let n in t){let o=r[n],s=t[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=am(o,s):r[n]=s}return r}function lm(e,t,r){if(!t||!e.node)return;let n=e.childExtends;if(Array.isArray(t)){let s=(e.context?.document||globalThis.document)?.createDocumentFragment();if(!s)return;let i=e.childProps,a=e.childrenAs;for(let l=0;l<t.length;l++){let c=t[l],u=c;(typeof c=="string"||typeof c=="number")&&(c={text:c});let d=i;if(typeof i=="function")try{d=i(e,c)}catch{d=null}if(a==="state"){let h=u;(typeof u=="string"||typeof u=="number")&&(h={value:u,text:u}),c=d?{...d,state:h}:{state:h}}else d&&(c=am(d,c));if(n&&!c.ignoreChildExtends)if(c.extends){let h=Array.isArray(c.extends)?c.extends:[c.extends],g=Array.isArray(n)?n:[n];c={...c,extends:[...g,...h]}}else c={extends:n,...c};let f=c?.key||`${l}`,p=$t(c,e,f,r);p?.node&&s.appendChild(p.node)}e.node.appendChild(s);return}if(typeof t=="string"){let o=qw(t,e);if(Array.isArray(o)){lm(e,o,r);return}}if(typeof t=="object")for(let o in t){if(Ze.has(o))continue;let s=t[o];if(!(s==null||s===!1)){if((typeof s=="string"||typeof s=="number")&&(s={text:s}),e.childProps&&(s=am(e.childProps,s)),n&&!s.ignoreChildExtends)if(s.extends){let i=Array.isArray(s.extends)?s.extends:[s.extends],a=Array.isArray(n)?n:[n];s={...s,extends:[...a,...i]}}else s={extends:n,...s};$t(s,e,o,r)}}}function Xw(e,t){let{children:r,content:n}=e,o=e.childExtends;if(typeof r=="function"){let i=r;r=i(e,e.state,e.context),e.children=r;let a=e.__ref,l=!1,c=Ae(()=>{let u=i(e,e.state,e.context);if(!l){l=!0;return}if(u===e.children)return;if(e.children=u,Array.isArray(u)&&e.childrenAs==="state"){let p=e.childProps,h=[],g=new Map;for(let v=0;v<u.length;v++){let _=u[v],S=p;if(typeof p=="function")try{S=p(e,_)}catch{S=null}let O=S&&S.key||_&&_.key||`${v}`;h.push(O),g.set(O,{rawChild:_,childProps:S})}let m=new Set(h);for(let v=a.__children.length-1;v>=0;v--){let _=a.__children[v];if(!m.has(_)){let S=e[_];S?.remove&&S.remove(),delete e[_],a.__children.splice(v,1)}}let y=e.childExtends,x=(e.context?.document||globalThis.document)?.createDocumentFragment();for(let v of h){let _=g.get(v),S=_.rawChild,O=e[v];if(O&&O.state){if(S&&typeof S=="object"){let z=O.state;if(typeof z.replace=="function")z.replace(S);else if(typeof z.update=="function"){for(let N in z)if(!(N==="__element"||N==="root"||N==="parent"||N==="update")&&!Object.prototype.hasOwnProperty.call(S,N))try{z[N]=void 0}catch{}z.update(S)}else for(let N in S)z[N]=S[N]}continue}let T=S;(typeof S=="string"||typeof S=="number")&&(T={value:S,text:S});let k=_.childProps,D=k?{...k,state:T}:{state:T};if(y&&!D.ignoreChildExtends)if(D.extends){let z=Array.isArray(D.extends)?D.extends:[D.extends],N=Array.isArray(y)?y:[y];D={...D,extends:[...N,...z]}}else D={extends:y,...D};let te=$t(D,e,v,t);te?.node&&x&&x.appendChild(te.node)}x&&x.childNodes.length&&e.node&&e.node.appendChild(x),a.__children=h;return}for(let p of[...a.__children]){let h=e[p];h?.remove&&h.remove(),delete e[p]}a.__children=[],lm(e,u,t)},{depth:a.path.length});a.__effects.push(c)}if(lm(e,r||n,t),r||n)return;let s=e.context?.components||{};{let i=Object.keys(e);for(let a=0;a<i.length;a++){let l=i[a];if(!l.endsWith("Extends")||typeof e[l]!="string")continue;let c=l.slice(0,-7);if(!c||c.charCodeAt(0)<65||c.charCodeAt(0)>90)continue;let u={extends:e[l]};delete e[l];for(let d=a+1;d<i.length;d++){let f=i[d],p=f.charCodeAt(0);if(p>=65&&p<=90||Ze.has(f)||typeof e[f]=="function"&&(f.startsWith("on")||f.startsWith(".")))break;let h=e[f];h!==void 0&&(u[f]=h,delete e[f])}e[c]&&typeof e[c]=="object"?e[c]={...u,...e[c]}:e[c]=u}}for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i)||Ze.has(i)||typeof e[i]!="object"||e[i]===null)continue;let a=i.charCodeAt(0);if(a<65||a>90)continue;let l=e[i];if(!l.__ref){if(!l.extends&&!l.extend){let c=s[i]||s[`smbls.${i}`];c&&(l={extends:c,...l})}if(e.childProps&&(l={...e.childProps,...l}),o&&!l.ignoreChildExtends)if(l.extends){let c=Array.isArray(l.extends)?l.extends:[l.extends],u=Array.isArray(o)?o:[o];l={...l,extends:[...u,...c]}}else l={extends:o,...l};$t(l,e,i,t)}}}function cm(e,t,r){let{node:n}=e;if(!n)return;let o=t?.node||(t?.nodeType?t:null);if(o)if(r?.position==="before"&&r.node)o.insertBefore(n,r.node);else if(r?.position==="after"&&r.node){let s=r.node.nextSibling;s?o.insertBefore(n,s):o.appendChild(n)}else o.appendChild(n)}function jr(e,t,r){let n=e.charAt(0).toLowerCase()+e.slice(1);t.context?.plugins?.length&&Ct(n,t,r);let o="on"+e,s=t[o];if(typeof s=="function"){let i=t.context?.designSystem;i&&Ie(i);try{if(s(t,t.state,t.context,r)===!1)return!1}catch(a){if(t.context?.plugins?.length&&Ct("error",t,{hook:o,error:a})||console.error(`[DOMQL] Lifecycle "${o}" error:`,a),t.context?.strictMode)throw a}finally{i&&$e()}}return!0}var Yw={blue:"#213eb0",green:"#389d34",red:"#e15c55",yellow:"#EDCB38",orange:"#e97c16",transparent:"rgba(0, 0, 0, 0)",black:"black",gray:"#4e4e50",white:"white",title:["--gray 1 -168","--gray 1 +168"],caption:["--gray 1 -68","--gray 1 +68"],paragraph:["--gray 1 -42","--gray 1 +42"],disabled:["--gray 1 -26","--gray 1 +26"],line:["--gray 1 -16","--gray 1 +16"]},Zw={"gradient-blue-light":`linear-gradient(to right,
|
|
41
41
|
rgba(4, 116, 242, 1),
|
|
42
42
|
rgba(0, 48, 103, 1)
|
|
43
43
|
)`,"gradient-blue-dark":`linear-gradient(to right,
|
|
@@ -63,48 +63,48 @@ FROM ${a}${c}`},nD=e=>{let t=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;
|
|
|
63
63
|
#1E54F0 36%,
|
|
64
64
|
#8B4CCA 69%,
|
|
65
65
|
#C66894 100%
|
|
66
|
-
)`};var zL={primary:{"@dark":{color:"white",background:"blue",".color-only":{color:"blue"},".inactive":{background:"gray+16"},".gradient":{color:"white",background:"gradient-blue"}},"@light":{color:"white",background:"gradient-blue",".color-only":{color:"blue"},".gradient":{color:"white",background:"gradient-colorful"}}},secondary:{"@dark":{color:"white",background:"green",".color-only":{color:"green"}},"@light":{color:"white",background:"green",".color-only":{color:"green"}},".child":"--primary"},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light",":hover":{color:"gray=95",background:"gradient-light-active"},":focus":{color:"gray=120",background:"gradient-light-active"},":active":{color:"gray=120",background:"gradient-light-active"},".active":{color:"gray=120",background:"gradient-light-active"}},"@light":{color:"gray3",background:"gradient-dark",":hover":{color:"gray1",background:"gradient-dark-active"},":active":{color:"gray1",background:"gradient-dark-active"},".active":{color:"gray1",background:"gradient-dark-active"}}}},WL={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},HL={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"},".light":{color:"white",background:"gray3"},".dark":{color:"white",background:"black.35"}},card:{"@light":{background:"gray.975+150"},"@dark":{color:"white",background:"gray.975-56"},".child":{color:"white",background:"gray3"},".secondary":{color:"white",background:"gradient-blue-dark",".child":{color:"white",background:"black.35"}}},dialog:{"@dark":{color:"white",background:"gray.92",".helper":{color:"white",background:"black"}},"@light":{color:"currentColor",background:"gray.1"}}},Y_={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...zL,...WL,...HL,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var J_={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var Q_={ratio:1.618,subSequence:!0};var ek={SourceSans:[{url:""}]},tk={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif",metrics:{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3}}};var rk={symbols:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',logo:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',arrowDownCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-circle"><circle cx="12" cy="12" r="10"/><path d="M8 12l4 4 4-4M12 8v8"/></svg>',arrowDownLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-left"><path d="M17 7L7 17M17 17H7V7"/></svg>',arrowDownRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-right"><path d="M7 7l10 10M17 7v10H7"/></svg>',arrowDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down"><path d="M12 5v14M19 12l-7 7-7-7"/></svg>',arrowLeftCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left-circle"><circle cx="12" cy="12" r="10"/><path d="M12 8l-4 4 4 4M16 12H8"/></svg>',arrowLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>',arrowRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><path d="M5 12h14M12 5l7 7-7 7"/></svg>',arrowRightCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right-circle"><circle cx="12" cy="12" r="10"/><path d="M12 16l4-4-4-4M8 12h8"/></svg>',arrowUpCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-circle"><circle cx="12" cy="12" r="10"/><path d="M16 12l-4-4-4 4M12 16V8"/></svg>',arrowUpLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-left"><path d="M17 17L7 7M7 17V7h10"/></svg>',arrowUpRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-right"><path d="M7 17L17 7M7 7h10v10"/></svg>',arrowUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up"><path d="M12 19V5M5 12l7-7 7 7"/></svg>',checkCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 11-5.93-9.14"/><path d="M22 4L12 14.01l-3-3"/></svg>',check:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"><path d="M20 6L9 17l-5-5"/></svg>',chevronDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><path d="M6 9l6 6 6-6"/></svg>',chevronLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-left"><path d="M15 18l-6-6 6-6"/></svg>',chevronRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><path d="M9 18l6-6-6-6"/></svg>',chevronUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-up"><path d="M18 15l-6-6-6 6"/></svg>',copy:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-copy"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>',eyeOff:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye-off"><path d="M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24M1 1l22 22"/></svg>',eye:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>',info:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>',lock:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-lock"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0110 0v4"/></svg>',minus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-minus"><path d="M5 12h14"/></svg>',sun:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/></svg>',moon:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg>',moreHorizontal:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-horizontal"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg>',moreVertical:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-vertical"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></svg>',send:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-send"><path d="M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"/></svg>',smile:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-smile"><circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01"/></svg>',search:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"/><path d="M21 21l-4.35-4.35"/></svg>',upload:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-upload"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12"/></svg>',video:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-video"><path d="M23 7l-7 5 7 5V7z"/><rect x="1" y="5" width="15" height="14" rx="2" ry="2"/></svg>',x:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><path d="M18 6L6 18M6 6l12 12"/></svg>',star:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>',plus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus"><path d="M12 5v14M5 12h14"/></svg>'};var nk={tv:"(min-width: 2780px)",screenL:"(max-width: 1920px)","screenL<":"(min-width: 1920px)",screenM:"(max-width: 1680px)","screenM<":"(min-width: 1680px)",screenS:"(max-width: 1440px)","screenS<":"(min-width: 1440px)",tabletL:"(max-width: 1366px)","tabletL<":"(min-width: 1366px)",tabletM:"(max-width: 1280px)","tabletM<":"(min-width: 1280px)",tabletS:"(max-width: 1024px)","tabletS<":"(min-width: 1024px)",mobileL:"(max-width: 768px)","mobileL<":"(min-width: 768px)",mobileM:"(max-width: 560px)","mobileM<":"(min-width: 560px)",mobileS:"(max-width: 480px)","mobileS<":"(min-width: 480px)",mobileXS:"(max-width: 375px)","mobileXS<":"(min-width: 375px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var ok={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Ri={version:"0.0.1",color:Z_,gradient:X_,theme:Y_,typography:J_,spacing:Q_,font:ek,fontFamily:tk,timing:ok,icons:rk,media:nk,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var uy={};P(uy,{A:()=>v1,AssetPicture:()=>Sk,Audio:()=>Ck,Avatar:()=>j1,B:()=>Vk,Block:()=>sk,Box:()=>Gk,Br:()=>Zk,Button:()=>S1,ButtonSet:()=>A1,COMPONENTS:()=>QL,Caption:()=>Fk,Checkbox:()=>s1,CheckboxHgroup:()=>i1,Circle:()=>vk,CircleButton:()=>k1,Clickable:()=>mk,Data:()=>Uk,Dialog:()=>T1,DialogFooter:()=>P1,DialogHeader:()=>O1,Dropdown:()=>D1,DropdownList:()=>L1,DropdownParent:()=>B1,DropdownParentFocus:()=>M1,DropdownSiblingFocus:()=>N1,FileIcon:()=>g1,Flex:()=>ak,Focusable:()=>yk,FocusableComponent:()=>bk,Footnote:()=>Hk,Form:()=>pk,Grid:()=>ck,Gutter:()=>fk,H1:()=>Tk,H2:()=>Ok,H3:()=>Pk,H4:()=>Rk,H5:()=>$k,H6:()=>Ik,Headline:()=>zk,Hgroup:()=>e1,HgroupButton:()=>r1,HgroupRows:()=>t1,Hoverable:()=>gk,Hr:()=>Kk,I:()=>qk,Icon:()=>p1,IconButton:()=>E1,IconText:()=>h1,Iframe:()=>hk,Img:()=>dk,Inline:()=>ik,InlineFlex:()=>lk,InlineGrid:()=>uk,Input:()=>n1,Italic:()=>Mk,KangorooButton:()=>C1,Li:()=>Xk,Link:()=>Qm,Notification:()=>z1,NumberInput:()=>o1,Ol:()=>Jk,P:()=>jk,Picture:()=>wk,Radio:()=>a1,RadioHgroup:()=>l1,Range:()=>F1,RouteLink:()=>x1,RouterLink:()=>ey,SHAPES:()=>Kc,Select:()=>w1,Shape:()=>Om,Span:()=>Ek,SquareButton:()=>_1,Strong:()=>Dk,Subhead:()=>Wk,Svg:()=>_k,Text:()=>Ak,Textarea:()=>f1,TextareaWithButton:()=>d1,Theme:()=>xk,Title:()=>Nk,Toggle:()=>c1,ToggleHgroup:()=>u1,Tooltip:()=>R1,TooltipHidden:()=>$1,TooltipParent:()=>I1,U:()=>Lk,Ul:()=>Yk,Underline:()=>Bk,Video:()=>kk,depth:()=>Zc,getSystemGlobalTheme:()=>$i});var km={};P(km,{Block:()=>sk,Flex:()=>ak,Grid:()=>ck,Gutter:()=>fk,Inline:()=>ik,InlineFlex:()=>lk,InlineGrid:()=>uk});var sk={display:"block"},ik={display:"inline"},ak={display:"flex"},lk={display:"inline-flex"},ck={display:"grid"},uk={display:"inline-grid"},fk={boxSize:"C1"};var Cm={};P(Cm,{Img:()=>dk});F();var dk={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=pe(e);return t&&t.src||e.src},srcset:e=>{let t=pe(e);return(t?fn(t):"")||e.srcset}}};var Am={};P(Am,{Form:()=>pk});var pk={tag:"form"};var Em={};P(Em,{Iframe:()=>hk});var hk={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var Tm={};P(Tm,{Clickable:()=>mk,Focusable:()=>yk,FocusableComponent:()=>bk,Hoverable:()=>gk});var VL={appearance:"none",cursor:"pointer",fontFamily:"inherit"},gk={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},mk={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},yk={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},bk={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:VL};var $m={};P($m,{Picture:()=>wk});var Rm={};P(Rm,{Theme:()=>xk,getSystemGlobalTheme:()=>$i});var Pm={};P(Pm,{Circle:()=>vk,SHAPES:()=>Kc,Shape:()=>Om,default:()=>qL,depth:()=>Zc});F();var wt=R(),Zc={4:{boxShadow:`rgba(0,0,0,.10) 0 2${wt.unit.default} 4${wt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${wt.unit.default} 6${wt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${wt.unit.default} 10${wt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${wt.unit.default} 16${wt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${wt.unit.default} 26${wt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${wt.unit.default} 42${wt.unit.default}`}},go=e=>ce(e.shapeDirectionColor)||ce(e.borderColor)||ce(e.backgroundColor)||ce(e.background),Gc=e=>{let t=An.transition(e.transition,e);return t&&t.transition},Kc={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:go(e),transition:Gc(e),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:e=>({position:"relative","&:before":{content:'""',display:"block",background:go(e),transition:Gc(e),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:go(e),transition:Gc(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Gc(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${go(e)} 25%, transparent 25%), linear-gradient(315deg, ${go(e)} 25%, transparent 25%)`},"&:after":{background:go(e),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},Om={deps:{exec:le,getSpacingBasedOnRatio:gt,getMediaColor:je},classlist:{shape:e=>e.deps.exec(Kc[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Kc[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},vk={round:"100%"},qL=Om;F();var $i=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},xk={deps:{depth:Zc},classlist:{depth:e=>!_e(e.depth)&&e.deps.depth[e.depth]}};var wk={deps:{getSystemGlobalTheme:$i},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:$i},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(e),i=(e.media||t).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":o[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}};var Im={};P(Im,{AssetPicture:()=>Sk});F();var Sk={tag:"picture",children:e=>{let t=pe(e);if(t)return dn(t,e.alt)}};var jm={};P(jm,{Svg:()=>_k});var _k={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,s=e.spriteId||r&&r.useSvgSprite,i=e.call("exec",e.src,e);if(!s&&i)return i;let a=f=>`<use xlink:href="#${f}" />`,l=e.spriteId;if(l)return a(l);if(o&&o[i])return a(i);let c=Symbol.for(i),u=o[c];if(u&&o[u])return a(u);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let d=0;for(let f=0;f<i.length;f++)d=(d<<5)-d+i.charCodeAt(f)|0;return u=o[c]=`svg-${(d>>>0).toString(36)}`,n.init({svg:{[u]:i}},{document:t.document,emotion:t.emotion}),a(u)}};var Fm={};P(Fm,{Video:()=>kk});F();var kk={tag:"video",controls:!0,attr:{src:e=>{let t=pe(e);return t&&t.src||e.src}},children:e=>{let t=pe(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Dm={};P(Dm,{Audio:()=>Ck});F();var Ck={tag:"audio",controls:!0,attr:{src:e=>{let t=pe(e);return t&&t.src||e.src}},children:e=>{let t=pe(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Lm={};P(Lm,{B:()=>Vk,Caption:()=>Fk,Data:()=>Uk,Footnote:()=>Hk,H1:()=>Tk,H2:()=>Ok,H3:()=>Pk,H4:()=>Rk,H5:()=>$k,H6:()=>Ik,Headline:()=>zk,I:()=>qk,Italic:()=>Mk,P:()=>jk,Span:()=>Ek,Strong:()=>Dk,Subhead:()=>Wk,Text:()=>Ak,Title:()=>Nk,U:()=>Lk,Underline:()=>Bk});var Ak={},Ek={tag:"span"},Tk={tag:"h1"},Ok={tag:"h2"},Pk={tag:"h3"},Rk={tag:"h4"},$k={tag:"h5"},Ik={tag:"h6"},jk={tag:"p"},Fk={tag:"caption"},Dk={tag:"strong",fontWeight:"700"},Lk={tag:"u"},Bk={tag:"u"},Mk={tag:"i"},Nk={},zk={tag:"h6",fontSize:"B",fontWeight:500},Wk={tag:"span",fontSize:"Z1"},Hk={tag:"span",fontSize:"Z"},Vk={tag:"b"},qk={tag:"i"},Uk={tag:"data"};var Bm={};P(Bm,{Box:()=>Gk,Br:()=>Zk,Hr:()=>Kk,Li:()=>Xk,Ol:()=>Jk,Ul:()=>Yk});var UL=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=Ve(t,e,{unpack:!1});r.__class=n},Gk={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:UL},Kk={tag:"hr",margin:"C1 0"},Zk={tag:"br"},Xk={tag:"li"},Yk={tag:"ul",childExtends:{extends:"Li"}},Jk={tag:"ol",childExtends:{extends:"Li"}};var Mm={};P(Mm,{Hgroup:()=>e1,HgroupButton:()=>r1,HgroupRows:()=>t1});var Qk=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},e1={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:Qk,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:Qk,margin:"0",color:"paragraph"}},t1={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},r1={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Nm={};P(Nm,{Input:()=>n1});var n1={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}};var zm={};P(zm,{NumberInput:()=>o1});var o1={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}};var Wm={};P(Wm,{Checkbox:()=>s1,CheckboxHgroup:()=>i1});var s1={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},i1={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Hm={};P(Hm,{Radio:()=>a1,RadioHgroup:()=>l1});var a1={extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},l1={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Vm={};P(Vm,{Toggle:()=>c1,ToggleHgroup:()=>u1});var c1={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},u1={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var qm={};P(qm,{Textarea:()=>f1,TextareaWithButton:()=>d1});var f1={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},d1={display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}};var Um={};P(Um,{FileIcon:()=>g1,Icon:()=>p1,IconText:()=>h1});var p1={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,l=x=>{let w=x[".isActive"];if(w)return x.call("exec",w.name||w.icon)},c=(x,w,E)=>{let{semanticIcons:A}=E&&E.designSystem,{toCamelCase:C}=E&&E.utils,S=u(x,w),z=C(S).split(/([a-z])([A-Z])/g),re=z[1]?z[0]:S.split(".")[0].split(" ")[0],G=A&&A[re];if(G){let V=S.includes(".")?"sfsymbols."+S.split(".").slice(1).join("."):"sfsymbols";return S=G[V]||G[S.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${S}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(x,w)=>{let{key:E}=x,A=x.call("exec",x.name||x.icon||E,x);return x.call("isString",A)&&A.includes("{{")&&(A=x.call("replaceLiteralsWithObjectFields",A)),x.call("isString",A)?A:E},d=u(e,t);if(d.includes(" ")){let x=d.split(" ");d=x[0]+x.slice(1).map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join("")}let f=a(d),h=f.split(/([a-z])([A-Z])/g),p=c(e,t,r);if(p){Object.assign(e,p);return}let g;e.isActive&&(g=l(e));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=e.call("exec",m.icon||m.Icon.name||m.Icon.icon,e)),e.call("isString",g)&&g.includes("{{")&&(g=e.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[f]?y=f:o[h[0]+h[1]]?y=h[0]+h[1]:o[h[0]]?y=h[0]:i&&e.warn("Can't find icon:",d,y);let b=o[y],v=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||v||o.noIcon})},attr:{viewBox:"0 0 24 24"}},h1={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},g1={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var ty={};P(ty,{A:()=>v1,Link:()=>Qm,RouteLink:()=>x1,RouterLink:()=>ey});var Jm={};P(Jm,{default:()=>YL,getActiveRoute:()=>Ym,lastLevel:()=>Yc,lastPathname:()=>Xc,matchRoute:()=>Km,parseQuery:()=>Zm,parseRoutePattern:()=>Gm,router:()=>nt,runGuards:()=>Xm});F();var y1=/^:(.+)/,b1=/^\*$/,m1=new Map,Gm=e=>{let t=m1.get(e);if(t)return t;let r=e.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(y1);a?n.push({index:i,name:a[1]}):b1.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return m1.set(e,s),s},Km=(e,t,r=0)=>{let o=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||""),i=null,a=-1,l={};for(let c in t){if(c==="/*")continue;let u=Gm(c),d=GL(o,u);d>a&&(a=d,i=c,l=KL(o,u))}return!i&&t["/*"]&&(i="/*"),{key:i,content:i?t[i]:null,params:l,routePath:s}},GL=(e,t)=>{let{segments:r,hasWildcard:n}=t;if(!n&&r.length!==e.length&&r.length!==1&&r.length>e.length)return-1;let o=0,s=Math.min(r.length,e.length);for(let i=0;i<s;i++)if(r[i]===e[i])o+=3;else if(y1.test(r[i]))o+=1;else if(b1.test(r[i]))o+=.5;else return-1;return o},KL=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},Zm=e=>{if(!e||e==="?")return{};let t={};return new URLSearchParams(e).forEach((n,o)=>{t[o]!==void 0?(Array.isArray(t[o])||(t[o]=[t[o]]),t[o].push(n)):t[o]=n}),t},Xm=async(e,t)=>{if(!e||!e.length)return!0;for(let r of e){let n=await r(t);if(n===!1)return!1;if(typeof n=="string")return n}return!0},Ym=(e=0,t)=>{t||(t=typeof T<"u"?T.location.pathname:"/");let n=t.split("/")[e+1];if(n)return`/${n}`},Xc,Yc=0,ZL=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,XL={level:Yc,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:ue&&ue.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},nt=async(e,t,r={},n={})=>{let o=t||void 0,s=o?.context?.window||T,i=o?.context?.document||ue,a={...XL,...o.context.routerOptions,...n};Yc=a.lastLevel;let l=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let c=l.contentElementKey||a.contentElementKey||"content",u=s.location.origin!=="null"?s.location.origin:"http://localhost";e=ZL(e);let d=new s.URL(u+e),{pathname:f,search:h,hash:p}=d,g=Zm(h),m=o.node,y=p&&p!==s.location.hash.slice(1),b=f!==Xc;Xc=f;let v,x,w,E;if(a.useParamsMatching){let C=Km(f,o.routes,a.level);v=C.key,x=C.routePath,w=C.content,E=C.params}else v=Ym(a.level,f),x=v,w=o.routes[v||"/"]||o.routes["/*"],E={};let A=a.scrollToNode?m:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!w){a.onNotFound?a.onNotFound({pathname:f,route:v,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",f,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let C={pathname:f,route:v,params:E,query:g,hash:p,element:o,state:r},S=await Xm(a.guards,C);if(S===!1)return;if(typeof S=="string")return nt(S,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,f+(h||"")+(p||""))}catch{}if(b||!y){let C={route:v,routePath:x,hash:p,debugging:!1};Object.keys(E).length&&(C.params=E),Object.keys(g).length&&(C.query=g),a.updateState&&o.state.update(C,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let S=o.__ref?.origin?.content,z={};if(S)for(let G in S){let V=S[G];G==="__ref"||G==="props"||G==="node"||G==="parent"||G==="key"||(typeof V=="string"||typeof V=="number"||typeof V=="boolean"||typeof V=="object"&&V!==null&&!V.node&&!V.__ref)&&(z[G]=V)}let re={...z,...typeof w=="object"?w:{extends:w}};a.useFragment&&(re.tag="fragment");try{o.set(re,{contentElementKey:c})}catch(G){console.error("[smbls/router] failed to render route content",f,G)}}if(a.scrollToTop&&A?.scrollTo&&A.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&w[c]?.node?.scrollTo&&w[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),p){let C=i.getElementById(p);if(C&&A?.scrollTo){let S=C.getBoundingClientRect().top+m.scrollTop-(a.scrollToOffset||0);A.scrollTo({...a.scrollToOptions||{},top:S,left:0})}}Ar("routeChanged",o,a)},YL=nt;var JL=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,h=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!h){e.preventDefault();try{let p=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(p=m,f.routes&&(p.routes=f.routes))}(u.router||c.router||l.router||nt)(a,p,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(p){console.warn(p)}}},Qm={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>Bt(e,e.href)||Bt(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:JL},v1={extends:"Link"},ey={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,h=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!h){e.preventDefault();try{let p=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(p=m,f.routes&&(p.routes=f.routes))}(u.router||c.router||l.router||nt)(a,p,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(p){console.warn(p)}}}},x1={extends:[Qm,ey]};var ry={};P(ry,{Select:()=>w1});var w1={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}};var ny={};P(ny,{Button:()=>S1,ButtonSet:()=>A1,CircleButton:()=>k1,IconButton:()=>E1,KangorooButton:()=>C1,SquareButton:()=>_1});var S1={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},_1={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},k1={extends:"SquareButton",round:"C"},C1={extends:"Button",childExtends:"IconText"},A1={tag:"nav",display:"flex",childExtends:"SquareButton"},E1={extends:["SquareButton","ClickableItem"],round:"Z"};var oy={};P(oy,{Dialog:()=>T1,DialogFooter:()=>P1,DialogHeader:()=>O1});var T1={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},O1={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},P1={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}};var sy={};P(sy,{Tooltip:()=>R1,TooltipHidden:()=>$1,TooltipParent:()=>I1});F();var R1={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:e=>Ne(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},$1={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},I1={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var iy={};P(iy,{Avatar:()=>j1});var j1={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`};var ay={};P(ay,{Range:()=>F1});var F1={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:Rr("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:Rr("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}};var ly={};P(ly,{Dropdown:()=>D1,DropdownList:()=>L1,DropdownParent:()=>B1,DropdownParentFocus:()=>M1,DropdownSiblingFocus:()=>N1});var D1={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},L1={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},B1={position:"relative",zIndex:999,style:{"&:hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},M1={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},N1={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}};var cy={};P(cy,{Notification:()=>z1});var z1={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}};var QL=Object.assign({},km,Cm,Am,Em,Tm,$m,Im,jm,Pm,Fm,Dm,Rm,Lm,Bm,Mm,Nm,zm,Wm,Hm,Vm,qm,Um,ty,ry,ny,oy,sy,iy,ay,ly,cy);function Jc(e){if(e==null)return 0;if(typeof e!="object")return W1(String(e));let t=2166136261;if(Array.isArray(e)){t=(t^91)*16777619;for(let n=0;n<e.length;n++)t=(t^Jc(e[n]))*16777619;return t>>>0}let r=Object.keys(e).sort();for(let n=0;n<r.length;n++)t=(t^W1(r[n]))*16777619,t=(t^Jc(e[r[n]]))*16777619;return t>>>0}function W1(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t}function Qc(e,t){if(e===t)return!0;if(e===null||t===null||typeof e!=typeof t||typeof e!="object")return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!Qc(e[o],t[o]))return!1;return!0}let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let s=r[o];if(!Object.prototype.hasOwnProperty.call(t,s)||!Qc(e[s],t[s]))return!1}return!0}function fy(e,t){if(t===void 0)return e;if(e===void 0)return t;if(t===null)return null;if(typeof t!="object"||Array.isArray(t))return t;if(typeof e!="object"||Array.isArray(e))return{...t};let r=!1,n={};for(let o in e)if(o in t){let s=fy(e[o],t[o]);n[o]=s,s!==e[o]&&(r=!0)}else n[o]=e[o];for(let o in t)o in e||(n[o]=t[o],r=!0);return r?n:e}function dy(e,t,r){if(!t||typeof t!="object")return e;if(!e||typeof e!="object")return t;if(r||(r=new WeakSet),r.has(t))return e;r.add(t);for(let n in t){let o=t[n];o&&typeof o=="object"&&!Array.isArray(o)&&e[n]&&typeof e[n]=="object"&&!Array.isArray(e[n])?dy(e[n],o,r):e[n]=o}return e}function Mr(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t.toString(36)}function mo(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function Ii(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Mr(t)}function H1(e){return e.split(`
|
|
67
|
-
`).map(
|
|
68
|
-
`)}var
|
|
69
|
-
${i}`}var
|
|
70
|
-
`)}function
|
|
71
|
-
${i}`}var py=null;function tu(e){py=e}var Mt={structuralHash:Jc,deepEqual:Qc,mergeStructural:fy,overwriteDeep:dy,shortHash:Mr,toKebab:mo,sanitizeValue:Ii,batchShortHash:H1,atomicCssClass:q1,batchAtomicCss:G1,compoundCssClass:K1},Z1=!1,eu=null;function X1(e){return eu||(eu=import(e||"@symbo.ls/wasm/pkg").then(t=>(t.structuralHash&&(Mt.structuralHash=t.structuralHash),t.deepEqual&&(Mt.deepEqual=t.deepEqual),t.mergeStructural&&(Mt.mergeStructural=t.mergeStructural),t.overwriteDeep&&(Mt.overwriteDeep=t.overwriteDeep),t.shortHash&&(Mt.shortHash=t.shortHash),t.toKebab&&(Mt.toKebab=t.toKebab),t.sanitizeValue&&(Mt.sanitizeValue=t.sanitizeValue),t.batchShortHash&&(Mt.batchShortHash=t.batchShortHash),t.atomicCssClass&&(Mt.atomicCssClass=t.atomicCssClass),t.batchAtomicCss&&(Mt.batchAtomicCss=t.batchAtomicCss),t.compoundCssClass&&(Mt.compoundCssClass=t.compoundCssClass),Z1=!0,py&&t.batchAtomicCss&&py({batchAtomicCss:t.batchAtomicCss,compoundCssClass:t.compoundCssClass}),!0)).catch(t=>(console.debug("[smbls] WASM not available, using JS fallbacks:",t.message),!1)),eu)}function Y1(){return Z1}F();var ji={};P(ji,{CDN_PROVIDERS:()=>$t,DOMQL_EVENTS:()=>dp,DOMQ_PROPERTIES:()=>Sr,ENV:()=>Tp,HTML_TAGS:()=>Qn,METHODS:()=>Gn,METHODS_EXL:()=>fs,NODE_ENV:()=>Pt,OPTIONS:()=>js,PACKAGE_MANAGER_TO_CDN:()=>Pr,PARSED_DOMQ_PROPERTIES:()=>us,PROPS_METHODS:()=>_r,STATE_METHODS:()=>rn,STATE_PROPERTIES:()=>fp,SVG_TAGS:()=>Tw,TYPES:()=>ns,UNIVERSAL_RESERVED_KEYS:()=>tc,addCaching:()=>Nl,addContext:()=>Ml,addExtend:()=>Qp,addExtends:()=>Je,addItemAfterEveryElement:()=>Jd,addProtoToArray:()=>is,addRef:()=>Dl,applyCSS:()=>gy,applyDependentState:()=>bh,applyEvent:()=>Ul,applyEventUpdate:()=>Gl,applyExtends:()=>Rw,applyProps:()=>Ts,arrayContainsOtherArray:()=>qd,arraysEqual:()=>ep,arrayzeValue:()=>un,buildImgSrcset:()=>fn,buildSourcesAndImg:()=>dn,cache:()=>_h,call:()=>zh,captureSnapshot:()=>Hh,checkForStateTypes:()=>hh,checkIfInherits:()=>ql,checkIfStringIsInArray:()=>np,clone:()=>hp,cloneAndMergeArrayExtend:()=>xs,cloneFunction:()=>Lp,concatAddExtends:()=>Xp,copyJavaScriptToClipboard:()=>lg,copyStringToClipboard:()=>ag,createBasedOnType:()=>Fl,createElement:()=>ph,createElementExtends:()=>_l,createExtends:()=>Ss,createExtendsFromKeys:()=>eo,createExtendsStack:()=>El,createIfConditionFlag:()=>Bp,createInheritedState:()=>gh,createKey:()=>bs,createNestedObject:()=>wp,createNestedObjectByKeyPath:()=>yh,createObjectWithoutPrototype:()=>gl,createParent:()=>Ll,createPath:()=>Bl,createProps:()=>Os,createPropsStack:()=>Il,createRoot:()=>dh,createScope:()=>xh,createSnapshotId:()=>ys,customDecodeURIComponent:()=>up,customEncodeURIComponent:()=>cp,cutArrayAfterValue:()=>Xd,cutArrayBeforeValue:()=>Zd,debounce:()=>vs,debounceOnContext:()=>jp,decodeNewlines:()=>lp,deepClone:()=>fe,deepContains:()=>vp,deepDefaults:()=>si,deepDestringifyFunctions:()=>ft,deepExtend:()=>Sl,deepMerge:()=>ae,deepMergeExtends:()=>Kt,deepStringifyFunctions:()=>ds,defineSetter:()=>Mh,destringifyGlobalScope:()=>hs,detectHeightOnInit:()=>Kh,detectInfiniteLoop:()=>Cp,document:()=>ue,encodeNewlines:()=>ap,error:()=>cn,excludeKeysFromObject:()=>Ep,exec:()=>le,extendCachedRegistry:()=>Yp,extendStackRegistry:()=>_s,extractArrayExtend:()=>Cs,fetchLibraryData:()=>oc,fibonacciNumberByIndex:()=>Zh,filterArrays:()=>tp,filterArraysFast:()=>rp,finalizeExtends:()=>Tl,findClosestNumber:()=>nc,findClosestNumberInFactory:()=>sg,findInheritedState:()=>Vl,findKeyPosition:()=>sp,flattenExtend:()=>to,formatDate:()=>Gh,generateHash:()=>vl,generateKey:()=>ms,generateMetaTags:()=>ng,get:()=>Dh,getActiveRoute:()=>Ym,getCDNUrl:()=>It,getCapitalCaseKeys:()=>rh,getCdnProviderFromConfig:()=>oo,getChildStateInKey:()=>Hl,getChildren:()=>qs,getContext:()=>Js,getCookie:()=>Hp,getDB:()=>ni,getEmotionStylesheet:()=>dg,getExtendsInElement:()=>eh,getExtendsStack:()=>ws,getExtendsStackRegistry:()=>wl,getFrequencyInArray:()=>Ud,getHashedExtend:()=>ks,getImportMapScript:()=>Uh,getInObjectByPath:()=>kp,getLocalStorage:()=>qp,getNev:()=>$p,getPageMetadata:()=>og,getParentStateInKey:()=>Wl,getPath:()=>Us,getQuery:()=>oi,getRef:()=>Bh,getRoot:()=>Zs,getRootContext:()=>Ys,getRootData:()=>Xs,getRootState:()=>Ks,getRootStateInKey:()=>zl,getSpreadChildren:()=>nh,global:()=>Wd,hasFunction:()=>Zn,hasHandlerPlugin:()=>Xn,hasOwnProperty:()=>mp,inheritChildExtends:()=>Cl,inheritChildPropsExtends:()=>kl,inheritParentProps:()=>Ps,inheritRecursiveChildExtends:()=>Al,init:()=>yo,initProps:()=>ch,is:()=>Xe,isArray:()=>j,isBoolean:()=>ul,isContextComponent:()=>oh,isCyclic:()=>Ap,isDOMNode:()=>Ze,isDate:()=>dl,isDefined:()=>Ne,isDevelopment:()=>Cr,isEmpty:()=>pl,isEmptyObject:()=>yp,isEqualDeep:()=>hl,isFunction:()=>O,isHtmlElement:()=>ts,isLocal:()=>Rp,isMethod:()=>Wh,isMobile:()=>zp,isNode:()=>nr,isNot:()=>Vd,isNotProduction:()=>sn,isNull:()=>fl,isNumber:()=>Gt,isObject:()=>_,isObjectLike:()=>Q,isPhoto:()=>Xh,isProduction:()=>kr,isStaging:()=>Pp,isState:()=>mh,isString:()=>k,isStringFunction:()=>Dp,isTest:()=>yl,isTesting:()=>Op,isUndefined:()=>_e,isUniversallyReservedKey:()=>Vh,isValidHtmlTag:()=>Gp,joinArrays:()=>Vn,jointStacks:()=>Jp,keys:()=>Ql,lastLevel:()=>Yc,lastPathname:()=>Xc,loadCssFile:()=>eg,loadJavascript:()=>tg,loadJavascriptFile:()=>Yh,loadJavascriptFileEmbedSync:()=>Qh,loadJavascriptFileSync:()=>Jh,loadRemoteCSS:()=>rg,loadRemoteScript:()=>so,log:()=>Nh,logGroupIf:()=>Np,logIf:()=>Mp,lookdown:()=>jh,lookdownAll:()=>Fh,lookup:()=>Ih,lowercaseFirstLetter:()=>tn,makeObjectWithoutPrototype:()=>bp,map:()=>pp,mapStringsWithContextComponents:()=>As,matchRoute:()=>Km,matchesComponentNaming:()=>Zt,memoize:()=>Fp,merge:()=>me,mergeSharedLibraries:()=>ii,nextElement:()=>ei,normalizeLibraryKey:()=>io,objectToString:()=>ps,objectizeStringProperty:()=>Es,overwrite:()=>gs,overwriteDeep:()=>Ye,overwriteShallow:()=>on,overwriteState:()=>vh,parse:()=>ec,parseDeep:()=>Hs,parseQuery:()=>Zm,parseRoutePattern:()=>Gm,pickupElementFromProps:()=>Rl,pickupPropsFromElement:()=>Pl,previousElement:()=>ti,propExists:()=>ah,propertizeElement:()=>$l,propertizeUpdate:()=>ih,reinit:()=>hy,remove:()=>aS,removeChars:()=>cg,removeCookie:()=>Vp,removeDuplicateProps:()=>$s,removeDuplicatesInArray:()=>qn,removeFromArray:()=>Gd,removeFromObject:()=>xp,removeNestedKeyByPath:()=>Sp,removeValueFromArray:()=>ss,removeValueFromArrayAll:()=>Yd,reorderArrayByValues:()=>Qd,replaceLiteralsWithObjectFields:()=>en,replaceOctalEscapeSequences:()=>ip,resolveAsset:()=>pe,resolveHandler:()=>Yn,resolveSharedLibraries:()=>ig,returnValueAsText:()=>jl,router:()=>nt,runGuards:()=>Xm,runPluginHook:()=>Jn,scratchSystem:()=>yi,scratchUtils:()=>yn,self:()=>Hd,set:()=>uo,setActiveRootState:()=>Gs,setCookie:()=>Wp,setHashedExtend:()=>xl,setInObjectByPath:()=>_p,setLocalStorage:()=>Up,setNodeStyles:()=>Jl,setProps:()=>Lh,setPropsPrototype:()=>Rs,spotByPath:()=>Vs,srcsetFor:()=>ao,stringIncludesAny:()=>ls,stringToObject:()=>gp,swapItemsInArray:()=>Kd,syncProps:()=>Is,toCamelCase:()=>ai,toDashCase:()=>li,toDescriptionCase:()=>fg,toTitleCase:()=>ug,toggleFullscreen:()=>qh,triggerEventOn:()=>Ar,triggerEventOnUpdate:()=>wh,trimStringFromSymbols:()=>op,unstackArrayOfObjects:()=>os,update:()=>lh,updateProps:()=>uh,variables:()=>ri,verbose:()=>no,warn:()=>Qs,window:()=>T});F();F();var oB=R(),J1=(e=oB,t)=>{let r=_(t.localFile)?t.localFile:{},n=fe(r.designSystem||{});return ae(e,n)},sB={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},yo=(e,t=sB)=>{let r=J1(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=t.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(s=m)}let i=uo({verbose:t.verbose,useReset:t.useReset,useFontImport:t.useFontImport,useVariable:t.useVariable,useSvgSprite:t.useSvgSprite,useDocumentTheme:t.useDocumentTheme,useIconSprite:t.useIconSprite,useDefaultConfig:t.useDefaultConfig,globalTheme:s,themeRoot:t.themeRoot,files:t.files,assets:t.assets,...r},{newConfig:t.newConfig,config:t.config});i&&(i.scopeSelector=n);let a=ic(i.font,i.files),l=i.useReset,c=i.useVariable,u=i.useFontImport,d=i.useSvgSprite,f=e.svg,h=i.useIconSprite,p=e.icons;if(u&&ke(a),c&&(ke({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let y in i.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[o]:i.CSS_MEDIA_VARS[y]}:m[y]=i.CSS_MEDIA_VARS[y];ke(m)}l&&ke(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];ke(m)}return(f||d)&&jc(i.svg,{document:t.document}),(p||h)&&Dc(i.icons,{document:t.document}),i},ru={},hy=(e,t=ru)=>{let r=J1(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=uo({verbose:!1,...r});if(!t.preventInject){if(ke({[n]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith("@media")?i[a]={[o]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];ke(i)}ke(s.reset)}return s},gy=(e,t=ru)=>{ke(e)},iB=(e,t=ru)=>{let r=t.scopeSelector||":root",n=r===":root"?":root:not([data-theme])":`${r}:not([data-theme])`;if(ke({[r]:e.CSS_VARS}),e.CSS_MEDIA_VARS){let o={};for(let s in e.CSS_MEDIA_VARS)s.startsWith("@media")?o[s]={[n]:e.CSS_MEDIA_VARS[s]}:o[s]=e.CSS_MEDIA_VARS[s];ke(o)}};var aB=(e,t=ru)=>{};F();var Q1=e=>!e||e==="srcdoc"||e==="about:srcdoc"||e==="blank"||e==="about:blank"?"/":e,my={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},eC=(e,t)=>{if(!t)return e;let r=Array.isArray(t)?t:t.split("."),n=e;for(let o of r){if(!n||!n[o])return null;n=n[o]}return n},tC=(e,t)=>{if(t.router===!1)return;t.router===!0?t.router=my:t.router=me(t.router||{},my);let r=t.router,n=async(s,i)=>{let a=s.context?.window||T;if(!a.location)return;let{pathname:l,search:c,hash:u}=a.location;l=Q1(l);let d=l+c+u,f=s;if(r.customRouterElement){let h=eC(s,r.customRouterElement);h&&(f=h,s.routes&&(f.routes=s.routes))}f.routes&&await nt(d,f,{},{initialRender:!0,pushState:!1})},o=!_e(e.onRenderRouter);return r&&r.initRouter&&!o&&(e.onRenderRouter=n),lB(t,r),r},yy=(e,t)=>{if(t.router===!1)return;let r=t.router||my;if(!r.popState)return;let n=t.utils&&t.utils.router?t.utils.router:nt,o=t.window||T,s=async i=>{let{pathname:a,search:l,hash:c}=o.location;a=Q1(a);let u=a+l+c,d=e;if(r.customRouterElement){let f=eC(e,r.customRouterElement);f&&(d=f,e.routes&&(d.routes=e.routes))}await d.call("router",u,d,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};o.addEventListener("popstate",s),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>o.removeEventListener("popstate",s))},lB=(e,t)=>{let{components:r}=e;if(t&&t.injectRouterInLinkComponent)return ae(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};F();var by=T&&T.location?T.location.host.includes("dev."):Cr(),rC=by?"http://localhost:8080/get":"https://api.symbols.app/get",cB={endpoint:rC},nC=async(e,t=cB)=>{let r=t.endpoint||rC,n=t.serviceRoute?j(t.serviceRoute)?t.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):t.serviceRoute:"",o;try{return o=await globalThis.fetch(r+"/?"+n,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":e,"X-Metadata":t.metadata}}),await o.json()}catch(s){if(O(t.onError))return t.onError(s);console.error(s)}},uB=async(e,t)=>{let{editor:r}=t;if(r&&r.remote){let n=await nC(e,r),o=by||t.isDevelopment?ft(n):ft(n.releases[0]);r.serviceRoute?j(r.serviceRoute)?r.serviceRoute.forEach(s=>{Ye(t[s],o[s.toLowerCase()])}):Ye(t[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{Ye(t[s],o[s.toLowerCase()])})}return t},fB=async(e,t,r)=>{let{editor:n}=t;if(n&&n.remote){let o=await nC(e,n),s=by||t.isDevelopment?ft(o):ft(o.releases[0]);r(s)}},oC=async(e,t)=>{if(e&&t.editor)try{t.editor.async||await uB(e,t)}catch(r){console.error(r)}},sC=(e,t,r,n)=>{if(t&&r.editor)try{r.editor.async&&fB(t,r,n||(o=>{let s=o.designSystem;_(s)&&r.utils.init(s),_(o.state)&&e.state.set(o.state)}))}catch(o){console.error(o)}};var Fi=e=>{if(!e||e.__destroyed)return!1;let t=e.context;if(!t)return e.__destroyed=!0,!1;if(Array.isArray(t.__teardowns)){for(let r of t.__teardowns)try{r()}catch(n){console.error("[smbls] destroy teardown error:",n)}t.__teardowns.length=0}try{Cn(e)}catch(r){console.error("[smbls] dispose error:",r)}if(t.fetch&&t.fetch.__resolved&&delete t.fetch.__resolved,t.fetch&&t.fetch.__resolving&&delete t.fetch.__resolving,t.db&&t.db.__resolved&&delete t.db.__resolved,t.db&&t.db.__resolving&&delete t.db.__resolving,t.analyze?.destroy)try{t.analyze.destroy()}catch(r){console.error("[analyze] destroy error:",r)}return e.__destroyed=!0,!0};F();var dB={title:{tag:"title"},description:{tag:"meta",attr:"name",key:"description"},keywords:{tag:"meta",attr:"name",key:"keywords"},robots:{tag:"meta",attr:"name",key:"robots"},author:{tag:"meta",attr:"name",key:"author"},canonical:{tag:"link",attr:"rel",key:"canonical",valueAttr:"href"},image:{tag:"meta",attr:"property",key:"og:image"},url:{tag:"meta",attr:"property",key:"og:url"},siteName:{tag:"meta",attr:"property",key:"og:site_name"},type:{tag:"meta",attr:"property",key:"og:type"},locale:{tag:"meta",attr:"property",key:"og:locale"},"og:title":{tag:"meta",attr:"property",key:"og:title"},"og:description":{tag:"meta",attr:"property",key:"og:description"},"og:image":{tag:"meta",attr:"property",key:"og:image"},"og:url":{tag:"meta",attr:"property",key:"og:url"},"og:type":{tag:"meta",attr:"property",key:"og:type"},"og:site_name":{tag:"meta",attr:"property",key:"og:site_name"},"og:locale":{tag:"meta",attr:"property",key:"og:locale"},"twitter:card":{tag:"meta",attr:"name",key:"twitter:card"},"twitter:title":{tag:"meta",attr:"name",key:"twitter:title"},"twitter:description":{tag:"meta",attr:"name",key:"twitter:description"},"twitter:image":{tag:"meta",attr:"name",key:"twitter:image"},"twitter:site":{tag:"meta",attr:"name",key:"twitter:site"},"theme-color":{tag:"meta",attr:"name",key:"theme-color"}},pB=e=>{if(e.tag==="link")return`link[${e.attr}="${e.key}"]`;if(e.tag&&!e.attr&&!e.key)return e.tag;if(e.tag&&e.attr&&e.key)return`${e.tag}[${e.attr}="${e.key}"]`},nu=(e,t,r)=>{if(!e)return{};let n=O(e)?le(e,t,r):{...e};if(!_(n))return{};for(let o in n){let s=n[o];O(s)&&(s=le(s,t,r)),k(s)&&s.includes("{{")&&t?.call&&(s=t.call("replaceLiteralsWithObjectFields",s,r)),n[o]=s}return n};var hB=(e,t)=>{let r=t.createElement(e.tag);return e.attr&&r.setAttribute(e.attr,e.key),(t.head||t.querySelector("head")).appendChild(r),r},ou=(e,t)=>{if(!(!_(e)||!t))for(let r in e){let n=e[r];if(n==null)continue;let o=dB[r];if(!o)continue;let s=pB(o),i=t.querySelector(s)||hB(o,t);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}};var iC={name:"helmet",create(e){let t=e.metadata;if(!t)return;let r=e.context?.document||typeof document<"u"&&document;if(!r)return;let n=nu(t,e,e.state);ou(n,r)},update(e){let t=e.metadata;if(!t)return;let r=e.context?.document||typeof document<"u"&&document;if(!r)return;let n=nu(t,e,e.state);ou(n,r)}};ln();var aC=(e,t,r,n)=>{e&&zs(e,t,r,n)},lC=(e,t,r)=>{if(!e)return;let n=t.context?.document||typeof document<"u"&&document;if(!n)return;let o=nu(e,t,r);ou(o,n)},cC=async(e,t)=>{if(!e)return;let r={tag:"fragment",...e},n=async()=>{await t.set(r,{preventDefineUpdate:"$router"})};return t.lazyLoad?window.requestAnimationFrame(n):await n(),r},bo={routes:e=>e,metadata:lC,fetch:aC,$router:cC},uC=(e={})=>{let t={routes:r=>r};return e.metadata!==!1&&(t.metadata=lC),e.fetch!==!1&&(t.fetch=aC),e.router!==!1&&(t.$router=cC),t};var vy={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},su={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},iu={...vy,router:su},gB={state:{},pages:{},components:{},router:su,define:bo},Nr=gB;var fu={};P(fu,{A:()=>wA,AssetPicture:()=>TC,Audio:()=>RC,Avatar:()=>DA,B:()=>XC,Block:()=>fC,Box:()=>uu,Br:()=>eA,Button:()=>kA,ButtonSet:()=>TA,COMPONENTS:()=>xo,Caption:()=>zC,Checkbox:()=>uA,CheckboxHgroup:()=>fA,Circle:()=>CC,CircleButton:()=>AA,Clickable:()=>SC,Data:()=>JC,Dialog:()=>PA,DialogFooter:()=>$A,DialogHeader:()=>RA,Dropdown:()=>BA,DropdownList:()=>MA,DropdownParent:()=>NA,DropdownParentFocus:()=>zA,DropdownSiblingFocus:()=>WA,FileIcon:()=>xA,Flex:()=>pC,Focusable:()=>_C,FocusableComponent:()=>kC,Footnote:()=>ZC,Form:()=>vC,Grid:()=>gC,Gutter:()=>yC,H1:()=>jC,H2:()=>FC,H3:()=>DC,H4:()=>LC,H5:()=>BC,H6:()=>MC,Headline:()=>GC,Hgroup:()=>sA,HgroupButton:()=>aA,HgroupRows:()=>iA,Hoverable:()=>wC,Hr:()=>QC,I:()=>YC,Icon:()=>bA,IconButton:()=>OA,IconText:()=>vA,Iframe:()=>xC,Img:()=>bC,Inline:()=>dC,InlineFlex:()=>hC,InlineGrid:()=>mC,Input:()=>lA,Italic:()=>qC,KangorooButton:()=>EA,Li:()=>tA,Link:()=>Hy,Notification:()=>HA,NumberInput:()=>cA,Ol:()=>nA,P:()=>NC,Picture:()=>EC,Radio:()=>dA,RadioHgroup:()=>pA,Range:()=>LA,RouteLink:()=>SA,RouterLink:()=>Vy,SHAPES:()=>lu,Select:()=>_A,Shape:()=>Cy,Span:()=>IC,SquareButton:()=>CA,Strong:()=>WC,Subhead:()=>KC,Svg:()=>OC,Text:()=>$C,Textarea:()=>mA,TextareaWithButton:()=>yA,Theme:()=>AC,Title:()=>UC,Toggle:()=>hA,ToggleHgroup:()=>gA,Tooltip:()=>IA,TooltipHidden:()=>jA,TooltipParent:()=>FA,U:()=>HC,Ul:()=>rA,Underline:()=>VC,Video:()=>PC,depth:()=>cu,getSystemGlobalTheme:()=>Di});var xy={};P(xy,{Block:()=>fC,Flex:()=>pC,Grid:()=>gC,Gutter:()=>yC,Inline:()=>dC,InlineFlex:()=>hC,InlineGrid:()=>mC});var fC={display:"block"},dC={display:"inline"},pC={display:"flex"},hC={display:"inline-flex"},gC={display:"grid"},mC={display:"inline-grid"},yC={boxSize:"C1"};var wy={};P(wy,{Img:()=>bC});F();var bC={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=pe(e);return t&&t.src||e.src},srcset:e=>{let t=pe(e);return(t?fn(t):"")||e.srcset}}};var Sy={};P(Sy,{Form:()=>vC});var vC={tag:"form"};var _y={};P(_y,{Iframe:()=>xC});var xC={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var ky={};P(ky,{Clickable:()=>SC,Focusable:()=>_C,FocusableComponent:()=>kC,Hoverable:()=>wC});var mB={appearance:"none",cursor:"pointer",fontFamily:"inherit"},wC={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},SC={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},_C={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},kC={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:mB};var Ty={};P(Ty,{Picture:()=>EC});var Ey={};P(Ey,{Theme:()=>AC,getSystemGlobalTheme:()=>Di});var Ay={};P(Ay,{Circle:()=>CC,SHAPES:()=>lu,Shape:()=>Cy,default:()=>yB,depth:()=>cu});F();var St=R(),cu={4:{boxShadow:`rgba(0,0,0,.10) 0 2${St.unit.default} 4${St.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${St.unit.default} 6${St.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${St.unit.default} 10${St.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${St.unit.default} 16${St.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${St.unit.default} 26${St.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${St.unit.default} 42${St.unit.default}`}},vo=e=>ce(e.shapeDirectionColor)||ce(e.borderColor)||ce(e.backgroundColor)||ce(e.background),au=e=>{let t=An.transition(e.transition,e);return t&&t.transition},lu={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:vo(e),transition:au(e),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:e=>({position:"relative","&:before":{content:'""',display:"block",background:vo(e),transition:au(e),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:vo(e),transition:au(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:au(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${vo(e)} 25%, transparent 25%), linear-gradient(315deg, ${vo(e)} 25%, transparent 25%)`},"&:after":{background:vo(e),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},Cy={deps:{exec:le,getSpacingBasedOnRatio:gt,getMediaColor:je},classlist:{shape:e=>e.deps.exec(lu[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=lu[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},CC={round:"100%"},yB=Cy;F();var Di=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},AC={deps:{depth:cu},classlist:{depth:e=>!_e(e.depth)&&e.deps.depth[e.depth]}};var EC={deps:{getSystemGlobalTheme:Di},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Di},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(e),i=(e.media||t).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":o[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}};var Oy={};P(Oy,{AssetPicture:()=>TC});F();var TC={tag:"picture",children:e=>{let t=pe(e);if(t)return dn(t,e.alt)}};var Py={};P(Py,{Svg:()=>OC});var OC={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,s=e.spriteId||r&&r.useSvgSprite,i=e.call("exec",e.src,e);if(!s&&i)return i;let a=f=>`<use xlink:href="#${f}" />`,l=e.spriteId;if(l)return a(l);if(o&&o[i])return a(i);let c=Symbol.for(i),u=o[c];if(u&&o[u])return a(u);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let d=0;for(let f=0;f<i.length;f++)d=(d<<5)-d+i.charCodeAt(f)|0;return u=o[c]=`svg-${(d>>>0).toString(36)}`,n.init({svg:{[u]:i}},{document:t.document,emotion:t.emotion}),a(u)}};var Ry={};P(Ry,{Video:()=>PC});F();var PC={tag:"video",controls:!0,attr:{src:e=>{let t=pe(e);return t&&t.src||e.src}},children:e=>{let t=pe(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var $y={};P($y,{Audio:()=>RC});F();var RC={tag:"audio",controls:!0,attr:{src:e=>{let t=pe(e);return t&&t.src||e.src}},children:e=>{let t=pe(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Iy={};P(Iy,{B:()=>XC,Caption:()=>zC,Data:()=>JC,Footnote:()=>ZC,H1:()=>jC,H2:()=>FC,H3:()=>DC,H4:()=>LC,H5:()=>BC,H6:()=>MC,Headline:()=>GC,I:()=>YC,Italic:()=>qC,P:()=>NC,Span:()=>IC,Strong:()=>WC,Subhead:()=>KC,Text:()=>$C,Title:()=>UC,U:()=>HC,Underline:()=>VC});var $C={},IC={tag:"span"},jC={tag:"h1"},FC={tag:"h2"},DC={tag:"h3"},LC={tag:"h4"},BC={tag:"h5"},MC={tag:"h6"},NC={tag:"p"},zC={tag:"caption"},WC={tag:"strong",fontWeight:"700"},HC={tag:"u"},VC={tag:"u"},qC={tag:"i"},UC={},GC={tag:"h6",fontSize:"B",fontWeight:500},KC={tag:"span",fontSize:"Z1"},ZC={tag:"span",fontSize:"Z"},XC={tag:"b"},YC={tag:"i"},JC={tag:"data"};var jy={};P(jy,{Box:()=>uu,Br:()=>eA,Hr:()=>QC,Li:()=>tA,Ol:()=>nA,Ul:()=>rA});var bB=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=Ve(t,e,{unpack:!1});r.__class=n},uu={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:bB},QC={tag:"hr",margin:"C1 0"},eA={tag:"br"},tA={tag:"li"},rA={tag:"ul",childExtends:{extends:"Li"}},nA={tag:"ol",childExtends:{extends:"Li"}};var Fy={};P(Fy,{Hgroup:()=>sA,HgroupButton:()=>aA,HgroupRows:()=>iA});var oA=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},sA={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:oA,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:oA,margin:"0",color:"paragraph"}},iA={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},aA={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Dy={};P(Dy,{Input:()=>lA});var lA={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}};var Ly={};P(Ly,{NumberInput:()=>cA});var cA={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}};var By={};P(By,{Checkbox:()=>uA,CheckboxHgroup:()=>fA});var uA={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},fA={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var My={};P(My,{Radio:()=>dA,RadioHgroup:()=>pA});var dA={extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},pA={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Ny={};P(Ny,{Toggle:()=>hA,ToggleHgroup:()=>gA});var hA={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},gA={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var zy={};P(zy,{Textarea:()=>mA,TextareaWithButton:()=>yA});var mA={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},yA={display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}};var Wy={};P(Wy,{FileIcon:()=>xA,Icon:()=>bA,IconText:()=>vA});var bA={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,l=x=>{let w=x[".isActive"];if(w)return x.call("exec",w.name||w.icon)},c=(x,w,E)=>{let{semanticIcons:A}=E&&E.designSystem,{toCamelCase:C}=E&&E.utils,S=u(x,w),re=C(S).split(/([a-z])([A-Z])/g),G=re[1]?re[0]:S.split(".")[0].split(" ")[0],V=A&&A[G];if(V){let ve=S.includes(".")?"sfsymbols."+S.split(".").slice(1).join("."):"sfsymbols";return S=V[ve]||V[S.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${S}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(x,w)=>{let{key:E}=x,A=x.call("exec",x.name||x.icon||E,x);return x.call("isString",A)&&A.includes("{{")&&(A=x.call("replaceLiteralsWithObjectFields",A)),x.call("isString",A)?A:E},d=u(e,t);if(d.includes(" ")){let x=d.split(" ");d=x[0]+x.slice(1).map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join("")}let f=a(d),h=f.split(/([a-z])([A-Z])/g),p=c(e,t,r);if(p){Object.assign(e,p);return}let g;e.isActive&&(g=l(e));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=e.call("exec",m.icon||m.Icon.name||m.Icon.icon,e)),e.call("isString",g)&&g.includes("{{")&&(g=e.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[f]?y=f:o[h[0]+h[1]]?y=h[0]+h[1]:o[h[0]]?y=h[0]:i&&e.warn("Can't find icon:",d,y);let b=o[y],v=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||v||o.noIcon})},attr:{viewBox:"0 0 24 24"}},vA={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},xA={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var qy={};P(qy,{A:()=>wA,Link:()=>Hy,RouteLink:()=>SA,RouterLink:()=>Vy});var vB=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,h=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!h){e.preventDefault();try{let p=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(p=m,f.routes&&(p.routes=f.routes))}(u.router||c.router||l.router||nt)(a,p,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(p){console.warn(p)}}},Hy={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>Bt(e,e.href)||Bt(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:vB},wA={extends:"Link"},Vy={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,h=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!h){e.preventDefault();try{let p=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(p=m,f.routes&&(p.routes=f.routes))}(u.router||c.router||l.router||nt)(a,p,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(p){console.warn(p)}}}},SA={extends:[Hy,Vy]};var Uy={};P(Uy,{Select:()=>_A});var _A={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}};var Gy={};P(Gy,{Button:()=>kA,ButtonSet:()=>TA,CircleButton:()=>AA,IconButton:()=>OA,KangorooButton:()=>EA,SquareButton:()=>CA});var kA={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},CA={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},AA={extends:"SquareButton",round:"C"},EA={extends:"Button",childExtends:"IconText"},TA={tag:"nav",display:"flex",childExtends:"SquareButton"},OA={extends:["SquareButton","ClickableItem"],round:"Z"};var Ky={};P(Ky,{Dialog:()=>PA,DialogFooter:()=>$A,DialogHeader:()=>RA});var PA={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},RA={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},$A={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}};var Zy={};P(Zy,{Tooltip:()=>IA,TooltipHidden:()=>jA,TooltipParent:()=>FA});F();var IA={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:e=>Ne(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},jA={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},FA={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var Xy={};P(Xy,{Avatar:()=>DA});var DA={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`};var Yy={};P(Yy,{Range:()=>LA});var LA={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:Rr("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:Rr("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}};var Jy={};P(Jy,{Dropdown:()=>BA,DropdownList:()=>MA,DropdownParent:()=>NA,DropdownParentFocus:()=>zA,DropdownSiblingFocus:()=>WA});var BA={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},MA={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},NA={position:"relative",zIndex:999,style:{"&:hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},zA={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},WA={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}};var Qy={};P(Qy,{Notification:()=>HA});var HA={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}};var xo=Object.assign({},xy,wy,Sy,_y,ky,Ty,Oy,Py,Ay,Ry,$y,Ey,Iy,jy,Fy,Dy,Ly,By,My,Ny,zy,Wy,qy,Uy,Gy,Ky,Zy,Xy,Yy,Jy,Qy);F();F();var VA=(e,t)=>Q(e.extends)?e.extends:[];F();var KA=e=>{let t=typeof window<"u"?window:globalThis||{};t.document||(t.document={body:{}});let r=typeof document<"u"?document:t.document;return e.document=e.document||r,e.window=e.window||t,e.window},qA=(e="smbls")=>{let t={};for(let r in xo)Object.prototype.hasOwnProperty.call(xo,r)&&(Zt(r)?t[`smbls.${r}`]=xo[r]:t[r]=xo[r]);return t},ZA=e=>e.components?{...qA(),...e.components}:qA(),XA=e=>({...ji,...Jm,...yn,...e.utils,...e.snippets,...e.functions}),YA=e=>({...e.methods||{},require:e.utils.require,requireOnDemand:e.utils.requireOnDemand,router:e.utils.router}),UA={},JA=async({dependencies:e,dependenciesOnDemand:t,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=Pr[s]||oo(i)||"esmsh"),!e)return null;let a=!1;for(let l in e){a=!0;break}if(!a)return null;for(let l in e){let c=e[l];if(t&&t[l])continue;let u=Cr()&&n?`?${Math.random()}`:"",d=It(l,c,o)+u;try{if(UA[l])continue;UA[l]=!0,await Promise.race([so(d,{document:r,type:"module"}),new Promise((f,h)=>setTimeout(()=>h(new Error(`Timeout loading ${l}`)),1e4))])}catch(f){if(console.error(`Failed to load ${l} from ${o}:`,f),o!=="symbols")try{let h=It(l,c,"symbols")+u;await Promise.race([so(h,{document:r}),new Promise((p,g)=>setTimeout(()=>g(new Error(`Timeout fallback ${l}`)),1e4))]),console.log(`Successfully loaded ${l} from fallback (symbols.ls)`)}catch(h){console.error(`Failed to load ${l} from fallback:`,h)}}}return e},QA=async(e,t)=>{let r=t.window||window,n=t.cdnProvider||oo(t.symbolsConfig)||"esmsh",o=async i=>async(a,l)=>{let u=(i.window||window).packages[a];return typeof u=="function"?u():u},s=async i=>async(a,l=n)=>{let{dependenciesOnDemand:c}=i,u=i.document||document,d=i.window||window;if(!d.packages[a]){let f=Cr()?`?${Math.random()}`:"";if(c&&c[a]){let h=c[a],p=It(a,h,l)+f;try{await i.utils.loadRemoteScript(p,{window:d,document:u})}catch(g){if(console.error(`Failed to load ${a} from ${l}:`,g),l!=="symbols"){let m=It(a,h,"symbols")+f;await i.utils.loadRemoteScript(m,{window:d,document:u})}}}else{let h=It(a,"latest",l)+f;try{await i.utils.loadRemoteScript(h,{window:d,document:u})}catch(p){if(console.error(`Failed to load ${a} from ${l}:`,p),l!=="symbols"){let g=It(a,"latest","symbols")+f;await i.utils.loadRemoteScript(g,{window:d,document:u})}}d.packages[a]="loadedOnDeman"}}return await d.require(a,l)};r.packages?r.packages=me(r.packages,e):r.packages=e,r.require||(t.utils.require=await o(t),r.require=t.utils.require),r.requireOnDemand||(t.utils.requireOnDemand=await s(t),r.requireOnDemand=t.utils.requireOnDemand)},xB=/\s+/g,eE=(e,t)=>typeof e=="function"?e(t,t?.state,t?.context):e,wB=(e,t)=>{let r="";for(let n in e){let o=e[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${eE(o,t)}`)}return r},SB=(e,t,r)=>{if(!e)return;let{key:n}=t;e===!0&&(e=t.classlist={key:n}),typeof e=="string"&&(e=t.classlist={default:e}),e!==null&&typeof e=="object"&&!Array.isArray(e)&&(e=wB(e,t));let o=e.replace(xB," ").trim();if(r&&typeof r.setAttribute=="function")r.setAttribute("class",o);else if(r)try{r.className=o}catch{}return o},_B=()=>(e,t,r)=>{let n=eE(e,t);if(e){let{__ref:o}=t;o.__class.style=n}tE()(t.classlist,t,t.state,!0)},tE=()=>(e,t,r,n)=>{if(t.style&&!n)return;let{__ref:o}=t,{__class:s,__classNames:i}=o;if(!(e===null||typeof e!="object"||Array.isArray(e))){t.class&&(i.classProps=t.class),t.attr?.class&&(i.class=t.attr.class);for(let a in s){let l=s[a];if(!l){delete i[a];continue}let c;typeof l=="string"||typeof l=="number"?c=l:typeof l=="boolean"?c=t.key:c=Dr(l),i[a]=c}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];t.node&&SB(i,t,t.node)}},kB=()=>({style:_B(),classlist:tE()}),CB=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],GA=!1,rE=(e,t)=>{let r=t.document||(t.parent&&t.parent.documentElement?t.parent:null)||document,n=t.initOptions||{},o=t.registry||kB(),s=t.designSystem?ae(fe(t.designSystem),Ri):fe(Ri),i={};for(let h of CB)t[h]!==void 0&&(i[h]=t[h]);let a,l=GA&&!t.skipDesignSystemInit,c=l?`[data-smbls-app="${e}"]`:":root";t.scopeSelector=c;let u=c===":root"?":root:not([data-theme])":`${c}:not([data-theme])`;if(t.skipDesignSystemInit){if(a=R(e)||R(),a&&(a.document=r),a?.CSS_VARS){Fe(a);try{if(ke({[c]:a.CSS_VARS}),a.CSS_MEDIA_VARS){let h={};for(let p in a.CSS_MEDIA_VARS)p.startsWith("@media")?h[p]={[u]:a.CSS_MEDIA_VARS[p]}:h[p]=a.CSS_MEDIA_VARS[p];ke(h)}}finally{Ie()}}}else if(l){let h=Cg(e,s,{cleanBase:!0});for(let g in i)h[g]=i[g];h.document=r;let p=e.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);t.cssPrefix=p,h.varPrefix=p,Fe(h);try{a=yo(h,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:c,...iu,...i,...n})}finally{Ie()}}else{let h=R();h&&(h.document=r),a=yo(s,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:c,...iu,...i,...n}),a&&a!==h&&(a.document=r),GA=!0}let d=a?.CONFIG||a,f=d?.font;if(f){Fe(d);try{for(let h in f){let p=f[h];if(!p?.fontFace)continue;let g=Array.isArray(p.fontFace)?p.fontFace:[p.fontFace];for(let m of g)typeof m=="string"&&m.includes("font-family")&&ke(`@font-face { ${m} }`)}}finally{Ie()}}return[a,o]},nE=(e,t)=>{let r={};t.state&&ae(r,t.state),e&&e.state&&ae(r,e.state);let n=t.polyglot;if(n?.translations){let o=null;try{typeof localStorage<"u"&&(o=localStorage.getItem(n.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let s=o||r.lang||n.defaultLang||"en";o&&o!==r.lang&&(r.lang=o);let i=n.translations[s];if(i&&typeof i=="object")for(let l in i)r[l]=i[l];let a=new Set(n.languages||[]);for(let l in n.translations)!a.has(l)&&r[l]===void 0&&(r[l]=n.translations[l])}return r.isRootState=!0,fe(r)},oE=(e,t)=>{_(e.routes)&&_(t.pages)&&me(e.routes,t.pages);let r=e.routes||t.pages||{};for(let n in r){if(n.charCodeAt(0)===47)continue;let o=n==="index"?"":n;r["/"+o]=r[n],delete r[n]}return r},sE=e=>{ii(e,e.sharedLibraries)};F();var aE="smbls_lang",AB="smbls_t_",EB="smbls_tv_",wo={get(e){try{return window?.localStorage.getItem(e)}catch{return null}},set(e,t){try{window?.localStorage.setItem(e,t)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(e){try{window?.localStorage.removeItem(e)}catch(t){console.warn("[polyglot] localStorage unavailable:",t.message)}}},Li={};function Bi(){let e=this?.context,t=e?.polyglot;return(this?.state?.root||e?.state?.root)?.lang||t?.defaultLang||"en"}function pu(){let e=this?.context?.polyglot;return e?e.languages?e.languages:e.translations?Object.keys(e.translations):[]:[]}var du=(e,t)=>{if(!e||!t)return;if(e[t]!==void 0)return e[t];if(t.indexOf(".")===-1)return;let r=t.split("."),n=e;for(let o=0;o<r.length;o++){if(n==null)return;n=n[r[o]]}return n},iE=(e,t,r)=>{let n=t.lastIndexOf(".");if(n===-1)return e[t+"_"+r];let o=du(e,t.substring(0,n));if(o!=null)return o[t.substring(n+1)+"_"+r]};function hu(e,t){if(!e)return"";let r=this?.context,n=r?.polyglot,o=t||this.call("getActiveLang"),s=this?.state;if(s){let c=iE(s,e,o);if(c!==void 0)return c}if(n?.translations){let c=n.translations[o];if(c){let u=du(c,e);if(u!==void 0)return u}}let a=(s?.root||r?.state?.root)?.translations;if(a){let c=a[o];if(c){let u=du(c,e);if(u!==void 0)return u}}let l=n?.defaultLang||"en";if(s){let c=iE(s,e,l);if(c!==void 0)return c}if(n?.translations){let c=n.translations[l];if(c){let u=du(c,e);if(u!==void 0)return u}}return e}async function gu(e){let t=this?.context,r=t?.polyglot,n=this?.state?.root||t?.state?.root;if(!r||!n)return;let o=r.storagePrefix||AB,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):EB);if(r.translations&&r.translations[e]&&!r.fetch||!r.fetch||r._fetchFailed?.[e])return;if(!n.translations?.[e]){let l=wo.get(o+e);if(l)try{let c=JSON.parse(l),u={translations:{...n.translations||{}}};u.translations[e]=c,n.update&&n.update(u)}catch(c){console.warn("[polyglot] Failed to apply language update:",c.message)}}let i=(r.storagePrefix||"smbls")+":"+e;if(Li[i])return Li[i];let a=this;return Li[i]=(async()=>{try{let l=r.fetch,c=parseInt(wo.get(s+e),10)||0,u,d,f;if(O(l)){let p=await l(e,c,a);if(!p||p.changed===!1)return;u=p.translations||p.data||p,d=p.version||0,f=!0}else if(_(l)){let p=a.getDB||(()=>t.fetch),g=O(p)?await p.call(a):t.fetch;if(!g)return;let m=l.rpc||l.from||"get_translations_if_changed",y={p_lang:e,p_cached_version:c,...l.params||{}},b=await g.rpc({from:m,params:y});if(b.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[e]=!0,b.error;let v=b.data;if(!v||!v.changed)return;u=v.translations||{},d=v.version||0,f=!0}else return;if(!f||!u)return;wo.set(o+e,JSON.stringify(u)),d&&wo.set(s+e,String(d));let h={translations:{...n.translations||{}}};h.translations[e]=u,n.update&&n.update(h)}catch(l){if(r.verbose!==!1){let c=l?.message||l?.details||(typeof l=="object"?JSON.stringify(l):String(l));console.warn("[polyglot] Failed to load translations for",e,"-",c)}}finally{delete Li[i]}})(),Li[i]}async function mu(e){let t=this?.context,r=t?.polyglot,n=this?.state?.root||t?.state?.root;if(!n||this.call("getActiveLang")===e)return;let o=r?.storageLangKey||aE;wo.set(o,e),r?.fetch&&await this.call("loadTranslations",e),t?.state&&(t.state.lang=e);let s=r?.translations?.[e],i={lang:e};if(s&&typeof s=="object")for(let l in s){let c=s[l];(Array.isArray(c)||typeof c=="string"||typeof c=="number")&&(i[l]=c)}if(n.update&&n.update(i),s&&typeof s=="object")for(let l in s){let c=s[l];if(c&&typeof c=="object"&&!Array.isArray(c)&&n[l]&&typeof n[l]=="object"&&!Array.isArray(n[l]))for(let u in c)n[l][u]=c[u]}let a=this?.context?.document||globalThis.document;if(a&&s){let l=a.querySelectorAll("[data-key]");for(let c of l){let u=c.ref;if(!u)continue;let d=u.__ref?.__exec?.text;if(typeof d=="string"&&d.includes("{{"))try{let f=u.call("replaceLiteralsWithObjectFields",d,u.state);f!=null&&c.textContent!==f&&(c.textContent=f)}catch{}}}}async function yu(e,t,r){let n=this?.context,o=n?.polyglot,s=this?.state?.root||n?.state?.root;if(s?.translations?.[t]&&(s.translations[t][e]=r),o?.translations?.[t]&&(o.translations[t][e]=r),o?.fetch&&_(o.fetch)){let i=this.getDB||(()=>n.fetch),a=O(i)?await i.call(this):n.fetch;if(!a)return;let l=o.fetch.table||"translations",c=await a.upsert({from:l,data:{key:e,lang:t,text:r}});if(c?.error)throw c.error;return c.data}}async function eb(){let e=this?.context,t=e?.polyglot;if(!t)return;let r=this?.state?.root||e?.state?.root;if(!r)return;let n=t.storageLangKey||aE,s=wo.get(n)||t.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),t.fetch&&!(t.translations&&t.translations[s])&&await this.call("loadTranslations",s)}function bu(e){try{let t=this?.context?.polyglot,n=(this?.state?.root||this?.context?.state?.root)?.lang||t?.defaultLang||"en",o=this?.state;if(!o)return"";let s=e.lastIndexOf(".");if(s===-1)return o[e+n]??"";let i=e.substring(0,s).split("."),a=o;for(let l=0;l<i.length;l++){if(a==null)return"";a=a[i[l]]}return a==null?"":a[e.substring(s+1)+n]??""}catch{return""}}var vu={name:"polyglot",render(e){e.parent&&e.parent.parent||e.__polyglotInitialized||(e.__polyglotInitialized=!0,eb.call(e))}};var Mi={polyglot:hu,getLocalStateLang:bu,getActiveLang:Bi,getLang:Bi,setLang:mu,getLanguages:pu,loadTranslations:gu,upsertTranslation:yu};ln();var xu={arial:{capHeight:716,ascent:1854,descent:-434,lineGap:67,unitsPerEm:2048},helvetica:{capHeight:714,ascent:770,descent:-230,lineGap:0,unitsPerEm:1e3},"helvetica neue":{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3},georgia:{capHeight:1419,ascent:1878,descent:-449,lineGap:0,unitsPerEm:2048},"times new roman":{capHeight:1356,ascent:1825,descent:-443,lineGap:87,unitsPerEm:2048},"courier new":{capHeight:1170,ascent:1705,descent:-615,lineGap:0,unitsPerEm:2048},verdana:{capHeight:1489,ascent:2059,descent:-430,lineGap:0,unitsPerEm:2048},roboto:{capHeight:1456,ascent:1900,descent:-500,lineGap:0,unitsPerEm:2048},"open sans":{capHeight:1462,ascent:2189,descent:-600,lineGap:0,unitsPerEm:2048},inter:{capHeight:1490,ascent:2048,descent:-512,lineGap:0,unitsPerEm:2048},lato:{capHeight:1434,ascent:1974,descent:-426,lineGap:0,unitsPerEm:2e3},"source sans":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans pro":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans 3":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},montserrat:{capHeight:700,ascent:968,descent:-251,lineGap:0,unitsPerEm:1e3},poppins:{capHeight:700,ascent:1050,descent:-350,lineGap:100,unitsPerEm:1e3},raleway:{capHeight:710,ascent:1e3,descent:-250,lineGap:0,unitsPerEm:1e3},"dm sans":{capHeight:700,ascent:992,descent:-312,lineGap:0,unitsPerEm:1e3},nunito:{capHeight:705,ascent:1011,descent:-353,lineGap:0,unitsPerEm:1e3},"work sans":{capHeight:684,ascent:930,descent:-243,lineGap:0,unitsPerEm:1e3},manrope:{capHeight:708,ascent:980,descent:-300,lineGap:0,unitsPerEm:1e3},"ibm plex sans":{capHeight:698,ascent:1025,descent:-275,lineGap:0,unitsPerEm:1e3},"plus jakarta sans":{capHeight:720,ascent:1060,descent:-300,lineGap:0,unitsPerEm:1e3}},wu=e=>parseFloat(e.toFixed(4)),TB=(e,t,r)=>{let{ascent:n,descent:o,lineGap:s,unitsPerEm:i,capHeight:a}=t,l=Math.abs(o),c=n+l+s,u=r!==void 0?r:c/i*e,d=u/e,f=c/i,h=(n-a+s/2)/i-(d-f)/2,p=(l+s/2)/i-(d-f)/2;return{fontSize:`${wu(e/16)}rem`,lineHeight:`${wu(u)}px`,capHeightTrim:`${wu(-h)}em`,baselineTrim:`${wu(-p)}em`}},OB=(e,t)=>{if(typeof e=="number")return e;let r=t?.designSystem;if(!r)return null;let{typography:n}=r;if(n?.sequence){let s=String(e).toUpperCase(),i=n.sequence[s];if(i)return i.decimal||i.val}let o=parseFloat(e);return isNaN(o)?null:typeof e=="string"&&e.endsWith("rem")?o*(r.typography?.browserDefault||16):o},PB=(e,t)=>{let n=t?.designSystem?.font_family||{};if(e){let s=n[e];if(s?.metrics)return s.metrics;let i=String(e).toLowerCase().replace(/['"]/g,"").trim();if(xu[i])return xu[i]}let o=n.default||Object.keys(n)[0];if(o){let s=n[o];if(s?.metrics)return s.metrics;if(s?.value&&Array.isArray(s.value))for(let i of s.value){let a=i.toLowerCase().replace(/['"]/g,"").trim();if(xu[a])return xu[a]}}return null},lE=(e,t,r,n)=>{if(!e)return;let o=OB(t.fontSize,n);if(!o)return;let s=PB(t.fontFamily,n);if(!s)return;let i=t.lineHeight?parseFloat(t.lineHeight):void 0,{lineHeight:a,capHeightTrim:l,baselineTrim:c}=TB(o,s,i),u={};return t.lineHeight||(u.lineHeight=a),u["::before"]={content:'""',marginBottom:l,display:"table"},u["::after"]={content:'""',marginTop:c,display:"table"},u},cE={name:"capsize",init(e){e.useCapsize===void 0&&e.fontSize&&(e.useCapsize=!0)}};var Ni={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},_t=Object.create(null);for(let e in Ni)_t[Ni[e]]=e;var tb=Object.create(null);for(let e in Ni){let t=Ni[e];if(tb[t])throw new Error(`Duplicate abbreviation "${t}" for "${e}" \u2014 already used by "${tb[t]}"`);tb[t]=e}var zr=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]);function zi(e){return/^[A-Z]/.test(e)}function Wi(e){return/^[:@.!$>&]/.test(e)||e.startsWith("> ")}function RB(e){return e.trim().split(/\s+/).filter(Boolean)}function uE(e){return e.replace(/_/g," ")}function $B(e){if(!e||typeof e!="string")return{};let t={},r=RB(e);for(let n of r){if(n.startsWith("!")){let l=n.slice(1),c=_t[l]||l;t[c]=!1;continue}let o=n.indexOf(":");if(o===-1){let l=_t[n]||n;t[l]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=_t[s]||s;if(i.includes(",")){t[a]=i.split(",").map(uE);continue}t[a]=uE(i)}return t}function Hi(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Hi(r):r});let t={};for(let r in e){let n=e[r];if(zi(r)){t[r]=rb(n);continue}let o=_t[r]||r;if(Wi(r)&&o===r){t[r]=rb(n);continue}if(zr.has(o)||zr.has(r)){t[o]=n;continue}t[o]=rb(n)}return t}function rb(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Hi(t):t}):typeof e=="object"?Hi(e):e}function Vi(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Vi(r):r});let t={};if(typeof e.in=="string"){let r=$B(e.in);for(let n in r)t[n]=r[n]}for(let r in e){if(r==="in")continue;let n=e[r];if(zi(r)){t[r]=nb(n);continue}let o=_t[r]||r;if(Wi(r)&&o===r){t[r]=nb(n);continue}if(zr.has(o)||zr.has(r)){t[o]=n;continue}t[o]=nb(n)}return t}function nb(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Vi(t):t}):typeof e=="object"?Vi(e):e}function IB(e){let t="",r=0;for(;r<e.length;){if(e[r]==="\\"&&r+1<e.length){let n=e[r+1];if(n===","||n==="_"||n==="\\"){t+=n,r+=2;continue}}e[r]==="_"?t+=" ":t+=e[r],r++}return t}function jB(e){let t=[],r="",n=0;for(;n<e.length;){if(e[n]==="\\"&&n+1<e.length){r+=e[n]+e[n+1],n+=2;continue}if(e[n]===","){t.push(r),r="",n++;continue}r+=e[n],n++}return t.push(r),t}function fE(e){return e.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(e)?Number(e.slice(1)):IB(e)}function ob(e){if(!e||typeof e!="string")return{};let t={},r=e.trim().split(/\s+/).filter(Boolean);for(let n of r){if(n.startsWith("!")){let c=n.slice(1),u=_t[c]||c;t[u]=!1;continue}let o=n.indexOf(":");if(o===-1){let c=_t[n]||n;t[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=_t[s]||s,l=jB(i);if(l.length>1){t[a]=l.map(fE);continue}t[a]=fE(i)}return t}function qi(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?qi(r):r});let t={};if(typeof e.in=="string"){let r=ob(e.in);for(let n in r)t[n]=r[n]}for(let r in e){if(r==="in")continue;let n=e[r];if(zi(r)){typeof n=="string"?t[r]=ob(n):t[r]=sb(n);continue}let o=_t[r]||r;if(Wi(r)&&o===r){typeof n=="string"?t[r]=ob(n):t[r]=sb(n);continue}if(zr.has(o)||zr.has(r)){t[o]=n;continue}t[o]=sb(n)}return t}function sb(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?qi(t):t}):typeof e=="object"?qi(e):e}var FB={shorten:Hi,stringify:Vi,stringifyFurther:qi};function DB(e,t){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>t(n));let r={};for(let n in e){let o=e[n];r[n]=o&&typeof o=="object"?t(o):o}return r}var LB=["components","pages","snippets"],Su={name:"shorthand",prepareContext(e){let t=e.shorthand;if(!t)return;let n=FB[t===!0?"shorten":t];if(n){for(let o of LB)e[o]&&(e[o]=DB(e[o],n));e.app&&typeof e.app=="object"&&(e.app=n(e.app))}}};var BB=0,MB=()=>`${Date.now().toString(36)}-${(BB++).toString(36)}`,ne=(e,t,r={})=>({id:MB(),ts:Date.now(),type:e,level:t,...r}),NB=e=>{let t=[],r=e,n=0;for(;r&&n<32;)r.key!=null&&t.unshift(String(r.key)),r=r.parent,n++;return t.join(" > ")},So=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:NB(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null;var _o=e=>e?.context?.analyze,zB={init:{category:"lifecycle",type:"lifecycle",level:"debug"},create:{category:"lifecycle",type:"lifecycle",level:"debug"},render:{category:"lifecycle",type:"lifecycle",level:"debug"},beforeRemove:{category:"lifecycle",type:"lifecycle",level:"debug"},remove:{category:"lifecycle",type:"lifecycle",level:"debug"}},WB=(e,{category:t,type:r,level:n})=>o=>{let s=_o(o);!s||!s.shouldCapture(t)||s.emit(ne(r,n,{hook:e,element:So(o)}))},dE=e=>(t,r)=>{let n=_o(t);!n||!n.shouldCapture("state")||n.emit(ne("state","debug",{hook:e,element:So(t),changedKeys:r?.changedKeys||null}))},Ui={name:"analyze",error(e,t){let r=_o(e);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(ne("error","error",{hook:t?.hook||"error",element:So(e),error:n,message:n?.message||(typeof t?.message=="string"?t.message:null)}))},renderRouter(e){let t=_o(e);t&&(!t.shouldCapture("navigation")&&!t.shouldCapture("lifecycle")||t.emit(ne("navigation","info",{hook:"renderRouter",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=_o(e);!t||!t.shouldCapture("updates")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(e){let t=_o(e);if(!t||!t.shouldCapture("updates"))return;let r=null;e.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-e.__ref.__analyzeUpdateStart,e.__ref.__analyzeUpdateStart=null),t.emit(ne("update","debug",{hook:"update",element:So(e),durationMs:r}))},beforeStateUpdate:dE("beforeStateUpdate"),stateUpdate:dE("stateUpdate")};for(let[e,t]of Object.entries(zB))Ui[e]=WB(e,t);F();var _u={error:0,warn:1,info:2,debug:3,trace:4};var ib=(e,t)=>{let r=_u[e],n=_u[t];return r==null||n==null?!0:r<=n},ku=e=>_u[e]!=null?e:"warn";F();var Cu=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var HB=(e,t)=>{for(let r of t)if(r instanceof RegExp){if(r.test(e))return!0}else if(typeof r=="string"&&e.toLowerCase().includes(r.toLowerCase()))return!0;return!1},VB=(e,t)=>{if(t!=="redact"){if(t==="hash"){let r=0,n=String(e);for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},ab=(e,t,r,n)=>{if(n>6||e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(s=>ab(s,t,r,n+1));let o={};for(let s of Object.keys(e))if(HB(s,t)||Cu.test(s)){let a=VB(e[s],r);a!==void 0&&(o[s]=a)}else o[s]=ab(e[s],t,r,n+1);return o},lb=(e=[],t="mask")=>{let r=Array.isArray(e)?e:[e];return n=>{if(!n)return n;let{id:o,ts:s,type:i,level:a,hook:l,error:c,message:u,durationMs:d,element:f,target:h,...p}=n,g=ab(p,r,t,0);return{id:o,ts:s,type:i,level:a,hook:l,error:c,message:u,durationMs:d,element:f,target:h,...g}}};var pE=e=>{let t=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<"u"?navigator.userAgent:null,n=e.config.buildHash||null,o=e.config.appId||null;return s=>{if(!s)return s;let i=e.context?.routerOptions?.currentRoute||null,a=T,l=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:t,app:{id:o,build:n,route:i},meta:{ua:r,viewport:l}}}},hE=()=>e=>{if(!e)return e;if(e.element&&typeof e.element=="object"){let t=e.element;(t.node||t.parent||t.__ref)&&(e={...e,element:{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,tag:t.tag||null,component:t.component||null}})}return e.error instanceof Error&&(e={...e,error:{name:e.error.name,message:e.error.message,stack:e.error.stack}}),e},gE=(e=1e3,t=500)=>{let r=new Map;return n=>{if(!n)return n;let o=`${n.type}:${n.level}:${n.message||""}:${n.error?.message||""}`,s=r.get(o),i=n.ts||Date.now();if(s&&i-s<e)return null;if(r.set(o,i),r.size>t){let a=Math.ceil(t/10),l=0;for(let c of r.keys()){if(l++>=a)break;r.delete(c)}}return n}},mE=e=>t=>{if(!t)return t;let r=e[t.type];return r==null||r>=1?t:Math.random()>r?null:t},yE={redact:e=>lb(e.config.redact||[],e.config.maskStrategy),enrich:e=>pE(e),summarize:()=>hE(),dedupe:e=>gE(e.config.cache?.dedupeWindowMs||1e3),sample:e=>mE(e.config.sample||{})},qB=(e,t)=>{if(typeof e=="function")return e;if(typeof e=="string"){let r=yE[e];return r?r(t):null}return null},cb=e=>{let t=e.config,r=Array.isArray(t.transformers)?t.transformers.slice():[],n=r.findIndex(s=>s==="redact");n>=0&&r.splice(n,1);let o=[];t.redact!==!1&&o.push(yE.redact(e));for(let s of r){let i=qB(s,e);i&&o.push(i)}return s=>{let i=s;for(let a of o){if(i==null)return null;let l=a(i);if(l==null)return null;if(Array.isArray(l)){let c=o.slice(o.indexOf(a)+1),u=[];for(let d of l){let f=d,h=!1;for(let p of c)if(f=p(f),f==null){h=!0;break}!h&&f!=null&&u.push(f)}return u}i=l}return i}};F();var UB={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},GB="\x1B[0m",Au=typeof T<"u"&&typeof T.document<"u",vE=(e={})=>{let t=e.minLevel||null,r=console.error.bind(console),n=console.warn.bind(console),o=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?r:s.level==="warn"?n:o,a=`[analyze:${s.type}]`;if(Au)i(a,s);else{let l=UB[s.level]||"";i(`${l}${a}${GB}`,s)}}},xE=(e,t={})=>{let r=t.max||e.config.cache?.max||500,n=new Array(r),o=0,s=0,i=a=>{n[o]=a,o=(o+1)%r,s<r&&s++};return e.__memory={push:i,snapshot:()=>{let a=new Array(s),l=(o-s+r)%r;for(let c=0;c<s;c++)a[c]=n[(l+c)%r];return a},query:(a={})=>{let l=e.__memory.snapshot(),c=a.sinceMs?Date.now()-a.sinceMs:0;return l.filter(u=>!(!u||a.level&&u.level!==a.level||a.type&&u.type!==a.type||c&&u.ts<c))},clear:()=>{o=0,s=0}},i},wE=(e={})=>{let t=e.url,r=e.batchMs!=null?e.batchMs:5e3,n=e.maxBatch||50;if(!t)return()=>{};let o=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!o.length)return;let l=JSON.stringify({events:o});o=[];let c=Au?new T.Blob([l],{type:"application/json"}):l;if(Au&&navigator.sendBeacon)try{navigator.sendBeacon(t,c);return}catch{}typeof fetch<"u"&&fetch(t,{method:"POST",headers:{"Content-Type":"application/json","X-Analyze-Beacon":"1"},body:l,keepalive:!0}).catch(()=>{})};Au&&(T.addEventListener("pagehide",i,{passive:!0}),T.addEventListener("beforeunload",i,{passive:!0}));let a=l=>{l&&(o.push(l),o.length>=n?i():s||(s=setTimeout(i,r)))};return a.flush=i,a},bE={console:vE,memory:xE,beacon:wE},ub=e=>{let t=Array.isArray(e.config.sinks)?e.config.sinks:["console"],r=[];for(let n of t)if(typeof n=="function")r.push(n);else if(typeof n=="string"){let o=bE[n];if(!o)continue;r.push(n==="memory"?o(e,{}):o({}))}else if(n&&typeof n=="object"&&n.type){let o=bE[n.type];if(!o)continue;r.push(n.type==="memory"?o(e,n):o(n))}return r};F();var KB=typeof T<"u"&&typeof T.document<"u",ZB=new Set(["password","hidden"]),SE=(e,t)=>{let r=0,n=null,o=null;return(...s)=>{let i=Date.now();i-r>=t?(r=i,e(...s)):(o=s,n||(n=setTimeout(()=>{r=Date.now(),n=null,o&&(e(...o),o=null)},t-(i-r))))}},fb="__analyzeKeyPath",ko=e=>{let t=e.target;if(!t)return{selector:null,key:null,path:null};if(t[fb])return t[fb];let r=[],n=t,o=0,s=null;for(;n&&o<64;){if(n.getAttribute){let a=n.getAttribute("data-key");a&&(s==null&&(s=a),r.unshift(a))}n=n.parentNode,o++}let i;if(r.length)i={selector:null,key:s,path:r.join(" > "),tag:t.tagName?.toLowerCase()||null};else{let a=(t.tagName||"unknown").toLowerCase(),l=t.id?`#${t.id}`:"",c=t.className&&typeof t.className=="string"?"."+t.className.trim().split(/\s+/).slice(0,2).join("."):"";i={selector:`${a}${l}${c}`,key:null,path:null}}try{t[fb]=i}catch{}return i},XB=(e,t)=>{if(t==="mask")return"***";if(t!=="redact"){if(t==="hash"){let r=0,n=String(e||"");for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},YB=e=>!!(!e||e.tagName==="INPUT"&&ZB.has(e.type)||Cu.test(e.name||"")||Cu.test(e.id||"")||e.dataset?.analyze==="skip"),db=e=>{if(!KB)return;let t=e.config.capture,r=e.config.throttle,n=e.__teardown,o=(s,i,a,l)=>{s.addEventListener(i,a,l),n.push(()=>s.removeEventListener(i,a,l))};if(t.errors&&(o(T,"error",s=>{e.emit(ne("error","error",{hook:"window.onerror",message:s.message||null,error:s.error||null,source:s.filename||null,line:s.lineno||null,col:s.colno||null}))}),o(T,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;e.emit(ne("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),t.pointer){o(T,"click",i=>{e.emit(ne("pointer","info",{hook:"click",target:ko(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:_E(i)}))},{passive:!0,capture:!0}),o(T,"dblclick",i=>{e.emit(ne("pointer","info",{hook:"dblclick",target:ko(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(T,"contextmenu",i=>{e.emit(ne("pointer","info",{hook:"contextmenu",target:ko(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=SE(i=>{e.emit(ne("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},r.pointermove);o(T,"pointermove",s,{passive:!0})}if(t.keyboard&&o(T,"keydown",s=>{e.emit(ne("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:_E(s),target:ko(s)}))},{passive:!0,capture:!0}),t.forms){let s=i=>{let a=i.target;if(!a||!a.tagName||!["INPUT","TEXTAREA","SELECT"].includes(a.tagName))return;let c=YB(a),u=a.dataset?.analyze==="track",d=null;u&&!c?d=a.value:e.config.maskFormValues!==!1&&(d=XB(a.value,e.config.maskStrategy)),e.emit(ne("forms","info",{hook:i.type,target:ko(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:d}))};o(T,"input",s,{passive:!0,capture:!0}),o(T,"change",s,{passive:!0,capture:!0}),o(T,"submit",i=>{e.emit(ne("forms","info",{hook:"submit",target:ko(i)}))},{passive:!0,capture:!0})}if(t.scroll){let s=SE(()=>{e.emit(ne("scroll","trace",{hook:"scroll",x:T.scrollX,y:T.scrollY}))},r.scroll);o(T,"scroll",s,{passive:!0,capture:!0})}if(t.viewport){let s=vs(()=>{e.emit(ne("viewport","info",{hook:"resize",w:T.innerWidth,h:T.innerHeight,dpr:T.devicePixelRatio||1}))},r.resize);o(T,"resize",s,{passive:!0}),o(T,"orientationchange",()=>{e.emit(ne("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(T.document,"visibilitychange",()=>{e.emit(ne("viewport","info",{hook:"visibilitychange",hidden:T.document.hidden}))},{passive:!0}),e.emit(ne("viewport","info",{hook:"initial",w:T.innerWidth,h:T.innerHeight,dpr:T.devicePixelRatio||1}))}if(t.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{e.emit(ne("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(JB)}))}catch{}return i.apply(console,a)},n.push(()=>{console[s]=i})}if(t.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let l of a.getEntries())e.emit(ne("performance","info",{hook:l.entryType,name:l.name,startTime:l.startTime,duration:l.duration,value:l.value!=null?l.value:null}))}),i=["largest-contentful-paint","layout-shift","longtask","paint","first-input","event"];for(let a of i)try{s.observe({type:a,buffered:!0})}catch{}n.push(()=>s.disconnect())}catch{}},_E=e=>({shift:!!e.shiftKey,ctrl:!!e.ctrlKey,alt:!!e.altKey,meta:!!e.metaKey}),JB=e=>{if(e==null)return e;if(typeof e=="object")try{return JSON.parse(JSON.stringify(e))}catch{return String(e)}return e};F();var QB=typeof T<"u"&&typeof T.document<"u";var pb=e=>{if(QB&&e.config.capture.network){if(typeof T.fetch=="function"){let t=T.fetch.bind(T),r=function(n,o){if(o?.headers?.["X-Analyze-Beacon"])return t(n,o);let s=typeof n=="string"?n:n&&n.url||"",i=(o?.method||typeof n=="object"&&n?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return e.emit(ne("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),t(n,o).then(l=>{let c=(typeof performance<"u"?performance.now():Date.now())-a;return e.emit(ne("network",l.ok?"info":"warn",{hook:"fetch.success",source:"window.fetch",url:s,method:i,status:l.status,ok:l.ok,durationMs:c})),l}).catch(l=>{let c=(typeof performance<"u"?performance.now():Date.now())-a;throw e.emit(ne("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:l,durationMs:c})),l})};T.fetch=r,e.__teardown.push(()=>{T.fetch=t})}if(typeof T.XMLHttpRequest=="function"){let t=T.XMLHttpRequest,r=t.prototype.open,n=t.prototype.send;t.prototype.open=function(o,s){return this.__analyze={method:String(o).toUpperCase(),url:String(s)},r.apply(this,arguments)},t.prototype.send=function(o){let s=this.__analyze;if(!s)return n.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();e.emit(ne("network","info",{hook:"xhr.start",source:"xhr",url:s.url,method:s.method}));let a=()=>{let c=(typeof performance<"u"?performance.now():Date.now())-i,u=this.status>=200&&this.status<400;e.emit(ne("network",u?"info":"warn",{hook:"xhr.success",source:"xhr",url:s.url,method:s.method,status:this.status,ok:u,durationMs:c}))},l=()=>{let c=(typeof performance<"u"?performance.now():Date.now())-i;e.emit(ne("network","error",{hook:"xhr.error",source:"xhr",url:s.url,method:s.method,status:this.status,durationMs:c}))};return this.addEventListener("loadend",a),this.addEventListener("error",l),n.apply(this,arguments)},e.__teardown.push(()=>{t.prototype.open=r,t.prototype.send=n})}}};var eM={errors:!0,warnings:!0,pointer:!1,keyboard:!1,forms:!1,scroll:!1,viewport:!1,network:!1,performance:!1,navigation:!1,console:!1,lifecycle:!1,state:!1,updates:!1,replay:!1,telemetry:!1},tM={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},rM={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},nM=e=>{let t={...eM,...e};return t.replay&&Object.assign(t,tM),t.telemetry&&Object.assign(t,rM),t},oM=64,sM=()=>{if(typeof T>"u"||!T.location)return null;try{let t=new URLSearchParams(T.location.search).get("analyze");return t||null}catch{return null}},hb=(e={})=>{let t=e===!0?{}:{...e};t.capture=nM(t.capture||{});let r=sM();(r==="debug"||t.debug)&&(t.level="debug",t.debug=!0,t.capture={...t.capture,lifecycle:!0,state:!0,updates:!0,console:!0}),r==="off"&&(t.enabled=!1),t.level=ku(t.level||"warn"),t.cache={max:500,dedupeWindowMs:1e3,...t.cache||{}},t.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...t.throttle||{}},t.maskFormValues==null&&(t.maskFormValues=!0),t.maskStrategy||(t.maskStrategy="mask"),Array.isArray(t.sinks)||(t.sinks=["console","memory"]),Array.isArray(t.transformers)||(t.transformers=["enrich","summarize"]);let n={config:t,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},o=()=>{n.__pipeline||(n.__pipeline=cb(n),n.__sinks=ub(n))};return n.shouldCapture=s=>n.config.enabled===!1?!1:!!n.config.capture[s],n.emit=s=>{if(s&&n.config.enabled!==!1&&!n.__paused&&ib(s.level,n.config.level)){if(!n.__ready){if(s.level!=="error"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<oM&&n.__preBuffer.push(s);return}o(),kE(n,s)}},n.activate=s=>{if(n.context==null&&(n.context=s||null),n.__ready)return;n.__ready=!0;let i=n.__preBuffer;if(n.__preBuffer=[],i.length){o();for(let a of i)kE(n,a)}try{db(n)}catch(a){console.error("[analyze] browser attach error:",a)}try{pb(n)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of n.__onActivate||[])try{a(n)}catch(l){console.error("[analyze] onActivate error:",l)}},n.pause=()=>{n.__paused=!0},n.resume=()=>{n.__paused=!1},n.setLevel=s=>{n.config.level=ku(s)},n.setCapture=(s,i)=>{n.config.capture[s]=!!i},n.query=s=>n.__memory?n.__memory.query(s):[],n.snapshot=()=>n.__memory?n.__memory.snapshot():[],n.emitNetwork=s=>{if(!n.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:"network",level:a,hook:`fetch.${i||"unknown"}`,...s})},n.flush=()=>{if(n.__sinks)for(let s of n.__sinks)typeof s.flush=="function"&&s.flush()},n.replay=()=>({initialSnapshot:n.__initialSnapshot,events:n.snapshot()}),n.destroy=()=>{for(let s of n.__teardown)try{s()}catch{}n.__teardown=[],n.__ready=!1,n.__paused=!0},n.__onActivate=[],n.onActivate=s=>{n.__onActivate.push(s)},n},kE=(e,t)=>{let r=e.__pipeline(t);if(r==null)return;let n=Array.isArray(r)?r:[r];for(let o of n){if(typeof e.config.onEvent=="function")try{e.config.onEvent(o)}catch{}for(let s of e.__sinks)try{s(o)}catch(i){console.error("[analyze] sink error:",i)}}};var Nt=Object.create(null);Nt.open="0";Nt.close="1";Nt.ping="2";Nt.pong="3";Nt.message="4";Nt.upgrade="5";Nt.noop="6";var Gi=Object.create(null);Object.keys(Nt).forEach(e=>{Gi[Nt[e]]=e});var Ki={type:"error",data:"parser error"};var EE=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",TE=typeof ArrayBuffer=="function",OE=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Zi=({type:e,data:t},r,n)=>EE&&t instanceof Blob?r?n(t):CE(t,n):TE&&(t instanceof ArrayBuffer||OE(t))?r?n(t):CE(new Blob([t]),n):n(Nt[e]+(t||"")),CE=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function AE(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var gb;function PE(e,t){if(EE&&e.data instanceof Blob)return e.data.arrayBuffer().then(AE).then(t);if(TE&&(e.data instanceof ArrayBuffer||OE(e.data)))return t(AE(e.data));Zi(e,!1,r=>{gb||(gb=new TextEncoder),t(gb.encode(r))})}var RE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<RE.length;e++)Xi[RE.charCodeAt(e)]=e;var $E=e=>{let t=e.length*.75,r=e.length,n,o=0,s,i,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n<r;n+=4)s=Xi[e.charCodeAt(n)],i=Xi[e.charCodeAt(n+1)],a=Xi[e.charCodeAt(n+2)],l=Xi[e.charCodeAt(n+3)],u[o++]=s<<2|i>>4,u[o++]=(i&15)<<4|a>>2,u[o++]=(a&3)<<6|l&63;return c};var iM=typeof ArrayBuffer=="function",Yi=(e,t)=>{if(typeof e!="string")return{type:"message",data:IE(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:aM(e.substring(1),t)}:Gi[r]?e.length>1?{type:Gi[r],data:e.substring(1)}:{type:Gi[r]}:Ki},aM=(e,t)=>{if(iM){let r=$E(e);return IE(r,t)}else return{base64:!0,data:e}},IE=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer;var jE="",FE=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((s,i)=>{Zi(s,!1,a=>{n[i]=a,++o===r&&t(n.join(jE))})})},DE=(e,t)=>{let r=e.split(jE),n=[];for(let o=0;o<r.length;o++){let s=Yi(r[o],t);if(n.push(s),s.type==="error")break}return n};function LE(){return new TransformStream({transform(e,t){PE(e,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,n)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var mb;function Eu(e){return e.reduce((t,r)=>t+r.length,0)}function Tu(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;o<t;o++)r[o]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function BE(e,t){mb||(mb=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(Eu(r)<1)break;let l=Tu(r,1);s=(l[0]&128)===128,o=l[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(Eu(r)<2)break;let l=Tu(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(Eu(r)<8)break;let l=Tu(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(Ki);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(Eu(r)<o)break;let l=Tu(r,o);a.enqueue(Yi(s?l:mb.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(Ki);break}}}})}var yb=4;function de(e){if(e)return lM(e)}function lM(e){for(var t in de.prototype)e[t]=de.prototype[t];return e}de.prototype.on=de.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};de.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};de.prototype.off=de.prototype.removeListener=de.prototype.removeAllListeners=de.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};de.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,t)}return this};de.prototype.emitReserved=de.prototype.emit;de.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};de.prototype.hasListeners=function(e){return!!this.listeners(e).length};var fr=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0),qe=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),ME="arraybuffer";function Ou(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var cM=qe.setTimeout,uM=qe.clearTimeout;function dr(e,t){t.useNativeTimers?(e.setTimeoutFn=cM.bind(qe),e.clearTimeoutFn=uM.bind(qe)):(e.setTimeoutFn=qe.setTimeout.bind(qe),e.clearTimeoutFn=qe.clearTimeout.bind(qe))}var fM=1.33;function NE(e){return typeof e=="string"?dM(e):Math.ceil((e.byteLength||e.size)*fM)}function dM(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function Pu(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function zE(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function WE(e){let t={},r=e.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}var Ru=class extends Error{constructor(t,r,n){super(t),this.description=r,this.context=n,this.type="TransportError"}},pr=class extends de{constructor(t){super(),this.writable=!1,dr(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,r,n){return super.emitReserved("error",new Ru(t,r,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let r=Yi(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,r={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){let t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){let r=zE(t);return r.length?"?"+r:""}};var Ji=class extends pr{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";let r=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};DE(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,FE(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=Pu()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var HE=!1;try{HE=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var VE=HE;function pM(){}var bb=class extends Ji{constructor(t){if(super(t),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||n!==t.port}}doWrite(t,r){let n=this.request({method:"POST",data:t});n.on("success",r),n.on("error",(o,s)=>{this.onError("xhr post error",o,s)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=t}},Wr=class e extends de{constructor(t,r,n){super(),this.createRequest=t,dr(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=Ou(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=pM,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Wr.requestsCount=0;Wr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",qE);else if(typeof addEventListener=="function"){let e="onpagehide"in qe?"pagehide":"unload";addEventListener(e,qE,!1)}}function qE(){for(let e in Wr.requests)Wr.requests.hasOwnProperty(e)&&Wr.requests[e].abort()}var hM=(function(){let e=UE({xdomain:!1});return e&&e.responseType!==null})(),Hr=class extends bb{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=hM&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Wr(UE,this.uri(),t)}};function UE(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||VE))return new XMLHttpRequest}catch{}if(!t)try{return new qe[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var GE=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",xb=class extends pr{get name(){return"websocket"}doOpen(){let t=this.uri(),r=this.opts.protocols,n=GE?{}:Ou(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,n)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r<t.length;r++){let n=t[r],o=r===t.length-1;Zi(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&fr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=Pu()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},vb=qe.WebSocket||qe.MozWebSocket,Vr=class extends xb{createSocket(t,r,n){return GE?new vb(t,r,n):r?new vb(t,r):new vb(t)}doWrite(t,r){this.ws.send(r)}};var Co=class extends pr{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let r=BE(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),o=LE();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();let s=()=>{n.read().then(({done:a,value:l})=>{a||(this.onPacket(l),s())}).catch(a=>{})};s();let i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let r=0;r<t.length;r++){let n=t[r],o=r===t.length-1;this._writer.write(n).then(()=>{o&&fr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var wb={websocket:Vr,webtransport:Co,polling:Hr};var gM=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,mM=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ao(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=gM.exec(e||""),s={},i=14;for(;i--;)s[mM[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=yM(s,s.path),s.queryKey=bM(s,s.query),s}function yM(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function bM(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Sb=typeof addEventListener=="function"&&typeof removeEventListener=="function",$u=[];Sb&&addEventListener("offline",()=>{$u.forEach(e=>e())},!1);var En=class e extends de{constructor(t,r){if(super(),this.binaryType=ME,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=Ao(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=Ao(r.host).host);dr(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=WE(this.opts.query)),Sb&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},$u.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=yb,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",e.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){let o=this.writeBuffer[n].data;if(o&&(r+=NE(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,fr(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let s={type:t,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Sb&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=$u.indexOf(this._offlineEventListener);n!==-1&&$u.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};En.protocol=yb;var Iu=class extends En{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let r=this.createTransport(t),n=!1;En.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",d=>{if(!n)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;En.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(u(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let f=new Error("probe error");f.transport=r.name,this.emitReserved("upgradeError",f)}}))};function s(){n||(n=!0,u(),r.close(),r=null)}let i=d=>{let f=new Error("probe error: "+d);f.transport=r.name,s(),this.emitReserved("upgradeError",f)};function a(){i("transport closed")}function l(){i("socket closed")}function c(d){r&&d.name!==r.name&&s()}let u=()=>{r.removeListener("open",o),r.removeListener("error",i),r.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};r.once("open",o),r.once("error",i),r.once("close",a),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let r=[];for(let n=0;n<t.length;n++)~this.transports.indexOf(t[n])&&r.push(t[n]);return r}},Eo=class extends Iu{constructor(t,r={}){let n=typeof t=="object"?t:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>wb[o]).filter(o=>!!o)),super(t,n)}};var GZ=Eo.protocol;function KE(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=Ao(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let s=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+s+":"+n.port+t,n.href=n.protocol+"://"+s+(r&&r.port===n.port?"":":"+n.port),n}var Ob={};P(Ob,{Decoder:()=>Eb,Encoder:()=>Ab,PacketType:()=>Y,isPacketValid:()=>MM,protocol:()=>sT});var xM=typeof ArrayBuffer=="function",wM=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ZE=Object.prototype.toString,SM=typeof Blob=="function"||typeof Blob<"u"&&ZE.call(Blob)==="[object BlobConstructor]",_M=typeof File=="function"||typeof File<"u"&&ZE.call(File)==="[object FileConstructor]";function ea(e){return xM&&(e instanceof ArrayBuffer||wM(e))||SM&&e instanceof Blob||_M&&e instanceof File}function Qi(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(Qi(e[r]))return!0;return!1}if(ea(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Qi(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Qi(e[r]))return!0;return!1}function XE(e){let t=[],r=e.data,n=e;return n.data=_b(r,t),n.attachments=t.length,{packet:n,buffers:t}}function _b(e,t){if(!e)return e;if(ea(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){let r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=_b(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=_b(e[n],t));return r}return e}function YE(e,t){return e.data=kb(e.data,t),delete e.attachments,e}function kb(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=kb(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=kb(e[r],t));return e}var nT=mw(rT(),1),Cb=(0,nT.default)("socket.io-parser"),oT=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],sT=5,Y;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Y||(Y={}));var Ab=class{constructor(t){this.replacer=t}encode(t){return Cb("encoding packet %j",t),(t.type===Y.EVENT||t.type===Y.ACK)&&Qi(t)?this.encodeAsBinary({type:t.type===Y.EVENT?Y.BINARY_EVENT:Y.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===Y.BINARY_EVENT||t.type===Y.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),Cb("encoded %j as %s",t,r),r}encodeAsBinary(t){let r=XE(t),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},Eb=class e extends de{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);let n=r.type===Y.BINARY_EVENT;n||r.type===Y.BINARY_ACK?(r.type=n?Y.EVENT:Y.ACK,this.reconstructor=new Tb(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(ea(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0,n={type:Number(t.charAt(0))};if(Y[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===Y.BINARY_EVENT||n.type===Y.BINARY_ACK){let s=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);let i=t.substring(s,r);if(i!=Number(i)||t.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!iT(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=a}if(t.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(s,r)}else n.nsp="/";let o=t.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=t.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===t.length)break}n.id=Number(t.substring(s,r+1))}if(t.charAt(++r)){let s=this.tryParse(t.substr(r));if(e.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return Cb("decoded %s as %j",t,n),n}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case Y.CONNECT:return Du(r);case Y.DISCONNECT:return r===void 0;case Y.CONNECT_ERROR:return typeof r=="string"||Du(r);case Y.EVENT:case Y.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&oT.indexOf(r[0])===-1);case Y.ACK:case Y.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Tb=class{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){let r=YE(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function DM(e){return typeof e=="string"}var iT=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function LM(e){return e===void 0||iT(e)}function Du(e){return Object.prototype.toString.call(e)==="[object Object]"}function BM(e,t){switch(e){case Y.CONNECT:return t===void 0||Du(t);case Y.DISCONNECT:return t===void 0;case Y.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&oT.indexOf(t[0])===-1);case Y.ACK:return Array.isArray(t);case Y.CONNECT_ERROR:return typeof t=="string"||Du(t);default:return!1}}function MM(e){return DM(e.nsp)&&LM(e.id)&&BM(e.type,e.data)}function ot(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var NM=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Ro=class extends de{constructor(t,r,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[ot(t,"open",this.onopen.bind(this)),ot(t,"packet",this.onpacket.bind(this)),ot(t,"error",this.onerror.bind(this)),ot(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){var n,o,s;if(NM.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(r.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let i={type:Y.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let u=this.ids++,d=r.pop();this._registerAckCallback(u,d),i.id=u}let a=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,l=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(t,r){var n;let o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[t]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);r.call(this,new Error("operation has timed out"))},o),i=(...a)=>{this.io.clearTimeoutFn(s),r.apply(this,a)};i.withError=!0,this.acks[t]=i}emitWithAck(t,...r){return new Promise((n,o)=>{let s=(i,a)=>i?o(i):n(a);s.withError=!0,r.push(s),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...s)=>(this._queue[0],o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...s)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Y.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(n=>String(n.id)===t)){let n=this.acks[t];delete this.acks[t],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Y.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Y.EVENT:case Y.BINARY_EVENT:this.onevent(t);break;case Y.ACK:case Y.BINARY_ACK:this.onack(t);break;case Y.DISCONNECT:this.ondisconnect();break;case Y.CONNECT_ERROR:this.destroy();let n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){let r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){let r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:Y.ACK,id:t,data:o}))}}onack(t){let r=this.acks[t.id];typeof r=="function"&&(delete this.acks[t.id],r.withError&&t.data.unshift(null),r.apply(this,t.data))}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Y.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let r=this._anyListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let n of r)n.apply(this,t.data)}}};function On(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}On.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};On.prototype.reset=function(){this.attempts=0};On.prototype.setMin=function(e){this.ms=e};On.prototype.setMax=function(e){this.max=e};On.prototype.setJitter=function(e){this.jitter=e};var $o=class extends de{constructor(t,r){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,dr(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new On({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;let o=r.parser||Ob;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Eo(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=ot(r,"open",function(){n.onopen(),t&&t()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},i=ot(r,"error",s);if(this._timeout!==!1){let a=this._timeout,l=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),r.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(ot(t,"ping",this.onping.bind(this)),ot(t,"data",this.ondata.bind(this)),ot(t,"error",this.onerror.bind(this)),ot(t,"close",this.onclose.bind(this)),ot(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){fr(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new Ro(this,t,r),this.nsps[t]=n),n}_destroy(t){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(t){let r=this.encoder.encode(t);for(let n=0;n<r.length;n++)this.engine.write(r[n],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}};var ta={};function Io(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=KE(e,t.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=ta[o]&&s in ta[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||i,l;return a?l=new $o(n,t):(ta[o]||(ta[o]=new $o(n,t)),l=ta[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(Io,{Manager:$o,Socket:Ro,io:Io,connect:Io});F();var zM=new Set(["__proto__","constructor","prototype"]),aT=e=>{if(!Array.isArray(e))return!1;for(let t=0;t<e.length;t++)if(zM.has(e[t]))return!1;return!0},WM=(e,t)=>{!e||!aT(t)||t.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},e)},HM=(e,t,r,n=!1)=>{!e||!aT(t)||t.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&n&&(o[s]={}),o[s];o[s]=r}},e)},lT=(e,t)=>{let r=new Set;if(!Array.isArray(t))return r;for(let[n,o,s]of t)if(!(!Array.isArray(o)||!o.length))switch(r.add(o[0]),n){case"delete":WM(e,o);break;case"update":case"set":HM(e,o,s,!0);break;default:break}return r};var VM=Object.create,b0=Object.defineProperty,qM=Object.getOwnPropertyDescriptor,UM=Object.getOwnPropertyNames,GM=Object.getPrototypeOf,KM=Object.prototype.hasOwnProperty,Z=(e,t)=>()=>(e&&(t=e(e=0)),t),v0=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$=(e,t)=>{for(var r in t)b0(e,r,{get:t[r],enumerable:!0})},ZM=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of UM(t))!KM.call(e,o)&&o!==r&&b0(e,o,{get:()=>t[o],enumerable:!(n=qM(t,o))||n.enumerable});return e},XM=(e,t,r)=>(r=e!=null?VM(GM(e)):{},ZM(t||!e||!e.__esModule?b0(r,"default",{value:e,enumerable:!0}):r,e)),x0,w0,se,ye,od=Z(()=>{"use strict";x0=globalThis,w0=globalThis,se=globalThis,ye=se.document}),Ua,sd,at,id=Z(()=>{"use strict";od(),Ua=e=>(typeof Node=="object"?e instanceof se.Node:e&&typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string")||!1,sd=e=>(typeof HTMLElement=="object"?e instanceof se.HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string")||!1,at=e=>typeof se<"u"&&(se.Node&&e instanceof se.Node||se.Window&&e instanceof se.Window||e===se||e===document)}),B,I,Dn,L,af,lf,q,cf,oe,Ln,Tt,da,Qt,S0,Be=Z(()=>{"use strict";id(),B=e=>e===null?!1:typeof e=="object"&&e.constructor===Object,I=e=>typeof e=="string",Dn=e=>typeof e=="number",L=e=>typeof e=="function",af=e=>e===!0||e===!1,lf=e=>e===null,q=e=>Array.isArray(e),cf=e=>e instanceof Date,oe=e=>e===null?!1:typeof e=="object",Ln=e=>e!==void 0,Tt=e=>e===void 0,da={boolean:af,array:q,object:B,string:I,date:cf,number:Dn,null:lf,function:L,objectLike:oe,node:Ua,htmlElement:sd,defined:Ln},Qt=e=>(...t)=>t.some(r=>da[r](e)),S0=e=>(...t)=>!t.some(r=>da[r](e))}),_0,k0,C0,A0,Fa,ad,E0,T0,ld,O0,P0,R0,$0,I0,j0,F0,Da,cd,Ga=Z(()=>{"use strict";Xr(),Be(),_0=(e,t)=>t.every(r=>e.includes(r)),k0=(e,t)=>{let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r},C0=(e,t)=>{if(I(t)&&(t=parseInt(t)),Dn(t)){if(t<0||t>=e.length||isNaN(t))throw new Error("Invalid index");e.splice(t,1)}else throw new Error("Invalid index");return e},A0=(e,t,r)=>{t<0||r<0||t>=e.length||r>=e.length||([e[t],e[r]]=[e[r],e[t]])},Fa=(...e)=>[].concat(...e),ad=(e,t=[])=>e.reduce((r,n)=>tr(r,rt(n,{exclude:t}),t),{}),E0=(e,t)=>{let r=e.indexOf(t);return r!==-1?e.slice(0,r):e},T0=(e,t)=>{if(!q(e))return;let r=e.indexOf(t);return r!==-1?e.slice(r+1):e},ld=(e,t)=>{let r=e.indexOf(t);if(r>-1){let n=[...e];return n.splice(r,1),n}return e},O0=(e,t)=>e.filter(r=>r!==t),P0=(e,t)=>{let r=[];for(let n=0;n<e.length;n++)r.push(e[n]),n<e.length-1&&r.push(t);return r},R0=(e,t,r)=>{let n=[...e],o=n.indexOf(t),s=n.indexOf(r);if(o!==-1&&s!==-1){let i=n.splice(o,1)[0],a=s<o?s:s+1;n.splice(a,0,i)}return n},$0=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},I0=(e,t)=>e.filter(r=>!t.includes(r)),j0=(e,t)=>{let r=new Set(t);return e.filter(n=>!r.has(n))},F0=(e,t)=>{if(!e)return 0;let r=0;for(let n=0;n<t.length;n++)e.includes(t[n])&&r++;return r},Da=e=>q(e)?[...new Set(e)]:e,cd=(e,t)=>{for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!1,configurable:!0,writable:!0})}});function fO(e,t,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!e.includes(o))return e;let s=dO[n],i=t||this.state||{},a=this;return e.replace(s,(l,c,u,d)=>{let f=u.trim();if(d){let h=a?.context,p=h?.functions?.[d]||h?.utils?.[d]||h?.methods?.[d]||h?.snippets?.[d]||a?.[d];if(p&&typeof p=="function")try{return String(p.call(a,f)??"")}catch{return""}return""}if(c){let h=(c.match(/\.\.\//g)||[]).length,p=i;for(let m=0;m<h;m++){if(!p||!p.parent)return"";p=p.parent}if(f==="parent")return String(p.value??"");let g=zo(p,f);return String(g??"")}else{let h=zo(i,f);if(h!=null)return String(h);let p=a?.context?.polyglot;if(p?.translations){let g=i?.root?.lang||i?.lang||a?.context?.state?.lang||p.defaultLang||"en",m=p.translations[g];if(m){let b=zo(m,f);if(b!=null&&typeof b!="object")return String(b);for(let v in m){let x=m[v];if(x&&typeof x=="object"&&!Array.isArray(x)){let w=zo(x,f);if(w!=null&&typeof w!="object")return String(w)}}}let y=zo(p.translations,f);if(y!=null&&typeof y!="object")return String(y)}return""}})}var ud,D0,dO,zo,Ka,L0,cT,B0,M0,N0,uT,z0,W0,fd=Z(()=>{"use strict";ud=(e,t)=>{for(let r of t)if(e.includes(r))return!0;return!1},D0=(e,t)=>{let r=new RegExp(`[${t.join("\\")}]`,"g");return e.replace(r,"")},dO={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},zo=(e,t)=>t.split(".").reduce((r,n)=>r?.[n],e),Ka=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`,L0=(e,t)=>{let r=e.split(`
|
|
72
|
-
`),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${t}\\b\\s*:\\s*`),l=0,c=!1;for(let u=0;u<r.length;u++)if(a.test(r[u])&&!c){if(c=!0,n=u+1,s=r[u].indexOf(t)+1,r[u].includes("{}")){o=n,i=r[u].indexOf("{}")+3;break}let d=r[u].slice(s+t.length);if(d.includes("{")||d.includes("["))l=1;else{o=u+1,i=r[u].length+1;break}}else if(c&&(l+=(r[u].match(/{/g)||[]).length,l+=(r[u].match(/\[/g)||[]).length,l-=(r[u].match(/}/g)||[]).length,l-=(r[u].match(/]/g)||[]).length,l===0)){o=u+1,i=r[u].lastIndexOf("}")!==-1?r[u].lastIndexOf("}")+2:r[u].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},
|
|
73
|
-
`).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),
|
|
74
|
-
`;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let i=e[s],a=!1;for(let c=0;c<s.length;c++)if(
|
|
75
|
-
`;for(let c of i)oe(c)&&c!==null?o+=`${n} ${
|
|
76
|
-
`:
|
|
66
|
+
)`};var Q$={primary:{"@dark":{color:"white",background:"blue",".color-only":{color:"blue"},".inactive":{background:"gray+16"},".gradient":{color:"white",background:"gradient-blue"}},"@light":{color:"white",background:"gradient-blue",".color-only":{color:"blue"},".gradient":{color:"white",background:"gradient-colorful"}}},secondary:{"@dark":{color:"white",background:"green",".color-only":{color:"green"}},"@light":{color:"white",background:"green",".color-only":{color:"green"}},".child":"--primary"},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light",":hover":{color:"gray=95",background:"gradient-light-active"},":focus":{color:"gray=120",background:"gradient-light-active"},":active":{color:"gray=120",background:"gradient-light-active"},".active":{color:"gray=120",background:"gradient-light-active"}},"@light":{color:"gray3",background:"gradient-dark",":hover":{color:"gray1",background:"gradient-dark-active"},":active":{color:"gray1",background:"gradient-dark-active"},".active":{color:"gray1",background:"gradient-dark-active"}}}},eI={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},tI={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"},".light":{color:"white",background:"gray3"},".dark":{color:"white",background:"black.35"}},card:{"@light":{background:"gray.975+150"},"@dark":{color:"white",background:"gray.975-56"},".child":{color:"white",background:"gray3"},".secondary":{color:"white",background:"gradient-blue-dark",".child":{color:"white",background:"black.35"}}},dialog:{"@dark":{color:"white",background:"gray.92",".helper":{color:"white",background:"black"}},"@light":{color:"currentColor",background:"gray.1"}}},Jw={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...Q$,...eI,...tI,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var Qw={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var eS={ratio:1.618,subSequence:!0};var tS={SourceSans:[{url:""}]},rS={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif",metrics:{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3}}};var nS={symbols:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',logo:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',arrowDownCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-circle"><circle cx="12" cy="12" r="10"/><path d="M8 12l4 4 4-4M12 8v8"/></svg>',arrowDownLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-left"><path d="M17 7L7 17M17 17H7V7"/></svg>',arrowDownRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-right"><path d="M7 7l10 10M17 7v10H7"/></svg>',arrowDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down"><path d="M12 5v14M19 12l-7 7-7-7"/></svg>',arrowLeftCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left-circle"><circle cx="12" cy="12" r="10"/><path d="M12 8l-4 4 4 4M16 12H8"/></svg>',arrowLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>',arrowRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><path d="M5 12h14M12 5l7 7-7 7"/></svg>',arrowRightCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right-circle"><circle cx="12" cy="12" r="10"/><path d="M12 16l4-4-4-4M8 12h8"/></svg>',arrowUpCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-circle"><circle cx="12" cy="12" r="10"/><path d="M16 12l-4-4-4 4M12 16V8"/></svg>',arrowUpLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-left"><path d="M17 17L7 7M7 17V7h10"/></svg>',arrowUpRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-right"><path d="M7 17L17 7M7 7h10v10"/></svg>',arrowUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up"><path d="M12 19V5M5 12l7-7 7 7"/></svg>',checkCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 11-5.93-9.14"/><path d="M22 4L12 14.01l-3-3"/></svg>',check:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"><path d="M20 6L9 17l-5-5"/></svg>',chevronDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><path d="M6 9l6 6 6-6"/></svg>',chevronLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-left"><path d="M15 18l-6-6 6-6"/></svg>',chevronRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><path d="M9 18l6-6-6-6"/></svg>',chevronUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-up"><path d="M18 15l-6-6-6 6"/></svg>',copy:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-copy"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>',eyeOff:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye-off"><path d="M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24M1 1l22 22"/></svg>',eye:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>',info:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>',lock:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-lock"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0110 0v4"/></svg>',minus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-minus"><path d="M5 12h14"/></svg>',sun:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/></svg>',moon:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg>',moreHorizontal:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-horizontal"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg>',moreVertical:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-vertical"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></svg>',send:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-send"><path d="M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"/></svg>',smile:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-smile"><circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01"/></svg>',search:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"/><path d="M21 21l-4.35-4.35"/></svg>',upload:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-upload"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12"/></svg>',video:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-video"><path d="M23 7l-7 5 7 5V7z"/><rect x="1" y="5" width="15" height="14" rx="2" ry="2"/></svg>',x:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><path d="M18 6L6 18M6 6l12 12"/></svg>',star:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>',plus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus"><path d="M12 5v14M5 12h14"/></svg>'};var oS={tv:"(min-width: 2780px)",screenL:"(max-width: 1920px)","screenL<":"(min-width: 1920px)",screenM:"(max-width: 1680px)","screenM<":"(min-width: 1680px)",screenS:"(max-width: 1440px)","screenS<":"(min-width: 1440px)",tabletL:"(max-width: 1366px)","tabletL<":"(min-width: 1366px)",tabletM:"(max-width: 1280px)","tabletM<":"(min-width: 1280px)",tabletS:"(max-width: 1024px)","tabletS<":"(min-width: 1024px)",mobileL:"(max-width: 768px)","mobileL<":"(min-width: 768px)",mobileM:"(max-width: 560px)","mobileM<":"(min-width: 560px)",mobileS:"(max-width: 480px)","mobileS<":"(min-width: 480px)",mobileXS:"(max-width: 375px)","mobileXS<":"(min-width: 375px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var sS={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Oi={version:"0.0.1",color:Yw,gradient:Zw,theme:Jw,typography:Qw,spacing:eS,font:tS,fontFamily:rS,timing:sS,icons:nS,media:oS,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var lo={};G(lo,{A:()=>xk,AssetPicture:()=>SS,Audio:()=>AS,Avatar:()=>Fk,B:()=>HS,Block:()=>iS,Box:()=>zc,Br:()=>XS,Button:()=>wk,ButtonSet:()=>Ak,COMPONENTS:()=>ao,Caption:()=>DS,Checkbox:()=>sk,CheckboxHgroup:()=>ik,Circle:()=>vS,CircleButton:()=>kk,Clickable:()=>yS,Data:()=>GS,Dialog:()=>Ok,DialogFooter:()=>Pk,DialogHeader:()=>Tk,Dropdown:()=>Dk,DropdownList:()=>Lk,DropdownParent:()=>Mk,DropdownParentFocus:()=>Nk,DropdownSiblingFocus:()=>Bk,FileIcon:()=>gk,Flex:()=>lS,Focusable:()=>bS,FocusableComponent:()=>xS,Footnote:()=>US,Form:()=>hS,Grid:()=>uS,Gutter:()=>dS,H1:()=>TS,H2:()=>PS,H3:()=>RS,H4:()=>$S,H5:()=>IS,H6:()=>FS,Headline:()=>zS,Hgroup:()=>ek,HgroupButton:()=>rk,HgroupRows:()=>tk,Hoverable:()=>mS,Hr:()=>KS,I:()=>qS,Icon:()=>pk,IconButton:()=>Ek,IconText:()=>hk,Iframe:()=>gS,Img:()=>pS,Inline:()=>aS,InlineFlex:()=>cS,InlineGrid:()=>fS,Input:()=>nk,Italic:()=>BS,KangorooButton:()=>Ck,Li:()=>YS,Link:()=>Nm,Notification:()=>Vk,NumberInput:()=>ok,Ol:()=>JS,P:()=>jS,Picture:()=>wS,Radio:()=>ak,RadioHgroup:()=>lk,Range:()=>jk,RouteLink:()=>vk,RouterLink:()=>Bm,SHAPES:()=>Bc,Select:()=>_k,Shape:()=>gm,Span:()=>OS,SquareButton:()=>Sk,Strong:()=>LS,Subhead:()=>WS,Svg:()=>kS,Text:()=>ES,Textarea:()=>fk,TextareaWithButton:()=>dk,Theme:()=>_S,Title:()=>VS,Toggle:()=>ck,ToggleHgroup:()=>uk,Tooltip:()=>Rk,TooltipHidden:()=>$k,TooltipParent:()=>Ik,U:()=>MS,Ul:()=>ZS,Underline:()=>NS,Video:()=>CS,depth:()=>Vc,getSystemGlobalTheme:()=>Ti});var um={};G(um,{Block:()=>iS,Flex:()=>lS,Grid:()=>uS,Gutter:()=>dS,Inline:()=>aS,InlineFlex:()=>cS,InlineGrid:()=>fS});var iS={display:"block"},aS={display:"inline"},lS={display:"flex"},cS={display:"inline-flex"},uS={display:"grid"},fS={display:"inline-grid"},dS={boxSize:"C1"};var fm={};G(fm,{Img:()=>pS});I();var pS={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Ye(e);return t&&t.src||e.src},srcset:e=>{let t=Ye(e);return(t?ni(t):"")||e.srcset}}};var dm={};G(dm,{Form:()=>hS});var hS={tag:"form"};var pm={};G(pm,{Iframe:()=>gS});var gS={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var hm={};G(hm,{Clickable:()=>yS,Focusable:()=>bS,FocusableComponent:()=>xS,Hoverable:()=>mS});var rI={appearance:"none",cursor:"pointer",fontFamily:"inherit"},mS={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},yS={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},bS={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},xS={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:rI};var bm={};G(bm,{Picture:()=>wS});var ym={};G(ym,{Theme:()=>_S,getSystemGlobalTheme:()=>Ti});var mm={};G(mm,{Circle:()=>vS,SHAPES:()=>Bc,Shape:()=>gm,default:()=>nI,depth:()=>Vc});I();var yt=P(),Vc={4:{boxShadow:`rgba(0,0,0,.10) 0 2${yt.unit.default} 4${yt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${yt.unit.default} 6${yt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${yt.unit.default} 10${yt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${yt.unit.default} 16${yt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${yt.unit.default} 26${yt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${yt.unit.default} 42${yt.unit.default}`}},io=e=>de(e.shapeDirectionColor)||de(e.borderColor)||de(e.backgroundColor)||de(e.background),Nc=e=>{let t=Ci.transition(e.transition,e);return t&&t.transition},Bc={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:io(e),transition:Nc(e),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:e=>({position:"relative","&:before":{content:'""',display:"block",background:io(e),transition:Nc(e),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:io(e),transition:Nc(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Nc(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${io(e)} 25%, transparent 25%), linear-gradient(315deg, ${io(e)} 25%, transparent 25%)`},"&:after":{background:io(e),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},gm={deps:{exec:le,getSpacingBasedOnRatio:Gt,getMediaColor:De},classlist:{shape:e=>e.deps.exec(Bc[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Bc[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},vS={round:"100%"},nI=gm;I();var Ti=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},_S={deps:{depth:Vc},classlist:{depth:e=>!Pe(e.depth)&&e.deps.depth[e.depth]}};var wS={deps:{getSystemGlobalTheme:Ti},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Ti},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(e),i=(e.media||t).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":o[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}};var xm={};G(xm,{AssetPicture:()=>SS});I();var SS={tag:"picture",children:e=>{let t=Ye(e);if(t)return oi(t,e.alt)}};var vm={};G(vm,{Svg:()=>kS});var kS={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,s=e.spriteId||r&&r.useSvgSprite,i=e.call("exec",e.src,e);if(!s&&i)return i;let a=f=>`<use xlink:href="#${f}" />`,l=e.spriteId;if(l)return a(l);if(o&&o[i])return a(i);let c=Symbol.for(i),u=o[c];if(u&&o[u])return a(u);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let d=0;for(let f=0;f<i.length;f++)d=(d<<5)-d+i.charCodeAt(f)|0;return u=o[c]=`svg-${(d>>>0).toString(36)}`,n.init({svg:{[u]:i}},{document:t.document,emotion:t.emotion}),a(u)}};var _m={};G(_m,{Video:()=>CS});I();var CS={tag:"video",controls:!0,attr:{src:e=>{let t=Ye(e);return t&&t.src||e.src}},children:e=>{let t=Ye(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var wm={};G(wm,{Audio:()=>AS});I();var AS={tag:"audio",controls:!0,attr:{src:e=>{let t=Ye(e);return t&&t.src||e.src}},children:e=>{let t=Ye(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Sm={};G(Sm,{B:()=>HS,Caption:()=>DS,Data:()=>GS,Footnote:()=>US,H1:()=>TS,H2:()=>PS,H3:()=>RS,H4:()=>$S,H5:()=>IS,H6:()=>FS,Headline:()=>zS,I:()=>qS,Italic:()=>BS,P:()=>jS,Span:()=>OS,Strong:()=>LS,Subhead:()=>WS,Text:()=>ES,Title:()=>VS,U:()=>MS,Underline:()=>NS});var ES={},OS={tag:"span"},TS={tag:"h1"},PS={tag:"h2"},RS={tag:"h3"},$S={tag:"h4"},IS={tag:"h5"},FS={tag:"h6"},jS={tag:"p"},DS={tag:"caption"},LS={tag:"strong",fontWeight:"700"},MS={tag:"u"},NS={tag:"u"},BS={tag:"i"},VS={},zS={tag:"h6",fontSize:"B",fontWeight:500},WS={tag:"span",fontSize:"Z1"},US={tag:"span",fontSize:"Z"},HS={tag:"b"},qS={tag:"i"},GS={tag:"data"};var km={};G(km,{Box:()=>zc,Br:()=>XS,Hr:()=>KS,Li:()=>YS,Ol:()=>JS,Ul:()=>ZS});var oI=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=tt(t,e,{unpack:!1});r.__class=n},zc={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:oI},KS={tag:"hr",margin:"C1 0"},XS={tag:"br"},YS={tag:"li"},ZS={tag:"ul",childExtends:{extends:"Li"}},JS={tag:"ol",childExtends:{extends:"Li"}};var Cm={};G(Cm,{Hgroup:()=>ek,HgroupButton:()=>rk,HgroupRows:()=>tk});var QS=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},ek={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:QS,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:QS,margin:"0",color:"paragraph"}},tk={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},rk={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Am={};G(Am,{Input:()=>nk});var nk={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}};var Em={};G(Em,{NumberInput:()=>ok});var ok={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}};var Om={};G(Om,{Checkbox:()=>sk,CheckboxHgroup:()=>ik});var sk={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},ik={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Tm={};G(Tm,{Radio:()=>ak,RadioHgroup:()=>lk});var ak={extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},lk={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Pm={};G(Pm,{Toggle:()=>ck,ToggleHgroup:()=>uk});var ck={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},uk={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Rm={};G(Rm,{Textarea:()=>fk,TextareaWithButton:()=>dk});var fk={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},dk={display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}};var $m={};G($m,{FileIcon:()=>gk,Icon:()=>pk,IconText:()=>hk});var pk={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,l=v=>{let _=v[".isActive"];if(_)return v.call("exec",_.name||_.icon)},c=(v,_,S)=>{let{semanticIcons:O}=S&&S.designSystem,{toCamelCase:T}=S&&S.utils,k=u(v,_),te=T(k).split(/([a-z])([A-Z])/g),z=te[1]?te[0]:k.split(".")[0].split(" ")[0],N=O&&O[z];if(N){let ye=k.includes(".")?"sfsymbols."+k.split(".").slice(1).join("."):"sfsymbols";return k=N[ye]||N[k.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${k}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(v,_)=>{let{key:S}=v,O=v.call("exec",v.name||v.icon||S,v);return v.call("isString",O)&&O.includes("{{")&&(O=v.call("replaceLiteralsWithObjectFields",O)),v.call("isString",O)?O:S},d=u(e,t);if(d.includes(" ")){let v=d.split(" ");d=v[0]+v.slice(1).map(_=>_.charAt(0).toUpperCase()+_.slice(1)).join("")}let f=a(d),p=f.split(/([a-z])([A-Z])/g),h=c(e,t,r);if(h){Object.assign(e,h);return}let g;e.isActive&&(g=l(e));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=e.call("exec",m.icon||m.Icon.name||m.Icon.icon,e)),e.call("isString",g)&&g.includes("{{")&&(g=e.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[f]?y=f:o[p[0]+p[1]]?y=p[0]+p[1]:o[p[0]]?y=p[0]:i&&e.warn("Can't find icon:",d,y);let b=o[y],x=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||x||o.noIcon})},attr:{viewBox:"0 0 24 24"}},hk={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},gk={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Vm={};G(Vm,{A:()=>xk,Link:()=>Nm,RouteLink:()=>vk,RouterLink:()=>Bm});var Mm={};G(Mm,{default:()=>cI,getActiveRoute:()=>Lm,lastLevel:()=>Uc,lastPathname:()=>Wc,matchRoute:()=>Fm,parseQuery:()=>jm,parseRoutePattern:()=>Im,router:()=>Kt,runGuards:()=>Dm});I();var yk=/^:(.+)/,bk=/^\*$/,mk=new Map,Im=e=>{let t=mk.get(e);if(t)return t;let r=e.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(yk);a?n.push({index:i,name:a[1]}):bk.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return mk.set(e,s),s},Fm=(e,t,r=0)=>{let o=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||""),i=null,a=-1,l={};for(let c in t){if(c==="/*")continue;let u=Im(c),d=sI(o,u);d>a&&(a=d,i=c,l=iI(o,u))}return!i&&t["/*"]&&(i="/*"),{key:i,content:i?t[i]:null,params:l,routePath:s}},sI=(e,t)=>{let{segments:r,hasWildcard:n}=t;if(!n&&r.length!==e.length&&r.length!==1&&r.length>e.length)return-1;let o=0,s=Math.min(r.length,e.length);for(let i=0;i<s;i++)if(r[i]===e[i])o+=3;else if(yk.test(r[i]))o+=1;else if(bk.test(r[i]))o+=.5;else return-1;return o},iI=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},jm=e=>{if(!e||e==="?")return{};let t={};return new URLSearchParams(e).forEach((n,o)=>{t[o]!==void 0?(Array.isArray(t[o])||(t[o]=[t[o]]),t[o].push(n)):t[o]=n}),t},Dm=async(e,t)=>{if(!e||!e.length)return!0;for(let r of e){let n=await r(t);if(n===!1)return!1;if(typeof n=="string")return n}return!0},Lm=(e=0,t)=>{t||(t=typeof A<"u"?A.location.pathname:"/");let n=t.split("/")[e+1];if(n)return`/${n}`},Wc,Uc=0,aI=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,lI={level:Uc,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:ce&&ce.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},Kt=async(e,t,r={},n={})=>{let o=t||void 0,s=o?.context?.window||A,i=o?.context?.document||ce,a={...lI,...o.context.routerOptions,...n};Uc=a.lastLevel;let l=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let c=l.contentElementKey||a.contentElementKey||"content",u=s.location.origin!=="null"?s.location.origin:"http://localhost";e=aI(e);let d=new s.URL(u+e),{pathname:f,search:p,hash:h}=d,g=jm(p),m=o.node,y=h&&h!==s.location.hash.slice(1),b=f!==Wc;Wc=f;let x,v,_,S;if(a.useParamsMatching){let T=Fm(f,o.routes,a.level);x=T.key,v=T.routePath,_=T.content,S=T.params}else x=Lm(a.level,f),v=x,_=o.routes[x||"/"]||o.routes["/*"],S={};let O=a.scrollToNode?m:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!_){a.onNotFound?a.onNotFound({pathname:f,route:x,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",f,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let T={pathname:f,route:x,params:S,query:g,hash:h,element:o,state:r},k=await Dm(a.guards,T);if(k===!1)return;if(typeof k=="string")return Kt(k,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,f+(p||"")+(h||""))}catch{}if(b||!y){let T={route:x,routePath:v,hash:h,debugging:!1};Object.keys(S).length&&(T.params=S),Object.keys(g).length&&(T.query=g),a.updateState&&o.state.update(T,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let k=o.__ref?.origin?.content,D={};if(k)for(let z in k){let N=k[z];z==="__ref"||z==="props"||z==="node"||z==="parent"||z==="key"||(typeof N=="string"||typeof N=="number"||typeof N=="boolean"||typeof N=="object"&&N!==null&&!N.node&&!N.__ref)&&(D[z]=N)}let te={...D,...typeof _=="object"?_:{extends:_}};a.useFragment&&(te.tag="fragment");try{o.set(te,{contentElementKey:c})}catch(z){console.error("[smbls/router] failed to render route content",f,z)}}if(a.scrollToTop&&O?.scrollTo&&O.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&_[c]?.node?.scrollTo&&_[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let T=i.getElementById(h);if(T&&O?.scrollTo){let k=T.getBoundingClientRect().top+m.scrollTop-(a.scrollToOffset||0);O.scrollTo({...a.scrollToOptions||{},top:k,left:0})}}Sr("routeChanged",o,a)},cI=Kt;var uI=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Kt)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},Nm={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>Ir(e,e.href)||Ir(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:uI},xk={extends:"Link"},Bm={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Kt)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},vk={extends:[Nm,Bm]};var zm={};G(zm,{Select:()=>_k});var _k={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}};var Wm={};G(Wm,{Button:()=>wk,ButtonSet:()=>Ak,CircleButton:()=>kk,IconButton:()=>Ek,KangorooButton:()=>Ck,SquareButton:()=>Sk});var wk={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},Sk={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},kk={extends:"SquareButton",round:"C"},Ck={extends:"Button",childExtends:"IconText"},Ak={tag:"nav",display:"flex",childExtends:"SquareButton"},Ek={extends:["SquareButton","ClickableItem"],round:"Z"};var Um={};G(Um,{Dialog:()=>Ok,DialogFooter:()=>Pk,DialogHeader:()=>Tk});var Ok={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Tk={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},Pk={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}};var Hm={};G(Hm,{Tooltip:()=>Rk,TooltipHidden:()=>$k,TooltipParent:()=>Ik});I();var Rk={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:e=>qe(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},$k={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},Ik={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var qm={};G(qm,{Avatar:()=>Fk});var Fk={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`};var Gm={};G(Gm,{Range:()=>jk});var jk={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:si("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:si("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}};var Km={};G(Km,{Dropdown:()=>Dk,DropdownList:()=>Lk,DropdownParent:()=>Mk,DropdownParentFocus:()=>Nk,DropdownSiblingFocus:()=>Bk});var Dk={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},Lk={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},Mk={position:"relative",zIndex:999,style:{"&:hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},Nk={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},Bk={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}};var Xm={};G(Xm,{Notification:()=>Vk});var Vk={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}};var ao=Object.assign({},um,fm,dm,pm,hm,bm,xm,vm,mm,_m,wm,ym,Sm,km,Cm,Am,Em,Om,Tm,Pm,Rm,$m,Vm,zm,Wm,Um,Hm,qm,Gm,Km,Xm);function Hc(e){if(e==null)return 0;if(typeof e!="object")return zk(String(e));let t=2166136261;if(Array.isArray(e)){t=(t^91)*16777619;for(let n=0;n<e.length;n++)t=(t^Hc(e[n]))*16777619;return t>>>0}let r=Object.keys(e).sort();for(let n=0;n<r.length;n++)t=(t^zk(r[n]))*16777619,t=(t^Hc(e[r[n]]))*16777619;return t>>>0}function zk(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t}function qc(e,t){if(e===t)return!0;if(e===null||t===null||typeof e!=typeof t||typeof e!="object")return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!qc(e[o],t[o]))return!1;return!0}let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let s=r[o];if(!Object.prototype.hasOwnProperty.call(t,s)||!qc(e[s],t[s]))return!1}return!0}function Ym(e,t){if(t===void 0)return e;if(e===void 0)return t;if(t===null)return null;if(typeof t!="object"||Array.isArray(t))return t;if(typeof e!="object"||Array.isArray(e))return{...t};let r=!1,n={};for(let o in e)if(o in t){let s=Ym(e[o],t[o]);n[o]=s,s!==e[o]&&(r=!0)}else n[o]=e[o];for(let o in t)o in e||(n[o]=t[o],r=!0);return r?n:e}function Zm(e,t,r){if(!t||typeof t!="object")return e;if(!e||typeof e!="object")return t;if(r||(r=new WeakSet),r.has(t))return e;r.add(t);for(let n in t){let o=t[n];o&&typeof o=="object"&&!Array.isArray(o)&&e[n]&&typeof e[n]=="object"&&!Array.isArray(e[n])?Zm(e[n],o,r):e[n]=o}return e}function Dr(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t.toString(36)}function co(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function Pi(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Dr(t)}function Wk(e){return e.split(`
|
|
67
|
+
`).map(Dr).join(`
|
|
68
|
+
`)}var Uk={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",paddingBlock:"pbl",paddingInline:"pin",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",marginBlock:"mbl",marginInline:"min",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk",scrollBehavior:"sb",inset:"ins"};function Hk(e,t){let r=Uk[e]||Dr(e),n=Pi(t),o=`_${r}-${n}`,s=co(e),i=`.${o}{${s}: ${t}}`;return`${o}
|
|
69
|
+
${i}`}var qk=e=>typeof e=="string"&&(e.indexOf("{")!==-1||e.indexOf("}")!==-1);function Gk(e){let t=e.split("\0"),r=[],n=[];for(let o=0;o+1<t.length;o+=2){let s=t[o],i=t[o+1];if(!i||qk(i))continue;let a=Uk[s]||Dr(s),l=Pi(i),c=`_${a}-${l}`,u=co(s);r.push(c),n.push(`.${c}{${u}:${i}}`)}return r.join(" ")+"\0"+n.join(`
|
|
70
|
+
`)}function Kk(e,t){let r=e+t,n=`_c${Dr(r)}`,o=t.split("\0"),s="";for(let a=0;a+1<o.length;a+=2){let l=o[a],c=o[a+1];c&&(qk(c)||(s+=`${co(l)}:${c};`))}let i;if(e.startsWith("@media"))i=`${e}{.${n}{${s}}}`;else if(e.startsWith(":")||e.startsWith("&")){let a=e.startsWith("&")?e.slice(1):e;i=`.${n}${a}{${s}}`}else e.includes("&")?i=`${e.replace("&",`.${n}`)}{${s}}`:i=`.${n} ${e}{${s}}`;return`${n}
|
|
71
|
+
${i}`}var Jm=null;function Kc(e){Jm=e}var It={structuralHash:Hc,deepEqual:qc,mergeStructural:Ym,overwriteDeep:Zm,shortHash:Dr,toKebab:co,sanitizeValue:Pi,batchShortHash:Wk,atomicCssClass:Hk,batchAtomicCss:Gk,compoundCssClass:Kk},Xk=!1,Gc=null;function Yk(e){return Gc||(Gc=import(e||"@symbo.ls/wasm/pkg").then(t=>(t.structuralHash&&(It.structuralHash=t.structuralHash),t.deepEqual&&(It.deepEqual=t.deepEqual),t.mergeStructural&&(It.mergeStructural=t.mergeStructural),t.overwriteDeep&&(It.overwriteDeep=t.overwriteDeep),t.shortHash&&(It.shortHash=t.shortHash),t.toKebab&&(It.toKebab=t.toKebab),t.sanitizeValue&&(It.sanitizeValue=t.sanitizeValue),t.batchShortHash&&(It.batchShortHash=t.batchShortHash),t.atomicCssClass&&(It.atomicCssClass=t.atomicCssClass),t.batchAtomicCss&&(It.batchAtomicCss=t.batchAtomicCss),t.compoundCssClass&&(It.compoundCssClass=t.compoundCssClass),Xk=!0,Jm&&t.batchAtomicCss&&Jm({batchAtomicCss:t.batchAtomicCss,compoundCssClass:t.compoundCssClass}),!0)).catch(t=>(console.debug("[smbls] WASM not available, using JS fallbacks:",t.message),!1)),Gc)}function Zk(){return Xk}I();var Ri={};G(Ri,{CDN_PROVIDERS:()=>Et,DOMQL_EVENTS:()=>Jd,DOMQ_PROPERTIES:()=>xr,ENV:()=>hp,HTML_TAGS:()=>Hn,METHODS:()=>Nn,METHODS_EXL:()=>ss,NODE_ENV:()=>kt,OPTIONS:()=>Os,PACKAGE_MANAGER_TO_CDN:()=>Er,PARSED_DOMQ_PROPERTIES:()=>os,PROPS_METHODS:()=>vr,STATE_METHODS:()=>Qr,STATE_PROPERTIES:()=>Zd,SVG_TAGS:()=>Tv,TYPES:()=>Zo,UNIVERSAL_RESERVED_KEYS:()=>Gl,addCaching:()=>$l,addContext:()=>Rl,addExtend:()=>Np,addExtends:()=>Xe,addItemAfterEveryElement:()=>Md,addProtoToArray:()=>es,addRef:()=>Ol,applyCSS:()=>ey,applyDependentState:()=>oh,applyEvent:()=>Ml,applyEventUpdate:()=>Nl,applyExtends:()=>$v,applyProps:()=>ws,arrayContainsOtherArray:()=>Rd,arraysEqual:()=>Bd,arrayzeValue:()=>an,buildImgSrcset:()=>ni,buildSourcesAndImg:()=>oi,cache:()=>ch,call:()=>Eh,captureSnapshot:()=>Th,checkForStateTypes:()=>eh,checkIfInherits:()=>Ll,checkIfStringIsInArray:()=>Wd,clone:()=>ep,cloneAndMergeArrayExtend:()=>hs,cloneFunction:()=>Sp,concatAddExtends:()=>Dp,copyJavaScriptToClipboard:()=>Kh,copyStringToClipboard:()=>Gh,createBasedOnType:()=>El,createElement:()=>Qp,createElementExtends:()=>gl,createExtends:()=>ms,createExtendsFromKeys:()=>qn,createExtendsStack:()=>xl,createIfConditionFlag:()=>kp,createInheritedState:()=>th,createKey:()=>ds,createNestedObject:()=>ap,createNestedObjectByKeyPath:()=>nh,createObjectWithoutPrototype:()=>ll,createParent:()=>Tl,createPath:()=>Pl,createProps:()=>Ss,createPropsStack:()=>Cl,createRoot:()=>Jp,createScope:()=>ih,createSnapshotId:()=>fs,customDecodeURIComponent:()=>Yd,customEncodeURIComponent:()=>Xd,cutArrayAfterValue:()=>Dd,cutArrayBeforeValue:()=>jd,debounce:()=>ps,debounceOnContext:()=>vp,decodeNewlines:()=>Kd,deepClone:()=>ue,deepContains:()=>sp,deepDefaults:()=>Qs,deepDestringifyFunctions:()=>lt,deepExtend:()=>hl,deepMerge:()=>ae,deepMergeExtends:()=>Wt,deepStringifyFunctions:()=>is,defineSetter:()=>Ch,destringifyGlobalScope:()=>ls,detectHeightOnInit:()=>Fh,detectInfiniteLoop:()=>fp,document:()=>ce,encodeNewlines:()=>Gd,error:()=>sn,excludeKeysFromObject:()=>pp,exec:()=>le,extendCachedRegistry:()=>Lp,extendStackRegistry:()=>ys,extractArrayExtend:()=>xs,fetchLibraryData:()=>Yl,fibonacciNumberByIndex:()=>jh,filterArrays:()=>Vd,filterArraysFast:()=>zd,finalizeExtends:()=>vl,findClosestNumber:()=>Xl,findClosestNumberInFactory:()=>Hh,findInheritedState:()=>Dl,findKeyPosition:()=>Hd,flattenExtend:()=>Gn,formatDate:()=>Ih,generateHash:()=>fl,generateKey:()=>us,generateMetaTags:()=>Wh,get:()=>wh,getActiveRoute:()=>Lm,getCDNUrl:()=>Ot,getCapitalCaseKeys:()=>zp,getCdnProviderFromConfig:()=>Yn,getChildStateInKey:()=>jl,getChildren:()=>Ns,getContext:()=>qs,getCookie:()=>Tp,getDB:()=>Zs,getEmotionStylesheet:()=>Jh,getExtendsInElement:()=>Bp,getExtendsStack:()=>gs,getExtendsStackRegistry:()=>pl,getFrequencyInArray:()=>$d,getHashedExtend:()=>bs,getImportMapScript:()=>$h,getInObjectByPath:()=>up,getLocalStorage:()=>Rp,getNev:()=>bp,getPageMetadata:()=>Uh,getParentStateInKey:()=>Fl,getPath:()=>Bs,getQuery:()=>Js,getRef:()=>kh,getRoot:()=>Ws,getRootContext:()=>Hs,getRootData:()=>Us,getRootState:()=>zs,getRootStateInKey:()=>Il,getSpreadChildren:()=>Wp,global:()=>Od,hasFunction:()=>Vn,hasHandlerPlugin:()=>zn,hasOwnProperty:()=>rp,inheritChildExtends:()=>yl,inheritChildPropsExtends:()=>ml,inheritParentProps:()=>ks,inheritRecursiveChildExtends:()=>bl,init:()=>uo,initProps:()=>Xp,is:()=>Ge,isArray:()=>$,isBoolean:()=>nl,isContextComponent:()=>Up,isCyclic:()=>dp,isDOMNode:()=>He,isDate:()=>sl,isDefined:()=>qe,isDevelopment:()=>wr,isEmpty:()=>il,isEmptyObject:()=>np,isEqualDeep:()=>al,isFunction:()=>E,isHtmlElement:()=>Xo,isLocal:()=>yp,isMethod:()=>Oh,isMobile:()=>Ep,isNode:()=>tr,isNot:()=>Pd,isNotProduction:()=>rn,isNull:()=>ol,isNumber:()=>zt,isObject:()=>w,isObjectLike:()=>Q,isPhoto:()=>Dh,isProduction:()=>_r,isStaging:()=>mp,isState:()=>rh,isString:()=>C,isStringFunction:()=>wp,isTest:()=>ul,isTesting:()=>gp,isUndefined:()=>Pe,isUniversallyReservedKey:()=>Ph,isValidHtmlTag:()=>Ip,joinArrays:()=>Dn,jointStacks:()=>Mp,keys:()=>Hl,lastLevel:()=>Uc,lastPathname:()=>Wc,loadCssFile:()=>Bh,loadJavascript:()=>Vh,loadJavascriptFile:()=>Lh,loadJavascriptFileEmbedSync:()=>Nh,loadJavascriptFileSync:()=>Mh,loadRemoteCSS:()=>zh,loadRemoteScript:()=>Zn,log:()=>Ah,logGroupIf:()=>Ap,logIf:()=>Cp,lookdown:()=>vh,lookdownAll:()=>_h,lookup:()=>xh,lowercaseFirstLetter:()=>Jr,makeObjectWithoutPrototype:()=>op,map:()=>Qd,mapStringsWithContextComponents:()=>vs,matchRoute:()=>Fm,matchesComponentNaming:()=>Ut,memoize:()=>_p,merge:()=>ge,mergeSharedLibraries:()=>ei,nextElement:()=>Ks,normalizeLibraryKey:()=>Jn,objectToString:()=>as,objectizeStringProperty:()=>_s,overwrite:()=>cs,overwriteDeep:()=>Ke,overwriteShallow:()=>tn,overwriteState:()=>sh,parse:()=>ql,parseDeep:()=>Ls,parseQuery:()=>jm,parseRoutePattern:()=>Im,pickupElementFromProps:()=>Sl,pickupPropsFromElement:()=>wl,previousElement:()=>Xs,propExists:()=>Gp,propertizeElement:()=>kl,propertizeUpdate:()=>qp,reinit:()=>Qm,remove:()=>l_,removeChars:()=>Xh,removeCookie:()=>Pp,removeDuplicateProps:()=>As,removeDuplicatesInArray:()=>Ln,removeFromArray:()=>Id,removeFromObject:()=>ip,removeNestedKeyByPath:()=>lp,removeValueFromArray:()=>Qo,removeValueFromArrayAll:()=>Ld,reorderArrayByValues:()=>Nd,replaceLiteralsWithObjectFields:()=>Zr,replaceOctalEscapeSequences:()=>qd,resolveAsset:()=>Ye,resolveHandler:()=>Wn,resolveSharedLibraries:()=>qh,returnValueAsText:()=>Al,router:()=>Kt,runGuards:()=>Dm,runPluginHook:()=>Ct,scratchSystem:()=>hi,scratchUtils:()=>dn,self:()=>Td,set:()=>ro,setActiveRootState:()=>Vs,setCookie:()=>Op,setHashedExtend:()=>dl,setInObjectByPath:()=>cp,setLocalStorage:()=>$p,setNodeStyles:()=>Ul,setProps:()=>Sh,setPropsPrototype:()=>Cs,spotByPath:()=>Ms,srcsetFor:()=>Qn,stringIncludesAny:()=>rs,stringToObject:()=>tp,swapItemsInArray:()=>Fd,syncProps:()=>Es,toCamelCase:()=>ti,toDashCase:()=>ri,toDescriptionCase:()=>Zh,toTitleCase:()=>Yh,toggleFullscreen:()=>Rh,triggerEventOn:()=>Sr,triggerEventOnUpdate:()=>ah,trimStringFromSymbols:()=>Ud,unstackArrayOfObjects:()=>Jo,update:()=>Kp,updateProps:()=>Yp,variables:()=>Ys,verbose:()=>Xn,warn:()=>Gs,window:()=>A});I();I();var gI=P(),Jk=(e=gI,t)=>{let r=w(t.localFile)?t.localFile:{},n=ue(r.designSystem||{});return ae(e,n)},mI={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},uo=(e,t=mI)=>{let r=Jk(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=t.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(s=m)}let i=ro({verbose:t.verbose,useReset:t.useReset,useFontImport:t.useFontImport,useVariable:t.useVariable,useSvgSprite:t.useSvgSprite,useDocumentTheme:t.useDocumentTheme,useIconSprite:t.useIconSprite,useDefaultConfig:t.useDefaultConfig,globalTheme:s,themeRoot:t.themeRoot,files:t.files,assets:t.assets,...r},{newConfig:t.newConfig,config:t.config});i&&(i.scopeSelector=n);let a=Jl(i.font,i.files),l=i.useReset,c=i.useVariable,u=i.useFontImport,d=i.useSvgSprite,f=e.svg,p=i.useIconSprite,h=e.icons;if(u&&_e(a),c&&(_e({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let y in i.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[o]:i.CSS_MEDIA_VARS[y]}:m[y]=i.CSS_MEDIA_VARS[y];_e(m)}l&&_e(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];_e(m)}return(f||d)&&Ac(i.svg,{document:t.document}),(h||p)&&Oc(i.icons,{document:t.document}),i},Xc={},Qm=(e,t=Xc)=>{let r=Jk(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=ro({verbose:!1,...r});if(!t.preventInject){if(_e({[n]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith("@media")?i[a]={[o]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];_e(i)}_e(s.reset)}return s},ey=(e,t=Xc)=>{_e(e)},yI=(e,t=Xc)=>{let r=t.scopeSelector||":root",n=r===":root"?":root:not([data-theme])":`${r}:not([data-theme])`;if(_e({[r]:e.CSS_VARS}),e.CSS_MEDIA_VARS){let o={};for(let s in e.CSS_MEDIA_VARS)s.startsWith("@media")?o[s]={[n]:e.CSS_MEDIA_VARS[s]}:o[s]=e.CSS_MEDIA_VARS[s];_e(o)}};var bI=(e,t=Xc)=>{};I();var Qk=e=>!e||e==="srcdoc"||e==="about:srcdoc"||e==="blank"||e==="about:blank"?"/":e,ty={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},e1=(e,t)=>{if(!t)return e;let r=Array.isArray(t)?t:t.split("."),n=e;for(let o of r){if(!n||!n[o])return null;n=n[o]}return n},t1=(e,t)=>{if(t.router===!1)return;t.router===!0?t.router=ty:t.router=ge(t.router||{},ty);let r=t.router,n=async(s,i)=>{let a=s.context?.window||A;if(!a.location)return;let{pathname:l,search:c,hash:u}=a.location;l=Qk(l);let d=l+c+u,f=s;if(r.customRouterElement){let p=e1(s,r.customRouterElement);p&&(f=p,s.routes&&(f.routes=s.routes))}f.routes&&await Kt(d,f,{},{initialRender:!0,pushState:!1})},o=!Pe(e.onRenderRouter);return r&&r.initRouter&&!o&&(e.onRenderRouter=n),xI(t,r),r},ry=(e,t)=>{if(t.router===!1)return;let r=t.router||ty;if(!r.popState)return;let n=t.utils&&t.utils.router?t.utils.router:Kt,o=t.window||A,s=async i=>{let{pathname:a,search:l,hash:c}=o.location;a=Qk(a);let u=a+l+c,d=e;if(r.customRouterElement){let f=e1(e,r.customRouterElement);f&&(d=f,e.routes&&(d.routes=e.routes))}await d.call("router",u,d,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};o.addEventListener("popstate",s),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>o.removeEventListener("popstate",s))},xI=(e,t)=>{let{components:r}=e;if(t&&t.injectRouterInLinkComponent)return ae(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};I();var ny=A&&A.location?A.location.host.includes("dev."):wr(),r1=ny?"http://localhost:8080/get":"https://api.symbols.app/get",vI={endpoint:r1},n1=async(e,t=vI)=>{let r=t.endpoint||r1,n=t.serviceRoute?$(t.serviceRoute)?t.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):t.serviceRoute:"",o;try{return o=await globalThis.fetch(r+"/?"+n,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":e,"X-Metadata":t.metadata}}),await o.json()}catch(s){if(E(t.onError))return t.onError(s);console.error(s)}},_I=async(e,t)=>{let{editor:r}=t;if(r&&r.remote){let n=await n1(e,r),o=ny||t.isDevelopment?lt(n):lt(n.releases[0]);r.serviceRoute?$(r.serviceRoute)?r.serviceRoute.forEach(s=>{Ke(t[s],o[s.toLowerCase()])}):Ke(t[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{Ke(t[s],o[s.toLowerCase()])})}return t},wI=async(e,t,r)=>{let{editor:n}=t;if(n&&n.remote){let o=await n1(e,n),s=ny||t.isDevelopment?lt(o):lt(o.releases[0]);r(s)}},o1=async(e,t)=>{if(e&&t.editor)try{t.editor.async||await _I(e,t)}catch(r){console.error(r)}},s1=(e,t,r,n)=>{if(t&&r.editor)try{r.editor.async&&wI(t,r,n||(o=>{let s=o.designSystem;w(s)&&r.utils.init(s),w(o.state)&&e.state.set(o.state)}))}catch(o){console.error(o)}};var $i=e=>{if(!e||e.__destroyed)return!1;let t=e.context;if(!t)return e.__destroyed=!0,!1;if(Array.isArray(t.__teardowns)){for(let r of t.__teardowns)try{r()}catch(n){console.error("[smbls] destroy teardown error:",n)}t.__teardowns.length=0}try{vn(e)}catch(r){console.error("[smbls] dispose error:",r)}if(t.fetch&&t.fetch.__resolved&&delete t.fetch.__resolved,t.fetch&&t.fetch.__resolving&&delete t.fetch.__resolving,t.db&&t.db.__resolved&&delete t.db.__resolved,t.db&&t.db.__resolving&&delete t.db.__resolving,t.analyze?.destroy)try{t.analyze.destroy()}catch(r){console.error("[analyze] destroy error:",r)}return e.__destroyed=!0,!0};I();var SI={title:{tag:"title"},description:{tag:"meta",attr:"name",key:"description"},keywords:{tag:"meta",attr:"name",key:"keywords"},robots:{tag:"meta",attr:"name",key:"robots"},author:{tag:"meta",attr:"name",key:"author"},canonical:{tag:"link",attr:"rel",key:"canonical",valueAttr:"href"},image:{tag:"meta",attr:"property",key:"og:image"},url:{tag:"meta",attr:"property",key:"og:url"},siteName:{tag:"meta",attr:"property",key:"og:site_name"},type:{tag:"meta",attr:"property",key:"og:type"},locale:{tag:"meta",attr:"property",key:"og:locale"},"og:title":{tag:"meta",attr:"property",key:"og:title"},"og:description":{tag:"meta",attr:"property",key:"og:description"},"og:image":{tag:"meta",attr:"property",key:"og:image"},"og:url":{tag:"meta",attr:"property",key:"og:url"},"og:type":{tag:"meta",attr:"property",key:"og:type"},"og:site_name":{tag:"meta",attr:"property",key:"og:site_name"},"og:locale":{tag:"meta",attr:"property",key:"og:locale"},"twitter:card":{tag:"meta",attr:"name",key:"twitter:card"},"twitter:title":{tag:"meta",attr:"name",key:"twitter:title"},"twitter:description":{tag:"meta",attr:"name",key:"twitter:description"},"twitter:image":{tag:"meta",attr:"name",key:"twitter:image"},"twitter:site":{tag:"meta",attr:"name",key:"twitter:site"},"theme-color":{tag:"meta",attr:"name",key:"theme-color"}},kI=e=>{if(e.tag==="link")return`link[${e.attr}="${e.key}"]`;if(e.tag&&!e.attr&&!e.key)return e.tag;if(e.tag&&e.attr&&e.key)return`${e.tag}[${e.attr}="${e.key}"]`},Yc=(e,t,r)=>{if(!e)return{};let n=E(e)?le(e,t,r):{...e};if(!w(n))return{};for(let o in n){let s=n[o];E(s)&&(s=le(s,t,r)),C(s)&&s.includes("{{")&&t?.call&&(s=t.call("replaceLiteralsWithObjectFields",s,r)),n[o]=s}return n};var CI=(e,t)=>{let r=t.createElement(e.tag);return e.attr&&r.setAttribute(e.attr,e.key),(t.head||t.querySelector("head")).appendChild(r),r},Zc=(e,t)=>{if(!(!w(e)||!t))for(let r in e){let n=e[r];if(n==null)continue;let o=SI[r];if(!o)continue;let s=kI(o),i=t.querySelector(s)||CI(o,t);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}};var i1={name:"helmet",create(e){let t=e.metadata;if(!t)return;let r=e.context?.document||typeof document<"u"&&document;if(!r)return;let n=Yc(t,e,e.state);Zc(n,r)},update(e){let t=e.metadata;if(!t)return;let r=e.context?.document||typeof document<"u"&&document;if(!r)return;let n=Yc(t,e,e.state);Zc(n,r)}};on();var a1=(e,t,r,n)=>{e&&js(e,t,r,n)},l1=(e,t,r)=>{if(!e)return;let n=t.context?.document||typeof document<"u"&&document;if(!n)return;let o=Yc(e,t,r);Zc(o,n)},c1=async(e,t)=>{if(!e)return;let r={tag:"fragment",...e},n=async()=>{await t.set(r,{preventDefineUpdate:"$router"})};return t.lazyLoad?window.requestAnimationFrame(n):await n(),r},fo={routes:e=>e,metadata:l1,fetch:a1,$router:c1},u1=(e={})=>{let t={routes:r=>r};return e.metadata!==!1&&(t.metadata=l1),e.fetch!==!1&&(t.fetch=a1),e.router!==!1&&(t.$router=c1),t};var oy={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},Jc={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},Qc={...oy,router:Jc},AI={state:{},pages:{},components:{},router:Jc,define:fo},Lr=AI;I();I();var f1=(e,t)=>Q(e.extends)?e.extends:[];I();var g1=e=>{let t=typeof window<"u"?window:globalThis||{};t.document||(t.document={body:{}});let r=typeof document<"u"?document:t.document;return e.document=e.document||r,e.window=e.window||t,e.window},d1=(e="smbls")=>{let t={};for(let r in ao)Object.prototype.hasOwnProperty.call(ao,r)&&(Ut(r)?t[`smbls.${r}`]=ao[r]:t[r]=ao[r]);return t},m1=e=>e.components?{...d1(),...e.components}:d1(),y1=e=>({...Ri,...Mm,...dn,...e.utils,...e.snippets,...e.functions}),b1=e=>({...e.methods||{},require:e.utils.require,requireOnDemand:e.utils.requireOnDemand,router:e.utils.router}),p1={},x1=async({dependencies:e,dependenciesOnDemand:t,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=Er[s]||Yn(i)||"esmsh"),!e)return null;let a=!1;for(let l in e){a=!0;break}if(!a)return null;for(let l in e){let c=e[l];if(t&&t[l])continue;let u=wr()&&n?`?${Math.random()}`:"",d=Ot(l,c,o)+u;try{if(p1[l])continue;p1[l]=!0,await Promise.race([Zn(d,{document:r,type:"module"}),new Promise((f,p)=>setTimeout(()=>p(new Error(`Timeout loading ${l}`)),1e4))])}catch(f){if(console.error(`Failed to load ${l} from ${o}:`,f),o!=="symbols")try{let p=Ot(l,c,"symbols")+u;await Promise.race([Zn(p,{document:r}),new Promise((h,g)=>setTimeout(()=>g(new Error(`Timeout fallback ${l}`)),1e4))]),console.log(`Successfully loaded ${l} from fallback (symbols.ls)`)}catch(p){console.error(`Failed to load ${l} from fallback:`,p)}}}return e},v1=async(e,t)=>{let r=t.window||window,n=t.cdnProvider||Yn(t.symbolsConfig)||"esmsh",o=async i=>async(a,l)=>{let u=(i.window||window).packages[a];return typeof u=="function"?u():u},s=async i=>async(a,l=n)=>{let{dependenciesOnDemand:c}=i,u=i.document||document,d=i.window||window;if(!d.packages[a]){let f=wr()?`?${Math.random()}`:"";if(c&&c[a]){let p=c[a],h=Ot(a,p,l)+f;try{await i.utils.loadRemoteScript(h,{window:d,document:u})}catch(g){if(console.error(`Failed to load ${a} from ${l}:`,g),l!=="symbols"){let m=Ot(a,p,"symbols")+f;await i.utils.loadRemoteScript(m,{window:d,document:u})}}}else{let p=Ot(a,"latest",l)+f;try{await i.utils.loadRemoteScript(p,{window:d,document:u})}catch(h){if(console.error(`Failed to load ${a} from ${l}:`,h),l!=="symbols"){let g=Ot(a,"latest","symbols")+f;await i.utils.loadRemoteScript(g,{window:d,document:u})}}d.packages[a]="loadedOnDeman"}}return await d.require(a,l)};r.packages?r.packages=ge(r.packages,e):r.packages=e,r.require||(t.utils.require=await o(t),r.require=t.utils.require),r.requireOnDemand||(t.utils.requireOnDemand=await s(t),r.requireOnDemand=t.utils.requireOnDemand)},EI=/\s+/g,_1=(e,t)=>typeof e=="function"?e(t,t?.state,t?.context):e,OI=(e,t)=>{let r="";for(let n in e){let o=e[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${_1(o,t)}`)}return r},TI=(e,t,r)=>{if(!e)return;let{key:n}=t;e===!0&&(e=t.classlist={key:n}),typeof e=="string"&&(e=t.classlist={default:e}),e!==null&&typeof e=="object"&&!Array.isArray(e)&&(e=OI(e,t));let o=e.replace(EI," ").trim();if(r&&typeof r.setAttribute=="function")r.setAttribute("class",o);else if(r)try{r.className=o}catch{}return o},PI=()=>(e,t,r)=>{let n=_1(e,t);if(e){let{__ref:o}=t;o.__class.style=n}w1()(t.classlist,t,t.state,!0)},w1=()=>(e,t,r,n)=>{if(t.style&&!n)return;let{__ref:o}=t,{__class:s,__classNames:i}=o;if(!(e===null||typeof e!="object"||Array.isArray(e))){t.class&&(i.classProps=t.class),t.attr?.class&&(i.class=t.attr.class);for(let a in s){let l=s[a];if(!l){delete i[a];continue}let c;typeof l=="string"||typeof l=="number"?c=l:typeof l=="boolean"?c=t.key:c=$r(l),i[a]=c}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];t.node&&TI(i,t,t.node)}},RI=()=>({style:PI(),classlist:w1()}),$I=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],h1=!1,S1=(e,t)=>{let r=t.document||(t.parent&&t.parent.documentElement?t.parent:null)||document,n=t.initOptions||{},o=t.registry||RI(),s=t.designSystem?ae(ue(t.designSystem),Oi):ue(Oi),i={};for(let p of $I)t[p]!==void 0&&(i[p]=t[p]);let a,l=h1&&!t.skipDesignSystemInit,c=l?`[data-smbls-app="${e}"]`:":root";t.scopeSelector=c;let u=c===":root"?":root:not([data-theme])":`${c}:not([data-theme])`;if(t.skipDesignSystemInit){if(a=P(e)||P(),a&&(a.document=r),a?.CSS_VARS){Ie(a);try{if(_e({[c]:a.CSS_VARS}),a.CSS_MEDIA_VARS){let p={};for(let h in a.CSS_MEDIA_VARS)h.startsWith("@media")?p[h]={[u]:a.CSS_MEDIA_VARS[h]}:p[h]=a.CSS_MEDIA_VARS[h];_e(p)}}finally{$e()}}}else if(l){let p=fg(e,s,{cleanBase:!0});for(let g in i)p[g]=i[g];p.document=r;let h=e.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);t.cssPrefix=h,p.varPrefix=h,Ie(p);try{a=uo(p,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:c,...Qc,...i,...n})}finally{$e()}}else{let p=P();p&&(p.document=r),a=uo(s,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:c,...Qc,...i,...n}),a&&a!==p&&(a.document=r),h1=!0}let d=a?.CONFIG||a,f=d?.font;if(f){Ie(d);try{for(let p in f){let h=f[p];if(!h?.fontFace)continue;let g=Array.isArray(h.fontFace)?h.fontFace:[h.fontFace];for(let m of g)typeof m=="string"&&m.includes("font-family")&&_e(`@font-face { ${m} }`)}}finally{$e()}}return[a,o]},k1=(e,t)=>{let r={};t.state&&ae(r,t.state),e&&e.state&&ae(r,e.state);let n=t.polyglot;if(n?.translations){let o=null;try{typeof localStorage<"u"&&(o=localStorage.getItem(n.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let s=o||r.lang||n.defaultLang||"en";o&&o!==r.lang&&(r.lang=o);let i=n.translations[s];if(i&&typeof i=="object")for(let l in i)r[l]=i[l];let a=new Set(n.languages||[]);for(let l in n.translations)!a.has(l)&&r[l]===void 0&&(r[l]=n.translations[l])}return r.isRootState=!0,ue(r)},C1=(e,t)=>{w(e.routes)&&w(t.pages)&&ge(e.routes,t.pages);let r=e.routes||t.pages||{};for(let n in r){if(n.charCodeAt(0)===47)continue;let o=n==="index"?"":n;r["/"+o]=r[n],delete r[n]}return r},A1=e=>{ei(e,e.sharedLibraries)};I();var O1="smbls_lang",II="smbls_t_",FI="smbls_tv_",po={get(e){try{return window?.localStorage.getItem(e)}catch{return null}},set(e,t){try{window?.localStorage.setItem(e,t)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(e){try{window?.localStorage.removeItem(e)}catch(t){console.warn("[polyglot] localStorage unavailable:",t.message)}}},Ii={};function Fi(){let e=this?.context,t=e?.polyglot;return(this?.state?.root||e?.state?.root)?.lang||t?.defaultLang||"en"}function tu(){let e=this?.context?.polyglot;return e?e.languages?e.languages:e.translations?Object.keys(e.translations):[]:[]}var eu=(e,t)=>{if(!e||!t)return;if(e[t]!==void 0)return e[t];if(t.indexOf(".")===-1)return;let r=t.split("."),n=e;for(let o=0;o<r.length;o++){if(n==null)return;n=n[r[o]]}return n},E1=(e,t,r)=>{let n=t.lastIndexOf(".");if(n===-1)return e[t+"_"+r];let o=eu(e,t.substring(0,n));if(o!=null)return o[t.substring(n+1)+"_"+r]};function ru(e,t){if(!e)return"";let r=this?.context,n=r?.polyglot,o=t||this.call("getActiveLang"),s=this?.state;if(s){let c=E1(s,e,o);if(c!==void 0)return c}if(n?.translations){let c=n.translations[o];if(c){let u=eu(c,e);if(u!==void 0)return u}}let a=(s?.root||r?.state?.root)?.translations;if(a){let c=a[o];if(c){let u=eu(c,e);if(u!==void 0)return u}}let l=n?.defaultLang||"en";if(s){let c=E1(s,e,l);if(c!==void 0)return c}if(n?.translations){let c=n.translations[l];if(c){let u=eu(c,e);if(u!==void 0)return u}}return e}async function nu(e){let t=this?.context,r=t?.polyglot,n=this?.state?.root||t?.state?.root;if(!r||!n)return;let o=r.storagePrefix||II,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):FI);if(r.translations&&r.translations[e]&&!r.fetch||!r.fetch||r._fetchFailed?.[e])return;if(!n.translations?.[e]){let l=po.get(o+e);if(l)try{let c=JSON.parse(l),u={translations:{...n.translations||{}}};u.translations[e]=c,n.update&&n.update(u)}catch(c){console.warn("[polyglot] Failed to apply language update:",c.message)}}let i=(r.storagePrefix||"smbls")+":"+e;if(Ii[i])return Ii[i];let a=this;return Ii[i]=(async()=>{try{let l=r.fetch,c=parseInt(po.get(s+e),10)||0,u,d,f;if(E(l)){let h=await l(e,c,a);if(!h||h.changed===!1)return;u=h.translations||h.data||h,d=h.version||0,f=!0}else if(w(l)){let h=a.getDB||(()=>t.fetch),g=E(h)?await h.call(a):t.fetch;if(!g)return;let m=l.rpc||l.from||"get_translations_if_changed",y={p_lang:e,p_cached_version:c,...l.params||{}},b=await g.rpc({from:m,params:y});if(b.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[e]=!0,b.error;let x=b.data;if(!x||!x.changed)return;u=x.translations||{},d=x.version||0,f=!0}else return;if(!f||!u)return;po.set(o+e,JSON.stringify(u)),d&&po.set(s+e,String(d));let p={translations:{...n.translations||{}}};p.translations[e]=u,n.update&&n.update(p)}catch(l){if(r.verbose!==!1){let c=l?.message||l?.details||(typeof l=="object"?JSON.stringify(l):String(l));console.warn("[polyglot] Failed to load translations for",e,"-",c)}}finally{delete Ii[i]}})(),Ii[i]}async function ou(e){let t=this?.context,r=t?.polyglot,n=this?.state?.root||t?.state?.root;if(!n||this.call("getActiveLang")===e)return;let o=r?.storageLangKey||O1;po.set(o,e),r?.fetch&&await this.call("loadTranslations",e),t?.state&&(t.state.lang=e);let s=r?.translations?.[e],i={lang:e};if(s&&typeof s=="object")for(let l in s){let c=s[l];(Array.isArray(c)||typeof c=="string"||typeof c=="number")&&(i[l]=c)}if(n.update&&n.update(i),s&&typeof s=="object")for(let l in s){let c=s[l];if(c&&typeof c=="object"&&!Array.isArray(c)&&n[l]&&typeof n[l]=="object"&&!Array.isArray(n[l]))for(let u in c)n[l][u]=c[u]}let a=this?.context?.document||globalThis.document;if(a&&s){let l=a.querySelectorAll("[data-key]");for(let c of l){let u=c.ref;if(!u)continue;let d=u.__ref?.__exec?.text;if(typeof d=="string"&&d.includes("{{"))try{let f=u.call("replaceLiteralsWithObjectFields",d,u.state);f!=null&&c.textContent!==f&&(c.textContent=f)}catch{}}}}async function su(e,t,r){let n=this?.context,o=n?.polyglot,s=this?.state?.root||n?.state?.root;if(s?.translations?.[t]&&(s.translations[t][e]=r),o?.translations?.[t]&&(o.translations[t][e]=r),o?.fetch&&w(o.fetch)){let i=this.getDB||(()=>n.fetch),a=E(i)?await i.call(this):n.fetch;if(!a)return;let l=o.fetch.table||"translations",c=await a.upsert({from:l,data:{key:e,lang:t,text:r}});if(c?.error)throw c.error;return c.data}}async function sy(){let e=this?.context,t=e?.polyglot;if(!t)return;let r=this?.state?.root||e?.state?.root;if(!r)return;let n=t.storageLangKey||O1,s=po.get(n)||t.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),t.fetch&&!(t.translations&&t.translations[s])&&await this.call("loadTranslations",s)}function iu(e){try{let t=this?.context?.polyglot,n=(this?.state?.root||this?.context?.state?.root)?.lang||t?.defaultLang||"en",o=this?.state;if(!o)return"";let s=e.lastIndexOf(".");if(s===-1)return o[e+n]??"";let i=e.substring(0,s).split("."),a=o;for(let l=0;l<i.length;l++){if(a==null)return"";a=a[i[l]]}return a==null?"":a[e.substring(s+1)+n]??""}catch{return""}}var au={name:"polyglot",render(e){e.parent&&e.parent.parent||e.__polyglotInitialized||(e.__polyglotInitialized=!0,sy.call(e))}};var ji={polyglot:ru,getLocalStateLang:iu,getActiveLang:Fi,getLang:Fi,setLang:ou,getLanguages:tu,loadTranslations:nu,upsertTranslation:su};on();var lu={arial:{capHeight:716,ascent:1854,descent:-434,lineGap:67,unitsPerEm:2048},helvetica:{capHeight:714,ascent:770,descent:-230,lineGap:0,unitsPerEm:1e3},"helvetica neue":{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3},georgia:{capHeight:1419,ascent:1878,descent:-449,lineGap:0,unitsPerEm:2048},"times new roman":{capHeight:1356,ascent:1825,descent:-443,lineGap:87,unitsPerEm:2048},"courier new":{capHeight:1170,ascent:1705,descent:-615,lineGap:0,unitsPerEm:2048},verdana:{capHeight:1489,ascent:2059,descent:-430,lineGap:0,unitsPerEm:2048},roboto:{capHeight:1456,ascent:1900,descent:-500,lineGap:0,unitsPerEm:2048},"open sans":{capHeight:1462,ascent:2189,descent:-600,lineGap:0,unitsPerEm:2048},inter:{capHeight:1490,ascent:2048,descent:-512,lineGap:0,unitsPerEm:2048},lato:{capHeight:1434,ascent:1974,descent:-426,lineGap:0,unitsPerEm:2e3},"source sans":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans pro":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans 3":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},montserrat:{capHeight:700,ascent:968,descent:-251,lineGap:0,unitsPerEm:1e3},poppins:{capHeight:700,ascent:1050,descent:-350,lineGap:100,unitsPerEm:1e3},raleway:{capHeight:710,ascent:1e3,descent:-250,lineGap:0,unitsPerEm:1e3},"dm sans":{capHeight:700,ascent:992,descent:-312,lineGap:0,unitsPerEm:1e3},nunito:{capHeight:705,ascent:1011,descent:-353,lineGap:0,unitsPerEm:1e3},"work sans":{capHeight:684,ascent:930,descent:-243,lineGap:0,unitsPerEm:1e3},manrope:{capHeight:708,ascent:980,descent:-300,lineGap:0,unitsPerEm:1e3},"ibm plex sans":{capHeight:698,ascent:1025,descent:-275,lineGap:0,unitsPerEm:1e3},"plus jakarta sans":{capHeight:720,ascent:1060,descent:-300,lineGap:0,unitsPerEm:1e3}},cu=e=>parseFloat(e.toFixed(4)),jI=(e,t,r)=>{let{ascent:n,descent:o,lineGap:s,unitsPerEm:i,capHeight:a}=t,l=Math.abs(o),c=n+l+s,u=r!==void 0?r:c/i*e,d=u/e,f=c/i,p=(n-a+s/2)/i-(d-f)/2,h=(l+s/2)/i-(d-f)/2;return{fontSize:`${cu(e/16)}rem`,lineHeight:`${cu(u)}px`,capHeightTrim:`${cu(-p)}em`,baselineTrim:`${cu(-h)}em`}},DI=(e,t)=>{if(typeof e=="number")return e;let r=t?.designSystem;if(!r)return null;let{typography:n}=r;if(n?.sequence){let s=String(e).toUpperCase(),i=n.sequence[s];if(i)return i.decimal||i.val}let o=parseFloat(e);return isNaN(o)?null:typeof e=="string"&&e.endsWith("rem")?o*(r.typography?.browserDefault||16):o},LI=(e,t)=>{let n=t?.designSystem?.font_family||{};if(e){let s=n[e];if(s?.metrics)return s.metrics;let i=String(e).toLowerCase().replace(/['"]/g,"").trim();if(lu[i])return lu[i]}let o=n.default||Object.keys(n)[0];if(o){let s=n[o];if(s?.metrics)return s.metrics;if(s?.value&&Array.isArray(s.value))for(let i of s.value){let a=i.toLowerCase().replace(/['"]/g,"").trim();if(lu[a])return lu[a]}}return null},T1=(e,t,r,n)=>{if(!e)return;let o=DI(t.fontSize,n);if(!o)return;let s=LI(t.fontFamily,n);if(!s)return;let i=t.lineHeight?parseFloat(t.lineHeight):void 0,{lineHeight:a,capHeightTrim:l,baselineTrim:c}=jI(o,s,i),u={};return t.lineHeight||(u.lineHeight=a),u["::before"]={content:'""',marginBottom:l,display:"table"},u["::after"]={content:'""',marginTop:c,display:"table"},u},P1={name:"capsize",init(e){e.useCapsize===void 0&&e.fontSize&&(e.useCapsize=!0)}};var Di={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},bt=Object.create(null);for(let e in Di)bt[Di[e]]=e;var iy=Object.create(null);for(let e in Di){let t=Di[e];if(iy[t])throw new Error(`Duplicate abbreviation "${t}" for "${e}" \u2014 already used by "${iy[t]}"`);iy[t]=e}var Mr=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]);function Li(e){return/^[A-Z]/.test(e)}function Mi(e){return/^[:@.!$>&]/.test(e)||e.startsWith("> ")}function MI(e){return e.trim().split(/\s+/).filter(Boolean)}function R1(e){return e.replace(/_/g," ")}function NI(e){if(!e||typeof e!="string")return{};let t={},r=MI(e);for(let n of r){if(n.startsWith("!")){let l=n.slice(1),c=bt[l]||l;t[c]=!1;continue}let o=n.indexOf(":");if(o===-1){let l=bt[n]||n;t[l]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=bt[s]||s;if(i.includes(",")){t[a]=i.split(",").map(R1);continue}t[a]=R1(i)}return t}function Ni(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Ni(r):r});let t={};for(let r in e){let n=e[r];if(Li(r)){t[r]=ay(n);continue}let o=bt[r]||r;if(Mi(r)&&o===r){t[r]=ay(n);continue}if(Mr.has(o)||Mr.has(r)){t[o]=n;continue}t[o]=ay(n)}return t}function ay(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Ni(t):t}):typeof e=="object"?Ni(e):e}function Bi(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Bi(r):r});let t={};if(typeof e.in=="string"){let r=NI(e.in);for(let n in r)t[n]=r[n]}for(let r in e){if(r==="in")continue;let n=e[r];if(Li(r)){t[r]=ly(n);continue}let o=bt[r]||r;if(Mi(r)&&o===r){t[r]=ly(n);continue}if(Mr.has(o)||Mr.has(r)){t[o]=n;continue}t[o]=ly(n)}return t}function ly(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Bi(t):t}):typeof e=="object"?Bi(e):e}function BI(e){let t="",r=0;for(;r<e.length;){if(e[r]==="\\"&&r+1<e.length){let n=e[r+1];if(n===","||n==="_"||n==="\\"){t+=n,r+=2;continue}}e[r]==="_"?t+=" ":t+=e[r],r++}return t}function VI(e){let t=[],r="",n=0;for(;n<e.length;){if(e[n]==="\\"&&n+1<e.length){r+=e[n]+e[n+1],n+=2;continue}if(e[n]===","){t.push(r),r="",n++;continue}r+=e[n],n++}return t.push(r),t}function $1(e){return e.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(e)?Number(e.slice(1)):BI(e)}function cy(e){if(!e||typeof e!="string")return{};let t={},r=e.trim().split(/\s+/).filter(Boolean);for(let n of r){if(n.startsWith("!")){let c=n.slice(1),u=bt[c]||c;t[u]=!1;continue}let o=n.indexOf(":");if(o===-1){let c=bt[n]||n;t[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=bt[s]||s,l=VI(i);if(l.length>1){t[a]=l.map($1);continue}t[a]=$1(i)}return t}function Vi(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Vi(r):r});let t={};if(typeof e.in=="string"){let r=cy(e.in);for(let n in r)t[n]=r[n]}for(let r in e){if(r==="in")continue;let n=e[r];if(Li(r)){typeof n=="string"?t[r]=cy(n):t[r]=uy(n);continue}let o=bt[r]||r;if(Mi(r)&&o===r){typeof n=="string"?t[r]=cy(n):t[r]=uy(n);continue}if(Mr.has(o)||Mr.has(r)){t[o]=n;continue}t[o]=uy(n)}return t}function uy(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Vi(t):t}):typeof e=="object"?Vi(e):e}var zI={shorten:Ni,stringify:Bi,stringifyFurther:Vi};function WI(e,t){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>t(n));let r={};for(let n in e){let o=e[n];r[n]=o&&typeof o=="object"?t(o):o}return r}var UI=["components","pages","snippets"],uu={name:"shorthand",prepareContext(e){let t=e.shorthand;if(!t)return;let n=zI[t===!0?"shorten":t];if(n){for(let o of UI)e[o]&&(e[o]=WI(e[o],n));e.app&&typeof e.app=="object"&&(e.app=n(e.app))}}};var HI=0,qI=()=>`${Date.now().toString(36)}-${(HI++).toString(36)}`,ne=(e,t,r={})=>({id:qI(),ts:Date.now(),type:e,level:t,...r}),GI=e=>{let t=[],r=e,n=0;for(;r&&n<32;)r.key!=null&&t.unshift(String(r.key)),r=r.parent,n++;return t.join(" > ")},ho=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:GI(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null;var go=e=>e?.context?.analyze,KI={init:{category:"lifecycle",type:"lifecycle",level:"debug"},create:{category:"lifecycle",type:"lifecycle",level:"debug"},render:{category:"lifecycle",type:"lifecycle",level:"debug"},beforeRemove:{category:"lifecycle",type:"lifecycle",level:"debug"},remove:{category:"lifecycle",type:"lifecycle",level:"debug"}},XI=(e,{category:t,type:r,level:n})=>o=>{let s=go(o);!s||!s.shouldCapture(t)||s.emit(ne(r,n,{hook:e,element:ho(o)}))},I1=e=>(t,r)=>{let n=go(t);!n||!n.shouldCapture("state")||n.emit(ne("state","debug",{hook:e,element:ho(t),changedKeys:r?.changedKeys||null}))},zi={name:"analyze",error(e,t){let r=go(e);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(ne("error","error",{hook:t?.hook||"error",element:ho(e),error:n,message:n?.message||(typeof t?.message=="string"?t.message:null)}))},renderRouter(e){let t=go(e);t&&(!t.shouldCapture("navigation")&&!t.shouldCapture("lifecycle")||t.emit(ne("navigation","info",{hook:"renderRouter",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=go(e);!t||!t.shouldCapture("updates")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(e){let t=go(e);if(!t||!t.shouldCapture("updates"))return;let r=null;e.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-e.__ref.__analyzeUpdateStart,e.__ref.__analyzeUpdateStart=null),t.emit(ne("update","debug",{hook:"update",element:ho(e),durationMs:r}))},beforeStateUpdate:I1("beforeStateUpdate"),stateUpdate:I1("stateUpdate")};for(let[e,t]of Object.entries(KI))zi[e]=XI(e,t);I();var fu={error:0,warn:1,info:2,debug:3,trace:4};var fy=(e,t)=>{let r=fu[e],n=fu[t];return r==null||n==null?!0:r<=n},du=e=>fu[e]!=null?e:"warn";I();var pu=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var YI=(e,t)=>{for(let r of t)if(r instanceof RegExp){if(r.test(e))return!0}else if(typeof r=="string"&&e.toLowerCase().includes(r.toLowerCase()))return!0;return!1},ZI=(e,t)=>{if(t!=="redact"){if(t==="hash"){let r=0,n=String(e);for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},dy=(e,t,r,n)=>{if(n>6||e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(s=>dy(s,t,r,n+1));let o={};for(let s of Object.keys(e))if(YI(s,t)||pu.test(s)){let a=ZI(e[s],r);a!==void 0&&(o[s]=a)}else o[s]=dy(e[s],t,r,n+1);return o},py=(e=[],t="mask")=>{let r=Array.isArray(e)?e:[e];return n=>{if(!n)return n;let{id:o,ts:s,type:i,level:a,hook:l,error:c,message:u,durationMs:d,element:f,target:p,...h}=n,g=dy(h,r,t,0);return{id:o,ts:s,type:i,level:a,hook:l,error:c,message:u,durationMs:d,element:f,target:p,...g}}};var F1=e=>{let t=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<"u"?navigator.userAgent:null,n=e.config.buildHash||null,o=e.config.appId||null;return s=>{if(!s)return s;let i=e.context?.routerOptions?.currentRoute||null,a=A,l=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:t,app:{id:o,build:n,route:i},meta:{ua:r,viewport:l}}}},j1=()=>e=>{if(!e)return e;if(e.element&&typeof e.element=="object"){let t=e.element;(t.node||t.parent||t.__ref)&&(e={...e,element:{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,tag:t.tag||null,component:t.component||null}})}return e.error instanceof Error&&(e={...e,error:{name:e.error.name,message:e.error.message,stack:e.error.stack}}),e},D1=(e=1e3,t=500)=>{let r=new Map;return n=>{if(!n)return n;let o=`${n.type}:${n.level}:${n.message||""}:${n.error?.message||""}`,s=r.get(o),i=n.ts||Date.now();if(s&&i-s<e)return null;if(r.set(o,i),r.size>t){let a=Math.ceil(t/10),l=0;for(let c of r.keys()){if(l++>=a)break;r.delete(c)}}return n}},L1=e=>t=>{if(!t)return t;let r=e[t.type];return r==null||r>=1?t:Math.random()>r?null:t},M1={redact:e=>py(e.config.redact||[],e.config.maskStrategy),enrich:e=>F1(e),summarize:()=>j1(),dedupe:e=>D1(e.config.cache?.dedupeWindowMs||1e3),sample:e=>L1(e.config.sample||{})},JI=(e,t)=>{if(typeof e=="function")return e;if(typeof e=="string"){let r=M1[e];return r?r(t):null}return null},hy=e=>{let t=e.config,r=Array.isArray(t.transformers)?t.transformers.slice():[],n=r.findIndex(s=>s==="redact");n>=0&&r.splice(n,1);let o=[];t.redact!==!1&&o.push(M1.redact(e));for(let s of r){let i=JI(s,e);i&&o.push(i)}return s=>{let i=s;for(let a of o){if(i==null)return null;let l=a(i);if(l==null)return null;if(Array.isArray(l)){let c=o.slice(o.indexOf(a)+1),u=[];for(let d of l){let f=d,p=!1;for(let h of c)if(f=h(f),f==null){p=!0;break}!p&&f!=null&&u.push(f)}return u}i=l}return i}};I();var QI={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},eF="\x1B[0m",hu=typeof A<"u"&&typeof A.document<"u",B1=(e={})=>{let t=e.minLevel||null,r=console.error.bind(console),n=console.warn.bind(console),o=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?r:s.level==="warn"?n:o,a=`[analyze:${s.type}]`;if(hu)i(a,s);else{let l=QI[s.level]||"";i(`${l}${a}${eF}`,s)}}},V1=(e,t={})=>{let r=t.max||e.config.cache?.max||500,n=new Array(r),o=0,s=0,i=a=>{n[o]=a,o=(o+1)%r,s<r&&s++};return e.__memory={push:i,snapshot:()=>{let a=new Array(s),l=(o-s+r)%r;for(let c=0;c<s;c++)a[c]=n[(l+c)%r];return a},query:(a={})=>{let l=e.__memory.snapshot(),c=a.sinceMs?Date.now()-a.sinceMs:0;return l.filter(u=>!(!u||a.level&&u.level!==a.level||a.type&&u.type!==a.type||c&&u.ts<c))},clear:()=>{o=0,s=0}},i},z1=(e={})=>{let t=e.url,r=e.batchMs!=null?e.batchMs:5e3,n=e.maxBatch||50;if(!t)return()=>{};let o=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!o.length)return;let l=JSON.stringify({events:o});o=[];let c=hu?new A.Blob([l],{type:"application/json"}):l;if(hu&&navigator.sendBeacon)try{navigator.sendBeacon(t,c);return}catch{}typeof fetch<"u"&&fetch(t,{method:"POST",headers:{"Content-Type":"application/json","X-Analyze-Beacon":"1"},body:l,keepalive:!0}).catch(()=>{})};hu&&(A.addEventListener("pagehide",i,{passive:!0}),A.addEventListener("beforeunload",i,{passive:!0}));let a=l=>{l&&(o.push(l),o.length>=n?i():s||(s=setTimeout(i,r)))};return a.flush=i,a},N1={console:B1,memory:V1,beacon:z1},gy=e=>{let t=Array.isArray(e.config.sinks)?e.config.sinks:["console"],r=[];for(let n of t)if(typeof n=="function")r.push(n);else if(typeof n=="string"){let o=N1[n];if(!o)continue;r.push(n==="memory"?o(e,{}):o({}))}else if(n&&typeof n=="object"&&n.type){let o=N1[n.type];if(!o)continue;r.push(n.type==="memory"?o(e,n):o(n))}return r};I();var tF=typeof A<"u"&&typeof A.document<"u",rF=new Set(["password","hidden"]),W1=(e,t)=>{let r=0,n=null,o=null;return(...s)=>{let i=Date.now();i-r>=t?(r=i,e(...s)):(o=s,n||(n=setTimeout(()=>{r=Date.now(),n=null,o&&(e(...o),o=null)},t-(i-r))))}},my="__analyzeKeyPath",mo=e=>{let t=e.target;if(!t)return{selector:null,key:null,path:null};if(t[my])return t[my];let r=[],n=t,o=0,s=null;for(;n&&o<64;){if(n.getAttribute){let a=n.getAttribute("data-key");a&&(s==null&&(s=a),r.unshift(a))}n=n.parentNode,o++}let i;if(r.length)i={selector:null,key:s,path:r.join(" > "),tag:t.tagName?.toLowerCase()||null};else{let a=(t.tagName||"unknown").toLowerCase(),l=t.id?`#${t.id}`:"",c=t.className&&typeof t.className=="string"?"."+t.className.trim().split(/\s+/).slice(0,2).join("."):"";i={selector:`${a}${l}${c}`,key:null,path:null}}try{t[my]=i}catch{}return i},nF=(e,t)=>{if(t==="mask")return"***";if(t!=="redact"){if(t==="hash"){let r=0,n=String(e||"");for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},oF=e=>!!(!e||e.tagName==="INPUT"&&rF.has(e.type)||pu.test(e.name||"")||pu.test(e.id||"")||e.dataset?.analyze==="skip"),yy=e=>{if(!tF)return;let t=e.config.capture,r=e.config.throttle,n=e.__teardown,o=(s,i,a,l)=>{s.addEventListener(i,a,l),n.push(()=>s.removeEventListener(i,a,l))};if(t.errors&&(o(A,"error",s=>{e.emit(ne("error","error",{hook:"window.onerror",message:s.message||null,error:s.error||null,source:s.filename||null,line:s.lineno||null,col:s.colno||null}))}),o(A,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;e.emit(ne("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),t.pointer){o(A,"click",i=>{e.emit(ne("pointer","info",{hook:"click",target:mo(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:U1(i)}))},{passive:!0,capture:!0}),o(A,"dblclick",i=>{e.emit(ne("pointer","info",{hook:"dblclick",target:mo(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(A,"contextmenu",i=>{e.emit(ne("pointer","info",{hook:"contextmenu",target:mo(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=W1(i=>{e.emit(ne("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},r.pointermove);o(A,"pointermove",s,{passive:!0})}if(t.keyboard&&o(A,"keydown",s=>{e.emit(ne("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:U1(s),target:mo(s)}))},{passive:!0,capture:!0}),t.forms){let s=i=>{let a=i.target;if(!a||!a.tagName||!["INPUT","TEXTAREA","SELECT"].includes(a.tagName))return;let c=oF(a),u=a.dataset?.analyze==="track",d=null;u&&!c?d=a.value:e.config.maskFormValues!==!1&&(d=nF(a.value,e.config.maskStrategy)),e.emit(ne("forms","info",{hook:i.type,target:mo(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:d}))};o(A,"input",s,{passive:!0,capture:!0}),o(A,"change",s,{passive:!0,capture:!0}),o(A,"submit",i=>{e.emit(ne("forms","info",{hook:"submit",target:mo(i)}))},{passive:!0,capture:!0})}if(t.scroll){let s=W1(()=>{e.emit(ne("scroll","trace",{hook:"scroll",x:A.scrollX,y:A.scrollY}))},r.scroll);o(A,"scroll",s,{passive:!0,capture:!0})}if(t.viewport){let s=ps(()=>{e.emit(ne("viewport","info",{hook:"resize",w:A.innerWidth,h:A.innerHeight,dpr:A.devicePixelRatio||1}))},r.resize);o(A,"resize",s,{passive:!0}),o(A,"orientationchange",()=>{e.emit(ne("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(A.document,"visibilitychange",()=>{e.emit(ne("viewport","info",{hook:"visibilitychange",hidden:A.document.hidden}))},{passive:!0}),e.emit(ne("viewport","info",{hook:"initial",w:A.innerWidth,h:A.innerHeight,dpr:A.devicePixelRatio||1}))}if(t.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{e.emit(ne("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(sF)}))}catch{}return i.apply(console,a)},n.push(()=>{console[s]=i})}if(t.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let l of a.getEntries())e.emit(ne("performance","info",{hook:l.entryType,name:l.name,startTime:l.startTime,duration:l.duration,value:l.value!=null?l.value:null}))}),i=["largest-contentful-paint","layout-shift","longtask","paint","first-input","event"];for(let a of i)try{s.observe({type:a,buffered:!0})}catch{}n.push(()=>s.disconnect())}catch{}},U1=e=>({shift:!!e.shiftKey,ctrl:!!e.ctrlKey,alt:!!e.altKey,meta:!!e.metaKey}),sF=e=>{if(e==null)return e;if(typeof e=="object")try{return JSON.parse(JSON.stringify(e))}catch{return String(e)}return e};I();var iF=typeof A<"u"&&typeof A.document<"u";var by=e=>{if(iF&&e.config.capture.network){if(typeof A.fetch=="function"){let t=A.fetch.bind(A),r=function(n,o){if(o?.headers?.["X-Analyze-Beacon"])return t(n,o);let s=typeof n=="string"?n:n&&n.url||"",i=(o?.method||typeof n=="object"&&n?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return e.emit(ne("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),t(n,o).then(l=>{let c=(typeof performance<"u"?performance.now():Date.now())-a;return e.emit(ne("network",l.ok?"info":"warn",{hook:"fetch.success",source:"window.fetch",url:s,method:i,status:l.status,ok:l.ok,durationMs:c})),l}).catch(l=>{let c=(typeof performance<"u"?performance.now():Date.now())-a;throw e.emit(ne("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:l,durationMs:c})),l})};A.fetch=r,e.__teardown.push(()=>{A.fetch=t})}if(typeof A.XMLHttpRequest=="function"){let t=A.XMLHttpRequest,r=t.prototype.open,n=t.prototype.send;t.prototype.open=function(o,s){return this.__analyze={method:String(o).toUpperCase(),url:String(s)},r.apply(this,arguments)},t.prototype.send=function(o){let s=this.__analyze;if(!s)return n.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();e.emit(ne("network","info",{hook:"xhr.start",source:"xhr",url:s.url,method:s.method}));let a=()=>{let c=(typeof performance<"u"?performance.now():Date.now())-i,u=this.status>=200&&this.status<400;e.emit(ne("network",u?"info":"warn",{hook:"xhr.success",source:"xhr",url:s.url,method:s.method,status:this.status,ok:u,durationMs:c}))},l=()=>{let c=(typeof performance<"u"?performance.now():Date.now())-i;e.emit(ne("network","error",{hook:"xhr.error",source:"xhr",url:s.url,method:s.method,status:this.status,durationMs:c}))};return this.addEventListener("loadend",a),this.addEventListener("error",l),n.apply(this,arguments)},e.__teardown.push(()=>{t.prototype.open=r,t.prototype.send=n})}}};var aF={errors:!0,warnings:!0,pointer:!1,keyboard:!1,forms:!1,scroll:!1,viewport:!1,network:!1,performance:!1,navigation:!1,console:!1,lifecycle:!1,state:!1,updates:!1,replay:!1,telemetry:!1},lF={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},cF={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},uF=e=>{let t={...aF,...e};return t.replay&&Object.assign(t,lF),t.telemetry&&Object.assign(t,cF),t},fF=64,dF=()=>{if(typeof A>"u"||!A.location)return null;try{let t=new URLSearchParams(A.location.search).get("analyze");return t||null}catch{return null}},xy=(e={})=>{let t=e===!0?{}:{...e};t.capture=uF(t.capture||{});let r=dF();(r==="debug"||t.debug)&&(t.level="debug",t.debug=!0,t.capture={...t.capture,lifecycle:!0,state:!0,updates:!0,console:!0}),r==="off"&&(t.enabled=!1),t.level=du(t.level||"warn"),t.cache={max:500,dedupeWindowMs:1e3,...t.cache||{}},t.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...t.throttle||{}},t.maskFormValues==null&&(t.maskFormValues=!0),t.maskStrategy||(t.maskStrategy="mask"),Array.isArray(t.sinks)||(t.sinks=["console","memory"]),Array.isArray(t.transformers)||(t.transformers=["enrich","summarize"]);let n={config:t,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},o=()=>{n.__pipeline||(n.__pipeline=hy(n),n.__sinks=gy(n))};return n.shouldCapture=s=>n.config.enabled===!1?!1:!!n.config.capture[s],n.emit=s=>{if(s&&n.config.enabled!==!1&&!n.__paused&&fy(s.level,n.config.level)){if(!n.__ready){if(s.level!=="error"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<fF&&n.__preBuffer.push(s);return}o(),H1(n,s)}},n.activate=s=>{if(n.context==null&&(n.context=s||null),n.__ready)return;n.__ready=!0;let i=n.__preBuffer;if(n.__preBuffer=[],i.length){o();for(let a of i)H1(n,a)}try{yy(n)}catch(a){console.error("[analyze] browser attach error:",a)}try{by(n)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of n.__onActivate||[])try{a(n)}catch(l){console.error("[analyze] onActivate error:",l)}},n.pause=()=>{n.__paused=!0},n.resume=()=>{n.__paused=!1},n.setLevel=s=>{n.config.level=du(s)},n.setCapture=(s,i)=>{n.config.capture[s]=!!i},n.query=s=>n.__memory?n.__memory.query(s):[],n.snapshot=()=>n.__memory?n.__memory.snapshot():[],n.emitNetwork=s=>{if(!n.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:"network",level:a,hook:`fetch.${i||"unknown"}`,...s})},n.flush=()=>{if(n.__sinks)for(let s of n.__sinks)typeof s.flush=="function"&&s.flush()},n.replay=()=>({initialSnapshot:n.__initialSnapshot,events:n.snapshot()}),n.destroy=()=>{for(let s of n.__teardown)try{s()}catch{}n.__teardown=[],n.__ready=!1,n.__paused=!0},n.__onActivate=[],n.onActivate=s=>{n.__onActivate.push(s)},n},H1=(e,t)=>{let r=e.__pipeline(t);if(r==null)return;let n=Array.isArray(r)?r:[r];for(let o of n){if(typeof e.config.onEvent=="function")try{e.config.onEvent(o)}catch{}for(let s of e.__sinks)try{s(o)}catch(i){console.error("[analyze] sink error:",i)}}};var Ft=Object.create(null);Ft.open="0";Ft.close="1";Ft.ping="2";Ft.pong="3";Ft.message="4";Ft.upgrade="5";Ft.noop="6";var Wi=Object.create(null);Object.keys(Ft).forEach(e=>{Wi[Ft[e]]=e});var Ui={type:"error",data:"parser error"};var K1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",X1=typeof ArrayBuffer=="function",Y1=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Hi=({type:e,data:t},r,n)=>K1&&t instanceof Blob?r?n(t):q1(t,n):X1&&(t instanceof ArrayBuffer||Y1(t))?r?n(t):q1(new Blob([t]),n):n(Ft[e]+(t||"")),q1=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function G1(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var vy;function Z1(e,t){if(K1&&e.data instanceof Blob)return e.data.arrayBuffer().then(G1).then(t);if(X1&&(e.data instanceof ArrayBuffer||Y1(e.data)))return t(G1(e.data));Hi(e,!1,r=>{vy||(vy=new TextEncoder),t(vy.encode(r))})}var J1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<J1.length;e++)qi[J1.charCodeAt(e)]=e;var Q1=e=>{let t=e.length*.75,r=e.length,n,o=0,s,i,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n<r;n+=4)s=qi[e.charCodeAt(n)],i=qi[e.charCodeAt(n+1)],a=qi[e.charCodeAt(n+2)],l=qi[e.charCodeAt(n+3)],u[o++]=s<<2|i>>4,u[o++]=(i&15)<<4|a>>2,u[o++]=(a&3)<<6|l&63;return c};var pF=typeof ArrayBuffer=="function",Gi=(e,t)=>{if(typeof e!="string")return{type:"message",data:eC(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:hF(e.substring(1),t)}:Wi[r]?e.length>1?{type:Wi[r],data:e.substring(1)}:{type:Wi[r]}:Ui},hF=(e,t)=>{if(pF){let r=Q1(e);return eC(r,t)}else return{base64:!0,data:e}},eC=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer;var tC="",rC=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((s,i)=>{Hi(s,!1,a=>{n[i]=a,++o===r&&t(n.join(tC))})})},nC=(e,t)=>{let r=e.split(tC),n=[];for(let o=0;o<r.length;o++){let s=Gi(r[o],t);if(n.push(s),s.type==="error")break}return n};function oC(){return new TransformStream({transform(e,t){Z1(e,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,n)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var _y;function gu(e){return e.reduce((t,r)=>t+r.length,0)}function mu(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;o<t;o++)r[o]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function sC(e,t){_y||(_y=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(gu(r)<1)break;let l=mu(r,1);s=(l[0]&128)===128,o=l[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(gu(r)<2)break;let l=mu(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(gu(r)<8)break;let l=mu(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(Ui);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(gu(r)<o)break;let l=mu(r,o);a.enqueue(Gi(s?l:_y.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(Ui);break}}}})}var wy=4;function fe(e){if(e)return gF(e)}function gF(e){for(var t in fe.prototype)e[t]=fe.prototype[t];return e}fe.prototype.on=fe.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};fe.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};fe.prototype.off=fe.prototype.removeListener=fe.prototype.removeAllListeners=fe.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};fe.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,t)}return this};fe.prototype.emitReserved=fe.prototype.emit;fe.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};fe.prototype.hasListeners=function(e){return!!this.listeners(e).length};var cr=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0),Ve=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),iC="arraybuffer";function yu(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var mF=Ve.setTimeout,yF=Ve.clearTimeout;function ur(e,t){t.useNativeTimers?(e.setTimeoutFn=mF.bind(Ve),e.clearTimeoutFn=yF.bind(Ve)):(e.setTimeoutFn=Ve.setTimeout.bind(Ve),e.clearTimeoutFn=Ve.clearTimeout.bind(Ve))}var bF=1.33;function aC(e){return typeof e=="string"?xF(e):Math.ceil((e.byteLength||e.size)*bF)}function xF(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function bu(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function lC(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function cC(e){let t={},r=e.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}var xu=class extends Error{constructor(t,r,n){super(t),this.description=r,this.context=n,this.type="TransportError"}},fr=class extends fe{constructor(t){super(),this.writable=!1,ur(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,r,n){return super.emitReserved("error",new xu(t,r,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let r=Gi(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,r={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){let t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){let r=lC(t);return r.length?"?"+r:""}};var Ki=class extends fr{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";let r=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};nC(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,rC(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=bu()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var uC=!1;try{uC=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var fC=uC;function vF(){}var Sy=class extends Ki{constructor(t){if(super(t),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||n!==t.port}}doWrite(t,r){let n=this.request({method:"POST",data:t});n.on("success",r),n.on("error",(o,s)=>{this.onError("xhr post error",o,s)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=t}},Nr=class e extends fe{constructor(t,r,n){super(),this.createRequest=t,ur(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=yu(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=vF,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Nr.requestsCount=0;Nr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",dC);else if(typeof addEventListener=="function"){let e="onpagehide"in Ve?"pagehide":"unload";addEventListener(e,dC,!1)}}function dC(){for(let e in Nr.requests)Nr.requests.hasOwnProperty(e)&&Nr.requests[e].abort()}var _F=(function(){let e=pC({xdomain:!1});return e&&e.responseType!==null})(),Br=class extends Sy{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=_F&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Nr(pC,this.uri(),t)}};function pC(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||fC))return new XMLHttpRequest}catch{}if(!t)try{return new Ve[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var hC=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Cy=class extends fr{get name(){return"websocket"}doOpen(){let t=this.uri(),r=this.opts.protocols,n=hC?{}:yu(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,n)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r<t.length;r++){let n=t[r],o=r===t.length-1;Hi(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&cr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=bu()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},ky=Ve.WebSocket||Ve.MozWebSocket,Vr=class extends Cy{createSocket(t,r,n){return hC?new ky(t,r,n):r?new ky(t,r):new ky(t)}doWrite(t,r){this.ws.send(r)}};var yo=class extends fr{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let r=sC(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),o=oC();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();let s=()=>{n.read().then(({done:a,value:l})=>{a||(this.onPacket(l),s())}).catch(a=>{})};s();let i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let r=0;r<t.length;r++){let n=t[r],o=r===t.length-1;this._writer.write(n).then(()=>{o&&cr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var Ay={websocket:Vr,webtransport:yo,polling:Br};var wF=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,SF=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function bo(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=wF.exec(e||""),s={},i=14;for(;i--;)s[SF[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=kF(s,s.path),s.queryKey=CF(s,s.query),s}function kF(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function CF(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Ey=typeof addEventListener=="function"&&typeof removeEventListener=="function",vu=[];Ey&&addEventListener("offline",()=>{vu.forEach(e=>e())},!1);var _n=class e extends fe{constructor(t,r){if(super(),this.binaryType=iC,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=bo(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=bo(r.host).host);ur(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=cC(this.opts.query)),Ey&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},vu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=wy,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",e.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){let o=this.writeBuffer[n].data;if(o&&(r+=aC(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,cr(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let s={type:t,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Ey&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=vu.indexOf(this._offlineEventListener);n!==-1&&vu.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};_n.protocol=wy;var _u=class extends _n{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let r=this.createTransport(t),n=!1;_n.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",d=>{if(!n)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;_n.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(u(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let f=new Error("probe error");f.transport=r.name,this.emitReserved("upgradeError",f)}}))};function s(){n||(n=!0,u(),r.close(),r=null)}let i=d=>{let f=new Error("probe error: "+d);f.transport=r.name,s(),this.emitReserved("upgradeError",f)};function a(){i("transport closed")}function l(){i("socket closed")}function c(d){r&&d.name!==r.name&&s()}let u=()=>{r.removeListener("open",o),r.removeListener("error",i),r.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};r.once("open",o),r.once("error",i),r.once("close",a),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let r=[];for(let n=0;n<t.length;n++)~this.transports.indexOf(t[n])&&r.push(t[n]);return r}},xo=class extends _u{constructor(t,r={}){let n=typeof t=="object"?t:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>Ay[o]).filter(o=>!!o)),super(t,n)}};var l9=xo.protocol;function gC(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=bo(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let s=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+s+":"+n.port+t,n.href=n.protocol+"://"+s+(r&&r.port===n.port?"":":"+n.port),n}var Fy={};G(Fy,{Decoder:()=>$y,Encoder:()=>Ry,PacketType:()=>Z,isPacketValid:()=>qF,protocol:()=>AC});var EF=typeof ArrayBuffer=="function",OF=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,mC=Object.prototype.toString,TF=typeof Blob=="function"||typeof Blob<"u"&&mC.call(Blob)==="[object BlobConstructor]",PF=typeof File=="function"||typeof File<"u"&&mC.call(File)==="[object FileConstructor]";function Yi(e){return EF&&(e instanceof ArrayBuffer||OF(e))||TF&&e instanceof Blob||PF&&e instanceof File}function Xi(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(Xi(e[r]))return!0;return!1}if(Yi(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Xi(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Xi(e[r]))return!0;return!1}function yC(e){let t=[],r=e.data,n=e;return n.data=Oy(r,t),n.attachments=t.length,{packet:n,buffers:t}}function Oy(e,t){if(!e)return e;if(Yi(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){let r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=Oy(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=Oy(e[n],t));return r}return e}function bC(e,t){return e.data=Ty(e.data,t),delete e.attachments,e}function Ty(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Ty(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Ty(e[r],t));return e}var kC=yv(SC(),1),Py=(0,kC.default)("socket.io-parser"),CC=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],AC=5,Z;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Z||(Z={}));var Ry=class{constructor(t){this.replacer=t}encode(t){return Py("encoding packet %j",t),(t.type===Z.EVENT||t.type===Z.ACK)&&Xi(t)?this.encodeAsBinary({type:t.type===Z.EVENT?Z.BINARY_EVENT:Z.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===Z.BINARY_EVENT||t.type===Z.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),Py("encoded %j as %s",t,r),r}encodeAsBinary(t){let r=yC(t),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},$y=class e extends fe{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);let n=r.type===Z.BINARY_EVENT;n||r.type===Z.BINARY_ACK?(r.type=n?Z.EVENT:Z.ACK,this.reconstructor=new Iy(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Yi(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0,n={type:Number(t.charAt(0))};if(Z[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===Z.BINARY_EVENT||n.type===Z.BINARY_ACK){let s=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);let i=t.substring(s,r);if(i!=Number(i)||t.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!EC(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=a}if(t.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(s,r)}else n.nsp="/";let o=t.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=t.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===t.length)break}n.id=Number(t.substring(s,r+1))}if(t.charAt(++r)){let s=this.tryParse(t.substr(r));if(e.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return Py("decoded %s as %j",t,n),n}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case Z.CONNECT:return ku(r);case Z.DISCONNECT:return r===void 0;case Z.CONNECT_ERROR:return typeof r=="string"||ku(r);case Z.EVENT:case Z.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&CC.indexOf(r[0])===-1);case Z.ACK:case Z.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Iy=class{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){let r=bC(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function WF(e){return typeof e=="string"}var EC=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function UF(e){return e===void 0||EC(e)}function ku(e){return Object.prototype.toString.call(e)==="[object Object]"}function HF(e,t){switch(e){case Z.CONNECT:return t===void 0||ku(t);case Z.DISCONNECT:return t===void 0;case Z.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&CC.indexOf(t[0])===-1);case Z.ACK:return Array.isArray(t);case Z.CONNECT_ERROR:return typeof t=="string"||ku(t);default:return!1}}function qF(e){return WF(e.nsp)&&UF(e.id)&&HF(e.type,e.data)}function rt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var GF=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),So=class extends fe{constructor(t,r,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[rt(t,"open",this.onopen.bind(this)),rt(t,"packet",this.onpacket.bind(this)),rt(t,"error",this.onerror.bind(this)),rt(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){var n,o,s;if(GF.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(r.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let i={type:Z.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let u=this.ids++,d=r.pop();this._registerAckCallback(u,d),i.id=u}let a=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,l=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(t,r){var n;let o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[t]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);r.call(this,new Error("operation has timed out"))},o),i=(...a)=>{this.io.clearTimeoutFn(s),r.apply(this,a)};i.withError=!0,this.acks[t]=i}emitWithAck(t,...r){return new Promise((n,o)=>{let s=(i,a)=>i?o(i):n(a);s.withError=!0,r.push(s),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...s)=>(this._queue[0],o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...s)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Z.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(n=>String(n.id)===t)){let n=this.acks[t];delete this.acks[t],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Z.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Z.EVENT:case Z.BINARY_EVENT:this.onevent(t);break;case Z.ACK:case Z.BINARY_ACK:this.onack(t);break;case Z.DISCONNECT:this.ondisconnect();break;case Z.CONNECT_ERROR:this.destroy();let n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){let r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){let r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:Z.ACK,id:t,data:o}))}}onack(t){let r=this.acks[t.id];typeof r=="function"&&(delete this.acks[t.id],r.withError&&t.data.unshift(null),r.apply(this,t.data))}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Z.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let r=this._anyListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let n of r)n.apply(this,t.data)}}};function Sn(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Sn.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};Sn.prototype.reset=function(){this.attempts=0};Sn.prototype.setMin=function(e){this.ms=e};Sn.prototype.setMax=function(e){this.max=e};Sn.prototype.setJitter=function(e){this.jitter=e};var ko=class extends fe{constructor(t,r){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,ur(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new Sn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;let o=r.parser||Fy;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new xo(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=rt(r,"open",function(){n.onopen(),t&&t()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},i=rt(r,"error",s);if(this._timeout!==!1){let a=this._timeout,l=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),r.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(rt(t,"ping",this.onping.bind(this)),rt(t,"data",this.ondata.bind(this)),rt(t,"error",this.onerror.bind(this)),rt(t,"close",this.onclose.bind(this)),rt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){cr(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new So(this,t,r),this.nsps[t]=n),n}_destroy(t){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(t){let r=this.encoder.encode(t);for(let n=0;n<r.length;n++)this.engine.write(r[n],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}};var Zi={};function Co(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=gC(e,t.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=Zi[o]&&s in Zi[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||i,l;return a?l=new ko(n,t):(Zi[o]||(Zi[o]=new ko(n,t)),l=Zi[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(Co,{Manager:ko,Socket:So,io:Co,connect:Co});I();var KF=new Set(["__proto__","constructor","prototype"]),OC=e=>{if(!Array.isArray(e))return!1;for(let t=0;t<e.length;t++)if(KF.has(e[t]))return!1;return!0},XF=(e,t)=>{!e||!OC(t)||t.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},e)},YF=(e,t,r,n=!1)=>{!e||!OC(t)||t.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&n&&(o[s]={}),o[s];o[s]=r}},e)},TC=(e,t)=>{let r=new Set;if(!Array.isArray(t))return r;for(let[n,o,s]of t)if(!(!Array.isArray(o)||!o.length))switch(r.add(o[0]),n){case"delete":XF(e,o);break;case"update":case"set":YF(e,o,s,!0);break;default:break}return r};var ZF=Object.create,kb=Object.defineProperty,JF=Object.getOwnPropertyDescriptor,QF=Object.getOwnPropertyNames,ej=Object.getPrototypeOf,tj=Object.prototype.hasOwnProperty,K=(e,t)=>()=>(e&&(t=e(e=0)),t),Cb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),X=(e,t)=>{for(var r in t)kb(e,r,{get:t[r],enumerable:!0})},rj=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of QF(t))!tj.call(e,o)&&o!==r&&kb(e,o,{get:()=>t[o],enumerable:!(n=JF(t,o))||n.enumerable});return e},nj=(e,t,r)=>(r=e!=null?ZF(ej(e)):{},rj(t||!e||!e.__esModule?kb(r,"default",{value:e,enumerable:!0}):r,e)),Ab,Eb,se,me,zf=K(()=>{"use strict";Ab=globalThis,Eb=globalThis,se=globalThis,me=se.document}),Va,Wf,st,Uf=K(()=>{"use strict";zf(),Va=e=>(typeof Node=="object"?e instanceof se.Node:e&&typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string")||!1,Wf=e=>(typeof HTMLElement=="object"?e instanceof se.HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string")||!1,st=e=>typeof se<"u"&&(se.Node&&e instanceof se.Node||se.Window&&e instanceof se.Window||e===se||e===document)}),j,R,Pn,F,Gu,Ku,U,Xu,oe,Bo,Bt,la,Yt,Ob,Fe=K(()=>{"use strict";Uf(),j=e=>e===null?!1:typeof e=="object"&&e.constructor===Object,R=e=>typeof e=="string",Pn=e=>typeof e=="number",F=e=>typeof e=="function",Gu=e=>e===!0||e===!1,Ku=e=>e===null,U=e=>Array.isArray(e),Xu=e=>e instanceof Date,oe=e=>e===null?!1:typeof e=="object",Bo=e=>e!==void 0,Bt=e=>e===void 0,la={boolean:Gu,array:U,object:j,string:R,date:Xu,number:Pn,null:Ku,function:F,objectLike:oe,node:Va,htmlElement:Wf,defined:Bo},Yt=e=>(...t)=>t.some(r=>la[r](e)),Ob=e=>(...t)=>!t.some(r=>la[r](e))}),Tb,Pb,Rb,$b,Ra,Hf,Ib,Fb,qf,jb,Db,Lb,Mb,Nb,Bb,Vb,$a,Gf,za=K(()=>{"use strict";Gr(),Fe(),Tb=(e,t)=>t.every(r=>e.includes(r)),Pb=(e,t)=>{let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r},Rb=(e,t)=>{if(R(t)&&(t=parseInt(t)),Pn(t)){if(t<0||t>=e.length||isNaN(t))throw new Error("Invalid index");e.splice(t,1)}else throw new Error("Invalid index");return e},$b=(e,t,r)=>{t<0||r<0||t>=e.length||r>=e.length||([e[t],e[r]]=[e[r],e[t]])},Ra=(...e)=>[].concat(...e),Hf=(e,t=[])=>e.reduce((r,n)=>Qt(r,et(n,{exclude:t}),t),{}),Ib=(e,t)=>{let r=e.indexOf(t);return r!==-1?e.slice(0,r):e},Fb=(e,t)=>{if(!U(e))return;let r=e.indexOf(t);return r!==-1?e.slice(r+1):e},qf=(e,t)=>{let r=e.indexOf(t);if(r>-1){let n=[...e];return n.splice(r,1),n}return e},jb=(e,t)=>e.filter(r=>r!==t),Db=(e,t)=>{let r=[];for(let n=0;n<e.length;n++)r.push(e[n]),n<e.length-1&&r.push(t);return r},Lb=(e,t,r)=>{let n=[...e],o=n.indexOf(t),s=n.indexOf(r);if(o!==-1&&s!==-1){let i=n.splice(o,1)[0],a=s<o?s:s+1;n.splice(a,0,i)}return n},Mb=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},Nb=(e,t)=>e.filter(r=>!t.includes(r)),Bb=(e,t)=>{let r=new Set(t);return e.filter(n=>!r.has(n))},Vb=(e,t)=>{if(!e)return 0;let r=0;for(let n=0;n<t.length;n++)e.includes(t[n])&&r++;return r},$a=e=>U(e)?[...new Set(e)]:e,Gf=(e,t)=>{for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!1,configurable:!0,writable:!0})}});function $A(e,t,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!e.includes(o))return e;let s=IA[n],i=t||this.state||{},a=this;return e.replace(s,(l,c,u,d)=>{let f=u.trim();if(d){let p=a?.context,h=p?.functions?.[d]||p?.utils?.[d]||p?.methods?.[d]||p?.snippets?.[d]||a?.[d];if(h&&typeof h=="function")try{return String(h.call(a,f)??"")}catch{return""}return""}if(c){let p=(c.match(/\.\.\//g)||[]).length,h=i;for(let m=0;m<p;m++){if(!h||!h.parent)return"";h=h.parent}if(f==="parent")return String(h.value??"");let g=$o(h,f);return String(g??"")}else{let p=$o(i,f);if(p!=null)return String(p);let h=a?.context?.polyglot;if(h?.translations){let g=i?.root?.lang||i?.lang||a?.context?.state?.lang||h.defaultLang||"en",m=h.translations[g];if(m){let b=$o(m,f);if(b!=null&&typeof b!="object")return String(b);for(let x in m){let v=m[x];if(v&&typeof v=="object"&&!Array.isArray(v)){let _=$o(v,f);if(_!=null&&typeof _!="object")return String(_)}}}let y=$o(h.translations,f);if(y!=null&&typeof y!="object")return String(y)}return""}})}var Kf,zb,IA,$o,Wa,Wb,PC,Ub,Hb,qb,RC,Gb,Kb,Xf=K(()=>{"use strict";Kf=(e,t)=>{for(let r of t)if(e.includes(r))return!0;return!1},zb=(e,t)=>{let r=new RegExp(`[${t.join("\\")}]`,"g");return e.replace(r,"")},IA={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},$o=(e,t)=>t.split(".").reduce((r,n)=>r?.[n],e),Wa=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`,Wb=(e,t)=>{let r=e.split(`
|
|
72
|
+
`),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${t}\\b\\s*:\\s*`),l=0,c=!1;for(let u=0;u<r.length;u++)if(a.test(r[u])&&!c){if(c=!0,n=u+1,s=r[u].indexOf(t)+1,r[u].includes("{}")){o=n,i=r[u].indexOf("{}")+3;break}let d=r[u].slice(s+t.length);if(d.includes("{")||d.includes("["))l=1;else{o=u+1,i=r[u].length+1;break}}else if(c&&(l+=(r[u].match(/{/g)||[]).length,l+=(r[u].match(/\[/g)||[]).length,l-=(r[u].match(/}/g)||[]).length,l-=(r[u].match(/]/g)||[]).length,l===0)){o=u+1,i=r[u].lastIndexOf("}")!==-1?r[u].lastIndexOf("}")+2:r[u].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},PC=/\\([0-7]{1,3})/g,Ub=e=>e.replace(PC,(t,r)=>String.fromCharCode(parseInt(r,8))),Hb=e=>e.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),qb=e=>e.replace(/\/\/\/\/\/n/g,`
|
|
73
|
+
`).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),RC=/[^a-zA-Z0-9\s]/g,Gb=e=>e.replace(RC,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase()),Kb=e=>e.replace(/%[0-9A-Fa-f]{2}/g,t=>String.fromCharCode(parseInt(t.slice(1),16)))}),Uo,Yf,Xb,En,On,Ia,Zf,Yb,Ua=K(()=>{"use strict";Uo=new Set(["attr","style","text","html","content","data","classlist","state","scope","root","deps","extend","extends","$router","routes","children","childExtend","childExtends","childExtendRecursive","childExtendsRecursive","props","if","define","__name","__ref","__hash","__text","key","tag","query","parent","node","variables","on","fetch","component","context","preventContentUpdate","preventContentRecreate"]),Yf=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),Xb=["ref","parent","__element","__depends","__ref","__children","root"],En=new Set(["update","parse","clean","create","destroy","add","toggle","remove","apply","set","reset","replace","quietReplace","quietUpdate","applyReplace","applyFunction","keys","values","ref","rootUpdate","parentUpdate","parent","__element","__depends","__ref","__children","root","setByPath","setPathCollection","removeByPath","removePathCollection","getByPath"]),On=new Set(["update","__element"]),Ia=new Set(["set","reset","update","remove","updateContent","removeContent","lookup","lookdown","lookdownAll","getRef","getPath","setNodeStyles","spotByPath","keys","parse","setProps","parseDeep","variables","if","log","verbose","warn","error","call","nextElement","previousElement","getRootState","getRoot","getRootData","getRootContext","getContext","getQuery","getDB","getChildren","preventContentUpdate","preventContentRecreate"]),Zf=new Set(["node","context","extends","__element","__ref",...Ia,...En,...On]),Yb=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])}),jy,zr,Ne,Zb,it,Qt,Dy,Jb,et,ca,$C,ua,IC,FC,Fo,jC,fa,Qb,ex,tx,Yu,rx,nx,Jf,Qf,Rn,Zu,DC,ox,sx,Ju,ix,ax,lx,cx,ux,fx,dx,Gr=K(()=>{"use strict";zf(),Fe(),za(),Xf(),Uf(),Ua(),jy="production",zr=e=>e.charCodeAt(0)===95&&e.charCodeAt(1)===95,Ne=(e,t,r,n)=>{if(F(e))return t?typeof e.call!="function"?e:e.call(t,t,r||t.state,n||t.context):void 0;if(e!=null&&t?.context?.plugins&&(U(e)||j(e)&&!st(e))){let o=t.context.plugins;for(let s of o)if(s.resolveHandler){let i=s.resolveHandler(e,t);if(typeof i=="function")return Ne(i,t,r,n)}}return e},Zb=(e,t,r)=>{for(let n in t)e[n]=Ne(t[n],r)},it=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(zr(o)||(n?r.has(o):r.includes(o))||e[o]===void 0&&(e[o]=t[o]));return e},Qt=(e,t,r=Zf)=>Dy(e,t,r,null),Dy=(e,t,r,n)=>{if(e===t)return e;if(n){for(let s=0;s<n.length;s+=2)if(n[s]===e&&n[s+1]===t)return e}let o=r instanceof Set;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||zr(s)||s==="constructor"||s==="prototype"||(o?r.has(s):r.includes(s)))continue;let i=e[s],a=t[s];if(oe(i)&&oe(a)){let l=n||[];l.push(e,t),Dy(i,a,r,l),l.length-=2}else i===void 0&&(e[s]=a)}return e},Jb=(e,t=[])=>{let r=t instanceof Set,n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(zr(o)||(r?t.has(o):t.includes(o))||(n[o]=e[o]));return n},et=(e,t={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,window:s,visited:i=new WeakMap,handleExtends:a=!1}=t,l=s||se||globalThis;if(!oe(e)||st(e))return e;if(i.has(e))return i.get(e);let c=U(e)?[]:{};i.set(e,c);let u=r instanceof Set?r:r.length>3?new Set(r):null;for(let d in e){if(!Object.prototype.hasOwnProperty.call(e,d)||zr(d)||d==="__proto__"||(u?u.has(d):r.includes(d)))continue;let f=e[d];if(!(n&&f===void 0)&&!(o&&f===null)){if(st(f)){c[d]=f;continue}if(a&&d==="extends"&&U(f)){c[d]=Hf(f,r);continue}if(F(f)){c[d]=f;continue}oe(f)?c[d]=et(f,{...t,visited:i}):c[d]=f}}return c},ca=(e,t={})=>{(e.node||e.__ref||e.parent||e.__element||e.parse)&&((e.__element||e.parent?.__element).warn("Trying to clone element or state at",e),e=e.parse?.());for(let r in e){let n=e[r];if(F(n))t[r]=n.toString();else if(j(n))t[r]={},ca(n,t[r]);else if(U(n)){let o=t[r]=[];for(let s=0;s<n.length;s++){let i=n[s];j(i)?(o[s]={},ca(i,o[s])):F(i)?o[s]=i.toString():o[s]=i}}else t[r]=n}return t},$C=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),ua=(e={},t=0)=>{if(e===null||typeof e!="object")return String(e);let r=!1;for(let s in e){r=!0;break}if(!r)return"{}";let n=" ".repeat(t),o=`{
|
|
74
|
+
`;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let i=e[s],a=!1;for(let c=0;c<s.length;c++)if($C.has(s[c])){a=!0;break}let l=a?`'${s}'`:s;if(o+=`${n} ${l}: `,U(i)){o+=`[
|
|
75
|
+
`;for(let c of i)oe(c)&&c!==null?o+=`${n} ${ua(c,t+2)},
|
|
76
|
+
`:R(c)?o+=`${n} '${c}',
|
|
77
77
|
`:o+=`${n} ${c},
|
|
78
|
-
`;o+=`${n} ]`}else oe(i)?o+=
|
|
78
|
+
`;o+=`${n} ]`}else oe(i)?o+=ua(i,t+1):R(i)?o+=Kf(i,[`
|
|
79
79
|
`,"'"])?`\`${i}\``:`'${i}'`:o+=i;o+=`,
|
|
80
|
-
`}return o+=`${n}}`,o},
|
|
81
|
-
First 200 chars of source: `+String(o).slice(0,200)),t[n]=o}else t[n]=o;else if(
|
|
82
|
-
First 200 chars: ${String(a).slice(0,200)}`),s.push(a)}else s.push(a);else
|
|
80
|
+
`}return o+=`${n}}`,o},IC=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],FC=/^["[{]/,Fo=e=>{if(!e)return!1;let t=e.trim().replace(/\n\s*/g," ").trim();if(t===""||t==="{}"||t==="[]"||!IC.some(o=>o.test(t)))return!1;let r=t.charCodeAt(0),n=t.includes("=>");return!(r===123&&!n||r===91||FC.test(t)&&!n)},jC=e=>(0,eval)(e),fa=(e,t={},r={window:{eval:jC}})=>{for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let o=e[n];if(R(o))if(Fo(o))try{t[n]=r.window.eval(`(${o})`)}catch(s){typeof console<"u"&&console.warn&&console.warn('[smbls] deepDestringifyFunctions: eval failed on "'+n+'" \u2014 function will be left as a string and el.call("'+n+'") will silently no-op. Reason: '+(s&&s.message?s.message:String(s))+`.
|
|
81
|
+
First 200 chars of source: `+String(o).slice(0,200)),t[n]=o}else t[n]=o;else if(U(o)){let s=t[n]=[];for(let i=0;i<o.length;i++){let a=o[i];if(R(a))if(Fo(a))try{s.push(r.window.eval(`(${a})`))}catch(l){typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed in array at index ${i} (prop "${n}"). Reason: ${l&&l.message?l.message:String(l)}.
|
|
82
|
+
First 200 chars: ${String(a).slice(0,200)}`),s.push(a)}else s.push(a);else j(a)?s.push(fa(a)):s.push(a)}}else j(o)?t[n]=fa(o,t[n]):t[n]=o}return t},Qb=e=>{if(!e||typeof e!="object")return e;let t={},r=[];for(let n of Object.keys(e)){let o=e[n];R(o)&&Fo(o)?r.push([n,o]):t[n]=o}for(let[n,o]of r)try{let s=Object.keys(t).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
|
|
83
83
|
`);t[n]=se.eval(`(function(__gs__) { ${s}
|
|
84
|
-
return (${o}); })`)(t)}catch{try{t[n]=se.eval(`(${o})`)}catch{t[n]=o}}return t},K0=(e,t={verbose:!0})=>{try{return e?se.eval("("+e+")"):{}}catch(r){t.verbose&&console.warn(r)}},Z0=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),uf=e=>{for(let t in e)return!1;return!0},X0=e=>B(e)&&uf(e),Y0=()=>Object.create(null),hd=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in t)n.includes(s)||!o&&qr(s)||s==="constructor"||s==="prototype"||t[s]!==void 0&&(e[s]=t[s]);return e},gd=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)qr(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(e[o]=t[o]);return e},Bn=(e,t,r={},n=new WeakMap)=>{if(!oe(e)||!oe(t)||at(e)||at(t))return t;if(n.has(e))return n.get(e);n.set(e,e);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a)||s&&s.has(a)||i&&qr(a)||a==="constructor"||a==="prototype")continue;let l=e[a],c=t[a];at(c)?e[a]=c:oe(l)&&oe(c)?e[a]=Bn(l,c,r,n):c!==void 0&&(e[a]=c)}return e},ff=(e,t,r=new Set)=>{if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e===t;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(t,i)||!ff(e[i],t[i],r))return!1}return!0},gT=new Set(["node","__ref"]),J0=(e,t,r=gT)=>{if(e===t)return!0;if(!oe(e)||!oe(t)||at(e)||at(t))return e===t;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function s(i,a){if(o.has(a))return!0;o.add(a);for(let l in a){if(!Object.prototype.hasOwnProperty.call(a,l)||n.has(l))continue;if(!Object.prototype.hasOwnProperty.call(i,l))return!1;let c=a[l],u=i[l];if(at(c)||at(u)){if(c!==u)return!1}else if(oe(c)&&oe(u)){if(!s(u,c))return!1}else if(c!==u)return!1}return!0}return s(e,t)},Q0=(e,t)=>{if(t==null)return e;if(Qt(t)("string","number"))delete e[t];else if(q(t))for(let r=0;r<t.length;r++)delete e[t[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return e},df=e=>{if(e===null||typeof e!="object")return e;let t=Object.create(null);for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=df(e[r]));return t},ev=(e,t)=>{if(e.length===0)return t;let r={},n=r;for(let o=0;o<e.length;o++)o===e.length-1&&t?n[e[o]]=t:(n[e[o]]={},n=n[e[o]]);return r},tv=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let o=0;o<t.length-1;o++){if(r[t[o]]===void 0)return;r=r[t[o]]}let n=t[t.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},rv=(e,t,r)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let n=e;for(let o=0;o<t.length-1;o++)(!n[t[o]]||typeof n[t[o]]!="object")&&(n[t[o]]={}),n=n[t[o]];return n[t[t.length-1]]=r,e},nv=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let n=0;n<t.length;n++){if(r==null)return;r=r[t[n]]}return r},ov=e=>{let t=[],r=0;for(let n=0;n<e.length;n++)if(t.length<2)t.push(e[n]);else if(e[n]===t[n%2]?r++:(t=[e[n-1],e[n]],r=1),r>=20)return(Pb==="test"||Pb==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",t),!0},sv=e=>{let t=new WeakSet;function r(n){if(n&&typeof n=="object"){if(t.has(n))return!0;t.add(n);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return console.log(n,"cycle at "+o),!0}return!1}return r(e)},iv=(e,t)=>{let r=t instanceof Set?t:new Set(t),n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&!r.has(o)&&(n[o]=e[o]);return n}}),ma,md,yd,av=Z(()=>{"use strict";Xr(),ma=(function(){let e=0;function t(){return e++,e}return t})(),md=ma,yd=(e,t,r)=>(De(r,e)||r||e.key||ma()).toString()}),Ht,lv,Zo,pf,cv,uv,fv,bd,dv,Xa,pO=Z(()=>{"use strict";Ht="production",lv=Ht,Zo=(e=Ht)=>e==="production",pf=(e=Ht)=>e==="testing"||e==="test",cv=pf,uv=(e=Ht)=>e==="staging",fv=(e=Ht)=>e==="local",bd=(e=Ht)=>e==="development"||e==="dev"||e==="local",dv=(e,t=Ht)=>t[e],Xa=(e=Ht)=>!Zo(e)});function hO(e,t,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||e.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,t),a&&e.apply(o,s)}}function gO(e,t=window){let r=function(){return e.apply(t,arguments)};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var pv,hv,mT,gv,Ya,Ba,Ma,Ja=Z(()=>{"use strict";pv=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},hv=e=>{let t={};return(...r)=>{let n=r[0];if(n in t)return t[n];{let o=e(n);return t[n]=o,o}}},mT=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,gv=e=>mT.test(e),Ya=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},Ba=(e,t)=>{if(typeof e=="function")return e;let r=t?.context?.plugins;if(!r)return e;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(e,t);if(typeof o=="function")return o}return e},Ma=(e,t,...r)=>{let n=t?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[e]=="function"&&(s[e](t,...r),o=!0);return o}}),mv,YM=Z(()=>{"use strict";Be(),Xr(),mv=(e,t)=>{let{__ref:r}=e,n=e.if;if(L(n)){let o;try{o=n(e,e.state,e.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete r.__if;return}o?r.__if=!0:delete r.__if}else n!=null&&typeof n=="object"?De(n,e)?r.__if=!0:delete r.__if:r.__if=!0}}),yv,bv,JM=Z(()=>{"use strict";yv=(e,...t)=>{e&&t.map(r=>console.log(r))},bv=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function mO(e){let t;try{if(!window.localStorage)return;t=window.localStorage.getItem(e)}catch{return}if(t!==null)try{return JSON.parse(t)}catch{return}}function yO(e,t){if(t!=null)try{if(!window.localStorage)return;let r=typeof t=="object"?JSON.stringify(t):t;window.localStorage.setItem(e,r)}catch{}}var vv,xv,wv,Sv,QM=Z(()=>{"use strict";Be(),od(),vv=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),xv=(e,t,r=365)=>{if(Tt(ye)||Tt(ye.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;ye.cookie=`${e}=${t};${o};path=/`},wv=e=>{if(Tt(ye)||Tt(ye.cookie))return;let t=`${e}=`,r=decodeURIComponent(ye.cookie).split(";");for(let n=0;n<r.length;n++){let o=r[n];for(;o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return""},Sv=e=>{Tt(ye)||Tt(ye.cookie)||(ye.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}}),Na,_v,kv,bO=Z(()=>{"use strict";Na={root:["body","html"],head:["title","base","meta","style","noscript","script"],body:new Set(["string","style","fragment","a","abbr","acronym","address","applet","area","article","aside","audio","b","basefont","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","search","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","hgroup","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","template","hgroup","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr","svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"])},_v=new Set(["svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"]),kv=e=>Na.body.has(e)}),Lu,$b,za,vd,tt,Cv,hf,ya,Av,ba,gf,mf,va,yf,Vo,yT,Jt,Ib,xa,wa,Ev,Sa,Tv,Ov,bf,vf,xf,wf,Sf,_f,Pv,Rv=Z(()=>{"use strict";Ga(),SO(),Xr(),Be(),Lu="production",$b=e=>e.sourcemap!==!1&&Lu!=="production",za=e=>{if(e.includes("+"))return e.split("+").filter($n);if(e.includes("_")){let[t]=e.split("_");return[t]}if(e.includes(".")&&!$n(e.split(".")[1])){let[t]=e.split(".");return[t]}return[e]},vd=(e,t,r)=>{let n=[],o=za(r);o&&(n=[...o]);let s=e.extends;return s&&(n=q(s)?[...n,...s]:[...n,s]),n},tt=(e,t)=>{let{__ref:r}=t,{__extends:n}=r;if(!e)return n;let o=t.variant,s=t.context;if(o&&s?.components&&!Array.isArray(e)&&typeof e=="string"){let i=`${e}.${o}`;s.components[i]&&(e=i)}return n.includes(e)||(n=Array.isArray(e)?[...n,...e]:[...n,e],r.__extends=n),n},Cv=(e,t)=>{if(!e)return t;let{extends:r}=t,n=q(r)?r:[r],o=q(e)?e:[e];return{...t,extends:Fa(o,n)}},hf=()=>Math.random().toString(36).substring(2),ya={},Av={},ba=e=>ya[e.__hash],gf=(e,t)=>{let r=hf();return I(e)||(e.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(ya[r]=t),t},mf=(e,t)=>e.__hash?t.concat(ba(e)):gf(e,t),va=(e,t,r,n=new Set,o,s)=>{for(let i of e)q(i)?va(i,t,r,n,o,s):Vo(i,t,r,n,o,void 0,s);return t},yf=(e,t,r,n=new Set,o,s,i)=>{let a=e.extends,l={...e};delete l.extends;let c=!1;for(let u in l){c=!0;break}return c&&(t.push(l),o&&o.push(s)),a&&Vo(a,t,r,n,o,s,i),t},Vo=(e,t,r,n=new Set,o,s,i)=>{if(!e||n.has(e))return t;if(q(e))return va(e,t,r,n,o,i);let a=s;return I(e)?(a=e,e=wa(e,r)):i&&B(e)&&i.has(e)&&(a=i.get(e)),n.add(e),e?.extends?yf(e,t,r,n,o,a,i):e&&(t.push(e),o&&o.push(a)),t},yT=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),Jt=(e,t,r,n,o)=>{t=rt(t);for(let s in t){if(yT.has(s))continue;let i=e[s],a=t[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(t,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)e[s]=a,r&&n?B(a)&&!q(a)?(r[s]=r[s]||{},Ib(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(B(i)&&B(a)){let l=r?r[s]=r[s]||{}:void 0,c=o?.[s];$n(s)?e[s]=Jt(i,a,l,n,c):Jt(i,a,l,n,c)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(q(i)&&q(a))e[s]=i.concat(a);else if(q(i)&&B(a)){let l=Jt({},i);e[s]=Jt(l,a)}}}}return e},Ib=(e,t,r,n)=>{if(n||(n=new WeakSet),!n.has(t)){n.add(t);for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=t[o];B(s)&&!q(s)?(e[o]=e[o]||{},Ib(e[o],s,r,n)):e[o]=r}}},xa=(e,t,r)=>e.reduce((n,o,s)=>{let i=rt(o),a=r?r[s]:void 0;return Jt(n,i,t,a)},{}),wa=(e,t,r={},n)=>{let o=t?.components||r.components,s=t?.pages||r.pages;if(I(e)){let i=o&&(o[e+"."+n]||o[e]||o["smbls."+e]),a=s&&e.charCodeAt(0)===47&&s[e];if(i)return i;if(a)return a;r.verbose&&(Lu==="test"||Lu==="development")&&console.warn("Extend is string but component was not found:",e);return}return e},Ev=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),Sa=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return ba(e)||[];let o=Vo(e,[],t,new Set,r,void 0,n);return r?o:mf(e,o)},Tv=(e,t)=>{if(!e)return t;let r=q(e)?e:[e];return Fa(r,t)},Ov=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&($n(o)&&t.push(o),o==="extends"&&(typeof n[o]=="string"?t.push(n[o]):Array.isArray(n[o])&&(t=t.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(e),t},bf=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant;if(e.extends)if(Array.isArray(e.extends)&&e.extends.length>0){let[i,...a]=e.extends;if(typeof i=="string"&&s&&o?.components){let l=`${i}.${s}`;o.components[l]?tt([l,...a],e):tt(e.extends,e)}else tt(e.extends,e)}else if(typeof e.extends=="string"&&s&&o?.components){let i=`${e.extends}.${s}`;o.components[i]?tt(i,e):tt(e.extends,e)}else tt(e.extends,e);return vf(e,t,r),xf(e,t,r),wf(e,t,r),e.component&&tt(De(e.component,e),e),o.defaultExtends&&tt(o.defaultExtends,e),Da(n.__extends)},vf=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&tt(t.childProps.extends,e),n.__extends},xf=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,s=t.childExtends;return!o&&s&&tt(s,e),n.__extends},wf=(e,t,r={})=>{let{__ref:n}=e,o=t.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||e.ignoreChildExtendsRecursive,i=e.key==="__text";return o&&!i&&!s&&tt(o,e),n.__extends},Sf=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant,i=$b(r),a=i?[...n.__extends]:null,l=Da(n.__extends.map((c,u)=>wa(c,o,r,u===0&&s)));if(i){let c=new WeakMap;for(let f=0;f<l.length;f++){let h=l[f],p=a[f];h&&B(h)&&I(p)&&c.set(h,p)}let u=[],d=Sa(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=Sa(l,o);n.__extendsStack=c}return n.__extendsStack},_f=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if($b(r)){let s={},i=n.__extendsNames||[],a=xa(o,s,i),l={};Jt(e,a,l,void 0,s),n.__sourcemap=l}else{let s=xa(o);Jt(e,s)}return e},Pv=(e,t,r={})=>(bf(e,t,r),Sf(e,t,r),_f(e,t,r),e)});function vO(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function xO(e){return Object.keys(e).filter(t=>/^\d+$/.test(t))}function wO(e,t,r){let{context:n}=t||{},[o]=za(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var $n,SO=Z(()=>{"use strict";Rv(),Be(),$n=e=>{if(!I(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function e5(e,t){let{props:r,on:n}=t,o=Ka(e.split("on")[1]),s=n[o],i=r[e];L(s)?n[o]=(...a)=>{if(s(...a)!==!1&&L(i))return i(...a)}:n[o]=i}var t5=Z(()=>{"use strict";fd(),Be()});function $v(e,t={}){let r=t.cachedKeys||[];for(let n in e){let o=e[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(L(o)||o!=null&&Ya(this.context))){let f=Ka(n.slice(2));e.on&&(e.on[f]=o),delete e[n];continue}if(n==="childProps"){e.props[n]=o,delete e[n],r.push(n);continue}let s=this.define?.[n],i=this.context?.define?.[n],a=B(s)||L(s),l=B(i)||L(i);if(a||l)continue;let c=n.charAt(0);if(Lv.has(c)){e.props[n]=o,delete e[n],r.push(n);continue}let u=Cf.test(n)||Dv.test(n)||kO(o),d=Yo.has(n);!u&&!d&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function Iv(e=this,t){let r=t.cachedKeys||[];for(let n in e.props){let o=e.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=L(o)||o!=null&&Ya(this.context);if(s&&i){e5(n,e),delete e.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(Lv.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=B(l)||L(l),d=B(c)||L(c),f=Cf.test(n)||Dv.test(n),h=Yo.has(n);(f||h||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function jv(e=this){let t=[];return $v.call(this,e,{cachedKeys:t}),Iv.call(this,e,{cachedKeys:t}),e}function _O(e={}){return e.on||(e.on={}),e.props||(e.props={}),jv.call(this,e)}function Fv(e,t){this.__element.update({props:e},t)}function kf(e){let t={update:Fv.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var Cf,Dv,Lv,bT,kO,xd,_a,Bv,ka,Ca,Aa,Af,Ea,Mv,Nv,CO=Z(()=>{"use strict";Za(),t5(),Xr(),Be(),fd(),Ja(),Cf=/^[A-Z]/,Dv=/^\d+$/,Lv=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),bT=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),kO=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;for(let t in e)if(bT.has(t)||Cf.test(t))return!0;return!1},xd=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return oe(n)?{...n}:(o.__propsStack.push(n),{})},_a=e=>Qt(e)("string","number")?{inheritedString:e}:e,Bv=(e,t)=>!e||!t.length?!1:t.includes(e),ka=(e,t)=>{let{__ref:r}=e,n=r.__propsStack||[],o=t.props;if(!o)return n;let s=o[e.key],i=o.childProps||t.childProps,a=e.props?.ignoreChildProps;if(i&&!a){let l=_a(i);n.unshift(l)}if(s){let l=_a(s);n.unshift(l)}return n},Ca=e=>{let t=new Set;return e.filter(r=>!r||jn.has(r)||t.has(r)?!1:(t.add(r),!0))},Aa=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(jn.has(o))return n;for(;L(o);)o=De(o,t);return tr(n,rt(o,{exclude:jn}))},{}),kf(t),t.props),Af=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...ka(e,t)]),B(r)?o.push(r):r==="inherit"&&t?.props?o.push(t.props):r&&o.push(r),q(n.__extendsStack))for(let s=0;s<n.__extendsStack.length;s++){let i=n.__extendsStack[s];i.props&&i.props!==r&&o.push(i.props)}return n.__propsStack=Ca(o),n.__propsStack},Ea=(e,t)=>{let{__ref:r}=e,n=Af(e,t);n.length?Aa(n,e):(r.__propsStack=[],e.props={})},Mv=function(e,t,r){let{__ref:n}=e;if(n.__if)Ea(e,t);else try{Ea(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),e.props={},n.__propsStack=[]}return kf(e),e},Nv=(e,t,r)=>{let{__ref:n}=t,o=[...n.__propsStack||[]],s=ka(t,r);return s.length&&(o=[...s,...o]),e&&(o=[e,...o]),n.__propsStack=Ca(o),n.__propsStack.length&&Aa(n.__propsStack,t),t}}),jb,Ef,Tf,Of,Pf,zv,Rf,$f,If,Wv,r5=Z(()=>{"use strict";Rv(),av(),id(),CO(),bO(),Be(),jb="production",Ef=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,s=Na.body.has(r)&&r;return{text:e,tag:n||o||s||"string"}},Tf=(e,t,r)=>{if(e===void 0)return(jb==="test"||jb==="development")&&console.warn(r,"element is undefined in",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Qt(e)("string","number")?Ef(e,t,r):L(e)?{props:e}:e},Of=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},Pf=(e,t,r,n,o)=>{if(!t)return o;if(Ua(t)){let s={key:":root",node:t};return o[`${r}_parent`]=s,s}return t},zv=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===":root";r?.root||(r.root=o?e:n?.root)},Rf=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},$f=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),If=(e,t,r)=>{let n=Of(e,t);return e.__ref=n,n.__defineCache||(n.__defineCache={}),n.__exec||(n.__exec={}),n.__execProps||(n.__execProps={}),n.__class||(n.__class={}),n.__classNames||(n.__classNames={}),n.__attr||(n.__attr={}),n.__changes||(n.__changes=[]),n.__children||(n.__children=[]),n.__extends=vd(e,t,r),n.path=Rf(e,t,r),n},Wv=(e,t,r,n,o)=>{let s=e?.__hash?{extends:[e]}:Tf(e,t,r);if(!s)return;let i=Pf(s,t,r,n,o),a=yd(s,i,r);If(s,i,a);let l=xd(s,i,a),c=$f(s,i,a,n,o),u=s.on||{};return{...s,key:a,props:l,parent:i,context:c,on:u}}}),Hv,jf,Ff,Df,Lf,Vv,Bf,qv,Uv,Gv,Kv,n5=Z(()=>{"use strict";Ga(),Za(),Xr(),Be(),Hv=e=>{let{state:t,props:r,__ref:n}=e,o=r?.state||t;return Qt(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=e.key,{}):o?(n.__hasRootState=!0,o):!1},jf=(e,t)=>{if(e.includes("~/")&&e.split("~/").length>1)return t.root},Ff=(e,t)=>{if(!e.includes("../"))return;let r=e.split("../").length-1;for(let n=0;n<r;n++){if(!t.parent)return null;t=t.parent}return t},Df=(e,t,r={})=>{let n=I(e)?e.split("/"):[e],o=n.length-1;for(let s=0;s<o;s++){let i=n[s],a=n[s+1];if(i==="__proto__"||a==="__proto__")return;let l=t[i];l||(l=t[i]={}),l[a]||(l[a]={}),e=a,t=l}return r.returnParent?t:t[e]},Lf=(e,t,r={})=>{let n=e.__ref.__state;if(!Bf(e))return;let o=jf(n,t.state),s=t.state;if(o)s=o,n=n.replaceAll("~/","");else{let i=Ff(n,t.state);i&&(s=i,n=n.replaceAll("../",""))}if(s)return Df(n,s,r)},Vv=(e,t)=>{let r=e.__ref,n=Lf(e,t);if(n===void 0)return e.state;if(Qt(n)("object","array"))return rt(n);if(Qt(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},Bf=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Qt(r)("number","string","boolean"))},qv=function(e){return oe(e)?!!(e.update&&e.parse&&e.clean&&e.create&&e.parent&&e.destroy&&e.rootUpdate&&e.parentUpdate&&e.keys&&e.values&&e.toggle&&e.replace&&e.quietUpdate&&e.quietReplace&&e.add&&e.apply&&e.applyReplace&&e.setByPath&&e.setPathCollection&&e.removeByPath&&e.removePathCollection&&e.getByPath&&e.applyFunction&&e.__element&&e.__children):!1},Uv=(e,t)=>{if(!e)return t||{};let r=e.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?t||{}:{},o=o[r[i]];return n},Gv=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=rt(n,In),s={[e.key]:o},i=B(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?cd(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},Kv=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){tr(e,t,In);return}(o?gd:Bn)(e,t,In)}}),Zv,o5=Z(()=>{"use strict";Zv=(e,t)=>{let{__ref:r}=e,n=e.context||t.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=t.scope||r.root?.scope,s=n?.globalScope;if(!e.scope)o?e.scope=o:s?e.scope=Object.create(s):e.scope={};else if(typeof e.scope=="object"&&e.scope!==null&&Object.getPrototypeOf(e.scope)===Object.prototype){let i=o||s;i&&Object.setPrototypeOf(e.scope,i)}}}),Fb,Mf,Xo,Nf,Xv,AO=Z(()=>{"use strict";Be(),Ja(),Fb=(e,t)=>{let r="on"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},Mf=(e,t,r,n,o)=>{if(e=Ba(e,t),!!L(e))try{let s=e.call(t,t,r||t.state,n||t.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{t.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(t.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),t.context?.strictMode)throw s}},Xo=(e,t,r)=>{if(!t)throw new Error("Element is required");Ma(e,t,r);let n=Fb(e,t);if(n){let{state:o,context:s}=t;return Mf(n,t,o,s,r)}},Nf=(e,t,r,n,o,s)=>{if(e=Ba(e,r),!!L(e))try{let i=e.call(r,t,r,n||r.state,o||r.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{r.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(r.error=i,console.error("[DOMQL] Event update error:",i),r.context?.strictMode)throw i}},Xv=(e,t,r,n)=>{Ma(e,r,t,n);let o=Fb(e,r);if(o){let{state:s,context:i}=r;return Nf(o,t,r,s,i,n)}}}),Yv,wd,EO=Z(()=>{"use strict";Yv={},wd={}}),TO={};$(TO,{setup:()=>OO,supabaseAdapter:()=>t0});var Db,vT,OO,Bu,xT,t0,s5=Z(()=>{"use strict";Db=new Map,vT=(e,t,r)=>`${e}|${t}|${r?"off":"on"}`,OO=async({url:e,key:t,projectId:r,createClient:n,auth:o,retry:s,adapter:i,...a})=>{let l=e||r&&`https://${r}.supabase.co`;if(!l||!t)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let c=vT(l,t,o===!1),u=Db.get(c);return u||(u=await n(l,t,a),u?.auth&&Db.set(c,u)),!u||!u.auth?null:t0(u)},Bu=(e,t)=>{if(!t)return e;for(let r in t){let n=t[r];if(n===null)e=e.is(r,null);else if(Array.isArray(n))e=e.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?e=e.gt(r,n[o]):o==="gte"?e=e.gte(r,n[o]):o==="lt"?e=e.lt(r,n[o]):o==="lte"?e=e.lte(r,n[o]):o==="neq"?e=e.neq(r,n[o]):o==="like"?e=e.like(r,n[o]):o==="ilike"?e=e.ilike(r,n[o]):o==="in"?e=e.in(r,n[o]):o==="is"?e=e.is(r,n[o]):o==="contains"?e=e.contains(r,n[o]):o==="containedBy"?e=e.containedBy(r,n[o]):o==="textSearch"&&(e=e.textSearch(r,n[o]));else e=e.eq(r,n)}return e},xT=(e,{limit:t,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s=="string"?s:s.by;e=e.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;e=e.order(s,{ascending:n.asc!==!1})}return t&&(e=e.limit(t)),r&&(e=e.range(r,r+(t||20)-1)),o&&(e=e.single()),e},t0=e=>({name:"supabase",client:e,getSession:async()=>{let{data:t}=await e.auth.getSession();return t?.session||null},getUser:async()=>{let{data:t}=await e.auth.getUser();return t?.user||null},signIn:t=>t.provider?e.auth.signInWithOAuth({provider:t.provider}):t.token?e.auth.signInWithIdToken(t):e.auth.signInWithPassword(t),signUp:t=>e.auth.signUp(t),signOut:()=>e.auth.signOut(),onAuthStateChange:t=>{let{data:{subscription:r}}=e.auth.onAuthStateChange((n,o)=>t(n,o));return()=>r.unsubscribe()},select:async({from:t,schema:r,select:n,params:o,headers:s,...i})=>{let a=(r?e.schema(r):e).from(t).select(n||"*");if(a=Bu(a,o),a=xT(a,i),s)try{for(let l in s)a.setHeader?a=a.setHeader(l,s[l]):e.rest&&(e.rest.headers[l]=s[l])}catch(l){console.warn("[supabase] setHeader failed:",l.message)}return a},rpc:({from:t,params:r})=>e.rpc(t,r),insert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).insert(n).select(o||"*"),update:({from:t,schema:r,data:n,params:o,select:s})=>{let i=(r?e.schema(r):e).from(t).update(n);return i=Bu(i,o),i.select(s||"*")},upsert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).upsert(n).select(o||"*"),delete:({from:t,params:r})=>{let n=e.from(t).delete();return n=Bu(n,r),n},subscribe:({from:t,params:r,on:n},o)=>{let s=n||"*",i=e.channel(`db-${t}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:t,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>e.removeChannel(i)},upload:({bucket:t,path:r,file:n,options:o})=>e.storage.from(t).upload(r,n,o),download:({bucket:t,path:r})=>e.storage.from(t).download(r),getPublicUrl:({bucket:t,path:r})=>e.storage.from(t).getPublicUrl(r)})}),PO={};$(PO,{restAdapter:()=>r0,setup:()=>RO});var wT,hr,RO,r0,i5=Z(()=>{"use strict";wT=(e,t,r)=>{let n=t&&!t.startsWith("/")?"/":"",o=new URL(`${e}${n}${t}`);if(r)for(let s in r){let i=r[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},hr=async(e,t)=>{let r=await globalThis.fetch(e,t),n=r.headers.get("content-type"),o=n&&n.includes("json")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},RO=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return r0(e,t,r,n)},r0=(e,t={},r,n={})=>{let o=r?.token||null,s=c=>{let u={...t,...c};return o&&(u.Authorization=`Bearer ${o}`),u},i=c=>({...s(c),"Content-Type":"application/json"}),a=c=>({...n,...c}),l=(c,u)=>{let d=u||e;if(c&&(c.startsWith("http://")||c.startsWith("https://")))return c;let f=c&&!c.startsWith("/")?"/":"";return`${d}${f}${c||""}`};return{name:"rest",setToken:c=>{o=c},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let c=await hr(l(r.sessionUrl,r.baseUrl),a({headers:s()}));return c.error?null:c.data},signIn:async c=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let u=await hr(l(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(c)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await hr(l(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:c,params:u,select:d,limit:f,offset:h,order:p,single:g,headers:m,baseUrl:y})=>{let b={...u};return d&&(b.select=d),f&&(b.limit=f),h&&(b.offset=h),g&&(b.single=!0),p&&(typeof p=="string"?b.order=p:Array.isArray(p)?b.order=p.map(v=>`${v.by}:${v.asc===!1?"desc":"asc"}`).join(","):p.by&&(b.order=`${p.by}:${p.asc===!1?"desc":"asc"}`)),hr(wT(y||e,c||"",b),a({headers:s(m)}))},rpc:({from:c,params:u,headers:d,baseUrl:f})=>hr(l(`rpc/${c}`,f),a({method:"POST",headers:i(d),body:JSON.stringify(u)})),insert:({from:c,data:u,headers:d,baseUrl:f})=>hr(l(c,f),a({method:"POST",headers:i(d),body:JSON.stringify(u)})),update:({from:c,data:u,params:d,method:f,headers:h,baseUrl:p})=>{let g=d?.id||u?.id,m=g?`${c}/${g}`:c;return hr(l(m,p),a({method:f||"PATCH",headers:i(h),body:JSON.stringify(u)}))},delete:({from:c,params:u,headers:d,baseUrl:f})=>{let h=u?.id,p=h?`${c}/${h}`:c;return hr(l(p,f),a({method:"DELETE",headers:s(d)}))}}}}),$O={};$($O,{localAdapter:()=>n0,setup:()=>IO});var Mu,ST,IO,n0,a5=Z(()=>{"use strict";Mu=(e,t)=>{if(!t)return!0;for(let r in t){let n=t[r];if(n===null){if(e[r]!==null&&e[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(e[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(e[r]>n[o])||o==="gte"&&!(e[r]>=n[o])||o==="lt"&&!(e[r]<n[o])||o==="lte"&&!(e[r]<=n[o])||o==="neq"&&e[r]===n[o]||o==="like"&&!String(e[r]).includes(n[o]))return!1}else if(e[r]!==n)return!1}return!0},ST=(e,{order:t,limit:r,offset:n,single:o})=>{let s=[...e];if(t){let i=typeof t=="string"?t:t.by,a=t.asc!==!1;s.sort((l,c)=>l[i]<c[i]?a?-1:1:l[i]>c[i]?a?1:-1:0)}return n&&(s=s.slice(n)),r&&(s=s.slice(0,r)),o?{data:s[0]||null,error:null}:{data:s,error:null}},IO=async({data:e,...t})=>n0(e,t),n0=(e={},t={})=>{let r={},n={},o=t.persist!==!1&&typeof localStorage<"u",s=t.prefix||"smbls_db_",i=u=>{if(!r[u])if(o)try{let d=localStorage.getItem(s+u);r[u]=d?JSON.parse(d):e[u]||[]}catch{r[u]=e[u]||[]}else r[u]=e[u]||[];return r[u]},a=u=>{if(o)try{localStorage.setItem(s+u,JSON.stringify(r[u]))}catch{}},l=(u,d,f,h)=>{let p=n[u];if(p)for(let g of p)g(f,h,{event:d,table:u})},c=Date.now();return{name:"local",store:r,select:async({from:u,params:d,...f})=>{let h=i(u).filter(p=>Mu(p,d));return ST(h,f)},insert:async({from:u,data:d})=>{let f=i(u),h=(Array.isArray(d)?d:[d]).map(p=>{let g={id:p.id||++c,...p};return f.push(g),g});a(u);for(let p of h)l(u,"INSERT",p,null);return{data:Array.isArray(d)?h:h[0],error:null}},update:async({from:u,data:d,params:f})=>{let h=i(u),p=[];for(let g=0;g<h.length;g++)if(Mu(h[g],f)){let m={...h[g]};Object.assign(h[g],d),p.push(h[g]),l(u,"UPDATE",h[g],m)}return a(u),{data:p,error:null}},delete:async({from:u,params:d})=>{let f=i(u),h=[];for(let p=f.length-1;p>=0;p--)Mu(f[p],d)&&(h.push(f[p]),f.splice(p,1),l(u,"DELETE",null,h[h.length-1]));return a(u),{data:h,error:null}},subscribe:({from:u,on:d},f)=>{n[u]||(n[u]=[]);let h=(p,g,m)=>{d&&d!=="*"&&d!==m.event||f(p,g,m)};return n[u].push(h),()=>{let p=n[u].indexOf(h);p>-1&&n[u].splice(p,1)}}}}}),aa={};$(aa,{createAdapter:()=>FO,default:()=>BO,executeFetch:()=>Xu,fetchPlugin:()=>LO,initAdapterAuth:()=>la,parseDuration:()=>Wo,queryClient:()=>DO,registerAdapter:()=>jO,resolveDb:()=>o0});var _T,Lb,jO,FO,o0,Wo,We,Bb,jo,kT,Fo,Do,Lo,ra,Nu,na,CT,Mb,zu,Nb,zb,Pn,Wb,AT,Hb,ET,oa,Vb,la,Wu,st,kt,Bo,Ur,zt,gr,TT,OT,PT,Hu,RT,Xu,DO,LO,BO,qo=Z(()=>{"use strict";D(),_T=["select","rpc","insert","update","delete","subscribe"],Lb={supabase:()=>Promise.resolve().then(()=>(s5(),TO)),rest:()=>Promise.resolve().then(()=>(i5(),PO)),local:()=>Promise.resolve().then(()=>(a5(),$O))},jO=(e,t)=>{Lb[e]=t},FO=e=>{let t={};for(let r of _T)e[r]&&(t[r]=e[r]);return t.name=e.name||"custom",t},o0=async e=>{if(!e)return null;if(typeof e.select=="function")return e;let{adapter:t,...r}=e,n=typeof t=="string"?t:typeof e=="string"?e:null;if(!n)return null;let o=Lb[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},Wo=e=>{if(!e)return 0;if(typeof e=="number")return e;let t=e.match(/^(\d+)(ms|s|m|h)$/);if(!t)return 0;let r=parseInt(t[1]),n=t[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},We=new Map,Bb=new Map,jo=new Map,kT=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=ET(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||"")}`;return t?`${n}:${t}`:n},Fo=e=>We.get(e)||null,Do=(e,t,r)=>{let n=We.get(e),o={data:t,error:r,time:Date.now(),stale:!1};We.set(e,o);let s=Bb.get(e);if(s)for(let i of s)L(i)&&i(o);return o},Lo=e=>{if(e){let t=We.get(e);t&&(t.stale=!0);return}for(let[,t]of We)t.stale=!0},ra=e=>{if(e){We.delete(e);return}We.clear()},Nu=e=>!e&&e!==!1?{staleTime:6e4,gcTime:3e5}:e===!1?null:e===!0?{staleTime:6e4,gcTime:3e5}:typeof e=="number"?{staleTime:e,gcTime:Math.max(e*5,3e5)}:I(e)?{staleTime:Wo(e),gcTime:3e5}:{staleTime:Wo(e.stale||e.staleTime)||6e4,gcTime:Wo(e.gc||e.gcTime||e.expire)||3e5,key:e.key},na=null,CT=()=>{na||(na=setInterval(()=>{let e=Date.now();for(let[t,r]of We){let n=Bb.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&We.delete(t)}},3e4),na.unref&&na.unref())},CT(),Mb=3,zu=e=>Math.min(1e3*2**e,3e4),Nb=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:Mb,delay:zu}:typeof t=="number"?{count:t,delay:zu}:{count:t.count??Mb,delay:L(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:zu}},zb=async(e,t)=>{let{count:r,delay:n}=t,o;for(let s=0;s<=r;s++)try{let i=await e();if(i?.error){if(o=i.error,s<r){let a=L(n)?n(s,o):n;await new Promise(l=>setTimeout(l,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=L(n)?n(s,i):n;await new Promise(l=>setTimeout(l,a));continue}throw i}return{data:null,error:o}},Pn={focus:new Set,online:new Set},Wb=!1,AT=()=>{if(Wb||typeof window>"u")return;Wb=!0;let e=()=>{for(let r of Pn.focus)r()},t=()=>{for(let r of Pn.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},Hb=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:"select",query:!0,on:"create"};if(I(e))return{from:e,method:"select",query:!0,on:"create"};if(B(e)){let n={...e};return n.from=n.from||r.__state||t.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},ET=e=>(!e||L(e),e),oa=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},Vb=(e,t,r)=>{let n;if(!e)n=void 0;else if(L(e))n=e(t,t.state);else{n={};for(let o in e){let s=e[o];n[o]=L(s)?s(t,t.state):s}}return n},la=async(e,t)=>{if(!e||e.__authInitialized||(e.__authInitialized=!0,!e.getSession))return;let r=(n,o)=>{let s=t.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await e.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}e.onAuthStateChange&&e.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},Wu=async(e,t)=>{if(L(e.select))return e.auth!==!1&&await la(e,t),e;if(e.__resolved)return e.auth!==!1&&await la(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=o0(e);let r=await e.__resolving;return delete e.__resolving,r?(r.auth=e.auth,r.url=e.url,r.key=e.key,e.__resolved=r,t.fetch=r,e.auth!==!1&&await la(r,t),r):null},st=(e,t,...r)=>{let n=L(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},kt=(e,t,r,...n)=>{let o=e&&L(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},Bo=e=>{let t={},r=e.node;if(!r)return t;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())t[s]=i;return t}let n=r.querySelectorAll("input, textarea, select");for(let o=0;o<n.length;o++){let s=n[o],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?t[i]=s.checked:s.type==="file"?t[i]=s.files:t[i]=s.value)}return t},Ur=(e,t,r,n={})=>{let o=r&&r.startsWith("~/"),s=o&&e.state?.root||e.state;if(s?.update)if(o){let i=r.slice(2);t&&typeof t=="object"&&!Array.isArray(t)&&i in t?s.update(t,{preventFetch:!0,...n}):s.update({[i]:t},{preventFetch:!0,...n})}else{let i=r?{[r]:t}:t;s.update(i,{preventFetch:!0,...n})}},zt=(e,t)=>{let r=e?.__ref;r&&(r.__fetchStatus=t,r.__fetching=t.isFetching,r.__fetchError=t.error)},gr=async(e,t,r,n={})=>{let o=r?.fetch;if(!o||!t||!t.__ref||e.enabled===!1||L(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||L(e.skip)&&e.skip(t,t.state))return;let s=await Wu(o,r);if(!s||!t.__ref)return;let i=t.__ref,{from:a,method:l,query:c,params:u,cache:d,transform:f,single:h,auth:p,fields:g,as:m,limit:y,offset:b,order:v,headers:x,baseUrl:w,page:E,cursor:A,getNextPageParam:C,getPreviousPageParam:S,infinite:z,placeholderData:re,initialData:G,select:V,keepPreviousData:ve}=e,he=I(V)?V:void 0;if(c&&L(t.getQuery)){let ie=t.getQuery(s.name||"paths");ie&&(he=ie.select||ie.length&&ie.join(",")||he)}let xe=Vb(u,t,r),ge=Nu(d),rr=Nb(e),Jr=oa(t,r),jd=Jr?`:${Jr}`:"",X=ge?d?.key||`${a}:${l}:${JSON.stringify(xe||"")}${z?":infinite":""}${E?":p"+JSON.stringify(E):""}${jd}`:null;if(!i.__fetchInitialized&&X&&(i.__fetchInitialized=!0,G!==void 0)){let ie=L(G)?G():G;Do(X,ie,null)}if((l==="select"||l==="rpc")&&X&&ge){let ie=Fo(X);if(ie&&!ie.error){let N=Date.now()-ie.time,W=ie.stale||N>(ge.staleTime||0),M=ie.data;if(L(V)&&(M=V(M,t,t.state)),f&&(M=f(M,t,t.state)),Ur(t,M,m),!W){zt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(re!==void 0){let N=L(re)?re(t,t.state):re;N!==void 0&&Ur(t,N,m)}}if(X&&jo.has(X)&&!n.force){let ie=jo.get(X);try{let N=await Promise.race([ie,new Promise((W,M)=>setTimeout(()=>M("DEDUP_TIMEOUT"),15e3))]);if(N?.data!==void 0){let W=N.data;L(V)&&(W=V(W,t,t.state)),f&&(W=f(W,t,t.state)),Ur(t,W,m),st(t,"onFetchComplete",W),kt(e,t,"onFetchComplete",W)}}catch{}return}let Fd=!Fo(X)?.data;zt(t,{isFetching:!0,isLoading:Fd,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),st(t,"onFetchStart"),kt(e,t,"onFetchStart");let Ee=r?.analyze?.emitNetwork,Qr=Ee?typeof performance<"u"?performance.now():Date.now():0;Ee&&Ee({phase:"start",mode:"query",from:a,method:l,cacheKey:X,lang:Jr});let Dd=zb(async()=>{if(p!==!1&&s.auth!==!1&&s.getSession){let M=await s.getSession();if(p===!0&&!M){let H={message:"Not authenticated"};return zt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:H,status:"error",fetchStatus:"idle"}),st(t,"onFetchError",H),kt(e,t,"onFetchError",H),{data:null,error:H}}}let ie=s[l];if(!L(ie))return{data:null,error:{message:`Method "${l}" not found on adapter`}};let N={from:a,select:he,params:xe,single:h,limit:y,offset:b,order:v,headers:x,baseUrl:w},W=oa(t,r);if(W&&(N.headers={...N.headers,"Accept-Language":W}),E!==void 0){if(B(E))E.offset!==void 0&&(N.offset=E.offset),E.limit!==void 0&&(N.limit=E.limit),E.cursor!==void 0&&(N.params={...N.params,cursor:E.cursor});else if(typeof E=="number"){let M=e.pageSize||y||20;N.offset=(E-1)*M,N.limit=M}}if(A!==void 0&&(N.params={...N.params,cursor:A}),l==="insert"||l==="update"||l==="upsert"){let M;if(g===!0||e.on==="submit")M=Bo(t);else if(q(g)){let H=Bo(t);M={};for(let Te of g)M[Te]=H[Te]}else t.state?.parse?M=t.state.parse():B(t.state)&&(M={...t.state});f&&(M=f(M,t,t.state)),N.data=M}if(l==="rpc"){let M=xe;if(e.on==="submit"){let H=Bo(t);M=e.transformParams?e.transformParams(H,t,t.state):H}N.params=M}if(l==="subscribe"){let M=s.subscribe({from:a,params:xe,on:e.subscribeOn},(H,Te,ol)=>{Ur(t,H,m),st(t,"onFetchComplete",H),kt(e,t,"onFetchComplete",H)});return i.__unsubscribe=M,{data:null,error:null,subscribed:!0}}return ie(N)},rr);X&&jo.set(X,Dd);try{let ie=await Dd;if(ie?.subscribed)return;let{data:N,error:W}=ie||{};if(W){X&&Do(X,null,W),zt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:W,status:"error",fetchStatus:"idle"}),st(t,"onFetchError",W),kt(e,t,"onFetchError",W),Ee&&Ee({phase:"error",mode:"query",from:a,method:l,cacheKey:X,error:W.message||W,durationMs:(typeof performance<"u"?performance.now():Date.now())-Qr});return}if(N!==void 0){if((l==="select"||l==="rpc")&&X){let H=Do(X,N,null);H.gcTime=ge?.gcTime||3e5}let M=N;z&&q(N)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(N):i.__pages.push(N),M=i.__pages.flat(),C&&(i.__nextPageParam=C(N,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),S&&(i.__prevPageParam=S(N,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),L(V)&&(M=V(M,t,t.state)),f&&(M=f(M,t,t.state)),(!ve||M!==void 0)&&Ur(t,M,m),zt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),st(t,"onFetchComplete",M),kt(e,t,"onFetchComplete",M),Ee&&Ee({phase:"success",mode:"query",ok:!0,from:a,method:l,cacheKey:X,durationMs:(typeof performance<"u"?performance.now():Date.now())-Qr})}}catch(ie){zt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ie,status:"error",fetchStatus:"idle"}),st(t,"onFetchError",ie),kt(e,t,"onFetchError",ie),Ee&&Ee({phase:"error",mode:"query",from:a,method:l,cacheKey:X,error:ie.message||String(ie),durationMs:(typeof performance<"u"?performance.now():Date.now())-Qr})}finally{X&&jo.delete(X)}},TT=(e,t,r)=>{let n=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=e.__runner||gr;if(n==="submit"){let i=l=>{l.preventDefault(),s(e,t,r)},a=t.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(e,t,r),a=t.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(e,t,r))},OT=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),AT();let o=e.refetchInterval;if(o){let s=typeof o=="number"?o:Wo(o);if(s>0){let i=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&gr(e,t,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(e.refetchOnWindowFocus!==!1){let s=()=>{let i=oa(t,r),a=kT(e,i),l=Fo(a),c=Nu(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&gr(e,t,r,{force:!0})};Pn.focus.add(s),n.__fetchCleanups.push(()=>Pn.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>gr(e,t,r,{force:!0});Pn.online.add(s),n.__fetchCleanups.push(()=>Pn.online.delete(s))}},PT=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,s=e.state?.parse?e.state.parse():B(e.state)?{...e.state}:e.state;n.__optimisticSnapshot=s;let i=L(t.optimistic)?t.optimistic(r,s,e):t.optimistic;return i!==void 0&&Ur(e,i,o),s},Hu=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Ur(e,n,t.as),delete r.__optimisticSnapshot)},RT=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await Wu(n,r);if(!o)return;let s=t.__ref,{method:i,from:a,fields:l,transform:c,as:u,on:d,auth:f,headers:h,baseUrl:p,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:v,onSettled:x}=e,w;if(l===!0||d==="submit")w=Bo(t);else if(q(l)){let S=Bo(t);w={};for(let z of l)w[z]=S[z]}else t.state?.parse?w=t.state.parse():B(t.state)&&(w={...t.state});c&&(w=c(w,t,t.state)),L(y)&&y(w,t,t.state);let E=m?PT(t,e,w):null;s.__fetching=!0,zt(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),st(t,"onFetchStart"),kt(e,t,"onFetchStart");let A=r?.analyze?.emitNetwork,C=A?typeof performance<"u"?performance.now():Date.now():0;A&&A({phase:"start",mode:"mutation",from:a,method:i});try{if(f!==!1&&o.auth!==!1&&o.getSession){let xe=await o.getSession();if(f===!0&&!xe){E!==void 0&&Hu(t,e);let ge={message:"Not authenticated"};st(t,"onFetchError",ge),kt(e,t,"onFetchError",ge);return}}let S=o[i];if(!L(S))return;let z={from:a,data:w,headers:h,baseUrl:p};e.params&&(z.params=Vb(e.params,t,r));let re=oa(t,r);re&&(z.headers={...z.headers,"Accept-Language":re});let G=Nb(e),V=await zb(()=>S(z),G),{data:ve,error:he}=V||{};if(he){E!==void 0&&Hu(t,e),zt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:he,status:"error",fetchStatus:"idle"}),st(t,"onFetchError",he),L(v)&&v(he,w,t),L(x)&&x(null,he,w,t),A&&A({phase:"error",mode:"mutation",from:a,method:i,error:he.message||String(he),durationMs:(typeof performance<"u"?performance.now():Date.now())-C});return}if(delete s.__optimisticSnapshot,ve!==void 0){let xe=u?{[u]:ve}:ve;t.state?.update&&t.state.update(xe,{preventFetch:!0})}if(zt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),st(t,"onFetchComplete",ve),kt(e,t,"onFetchComplete",ve),L(b)&&b(ve,w,t),L(x)&&x(ve,null,w,t),A&&A({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-C}),g){let xe=q(g)?g:[g];for(let ge of xe)if(ge===!0||ge==="*")for(let[rr]of We)rr.startsWith(a+":")&&Lo(rr);else Lo(ge)}}catch(S){E!==void 0&&Hu(t,e),zt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:S,status:"error",fetchStatus:"idle"}),st(t,"onFetchError",S),kt(e,t,"onFetchError",S),L(v)&&v(S,w,t),L(x)&&x(null,S,w,t),A&&A({phase:"error",mode:"mutation",from:a,method:i,error:S.message||String(S),durationMs:(typeof performance<"u"?performance.now():Date.now())-C})}finally{s.__fetching=!1}},Xu=(e,t,r,n)=>{if(!e||!n?.fetch)return;let o=De(e,t);if(!o)return;let s=q(o)?o.map(a=>Hb(De(a,t),t)).filter(Boolean):[Hb(o,t)].filter(Boolean);for(let a of s){let l=a.method==="insert"||a.method==="update"||a.method==="upsert"||a.method==="delete",c=l?RT:gr;a.on==="create"?c(a,t,n):Promise.resolve().then(()=>{TT({...a,__runner:c},t,n)}),!l&&a.on==="create"&&(a.refetchInterval||a.refetchOnWindowFocus!==!1||a.refetchOnReconnect!==!1)&&OT(a,t,n)}let i=t.__ref;i.refetch=a=>{for(let l of s)gr(l,t,n,{force:!0,...a})},i.fetchNextPage=()=>{let a=s[0];if(!a||!a.infinite)return;let l=i.__nextPageParam;if(l==null)return;let c={...a,cursor:l};gr(c,t,n,{direction:"next",force:!0})},i.fetchPreviousPage=()=>{let a=s[0];if(!a||!a.infinite)return;let l=i.__prevPageParam;if(l==null)return;let c={...a,cursor:l};gr(c,t,n,{direction:"previous",force:!0})}},DO={invalidateQueries:e=>{if(!e){Lo();return}if(I(e))for(let[t]of We)(t.startsWith(e)||t.includes(e))&&Lo(t);else if(q(e)){let t=e.join(":");for(let[r]of We)r.includes(t)&&Lo(r)}},removeQueries:e=>{if(!e){ra();return}if(I(e))for(let[t]of We)(t.startsWith(e)||t.includes(e))&&ra(t)},getQueryData:e=>Fo(e)?.data??void 0,setQueryData:(e,t)=>{let r=Fo(e),n=L(t)?t(r?.data):t;Do(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await Wu(r,t);if(!n)return;let o=e.cache?.key||`${e.from}:${e.method||"select"}:${JSON.stringify(e.params||"")}`,s=n[e.method||"select"];if(!L(s))return;let i=await s({from:e.from,params:e.params,limit:e.limit,offset:e.offset,order:e.order,single:e.single});if(i?.data!==void 0&&!i?.error){let a=Do(o,i.data,null);a.gcTime=Nu(e.cache)?.gcTime||3e5}return i},getCache:()=>We,clear:()=>ra(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of We)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||ra(r))}},LO={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||jo.clear(),Xu(t,e,e.state,e.context))}},BO=Xu});function MO(e){let t=this,{__ref:r}=t,n=[].concat(e),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",t.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function NO(e){let t=this,{parent:r}=t;if(L(e))return r.state&&e(r,r.state,r.context)?r:r.parent?r.lookup(e):void 0;if(t[e])return t[e];for(;r.param!==e;){if(r[e])return r[e];if(r=r.parent,!r)return}return r}function zO(e){let t=this,{__ref:r}=t,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=t[s];if(s===e)return i;if(L(e)){let l=e(i,i.state,i.context);if(i.state&&l)return i}let a=i?.lookdown?.(e);if(a)return a}}function WO(e,t=[]){let r=this,{__ref:n}=r,o=n?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=r[i];if(i===e)t.push(a);else if(L(e)){let l=e(a,a.state,a.context);a.state&&l&&t.push(a)}a?.lookdownAll?.(e,t)}return t.length?t:void 0}}function Jv(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(B(n)&&o)Jv.call(o,n);else if(n!=null){let s=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(n).replace(/\s*!important\s*$/,"");t.node.style.setProperty(s,i,"important")}}return t}}function HO(e){let t=this;if(Xo("beforeRemove",t,e)===!1)return t;L(t.node.remove)?t.node.remove():Zo()||(console.warn("This item cant be removed"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=ld(t.parent.__ref.__children,t.key)),Xo("remove",t,e)}function VO(e){return this[e]}function qO(e,t){let r=this;if(e)return r.update(e,t),r}function UO(e){return e?this.__ref&&this.__ref[e]:this.__ref}function GO(){return this.getRef("__children").map(e=>this[e])}function KO(){return this.getRef().path}function ZO(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=s0();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=L(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=s0()),e?t?.[e]:t}function XO(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function YO(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function JO(e){let t=this.getRoot()?.context;return e?t[e]:t}function QO(e){let t=this.context;return e?t[e]:t}function Qv(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||Yo.has(r)&&!dd.has(r)||t.push(r);return t}function ex(e=[]){let t=this,r={},n=Qv.call(t),o=n.includes("children"),s=e.length?new Set(e):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(t,a)||o&&a==="content")continue;let l=t[a];if(a==="state"){if(t.__ref&&!t.__ref.__hasRootState)continue;let c=L(l&&l.parse)?l.parse():l;r[a]=L(c)?c:JSON.parse(JSON.stringify(c||{}))}else if(a==="scope"){if(t.__ref&&!t.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(l||{}))}else if(a==="props"){let{__element:c,update:u,...d}=t[a];r[a]=d}else Ln(l)&&Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=l)}return r}function zf(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=ex.call(r,e),o=e.length?new Set(e):null;for(let s in n){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=n[s];Array.isArray(i)?n[s]=i.map(a=>oe(a)?zf.call(a,e,t):a):oe(i)&&(n[s]=zf.call(i,e,t))}return n}function tx(...e){if(br!=="test"&&br!=="development")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(n=>console.log(`%c${n}:
|
|
85
|
-
`,"font-weight: bold",t[n])):(console.log(r.path),t.keys().forEach(n=>console.log(`%c${n}:`,"font-weight: bold",t[n]))),console.log(t),console.groupEnd(t.key),t}function
|
|
86
|
-
${
|
|
84
|
+
return (${o}); })`)(t)}catch{try{t[n]=se.eval(`(${o})`)}catch{t[n]=o}}return t},ex=(e,t={verbose:!0})=>{try{return e?se.eval("("+e+")"):{}}catch(r){t.verbose&&console.warn(r)}},tx=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),Yu=e=>{for(let t in e)return!1;return!0},rx=e=>j(e)&&Yu(e),nx=()=>Object.create(null),Jf=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in t)n.includes(s)||!o&&zr(s)||s==="constructor"||s==="prototype"||t[s]!==void 0&&(e[s]=t[s]);return e},Qf=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)zr(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(e[o]=t[o]);return e},Rn=(e,t,r={},n=new WeakMap)=>{if(!oe(e)||!oe(t)||st(e)||st(t))return t;if(n.has(e))return n.get(e);n.set(e,e);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a)||s&&s.has(a)||i&&zr(a)||a==="constructor"||a==="prototype")continue;let l=e[a],c=t[a];st(c)?e[a]=c:oe(l)&&oe(c)?e[a]=Rn(l,c,r,n):c!==void 0&&(e[a]=c)}return e},Zu=(e,t,r=new Set)=>{if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e===t;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(t,i)||!Zu(e[i],t[i],r))return!1}return!0},DC=new Set(["node","__ref"]),ox=(e,t,r=DC)=>{if(e===t)return!0;if(!oe(e)||!oe(t)||st(e)||st(t))return e===t;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function s(i,a){if(o.has(a))return!0;o.add(a);for(let l in a){if(!Object.prototype.hasOwnProperty.call(a,l)||n.has(l))continue;if(!Object.prototype.hasOwnProperty.call(i,l))return!1;let c=a[l],u=i[l];if(st(c)||st(u)){if(c!==u)return!1}else if(oe(c)&&oe(u)){if(!s(u,c))return!1}else if(c!==u)return!1}return!0}return s(e,t)},sx=(e,t)=>{if(t==null)return e;if(Yt(t)("string","number"))delete e[t];else if(U(t))for(let r=0;r<t.length;r++)delete e[t[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return e},Ju=e=>{if(e===null||typeof e!="object")return e;let t=Object.create(null);for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=Ju(e[r]));return t},ix=(e,t)=>{if(e.length===0)return t;let r={},n=r;for(let o=0;o<e.length;o++)o===e.length-1&&t?n[e[o]]=t:(n[e[o]]={},n=n[e[o]]);return r},ax=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let o=0;o<t.length-1;o++){if(r[t[o]]===void 0)return;r=r[t[o]]}let n=t[t.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},lx=(e,t,r)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let n=e;for(let o=0;o<t.length-1;o++)(!n[t[o]]||typeof n[t[o]]!="object")&&(n[t[o]]={}),n=n[t[o]];return n[t[t.length-1]]=r,e},cx=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let n=0;n<t.length;n++){if(r==null)return;r=r[t[n]]}return r},ux=e=>{let t=[],r=0;for(let n=0;n<e.length;n++)if(t.length<2)t.push(e[n]);else if(e[n]===t[n%2]?r++:(t=[e[n-1],e[n]],r=1),r>=20)return(jy==="test"||jy==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",t),!0},fx=e=>{let t=new WeakSet;function r(n){if(n&&typeof n=="object"){if(t.has(n))return!0;t.add(n);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return console.log(n,"cycle at "+o),!0}return!1}return r(e)},dx=(e,t)=>{let r=t instanceof Set?t:new Set(t),n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&!r.has(o)&&(n[o]=e[o]);return n}}),da,ed,td,px=K(()=>{"use strict";Gr(),da=(function(){let e=0;function t(){return e++,e}return t})(),ed=da,td=(e,t,r)=>(Ne(r,e)||r||e.key||da()).toString()}),Lt,hx,Vo,Qu,gx,mx,yx,rd,bx,Ha,FA=K(()=>{"use strict";Lt="production",hx=Lt,Vo=(e=Lt)=>e==="production",Qu=(e=Lt)=>e==="testing"||e==="test",gx=Qu,mx=(e=Lt)=>e==="staging",yx=(e=Lt)=>e==="local",rd=(e=Lt)=>e==="development"||e==="dev"||e==="local",bx=(e,t=Lt)=>t[e],Ha=(e=Lt)=>!Vo(e)});function jA(e,t,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||e.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,t),a&&e.apply(o,s)}}function DA(e,t=window){let r=function(){return e.apply(t,arguments)};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var xx,vx,LC,_x,qa,Fa,ja,Ga=K(()=>{"use strict";xx=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},vx=e=>{let t={};return(...r)=>{let n=r[0];if(n in t)return t[n];{let o=e(n);return t[n]=o,o}}},LC=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,_x=e=>LC.test(e),qa=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},Fa=(e,t)=>{if(typeof e=="function")return e;let r=t?.context?.plugins;if(!r)return e;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(e,t);if(typeof o=="function")return o}return e},ja=(e,t,...r)=>{let n=t?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[e]=="function"&&(s[e](t,...r),o=!0);return o}}),wx,oj=K(()=>{"use strict";Fe(),Gr(),wx=(e,t)=>{let{__ref:r}=e,n=e.if;if(F(n)){let o;try{o=n(e,e.state,e.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete r.__if;return}o?r.__if=!0:delete r.__if}else n!=null&&typeof n=="object"?Ne(n,e)?r.__if=!0:delete r.__if:r.__if=!0}}),Sx,kx,sj=K(()=>{"use strict";Sx=(e,...t)=>{e&&t.map(r=>console.log(r))},kx=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function LA(e){let t;try{if(!window.localStorage)return;t=window.localStorage.getItem(e)}catch{return}if(t!==null)try{return JSON.parse(t)}catch{return}}function MA(e,t){if(t!=null)try{if(!window.localStorage)return;let r=typeof t=="object"?JSON.stringify(t):t;window.localStorage.setItem(e,r)}catch{}}var Cx,Ax,Ex,Ox,ij=K(()=>{"use strict";Fe(),zf(),Cx=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Ax=(e,t,r=365)=>{if(Bt(me)||Bt(me.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;me.cookie=`${e}=${t};${o};path=/`},Ex=e=>{if(Bt(me)||Bt(me.cookie))return;let t=`${e}=`,r=decodeURIComponent(me.cookie).split(";");for(let n=0;n<r.length;n++){let o=r[n];for(;o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return""},Ox=e=>{Bt(me)||Bt(me.cookie)||(me.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}}),Da,Tx,Px,NA=K(()=>{"use strict";Da={root:["body","html"],head:["title","base","meta","style","noscript","script"],body:new Set(["string","style","fragment","a","abbr","acronym","address","applet","area","article","aside","audio","b","basefont","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","search","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","hgroup","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","template","hgroup","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr","svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"])},Tx=new Set(["svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"]),Px=e=>Da.body.has(e)}),Cu,Ly,La,nd,Qe,Rx,ef,pa,$x,ha,tf,rf,ga,nf,jo,MC,Xt,My,ma,ya,Ix,ba,Fx,jx,of,sf,af,lf,cf,uf,Dx,Lx=K(()=>{"use strict";za(),WA(),Gr(),Fe(),Cu="production",Ly=e=>e.sourcemap!==!1&&Cu!=="production",La=e=>{if(e.includes("+"))return e.split("+").filter(An);if(e.includes("_")){let[t]=e.split("_");return[t]}if(e.includes(".")&&!An(e.split(".")[1])){let[t]=e.split(".");return[t]}return[e]},nd=(e,t,r)=>{let n=[],o=La(r);o&&(n=[...o]);let s=e.extends;return s&&(n=U(s)?[...n,...s]:[...n,s]),n},Qe=(e,t)=>{let{__ref:r}=t,{__extends:n}=r;if(!e)return n;let o=t.variant,s=t.context;if(o&&s?.components&&!Array.isArray(e)&&typeof e=="string"){let i=`${e}.${o}`;s.components[i]&&(e=i)}return n.includes(e)||(n=Array.isArray(e)?[...n,...e]:[...n,e],r.__extends=n),n},Rx=(e,t)=>{if(!e)return t;let{extends:r}=t,n=U(r)?r:[r],o=U(e)?e:[e];return{...t,extends:Ra(o,n)}},ef=()=>Math.random().toString(36).substring(2),pa={},$x={},ha=e=>pa[e.__hash],tf=(e,t)=>{let r=ef();return R(e)||(e.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(pa[r]=t),t},rf=(e,t)=>e.__hash?t.concat(ha(e)):tf(e,t),ga=(e,t,r,n=new Set,o,s)=>{for(let i of e)U(i)?ga(i,t,r,n,o,s):jo(i,t,r,n,o,void 0,s);return t},nf=(e,t,r,n=new Set,o,s,i)=>{let a=e.extends,l={...e};delete l.extends;let c=!1;for(let u in l){c=!0;break}return c&&(t.push(l),o&&o.push(s)),a&&jo(a,t,r,n,o,s,i),t},jo=(e,t,r,n=new Set,o,s,i)=>{if(!e||n.has(e))return t;if(U(e))return ga(e,t,r,n,o,i);let a=s;return R(e)?(a=e,e=ya(e,r)):i&&j(e)&&i.has(e)&&(a=i.get(e)),n.add(e),e?.extends?nf(e,t,r,n,o,a,i):e&&(t.push(e),o&&o.push(a)),t},MC=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),Xt=(e,t,r,n,o)=>{t=et(t);for(let s in t){if(MC.has(s))continue;let i=e[s],a=t[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(t,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)e[s]=a,r&&n?j(a)&&!U(a)?(r[s]=r[s]||{},My(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(j(i)&&j(a)){let l=r?r[s]=r[s]||{}:void 0,c=o?.[s];An(s)?e[s]=Xt(i,a,l,n,c):Xt(i,a,l,n,c)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(U(i)&&U(a))e[s]=i.concat(a);else if(U(i)&&j(a)){let l=Xt({},i);e[s]=Xt(l,a)}}}}return e},My=(e,t,r,n)=>{if(n||(n=new WeakSet),!n.has(t)){n.add(t);for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=t[o];j(s)&&!U(s)?(e[o]=e[o]||{},My(e[o],s,r,n)):e[o]=r}}},ma=(e,t,r)=>e.reduce((n,o,s)=>{let i=et(o),a=r?r[s]:void 0;return Xt(n,i,t,a)},{}),ya=(e,t,r={},n)=>{let o=t?.components||r.components,s=t?.pages||r.pages;if(R(e)){let i=o&&(o[e+"."+n]||o[e]||o["smbls."+e]),a=s&&e.charCodeAt(0)===47&&s[e];if(i)return i;if(a)return a;r.verbose&&(Cu==="test"||Cu==="development")&&console.warn("Extend is string but component was not found:",e);return}return e},Ix=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),ba=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return ha(e)||[];let o=jo(e,[],t,new Set,r,void 0,n);return r?o:rf(e,o)},Fx=(e,t)=>{if(!e)return t;let r=U(e)?e:[e];return Ra(r,t)},jx=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(An(o)&&t.push(o),o==="extends"&&(typeof n[o]=="string"?t.push(n[o]):Array.isArray(n[o])&&(t=t.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(e),t},of=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant;if(e.extends)if(Array.isArray(e.extends)&&e.extends.length>0){let[i,...a]=e.extends;if(typeof i=="string"&&s&&o?.components){let l=`${i}.${s}`;o.components[l]?Qe([l,...a],e):Qe(e.extends,e)}else Qe(e.extends,e)}else if(typeof e.extends=="string"&&s&&o?.components){let i=`${e.extends}.${s}`;o.components[i]?Qe(i,e):Qe(e.extends,e)}else Qe(e.extends,e);return sf(e,t,r),af(e,t,r),lf(e,t,r),e.component&&Qe(Ne(e.component,e),e),o.defaultExtends&&Qe(o.defaultExtends,e),$a(n.__extends)},sf=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Qe(t.childProps.extends,e),n.__extends},af=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,s=t.childExtends;return!o&&s&&Qe(s,e),n.__extends},lf=(e,t,r={})=>{let{__ref:n}=e,o=t.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||e.ignoreChildExtendsRecursive,i=e.key==="__text";return o&&!i&&!s&&Qe(o,e),n.__extends},cf=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant,i=Ly(r),a=i?[...n.__extends]:null,l=$a(n.__extends.map((c,u)=>ya(c,o,r,u===0&&s)));if(i){let c=new WeakMap;for(let f=0;f<l.length;f++){let p=l[f],h=a[f];p&&j(p)&&R(h)&&c.set(p,h)}let u=[],d=ba(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=ba(l,o);n.__extendsStack=c}return n.__extendsStack},uf=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(Ly(r)){let s={},i=n.__extendsNames||[],a=ma(o,s,i),l={};Xt(e,a,l,void 0,s),n.__sourcemap=l}else{let s=ma(o);Xt(e,s)}return e},Dx=(e,t,r={})=>(of(e,t,r),cf(e,t,r),uf(e,t,r),e)});function BA(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function VA(e){return Object.keys(e).filter(t=>/^\d+$/.test(t))}function zA(e,t,r){let{context:n}=t||{},[o]=La(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var An,WA=K(()=>{"use strict";Lx(),Fe(),An=e=>{if(!R(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function aj(e,t){let{props:r,on:n}=t,o=Wa(e.split("on")[1]),s=n[o],i=r[e];F(s)?n[o]=(...a)=>{if(s(...a)!==!1&&F(i))return i(...a)}:n[o]=i}var lj=K(()=>{"use strict";Xf(),Fe()});function Mx(e,t={}){let r=t.cachedKeys||[];for(let n in e){let o=e[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(F(o)||o!=null&&qa(this.context))){let f=Wa(n.slice(2));e.on&&(e.on[f]=o),delete e[n];continue}if(n==="childProps"){e.props[n]=o,delete e[n],r.push(n);continue}let s=this.define?.[n],i=this.context?.define?.[n],a=j(s)||F(s),l=j(i)||F(i);if(a||l)continue;let c=n.charAt(0);if(Wx.has(c)){e.props[n]=o,delete e[n],r.push(n);continue}let u=df.test(n)||zx.test(n)||HA(o),d=Uo.has(n);!u&&!d&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function Nx(e=this,t){let r=t.cachedKeys||[];for(let n in e.props){let o=e.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=F(o)||o!=null&&qa(this.context);if(s&&i){aj(n,e),delete e.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(Wx.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=j(l)||F(l),d=j(c)||F(c),f=df.test(n)||zx.test(n),p=Uo.has(n);(f||p||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function Bx(e=this){let t=[];return Mx.call(this,e,{cachedKeys:t}),Nx.call(this,e,{cachedKeys:t}),e}function UA(e={}){return e.on||(e.on={}),e.props||(e.props={}),Bx.call(this,e)}function Vx(e,t){this.__element.update({props:e},t)}function ff(e){let t={update:Vx.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var df,zx,Wx,NC,HA,od,xa,Ux,va,_a,wa,pf,Sa,Hx,qx,qA=K(()=>{"use strict";Ua(),lj(),Gr(),Fe(),Xf(),Ga(),df=/^[A-Z]/,zx=/^\d+$/,Wx=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),NC=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),HA=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;for(let t in e)if(NC.has(t)||df.test(t))return!0;return!1},od=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return oe(n)?{...n}:(o.__propsStack.push(n),{})},xa=e=>Yt(e)("string","number")?{inheritedString:e}:e,Ux=(e,t)=>!e||!t.length?!1:t.includes(e),va=(e,t)=>{let{__ref:r}=e,n=r.__propsStack||[],o=t.props;if(!o)return n;let s=o[e.key],i=o.childProps||t.childProps,a=e.props?.ignoreChildProps;if(i&&!a){let l=xa(i);n.unshift(l)}if(s){let l=xa(s);n.unshift(l)}return n},_a=e=>{let t=new Set;return e.filter(r=>!r||On.has(r)||t.has(r)?!1:(t.add(r),!0))},wa=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(On.has(o))return n;for(;F(o);)o=Ne(o,t);return Qt(n,et(o,{exclude:On}))},{}),ff(t),t.props),pf=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...va(e,t)]),j(r)?o.push(r):r==="inherit"&&t?.props?o.push(t.props):r&&o.push(r),U(n.__extendsStack))for(let s=0;s<n.__extendsStack.length;s++){let i=n.__extendsStack[s];i.props&&i.props!==r&&o.push(i.props)}return n.__propsStack=_a(o),n.__propsStack},Sa=(e,t)=>{let{__ref:r}=e,n=pf(e,t);n.length?wa(n,e):(r.__propsStack=[],e.props={})},Hx=function(e,t,r){let{__ref:n}=e;if(n.__if)Sa(e,t);else try{Sa(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),e.props={},n.__propsStack=[]}return ff(e),e},qx=(e,t,r)=>{let{__ref:n}=t,o=[...n.__propsStack||[]],s=va(t,r);return s.length&&(o=[...s,...o]),e&&(o=[e,...o]),n.__propsStack=_a(o),n.__propsStack.length&&wa(n.__propsStack,t),t}}),Ny,hf,gf,mf,yf,Gx,bf,xf,vf,Kx,cj=K(()=>{"use strict";Lx(),px(),Uf(),qA(),NA(),Fe(),Ny="production",hf=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,s=Da.body.has(r)&&r;return{text:e,tag:n||o||s||"string"}},gf=(e,t,r)=>{if(e===void 0)return(Ny==="test"||Ny==="development")&&console.warn(r,"element is undefined in",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Yt(e)("string","number")?hf(e,t,r):F(e)?{props:e}:e},mf=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},yf=(e,t,r,n,o)=>{if(!t)return o;if(Va(t)){let s={key:":root",node:t};return o[`${r}_parent`]=s,s}return t},Gx=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===":root";r?.root||(r.root=o?e:n?.root)},bf=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},xf=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),vf=(e,t,r)=>{let n=mf(e,t);return e.__ref=n,n.__defineCache||(n.__defineCache={}),n.__exec||(n.__exec={}),n.__execProps||(n.__execProps={}),n.__class||(n.__class={}),n.__classNames||(n.__classNames={}),n.__attr||(n.__attr={}),n.__changes||(n.__changes=[]),n.__children||(n.__children=[]),n.__extends=nd(e,t,r),n.path=bf(e,t,r),n},Kx=(e,t,r,n,o)=>{let s=e?.__hash?{extends:[e]}:gf(e,t,r);if(!s)return;let i=yf(s,t,r,n,o),a=td(s,i,r);vf(s,i,a);let l=od(s,i,a),c=xf(s,i,a,n,o),u=s.on||{};return{...s,key:a,props:l,parent:i,context:c,on:u}}}),Xx,_f,wf,Sf,kf,Yx,Cf,Zx,Jx,Qx,e0,uj=K(()=>{"use strict";za(),Ua(),Gr(),Fe(),Xx=e=>{let{state:t,props:r,__ref:n}=e,o=r?.state||t;return Yt(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=e.key,{}):o?(n.__hasRootState=!0,o):!1},_f=(e,t)=>{if(e.includes("~/")&&e.split("~/").length>1)return t.root},wf=(e,t)=>{if(!e.includes("../"))return;let r=e.split("../").length-1;for(let n=0;n<r;n++){if(!t.parent)return null;t=t.parent}return t},Sf=(e,t,r={})=>{let n=R(e)?e.split("/"):[e],o=n.length-1;for(let s=0;s<o;s++){let i=n[s],a=n[s+1];if(i==="__proto__"||a==="__proto__")return;let l=t[i];l||(l=t[i]={}),l[a]||(l[a]={}),e=a,t=l}return r.returnParent?t:t[e]},kf=(e,t,r={})=>{let n=e.__ref.__state;if(!Cf(e))return;let o=_f(n,t.state),s=t.state;if(o)s=o,n=n.replaceAll("~/","");else{let i=wf(n,t.state);i&&(s=i,n=n.replaceAll("../",""))}if(s)return Sf(n,s,r)},Yx=(e,t)=>{let r=e.__ref,n=kf(e,t);if(n===void 0)return e.state;if(Yt(n)("object","array"))return et(n);if(Yt(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},Cf=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Yt(r)("number","string","boolean"))},Zx=function(e){return oe(e)?!!(e.update&&e.parse&&e.clean&&e.create&&e.parent&&e.destroy&&e.rootUpdate&&e.parentUpdate&&e.keys&&e.values&&e.toggle&&e.replace&&e.quietUpdate&&e.quietReplace&&e.add&&e.apply&&e.applyReplace&&e.setByPath&&e.setPathCollection&&e.removeByPath&&e.removePathCollection&&e.getByPath&&e.applyFunction&&e.__element&&e.__children):!1},Jx=(e,t)=>{if(!e)return t||{};let r=e.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?t||{}:{},o=o[r[i]];return n},Qx=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=et(n,En),s={[e.key]:o},i=j(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?Gf(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},e0=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){Qt(e,t,En);return}(o?Qf:Rn)(e,t,En)}}),t0,fj=K(()=>{"use strict";t0=(e,t)=>{let{__ref:r}=e,n=e.context||t.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=t.scope||r.root?.scope,s=n?.globalScope;if(!e.scope)o?e.scope=o:s?e.scope=Object.create(s):e.scope={};else if(typeof e.scope=="object"&&e.scope!==null&&Object.getPrototypeOf(e.scope)===Object.prototype){let i=o||s;i&&Object.setPrototypeOf(e.scope,i)}}}),By,Af,zo,Ef,r0,GA=K(()=>{"use strict";Fe(),Ga(),By=(e,t)=>{let r="on"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},Af=(e,t,r,n,o)=>{if(e=Fa(e,t),!!F(e))try{let s=e.call(t,t,r||t.state,n||t.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{t.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(t.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),t.context?.strictMode)throw s}},zo=(e,t,r)=>{if(!t)throw new Error("Element is required");ja(e,t,r);let n=By(e,t);if(n){let{state:o,context:s}=t;return Af(n,t,o,s,r)}},Ef=(e,t,r,n,o,s)=>{if(e=Fa(e,r),!!F(e))try{let i=e.call(r,t,r,n||r.state,o||r.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{r.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(r.error=i,console.error("[DOMQL] Event update error:",i),r.context?.strictMode)throw i}},r0=(e,t,r,n)=>{ja(e,r,t,n);let o=By(e,r);if(o){let{state:s,context:i}=r;return Ef(o,t,r,s,i,n)}}}),n0,sd,KA=K(()=>{"use strict";n0={},sd={}}),XA={};X(XA,{setup:()=>YA,supabaseAdapter:()=>ib});var Vy,BC,YA,Au,VC,ib,dj=K(()=>{"use strict";Vy=new Map,BC=(e,t,r)=>`${e}|${t}|${r?"off":"on"}`,YA=async({url:e,key:t,projectId:r,createClient:n,auth:o,retry:s,adapter:i,...a})=>{let l=e||r&&`https://${r}.supabase.co`;if(!l||!t)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let c=BC(l,t,o===!1),u=Vy.get(c);return u||(u=await n(l,t,a),u?.auth&&Vy.set(c,u)),!u||!u.auth?null:ib(u)},Au=(e,t)=>{if(!t)return e;for(let r in t){let n=t[r];if(n===null)e=e.is(r,null);else if(Array.isArray(n))e=e.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?e=e.gt(r,n[o]):o==="gte"?e=e.gte(r,n[o]):o==="lt"?e=e.lt(r,n[o]):o==="lte"?e=e.lte(r,n[o]):o==="neq"?e=e.neq(r,n[o]):o==="like"?e=e.like(r,n[o]):o==="ilike"?e=e.ilike(r,n[o]):o==="in"?e=e.in(r,n[o]):o==="is"?e=e.is(r,n[o]):o==="contains"?e=e.contains(r,n[o]):o==="containedBy"?e=e.containedBy(r,n[o]):o==="textSearch"&&(e=e.textSearch(r,n[o]));else e=e.eq(r,n)}return e},VC=(e,{limit:t,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s=="string"?s:s.by;e=e.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;e=e.order(s,{ascending:n.asc!==!1})}return t&&(e=e.limit(t)),r&&(e=e.range(r,r+(t||20)-1)),o&&(e=e.single()),e},ib=e=>({name:"supabase",client:e,getSession:async()=>{let{data:t}=await e.auth.getSession();return t?.session||null},getUser:async()=>{let{data:t}=await e.auth.getUser();return t?.user||null},signIn:t=>t.provider?e.auth.signInWithOAuth({provider:t.provider}):t.token?e.auth.signInWithIdToken(t):e.auth.signInWithPassword(t),signUp:t=>e.auth.signUp(t),signOut:()=>e.auth.signOut(),onAuthStateChange:t=>{let{data:{subscription:r}}=e.auth.onAuthStateChange((n,o)=>t(n,o));return()=>r.unsubscribe()},select:async({from:t,schema:r,select:n,params:o,headers:s,...i})=>{let a=(r?e.schema(r):e).from(t).select(n||"*");if(a=Au(a,o),a=VC(a,i),s)try{for(let l in s)a.setHeader?a=a.setHeader(l,s[l]):e.rest&&(e.rest.headers[l]=s[l])}catch(l){console.warn("[supabase] setHeader failed:",l.message)}return a},rpc:({from:t,params:r})=>e.rpc(t,r),insert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).insert(n).select(o||"*"),update:({from:t,schema:r,data:n,params:o,select:s})=>{let i=(r?e.schema(r):e).from(t).update(n);return i=Au(i,o),i.select(s||"*")},upsert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).upsert(n).select(o||"*"),delete:({from:t,params:r})=>{let n=e.from(t).delete();return n=Au(n,r),n},subscribe:({from:t,params:r,on:n},o)=>{let s=n||"*",i=e.channel(`db-${t}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:t,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>e.removeChannel(i)},upload:({bucket:t,path:r,file:n,options:o})=>e.storage.from(t).upload(r,n,o),download:({bucket:t,path:r})=>e.storage.from(t).download(r),getPublicUrl:({bucket:t,path:r})=>e.storage.from(t).getPublicUrl(r)})}),ZA={};X(ZA,{restAdapter:()=>ab,setup:()=>JA});var zC,dr,JA,ab,pj=K(()=>{"use strict";zC=(e,t,r)=>{let n=t&&!t.startsWith("/")?"/":"",o=new URL(`${e}${n}${t}`);if(r)for(let s in r){let i=r[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},dr=async(e,t)=>{let r=await globalThis.fetch(e,t),n=r.headers.get("content-type"),o=n&&n.includes("json")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},JA=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return ab(e,t,r,n)},ab=(e,t={},r,n={})=>{let o=r?.token||null,s=c=>{let u={...t,...c};return o&&(u.Authorization=`Bearer ${o}`),u},i=c=>({...s(c),"Content-Type":"application/json"}),a=c=>({...n,...c}),l=(c,u)=>{let d=u||e;if(c&&(c.startsWith("http://")||c.startsWith("https://")))return c;let f=c&&!c.startsWith("/")?"/":"";return`${d}${f}${c||""}`};return{name:"rest",setToken:c=>{o=c},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let c=await dr(l(r.sessionUrl,r.baseUrl),a({headers:s()}));return c.error?null:c.data},signIn:async c=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let u=await dr(l(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(c)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await dr(l(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:c,params:u,select:d,limit:f,offset:p,order:h,single:g,headers:m,baseUrl:y})=>{let b={...u};return d&&(b.select=d),f&&(b.limit=f),p&&(b.offset=p),g&&(b.single=!0),h&&(typeof h=="string"?b.order=h:Array.isArray(h)?b.order=h.map(x=>`${x.by}:${x.asc===!1?"desc":"asc"}`).join(","):h.by&&(b.order=`${h.by}:${h.asc===!1?"desc":"asc"}`)),dr(zC(y||e,c||"",b),a({headers:s(m)}))},rpc:({from:c,params:u,headers:d,baseUrl:f})=>dr(l(`rpc/${c}`,f),a({method:"POST",headers:i(d),body:JSON.stringify(u)})),insert:({from:c,data:u,headers:d,baseUrl:f})=>dr(l(c,f),a({method:"POST",headers:i(d),body:JSON.stringify(u)})),update:({from:c,data:u,params:d,method:f,headers:p,baseUrl:h})=>{let g=d?.id||u?.id,m=g?`${c}/${g}`:c;return dr(l(m,h),a({method:f||"PATCH",headers:i(p),body:JSON.stringify(u)}))},delete:({from:c,params:u,headers:d,baseUrl:f})=>{let p=u?.id,h=p?`${c}/${p}`:c;return dr(l(h,f),a({method:"DELETE",headers:s(d)}))}}}}),QA={};X(QA,{localAdapter:()=>lb,setup:()=>eE});var Eu,WC,eE,lb,hj=K(()=>{"use strict";Eu=(e,t)=>{if(!t)return!0;for(let r in t){let n=t[r];if(n===null){if(e[r]!==null&&e[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(e[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(e[r]>n[o])||o==="gte"&&!(e[r]>=n[o])||o==="lt"&&!(e[r]<n[o])||o==="lte"&&!(e[r]<=n[o])||o==="neq"&&e[r]===n[o]||o==="like"&&!String(e[r]).includes(n[o]))return!1}else if(e[r]!==n)return!1}return!0},WC=(e,{order:t,limit:r,offset:n,single:o})=>{let s=[...e];if(t){let i=typeof t=="string"?t:t.by,a=t.asc!==!1;s.sort((l,c)=>l[i]<c[i]?a?-1:1:l[i]>c[i]?a?1:-1:0)}return n&&(s=s.slice(n)),r&&(s=s.slice(0,r)),o?{data:s[0]||null,error:null}:{data:s,error:null}},eE=async({data:e,...t})=>lb(e,t),lb=(e={},t={})=>{let r={},n={},o=t.persist!==!1&&typeof localStorage<"u",s=t.prefix||"smbls_db_",i=u=>{if(!r[u])if(o)try{let d=localStorage.getItem(s+u);r[u]=d?JSON.parse(d):e[u]||[]}catch{r[u]=e[u]||[]}else r[u]=e[u]||[];return r[u]},a=u=>{if(o)try{localStorage.setItem(s+u,JSON.stringify(r[u]))}catch{}},l=(u,d,f,p)=>{let h=n[u];if(h)for(let g of h)g(f,p,{event:d,table:u})},c=Date.now();return{name:"local",store:r,select:async({from:u,params:d,...f})=>{let p=i(u).filter(h=>Eu(h,d));return WC(p,f)},insert:async({from:u,data:d})=>{let f=i(u),p=(Array.isArray(d)?d:[d]).map(h=>{let g={id:h.id||++c,...h};return f.push(g),g});a(u);for(let h of p)l(u,"INSERT",h,null);return{data:Array.isArray(d)?p:p[0],error:null}},update:async({from:u,data:d,params:f})=>{let p=i(u),h=[];for(let g=0;g<p.length;g++)if(Eu(p[g],f)){let m={...p[g]};Object.assign(p[g],d),h.push(p[g]),l(u,"UPDATE",p[g],m)}return a(u),{data:h,error:null}},delete:async({from:u,params:d})=>{let f=i(u),p=[];for(let h=f.length-1;h>=0;h--)Eu(f[h],d)&&(p.push(f[h]),f.splice(h,1),l(u,"DELETE",null,p[p.length-1]));return a(u),{data:p,error:null}},subscribe:({from:u,on:d},f)=>{n[u]||(n[u]=[]);let p=(h,g,m)=>{d&&d!=="*"&&d!==m.event||f(h,g,m)};return n[u].push(p),()=>{let h=n[u].indexOf(p);h>-1&&n[u].splice(h,1)}}}}}),na={};X(na,{createAdapter:()=>rE,default:()=>sE,executeFetch:()=>Lu,fetchPlugin:()=>oE,initAdapterAuth:()=>oa,parseDuration:()=>Io,queryClient:()=>nE,registerAdapter:()=>tE,resolveDb:()=>cb});var UC,zy,tE,rE,cb,Io,Me,Wy,Ao,HC,Eo,Oo,To,Ji,Ou,Qi,qC,Uy,Tu,Hy,qy,kn,Gy,GC,Ky,KC,ea,Xy,oa,Pu,nt,xt,Po,Wr,jt,pr,XC,YC,ZC,Ru,JC,Lu,nE,oE,sE,Do=K(()=>{"use strict";M(),UC=["select","rpc","insert","update","delete","subscribe"],zy={supabase:()=>Promise.resolve().then(()=>(dj(),XA)),rest:()=>Promise.resolve().then(()=>(pj(),ZA)),local:()=>Promise.resolve().then(()=>(hj(),QA))},tE=(e,t)=>{zy[e]=t},rE=e=>{let t={};for(let r of UC)e[r]&&(t[r]=e[r]);return t.name=e.name||"custom",t},cb=async e=>{if(!e)return null;if(typeof e.select=="function")return e;let{adapter:t,...r}=e,n=typeof t=="string"?t:typeof e=="string"?e:null;if(!n)return null;let o=zy[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},Io=e=>{if(!e)return 0;if(typeof e=="number")return e;let t=e.match(/^(\d+)(ms|s|m|h)$/);if(!t)return 0;let r=parseInt(t[1]),n=t[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},Me=new Map,Wy=new Map,Ao=new Map,HC=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=KC(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||"")}`;return t?`${n}:${t}`:n},Eo=e=>Me.get(e)||null,Oo=(e,t,r)=>{let n=Me.get(e),o={data:t,error:r,time:Date.now(),stale:!1};Me.set(e,o);let s=Wy.get(e);if(s)for(let i of s)F(i)&&i(o);return o},To=e=>{if(e){let t=Me.get(e);t&&(t.stale=!0);return}for(let[,t]of Me)t.stale=!0},Ji=e=>{if(e){Me.delete(e);return}Me.clear()},Ou=e=>!e&&e!==!1?{staleTime:6e4,gcTime:3e5}:e===!1?null:e===!0?{staleTime:6e4,gcTime:3e5}:typeof e=="number"?{staleTime:e,gcTime:Math.max(e*5,3e5)}:R(e)?{staleTime:Io(e),gcTime:3e5}:{staleTime:Io(e.stale||e.staleTime)||6e4,gcTime:Io(e.gc||e.gcTime||e.expire)||3e5,key:e.key},Qi=null,qC=()=>{Qi||(Qi=setInterval(()=>{let e=Date.now();for(let[t,r]of Me){let n=Wy.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&Me.delete(t)}},3e4),Qi.unref&&Qi.unref())},qC(),Uy=3,Tu=e=>Math.min(1e3*2**e,3e4),Hy=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:Uy,delay:Tu}:typeof t=="number"?{count:t,delay:Tu}:{count:t.count??Uy,delay:F(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:Tu}},qy=async(e,t)=>{let{count:r,delay:n}=t,o;for(let s=0;s<=r;s++)try{let i=await e();if(i?.error){if(o=i.error,s<r){let a=F(n)?n(s,o):n;await new Promise(l=>setTimeout(l,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=F(n)?n(s,i):n;await new Promise(l=>setTimeout(l,a));continue}throw i}return{data:null,error:o}},kn={focus:new Set,online:new Set},Gy=!1,GC=()=>{if(Gy||typeof window>"u")return;Gy=!0;let e=()=>{for(let r of kn.focus)r()},t=()=>{for(let r of kn.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},Ky=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:"select",query:!0,on:"create"};if(R(e))return{from:e,method:"select",query:!0,on:"create"};if(j(e)){let n={...e};return n.from=n.from||r.__state||t.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},KC=e=>(!e||F(e),e),ea=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},Xy=(e,t,r)=>{let n;if(!e)n=void 0;else if(F(e))n=e(t,t.state);else{n={};for(let o in e){let s=e[o];n[o]=F(s)?s(t,t.state):s}}return n},oa=async(e,t)=>{if(!e||e.__authInitialized||(e.__authInitialized=!0,!e.getSession))return;let r=(n,o)=>{let s=t.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await e.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}e.onAuthStateChange&&e.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},Pu=async(e,t)=>{if(F(e.select))return e.auth!==!1&&await oa(e,t),e;if(e.__resolved)return e.auth!==!1&&await oa(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=cb(e);let r=await e.__resolving;return delete e.__resolving,r?(r.auth=e.auth,r.url=e.url,r.key=e.key,e.__resolved=r,t.fetch=r,e.auth!==!1&&await oa(r,t),r):null},nt=(e,t,...r)=>{let n=F(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},xt=(e,t,r,...n)=>{let o=e&&F(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},Po=e=>{let t={},r=e.node;if(!r)return t;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())t[s]=i;return t}let n=r.querySelectorAll("input, textarea, select");for(let o=0;o<n.length;o++){let s=n[o],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?t[i]=s.checked:s.type==="file"?t[i]=s.files:t[i]=s.value)}return t},Wr=(e,t,r,n={})=>{let o=r&&r.startsWith("~/"),s=o&&e.state?.root||e.state;if(s?.update)if(o){let i=r.slice(2);t&&typeof t=="object"&&!Array.isArray(t)&&i in t?s.update(t,{preventFetch:!0,...n}):s.update({[i]:t},{preventFetch:!0,...n})}else{let i=r?{[r]:t}:t;s.update(i,{preventFetch:!0,...n})}},jt=(e,t)=>{let r=e?.__ref;r&&(r.__fetchStatus=t,r.__fetching=t.isFetching,r.__fetchError=t.error)},pr=async(e,t,r,n={})=>{let o=r?.fetch;if(!o||!t||!t.__ref||e.enabled===!1||F(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||F(e.skip)&&e.skip(t,t.state))return;let s=await Pu(o,r);if(!s||!t.__ref)return;let i=t.__ref,{from:a,method:l,query:c,params:u,cache:d,transform:f,single:p,auth:h,fields:g,as:m,limit:y,offset:b,order:x,headers:v,baseUrl:_,page:S,cursor:O,getNextPageParam:T,getPreviousPageParam:k,infinite:D,placeholderData:te,initialData:z,select:N,keepPreviousData:ye}=e,pe=R(N)?N:void 0;if(c&&F(t.getQuery)){let ie=t.getQuery(s.name||"paths");ie&&(pe=ie.select||ie.length&&ie.join(",")||pe)}let be=Xy(u,t,r),he=Ou(d),er=Hy(e),Xr=ea(t,r),vd=Xr?`:${Xr}`:"",Y=he?d?.key||`${a}:${l}:${JSON.stringify(be||"")}${D?":infinite":""}${S?":p"+JSON.stringify(S):""}${vd}`:null;if(!i.__fetchInitialized&&Y&&(i.__fetchInitialized=!0,z!==void 0)){let ie=F(z)?z():z;Oo(Y,ie,null)}if((l==="select"||l==="rpc")&&Y&&he){let ie=Eo(Y);if(ie&&!ie.error){let B=Date.now()-ie.time,V=ie.stale||B>(he.staleTime||0),L=ie.data;if(F(N)&&(L=N(L,t,t.state)),f&&(L=f(L,t,t.state)),Wr(t,L,m),!V){jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(te!==void 0){let B=F(te)?te(t,t.state):te;B!==void 0&&Wr(t,B,m)}}if(Y&&Ao.has(Y)&&!n.force){let ie=Ao.get(Y);try{let B=await Promise.race([ie,new Promise((V,L)=>setTimeout(()=>L("DEDUP_TIMEOUT"),15e3))]);if(B?.data!==void 0){let V=B.data;F(N)&&(V=N(V,t,t.state)),f&&(V=f(V,t,t.state)),Wr(t,V,m),nt(t,"onFetchComplete",V),xt(e,t,"onFetchComplete",V)}}catch{}return}let _d=!Eo(Y)?.data;jt(t,{isFetching:!0,isLoading:_d,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),nt(t,"onFetchStart"),xt(e,t,"onFetchStart");let ke=r?.analyze?.emitNetwork,Yr=ke?typeof performance<"u"?performance.now():Date.now():0;ke&&ke({phase:"start",mode:"query",from:a,method:l,cacheKey:Y,lang:Xr});let wd=qy(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let L=await s.getSession();if(h===!0&&!L){let W={message:"Not authenticated"};return jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:W,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",W),xt(e,t,"onFetchError",W),{data:null,error:W}}}let ie=s[l];if(!F(ie))return{data:null,error:{message:`Method "${l}" not found on adapter`}};let B={from:a,select:pe,params:be,single:p,limit:y,offset:b,order:x,headers:v,baseUrl:_},V=ea(t,r);if(V&&(B.headers={...B.headers,"Accept-Language":V}),S!==void 0){if(j(S))S.offset!==void 0&&(B.offset=S.offset),S.limit!==void 0&&(B.limit=S.limit),S.cursor!==void 0&&(B.params={...B.params,cursor:S.cursor});else if(typeof S=="number"){let L=e.pageSize||y||20;B.offset=(S-1)*L,B.limit=L}}if(O!==void 0&&(B.params={...B.params,cursor:O}),l==="insert"||l==="update"||l==="upsert"){let L;if(g===!0||e.on==="submit")L=Po(t);else if(U(g)){let W=Po(t);L={};for(let Ce of g)L[Ce]=W[Ce]}else t.state?.parse?L=t.state.parse():j(t.state)&&(L={...t.state});f&&(L=f(L,t,t.state)),B.data=L}if(l==="rpc"){let L=be;if(e.on==="submit"){let W=Po(t);L=e.transformParams?e.transformParams(W,t,t.state):W}B.params=L}if(l==="subscribe"){let L=s.subscribe({from:a,params:be,on:e.subscribeOn},(W,Ce,Za)=>{Wr(t,W,m),nt(t,"onFetchComplete",W),xt(e,t,"onFetchComplete",W)});return i.__unsubscribe=L,{data:null,error:null,subscribed:!0}}return ie(B)},er);Y&&Ao.set(Y,wd);try{let ie=await wd;if(ie?.subscribed)return;let{data:B,error:V}=ie||{};if(V){Y&&Oo(Y,null,V),jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:V,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",V),xt(e,t,"onFetchError",V),ke&&ke({phase:"error",mode:"query",from:a,method:l,cacheKey:Y,error:V.message||V,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr});return}if(B!==void 0){if((l==="select"||l==="rpc")&&Y){let W=Oo(Y,B,null);W.gcTime=he?.gcTime||3e5}let L=B;D&&U(B)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(B):i.__pages.push(B),L=i.__pages.flat(),T&&(i.__nextPageParam=T(B,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),k&&(i.__prevPageParam=k(B,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),F(N)&&(L=N(L,t,t.state)),f&&(L=f(L,t,t.state)),(!ye||L!==void 0)&&Wr(t,L,m),jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),nt(t,"onFetchComplete",L),xt(e,t,"onFetchComplete",L),ke&&ke({phase:"success",mode:"query",ok:!0,from:a,method:l,cacheKey:Y,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}}catch(ie){jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ie,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",ie),xt(e,t,"onFetchError",ie),ke&&ke({phase:"error",mode:"query",from:a,method:l,cacheKey:Y,error:ie.message||String(ie),durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}finally{Y&&Ao.delete(Y)}},XC=(e,t,r)=>{let n=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=e.__runner||pr;if(n==="submit"){let i=l=>{l.preventDefault(),s(e,t,r)},a=t.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(e,t,r),a=t.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(e,t,r))},YC=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),GC();let o=e.refetchInterval;if(o){let s=typeof o=="number"?o:Io(o);if(s>0){let i=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&pr(e,t,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(e.refetchOnWindowFocus!==!1){let s=()=>{let i=ea(t,r),a=HC(e,i),l=Eo(a),c=Ou(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&pr(e,t,r,{force:!0})};kn.focus.add(s),n.__fetchCleanups.push(()=>kn.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>pr(e,t,r,{force:!0});kn.online.add(s),n.__fetchCleanups.push(()=>kn.online.delete(s))}},ZC=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,s=e.state?.parse?e.state.parse():j(e.state)?{...e.state}:e.state;n.__optimisticSnapshot=s;let i=F(t.optimistic)?t.optimistic(r,s,e):t.optimistic;return i!==void 0&&Wr(e,i,o),s},Ru=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Wr(e,n,t.as),delete r.__optimisticSnapshot)},JC=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await Pu(n,r);if(!o)return;let s=t.__ref,{method:i,from:a,fields:l,transform:c,as:u,on:d,auth:f,headers:p,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:x,onSettled:v}=e,_;if(l===!0||d==="submit")_=Po(t);else if(U(l)){let k=Po(t);_={};for(let D of l)_[D]=k[D]}else t.state?.parse?_=t.state.parse():j(t.state)&&(_={...t.state});c&&(_=c(_,t,t.state)),F(y)&&y(_,t,t.state);let S=m?ZC(t,e,_):null;s.__fetching=!0,jt(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),nt(t,"onFetchStart"),xt(e,t,"onFetchStart");let O=r?.analyze?.emitNetwork,T=O?typeof performance<"u"?performance.now():Date.now():0;O&&O({phase:"start",mode:"mutation",from:a,method:i});try{if(f!==!1&&o.auth!==!1&&o.getSession){let be=await o.getSession();if(f===!0&&!be){S!==void 0&&Ru(t,e);let he={message:"Not authenticated"};nt(t,"onFetchError",he),xt(e,t,"onFetchError",he);return}}let k=o[i];if(!F(k))return;let D={from:a,data:_,headers:p,baseUrl:h};e.params&&(D.params=Xy(e.params,t,r));let te=ea(t,r);te&&(D.headers={...D.headers,"Accept-Language":te});let z=Hy(e),N=await qy(()=>k(D),z),{data:ye,error:pe}=N||{};if(pe){S!==void 0&&Ru(t,e),jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:pe,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",pe),F(x)&&x(pe,_,t),F(v)&&v(null,pe,_,t),O&&O({phase:"error",mode:"mutation",from:a,method:i,error:pe.message||String(pe),durationMs:(typeof performance<"u"?performance.now():Date.now())-T});return}if(delete s.__optimisticSnapshot,ye!==void 0){let be=u?{[u]:ye}:ye;t.state?.update&&t.state.update(be,{preventFetch:!0})}if(jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),nt(t,"onFetchComplete",ye),xt(e,t,"onFetchComplete",ye),F(b)&&b(ye,_,t),F(v)&&v(ye,null,_,t),O&&O({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-T}),g){let be=U(g)?g:[g];for(let he of be)if(he===!0||he==="*")for(let[er]of Me)er.startsWith(a+":")&&To(er);else To(he)}}catch(k){S!==void 0&&Ru(t,e),jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:k,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",k),xt(e,t,"onFetchError",k),F(x)&&x(k,_,t),F(v)&&v(null,k,_,t),O&&O({phase:"error",mode:"mutation",from:a,method:i,error:k.message||String(k),durationMs:(typeof performance<"u"?performance.now():Date.now())-T})}finally{s.__fetching=!1}},Lu=(e,t,r,n)=>{if(!e||!n?.fetch)return;let o=Ne(e,t);if(!o)return;let s=U(o)?o.map(a=>Ky(Ne(a,t),t)).filter(Boolean):[Ky(o,t)].filter(Boolean);for(let a of s){let l=a.method==="insert"||a.method==="update"||a.method==="upsert"||a.method==="delete",c=l?JC:pr;a.on==="create"?c(a,t,n):Promise.resolve().then(()=>{XC({...a,__runner:c},t,n)}),!l&&a.on==="create"&&(a.refetchInterval||a.refetchOnWindowFocus!==!1||a.refetchOnReconnect!==!1)&&YC(a,t,n)}let i=t.__ref;i.refetch=a=>{for(let l of s)pr(l,t,n,{force:!0,...a})},i.fetchNextPage=()=>{let a=s[0];if(!a||!a.infinite)return;let l=i.__nextPageParam;if(l==null)return;let c={...a,cursor:l};pr(c,t,n,{direction:"next",force:!0})},i.fetchPreviousPage=()=>{let a=s[0];if(!a||!a.infinite)return;let l=i.__prevPageParam;if(l==null)return;let c={...a,cursor:l};pr(c,t,n,{direction:"previous",force:!0})}},nE={invalidateQueries:e=>{if(!e){To();return}if(R(e))for(let[t]of Me)(t.startsWith(e)||t.includes(e))&&To(t);else if(U(e)){let t=e.join(":");for(let[r]of Me)r.includes(t)&&To(r)}},removeQueries:e=>{if(!e){Ji();return}if(R(e))for(let[t]of Me)(t.startsWith(e)||t.includes(e))&&Ji(t)},getQueryData:e=>Eo(e)?.data??void 0,setQueryData:(e,t)=>{let r=Eo(e),n=F(t)?t(r?.data):t;Oo(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await Pu(r,t);if(!n)return;let o=e.cache?.key||`${e.from}:${e.method||"select"}:${JSON.stringify(e.params||"")}`,s=n[e.method||"select"];if(!F(s))return;let i=await s({from:e.from,params:e.params,limit:e.limit,offset:e.offset,order:e.order,single:e.single});if(i?.data!==void 0&&!i?.error){let a=Oo(o,i.data,null);a.gcTime=Ou(e.cache)?.gcTime||3e5}return i},getCache:()=>Me,clear:()=>Ji(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of Me)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||Ji(r))}},oE={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||Ao.clear(),Lu(t,e,e.state,e.context))}},sE=Lu});function iE(e){let t=this,{__ref:r}=t,n=[].concat(e),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",t.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function aE(e){let t=this,{parent:r}=t;if(F(e))return r.state&&e(r,r.state,r.context)?r:r.parent?r.lookup(e):void 0;if(t[e])return t[e];for(;r.param!==e;){if(r[e])return r[e];if(r=r.parent,!r)return}return r}function lE(e){let t=this,{__ref:r}=t,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=t[s];if(s===e)return i;if(F(e)){let l=e(i,i.state,i.context);if(i.state&&l)return i}let a=i?.lookdown?.(e);if(a)return a}}function cE(e,t=[]){let r=this,{__ref:n}=r,o=n?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=r[i];if(i===e)t.push(a);else if(F(e)){let l=e(a,a.state,a.context);a.state&&l&&t.push(a)}a?.lookdownAll?.(e,t)}return t.length?t:void 0}}function o0(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(j(n)&&o)o0.call(o,n);else if(n!=null){let s=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(n).replace(/\s*!important\s*$/,"");t.node.style.setProperty(s,i,"important")}}return t}}function uE(e){let t=this;if(zo("beforeRemove",t,e)===!1)return t;F(t.node.remove)?t.node.remove():Vo()||(console.warn("This item cant be removed"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=qf(t.parent.__ref.__children,t.key)),zo("remove",t,e)}function fE(e){return this[e]}function dE(e,t){let r=this;if(e)return r.update(e,t),r}function pE(e){return e?this.__ref&&this.__ref[e]:this.__ref}function hE(){return this.getRef("__children").map(e=>this[e])}function gE(){return this.getRef().path}function mE(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=ub();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=F(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=ub()),e?t?.[e]:t}function yE(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function bE(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function xE(e){let t=this.getRoot()?.context;return e?t[e]:t}function vE(e){let t=this.context;return e?t[e]:t}function s0(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||Uo.has(r)&&!Yf.has(r)||t.push(r);return t}function i0(e=[]){let t=this,r={},n=s0.call(t),o=n.includes("children"),s=e.length?new Set(e):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(t,a)||o&&a==="content")continue;let l=t[a];if(a==="state"){if(t.__ref&&!t.__ref.__hasRootState)continue;let c=F(l&&l.parse)?l.parse():l;r[a]=F(c)?c:JSON.parse(JSON.stringify(c||{}))}else if(a==="scope"){if(t.__ref&&!t.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(l||{}))}else if(a==="props"){let{__element:c,update:u,...d}=t[a];r[a]=d}else Bo(l)&&Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=l)}return r}function Of(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=i0.call(r,e),o=e.length?new Set(e):null;for(let s in n){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=n[s];Array.isArray(i)?n[s]=i.map(a=>oe(a)?Of.call(a,e,t):a):oe(i)&&(n[s]=Of.call(i,e,t))}return n}function a0(...e){if(mr!=="test"&&mr!=="development")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(n=>console.log(`%c${n}:
|
|
85
|
+
`,"font-weight: bold",t[n])):(console.log(r.path),t.keys().forEach(n=>console.log(`%c${n}:`,"font-weight: bold",t[n]))),console.log(t),console.groupEnd(t.key),t}function _E(...e){(mr==="test"||mr==="development")&&console.log(...e)}function wE(...e){(mr==="test"||mr==="development")&&console.warn(...e)}function Tf(...e){if(mr==="test"||mr==="development"){if(e[e.length-1]?.debugger)debugger;throw e[e.length-1]?.verbose&&a0.call(this),new Error(...e)}}function SE(){let e=this,{key:t,parent:r}=e,{__children:n}=r.__ref,o=n.indexOf(t),s=n[o+1];return r[s]}function kE(e){let t=e||this,{key:r,parent:n}=t,{__children:o}=n.__ref;if(!o)return;let s=o.indexOf(r);return n[o[s-1]]}function CE(e={}){let t=this;t.data||(t.data={}),t.data.varCaches||(t.data.varCaches={});let r=t.data.varCaches,n={},o;for(let s in e)e[s]!==r[s]&&(o=!0,n[s]=e[s]);return{changed:s=>{if(!o)return;let i=s(n,et(r));for(let a in n)r[a]=n[a];return i},timeout:(s,i)=>{if(!o)return;let a=setTimeout(()=>{s(n),clearTimeout(a)},i)}}}function AE(e,...t){let r=this.context,n=r.utils?.[e]||r.functions?.[e]||r.methods?.[e]||r.snippets?.[e];if(n)try{let o=n.call(this,...t);return o&&typeof o.then=="function"&&o.catch(s=>{Tf.call(this,s)}),o}catch(o){if(Tf.call(this,o),r?.strictMode)throw o}}async function EE(){let e=this,t=e.context?.fetch;if(!t)return null;if(typeof t.select=="function"){if(!t.__authInitialized&&t.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Do(),na));await o(t,e.context)}return t}if(t.__resolved){if(!t.__resolved.__authInitialized&&t.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Do(),na));await o(t.__resolved,e.context)}return t.__resolved}if(t.__resolving)return t.__resolving;let r=Promise.resolve().then(()=>(Do(),na)).then(({resolveDb:o})=>o(t));t.__resolving=r;let n=await r;if(t.__resolved=n,e.context.fetch=n,delete t.__resolving,n.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Do(),na));await o(n,e.context)}return n}function OE(e){let t=this,r=e||sd.useStateQuery||t.context?.useStateQuery;if(!r)return null;let n={};if(Mu(t,n),r===!0)return n;let o=PE[r];return o?o(n):n}function TE(e,t){return!!(Ia.has(e)||t?.context?.methods?.[e])}var mr,Yy,l0,ub,c0,Mu,QC,Zy,eA,tA,rA,nA,oA,sA,PE,gj=K(()=>{"use strict";GA(),Ua(),Fe(),Gr(),FA(),za(),KA(),mr="production",Yy=null,l0=e=>{Yy=e||null},ub=()=>Yy||null,c0=(e,t,r,n)=>Object.defineProperty(e,t,{get:r,set:n}),Mu=(e,t)=>{let r=e.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&QC(t,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let l=e[o[a]];l&&l.__ref&&Mu(l,t)}let s=r.contentElementKey||"content",i=e[s];i&&i.__ref&&Mu(i,t)},QC=(e,t)=>{let r=t.replaceAll("../","").replaceAll("~/","").split("/"),n=e;for(let o=0;o<r.length;o++){let s=r[o];o===r.length-1?n[s]||(n[s]=!0):(n[s]===!0&&(n[s]={}),n[s]||(n[s]={}),n=n[s])}},Zy=(e,t=0)=>{let r=" ".repeat(t),n=Object.entries(e);return n.length?n.map(([o,s])=>s===!0?`${r}${o}`:`${r}${o} {
|
|
86
|
+
${Zy(s,t+1)}
|
|
87
87
|
${r}}`).join(`
|
|
88
|
-
`):""},
|
|
89
|
-
${
|
|
90
|
-
}`,
|
|
88
|
+
`):""},eA=e=>`{
|
|
89
|
+
${Zy(e,1)}
|
|
90
|
+
}`,tA=e=>{let t={fields:{},include:[]},r=(n,o)=>{let s=[];for(let i in n)if(n[i]===!0)s.push(i);else{let a=o?`${o}.${i}`:i;t.include.push(a),r(n[i],a)}s.length&&(t.fields[o||"_root"]=s)};return r(e,""),t},rA=e=>{let t=s=>{let i=[],a=[];for(let l in s)if(s[l]===!0)i.push(l);else{let c=t(s[l]),u=[];c.select&&u.push(`$select=${c.select}`),c.expand&&u.push(`$expand=${c.expand}`),a.push(u.length?`${l}(${u.join(";")})`:l)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:r,expand:n}=t(e),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join("&")},nA=(e,t)=>{let r=[],n=[],o=new Set,s=(u,d,f)=>{o.add(d),f&&n.push(`LEFT JOIN ${d} ON ${d}.${f}_id = ${f}.id`);for(let p in u)u[p]===!0?r.push(`${d}.${p}`):s(u[p],p,d)},i=Object.keys(e);i.length===1&&e[i[0]]!==!0?s(e[i[0]],i[0],null):s(e,"_root",null);let a=[...o][0]||"_root",l=r.length?r.join(", "):"*",c=n.length?`
|
|
91
91
|
`+n.join(`
|
|
92
92
|
`):"";return`SELECT ${l}
|
|
93
|
-
FROM ${a}${c}`},
|
|
93
|
+
FROM ${a}${c}`},oA=e=>{let t=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;n[s]===!0?t.push(i):r(n[s],i)}};return r(e,""),t},sA=e=>{let t=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${t(n[s])})`);return o.join(", ")},r=Object.keys(e);return r.length===1&&e[r[0]]!==!0?{from:r[0],select:t(e[r[0]])}:{from:null,select:t(e)}},PE={graphql:eA,"json-api":tA,odata:rA,sql:nA,supabase:sA,paths:oA}}),iA,u0,mj=K(()=>{"use strict";px(),iA={snapshotId:ed},u0=(e,t)=>{let r=e.__ref,{currentSnapshot:n,calleeElement:o}=t;if(!o||o===e){let i=iA.snapshotId();return r.__currentSnapshot=i,[i,e]}let s=o.__ref.__currentSnapshot;return n<s?[s,o,!0]:[s,o]}}),Pf,f0,yj=K(()=>{Pf=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),f0=e=>typeof e=="string"&&Pf.has(e)});async function RE(e){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(t){console.warn(`Error attempting to enable fullscreen mode: ${t.message} (${t.name})`)}}var bj=K(()=>{"use strict"});function xj(e){return/^[0-9.]+$/.test(e)&&e!==""}var Mt,Rf,d0,$f,p0,vj=K(()=>{"use strict";Mt={skypack:{url:"https://cdn.skypack.dev",formatUrl:(e,t)=>`${Mt.skypack.url}/${e}${t!=="latest"?`@${t}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(e,t)=>`${Mt.esmsh.url}/${e}${t!=="latest"?`@${t}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(e,t)=>`${Mt.unpkg.url}/${e}${t!=="latest"?`@${t}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(e,t)=>`${Mt.jsdelivr.url}/${e}${t!=="latest"?`@${t}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(e,t)=>e.split("/").length>2||!xj(t)?`${Mt.symbols.url}/${e}`:`${Mt.symbols.url}/${e}/${t}.js`}},Rf={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},d0=(e={})=>{let{packageManager:t}=e;return Rf[t]||null},$f=(e,t="latest",r="esmsh")=>(Mt[r]||Mt.esmsh).formatUrl(e,t),p0=(e,t="skypack")=>{let r=e.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let s of n){let i=r[s]||"latest";o[s]=$f(s,i,t)}return`<script type="importmap">{
|
|
94
94
|
"imports": ${JSON.stringify(o,null,2)}
|
|
95
|
-
}<\/script>`}}),
|
|
96
|
-
`)),h2=e=>typeof e=="string"&&e.length>0&&!e.startsWith("/")&&!e.startsWith("http")}),Uf,bx,S5=Z(()=>{"use strict";Be(),Uf=(e,t)=>(q(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),bx=(e,t)=>(e=parseFloat(e),B(t)&&(t=Object.values(t)),Uf(e,t))});function Wa(e){let t=String(e||"").trim();if(!t)return{owner:i0,key:"",full:""};let r=null,n=t;if(t.includes("/")){let s=t.indexOf("/");r=t.slice(0,s),n=t.slice(s+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=i0);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function vx(e,t={}){return(t.provider||"kv")==="api"?WT(e,t):await _5(e,t)||WT(e,t)}async function _5(e,t={}){let r=t.kvBaseUrl||m2,n=t.env||"production",o=`${r}/kv/${encodeURIComponent(e)}?env=${n}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function WT(e,t={}){let r=t.apiBaseUrl||y2,{key:n}=Wa(e);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,s=await fetch(o,{method:"GET"});if(!s.ok)return null;let i=await s.json(),a=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(f=>{let{key:h}=Wa(f?.key);return h.toLowerCase()===n.toLowerCase()});if(!a?.id&&!a?._id)return null;let l=a.id||a._id,c=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,u=await fetch(c,{method:"GET"});if(!u.ok)return null;let d=await u.json();return d?.data||d||null}catch{return null}}async function g2(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async r=>{if(B(r))return r;if(I(r)){let{full:n}=Wa(r);if(!n)return null;try{let o=await vx(n,t);return o||console.warn(`[smbls] Shared library "${n}" not found`),o}catch(o){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,o.message),null}}return null}))).filter(Boolean)}var i0,m2,y2,Ta,xx,k5=Z(()=>{"use strict";Be(),i0="system",m2="https://smbls-kv.nika-980.workers.dev",y2="https://api.symbols.app",Ta=(e,t)=>{for(let r in t)r in e?B(e[r])&&B(t[r])&&Ta(e[r],t[r]):e[r]=t[r]},xx=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(B(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(B(n[o])&&B(e[o]))if(o==="designSystem")Ta(e[o],n[o]);else for(let s in n[o])s in e[o]||(e[o][s]=n[o][s]);else o in e||(e[o]=n[o])}}}}),wx,Sx,_x,Sd,kx,_d,Cx,Qa,C5=Z(()=>{"use strict";Be(),wx=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn("Failed to copy text: ",t)}},Sx=async e=>{try{let t=new Blob([e],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":t});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(t){console.error("Failed to copy JavaScript code: ",t)}},_x=e=>e.replace(/[^a-zA-Z0-9_]/g,""),Sd=e=>(typeof e!="string"&&(e=String(e||"")),e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(t,r){return r===0?t.toLowerCase():t.toUpperCase()}).replace(/\s+/g,"")),kx=e=>e&&e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),_d=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Cx=(e="")=>{if(typeof e!="string")return;let t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},Qa=e=>{if(q(e))return e;if(I(e))return e.split(" ");if(B(e))return Object.values(e);if(Dn(e))return[e]}}),Ax,A5=Z(()=>{"use strict";Ax=()=>{let e=document.styleSheets[0],t="";if(e)try{let r=e.cssRules||e.rules;for(let n=0;n<r.length;n++)t+=r[n].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return t}}),Le,Uo,el,tl,E5=Z(()=>{"use strict";Le=e=>{let t=e&&e.src;if(!t||typeof t!="string")return null;let r=e.context;if(!r)return null;let n=r.assets&&r.assets[t]||r.files&&r.files[t];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},Uo=(e,{keepOneX:t=!0}={})=>{if(!Array.isArray(e)||!e.length)return"";let r=e.some(o=>typeof o.width=="number"),n=[];for(let o of e)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&t?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},el=e=>{if(!e||!Array.isArray(e.variants))return"";let t=e.variants.filter(r=>r.format===e.type);return Uo(t,{keepOneX:!1})},tl=(e,t)=>{if(!e||typeof e!="object"||typeof e.src!="string")return[];if(!Array.isArray(e.variants)||!e.variants.length)return[{tag:"img",attr:{src:e.src,alt:t||""}}];let r=new Map;for(let a of e.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,l]of r)a!==e.type&&n.push({tag:"source",attr:{type:a,srcset:Uo(l,{keepOneX:!0})}});let o=r.get(e.type)||[],s=Uo(o,{keepOneX:!1}),i={src:e.src,alt:t||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}}),T5={};$(T5,{CDN_PROVIDERS:()=>Vt,DOMQL_EVENTS:()=>V0,DOMQ_PROPERTIES:()=>Yo,ENV:()=>lv,HTML_TAGS:()=>Na,METHODS:()=>La,METHODS_EXL:()=>pd,NODE_ENV:()=>Ht,OPTIONS:()=>wd,PACKAGE_MANAGER_TO_CDN:()=>Vf,PARSED_DOMQ_PROPERTIES:()=>dd,PROPS_METHODS:()=>jn,STATE_METHODS:()=>In,STATE_PROPERTIES:()=>H0,SVG_TAGS:()=>_v,TYPES:()=>da,UNIVERSAL_RESERVED_KEYS:()=>Hf,addCaching:()=>If,addContext:()=>$f,addExtend:()=>Tv,addExtends:()=>tt,addItemAfterEveryElement:()=>P0,addProtoToArray:()=>cd,addRef:()=>Of,applyDependentState:()=>Gv,applyEvent:()=>Mf,applyEventUpdate:()=>Nf,applyExtends:()=>Pv,applyProps:()=>Ea,arrayContainsOtherArray:()=>_0,arraysEqual:()=>$0,arrayzeValue:()=>Qa,buildImgSrcset:()=>el,buildSourcesAndImg:()=>tl,cache:()=>Yv,call:()=>s2,captureSnapshot:()=>ox,checkForStateTypes:()=>Hv,checkIfInherits:()=>Bf,checkIfStringIsInArray:()=>F0,clone:()=>U0,cloneAndMergeArrayExtend:()=>xa,cloneFunction:()=>gO,concatAddExtends:()=>Cv,copyJavaScriptToClipboard:()=>Sx,copyStringToClipboard:()=>wx,createBasedOnType:()=>Tf,createElement:()=>Wv,createElementExtends:()=>bf,createExtends:()=>vd,createExtendsFromKeys:()=>za,createExtendsStack:()=>Sf,createIfConditionFlag:()=>mv,createInheritedState:()=>Vv,createKey:()=>yd,createNestedObject:()=>ev,createNestedObjectByKeyPath:()=>Uv,createObjectWithoutPrototype:()=>df,createParent:()=>Pf,createPath:()=>Rf,createProps:()=>xd,createPropsStack:()=>Af,createRoot:()=>zv,createScope:()=>Zv,createSnapshotId:()=>md,customDecodeURIComponent:()=>W0,customEncodeURIComponent:()=>z0,cutArrayAfterValue:()=>T0,cutArrayBeforeValue:()=>E0,debounce:()=>hO,debounceOnContext:()=>pv,decodeNewlines:()=>N0,deepClone:()=>rt,deepContains:()=>J0,deepDefaults:()=>Ta,deepDestringifyFunctions:()=>ga,deepExtend:()=>yf,deepMerge:()=>tr,deepMergeExtends:()=>Jt,deepStringifyFunctions:()=>pa,defineSetter:()=>nx,destringifyGlobalScope:()=>G0,detectHeightOnInit:()=>cx,detectInfiniteLoop:()=>ov,document:()=>ye,encodeNewlines:()=>M0,error:()=>Wf,excludeKeysFromObject:()=>iv,exec:()=>De,extendCachedRegistry:()=>Av,extendStackRegistry:()=>ya,extractArrayExtend:()=>va,fetchLibraryData:()=>vx,fibonacciNumberByIndex:()=>ux,filterArrays:()=>I0,filterArraysFast:()=>j0,finalizeExtends:()=>_f,findClosestNumber:()=>Uf,findClosestNumberInFactory:()=>bx,findInheritedState:()=>Lf,findKeyPosition:()=>L0,flattenExtend:()=>Vo,formatDate:()=>lx,generateHash:()=>hf,generateKey:()=>ma,generateMetaTags:()=>yx,get:()=>VO,getCDNUrl:()=>qf,getCapitalCaseKeys:()=>vO,getCdnProviderFromConfig:()=>ix,getChildStateInKey:()=>Df,getChildren:()=>GO,getContext:()=>QO,getCookie:()=>wv,getDB:()=>i2,getEmotionStylesheet:()=>Ax,getExtendsInElement:()=>Ov,getExtendsStack:()=>Sa,getExtendsStackRegistry:()=>mf,getFrequencyInArray:()=>k0,getHashedExtend:()=>ba,getImportMapScript:()=>ax,getInObjectByPath:()=>nv,getLocalStorage:()=>mO,getNev:()=>dv,getPageMetadata:()=>p2,getParentStateInKey:()=>Ff,getPath:()=>KO,getQuery:()=>a2,getRef:()=>UO,getRoot:()=>XO,getRootContext:()=>JO,getRootData:()=>YO,getRootState:()=>ZO,getRootStateInKey:()=>jf,getSpreadChildren:()=>xO,global:()=>x0,hasFunction:()=>Ho,hasHandlerPlugin:()=>Ya,hasOwnProperty:()=>Z0,inheritChildExtends:()=>xf,inheritChildPropsExtends:()=>vf,inheritParentProps:()=>ka,inheritRecursiveChildExtends:()=>wf,initProps:()=>Mv,is:()=>Qt,isArray:()=>q,isBoolean:()=>af,isContextComponent:()=>wO,isCyclic:()=>sv,isDOMNode:()=>at,isDate:()=>cf,isDefined:()=>Ln,isDevelopment:()=>bd,isEmpty:()=>uf,isEmptyObject:()=>X0,isEqualDeep:()=>ff,isFunction:()=>L,isHtmlElement:()=>sd,isLocal:()=>fv,isMethod:()=>l2,isMobile:()=>vv,isNode:()=>Ua,isNot:()=>S0,isNotProduction:()=>Xa,isNull:()=>lf,isNumber:()=>Dn,isObject:()=>B,isObjectLike:()=>oe,isPhoto:()=>fx,isProduction:()=>Zo,isStaging:()=>uv,isState:()=>qv,isString:()=>I,isStringFunction:()=>gv,isTest:()=>pf,isTesting:()=>cv,isUndefined:()=>Tt,isUniversallyReservedKey:()=>sx,isValidHtmlTag:()=>kv,joinArrays:()=>Fa,jointStacks:()=>Ev,keys:()=>Qv,loadCssFile:()=>gx,loadJavascript:()=>mx,loadJavascriptFile:()=>dx,loadJavascriptFileEmbedSync:()=>hx,loadJavascriptFileSync:()=>px,loadRemoteCSS:()=>d2,loadRemoteScript:()=>f2,log:()=>e2,logGroupIf:()=>bv,logIf:()=>yv,lookdown:()=>zO,lookdownAll:()=>WO,lookup:()=>NO,lowercaseFirstLetter:()=>Ka,makeObjectWithoutPrototype:()=>Y0,map:()=>q0,mapStringsWithContextComponents:()=>wa,matchesComponentNaming:()=>$n,memoize:()=>hv,merge:()=>ct,mergeSharedLibraries:()=>xx,nextElement:()=>r2,normalizeLibraryKey:()=>Wa,objectToString:()=>ha,objectizeStringProperty:()=>_a,overwrite:()=>hd,overwriteDeep:()=>Bn,overwriteShallow:()=>gd,overwriteState:()=>Kv,parse:()=>ex,parseDeep:()=>zf,pickupElementFromProps:()=>Iv,pickupPropsFromElement:()=>$v,previousElement:()=>n2,propExists:()=>Bv,propertizeElement:()=>jv,propertizeUpdate:()=>_O,remove:()=>HO,removeChars:()=>_x,removeCookie:()=>Sv,removeDuplicateProps:()=>Ca,removeDuplicatesInArray:()=>Da,removeFromArray:()=>C0,removeFromObject:()=>Q0,removeNestedKeyByPath:()=>tv,removeValueFromArray:()=>ld,removeValueFromArrayAll:()=>O0,reorderArrayByValues:()=>R0,replaceLiteralsWithObjectFields:()=>fO,replaceOctalEscapeSequences:()=>B0,resolveAsset:()=>Le,resolveHandler:()=>Ba,resolveSharedLibraries:()=>g2,returnValueAsText:()=>Ef,runPluginHook:()=>Ma,self:()=>w0,setActiveRootState:()=>rx,setCookie:()=>xv,setHashedExtend:()=>gf,setInObjectByPath:()=>rv,setLocalStorage:()=>yO,setNodeStyles:()=>Jv,setProps:()=>qO,setPropsPrototype:()=>kf,spotByPath:()=>MO,srcsetFor:()=>Uo,stringIncludesAny:()=>ud,stringToObject:()=>K0,swapItemsInArray:()=>A0,syncProps:()=>Aa,toCamelCase:()=>Sd,toDashCase:()=>_d,toDescriptionCase:()=>Cx,toTitleCase:()=>kx,toggleFullscreen:()=>u2,triggerEventOn:()=>Xo,triggerEventOnUpdate:()=>Xv,trimStringFromSymbols:()=>D0,unstackArrayOfObjects:()=>ad,update:()=>Fv,updateProps:()=>Nv,variables:()=>o2,verbose:()=>tx,warn:()=>t2,window:()=>se});var D=Z(()=>{"use strict";av(),pO(),Be(),Xr(),Ja(),Ga(),id(),YM(),JM(),fd(),od(),QM(),bO(),SO(),CO(),Rv(),r5(),n5(),Za(),o5(),l5(),EO(),c5(),AO(),u5(),f5(),p5(),h5(),g5(),m5(),y5(),b5(),w5(),S5(),k5(),C5(),A5(),E5()}),O5=v0((e,t)=>{var r=1e3,n=r*60,o=n*60,s=o*24,i=s*7,a=s*365.25;t.exports=function(f,h){h=h||{};var p=typeof f;if(p==="string"&&f.length>0)return l(f);if(p==="number"&&isFinite(f))return h.long?u(f):c(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function l(f){if(f=String(f),!(f.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(h){var p=parseFloat(h[1]),g=(h[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return p*a;case"weeks":case"week":case"w":return p*i;case"days":case"day":case"d":return p*s;case"hours":case"hour":case"hrs":case"hr":case"h":return p*o;case"minutes":case"minute":case"mins":case"min":case"m":return p*n;case"seconds":case"second":case"secs":case"sec":case"s":return p*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function c(f){var h=Math.abs(f);return h>=s?Math.round(f/s)+"d":h>=o?Math.round(f/o)+"h":h>=n?Math.round(f/n)+"m":h>=r?Math.round(f/r)+"s":f+"ms"}function u(f){var h=Math.abs(f);return h>=s?d(f,h,s,"day"):h>=o?d(f,h,o,"hour"):h>=n?d(f,h,n,"minute"):h>=r?d(f,h,r,"second"):f+" ms"}function d(f,h,p,g){var m=h>=p*1.5;return Math.round(f/p)+" "+g+(m?"s":"")}}),P5=v0((e,t)=>{function r(n){s.debug=s,s.default=s,s.coerce=d,s.disable=c,s.enable=a,s.enabled=u,s.humanize=O5(),s.destroy=f,Object.keys(n).forEach(h=>{s[h]=n[h]}),s.names=[],s.skips=[],s.formatters={};function o(h){let p=0;for(let g=0;g<h.length;g++)p=(p<<5)-p+h.charCodeAt(g),p|=0;return s.colors[Math.abs(p)%s.colors.length]}s.selectColor=o;function s(h){let p,g=null,m,y;function b(...v){if(!b.enabled)return;let x=b,w=Number(new Date),E=w-(p||w);x.diff=E,x.prev=p,x.curr=w,p=w,v[0]=s.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let A=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(C,S)=>{if(C==="%%")return"%";A++;let z=s.formatters[S];if(typeof z=="function"){let re=v[A];C=z.call(x,re),v.splice(A,1),A--}return C}),s.formatArgs.call(x,v),(x.log||s.log).apply(x,v)}return b.namespace=h,b.useColors=s.useColors(),b.color=s.selectColor(h),b.extend=i,b.destroy=s.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(m!==s.namespaces&&(m=s.namespaces,y=s.enabled(h)),y),set:v=>{g=v}}),typeof s.init=="function"&&s.init(b),b}function i(h,p){let g=s(this.namespace+(typeof p>"u"?":":p)+h);return g.log=this.log,g}function a(h){s.save(h),s.namespaces=h,s.names=[],s.skips=[];let p=(typeof h=="string"?h:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let g of p)g[0]==="-"?s.skips.push(g.slice(1)):s.names.push(g)}function l(h,p){let g=0,m=0,y=-1,b=0;for(;g<h.length;)if(m<p.length&&(p[m]===h[g]||p[m]==="*"))p[m]==="*"?(y=m,b=g,m++):(g++,m++);else if(y!==-1)m=y+1,b++,g=b;else return!1;for(;m<p.length&&p[m]==="*";)m++;return m===p.length}function c(){let h=[...s.names,...s.skips.map(p=>"-"+p)].join(",");return s.enable(""),h}function u(h){for(let p of s.skips)if(l(h,p))return!1;for(let p of s.names)if(l(h,p))return!0;return!1}function d(h){return h instanceof Error?h.stack||h.message:h}function f(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return s.enable(s.load()),s}t.exports=r}),R5=v0((e,t)=>{e.formatArgs=n,e.save=o,e.load=s,e.useColors=r,e.storage=i(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let l;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(l=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(l[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%c"&&(d=u))}),l.splice(d,0,c)}e.log=console.debug||console.log||(()=>{});function o(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function s(){let l;try{l=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=process.env.DEBUG),l}function i(){try{return localStorage}catch{}}t.exports=P5()(e);var{formatters:a}=t.exports;a.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}});var b2={};$(b2,{CSS_NATIVE_COLOR_REGEX:()=>zn,CSS_UNITS:()=>Tx,applyMediaSequenceVars:()=>Kf,applySequenceGlobalVars:()=>Mx,applySequenceVars:()=>Ed,changeLightness:()=>L5,colorStringToRgbaArray:()=>Mn,convertSvgToSymbol:()=>N2,findHeadingLetter:()=>L2,findHeadings:()=>B2,generateSequence:()=>Kr,generateSequencePosition:()=>w3,generateSprite:()=>a0,generateSubSequence:()=>Lx,getColorShade:()=>_2,getDefaultOrFirstKey:()=>Ox,getFnPrefixAndValue:()=>nl,getFontFace:()=>N5,getFontFaceEach:()=>Cd,getFontFaceEachString:()=>E2,getFontFaceString:()=>T2,getFontFormat:()=>C2,getRgbTone:()=>Oa,getSequenceValue:()=>Bx,getSequenceValueBySymbols:()=>D2,getSequenceValuePropertyPair:()=>qa,getSubratio:()=>j2,getSubratioDifference:()=>Dx,hexToRgb:()=>I5,hexToRgbArray:()=>v2,hexToRgba:()=>F5,hslToRgb:()=>S2,isCSSVar:()=>Ge,isGoogleFontsUrl:()=>Px,isResolvedColor:()=>Jo,isScalingUnit:()=>Ex,mixTwoColors:()=>$5,mixTwoRgb:()=>D5,mixTwoRgba:()=>k2,numToLetterMap:()=>Gr,opacify:()=>Ha,parseColorToken:()=>rl,resolveFileUrl:()=>yr,returnSubThemeOrDefault:()=>M5,rgbArrayToHex:()=>x2,rgbToHSL:()=>w2,rgbToHex:()=>j5,setCustomFont:()=>$x,setCustomFontMedia:()=>Va,setFontImport:()=>Rx,setInCustomFontMedia:()=>A2,setScalingVar:()=>Fx,setSubScalingVar:()=>I2,setVariables:()=>S3,splitTopLevelCommas:()=>kd});var Ex=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",Tx=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"];D();var Mn=e=>{if(e==="")return[0,0,0,0];if(e.toLowerCase()==="transparent")return[0,0,0,0];if(e[0]==="#")return e.length<7&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(e.length>4?e[4]+e[4]:"")),[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),e.length>7?parseInt(e.substr(7,2),16)/255:1];if(e.indexOf("rgb")===-1&&ye&&se){let t=ye.body.appendChild(ye.createElement("fictum")),r="rgb(1, 2, 3)";if(t.style.color=r,t.style.color!==r){ye.body.removeChild(t);return}if(t.style.color=e,t.style.color===r||t.style.color==="")return ye.body.removeChild(t),[0,0,0,0];e=se.getComputedStyle(t).color,ye.body.removeChild(t)}return e.indexOf("rgb")===0?(e.indexOf("rgba")===-1&&(e=`${e}, 1`),e.match(/[\.\d]+/g).map(t=>+t)):[0,0,0,0]},$5=(e,t,r=.5)=>(e=Mn(e),t=Mn(t),k2(e,t,r)),I5=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},v2=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},j5=(e,t,r)=>"#"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),x2=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),F5=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${t})`},D5=(e,t,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(e[o]+(t[o]-e[o])*r);return`rgb(${n})`},L5=(e,t)=>{let[r,n,o]=t,s=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,s]},w2=(e,t,r)=>{let n=Math.max(e,t,r),o=n-Math.min(e,t,r),s=1-Math.abs(n+n-o-1),i=o&&(n==e?(t-r)/o:n==t?2+(r-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},S2=(e,t,r,n=t*Math.min(r,1-r),o=(s,i=(s+e/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],_2=(e,t)=>{let r=parseInt(e,16),n=(r>>16)+t;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+t;o>255?o=255:o<0&&(o=0);let s=(r&255)+t;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},k2=(e,t,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(e[o]+(t[o]-e[o])*r)}return`rgba(${n})`},Ha=(e,t)=>{let r=Mn(e);if(!r){Xa()&&console.warn(e+" color is not rgba");return}return r[3]=t,`rgba(${r})`},Ge=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,zn=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,B5=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,rl=e=>{if(!I(e))return null;if(zn.test(e))return{passthrough:e};if(Ge(e))return{cssVar:e};let t=e.match(B5);if(!t)return null;let[,r,n,o]=t,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},Jo=e=>I(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),kd=e=>{let t=[],r="",n=0;for(let o of e){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){t.push(r),r="";continue}r+=o}return(r.length||!t.length)&&t.push(r),t},Oa=(e,t)=>{I(e)&&e.includes("rgb")&&(e=Mn(e).join(", ")),I(e)&&(e=e.split(",").map(o=>parseFloat(o.trim()))),Dn(t)&&(t+="");let r=x2(e),n=t.slice(0,1);if(n==="-"||n==="+"){let o=_2(r,parseFloat(t));return v2(o).join(", ")}else{let[o,s,i]=e,a=w2(o,s,i),[l,c,u]=a;return S2(l,c,parseFloat(t)/100*255)}},M5=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e},yr=(e,t)=>{if(!e||!t)return null;try{return new URL(e),null}catch{}let r=t[e];return r?r.content&&r.content.src:null},Ox=(e,t)=>{if(e[t])return e[t].value;if(e.default)return e[e.default].value;let r=Object.keys(e)[0];return r&&e[r]&&e[r].value},C2=e=>{if(typeof e!="string"||!e)return null;let t=e.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(t)?t:null},Px=e=>e&&(e.includes("fonts.googleapis.com")||e.includes("fonts.gstatic.com")),Rx=e=>`@import url('${e}');`,A2=e=>`@font-face { ${e} }`,$x=(e,t,r,n={})=>{let o=(Array.isArray(t)?t:[t]).filter(s=>typeof s=="string"&&s).map(s=>{let i=C2(s),a=i?` format('${i}')`:"";return`url('${s}')${a}`}).join(`,
|
|
95
|
+
}<\/script>`}}),h0,_j=K(()=>{"use strict";h0=e=>{if(!e)return"";let t=new Date(e),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(t),n=new Intl.DateTimeFormat("en",{month:"short"}).format(t);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(t)} ${n}, ${r}`}}),g0,wj=K(()=>{"use strict";g0=(e,t)=>{let r=setTimeout(()=>{let{props:n}=e;if(!t.clientHeight){let{node:{clientHeight:o}}=e;o&&(t.clientHeight=o)}if(t.active){if(n.height==="auto")return;e.update({height:t.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let o=setTimeout(()=>{e.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(o)},450)}else e.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}}),m0,Sj=K(()=>{"use strict";m0=function(e){let t=[0,1];for(let r=2;r<=e;r++)t[r]=t[r-1]+t[r-2];return t[e]}}),y0,kj=K(()=>{"use strict";y0=e=>["jpeg","gif","jpg","png","tiff","woff"].includes(e)});function $E(e,t={}){let{window:r=globalThis}=t,{document:n=r.document}=t;return new Promise((o,s)=>{let i=n.querySelector(`script[src="${e}"]`);if(i)return o(i);let a=n.createElement("script");a.src=e,a.async=t.async===!0,a.type=t.type||"text/javascript",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${e}`))},n.head.appendChild(a)})}async function IE(e,t={}){let{window:r=globalThis}=t,{document:n=r.document}=t;return new Promise((o,s)=>{let i=n.querySelector(`link[href="${e}"]`);if(i)return o(i);let a=n.createElement("link");a.href=e,a.rel=t.rel||"stylesheet",a.type="text/css",a.media=t.media||"all",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${e}`))},n.head.appendChild(a)})}var b0,x0,v0,_0,w0,Cj=K(()=>{"use strict";b0=(e,t=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("script");i.type=n,i.async=t,i.src=e,i.addEventListener("load",a=>{o({status:!0})}),i.addEventListener("error",a=>{s(new Error({status:!1,message:`Failed to load the script ${e}`}))}),r.body.appendChild(i)}catch(i){s(i)}}),x0=(e,t=document,r="text/javascript")=>new Promise((n,o)=>{let s=t.createElement("script");s.type=r,s.src=e;let i=t.createElement("div");i.style.cssText="position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.8);z-index:9999;",t.body.appendChild(i),s.onload=()=>{console.log(`Successfully loaded: ${e}`),t.body.removeChild(i),n()},s.onerror=()=>{t.body.removeChild(i),o(new Error(`Failed to load: ${e}`))},t.body.appendChild(s)}),v0=(e,t=document,r,n="text/javascript")=>{let o=new window.XMLHttpRequest;if(o.open("GET",e,!1),o.send(),o.status===200){let s=t.createElement("script");s.type=n,s.text=o.responseText,t.body.appendChild(s),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${e}`)},_0=(e,t=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("link");i.rel="stylesheet",i.href=e,i.addEventListener("load",a=>{o({status:!0})}),r.head.appendChild(i)}catch(i){s(i)}}),w0=(e,t=!1,r=document,n="text/javascript",o="smbls-script")=>{try{let s=r.createElement("script");s.type=n,s.async=t,s.id=o,s.innerHTML=e,r.body.appendChild(s)}catch(s){console.warn(s)}}});function Aj(e,t){if(!t||typeof t!="object")return e;let r=o=>{if(!jE(o))return o;let s=t[o];return s?.src?s.src:o},n={...e};for(let[o,s]of Object.entries(n))typeof s=="string"?n[o]=r(s):Array.isArray(s)&&(n[o]=s.map(i=>typeof i=="string"?r(i):i));return n}function $u(e,t){if(!e||!t)return;let r=t.split("."),n=e;for(let o of r){if(n==null||typeof n!="object")return;n=n[o]}return n}function Ej(e,t,r){let n=(t.config||t.settings||{}).polyglot||t.polyglot,o=r?.lang||n?.defaultLang||"en",s=(n?.translations||{})[o]||{},i=r?.state||{},a={...e};for(let[l,c]of Object.entries(a))typeof c!="string"||!c.includes("{{")||(a[l]=c.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(u,d,f)=>{let p=d.trim();if(f==="polyglot")return s[p]??$u(s,p)??u;if(f==="getLocalStateLang")return $u(i,p+o)??u;let h=$u(i,p);return h!==void 0?h:s[p]??$u(s,p)??u}));return a}function aA(e){let t={...e};for(let[r,n]of Object.entries(t))if(typeof n=="function"){let o=n.toString(),s=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){t[r]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){t[r]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){t[r]=`{{ ${a[1]} }}`;continue}delete t[r]}else if(typeof n=="string"){let o=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){t[r]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){t[r]=`{{ ${s[1]} | polyglot }}`;continue}if(n.includes("=>")&&n.includes("s.")){let i=n.match(/s\.(\w+(?:\.\w+)+)/);if(i){t[r]=`{{ ${i[1]} }}`;continue}}}return t}function FE(e,t,r,{isProduction:n=!1,channel:o="production"}={}){let s=e.pages?.[t],i=j(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},l=aA(a),c=new Set(Object.keys(l)),u=e.app?.metadata||{},d=aA(u),f={};if(e.integrations?.seo?f={...e.integrations.seo,...d,...l}:Object.keys(d).length?f={...d,...l}:f={...l},!f.title){let g=e.name||e.key;g?n?f.title=g:o==="development"?f.title=`${g} / dev:symbo.ls`:o==="staging"?f.title=`${g} / staging:symbo.ls`:f.title=`${g} / symbo.ls`:f.title="Symbols demo"}f=Ej(f,e,r),f.title&&(c.has("title")||!f["og:title"])&&(c.has("og:title")||(f["og:title"]=f.title)),f.description&&(c.has("description")||!f["og:description"])&&(c.has("og:description")||(f["og:description"]=f.description)),f.title&&!f["twitter:title"]&&(f["twitter:title"]=f.title),f.description&&!f["twitter:description"]&&(f["twitter:description"]=f.description);let p=r?.actualPathname||t;if(f["og:url"]||f.url){let g=(f["og:url"]||f.url||"").replace(/\/$/,"");if(g&&p&&p!=="/"){let m=p.startsWith("/")?p:"/"+p;f["og:url"]=g+m}}f=Aj(f,e.files);let h=e.name||e.app?.metadata?.title||e.app?.name||"";for(let[g,m]of Object.entries(f))if(typeof m=="string"&&m.includes("{{")){let y=m.replace(/\{\{[^}]*\}\}/g,"").trim();y?f[g]=y:g==="title"?f[g]=h:delete f[g]}return f}var ot,lA,S0,jE,Oj=K(()=>{"use strict";Fe(),ot=e=>{if(e==null)return"";let t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.toString().replace(/[&<>"']/g,r=>t[r])},lA=e=>Object.entries(e||{}).filter(([t,r])=>r!==void 0).map(([t,r])=>`${t}="${ot(r)}"`).join(" "),S0=(e,t)=>(t||(e={...e,robots:"noindex"}),Object.entries(e).reduce((r,[n,o])=>{if(!o&&o!==0&&o!==!1)return r;if(n==="title")return r.push(`<title>${ot(o)}</title>`),r;if(n==="canonical")return r.push(`<link rel="canonical" href="${ot(o)}">`),r;if(n==="manifest")return r.push(`<link rel="manifest" href="${ot(o)}">`),r;if(n==="favicon"||n==="favicons"||n==="icon"||n==="icons")return(Array.isArray(o)?o:[o]).forEach(a=>{if(typeof a=="string")r.push(`<link rel="icon" href="${ot(a)}">`);else if(typeof a=="object"){let l=lA(a);/rel=/.test(l)?r.push(`<link ${l}>`):r.push(`<link rel="icon" ${l}>`)}}),r;if(n==="alternate")return(Array.isArray(o)?o:[o]).forEach(a=>{if(typeof a=="object"){let l=Object.entries(a).filter(([c,u])=>u!==void 0).map(([c,u])=>`${c}="${ot(u)}"`).join(" ");r.push(`<link rel="alternate" ${l}>`)}}),r;let s=(a,l,c="name")=>{if(typeof l=="string"||typeof l=="number"||typeof l=="boolean")r.push(`<meta ${c}="${ot(a)}" content="${ot(l)}">`);else if(Array.isArray(l))l.forEach(u=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")r.push(`<meta ${c}="${ot(a)}" content="${ot(u)}">`);else if(typeof u=="object"){let d=Object.entries(u).filter(([f,p])=>p!==void 0).map(([f,p])=>`${f}="${ot(p)}"`).join(" ");r.push(`<meta ${d}>`)}});else if(typeof l=="object"){let u=Object.entries(l).filter(([d,f])=>f!==void 0).map(([d,f])=>`${d}="${ot(f)}"`).join(" ");r.push(`<meta ${u}>`)}};if(n.startsWith("http-equiv:")){let a=n.replace("http-equiv:","");return s(a,o,"http-equiv"),r}if(n.startsWith("itemprop:")){let a=n.replace("itemprop:","");return s(a,o,"itemprop"),r}let i=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(a=>n.startsWith(a));if(i){let a=n.replace(i,"");return s(`${i.replace(":","")}:${a}`,o,i==="twitter:"||i==="DC:"||i==="DCTERMS:"?"name":"property"),r}if(n.startsWith("apple:")||n.startsWith("msapplication:")){let a=n.startsWith("apple:")?"apple-":"msapplication-",l=n.replace(/^apple:|^msapplication:/,"");return s(`${a}${l}`,o,"name"),r}return s(n,o),r},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">']).join(`
|
|
96
|
+
`)),jE=e=>typeof e=="string"&&e.length>0&&!e.startsWith("/")&&!e.startsWith("http")}),If,k0,Tj=K(()=>{"use strict";Fe(),If=(e,t)=>(U(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),k0=(e,t)=>(e=parseFloat(e),j(t)&&(t=Object.values(t)),If(e,t))});function Ma(e){let t=String(e||"").trim();if(!t)return{owner:fb,key:"",full:""};let r=null,n=t;if(t.includes("/")){let s=t.indexOf("/");r=t.slice(0,s),n=t.slice(s+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=fb);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function C0(e,t={}){return(t.provider||"kv")==="api"?cA(e,t):await Pj(e,t)||cA(e,t)}async function Pj(e,t={}){let r=t.kvBaseUrl||LE,n=t.env||"production",o=`${r}/kv/${encodeURIComponent(e)}?env=${n}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function cA(e,t={}){let r=t.apiBaseUrl||ME,{key:n}=Ma(e);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,s=await fetch(o,{method:"GET"});if(!s.ok)return null;let i=await s.json(),a=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(f=>{let{key:p}=Ma(f?.key);return p.toLowerCase()===n.toLowerCase()});if(!a?.id&&!a?._id)return null;let l=a.id||a._id,c=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,u=await fetch(c,{method:"GET"});if(!u.ok)return null;let d=await u.json();return d?.data||d||null}catch{return null}}async function DE(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async r=>{if(j(r))return r;if(R(r)){let{full:n}=Ma(r);if(!n)return null;try{let o=await C0(n,t);return o||console.warn(`[smbls] Shared library "${n}" not found`),o}catch(o){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,o.message),null}}return null}))).filter(Boolean)}var fb,LE,ME,ka,A0,Rj=K(()=>{"use strict";Fe(),fb="system",LE="https://smbls-kv.nika-980.workers.dev",ME="https://api.symbols.app",ka=(e,t)=>{for(let r in t)r in e?j(e[r])&&j(t[r])&&ka(e[r],t[r]):e[r]=t[r]},A0=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(j(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(j(n[o])&&j(e[o]))if(o==="designSystem")ka(e[o],n[o]);else for(let s in n[o])s in e[o]||(e[o][s]=n[o][s]);else o in e||(e[o]=n[o])}}}}),E0,O0,T0,id,P0,ad,R0,Ka,$j=K(()=>{"use strict";Fe(),E0=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn("Failed to copy text: ",t)}},O0=async e=>{try{let t=new Blob([e],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":t});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(t){console.error("Failed to copy JavaScript code: ",t)}},T0=e=>e.replace(/[^a-zA-Z0-9_]/g,""),id=e=>(typeof e!="string"&&(e=String(e||"")),e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(t,r){return r===0?t.toLowerCase():t.toUpperCase()}).replace(/\s+/g,"")),P0=e=>e&&e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),ad=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),R0=(e="")=>{if(typeof e!="string")return;let t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},Ka=e=>{if(U(e))return e;if(R(e))return e.split(" ");if(j(e))return Object.values(e);if(Pn(e))return[e]}}),$0,Ij=K(()=>{"use strict";$0=()=>{let e=document.styleSheets[0],t="";if(e)try{let r=e.cssRules||e.rules;for(let n=0;n<r.length;n++)t+=r[n].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return t}}),Zt,Lo,ld,cd,Fj=K(()=>{"use strict";Zt=e=>{let t=e&&e.src;if(!t||typeof t!="string")return null;let r=e.context;if(!r)return null;let n=r.assets&&r.assets[t]||r.files&&r.files[t];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},Lo=(e,{keepOneX:t=!0}={})=>{if(!Array.isArray(e)||!e.length)return"";let r=e.some(o=>typeof o.width=="number"),n=[];for(let o of e)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&t?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},ld=e=>{if(!e||!Array.isArray(e.variants))return"";let t=e.variants.filter(r=>r.format===e.type);return Lo(t,{keepOneX:!1})},cd=(e,t)=>{if(!e||typeof e!="object"||typeof e.src!="string")return[];if(!Array.isArray(e.variants)||!e.variants.length)return[{tag:"img",attr:{src:e.src,alt:t||""}}];let r=new Map;for(let a of e.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,l]of r)a!==e.type&&n.push({tag:"source",attr:{type:a,srcset:Lo(l,{keepOneX:!0})}});let o=r.get(e.type)||[],s=Lo(o,{keepOneX:!1}),i={src:e.src,alt:t||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}}),jj={};X(jj,{CDN_PROVIDERS:()=>Mt,DOMQL_EVENTS:()=>Yb,DOMQ_PROPERTIES:()=>Uo,ENV:()=>hx,HTML_TAGS:()=>Da,METHODS:()=>Ia,METHODS_EXL:()=>Zf,NODE_ENV:()=>Lt,OPTIONS:()=>sd,PACKAGE_MANAGER_TO_CDN:()=>Rf,PARSED_DOMQ_PROPERTIES:()=>Yf,PROPS_METHODS:()=>On,STATE_METHODS:()=>En,STATE_PROPERTIES:()=>Xb,SVG_TAGS:()=>Tx,TYPES:()=>la,UNIVERSAL_RESERVED_KEYS:()=>Pf,addCaching:()=>vf,addContext:()=>xf,addExtend:()=>Fx,addExtends:()=>Qe,addItemAfterEveryElement:()=>Db,addProtoToArray:()=>Gf,addRef:()=>mf,applyDependentState:()=>Qx,applyEvent:()=>Af,applyEventUpdate:()=>Ef,applyExtends:()=>Dx,applyProps:()=>Sa,arrayContainsOtherArray:()=>Tb,arraysEqual:()=>Mb,arrayzeValue:()=>Ka,buildImgSrcset:()=>ld,buildSourcesAndImg:()=>cd,cache:()=>n0,call:()=>AE,captureSnapshot:()=>u0,checkForStateTypes:()=>Xx,checkIfInherits:()=>Cf,checkIfStringIsInArray:()=>Vb,clone:()=>Jb,cloneAndMergeArrayExtend:()=>ma,cloneFunction:()=>DA,concatAddExtends:()=>Rx,copyJavaScriptToClipboard:()=>O0,copyStringToClipboard:()=>E0,createBasedOnType:()=>gf,createElement:()=>Kx,createElementExtends:()=>of,createExtends:()=>nd,createExtendsFromKeys:()=>La,createExtendsStack:()=>cf,createIfConditionFlag:()=>wx,createInheritedState:()=>Yx,createKey:()=>td,createNestedObject:()=>ix,createNestedObjectByKeyPath:()=>Jx,createObjectWithoutPrototype:()=>Ju,createParent:()=>yf,createPath:()=>bf,createProps:()=>od,createPropsStack:()=>pf,createRoot:()=>Gx,createScope:()=>t0,createSnapshotId:()=>ed,customDecodeURIComponent:()=>Kb,customEncodeURIComponent:()=>Gb,cutArrayAfterValue:()=>Fb,cutArrayBeforeValue:()=>Ib,debounce:()=>jA,debounceOnContext:()=>xx,decodeNewlines:()=>qb,deepClone:()=>et,deepContains:()=>ox,deepDefaults:()=>ka,deepDestringifyFunctions:()=>fa,deepExtend:()=>nf,deepMerge:()=>Qt,deepMergeExtends:()=>Xt,deepStringifyFunctions:()=>ca,defineSetter:()=>c0,destringifyGlobalScope:()=>Qb,detectHeightOnInit:()=>g0,detectInfiniteLoop:()=>ux,document:()=>me,encodeNewlines:()=>Hb,error:()=>Tf,excludeKeysFromObject:()=>dx,exec:()=>Ne,extendCachedRegistry:()=>$x,extendStackRegistry:()=>pa,extractArrayExtend:()=>ga,fetchLibraryData:()=>C0,fibonacciNumberByIndex:()=>m0,filterArrays:()=>Nb,filterArraysFast:()=>Bb,finalizeExtends:()=>uf,findClosestNumber:()=>If,findClosestNumberInFactory:()=>k0,findInheritedState:()=>kf,findKeyPosition:()=>Wb,flattenExtend:()=>jo,formatDate:()=>h0,generateHash:()=>ef,generateKey:()=>da,generateMetaTags:()=>S0,get:()=>fE,getCDNUrl:()=>$f,getCapitalCaseKeys:()=>BA,getCdnProviderFromConfig:()=>d0,getChildStateInKey:()=>Sf,getChildren:()=>hE,getContext:()=>vE,getCookie:()=>Ex,getDB:()=>EE,getEmotionStylesheet:()=>$0,getExtendsInElement:()=>jx,getExtendsStack:()=>ba,getExtendsStackRegistry:()=>rf,getFrequencyInArray:()=>Pb,getHashedExtend:()=>ha,getImportMapScript:()=>p0,getInObjectByPath:()=>cx,getLocalStorage:()=>LA,getNev:()=>bx,getPageMetadata:()=>FE,getParentStateInKey:()=>wf,getPath:()=>gE,getQuery:()=>OE,getRef:()=>pE,getRoot:()=>yE,getRootContext:()=>xE,getRootData:()=>bE,getRootState:()=>mE,getRootStateInKey:()=>_f,getSpreadChildren:()=>VA,global:()=>Ab,hasFunction:()=>Fo,hasHandlerPlugin:()=>qa,hasOwnProperty:()=>tx,inheritChildExtends:()=>af,inheritChildPropsExtends:()=>sf,inheritParentProps:()=>va,inheritRecursiveChildExtends:()=>lf,initProps:()=>Hx,is:()=>Yt,isArray:()=>U,isBoolean:()=>Gu,isContextComponent:()=>zA,isCyclic:()=>fx,isDOMNode:()=>st,isDate:()=>Xu,isDefined:()=>Bo,isDevelopment:()=>rd,isEmpty:()=>Yu,isEmptyObject:()=>rx,isEqualDeep:()=>Zu,isFunction:()=>F,isHtmlElement:()=>Wf,isLocal:()=>yx,isMethod:()=>TE,isMobile:()=>Cx,isNode:()=>Va,isNot:()=>Ob,isNotProduction:()=>Ha,isNull:()=>Ku,isNumber:()=>Pn,isObject:()=>j,isObjectLike:()=>oe,isPhoto:()=>y0,isProduction:()=>Vo,isStaging:()=>mx,isState:()=>Zx,isString:()=>R,isStringFunction:()=>_x,isTest:()=>Qu,isTesting:()=>gx,isUndefined:()=>Bt,isUniversallyReservedKey:()=>f0,isValidHtmlTag:()=>Px,joinArrays:()=>Ra,jointStacks:()=>Ix,keys:()=>s0,loadCssFile:()=>_0,loadJavascript:()=>w0,loadJavascriptFile:()=>b0,loadJavascriptFileEmbedSync:()=>v0,loadJavascriptFileSync:()=>x0,loadRemoteCSS:()=>IE,loadRemoteScript:()=>$E,log:()=>_E,logGroupIf:()=>kx,logIf:()=>Sx,lookdown:()=>lE,lookdownAll:()=>cE,lookup:()=>aE,lowercaseFirstLetter:()=>Wa,makeObjectWithoutPrototype:()=>nx,map:()=>Zb,mapStringsWithContextComponents:()=>ya,matchesComponentNaming:()=>An,memoize:()=>vx,merge:()=>it,mergeSharedLibraries:()=>A0,nextElement:()=>SE,normalizeLibraryKey:()=>Ma,objectToString:()=>ua,objectizeStringProperty:()=>xa,overwrite:()=>Jf,overwriteDeep:()=>Rn,overwriteShallow:()=>Qf,overwriteState:()=>e0,parse:()=>i0,parseDeep:()=>Of,pickupElementFromProps:()=>Nx,pickupPropsFromElement:()=>Mx,previousElement:()=>kE,propExists:()=>Ux,propertizeElement:()=>Bx,propertizeUpdate:()=>UA,remove:()=>uE,removeChars:()=>T0,removeCookie:()=>Ox,removeDuplicateProps:()=>_a,removeDuplicatesInArray:()=>$a,removeFromArray:()=>Rb,removeFromObject:()=>sx,removeNestedKeyByPath:()=>ax,removeValueFromArray:()=>qf,removeValueFromArrayAll:()=>jb,reorderArrayByValues:()=>Lb,replaceLiteralsWithObjectFields:()=>$A,replaceOctalEscapeSequences:()=>Ub,resolveAsset:()=>Zt,resolveHandler:()=>Fa,resolveSharedLibraries:()=>DE,returnValueAsText:()=>hf,runPluginHook:()=>ja,self:()=>Eb,setActiveRootState:()=>l0,setCookie:()=>Ax,setHashedExtend:()=>tf,setInObjectByPath:()=>lx,setLocalStorage:()=>MA,setNodeStyles:()=>o0,setProps:()=>dE,setPropsPrototype:()=>ff,spotByPath:()=>iE,srcsetFor:()=>Lo,stringIncludesAny:()=>Kf,stringToObject:()=>ex,swapItemsInArray:()=>$b,syncProps:()=>wa,toCamelCase:()=>id,toDashCase:()=>ad,toDescriptionCase:()=>R0,toTitleCase:()=>P0,toggleFullscreen:()=>RE,triggerEventOn:()=>zo,triggerEventOnUpdate:()=>r0,trimStringFromSymbols:()=>zb,unstackArrayOfObjects:()=>Hf,update:()=>Vx,updateProps:()=>qx,variables:()=>CE,verbose:()=>a0,warn:()=>wE,window:()=>se});var M=K(()=>{"use strict";px(),FA(),Fe(),Gr(),Ga(),za(),Uf(),oj(),sj(),Xf(),zf(),ij(),NA(),WA(),qA(),Lx(),cj(),uj(),Ua(),fj(),gj(),KA(),mj(),GA(),yj(),bj(),vj(),_j(),wj(),Sj(),kj(),Cj(),Oj(),Tj(),Rj(),$j(),Ij(),Fj()}),Dj=Cb((e,t)=>{var r=1e3,n=r*60,o=n*60,s=o*24,i=s*7,a=s*365.25;t.exports=function(f,p){p=p||{};var h=typeof f;if(h==="string"&&f.length>0)return l(f);if(h==="number"&&isFinite(f))return p.long?u(f):c(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function l(f){if(f=String(f),!(f.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(p){var h=parseFloat(p[1]),g=(p[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return h*a;case"weeks":case"week":case"w":return h*i;case"days":case"day":case"d":return h*s;case"hours":case"hour":case"hrs":case"hr":case"h":return h*o;case"minutes":case"minute":case"mins":case"min":case"m":return h*n;case"seconds":case"second":case"secs":case"sec":case"s":return h*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function c(f){var p=Math.abs(f);return p>=s?Math.round(f/s)+"d":p>=o?Math.round(f/o)+"h":p>=n?Math.round(f/n)+"m":p>=r?Math.round(f/r)+"s":f+"ms"}function u(f){var p=Math.abs(f);return p>=s?d(f,p,s,"day"):p>=o?d(f,p,o,"hour"):p>=n?d(f,p,n,"minute"):p>=r?d(f,p,r,"second"):f+" ms"}function d(f,p,h,g){var m=p>=h*1.5;return Math.round(f/h)+" "+g+(m?"s":"")}}),Lj=Cb((e,t)=>{function r(n){s.debug=s,s.default=s,s.coerce=d,s.disable=c,s.enable=a,s.enabled=u,s.humanize=Dj(),s.destroy=f,Object.keys(n).forEach(p=>{s[p]=n[p]}),s.names=[],s.skips=[],s.formatters={};function o(p){let h=0;for(let g=0;g<p.length;g++)h=(h<<5)-h+p.charCodeAt(g),h|=0;return s.colors[Math.abs(h)%s.colors.length]}s.selectColor=o;function s(p){let h,g=null,m,y;function b(...x){if(!b.enabled)return;let v=b,_=Number(new Date),S=_-(h||_);v.diff=S,v.prev=h,v.curr=_,h=_,x[0]=s.coerce(x[0]),typeof x[0]!="string"&&x.unshift("%O");let O=0;x[0]=x[0].replace(/%([a-zA-Z%])/g,(T,k)=>{if(T==="%%")return"%";O++;let D=s.formatters[k];if(typeof D=="function"){let te=x[O];T=D.call(v,te),x.splice(O,1),O--}return T}),s.formatArgs.call(v,x),(v.log||s.log).apply(v,x)}return b.namespace=p,b.useColors=s.useColors(),b.color=s.selectColor(p),b.extend=i,b.destroy=s.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(m!==s.namespaces&&(m=s.namespaces,y=s.enabled(p)),y),set:x=>{g=x}}),typeof s.init=="function"&&s.init(b),b}function i(p,h){let g=s(this.namespace+(typeof h>"u"?":":h)+p);return g.log=this.log,g}function a(p){s.save(p),s.namespaces=p,s.names=[],s.skips=[];let h=(typeof p=="string"?p:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let g of h)g[0]==="-"?s.skips.push(g.slice(1)):s.names.push(g)}function l(p,h){let g=0,m=0,y=-1,b=0;for(;g<p.length;)if(m<h.length&&(h[m]===p[g]||h[m]==="*"))h[m]==="*"?(y=m,b=g,m++):(g++,m++);else if(y!==-1)m=y+1,b++,g=b;else return!1;for(;m<h.length&&h[m]==="*";)m++;return m===h.length}function c(){let p=[...s.names,...s.skips.map(h=>"-"+h)].join(",");return s.enable(""),p}function u(p){for(let h of s.skips)if(l(p,h))return!1;for(let h of s.names)if(l(p,h))return!0;return!1}function d(p){return p instanceof Error?p.stack||p.message:p}function f(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return s.enable(s.load()),s}t.exports=r}),Mj=Cb((e,t)=>{e.formatArgs=n,e.save=o,e.load=s,e.useColors=r,e.storage=i(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let l;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(l=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(l[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%c"&&(d=u))}),l.splice(d,0,c)}e.log=console.debug||console.log||(()=>{});function o(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function s(){let l;try{l=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=process.env.DEBUG),l}function i(){try{return localStorage}catch{}}t.exports=Lj()(e);var{formatters:a}=t.exports;a.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}});var NE={};X(NE,{CSS_NATIVE_COLOR_REGEX:()=>In,CSS_UNITS:()=>F0,applyMediaSequenceVars:()=>jf,applySequenceGlobalVars:()=>H0,applySequenceVars:()=>pd,changeLightness:()=>Uj,colorStringToRgbaArray:()=>$n,convertSvgToSymbol:()=>aO,findHeadingLetter:()=>oO,findHeadings:()=>sO,generateSequence:()=>Hr,generateSequencePosition:()=>OD,generateSprite:()=>pb,generateSubSequence:()=>W0,getColorShade:()=>UE,getDefaultOrFirstKey:()=>j0,getFnPrefixAndValue:()=>Ya,getFontFace:()=>Gj,getFontFaceEach:()=>fd,getFontFaceEachString:()=>KE,getFontFaceString:()=>XE,getFontFormat:()=>qE,getRgbTone:()=>Ca,getSequenceValue:()=>U0,getSequenceValueBySymbols:()=>nO,getSequenceValuePropertyPair:()=>Ba,getSubratio:()=>tO,getSubratioDifference:()=>z0,hexToRgb:()=>Bj,hexToRgbArray:()=>BE,hexToRgba:()=>zj,hslToRgb:()=>WE,isCSSVar:()=>We,isGoogleFontsUrl:()=>D0,isResolvedColor:()=>Ho,isScalingUnit:()=>I0,mixTwoColors:()=>Nj,mixTwoRgb:()=>Wj,mixTwoRgba:()=>HE,numToLetterMap:()=>Ur,opacify:()=>db,parseColorToken:()=>Xa,resolveFileUrl:()=>gr,returnSubThemeOrDefault:()=>qj,rgbArrayToHex:()=>VE,rgbToHSL:()=>zE,rgbToHex:()=>Vj,setCustomFont:()=>M0,setCustomFontMedia:()=>Na,setFontImport:()=>L0,setInCustomFontMedia:()=>GE,setScalingVar:()=>V0,setSubScalingVar:()=>eO,setVariables:()=>TD,splitTopLevelCommas:()=>ud});var I0=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",F0=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"];M();var $n=e=>{if(e==="")return[0,0,0,0];if(e.toLowerCase()==="transparent")return[0,0,0,0];if(e[0]==="#")return e.length<7&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(e.length>4?e[4]+e[4]:"")),[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),e.length>7?parseInt(e.substr(7,2),16)/255:1];if(e.indexOf("rgb")===-1&&me&&se){let t=me.body.appendChild(me.createElement("fictum")),r="rgb(1, 2, 3)";if(t.style.color=r,t.style.color!==r){me.body.removeChild(t);return}if(t.style.color=e,t.style.color===r||t.style.color==="")return me.body.removeChild(t),[0,0,0,0];e=se.getComputedStyle(t).color,me.body.removeChild(t)}return e.indexOf("rgb")===0?(e.indexOf("rgba")===-1&&(e=`${e}, 1`),e.match(/[\.\d]+/g).map(t=>+t)):[0,0,0,0]},Nj=(e,t,r=.5)=>(e=$n(e),t=$n(t),HE(e,t,r)),Bj=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},BE=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},Vj=(e,t,r)=>"#"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),VE=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),zj=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${t})`},Wj=(e,t,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(e[o]+(t[o]-e[o])*r);return`rgb(${n})`},Uj=(e,t)=>{let[r,n,o]=t,s=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,s]},zE=(e,t,r)=>{let n=Math.max(e,t,r),o=n-Math.min(e,t,r),s=1-Math.abs(n+n-o-1),i=o&&(n==e?(t-r)/o:n==t?2+(r-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},WE=(e,t,r,n=t*Math.min(r,1-r),o=(s,i=(s+e/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],UE=(e,t)=>{let r=parseInt(e,16),n=(r>>16)+t;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+t;o>255?o=255:o<0&&(o=0);let s=(r&255)+t;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},HE=(e,t,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(e[o]+(t[o]-e[o])*r)}return`rgba(${n})`},db=(e,t)=>{let r=$n(e);if(!r){Ha()&&console.warn(e+" color is not rgba");return}return r[3]=t,`rgba(${r})`},We=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,In=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,Hj=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Xa=e=>{if(!R(e))return null;if(In.test(e))return{passthrough:e};if(We(e))return{cssVar:e};let t=e.match(Hj);if(!t)return null;let[,r,n,o]=t,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},Ho=e=>R(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),ud=e=>{let t=[],r="",n=0;for(let o of e){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){t.push(r),r="";continue}r+=o}return(r.length||!t.length)&&t.push(r),t},Ca=(e,t)=>{R(e)&&e.includes("rgb")&&(e=$n(e).join(", ")),R(e)&&(e=e.split(",").map(o=>parseFloat(o.trim()))),Pn(t)&&(t+="");let r=VE(e),n=t.slice(0,1);if(n==="-"||n==="+"){let o=UE(r,parseFloat(t));return BE(o).join(", ")}else{let[o,s,i]=e,a=zE(o,s,i),[l,c,u]=a;return WE(l,c,parseFloat(t)/100*255)}},qj=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e},gr=(e,t)=>{if(!e||!t)return null;try{return new URL(e),null}catch{}let r=t[e];return r?r.content&&r.content.src:null},j0=(e,t)=>{if(e[t])return e[t].value;if(e.default)return e[e.default].value;let r=Object.keys(e)[0];return r&&e[r]&&e[r].value},qE=e=>{if(typeof e!="string"||!e)return null;let t=e.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(t)?t:null},D0=e=>e&&(e.includes("fonts.googleapis.com")||e.includes("fonts.gstatic.com")),L0=e=>`@import url('${e}');`,GE=e=>`@font-face { ${e} }`,M0=(e,t,r,n={})=>{let o=(Array.isArray(t)?t:[t]).filter(s=>typeof s=="string"&&s).map(s=>{let i=qE(s),a=i?` format('${i}')`:"";return`url('${s}')${a}`}).join(`,
|
|
97
97
|
`);return`
|
|
98
98
|
font-family: '${e}';
|
|
99
99
|
font-style: ${n.fontStyle||"normal"};${r?`
|
|
100
100
|
font-weight: ${r};`:""}${n.fontStretch?`
|
|
101
101
|
font-stretch: ${n.fontStretch};`:""}${n.fontDisplay?`
|
|
102
102
|
font-display: ${n.fontDisplay};`:""}
|
|
103
|
-
src: ${o};`},
|
|
104
|
-
}`,Cd=(e,t,r)=>Object.keys(t).map(n=>{let{url:o,fontWeight:s,fontStyle:i,fontDisplay:a,fontStretch:l}=t[n],c=Array.isArray(o)?o.map(u=>yr(u,r)||u):yr(o,r)||o;return $x(e,c,s,{fontStyle:i,fontDisplay:a,fontStretch:l})}),N5=e=>Object.keys(e).map(t=>Cd(t,e[t].value)),E2=(e,t,r)=>{if(t&&t.isVariable){let o=yr(t.url,r)||t.url;return Px(o)?Rx(o):Va(e,o,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return Cd(e,t,r).map(A2);let n=Array.isArray(t.url)?t.url.map(o=>yr(o,r)||o):yr(t.url,r)||t.url;return Va(e,n,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},T2=(e,t)=>Object.keys(e).map(r=>E2(r,e[r].value,t));D();D();D();var O2={};$(O2,{animation:()=>a3,breakpoints:()=>s3,class:()=>p3,color:()=>X5,devices:()=>i3,document:()=>o3,font:()=>H5,fontFace:()=>U5,fontFamily:()=>V5,fontFamilyTypes:()=>q5,gradient:()=>Y5,grid:()=>d3,icons:()=>e3,media:()=>G5,reset:()=>h3,semanticIcons:()=>t3,sequence:()=>Ad,shadow:()=>Q5,spacing:()=>Z5,svg:()=>l3,svgData:()=>c3,templates:()=>u3,theme:()=>J5,timing:()=>n3,typography:()=>P2,unit:()=>z5,vars:()=>g3});var Ad={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4},z5={default:"em"},W5={browserDefault:16,base:16,type:"font-size",ratio:Ad["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},P2=W5,H5={},V5={},q5={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},U5={},G5={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"},K5={base:P2.base,type:"spacing",ratio:Ad.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},Z5=K5,X5={},Y5={},J5={},Q5={},e3={},t3={},r3={default:150,base:150,type:"timing",ratio:Ad["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},n3=r3,o3={},s3={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},i3={screenXXL:[2560,1440],screenXL:[2240,1260],screenL:[1920,1024],screenM:[1680,1024],screenS:[1440,720],tabletL:[1366,926],tabletM:[1280,768],tabletS:[1024,768],mobileL:[768,375],mobileM:[560,768],mobileS:[480,768],mobileXS:[375,768]},a3={},l3={},c3={},u3={},f3={},d3=f3,p3={},h3={},g3={},HT={},VT={},qu=O2,Ju={},R2=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in qu){let t=e.toLowerCase();Ju[t]=qu[e];let r=R2(t);r!==t&&(Ju[r]=qu[e]),t!==e&&(Ju[e]=qu[e])}var Ix={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:HT,cssMediaVars:VT,CSS_VARS:HT,CSS_MEDIA_VARS:VT,_scratchConfig:!0,...Ju},m3=rt(Ix),Gf={active:"0",0:Ix};var Pa=[],y3=e=>{e&&e._scratchConfig&&Pa.push(e)},b3=()=>{Pa.pop()},U=e=>Pa.length?Pa[Pa.length-1]:Gf[e||Gf.active]||Ix,v3=e=>{if(B(e))return Gf.active="1",Gf[1]=tr(e,rt(m3)),e};var Gr={"-6":"U","-5":"V","-4":"W","-3":"X","-2":"Y","-1":"Z",0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T"},jx=(e,t)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=e;t.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},t.scales[r]=s;let l=$2.has(t.unit)?"rem":t.unit;t.vars[n]=s+l},nl=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},$2=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Fx=(e,t)=>{let{base:r,type:n,unit:o}=t,s=$2.has(o)?"rem":o,i=(Ex(s)?1:r)+s;if(e===0)return i;let a="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-")),l=`${a}-ratio`;if(e>0){let c=Gr[e-1];return`calc(var(${a}-${c}) * var(${l}))`}if(e<0){let c=Gr[e+1],u=Math.abs(e),d=Math.pow(F2,2*u),f=Gr[u];return f?`max(calc(var(${a}-${c}) / var(${l})), calc(var(${a}-${f}) / ${d.toFixed(4)}))`:`calc(var(${a}-${c}) / var(${l}))`}},I2=(e,t,r,n)=>{let{type:o}=n,s=e===2&&t.length===2?e+1:e,i=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${i+s}))`},Dx=(e,t)=>{let r=(e*t-e)/1.618,n=e*t-r,o=e+r,s=(n+o)/2;return[n,s,o]},j2=(e,t)=>Dx(e,t).map(r=>r/e),Lx=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,l=~~(o*s)-~~o,c,[u,d,f]=Dx(o,s);l>16?c=[u,d,f]:c=[u,f],c.forEach((h,p)=>{let g=~~(h/n*1e3)/1e3,m=i+(p+1),y=a+(p+1)/10,b=I2(p+1,c,i,t),v={key:r+(p+1),variable:m,value:h,scaling:g,scalingVariable:b,index:y};jx(v,t)})},F2=1.618,x3=(e,t,r)=>{if(e>=0)return t*Math.pow(r,e);let n=Math.abs(e),o=t*Math.pow(r,e),s=t*Math.pow(r,n)/Math.pow(F2,2*n);return Math.max(o,s)},Kr=e=>{let{type:t,base:r,ratio:n,range:o,subSequence:s}=e,i=Math.abs(o[0])+Math.abs(o[1]),a="--"+(e.varPrefix?e.varPrefix+"-":"")+(t&&t.replace(".","-"))+"-";for(let l=0;l<=i;l++){let c=o[1]-l,u=Gr[c],d=x3(c,r,n),f=~~(d/r*100)/100,h=a+u,p=Fx(c,e),g={key:u,variable:h,value:d,base:r,scaling:f,scalingVariable:p,ratio:n,index:c};jx(g,e),s&&Lx(g,e)}return e},w3=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=I(t)?t:Gr[t],a=I(t)?Object.entries(Gr).find(([,p])=>p===t)?.[0]:t;if(!i)return console.warn(`Position ${t} is out of range in numToLetterMap`),null;let l={sequence:{},scales:{},vars:{},...e},c=n*Math.pow(o,a),u=~~(c/n*100)/100,d="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,f=Fx(a,e),h={key:i,variable:d,value:c,base:n,scaling:u,scalingVariable:f,ratio:o,index:a};return jx(h,l),s&&Lx(h,l),l},Bx=(e="A",t)=>{let r=U(),{unit:n}=r;if(I(e)&&Ge(e))return`var(${e})`;let{sequence:o,unit:s=n.default,useVariable:i}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(Tx.some(m=>e.includes(m))||!l||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(e))return e;let c=`--${t.varPrefix?t.varPrefix+"-":""}${_d(t.type.replace(".","-"))}-`,u=e.toUpperCase(),d=u.slice(0,1)==="-"?"-":"",f=d?u.slice(1):u,h="";f.includes("_")&&(h="_"+f.split("_")[1].toLowerCase(),f=f.split("_")[0]);let p=m=>a.test(m)?`var(${c}${m}${h})`:m;if(f.includes("+")){let[m,y]=f.split("+"),b=`${p(m)} + ${p(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("*")){let[m,y]=f.split("*"),b=`${p(m)} * ${p(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("-")){let[m,y]=f.split("-"),b=`${p(m)} - ${p(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}if(!o[f]&&f.length===2&&(r.verbose&&console.warn(f,"- value is not found because `subSequence` is set to false"),f=f.slice(0,1)),i||r.useVariable){let m=`var(${c}${f}${h})`;return d?`calc(${m} * -1)`:m}let g=o?o[f]:null;return g?s==="ms"||s==="s"?d+g.val+s:d+g.scaling+s:console.warn("can't find",o,f)},D2=(e,t)=>{if(!["+","-","*","/",","].filter(n=>e.includes(n+" ")).length)return e;let r=/(\s*[+\-*/,]\s*)/;return e.split(r).map(n=>{let o=n.trim();return!o||["+","-","*","/",","].includes(o)?n:Bx(o,t)}).join("")},qa=(e,t,r,n)=>{if(typeof e!="string")return U().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let o=nl(e);n=o[0],e=o[1]}return["+","-","*","/",","].filter(o=>e.includes(o+" ")).length?e=D2(e,r):e=Bx(e,r),{[t]:n?`${n}(${e})`:e}},L2=(e,t)=>Gr[e-t],B2=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=L2(t,o);return r[s]})};D();var S3=(e,t)=>{let r=U(),{cssVars:n}=r;oe(e.value)||(n[e.var]=e.value)},Mx=(e,t,r)=>{let n=U(),{unit:o}=n,s=t.unit||o.default,{base:i,ratio:a,type:l}=t,c="--"+(t.varPrefix?t.varPrefix+"-":"")+(l&&l.replace(".","-"));e[`${c}-base`]=i,e[`${c}-unit`]=s;let u=`${c}-ratio`;e[u]=a;let[d,f,h]=j2(i,a);e[`${c}-sub-ratio-1`]=`calc(var(${c}-ratio) * ${d/a})`,e[`${c}-sub-ratio-2`]=`calc(var(${c}-ratio) * ${f/a})`,e[`${c}-sub-ratio-3`]=`calc(var(${c}-ratio) * ${h/a})`},M2=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Ed=(e,t={})=>{let r=U(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=M2.has(i)?"rem":i,{mediaRegenerate:l,sequence:c,scales:u}=e;l||Mx(s,e,t);for(let d in c){let f=c[d],h=(e.type===o.type?c[d].val:u[d])+a;if(!l){s[f.variable+"_default"]=h,s[f.variable]=f.scalingVariable;continue}t.useDefault===!1?s[f.variable]=h:(s[f.variable+"_default"]=h,s[f.variable]=`var(${f.variable+"_default"})`)}},Kf=(e,t,r={})=>{let n=U(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=M2.has(c)?"rem":c,{mediaRegenerate:d}=e,{sequence:f,scales:h}=l,p=s[a];if(!p&&n.verbose&&console.warn("Can't find media query ",p),!d){let g=i[`@media ${p}`];g||(g=i[`@media ${p}`]={}),Mx(g,l,r);let m=e.unit||o.default;if(u!==m&&f)for(let y in f){let b=f[y],v=h[y]+u;g[b.variable+"_default"]=v,g[b.variable]=v}return}for(let g in f){let m=f[g],y=(Ex(u)?h[g]:f[g].val)+u;!p&&n.verbose&&console.warn("Can't find query ",p);let b=i[`@media ${p}`];b||(b=i[`@media ${p}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};D();var _3=Xa(),a0=e=>{let t=U(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},k3=e=>{let t=e&&(e.default||e);if(!I(t))return _3&&console.warn("parseRootAttributes:",t,"is not a string"),{};let r=t.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let n=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return n?n.reduce((o,s)=>{let[i,a]=s.split("=");return o[i]=a.replace(/['"]/g,""),o},{}):{}},C3=(e,t)=>{let r=[];if(e.replace(/id="([^"]*)"/g,(o,s)=>(r.push(s),o)),!r.length)return e;let n=e;for(let o of r){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${t}-${o}`;n=n.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return n},N2=(e,t)=>{let r=k3(t),{width:n,height:o}=r,s=r.viewBox||`0 0 ${n||24} ${o||24}`,i=C3(t,e).replace("<svg",`<symbol id="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="${s}"`);return i=i.replace(/width="[^"]*"/,""),i=i.replace(/height="[^"]*"/,""),i=i.replace("</svg","</symbol"),i=T3(i),i},A3="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",E3=new RegExp(`<(${A3})\\b([^>]*?)\\s*/>`,"g"),T3=e=>e.replace(E3,"<$1$2></$1>"),z2={};$(z2,{appendSVGSprite:()=>rP,appendSvgIconsSprite:()=>oP,applyDocument:()=>tP,applyHeadings:()=>G2,applyReset:()=>iP,applySpacingSequence:()=>Y2,applyTimingSequence:()=>eP,applyTypographySequence:()=>K2,checkIfBoxSize:()=>X2,getColor:()=>be,getFontFamily:()=>q2,getFontSizeByKey:()=>Z2,getMediaColor:()=>lt,getMediaTheme:()=>Zr,getShadow:()=>Q2,getSpacingBasedOnRatio:()=>Nn,getSpacingByKey:()=>Ue,getTheme:()=>Nx,getTimingByKey:()=>mr,getTimingFunction:()=>Fn,runThroughMedia:()=>U2,setColor:()=>Ra,setFont:()=>V2,setFontFamily:()=>u0,setGradient:()=>$a,setMediaTheme:()=>zx,setSVG:()=>Hx,setShadow:()=>Ia,setSvgIcon:()=>nP,setTheme:()=>W2,splitSpacedValue:()=>J2});D();var be=(e,t,r)=>{let n=r||U();if(!I(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(Ge(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,s,i;if(q(e))[o,s,i]=e;else{let d=rl(e);if(!d){let{color:f,gradient:h}=n,p=h[e]||f[e];return p?n.useVariable?`var(${p.var})`:p.value:e}if(d.passthrough)return d.passthrough;if(d.cssVar)return`var(${d.cssVar})`;o=d.name,s=d.alpha,i=d.tone}let{color:a,gradient:l}=n,c=a[o]||l[o];if(!c)return n.verbose&&console.warn("Can't find color ",o),e;t&&(c[t]?c=c[t]:n.verbose&&console.warn(e," - does not have ",t));let u=c.rgb;return u?(i&&!c[i]&&(u=Oa(u,i),c[i]={rgb:u,var:`${c.var}-${i}`}),c[i]&&(u=c[i].rgb),s?`rgba(${u}, ${s})`:i?`rgba(${u}, 1)`:n.useVariable?`var(${c.var})`:`rgb(${u})`):n.useVariable?`var(${c.var})`:c.value},lt=(e,t,r)=>{let n=r||U();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!I(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(Ge(e))return`var(${e})`;let o;if(q(e))o=e[0];else{let c=rl(e);if(!c)return e;if(c.passthrough)return c.passthrough;if(c.cssVar)return`var(${c.cssVar})`;o=c.name}let{color:s,gradient:i}=n,a=s[o]||i[o],l=B(a);if(l&&a.value)return be(e,`@${t}`,r);if(l){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return be(e,`@${t}`,r);{let c={};for(let u in a){if(u.charCodeAt(0)!==64)continue;let d=n.media[u.slice(1)];if(!d)continue;let f="@media "+(d==="print"?`${d}`:`screen and ${d}`);c[f]=be(e,u,r)}return c}}else return n.verbose&&console.warn("Can't find color",e),e},Ra=(e,t,r)=>{let n=U();if(I(e)&&Ge(e)){let p=e.slice(2);if(e=be(p),!(e.includes("rgb")||e.includes("var")||e.includes("#"))){let g=p.split(" "),m=n.color[g[0]];if(m&&!m.value&&!m.rgb&&(I(m)||q(m)||B(m))&&(n.color[g[0]]=Ra(m,g[0]),m=n.color[g[0]]),m&&m.value){let y=m.rgb,b=g[1]!==void 0?g[1]:"1",v=g[2];v&&(y=Oa(y,v)),e=`rgba(${y}, ${b})`}else{let y=g[2],b=g[1]!==void 0?g[1]:"1";if(y)try{let v=Mn(g[0]);v&&v.length>=3?e=`rgba(${Oa(v.slice(0,3).join(", "),y)}, ${b})`:e=g[0]}catch{e=g[0]}else e=g[0]}}}if(q(e)&&(e={"@light":e[0],"@dark":e[1]}),B(e)){let p={};for(let g in e)p[g]=Ra(e[g],t,g.slice(0,1)==="@"?g.slice(1):g);if(n.useVariable){let g=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`,m,y={};for(let b in p){if(b.charCodeAt(0)!==64)continue;let v=b.slice(1),x=p[b],w=x&&(x.value||x);!w||typeof w!="string"||(y[v]=w,(v==="light"||m===void 0)&&(m=w))}if(m!==void 0){n.cssVars[g]=m,n.cssMediaVars||(n.cssMediaVars={});for(let b in y){let v=`[data-theme="${b}"]`;if(n.cssMediaVars[v]||(n.cssMediaVars[v]={}),n.cssMediaVars[v][g]=y[b],b==="light"||b==="dark"){let x=`@media (prefers-color-scheme: ${b})`;n.cssMediaVars[x]||(n.cssMediaVars[x]={}),n.cssMediaVars[x][g]=y[b]}}p.var=g}}return p}let o=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),s=e.value||e;if(I(s)&&s.includes(".")&&!s.includes("(")){let[p,g]=s.split("."),m=n.color[p];m&&m.rgb&&(s=`rgba(${m.rgb}, ${parseFloat("0."+g)||1})`)}if(I(s)&&!s.includes("(")&&!s.startsWith("#")){let p=rl(s);if(p&&p.name&&!p.passthrough&&!p.cssVar){let g=n.color[p.name];g&&!g.value&&!g.rgb&&(I(g)||q(g)||B(g))&&(n.color[p.name]=Ra(g,p.name));let m=n.color[p.name];if(m&&m.rgb){let y=m.rgb;p.tone&&(y=Oa(y,p.tone));let b=p.alpha?parseFloat(p.alpha):1;s=`rgba(${y}, ${b})`}}}let i=Mn(s),[a,l,c,u=1]=i,d=parseFloat(u.toFixed(2)),f=`${a}, ${l}, ${c}`,h=`rgba(${f}, ${d})`;return n.useVariable&&(n.cssVars[o]=h),{var:o,rgb:f,alpha:d,value:h}},$a=(e,t,r)=>{let n=U();if(I(e)&&Ge(e)&&(e=be(e.slice(2))),q(e))return{"@light":$a(e[0],t,"light"),"@dark":$a(e[0],t,"dark")};if(B(e)){let s={};for(let i in e)s[i]=$a(e[i],t,i.slice(0,1)==="@"?i.slice(1):i);return s}let o=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${t}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[o]=e.value||e),{var:o,value:e.value||e}};D();var O3=new Set(["black","white","red","green","blue","yellow","orange","purple","pink","brown","gray","grey","cyan","magenta","lime","olive","navy","teal","aqua","maroon","silver","fuchsia","transparent","currentColor","currentcolor","inherit","initial","unset","none","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),qT=["color","Color","background","Background","fill","Fill","stroke","Stroke"],P3=e=>{for(let t=0;t<qT.length;t++)if(e.includes(qT[t]))return!0;return!1},Td=e=>{let t={},{state:r,media:n,helpers:o,...s}=e;return Object.keys(s).map(i=>{let a=["color","Color","background","border"].some(l=>i.includes(l));return t[i]=a?be(e[i]):e[i]}),t},ca=e=>(e.value||(e.value=Td(e)),e.value),Nx=(e,t)=>{let r=U();if(r.useVariable)return Zr(e,t);let n=r.theme;if(I(e)){let[o,s]=e.split(" "),i=n[o];if(i){if(!s&&!t)return ca(i);e=[o,s||t]}}if(oe(e)&&e[1]){let o=e[0],s=e[1],{helpers:i,media:a,state:l}=n[o];if(a&&a[s])return ca(a[s]);if(i&&i[s])return ca(i[s]);if(l&&l[s])return ca(l[s])}else if(B(e))return Td(e)},R3=(e,t,r)=>{if(B(t))e.variants.inverse.value=Td(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},$3=(e,t,r,n)=>{let o=Nx(r);n[`&:${t}`]=o,B(r)&&!r.value&&(r.value=o)},I3=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return $3(e,n,o,t),e}),e):void 0},j3=(e,t,r,n)=>{let o=Nx(r);n[`@media (prefers-color-scheme: ${t})`]=o,B(r)&&!r.value&&(r.value=o)},F3=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return(n==="dark"||n==="light")&&j3(e,n,o,t),n==="inverse"&&R3(e,o,t),e}),e):void 0},D3=(e,t)=>{let r=U(),{helpers:n}=e;return n?(Object.keys(n).map(o=>{let s=n[o];return I(s)?n[o]=r.theme[s]:ca(n[o]),e}),e):void 0},W2=(e,t)=>{let r=U();if(r.useVariable)return zx(e,t);let{state:n,media:o,helpers:s}=e,i=Td(e,t),a=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return I3(e,i),F3(e,i),D3(e,i),{var:a,value:i,state:n,media:o,helpers:s}},l0=(e,t,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let c in e)if(e[c])for(let u of Object.keys(e[c]))a.add(u);let l=new Set;for(let c of a){let u=c.slice(0,1);if(!(u==="@"||u==="."||u===":")&&P3(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let h=be(f,`@${d}`);h!==void 0&&I(h)&&/^[a-z][a-zA-Z]+$/.test(h)&&!O3.has(h)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>oe(f?.[c]));if(u==="."&&d){let f=c.slice(1),h={};for(let p in e)oe(e[p]?.[c])&&(h[p]=e[p][c]);i[c]=l0(h,`${t}-${f}`,r)}else if(u===":"&&d){let f=c.replace(/^:+/,""),h={};for(let p in e)oe(e[p]?.[c])&&(h[p]=e[p][c]);i[c]=l0(h,`${t}-${f}`,r)}else if(u!=="@"&&u!=="."&&u!==":"){let f=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}-${c}`,h=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,p;for(let g in e){if(l.has(g))continue;let m=e[g]?.[c];if(m===void 0)continue;let y=be(m,`@${g}`);if(y===void 0)continue;(h&&g===h||!h&&(g==="light"||p===void 0))&&(p=y);let b=`[data-theme="${g}"]`;if(o[b]||(o[b]={}),o[b][f]=y,g==="dark"||g==="light"){let v=`@media (prefers-color-scheme: ${g})`;o[v]||(o[v]={}),o[v][f]=y}}p!==void 0&&(n[f]=p),i[c]=`var(${f})`,i[`.${c}`]={[c]:i[c]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},zx=(e,t,r,n)=>{let o=U(),{cssVars:s}=o,i={value:e},a=!r&&!n;if(oe(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith("@")&&oe(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=l0(l,t,o);Object.assign(i,c)}}for(let l in e){let c=l.slice(0,1),u=e[l];if(c==="@"||c===":"||c==="."){let d=c==="@"&&l;i[l]=zx(u,t,l,n||d)}else if(!a){let d=be(u,n),f=[...new Set([n,r].filter(g=>g).map(g=>g.slice(1)))],h=f.length?"-"+f.join("-"):"",p=`--${o.varPrefix?o.varPrefix+"-":""}theme-${t}${h}-${l}`;o.useVariable?(o.useThemeSuffixedVars&&(s[p]=d),i[l]=`var(${p})`):i[l]=d,i[`.${l}`]={[l]:i[l]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(I(e)&&Ge(e)){let l=o.theme[e.slice(2)];return Zr(l,n)}return i},c0=e=>{let t=U(),r={};for(let n in e){let o=n.slice(0,1);if(oe(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=c0(e[n]):o==="."&&(r[`&${n}`]=c0(e[n]))}else r[n]=e[n]}return r},H2=(e,t)=>{let r=t.shift();return e[r]?H2(e[r],t):e},UT=(e,t)=>q(t)?H2(e,t):I(t)&&e[t]?e[t]:e,Zr=(e,t)=>{let r=U();if(I(e)&&Ge(e)&&(e=Zr(e.slice(2))),!e||!I(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=q(e)?e:e.split(" "),s=r.theme[n];return s&&o.length?s=UT(s,o):s&&t&&(s=UT(s,t)),c0(s)};D();D();var V2=(e,t)=>{let r=U(),n=`--font-${t}`;if(!e||q(e)&&!e[0])return;let o;if(e.isVariable){let s=yr(e.url,r.files)||e.url;Px(s)?o=Rx(s):o=Va(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=Cd(t,e,r.files);else{let s=Array.isArray(e.url)?e.url.map(i=>yr(i,r.files)||i):yr(e.url,r.files)||e.url;o=Va(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},q2=(e,t)=>{let r=U(),{fontFamily:n}=r;return Ox(t||n,e)},u0=(e,t)=>{let r=U(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),B(s)&&(s=Qa(s));let a=`--font-family-${t}`,l=`${s.join(", ")}, ${o[i]}`;return{var:a,value:l,arr:s,type:i}};D();var U2=e=>{let t=U(),{typography:r,media:n}=t;for(let o in e){let s=o.slice(0,1)==="@",i=e[o];if(!s)continue;let{mediaRegenerate:a}=e,l=o.slice(1),{type:c,base:u,ratio:d,range:f,subSequence:h,h1Matches:p,unit:g}=e;ct(i,{type:c,base:u,ratio:d,range:f,subSequence:h,h1Matches:p,unit:g});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||g,b=!i.unit&&m.has(g)?"rem":y,v=n[l],x="@media "+(v==="print"?`${v}`:`screen and ${v}`);if(r.templates[x]={fontSize:i.base/r.browserDefault+b},!a){ct(i,{sequence:{},scales:{},vars:{}}),Kr(i),Kf(e,o);continue}ct(i,{sequence:{},scales:{},templates:{},vars:{}}),Kr(i),Kf(e,o)}},G2=e=>{let t=U();if(e.h1Matches){let r=e.unit,n=B2(e),{templates:o}=e;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:t.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:e.lineHeight,letterSpacing:a?a.letterSpacing:e.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},K2=()=>{let e=U(),{typography:t}=e;Kr(t),G2(t),Ed(t),U2(t)},Z2=e=>{let t=U(),{typography:r}=t;return qa(e,"fontSize",r)};D();D();var L3=e=>{for(let t in e){let r=e[t];if(t.slice(0,1)!=="@")continue;let{type:n,base:o,ratio:s,range:i,subSequence:a,h1Matches:l,unit:c}=e;ct(r,{type:n,base:o,ratio:s,range:i,subSequence:a,h1Matches:l,unit:c,sequence:{},scales:{},templates:{},vars:{}}),Kr(r),Kf(e,t)}},X2=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},Y2=()=>{let e=U(),{spacing:t}=e;Kr(t),Ed(t),L3(t)},B3=e=>{let t=U(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:Kr(e)},Ue=(e,t="padding",r,n)=>{let o=B3(r);if(I(e)&&!n&&e.includes("(")){let i=nl(e);n=i[0],e=i[1]}let s=n?[e]:Qa(e);if(q(s)){if(s.length>1){let i="";t==="borderWidth"&&(t="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},l=(c,u)=>qa(s[u],t+c+i,o,n);return a[s.length].map((c,u)=>l(c,u))}return qa(e,t,o,n)}},Nn=(e,t,r,n)=>{let o=U(),{spacing:s}=o,i=r||e[t];if(!n&&I(i)&&i.includes("(")){let a=nl(i);n=a[0],i=a[1]}if(e.spacingRatio){let a=applyCustomSequence(e);return Ue(i,t,a,n)}return Ue(i,t,s,n)},J2=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=Tx.some(s=>e.includes(s));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return e.split(",").map(r=>r.trim()).map(t).join(",").split(" ").map(t).join(" ")};D();var Ia=(e,t,r,n)=>{let o=U();if(q(e))return{"@light":Ia(e[0],t,"light"),"@dark":Ia(e[1],t,"dark")};if(B(e)){let i={};for(let a in e)i[a]=Ia(e[a],t,a.startsWith("@")?a.slice(1):a);return i}I(e)&&!zn.test(e)&&(e=kd(e).map(i=>(i=i.trim(),i.split(/\s+/).map(a=>{if(a=a.trim(),!a)return"";if(a.startsWith("--"))return`var(${a})`;let l=be(a);if(Jo(l))return l;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let c=Ue(a,"shadow");return c&&c.shadow?c.shadow:a}).join(" "))).join(", "));let s=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${t}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[s]=e),{var:s,value:e}},Q2=(e,t)=>{let r=U();if(t||(t=r.globalTheme),!I(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(Ge(e))return`var(${e})`;let[n]=q(e)?e:e.split(" "),o=r.shadow[n],s=B(o);if(!o)return r.verbose&&console.warn("Can't find color ",n),e;if(t){if(o[t])return o[t].value;r.verbose&&console.warn(e," - does not have ",t)}if(s&&o.value)return o.value;if(s){let i={};for(let a in o){let l=r.media[a.slice(1)],c="@media "+(l==="print"?`${l}`:`screen and ${l}`);i[c]=o.value}return i}return r.verbose&&console.warn("Can't find color",e),e};D();var eP=()=>{let e=U(),{timing:t}=e;Kr(t),Ed(t)},Fn=e=>{let t=U(),{timing:r}=t;return r[e]||r[Sd(e)]||e},mr=(e,t="timing")=>{let r=U(),{timing:n}=r;return qa(e,t,n)};D();var tP=()=>{let e=U(),{document:t,fontFamily:r,theme:n,typography:o}=e;return ct(t,{theme:n.document,fontFamily:Ox(r),fontSize:o.base,lineHeight:o.lineHeight})};D();var Wx={document:ye},Hx=(e,t)=>{let r=U();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?N2(t,e):e},rP=(e,t=Wx)=>{let r=U(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];sP(n,t)},nP=(e,t)=>{let r=U();return r.useIconSprite&&!r.semanticIcons?.[t]?Hx(e,t):e},oP=(e,t=Wx)=>{let r=U(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];sP(n,t)},Gb=(e,t={isRoot:!0})=>{if(!e||!e.createElementNS)return;let r=e.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},M3=(e,t)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,o=new r().parseFromString(n,"image/svg+xml");return o.querySelector("parsererror")?null:o.documentElement}return null},GT=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},sP=(e,t=Wx)=>{let r=U(),n=t.document||ye;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),a0(e);let o=n.querySelector("#svgSprite"),s=a0(e),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=M3(n,s);if(o)if(a)GT(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let l=Gb(n,{isRoot:!1});l.innerHTML=s,o.append(...l.children)}else if(a){let l=Gb(n);l&&l.nodeType&&(GT(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let l=Gb(n);l&&l.nodeType&&(l.innerHTML=s,n.body.prepend(l))}};D();var iP=(e={})=>{let t=U(),{reset:r,typography:n,document:o}=t;if(r){if(r[":root"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?Zr("document"):{},...c.body},l.h1=c.h1,l.h2=c.h2,l.h3=c.h3,l.h4=c.h4,l.h5=c.h5,l.h6=c.h6}let{body:s,...i}=n.templates,a=t.useDocumentTheme?Zr("document"):{};if(r.html&&Bn(r.html,a),n.unit){let{media:l}=t;for(let c in n){if(c.charAt(0)!=="@")continue;let u=n[c];if(!u||u.unit===n.unit||!u.unit)continue;let d=u.unit,f=u.base||n.base,h=u.browserDefault||n.browserDefault,p=c.slice(1),g=l[p];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=f/h+d}}return tr(ct(r,e),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+t.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}})}};D();var N3=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),z3=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),W3=e=>N3.has(e),Rn=e=>{let t=e+"";if(zn.test(t))return t;let r=t.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?t:t.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(Ge(n))return`var(${n})`;if(W3(n)||/^\d/.test(n)||n==="0")return n;let o=be(n);if(Jo(o))return o;let s=Ue(n,"border");return s&&s.border?s.border:n}).join(" ")},H3=e=>zn.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(Ge(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let r=be(t);return Jo(r)?r:t}).join(" "),V3=(e,t)=>Q2(e,t),KT=(e,t)=>zn.test(e)?e:kd(e).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(Ge(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=be(n);if(Jo(o)){let i=lt(n,t);return B(i)?Object.values(i).filter(a=>a.includes(": "+t))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=Ue(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),aP=(e,t)=>{let r=e.indexOf("(");if(r===-1)return e;let n=e.slice(0,r+1),o=e.slice(r+1,e.lastIndexOf(")")),s=")",i=kd(o).map(a=>(a=a.trim(),a.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||z3.has(l)||l==="transparent"||zn.test(l))return l;let c=be(l);return Jo(c)?c:l}).join(" ")));return n+i.join(", ")+s},q3=(e,t)=>{let r=U();return e.split(", ").map(n=>Ge(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?aP(n,t):r.gradient[e]?{backgroundImage:lt(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!rl(n)?`url(${n})`:n).join(" ")},U3=e=>I(e)&&e.split(" ").map(t=>Ue(t,"gap").gap).join(" "),G3=e=>{let t=e.split(" ");return t.length?t.map(r=>Ge(r)?`var(${r})`:r.length<3||r.includes("ms")?mr(r).timing||r:Fn(r)?Fn(r):r).join(" "):e},ZT=(e,t,r)=>{if(I(e))return e.split(",").map(n=>mr(n).timing||n).join(",")},K3=e=>{let t=e.split(",");if(t.length)return t.map(G3).join(",")};function Re(e,t,r={},n={}){let o=De.call(this,t||r[e]);if(o==null)return;let s;if(I(o)){if(o.includes("(")){let l=nl(o);s=l[0],o=l[1]}let i=r.scaleBoxSize,a=X2(e);!i&&a&&!n.ratio&&(o=J2(o))}return n.ratio?Nn(r,e,o,s):Ue(o,e,void 0,s)}var te=(e,t=null,r)=>Re(e,t,r,{ratio:!0}),XT=(e,t,r)=>{if(I(e))return{borderRadius:e.split(" ").map((n,o)=>Nn(t,r,n)[r]).join(" ")}};D();var Z3=(e,t)=>{let r=U(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},Ct=e=>e,YT={color:Ra,gradient:$a,font:V2,fontFamily:u0,fontfamily:u0,theme:W2,icons:nP,semanticIcons:Ct,semanticicons:Ct,svg:Hx,svgData:Ct,typography:Ct,shadow:Ia,spacing:Ct,media:Ct,grid:Ct,class:Ct,timing:Ct,reset:Ct,unit:Ct,animation:Ct,vars:Z3},X3=(e,t,r)=>{let n=U(),o=R2(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=YT[o]||YT[s];if(a)try{let l=a(t,r);return i&&(i[r]=l),i}catch(l){n.verbose&&console.warn("Error setting",s,"value",t,r,l)}n.verbose&&console.warn("Can not find",s,"method in scratch")},Y3=(e,t)=>{let r=U(),n=e.toLowerCase();return Object.keys(t).sort((o,s)=>{let i=B(t[o])||q(t[o])?1:0,a=B(t[s])||q(t[s])?1:0;return i-a}).forEach(o=>{try{return X3(n,t[o],o)}catch(s){r.verbose&&console.warn("Error setting",n,"value",t[o],o,s)}}),r[n]||r[e]};var J3={},Vx=(e,t=J3)=>{let r=t.config||U(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:l,useIconSprite:c,globalTheme:u,themeRoot:d,useDocumentTheme:f,useDefaultConfig:h,semanticIcons:p,files:g,assets:m,...y}=e;t.newConfig&&(r=v3(t.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),l!==void 0&&(r.useFontImport=l),a!==void 0&&(r.useSvgSprite=a),c!==void 0&&(r.useIconSprite=c),f!==void 0&&(r.useDocumentTheme=f),u!==void 0&&(r.globalTheme=u),d!==void 0&&(r.themeRoot=d),e.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=e.useThemeSuffixedVars),h!==void 0&&(r.useDefaultConfig=h),p!==void 0&&(r.semanticIcons=p),r.verbose&&console.log(r);let b=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),v=b&&b.defaultView||(typeof window<"u"?window:null),x=b&&(r.themeRoot||b.documentElement);if(x&&typeof x.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")x.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?x.style.colorScheme=r.globalTheme:x.style.colorScheme="light dark";else if(v&&v.matchMedia){let C=z=>{x.setAttribute("data-theme",z.matches?"dark":"light")},S=v.matchMedia("(prefers-color-scheme: dark)");if(C(S),x.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=C;try{S.addEventListener("change",C)}catch{S.addListener(C)}}}else x.setAttribute("data-theme","light"),x.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let w=Object.keys(y),E=new Set(w);if(w.forEach(C=>{let S=C.toLowerCase();S!==C&&E.has(S)&&tr(y[S],y[C])}),w.map(C=>{let S=C.toLowerCase();if(!(S!==C&&E.has(S)))return Y3(C,y[C])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{K2()}catch(C){r.verbose&&console.warn("Error applying typography sequence",C)}if(y.spacing)try{Y2()}catch(C){r.verbose&&console.warn("Error applying spacing sequence",C)}if(y.timing)try{eP()}catch(C){r.verbose&&console.warn("Error applying timing sequence",C)}tP();let A=iP();return A&&(r.reset=A),r};var Q3=null,eN=null,tN=null;function rN(e){e.batchAtomicCss&&(eN=e.batchAtomicCss),e.compoundCssClass&&(tN=e.compoundCssClass)}function nN(){try{let e=U();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}function Qu(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}var JT=new WeakMap;function ua(e,t){let r=lP(t);if(!r)return;let n=JT.get(r);if(n||(n=new Set,JT.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var QT=new WeakMap;function lP(e){let t=e||nN();if(!t||!t.head)return null;let r=QT.get(t);if(r&&r.ownerNode&&r.ownerNode.parentNode===t.head)return r;let n=t.head.querySelector("style[data-smbls]");n||(n=t.createElement("style"),n.setAttribute("data-smbls",""),t.head.appendChild(n));let o=n.sheet;return QT.set(t,o),Q3=o,o}function Ut(e){if(lP(),typeof e=="string"){ua(e);return}let t=Object.keys(e),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};t.sort((n,o)=>{let s=n.startsWith("@media"),i=o.startsWith("@media");return!s&&!i?0:s?i?r(o)-r(n):1:-1});for(let n of t){let o=e[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let s in o){let i=o[s];if(typeof i=="object"&&i!==null){let a="";for(let l in i){let c=l.startsWith("--")?l:Qu(l);a+=`${c}:${i[l]};`}ua(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:Qu(s);ua(`${n}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in o){let l=o[a];if(typeof l=="object"&&l!==null)i=!0;else{let c=a.startsWith("--")?a:Qu(a);s+=`${c}:${l};`}}if(s&&ua(`${n}{${s}}`),i){let a=[],l=[];for(let c in o)typeof o[c]=="object"&&o[c]!==null&&(c.startsWith("@media")||c.startsWith("@supports")?a.push(c):l.push(c));a.sort((c,u)=>{let d=f=>{let h=f.match(/max-width:\s*(\d+)/);return h?parseInt(h[1]):0};return d(u)-d(c)});for(let c of l)Ut({[`${n} ${c}`]:o[c]});for(let c of a)Ut({[c]:{[n]:o[c]}})}}}}function eO(e,t){let r="";for(let n in t){let o="";for(let s in t[n])o+=`${Qu(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return ua(`@keyframes ${e}{${r}}`),e}D();Ja();D();D();var oN=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],sN=["none","forwards","backwards","both"],iN=["normal","reverse","alternate","alternate-reverse"],aN=["running","paused"],lN=e=>/^[\d.]+m?s$/.test(e),cN=0,Kb=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(B(e)){let o=`smbls-anim-${cN++}`;return{animationName:eO(o,e)}}let n=r&&r[e];return B(n)?eO(e,n):e},uN=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{},n=e.split(/\s+/),o=null,s=[],i=null,a=null,l=null,c=null,u=null;for(let d of n)r&&r[d]?o=d:lN(d)?s.push(d):oN.includes(d)||d.startsWith("cubic-bezier")||d.startsWith("steps(")?i=d:d==="infinite"||/^\d+$/.test(d)?a=d==="infinite"?d:Number(d):iN.includes(d)?l=d:sN.includes(d)?c=d:aN.includes(d)?u=d:o||(o=d);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:l,fillMode:c,playState:u}},fN={animation:(e,t)=>{if(I(e)&&e.includes(" ")){let r=uN(e,t);return{animationName:Kb(r.name||e,t),animationDuration:r.durations[0]||mr(t.animationDuration||"A").timing,animationDelay:r.durations[1]||mr(t.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Fn(t.animationTimingFunction||"ease"),animationFillMode:r.fillMode||t.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:t.animationIterationCount||1,animationPlayState:r.playState||t.animationPlayState,animationDirection:r.direction||t.animationDirection}}return{animationName:Kb(e,t),animationDuration:mr(t.animationDuration||"A").timing,animationDelay:mr(t.animationDelay||"0s").timing,animationTimingFunction:Fn(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:Kb(e,t)}),animationDuration:e=>({animationDuration:mr(e).timing}),animationDelay:e=>({animationDelay:mr(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Fn(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};D();var dN={show:e=>e?void 0:{display:"none !important"},hide:e=>e?{display:"none !important"}:void 0,height:(e,t)=>te("height",e,t),width:(e,t)=>te("width",e,t),boxSizing:e=>Tt(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!I(e))return;let[t,r]=e.split(" ");return{...Re("height",t),...Re("width",r||t)}},inlineSize:(e,t)=>te("inlineSize",e,t),blockSize:(e,t)=>te("blockSize",e,t),minWidth:(e,t)=>te("minWidth",e,t),maxWidth:(e,t)=>te("maxWidth",e,t),widthRange:e=>{if(!I(e))return;let[t,r]=e.split(" ");return{...Re("minWidth",t),...Re("maxWidth",r||t)}},minHeight:(e,t)=>te("minHeight",e,t),maxHeight:(e,t)=>te("maxHeight",e,t),heightRange:e=>{if(!I(e))return;let[t,r]=e.split(" ");return{...Re("minHeight",t),...Re("maxHeight",r||t)}},size:e=>{if(!I(e))return;let[t,r]=e.split(" ");return{...te("inlineSize",t),...te("blockSize",r||t)}},minBlockSize:(e,t)=>te("minBlockSize",e,t),minInlineSize:(e,t)=>te("minInlineSize",e,t),maxBlockSize:(e,t)=>te("maxBlockSize",e,t),maxInlineSize:(e,t)=>te("maxInlineSize",e,t),minSize:e=>{if(!I(e))return;let[t,r]=e.split(" ");return{...Re("minInlineSize",t),...Re("minBlockSize",r||t)}},maxSize:e=>{if(!I(e))return;let[t,r]=e.split(" ");return{...Re("maxInlineSize",t),...Re("maxBlockSize",r||t)}},borderWidth:(e,t)=>te("borderWidth",e,t),padding:(e,t)=>te("padding",e,t),scrollPadding:(e,t)=>te("scrollPadding",e,t),paddingInline:e=>{if(!I(e))return;let[t,r]=e.split(" ");return{...Re("paddingInlineStart",t),...Re("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!I(e))return;let[t,r]=e.split(" ");return{...Re("paddingBlockStart",t),...Re("paddingBlockEnd",r||t)}},paddingTop:(e,t)=>te("paddingBlockStart",e,t),paddingBottom:(e,t)=>te("paddingBlockEnd",e,t),paddingLeft:(e,t)=>te("paddingInlineStart",e,t),paddingRight:(e,t)=>te("paddingInlineEnd",e,t),paddingBlockStart:(e,t)=>te("paddingBlockStart",e,t),paddingBlockEnd:(e,t)=>te("paddingBlockEnd",e,t),paddingInlineStart:(e,t)=>te("paddingInlineStart",e,t),paddingInlineEnd:(e,t)=>te("paddingInlineEnd",e,t),margin:(e,t)=>te("margin",e,t),marginInline:e=>{if(!I(e))return;let[t,r]=e.split(" ");return{...Re("marginInlineStart",t),...Re("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!I(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{...Re("marginBlockStart",r),...Re("marginBlockEnd",n||r)}},marginTop:(e,t)=>te("marginBlockStart",e,t),marginBottom:(e,t)=>te("marginBlockEnd",e,t),marginLeft:(e,t)=>te("marginInlineStart",e,t),marginRight:(e,t)=>te("marginInlineEnd",e,t),marginInlineStart:(e,t)=>te("marginInlineStart",e,t),marginInlineEnd:(e,t)=>te("marginInlineEnd",e,t),marginBlockStart:(e,t)=>te("marginBlockStart",e,t),marginBlockEnd:(e,t)=>te("marginBlockEnd",e,t),gap:e=>({gap:U3(e)}),columnGap:(e,t)=>Nn(t,"columnGap",e),rowGap:(e,t)=>Nn(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!I(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:e=>{if(!I(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>XT(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>XT(e??t.round,t,"borderRadius")},pN={fontSize:e=>Z2(e)||e,fontFamily:e=>({fontFamily:q2(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})},hN={overflow:e=>({overflow:e,scrollBehavior:"smooth"}),cursor:(e,t,r,n)=>{if(!e)return;let o=n.assets&&n.assets[e];if(o&&o.content)e=`url(${o.content.src})`;else{let s=n.files&&n.files[e];s&&s.content&&(e=`url(${s.content.src})`)}return{cursor:e}},opacity:e=>e!=null?{opacity:String(e)}:void 0,visibility:e=>e!=null?{visibility:e}:void 0,pointerEvents:e=>e!=null?{pointerEvents:e}:void 0},gN={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>Ue(r,"k").k).join(" ")}},left:e=>Ue(e,"left"),top:e=>Ue(e,"top"),right:e=>Ue(e,"right"),bottom:e=>Ue(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Ue(r,"k").k);return{top:t[0],bottom:t[1]||t[0]}},horizontalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Ue(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};D();var Wt=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},mN={theme:(e,t)=>{if(e)return t.themeModifier?Zr(e,`@${t.themeModifier}`):Zr(e)},color:(e,t)=>{let r=Wt(t);if(e)return{color:lt(e,r)}},background:(e,t)=>{let r=Wt(t);if(e)return I(e)&&e.includes("gradient")?{background:aP(e,r)}:{background:lt(e,r)}},backgroundColor:(e,t)=>{let r=Wt(t);if(e)return{backgroundColor:lt(e,r)}},backgroundImage:(e,t,r,n)=>{let o=Wt(t);if(!e)return;let s=n.assets&&n.assets[e];if(s&&s.content)e=s.content.src;else{let i=n.files&&n.files[e];i&&i.content&&(e=i.content.src)}return{backgroundImage:q3(e,o)}},textStroke:e=>({WebkitTextStroke:H3(e)}),outline:e=>({outline:Rn(e)}),outlineOffset:(e,t)=>te("outlineOffset",e,t),border:e=>({border:Rn(e)}),borderColor:(e,t)=>{let r=Wt(t);if(e)return{borderColor:lt(e,r)}},borderTopColor:(e,t)=>{let r=Wt(t);if(e)return{borderTopColor:lt(e,r)}},borderBottomColor:(e,t)=>{let r=Wt(t);if(e)return{borderBottomColor:lt(e,r)}},borderLeftColor:(e,t)=>{let r=Wt(t);if(e)return{borderLeftColor:lt(e,r)}},borderRightColor:(e,t)=>{let r=Wt(t);if(e)return{borderRightColor:lt(e,r)}},borderLeft:e=>({borderLeft:Rn(e)}),borderTop:e=>({borderTop:Rn(e)}),borderRight:e=>({borderRight:Rn(e)}),borderBottom:e=>({borderBottom:Rn(e)}),shadow:(e,t)=>{let r=Wt(t);if(e)return{boxShadow:V3(e,r)}},boxShadow:(e,t)=>{if(!I(e))return;let[r,n]=e.split("!importan"),o=Wt(t),s=n?" !important":"";return{boxShadow:KT(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:KT(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:Rn(e)})},qx={transition:e=>({transition:K3(e)}),transitionDuration:e=>({transitionDuration:ZT(e)}),transitionDelay:e=>({transitionDelay:ZT(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Fn(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};D();var yN={flow:(e,t)=>{let r=t.reverse;if(!I(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(e,t)=>({display:"flex",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}},bN={area:e=>({gridArea:e}),template:e=>({gridTemplate:e}),templateAreas:e=>({gridTemplateAreas:e}),column:e=>({gridColumn:e}),columns:e=>({gridTemplateColumns:e}),templateColumns:e=>({gridTemplateColumns:e}),autoColumns:e=>({gridAutoColumns:e}),columnStart:e=>({gridColumnStart:e}),row:e=>({gridRow:e}),rows:e=>({gridTemplateRows:e}),templateRows:e=>({gridTemplateRows:e}),autoRows:e=>({gridAutoRows:e}),rowStart:e=>({gridRowStart:e}),autoFlow:e=>({gridAutoFlow:e})},tO={...fN,...dN,...pN,...hN,...gN,...mN,...qx,...yN,...bN},vN=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);D();var xN=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,wN=(e,t,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=e.slice(1),s=n.designSystem.media[o],i=vr(t,r);if(!s)return{[e]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(xN),l=a?a[1]||a[2]:o,c={[`${s} &`]:i};if(l==="dark"||l==="light"){let u=n.designSystem?.scopeSelector||":root",d=u===":root"?":root:not([data-theme])":`${u}:not([data-theme])`;c[`@media (prefers-color-scheme: ${l})`]={[`${d} &`]:i}}return c},rO=(e,t,r)=>({[e]:vr(t,r)}),sa=(e,t,r)=>{let n=`&${e}`,o=vr(t,r);if(e.includes(",")&&o){let s={},i={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?i[a]=o[a]:s[a]=o[a];if(Object.keys(i).length){let a=n.split(",").map(c=>c.trim()),l={};Object.keys(s).length&&(l[n]=s);for(let c in i){let u=a.map(d=>`${d} ${c}`).join(", ");l[u]=i[c]}return l}}return{[n]:o}},Ux=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return L(r)?r.call(t,t):!!r},SN=(e,t,r)=>{let n=e.slice(1),o=Ux(n,r);if(o===void 0&&(o=!!r[n]),!!o)return vr(t,r)},_N=(e,t,r)=>({[e]:t}),kN=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=Ux(n,r);s!==void 0&&(o=s)}if(o)return vr(t,r)},CN=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=Ux(n,r);s!==void 0&&(o=s)}if(!o)return vr(t,r)},AN=(e,t)=>vr(e,t),EN={"@":wN,":":sa,"[":sa,"*":sa,"+":sa,"~":sa,"&":rO,">":rO,$:SN,"-":_N,".":kN,"!":CN},Zb=Zo(),TN=(e,t,r)=>{let n=t?.context?.designSystem;n&&y3(n);try{let o={},s={},i=(a,l)=>{if(r.unpack){o={...o,...l};return}o[a]=l};for(let a in e){let l=e[a];if(a==="class"&&t.call("isString",e.class)){let c=l.split(" ");if(c.length){let u=t.context.designSystem.class,d=c.reduce((f,h)=>ct(f,u[h]),{});o.designSystemClass=d}}else if(a==="true"){let c=De(l,t);ct(o,AN(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=L(c)?c(t,t.state,t.context):c;u&&i(a,u),!Zb&&B(o[a])&&(o[a].label=a)}else if(tO[a]){let c=De(l,t);q(c)&&(c=c.reduce((d,f)=>ct(d,f),{}));let u=tO[a](c,t,t.state,t.context);q(u)&&(u=u.reduce((d,f)=>ct(d,f),{})),u&&i(a,u),!Zb&&B(o[a])&&(o[a].label=a)}else if(vN.has(a)){let c=De(l,t);typeof c=="string"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),i(a,{[a]:c}),!Zb&&B(o[a])&&(o[a].label=a)}else s[a]=l}return[o,s]}finally{n&&b3()}},ON=(e,t)=>{let r={};for(let n in e){let o=EN[n.slice(0,1)];if(o){let s=o(n,e[n],t);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?Bn(r[i],s[i]):r[i]=s[i])}}return r},vr=(e,t,r={unpack:!0})=>{let[n,o]=TN(e,t,r),s=ON(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return hd(n,s);n._selectors=s}return n};D();D();D();Ja();D();var Zf=(e,t)=>{let r=e.call("exec",t,e);if(r)return I(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r};var PN={primary:{"@dark":{color:"white",background:"blue",".color-only":{color:"blue"},".inactive":{background:"gray+16"},".gradient":{color:"white",background:"gradient-blue"}},"@light":{color:"white",background:"gradient-blue",".color-only":{color:"blue"},".gradient":{color:"white",background:"gradient-colorful"}}},secondary:{"@dark":{color:"white",background:"green",".color-only":{color:"green"}},"@light":{color:"white",background:"green",".color-only":{color:"green"}},".child":"--primary"},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light",":hover":{color:"gray=95",background:"gradient-light-active"},":focus":{color:"gray=120",background:"gradient-light-active"},":active":{color:"gray=120",background:"gradient-light-active"},".active":{color:"gray=120",background:"gradient-light-active"}},"@light":{color:"gray3",background:"gradient-dark",":hover":{color:"gray1",background:"gradient-dark-active"},":active":{color:"gray1",background:"gradient-dark-active"},".active":{color:"gray1",background:"gradient-dark-active"}}}},RN={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},$N={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"},".light":{color:"white",background:"gray3"},".dark":{color:"white",background:"black.35"}},card:{"@light":{background:"gray.975+150"},"@dark":{color:"white",background:"gray.975-56"},".child":{color:"white",background:"gray3"},".secondary":{color:"white",background:"gradient-blue-dark",".child":{color:"white",background:"black.35"}}},dialog:{"@dark":{color:"white",background:"gray.92",".helper":{color:"white",background:"black"}},"@light":{color:"currentColor",background:"gray.1"}}},DX={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...PN,...RN,...$N,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var IN={};$(IN,{A:()=>VR,AssetPicture:()=>FP,Audio:()=>zP,Avatar:()=>u$,B:()=>aR,Block:()=>uP,Box:()=>fR,Br:()=>pR,Button:()=>ZR,ButtonSet:()=>QR,COMPONENTS:()=>VN,Caption:()=>JP,Checkbox:()=>AR,CheckboxHgroup:()=>ER,Circle:()=>RP,CircleButton:()=>YR,Clickable:()=>CP,Data:()=>cR,Dialog:()=>r$,DialogFooter:()=>o$,DialogHeader:()=>n$,Dropdown:()=>h$,DropdownList:()=>g$,DropdownParent:()=>m$,DropdownParentFocus:()=>y$,DropdownSiblingFocus:()=>b$,FileIcon:()=>NR,Flex:()=>dP,Focusable:()=>AP,FocusableComponent:()=>EP,Footnote:()=>iR,Form:()=>xP,Grid:()=>hP,Gutter:()=>mP,H1:()=>qP,H2:()=>UP,H3:()=>GP,H4:()=>KP,H5:()=>ZP,H6:()=>XP,Headline:()=>oR,Hgroup:()=>bR,HgroupButton:()=>xR,HgroupRows:()=>vR,Hoverable:()=>kP,Hr:()=>dR,I:()=>lR,Icon:()=>BR,IconButton:()=>e$,IconText:()=>MR,Iframe:()=>SP,Img:()=>bP,Inline:()=>fP,InlineFlex:()=>pP,InlineGrid:()=>gP,Input:()=>SR,Italic:()=>rR,KangorooButton:()=>JR,Li:()=>hR,Link:()=>ew,Notification:()=>x$,NumberInput:()=>kR,Ol:()=>mR,P:()=>YP,Picture:()=>IP,Radio:()=>OR,RadioHgroup:()=>PR,Range:()=>d$,RouteLink:()=>qR,RouterLink:()=>tw,SHAPES:()=>Xf,Select:()=>GR,Shape:()=>Kx,Span:()=>VP,SquareButton:()=>XR,Strong:()=>QP,Subhead:()=>sR,Svg:()=>LP,Text:()=>HP,Textarea:()=>FR,TextareaWithButton:()=>DR,Theme:()=>$P,Title:()=>nR,Toggle:()=>$R,ToggleHgroup:()=>IR,Tooltip:()=>i$,TooltipHidden:()=>a$,TooltipParent:()=>l$,U:()=>eR,Ul:()=>gR,Underline:()=>tR,Video:()=>MP,depth:()=>Gx,getSystemGlobalTheme:()=>Yf});var cP={};$(cP,{Block:()=>uP,Flex:()=>dP,Grid:()=>hP,Gutter:()=>mP,Inline:()=>fP,InlineFlex:()=>pP,InlineGrid:()=>gP});var uP={display:"block"},fP={display:"inline"},dP={display:"flex"},pP={display:"inline-flex"},hP={display:"grid"},gP={display:"inline-grid"},mP={boxSize:"C1"},yP={};$(yP,{Img:()=>bP});D();var bP={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Le(e);return t&&t.src||e.src},srcset:e=>{let t=Le(e);return(t?el(t):"")||e.srcset}}},vP={};$(vP,{Form:()=>xP});var xP={tag:"form"},wP={};$(wP,{Iframe:()=>SP});var SP={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"},_P={};$(_P,{Clickable:()=>CP,Focusable:()=>AP,FocusableComponent:()=>EP,Hoverable:()=>kP});var jN={appearance:"none",cursor:"pointer",fontFamily:"inherit"},kP={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},CP={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},AP={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},EP={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:jN},TP={};$(TP,{Picture:()=>IP});var OP={};$(OP,{Theme:()=>$P,getSystemGlobalTheme:()=>Yf});var PP={};$(PP,{Circle:()=>RP,SHAPES:()=>Xf,Shape:()=>Kx,default:()=>FN,depth:()=>Gx});D();var At=U(),Gx={4:{boxShadow:`rgba(0,0,0,.10) 0 2${At.unit.default} 4${At.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${At.unit.default} 6${At.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${At.unit.default} 10${At.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${At.unit.default} 16${At.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${At.unit.default} 26${At.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${At.unit.default} 42${At.unit.default}`}},Mo=e=>be(e.shapeDirectionColor)||be(e.borderColor)||be(e.backgroundColor)||be(e.background),Uu=e=>{let t=qx.transition(e.transition,e);return t&&t.transition},Xf={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Mo(e),transition:Uu(e),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:e=>({position:"relative","&:before":{content:'""',display:"block",background:Mo(e),transition:Uu(e),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:Mo(e),transition:Uu(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Uu(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Mo(e)} 25%, transparent 25%), linear-gradient(315deg, ${Mo(e)} 25%, transparent 25%)`},"&:after":{background:Mo(e),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},Kx={deps:{exec:De,getSpacingBasedOnRatio:Nn,getMediaColor:lt},classlist:{shape:e=>e.deps.exec(Xf[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Xf[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},RP={round:"100%"},FN=Kx;D();var Yf=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},$P={deps:{depth:Gx},classlist:{depth:e=>!Tt(e.depth)&&e.deps.depth[e.depth]}},IP={deps:{getSystemGlobalTheme:Yf},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Yf},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(e),i=(e.media||t).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":o[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}},jP={};$(jP,{AssetPicture:()=>FP});D();var FP={tag:"picture",children:e=>{let t=Le(e);if(t)return tl(t,e.alt)}},DP={};$(DP,{Svg:()=>LP});var LP={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,s=e.spriteId||r&&r.useSvgSprite,i=e.call("exec",e.src,e);if(!s&&i)return i;let a=f=>`<use xlink:href="#${f}" />`,l=e.spriteId;if(l)return a(l);if(o&&o[i])return a(i);let c=Symbol.for(i),u=o[c];if(u&&o[u])return a(u);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let d=0;for(let f=0;f<i.length;f++)d=(d<<5)-d+i.charCodeAt(f)|0;return u=o[c]=`svg-${(d>>>0).toString(36)}`,n.init({svg:{[u]:i}},{document:t.document,emotion:t.emotion}),a(u)}},BP={};$(BP,{Video:()=>MP});D();var MP={tag:"video",controls:!0,attr:{src:e=>{let t=Le(e);return t&&t.src||e.src}},children:e=>{let t=Le(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},NP={};$(NP,{Audio:()=>zP});D();var zP={tag:"audio",controls:!0,attr:{src:e=>{let t=Le(e);return t&&t.src||e.src}},children:e=>{let t=Le(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},WP={};$(WP,{B:()=>aR,Caption:()=>JP,Data:()=>cR,Footnote:()=>iR,H1:()=>qP,H2:()=>UP,H3:()=>GP,H4:()=>KP,H5:()=>ZP,H6:()=>XP,Headline:()=>oR,I:()=>lR,Italic:()=>rR,P:()=>YP,Span:()=>VP,Strong:()=>QP,Subhead:()=>sR,Text:()=>HP,Title:()=>nR,U:()=>eR,Underline:()=>tR});var HP={},VP={tag:"span"},qP={tag:"h1"},UP={tag:"h2"},GP={tag:"h3"},KP={tag:"h4"},ZP={tag:"h5"},XP={tag:"h6"},YP={tag:"p"},JP={tag:"caption"},QP={tag:"strong",fontWeight:"700"},eR={tag:"u"},tR={tag:"u"},rR={tag:"i"},nR={},oR={tag:"h6",fontSize:"B",fontWeight:500},sR={tag:"span",fontSize:"Z1"},iR={tag:"span",fontSize:"Z"},aR={tag:"b"},lR={tag:"i"},cR={tag:"data"},uR={};$(uR,{Box:()=>fR,Br:()=>pR,Hr:()=>dR,Li:()=>hR,Ol:()=>mR,Ul:()=>gR});var DN=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=vr(t,e,{unpack:!1});r.__class=n},fR={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:DN},dR={tag:"hr",margin:"C1 0"},pR={tag:"br"},hR={tag:"li"},gR={tag:"ul",childExtends:{extends:"Li"}},mR={tag:"ol",childExtends:{extends:"Li"}},yR={};$(yR,{Hgroup:()=>bR,HgroupButton:()=>xR,HgroupRows:()=>vR});var nO=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},bR={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:nO,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:nO,margin:"0",color:"paragraph"}},vR={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},xR={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}},wR={};$(wR,{Input:()=>SR});var SR={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}},_R={};$(_R,{NumberInput:()=>kR});var kR={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}},CR={};$(CR,{Checkbox:()=>AR,CheckboxHgroup:()=>ER});var AR={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},ER={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}},TR={};$(TR,{Radio:()=>OR,RadioHgroup:()=>PR});var OR={extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},PR={extends:"CheckboxHgroup",Checkbox:null,Radio:{}},RR={};$(RR,{Toggle:()=>$R,ToggleHgroup:()=>IR});var $R={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},IR={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}},jR={};$(jR,{Textarea:()=>FR,TextareaWithButton:()=>DR});var FR={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},DR={display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}},LR={};$(LR,{FileIcon:()=>NR,Icon:()=>BR,IconText:()=>MR});var BR={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,l=x=>{let w=x[".isActive"];if(w)return x.call("exec",w.name||w.icon)},c=(x,w,E)=>{let{semanticIcons:A}=E&&E.designSystem,{toCamelCase:C}=E&&E.utils,S=u(x,w),z=C(S).split(/([a-z])([A-Z])/g),re=z[1]?z[0]:S.split(".")[0].split(" ")[0],G=A&&A[re];if(G){let V=S.includes(".")?"sfsymbols."+S.split(".").slice(1).join("."):"sfsymbols";return S=G[V]||G[S.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${S}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(x,w)=>{let{key:E}=x,A=x.call("exec",x.name||x.icon||E,x);return x.call("isString",A)&&A.includes("{{")&&(A=x.call("replaceLiteralsWithObjectFields",A)),x.call("isString",A)?A:E},d=u(e,t);if(d.includes(" ")){let x=d.split(" ");d=x[0]+x.slice(1).map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join("")}let f=a(d),h=f.split(/([a-z])([A-Z])/g),p=c(e,t,r);if(p){Object.assign(e,p);return}let g;e.isActive&&(g=l(e));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=e.call("exec",m.icon||m.Icon.name||m.Icon.icon,e)),e.call("isString",g)&&g.includes("{{")&&(g=e.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[f]?y=f:o[h[0]+h[1]]?y=h[0]+h[1]:o[h[0]]?y=h[0]:i&&e.warn("Can't find icon:",d,y);let b=o[y],v=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||v||o.noIcon})},attr:{viewBox:"0 0 24 24"}},MR={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},NR={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}},zR={};$(zR,{A:()=>VR,Link:()=>ew,RouteLink:()=>qR,RouterLink:()=>tw});var LN={};$(LN,{default:()=>WN,getActiveRoute:()=>Qx,lastLevel:()=>Od,lastPathname:()=>Jf,matchRoute:()=>Xx,parseQuery:()=>Yx,parseRoutePattern:()=>Zx,router:()=>Yr,runGuards:()=>Jx});D();var WR=/^:(.+)/,HR=/^\*$/,oO=new Map,Zx=e=>{let t=oO.get(e);if(t)return t;let r=e.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(WR);a?n.push({index:i,name:a[1]}):HR.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return oO.set(e,s),s},Xx=(e,t,r=0)=>{let n=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),o="/"+(n[0]||""),s=null,i=-1,a={};for(let l in t){if(l==="/*")continue;let c=Zx(l),u=BN(n,c);u>i&&(i=u,s=l,a=MN(n,c))}return!s&&t["/*"]&&(s="/*"),{key:s,content:s?t[s]:null,params:a,routePath:o}},BN=(e,t)=>{let{segments:r,hasWildcard:n}=t;if(!n&&r.length!==e.length&&r.length!==1&&r.length>e.length)return-1;let o=0,s=Math.min(r.length,e.length);for(let i=0;i<s;i++)if(r[i]===e[i])o+=3;else if(WR.test(r[i]))o+=1;else if(HR.test(r[i]))o+=.5;else return-1;return o},MN=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},Yx=e=>{if(!e||e==="?")return{};let t={};return new URLSearchParams(e).forEach((r,n)=>{t[n]!==void 0?(Array.isArray(t[n])||(t[n]=[t[n]]),t[n].push(r)):t[n]=r}),t},Jx=async(e,t)=>{if(!e||!e.length)return!0;for(let r of e){let n=await r(t);if(n===!1)return!1;if(typeof n=="string")return n}return!0},Qx=(e=0,t)=>{t||(t=typeof se<"u"?se.location.pathname:"/");let r=t.split("/")[e+1];if(r)return`/${r}`},Jf,Od=0,NN=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,zN={level:Od,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:ye&&ye.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},Yr=async(e,t,r={},n={})=>{let o=t||void 0,s=o?.context?.window||se,i=o?.context?.document||ye,a={...zN,...o.context.routerOptions,...n};Od=a.lastLevel;let l=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let c=l.contentElementKey||a.contentElementKey||"content",u=s.location.origin!=="null"?s.location.origin:"http://localhost";e=NN(e);let d=new s.URL(u+e),{pathname:f,search:h,hash:p}=d,g=Yx(h),m=o.node,y=p&&p!==s.location.hash.slice(1),b=f!==Jf;Jf=f;let v,x,w,E;if(a.useParamsMatching){let C=Xx(f,o.routes,a.level);v=C.key,x=C.routePath,w=C.content,E=C.params}else v=Qx(a.level,f),x=v,w=o.routes[v||"/"]||o.routes["/*"],E={};let A=a.scrollToNode?m:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!w){a.onNotFound?a.onNotFound({pathname:f,route:v,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",f,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let C={pathname:f,route:v,params:E,query:g,hash:p,element:o,state:r},S=await Jx(a.guards,C);if(S===!1)return;if(typeof S=="string")return Yr(S,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,f+(h||"")+(p||""))}catch{}if(b||!y){let C={route:v,routePath:x,hash:p,debugging:!1};Object.keys(E).length&&(C.params=E),Object.keys(g).length&&(C.query=g),a.updateState&&o.state.update(C,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let S=o.__ref?.origin?.content,z={};if(S)for(let G in S){let V=S[G];G==="__ref"||G==="props"||G==="node"||G==="parent"||G==="key"||(typeof V=="string"||typeof V=="number"||typeof V=="boolean"||typeof V=="object"&&V!==null&&!V.node&&!V.__ref)&&(z[G]=V)}let re={...z,...typeof w=="object"?w:{extends:w}};a.useFragment&&(re.tag="fragment");try{o.set(re,{contentElementKey:c})}catch(G){console.error("[smbls/router] failed to render route content",f,G)}}if(a.scrollToTop&&A?.scrollTo&&A.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&w[c]?.node?.scrollTo&&w[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),p){let C=i.getElementById(p);if(C&&A?.scrollTo){let S=C.getBoundingClientRect().top+m.scrollTop-(a.scrollToOffset||0);A.scrollTo({...a.scrollToOptions||{},top:S,left:0})}}Xo("routeChanged",o,a)},WN=Yr,HN=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,h=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!h){e.preventDefault();try{let p=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(p=m,f.routes&&(p.routes=f.routes))}(u.router||c.router||l.router||Yr)(a,p,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(p){console.warn(p)}}},ew={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>Zf(e,e.href)||Zf(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:HN},VR={extends:"Link"},tw={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,h=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!h){e.preventDefault();try{let p=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(p=m,f.routes&&(p.routes=f.routes))}(u.router||c.router||l.router||Yr)(a,p,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(p){console.warn(p)}}}},qR={extends:[ew,tw]},UR={};$(UR,{Select:()=>GR});var GR={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}},KR={};$(KR,{Button:()=>ZR,ButtonSet:()=>QR,CircleButton:()=>YR,IconButton:()=>e$,KangorooButton:()=>JR,SquareButton:()=>XR});var ZR={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},XR={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},YR={extends:"SquareButton",round:"C"},JR={extends:"Button",childExtends:"IconText"},QR={tag:"nav",display:"flex",childExtends:"SquareButton"},e$={extends:["SquareButton","ClickableItem"],round:"Z"},t$={};$(t$,{Dialog:()=>r$,DialogFooter:()=>o$,DialogHeader:()=>n$});var r$={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},n$={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},o$={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}},s$={};$(s$,{Tooltip:()=>i$,TooltipHidden:()=>a$,TooltipParent:()=>l$});D();var i$={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:e=>Ln(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},a$={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},l$={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}},c$={};$(c$,{Avatar:()=>u$});var u$={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`},f$={};$(f$,{Range:()=>d$});var d$={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:Ha("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:Ha("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}},p$={};$(p$,{Dropdown:()=>h$,DropdownList:()=>g$,DropdownParent:()=>m$,DropdownParentFocus:()=>y$,DropdownSiblingFocus:()=>b$});var h$={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},g$={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},m$={position:"relative",zIndex:999,style:{"&:hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},y$={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},b$={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}},v$={};$(v$,{Notification:()=>x$});var x$={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}},VN=Object.assign({},cP,yP,vP,wP,_P,TP,jP,DP,PP,BP,NP,OP,WP,uR,yR,wR,_R,CR,TR,RR,jR,LR,zR,UR,KR,t$,s$,c$,f$,p$,v$);var qN=null;function UN(e){qN=e}D();var GN={};$(GN,{CDN_PROVIDERS:()=>Vt,DOMQL_EVENTS:()=>V0,DOMQ_PROPERTIES:()=>Yo,ENV:()=>lv,HTML_TAGS:()=>Na,METHODS:()=>La,METHODS_EXL:()=>pd,NODE_ENV:()=>Ht,OPTIONS:()=>wd,PACKAGE_MANAGER_TO_CDN:()=>Vf,PARSED_DOMQ_PROPERTIES:()=>dd,PROPS_METHODS:()=>jn,STATE_METHODS:()=>In,STATE_PROPERTIES:()=>H0,SVG_TAGS:()=>_v,TYPES:()=>da,UNIVERSAL_RESERVED_KEYS:()=>Hf,addCaching:()=>If,addContext:()=>$f,addExtend:()=>Tv,addExtends:()=>tt,addItemAfterEveryElement:()=>P0,addProtoToArray:()=>cd,addRef:()=>Of,applyCSS:()=>YN,applyDependentState:()=>Gv,applyEvent:()=>Mf,applyEventUpdate:()=>Nf,applyExtends:()=>Pv,applyProps:()=>Ea,arrayContainsOtherArray:()=>_0,arraysEqual:()=>$0,arrayzeValue:()=>Qa,buildImgSrcset:()=>el,buildSourcesAndImg:()=>tl,cache:()=>Yv,call:()=>s2,captureSnapshot:()=>ox,checkForStateTypes:()=>Hv,checkIfInherits:()=>Bf,checkIfStringIsInArray:()=>F0,clone:()=>U0,cloneAndMergeArrayExtend:()=>xa,cloneFunction:()=>gO,concatAddExtends:()=>Cv,copyJavaScriptToClipboard:()=>Sx,copyStringToClipboard:()=>wx,createBasedOnType:()=>Tf,createElement:()=>Wv,createElementExtends:()=>bf,createExtends:()=>vd,createExtendsFromKeys:()=>za,createExtendsStack:()=>Sf,createIfConditionFlag:()=>mv,createInheritedState:()=>Vv,createKey:()=>yd,createNestedObject:()=>ev,createNestedObjectByKeyPath:()=>Uv,createObjectWithoutPrototype:()=>df,createParent:()=>Pf,createPath:()=>Rf,createProps:()=>xd,createPropsStack:()=>Af,createRoot:()=>zv,createScope:()=>Zv,createSnapshotId:()=>md,customDecodeURIComponent:()=>W0,customEncodeURIComponent:()=>z0,cutArrayAfterValue:()=>T0,cutArrayBeforeValue:()=>E0,debounce:()=>hO,debounceOnContext:()=>pv,decodeNewlines:()=>N0,deepClone:()=>rt,deepContains:()=>J0,deepDefaults:()=>Ta,deepDestringifyFunctions:()=>ga,deepExtend:()=>yf,deepMerge:()=>tr,deepMergeExtends:()=>Jt,deepStringifyFunctions:()=>pa,defineSetter:()=>nx,destringifyGlobalScope:()=>G0,detectHeightOnInit:()=>cx,detectInfiniteLoop:()=>ov,document:()=>ye,encodeNewlines:()=>M0,error:()=>Wf,excludeKeysFromObject:()=>iv,exec:()=>De,extendCachedRegistry:()=>Av,extendStackRegistry:()=>ya,extractArrayExtend:()=>va,fetchLibraryData:()=>vx,fibonacciNumberByIndex:()=>ux,filterArrays:()=>I0,filterArraysFast:()=>j0,finalizeExtends:()=>_f,findClosestNumber:()=>Uf,findClosestNumberInFactory:()=>bx,findInheritedState:()=>Lf,findKeyPosition:()=>L0,flattenExtend:()=>Vo,formatDate:()=>lx,generateHash:()=>hf,generateKey:()=>ma,generateMetaTags:()=>yx,get:()=>VO,getActiveRoute:()=>Qx,getCDNUrl:()=>qf,getCapitalCaseKeys:()=>vO,getCdnProviderFromConfig:()=>ix,getChildStateInKey:()=>Df,getChildren:()=>GO,getContext:()=>QO,getCookie:()=>wv,getDB:()=>i2,getEmotionStylesheet:()=>Ax,getExtendsInElement:()=>Ov,getExtendsStack:()=>Sa,getExtendsStackRegistry:()=>mf,getFrequencyInArray:()=>k0,getHashedExtend:()=>ba,getImportMapScript:()=>ax,getInObjectByPath:()=>nv,getLocalStorage:()=>mO,getNev:()=>dv,getPageMetadata:()=>p2,getParentStateInKey:()=>Ff,getPath:()=>KO,getQuery:()=>a2,getRef:()=>UO,getRoot:()=>XO,getRootContext:()=>JO,getRootData:()=>YO,getRootState:()=>ZO,getRootStateInKey:()=>jf,getSpreadChildren:()=>xO,global:()=>x0,hasFunction:()=>Ho,hasHandlerPlugin:()=>Ya,hasOwnProperty:()=>Z0,inheritChildExtends:()=>xf,inheritChildPropsExtends:()=>vf,inheritParentProps:()=>ka,inheritRecursiveChildExtends:()=>wf,init:()=>Pd,initProps:()=>Mv,is:()=>Qt,isArray:()=>q,isBoolean:()=>af,isContextComponent:()=>wO,isCyclic:()=>sv,isDOMNode:()=>at,isDate:()=>cf,isDefined:()=>Ln,isDevelopment:()=>bd,isEmpty:()=>uf,isEmptyObject:()=>X0,isEqualDeep:()=>ff,isFunction:()=>L,isHtmlElement:()=>sd,isLocal:()=>fv,isMethod:()=>l2,isMobile:()=>vv,isNode:()=>Ua,isNot:()=>S0,isNotProduction:()=>Xa,isNull:()=>lf,isNumber:()=>Dn,isObject:()=>B,isObjectLike:()=>oe,isPhoto:()=>fx,isProduction:()=>Zo,isStaging:()=>uv,isState:()=>qv,isString:()=>I,isStringFunction:()=>gv,isTest:()=>pf,isTesting:()=>cv,isUndefined:()=>Tt,isUniversallyReservedKey:()=>sx,isValidHtmlTag:()=>kv,joinArrays:()=>Fa,jointStacks:()=>Ev,keys:()=>Qv,lastLevel:()=>Od,lastPathname:()=>Jf,loadCssFile:()=>gx,loadJavascript:()=>mx,loadJavascriptFile:()=>dx,loadJavascriptFileEmbedSync:()=>hx,loadJavascriptFileSync:()=>px,loadRemoteCSS:()=>d2,loadRemoteScript:()=>f2,log:()=>e2,logGroupIf:()=>bv,logIf:()=>yv,lookdown:()=>zO,lookdownAll:()=>WO,lookup:()=>NO,lowercaseFirstLetter:()=>Ka,makeObjectWithoutPrototype:()=>Y0,map:()=>q0,mapStringsWithContextComponents:()=>wa,matchRoute:()=>Xx,matchesComponentNaming:()=>$n,memoize:()=>hv,merge:()=>ct,mergeSharedLibraries:()=>xx,nextElement:()=>r2,normalizeLibraryKey:()=>Wa,objectToString:()=>ha,objectizeStringProperty:()=>_a,overwrite:()=>hd,overwriteDeep:()=>Bn,overwriteShallow:()=>gd,overwriteState:()=>Kv,parse:()=>ex,parseDeep:()=>zf,parseQuery:()=>Yx,parseRoutePattern:()=>Zx,pickupElementFromProps:()=>Iv,pickupPropsFromElement:()=>$v,previousElement:()=>n2,propExists:()=>Bv,propertizeElement:()=>jv,propertizeUpdate:()=>_O,reinit:()=>XN,remove:()=>HO,removeChars:()=>_x,removeCookie:()=>Sv,removeDuplicateProps:()=>Ca,removeDuplicatesInArray:()=>Da,removeFromArray:()=>C0,removeFromObject:()=>Q0,removeNestedKeyByPath:()=>tv,removeValueFromArray:()=>ld,removeValueFromArrayAll:()=>O0,reorderArrayByValues:()=>R0,replaceLiteralsWithObjectFields:()=>fO,replaceOctalEscapeSequences:()=>B0,resolveAsset:()=>Le,resolveHandler:()=>Ba,resolveSharedLibraries:()=>g2,returnValueAsText:()=>Ef,router:()=>Yr,runGuards:()=>Jx,runPluginHook:()=>Ma,scratchSystem:()=>z2,scratchUtils:()=>b2,self:()=>w0,set:()=>Vx,setActiveRootState:()=>rx,setCookie:()=>xv,setHashedExtend:()=>gf,setInObjectByPath:()=>rv,setLocalStorage:()=>yO,setNodeStyles:()=>Jv,setProps:()=>qO,setPropsPrototype:()=>kf,spotByPath:()=>MO,srcsetFor:()=>Uo,stringIncludesAny:()=>ud,stringToObject:()=>K0,swapItemsInArray:()=>A0,syncProps:()=>Aa,toCamelCase:()=>Sd,toDashCase:()=>_d,toDescriptionCase:()=>Cx,toTitleCase:()=>kx,toggleFullscreen:()=>u2,triggerEventOn:()=>Xo,triggerEventOnUpdate:()=>Xv,trimStringFromSymbols:()=>D0,unstackArrayOfObjects:()=>ad,update:()=>Fv,updateProps:()=>Nv,variables:()=>o2,verbose:()=>tx,warn:()=>t2,window:()=>se});D();D();var KN=U(),w$=(e=KN,t)=>{let r=B(t.localFile)?t.localFile:{},n=rt(r.designSystem||{});return tr(e,n)},ZN={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Pd=(e,t=ZN)=>{let r=w$(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=t.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(s=m)}let i=Vx({verbose:t.verbose,useReset:t.useReset,useFontImport:t.useFontImport,useVariable:t.useVariable,useSvgSprite:t.useSvgSprite,useDocumentTheme:t.useDocumentTheme,useIconSprite:t.useIconSprite,useDefaultConfig:t.useDefaultConfig,globalTheme:s,themeRoot:t.themeRoot,files:t.files,assets:t.assets,...r},{newConfig:t.newConfig,config:t.config});i&&(i.scopeSelector=n);let a=T2(i.font,i.files),l=i.useReset,c=i.useVariable,u=i.useFontImport,d=i.useSvgSprite,f=e.svg,h=i.useIconSprite,p=e.icons;if(u&&Ut(a),c&&(Ut({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let y in i.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[o]:i.CSS_MEDIA_VARS[y]}:m[y]=i.CSS_MEDIA_VARS[y];Ut(m)}l&&Ut(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];Ut(m)}return(f||d)&&rP(i.svg,{document:t.document}),(p||h)&&oP(i.icons,{document:t.document}),i},S$={},XN=(e,t=S$)=>{let r=w$(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=Vx({verbose:!1,...r});if(!t.preventInject){if(Ut({[n]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith("@media")?i[a]={[o]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];Ut(i)}Ut(s.reset)}return s},YN=(e,t=S$)=>{Ut(e)};D();D();var LX=se&&se.location?se.location.host.includes("dev."):bd();D();qo();var JN={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},QN={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},BX={...JN,router:QN};var e4={};$(e4,{A:()=>rj,AssetPicture:()=>Z$,Audio:()=>tI,Avatar:()=>Sj,B:()=>wI,Block:()=>k$,Box:()=>CI,Br:()=>EI,Button:()=>aj,ButtonSet:()=>fj,COMPONENTS:()=>s4,Caption:()=>dI,Checkbox:()=>NI,CheckboxHgroup:()=>zI,Circle:()=>q$,CircleButton:()=>cj,Clickable:()=>M$,Data:()=>_I,Dialog:()=>hj,DialogFooter:()=>mj,DialogHeader:()=>gj,Dropdown:()=>Aj,DropdownList:()=>Ej,DropdownParent:()=>Tj,DropdownParentFocus:()=>Oj,DropdownSiblingFocus:()=>Pj,FileIcon:()=>ej,Flex:()=>A$,Focusable:()=>N$,FocusableComponent:()=>z$,Footnote:()=>xI,Form:()=>j$,Grid:()=>T$,Gutter:()=>P$,H1:()=>sI,H2:()=>iI,H3:()=>aI,H4:()=>lI,H5:()=>cI,H6:()=>uI,Headline:()=>bI,Hgroup:()=>$I,HgroupButton:()=>jI,HgroupRows:()=>II,Hoverable:()=>B$,Hr:()=>AI,I:()=>SI,Icon:()=>JI,IconButton:()=>dj,IconText:()=>QI,Iframe:()=>D$,Img:()=>$$,Inline:()=>C$,InlineFlex:()=>E$,InlineGrid:()=>O$,Input:()=>DI,Italic:()=>mI,KangorooButton:()=>uj,Li:()=>TI,Link:()=>ow,Notification:()=>$j,NumberInput:()=>BI,Ol:()=>PI,P:()=>fI,Picture:()=>G$,Radio:()=>HI,RadioHgroup:()=>VI,Range:()=>kj,RouteLink:()=>nj,RouterLink:()=>sw,SHAPES:()=>Qf,Select:()=>sj,Shape:()=>nw,Span:()=>oI,SquareButton:()=>lj,Strong:()=>pI,Subhead:()=>vI,Svg:()=>Y$,Text:()=>nI,Textarea:()=>ZI,TextareaWithButton:()=>XI,Theme:()=>U$,Title:()=>yI,Toggle:()=>UI,ToggleHgroup:()=>GI,Tooltip:()=>bj,TooltipHidden:()=>vj,TooltipParent:()=>xj,U:()=>hI,Ul:()=>OI,Underline:()=>gI,Video:()=>Q$,depth:()=>rw,getSystemGlobalTheme:()=>ed});var _$={};$(_$,{Block:()=>k$,Flex:()=>A$,Grid:()=>T$,Gutter:()=>P$,Inline:()=>C$,InlineFlex:()=>E$,InlineGrid:()=>O$});var k$={display:"block"},C$={display:"inline"},A$={display:"flex"},E$={display:"inline-flex"},T$={display:"grid"},O$={display:"inline-grid"},P$={boxSize:"C1"},R$={};$(R$,{Img:()=>$$});D();var $$={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Le(e);return t&&t.src||e.src},srcset:e=>{let t=Le(e);return(t?el(t):"")||e.srcset}}},I$={};$(I$,{Form:()=>j$});var j$={tag:"form"},F$={};$(F$,{Iframe:()=>D$});var D$={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"},L$={};$(L$,{Clickable:()=>M$,Focusable:()=>N$,FocusableComponent:()=>z$,Hoverable:()=>B$});var t4={appearance:"none",cursor:"pointer",fontFamily:"inherit"},B$={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},M$={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},N$={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},z$={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:t4},W$={};$(W$,{Picture:()=>G$});var H$={};$(H$,{Theme:()=>U$,getSystemGlobalTheme:()=>ed});var V$={};$(V$,{Circle:()=>q$,SHAPES:()=>Qf,Shape:()=>nw,default:()=>r4,depth:()=>rw});D();var Et=U(),rw={4:{boxShadow:`rgba(0,0,0,.10) 0 2${Et.unit.default} 4${Et.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${Et.unit.default} 6${Et.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${Et.unit.default} 10${Et.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${Et.unit.default} 16${Et.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${Et.unit.default} 26${Et.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${Et.unit.default} 42${Et.unit.default}`}},No=e=>be(e.shapeDirectionColor)||be(e.borderColor)||be(e.backgroundColor)||be(e.background),Gu=e=>{let t=qx.transition(e.transition,e);return t&&t.transition},Qf={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:No(e),transition:Gu(e),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:e=>({position:"relative","&:before":{content:'""',display:"block",background:No(e),transition:Gu(e),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:No(e),transition:Gu(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Gu(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${No(e)} 25%, transparent 25%), linear-gradient(315deg, ${No(e)} 25%, transparent 25%)`},"&:after":{background:No(e),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},nw={deps:{exec:De,getSpacingBasedOnRatio:Nn,getMediaColor:lt},classlist:{shape:e=>e.deps.exec(Qf[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Qf[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},q$={round:"100%"},r4=nw;D();var ed=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},U$={deps:{depth:rw},classlist:{depth:e=>!Tt(e.depth)&&e.deps.depth[e.depth]}},G$={deps:{getSystemGlobalTheme:ed},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:ed},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(e),i=(e.media||t).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":o[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}},K$={};$(K$,{AssetPicture:()=>Z$});D();var Z$={tag:"picture",children:e=>{let t=Le(e);if(t)return tl(t,e.alt)}},X$={};$(X$,{Svg:()=>Y$});var Y$={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,s=e.spriteId||r&&r.useSvgSprite,i=e.call("exec",e.src,e);if(!s&&i)return i;let a=f=>`<use xlink:href="#${f}" />`,l=e.spriteId;if(l)return a(l);if(o&&o[i])return a(i);let c=Symbol.for(i),u=o[c];if(u&&o[u])return a(u);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let d=0;for(let f=0;f<i.length;f++)d=(d<<5)-d+i.charCodeAt(f)|0;return u=o[c]=`svg-${(d>>>0).toString(36)}`,n.init({svg:{[u]:i}},{document:t.document,emotion:t.emotion}),a(u)}},J$={};$(J$,{Video:()=>Q$});D();var Q$={tag:"video",controls:!0,attr:{src:e=>{let t=Le(e);return t&&t.src||e.src}},children:e=>{let t=Le(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},eI={};$(eI,{Audio:()=>tI});D();var tI={tag:"audio",controls:!0,attr:{src:e=>{let t=Le(e);return t&&t.src||e.src}},children:e=>{let t=Le(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},rI={};$(rI,{B:()=>wI,Caption:()=>dI,Data:()=>_I,Footnote:()=>xI,H1:()=>sI,H2:()=>iI,H3:()=>aI,H4:()=>lI,H5:()=>cI,H6:()=>uI,Headline:()=>bI,I:()=>SI,Italic:()=>mI,P:()=>fI,Span:()=>oI,Strong:()=>pI,Subhead:()=>vI,Text:()=>nI,Title:()=>yI,U:()=>hI,Underline:()=>gI});var nI={},oI={tag:"span"},sI={tag:"h1"},iI={tag:"h2"},aI={tag:"h3"},lI={tag:"h4"},cI={tag:"h5"},uI={tag:"h6"},fI={tag:"p"},dI={tag:"caption"},pI={tag:"strong",fontWeight:"700"},hI={tag:"u"},gI={tag:"u"},mI={tag:"i"},yI={},bI={tag:"h6",fontSize:"B",fontWeight:500},vI={tag:"span",fontSize:"Z1"},xI={tag:"span",fontSize:"Z"},wI={tag:"b"},SI={tag:"i"},_I={tag:"data"},kI={};$(kI,{Box:()=>CI,Br:()=>EI,Hr:()=>AI,Li:()=>TI,Ol:()=>PI,Ul:()=>OI});var n4=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=vr(t,e,{unpack:!1});r.__class=n},CI={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:n4},AI={tag:"hr",margin:"C1 0"},EI={tag:"br"},TI={tag:"li"},OI={tag:"ul",childExtends:{extends:"Li"}},PI={tag:"ol",childExtends:{extends:"Li"}},RI={};$(RI,{Hgroup:()=>$I,HgroupButton:()=>jI,HgroupRows:()=>II});var sO=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},$I={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:sO,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:sO,margin:"0",color:"paragraph"}},II={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},jI={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}},FI={};$(FI,{Input:()=>DI});var DI={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}},LI={};$(LI,{NumberInput:()=>BI});var BI={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}},MI={};$(MI,{Checkbox:()=>NI,CheckboxHgroup:()=>zI});var NI={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},zI={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}},WI={};$(WI,{Radio:()=>HI,RadioHgroup:()=>VI});var HI={extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},VI={extends:"CheckboxHgroup",Checkbox:null,Radio:{}},qI={};$(qI,{Toggle:()=>UI,ToggleHgroup:()=>GI});var UI={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},GI={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}},KI={};$(KI,{Textarea:()=>ZI,TextareaWithButton:()=>XI});var ZI={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},XI={display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}},YI={};$(YI,{FileIcon:()=>ej,Icon:()=>JI,IconText:()=>QI});var JI={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,l=x=>{let w=x[".isActive"];if(w)return x.call("exec",w.name||w.icon)},c=(x,w,E)=>{let{semanticIcons:A}=E&&E.designSystem,{toCamelCase:C}=E&&E.utils,S=u(x,w),z=C(S).split(/([a-z])([A-Z])/g),re=z[1]?z[0]:S.split(".")[0].split(" ")[0],G=A&&A[re];if(G){let V=S.includes(".")?"sfsymbols."+S.split(".").slice(1).join("."):"sfsymbols";return S=G[V]||G[S.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${S}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(x,w)=>{let{key:E}=x,A=x.call("exec",x.name||x.icon||E,x);return x.call("isString",A)&&A.includes("{{")&&(A=x.call("replaceLiteralsWithObjectFields",A)),x.call("isString",A)?A:E},d=u(e,t);if(d.includes(" ")){let x=d.split(" ");d=x[0]+x.slice(1).map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join("")}let f=a(d),h=f.split(/([a-z])([A-Z])/g),p=c(e,t,r);if(p){Object.assign(e,p);return}let g;e.isActive&&(g=l(e));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=e.call("exec",m.icon||m.Icon.name||m.Icon.icon,e)),e.call("isString",g)&&g.includes("{{")&&(g=e.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[f]?y=f:o[h[0]+h[1]]?y=h[0]+h[1]:o[h[0]]?y=h[0]:i&&e.warn("Can't find icon:",d,y);let b=o[y],v=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||v||o.noIcon})},attr:{viewBox:"0 0 24 24"}},QI={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},ej={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}},tj={};$(tj,{A:()=>rj,Link:()=>ow,RouteLink:()=>nj,RouterLink:()=>sw});var o4=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,h=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!h){e.preventDefault();try{let p=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(p=m,f.routes&&(p.routes=f.routes))}(u.router||c.router||l.router||Yr)(a,p,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(p){console.warn(p)}}},ow={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>Zf(e,e.href)||Zf(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:o4},rj={extends:"Link"},sw={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,h=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!h){e.preventDefault();try{let p=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(p=m,f.routes&&(p.routes=f.routes))}(u.router||c.router||l.router||Yr)(a,p,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(p){console.warn(p)}}}},nj={extends:[ow,sw]},oj={};$(oj,{Select:()=>sj});var sj={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}},ij={};$(ij,{Button:()=>aj,ButtonSet:()=>fj,CircleButton:()=>cj,IconButton:()=>dj,KangorooButton:()=>uj,SquareButton:()=>lj});var aj={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},lj={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},cj={extends:"SquareButton",round:"C"},uj={extends:"Button",childExtends:"IconText"},fj={tag:"nav",display:"flex",childExtends:"SquareButton"},dj={extends:["SquareButton","ClickableItem"],round:"Z"},pj={};$(pj,{Dialog:()=>hj,DialogFooter:()=>mj,DialogHeader:()=>gj});var hj={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},gj={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},mj={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}},yj={};$(yj,{Tooltip:()=>bj,TooltipHidden:()=>vj,TooltipParent:()=>xj});D();var bj={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:e=>Ln(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},vj={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},xj={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}},wj={};$(wj,{Avatar:()=>Sj});var Sj={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`},_j={};$(_j,{Range:()=>kj});var kj={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:Ha("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:Ha("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}},Cj={};$(Cj,{Dropdown:()=>Aj,DropdownList:()=>Ej,DropdownParent:()=>Tj,DropdownParentFocus:()=>Oj,DropdownSiblingFocus:()=>Pj});var Aj={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},Ej={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},Tj={position:"relative",zIndex:999,style:{"&:hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},Oj={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},Pj={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}},Rj={};$(Rj,{Notification:()=>$j});var $j={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}},s4=Object.assign({},_$,R$,I$,F$,L$,W$,K$,X$,V$,J$,eI,H$,rI,kI,RI,FI,LI,MI,WI,qI,KI,YI,tj,oj,ij,pj,yj,wj,_j,Cj,Rj);D();D();D();D();qo();var td={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},i4=Object.create(null);for(let e in td)i4[td[e]]=e;var Xb=Object.create(null);for(let e in td){let t=td[e];if(Xb[t])throw new Error(`Duplicate abbreviation "${t}" for "${e}" \u2014 already used by "${Xb[t]}"`);Xb[t]=e}var a4=0,l4=()=>`${Date.now().toString(36)}-${(a4++).toString(36)}`,ja=(e,t,r={})=>({id:l4(),ts:Date.now(),type:e,level:t,...r}),c4=e=>{let t=[],r=e,n=0;for(;r&&n<32;)r.key!=null&&t.unshift(String(r.key)),r=r.parent,n++;return t.join(" > ")},rd=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:c4(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null,Go=e=>e?.context?.analyze,u4={init:{category:"lifecycle",type:"lifecycle",level:"debug"},create:{category:"lifecycle",type:"lifecycle",level:"debug"},render:{category:"lifecycle",type:"lifecycle",level:"debug"},beforeRemove:{category:"lifecycle",type:"lifecycle",level:"debug"},remove:{category:"lifecycle",type:"lifecycle",level:"debug"}},f4=(e,{category:t,type:r,level:n})=>o=>{let s=Go(o);!s||!s.shouldCapture(t)||s.emit(ja(r,n,{hook:e,element:rd(o)}))},iO=e=>(t,r)=>{let n=Go(t);!n||!n.shouldCapture("state")||n.emit(ja("state","debug",{hook:e,element:rd(t),changedKeys:r?.changedKeys||null}))},d4={name:"analyze",error(e,t){let r=Go(e);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(ja("error","error",{hook:t?.hook||"error",element:rd(e),error:n,message:n?.message||(typeof t?.message=="string"?t.message:null)}))},renderRouter(e){let t=Go(e);t&&(!t.shouldCapture("navigation")&&!t.shouldCapture("lifecycle")||t.emit(ja("navigation","info",{hook:"renderRouter",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=Go(e);!t||!t.shouldCapture("updates")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(e){let t=Go(e);if(!t||!t.shouldCapture("updates"))return;let r=null;e.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-e.__ref.__analyzeUpdateStart,e.__ref.__analyzeUpdateStart=null),t.emit(ja("update","debug",{hook:"update",element:rd(e),durationMs:r}))},beforeStateUpdate:iO("beforeStateUpdate"),stateUpdate:iO("stateUpdate")};for(let[e,t]of Object.entries(u4))d4[e]=f4(e,t);D();D();D();var MX=typeof se<"u"&&typeof se.document<"u";D();var NX=typeof se<"u"&&typeof se.document<"u";D();var zX=typeof se<"u"&&typeof se.document<"u";var er=Object.create(null);er.open="0";er.close="1";er.ping="2";er.pong="3";er.message="4";er.upgrade="5";er.noop="6";var ef=Object.create(null);Object.keys(er).forEach(e=>{ef[er[e]]=e});var f0={type:"error",data:"parser error"},Ij=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",jj=typeof ArrayBuffer=="function",Fj=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,iw=({type:e,data:t},r,n)=>Ij&&t instanceof Blob?r?n(t):aO(t,n):jj&&(t instanceof ArrayBuffer||Fj(t))?r?n(t):aO(new Blob([t]),n):n(er[e]+(t||"")),aO=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function lO(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Yb;function p4(e,t){if(Ij&&e.data instanceof Blob)return e.data.arrayBuffer().then(lO).then(t);if(jj&&(e.data instanceof ArrayBuffer||Fj(e.data)))return t(lO(e.data));iw(e,!1,r=>{Yb||(Yb=new TextEncoder),t(Yb.encode(r))})}var cO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fa=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<cO.length;e++)fa[cO.charCodeAt(e)]=e;var h4=e=>{let t=e.length*.75,r=e.length,n,o=0,s,i,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n<r;n+=4)s=fa[e.charCodeAt(n)],i=fa[e.charCodeAt(n+1)],a=fa[e.charCodeAt(n+2)],l=fa[e.charCodeAt(n+3)],u[o++]=s<<2|i>>4,u[o++]=(i&15)<<4|a>>2,u[o++]=(a&3)<<6|l&63;return c},g4=typeof ArrayBuffer=="function",aw=(e,t)=>{if(typeof e!="string")return{type:"message",data:Dj(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:m4(e.substring(1),t)}:ef[r]?e.length>1?{type:ef[r],data:e.substring(1)}:{type:ef[r]}:f0},m4=(e,t)=>{if(g4){let r=h4(e);return Dj(r,t)}else return{base64:!0,data:e}},Dj=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,Lj="",y4=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((s,i)=>{iw(s,!1,a=>{n[i]=a,++o===r&&t(n.join(Lj))})})},b4=(e,t)=>{let r=e.split(Lj),n=[];for(let o=0;o<r.length;o++){let s=aw(r[o],t);if(n.push(s),s.type==="error")break}return n};function v4(){return new TransformStream({transform(e,t){p4(e,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,n)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var Jb;function Ku(e){return e.reduce((t,r)=>t+r.length,0)}function Zu(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;o<t;o++)r[o]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function x4(e,t){Jb||(Jb=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(Ku(r)<1)break;let l=Zu(r,1);s=(l[0]&128)===128,o=l[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(Ku(r)<2)break;let l=Zu(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(Ku(r)<8)break;let l=Zu(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(f0);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(Ku(r)<o)break;let l=Zu(r,o);a.enqueue(aw(s?l:Jb.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(f0);break}}}})}var Bj=4;function Ae(e){if(e)return w4(e)}function w4(e){for(var t in Ae.prototype)e[t]=Ae.prototype[t];return e}Ae.prototype.on=Ae.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Ae.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};Ae.prototype.off=Ae.prototype.removeListener=Ae.prototype.removeAllListeners=Ae.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};Ae.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,t)}return this};Ae.prototype.emitReserved=Ae.prototype.emit;Ae.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Ae.prototype.hasListeners=function(e){return!!this.listeners(e).length};var Rd=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),Ot=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),S4="arraybuffer";function Mj(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var _4=Ot.setTimeout,k4=Ot.clearTimeout;function $d(e,t){t.useNativeTimers?(e.setTimeoutFn=_4.bind(Ot),e.clearTimeoutFn=k4.bind(Ot)):(e.setTimeoutFn=Ot.setTimeout.bind(Ot),e.clearTimeoutFn=Ot.clearTimeout.bind(Ot))}var C4=1.33;function A4(e){return typeof e=="string"?E4(e):Math.ceil((e.byteLength||e.size)*C4)}function E4(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function Nj(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function T4(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function O4(e){let t={},r=e.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}var P4=class extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}},lw=class extends Ae{constructor(e){super(),this.writable=!1,$d(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new P4(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=aw(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){let t=T4(e);return t.length?"?"+t:""}},R4=class extends lw{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||t()})),this.writable||(r++,this.once("drain",function(){--r||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};b4(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,y4(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=Nj()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},zj=!1;try{zj=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var $4=zj;function I4(){}var j4=class extends R4{constructor(e){if(super(e),typeof location<"u"){let t=location.protocol==="https:",r=location.port;r||(r=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(n,o)=>{this.onError("xhr post error",n,o)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,r)=>{this.onError("xhr poll error",t,r)}),this.pollXhr=e}},Ko=class tf extends Ae{constructor(t,r,n){super(),this.createRequest=t,$d(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=Mj(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=tf.requestsCount++,tf.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=I4,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete tf.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Ko.requestsCount=0;Ko.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",uO);else if(typeof addEventListener=="function"){let e="onpagehide"in Ot?"pagehide":"unload";addEventListener(e,uO,!1)}}function uO(){for(let e in Ko.requests)Ko.requests.hasOwnProperty(e)&&Ko.requests[e].abort()}var F4=(function(){let e=Wj({xdomain:!1});return e&&e.responseType!==null})(),D4=class extends j4{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=F4&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Ko(Wj,this.uri(),e)}};function Wj(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||$4))return new XMLHttpRequest}catch{}if(!t)try{return new Ot[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var Hj=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",L4=class extends lw{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=Hj?{}:Mj(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(n){return this.emitReserved("error",n)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;iw(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}n&&Rd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Nj()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},Qb=Ot.WebSocket||Ot.MozWebSocket,B4=class extends L4{createSocket(e,t,r){return Hj?new Qb(e,t,r):t?new Qb(e,t):new Qb(e)}doWrite(e,t){this.ws.send(t)}},M4=class extends lw{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=x4(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=v4();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();let o=()=>{r.read().then(({done:i,value:a})=>{i||(this.onPacket(a),o())}).catch(i=>{})};o();let s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;this._writer.write(r).then(()=>{n&&Rd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}},N4={websocket:B4,webtransport:M4,polling:D4},z4=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,W4=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function d0(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=z4.exec(e||""),s={},i=14;for(;i--;)s[W4[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=H4(s,s.path),s.queryKey=V4(s,s.query),s}function H4(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function V4(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var p0=typeof addEventListener=="function"&&typeof removeEventListener=="function",rf=[];p0&&addEventListener("offline",()=>{rf.forEach(e=>e())},!1);var nf=class of extends Ae{constructor(t,r){if(super(),this.binaryType=S4,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=d0(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=d0(r.host).host);$d(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=O4(this.opts.query)),p0&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},rf.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=Bj,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&of.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",of.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let r=0;r<this.writeBuffer.length;r++){let n=this.writeBuffer[r].data;if(n&&(t+=A4(n)),r>0&&t>this._maxPayload)return this.writeBuffer.slice(0,r);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Rd(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let s={type:t,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(of.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),p0&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=rf.indexOf(this._offlineEventListener);n!==-1&&rf.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};nf.protocol=Bj;var q4=class extends nf{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),r=!1;nf.priorWebsocketSuccess=!1;let n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",u=>{if(!r)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;nf.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let d=new Error("probe error");d.transport=t.name,this.emitReserved("upgradeError",d)}}))};function o(){r||(r=!0,c(),t.close(),t=null)}let s=u=>{let d=new Error("probe error: "+u);d.transport=t.name,o(),this.emitReserved("upgradeError",d)};function i(){s("transport closed")}function a(){s("socket closed")}function l(u){t&&u.name!==t.name&&o()}let c=()=>{t.removeListener("open",n),t.removeListener("error",s),t.removeListener("close",i),this.off("close",a),this.off("upgrading",l)};t.once("open",n),t.once("error",s),t.once("close",i),this.once("close",a),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}},Vj=class extends q4{constructor(e,t={}){let r=typeof e=="object"?e:t;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(n=>N4[n]).filter(n=>!!n)),super(e,r)}},WX=Vj.protocol;function U4(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=d0(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let o=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port+t,n.href=n.protocol+"://"+o+(r&&r.port===n.port?"":":"+n.port),n}var qj={};$(qj,{Decoder:()=>rz,Encoder:()=>tz,PacketType:()=>J,isPacketValid:()=>az,protocol:()=>ez});var G4=typeof ArrayBuffer=="function",K4=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Uj=Object.prototype.toString,Z4=typeof Blob=="function"||typeof Blob<"u"&&Uj.call(Blob)==="[object BlobConstructor]",X4=typeof File=="function"||typeof File<"u"&&Uj.call(File)==="[object FileConstructor]";function cw(e){return G4&&(e instanceof ArrayBuffer||K4(e))||Z4&&e instanceof Blob||X4&&e instanceof File}function sf(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(sf(e[r]))return!0;return!1}if(cw(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return sf(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&sf(e[r]))return!0;return!1}function Y4(e){let t=[],r=e.data,n=e;return n.data=h0(r,t),n.attachments=t.length,{packet:n,buffers:t}}function h0(e,t){if(!e)return e;if(cw(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){let r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=h0(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=h0(e[n],t));return r}return e}function J4(e,t){return e.data=g0(e.data,t),delete e.attachments,e}function g0(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=g0(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=g0(e[r],t));return e}var Q4=XM(R5(),1),m0=(0,Q4.default)("socket.io-parser"),Gj=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ez=5,J;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(J||(J={}));var tz=class{constructor(e){this.replacer=e}encode(e){return m0("encoding packet %j",e),(e.type===J.EVENT||e.type===J.ACK)&&sf(e)?this.encodeAsBinary({type:e.type===J.EVENT?J.BINARY_EVENT:J.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===J.BINARY_EVENT||e.type===J.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),m0("encoded %j as %s",e,t),t}encodeAsBinary(e){let t=Y4(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}},rz=class Kj extends Ae{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);let n=r.type===J.BINARY_EVENT;n||r.type===J.BINARY_ACK?(r.type=n?J.EVENT:J.ACK,this.reconstructor=new nz(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(cw(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0,n={type:Number(t.charAt(0))};if(J[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===J.BINARY_EVENT||n.type===J.BINARY_ACK){let s=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);let i=t.substring(s,r);if(i!=Number(i)||t.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!Zj(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=a}if(t.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(s,r)}else n.nsp="/";let o=t.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=t.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===t.length)break}n.id=Number(t.substring(s,r+1))}if(t.charAt(++r)){let s=this.tryParse(t.substr(r));if(Kj.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return m0("decoded %s as %j",t,n),n}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case J.CONNECT:return nd(r);case J.DISCONNECT:return r===void 0;case J.CONNECT_ERROR:return typeof r=="string"||nd(r);case J.EVENT:case J.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&Gj.indexOf(r[0])===-1);case J.ACK:case J.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},nz=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let t=J4(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function oz(e){return typeof e=="string"}var Zj=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function sz(e){return e===void 0||Zj(e)}function nd(e){return Object.prototype.toString.call(e)==="[object Object]"}function iz(e,t){switch(e){case J.CONNECT:return t===void 0||nd(t);case J.DISCONNECT:return t===void 0;case J.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&Gj.indexOf(t[0])===-1);case J.ACK:return Array.isArray(t);case J.CONNECT_ERROR:return typeof t=="string"||nd(t);default:return!1}}function az(e){return oz(e.nsp)&&sz(e.id)&&iz(e.type,e.data)}function qt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var lz=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Xj=class extends Ae{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[qt(e,"open",this.onopen.bind(this)),qt(e,"packet",this.onpacket.bind(this)),qt(e,"error",this.onerror.bind(this)),qt(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,n,o;if(lz.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let s={type:J.EVENT,data:t};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){let l=this.ids++,c=t.pop();this._registerAckCallback(l,c),s.id=l}let i=(n=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||n===void 0?void 0:n.writable,a=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!i||(a?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(e,t){var r;let n=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(n===void 0){this.acks[e]=t;return}let o=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let i=0;i<this.sendBuffer.length;i++)this.sendBuffer[i].id===e&&this.sendBuffer.splice(i,1);t.call(this,new Error("operation has timed out"))},n),s=(...i)=>{this.io.clearTimeoutFn(o),t.apply(this,i)};s.withError=!0,this.acks[e]=s}emitWithAck(e,...t){return new Promise((r,n)=>{let o=(s,i)=>s?n(s):r(i);o.withError=!0,t.push(o),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((n,...o)=>(this._queue[0],n!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(n)):(this._queue.shift(),t&&t(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:J.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case J.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case J.EVENT:case J.BINARY_EVENT:this.onevent(e);break;case J.ACK:case J.BINARY_ACK:this.onack(e);break;case J.DISCONNECT:this.ondisconnect();break;case J.CONNECT_ERROR:this.destroy();let t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,r=!1;return function(...n){r||(r=!0,t.packet({type:J.ACK,id:e,data:n}))}}onack(e){let t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:J.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let r of t)r.apply(this,e.data)}}};function Qo(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Qo.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};Qo.prototype.reset=function(){this.attempts=0};Qo.prototype.setMin=function(e){this.ms=e};Qo.prototype.setMax=function(e){this.max=e};Qo.prototype.setJitter=function(e){this.jitter=e};var y0=class extends Ae{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,$d(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((r=t.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Qo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;let n=t.parser||qj;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Vj(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=qt(t,"open",function(){r.onopen(),e&&e()}),o=i=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",i),e?e(i):this.maybeReconnectOnOpen()},s=qt(t,"error",o);if(this._timeout!==!1){let i=this._timeout,a=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),t.close()},i);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(n),this.subs.push(s),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(qt(e,"ping",this.onping.bind(this)),qt(e,"data",this.ondata.bind(this)),qt(e,"error",this.onerror.bind(this)),qt(e,"close",this.onclose.bind(this)),qt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){Rd(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new Xj(this,e,t),this.nsps[e]=r),r}_destroy(e){let t=Object.keys(this.nsps);for(let r of t)if(this.nsps[r].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(n=>{n?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",n)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}},ia={};function e0(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=U4(e,t.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=ia[o]&&s in ia[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||i,l;return a?l=new y0(n,t):(ia[o]||(ia[o]=new y0(n,t)),l=ia[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(e0,{Manager:y0,Socket:Xj,io:e0,connect:e0});D();D();D();UN(rN);F();var Yj=(e,t,r)=>(n={})=>{let{data:o}=n,{schema:s}=n;o&&(o=e.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?Pd(a):on(r[i],a):r[i]=a}),s&&(r.schema=s))},Jj=(e,t,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=e.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=lT(r,o);if(s.has("state")&&t.update(r.state),["pages","components","snippets","functions","assets"].some(i=>s.has(i))){let{pathname:i,search:a,hash:l}=r.window.location;e.call("router",i+a+l,e.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&Pd(r.designSystem)};var cz={success:"green",error:"red",warning:"yellow"},Qj=(e,t,r)=>{if(e.symbols){if(!r.connected){r.notifications.connected={title:"Connected",message:"to the Symbols live server"},r.update({connected:!0});let n=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}}else if(r.connected){r.notifications.connected={title:"Disconnected",type:"error"},r.update({connected:!1});let n=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected&&t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},eF={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:e})=>({animationDuration:"C",background:cz[e.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(t,r,n)=>{r.update({animation:"fadeInUp"})},onClick:(t,r,n)=>{delete n.notifications[r.key],r.update({animation:"fadeOutDown"}),n.onClose&&n.onClose(t,r,n)}}),IconText:null,childrenAs:"state",children:({state:e})=>e.notifications}};var uz=!1,fz=()=>uz?"http://localhost:8080":"https://api.symbols.app",dz=e=>{let t=e&&e.editor&&e.editor.socketUrl||e&&e.settings&&e.settings.socketUrl;return typeof t=="string"&&t?{mode:"collab",baseUrl:t}:e&&e.editor&&e.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:{mode:null,baseUrl:null}},pz=async e=>{try{let t=e||fz(),r=await T.fetch(`${t}/service-token`,{method:"GET"}),n;try{let o=await r.clone().json();if(o&&typeof o.token=="string")return o.token.trim();n=await r.text()}catch{n=await r.text()}return(n||"").replace(/\s+/gu,"")||void 0}catch(t){console.error("[sync] Failed to fetch service-token",t)}},nF=(e,t,r,n)=>{e.on("snapshot",Yj(t,r,n)),e.on("ops",Jj(t,r,n)),e.on("clients",o=>{n.editor?.verbose&&Qj(o,t,r)}),e.on("disconnect",o=>{n.editor?.verbose&&console.info("[sync] disconnected",o)})},hz=async(e,t,r,n)=>{let o=await pz(n);if(!o)return console.warn("[sync] no service token \u2014 collab disabled"),null;let s=r.key;if(!s)return console.warn("[sync] ctx.key missing \u2014 collab cannot authenticate"),null;let i=r.editor?.projectId||null,a=Io(n,{path:"/collab-socket",transports:["websocket"],auth:{token:o,projectId:i,projectKey:s,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return a.on("connect",()=>{r.editor?.verbose&&console.info("[sync] connected (collab)")}),nF(a,e,t,r),a},gz=(e,t,r)=>{let n=Io({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),nF(n,e,t,r),n.on("reload",()=>{typeof T<"u"&&T.location&&T.location.reload()}),n},mz=async(e,t,r)=>{let{mode:n,baseUrl:o}=dz(r);return n?n==="collab"?hz(e,t,r,o):n==="runner"?gz(e,t,r):null:null},yz={onInit:mz};var oF=e=>typeof e>"u",tF=e=>!!(e?.editor?.socketUrl||e?.settings?.socketUrl),rF=e=>e?.editor?.runtime==="runner",sF=(e,t)=>{Array.isArray(e.extends)?e.extends.push(t):e.extends?e.extends=[e.extends,t]:e.extends=[t]},iF={name:"sync",beforeCreate(e,t){let r=t&&t.editor;(r&&!oF(r.liveSync)?r.liveSync:tF(t)||rF(t))&&(tF(t)&&!rF(t)&&!t?.key||sF(e,yz))}},aF={name:"notifications",beforeCreate(e,t){if(!t)return;let r=oF(t.notifications)?null:t.notifications,n=t.editor&&t.editor.verbose===!0;(r===!0||r!==!1&&n)&&sF(e,eF)}};F();function lF(e){return k(e)?e:j(e)?e.find(t=>k(t)):""}function fw(e){if(!e)return;let t=e.__ref.__componentKey,r=e.extends&&lF(e.extends),n=e.parent&&e.parent.childExtends&&lF(e.parent.childExtends);return(t||r||n||"").split("_")[0].split(".")[0].split("+")[0]}function Id(e){if(!e||!e.__ref)return;let{components:t,pages:r,editor:n}=e.context,o=fw(e);return n&&n.onInitInspect&&!n.onInitInspect(o,e,e.state)?Id(e.parent):o&&(t[o]||r[o])?e:Id(e.parent)}var bz=(e,t,r)=>{let n=r.window||window;n.onkeydown=o=>{o.altKey&&o.shiftKey&&e.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},n.onkeyup=o=>{e.state.preventSelect&&(!o.altKey||!o.shiftKey)&&(e.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),e.Inspector.state.update({area:!1}))}},uw={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:bz,onMousemove:(e,t,r)=>{let n=e.target.ref,o=Id(n),s=t.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=fw(o),a=c=>{s.update({area:c,focusKey:i})},l=()=>{if(e.altKey&&e.shiftKey){let{x:c,y:u,width:d,height:f}=o.node.getBoundingClientRect(),h={x:c,y:u,width:d,height:f};if(!s.area)return a(h);s.area.x!==h.x&&a(h)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{l(),window.requestAnimationFrame(l)})},onMousedown:(e,t,r)=>{if(!r.debugging)return;let n=e.target.ref,o=Id(n);if(!o)return;let s=fw(o);if(!s)return;let i=n.context.editor;if(i&&i.onInspect)return i.onInspect(s,n,n.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return n.context.socket?.emit&&n.context.socket.emit("route",a),e.preventDefault(),e.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(e,t)=>!(t.area&&t.parent.debugging),style:{boxShadow:"0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",zIndex:"9999999",borderRadius:"10px",pointerEvents:"none"},Span:{position:"absolute",margin:"A2 0",fontSize:"Z",color:"text",zIndex:"99999999",transition:"all, defaultBezier, X",textDecoration:"underline",fontWeight:"500",top:"100%",style:{boxShadow:"0 25px 10px 35px black",textShadow:"0 0 10px black"},text:"{{ focusKey }}"},onInit:({context:e})=>{let{components:t}=e;if(_(t)){let{Content:r,...n}=t;for(let o in n)fu[o]||(n[o].__ref||(n[o].__ref={}),n[o].__ref.__componentKey||(n[o].__ref.__componentKey=o))}},onBeforeUpdate:(e,t,r)=>{let{area:n}=r,o=r.area&&r.parent.debugging,s;if(!o)s="display: none !important";else if(n){let{x:i,y:a,width:l,height:c}=n;s=`
|
|
103
|
+
src: ${o};`},Na=(e,t,r,n)=>`@font-face {${M0(e,t,r,n)}
|
|
104
|
+
}`,fd=(e,t,r)=>Object.keys(t).map(n=>{let{url:o,fontWeight:s,fontStyle:i,fontDisplay:a,fontStretch:l}=t[n],c=Array.isArray(o)?o.map(u=>gr(u,r)||u):gr(o,r)||o;return M0(e,c,s,{fontStyle:i,fontDisplay:a,fontStretch:l})}),Gj=e=>Object.keys(e).map(t=>fd(t,e[t].value)),KE=(e,t,r)=>{if(t&&t.isVariable){let o=gr(t.url,r)||t.url;return D0(o)?L0(o):Na(e,o,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return fd(e,t,r).map(GE);let n=Array.isArray(t.url)?t.url.map(o=>gr(o,r)||o):gr(t.url,r)||t.url;return Na(e,n,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},XE=(e,t)=>Object.keys(e).map(r=>KE(r,e[r].value,t));M();M();M();var YE={};X(YE,{animation:()=>hD,breakpoints:()=>dD,class:()=>vD,color:()=>nD,devices:()=>pD,document:()=>fD,font:()=>Yj,fontFace:()=>Qj,fontFamily:()=>Zj,fontFamilyTypes:()=>Jj,gradient:()=>oD,grid:()=>xD,icons:()=>aD,media:()=>eD,reset:()=>_D,semanticIcons:()=>lD,sequence:()=>dd,shadow:()=>iD,spacing:()=>rD,svg:()=>gD,svgData:()=>mD,templates:()=>yD,theme:()=>sD,timing:()=>uD,typography:()=>ZE,unit:()=>Kj,vars:()=>wD});var dd={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4},Kj={default:"em"},Xj={browserDefault:16,base:16,type:"font-size",ratio:dd["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},ZE=Xj,Yj={},Zj={},Jj={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},Qj={},eD={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"},tD={base:ZE.base,type:"spacing",ratio:dd.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},rD=tD,nD={},oD={},sD={},iD={},aD={},lD={},cD={default:150,base:150,type:"timing",ratio:dd["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},uD=cD,fD={},dD={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},pD={screenXXL:[2560,1440],screenXL:[2240,1260],screenL:[1920,1024],screenM:[1680,1024],screenS:[1440,720],tabletL:[1366,926],tabletM:[1280,768],tabletS:[1024,768],mobileL:[768,375],mobileM:[560,768],mobileS:[480,768],mobileXS:[375,768]},hD={},gD={},mD={},yD={},bD={},xD=bD,vD={},_D={},wD={},uA={},fA={},Iu=YE,Nu={},JE=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in Iu){let t=e.toLowerCase();Nu[t]=Iu[e];let r=JE(t);r!==t&&(Nu[r]=Iu[e]),t!==e&&(Nu[e]=Iu[e])}var N0={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:uA,cssMediaVars:fA,CSS_VARS:uA,CSS_MEDIA_VARS:fA,_scratchConfig:!0,...Nu},SD=et(N0),Ff={active:"0",0:N0};var Aa=[],kD=e=>{e&&e._scratchConfig&&Aa.push(e)},CD=()=>{Aa.pop()},H=e=>Aa.length?Aa[Aa.length-1]:Ff[e||Ff.active]||N0,AD=e=>{if(j(e))return Ff.active="1",Ff[1]=Qt(e,et(SD)),e};var Ur={"-6":"U","-5":"V","-4":"W","-3":"X","-2":"Y","-1":"Z",0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T"},B0=(e,t)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=e;t.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},t.scales[r]=s;let l=QE.has(t.unit)?"rem":t.unit;t.vars[n]=s+l},Ya=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},QE=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),V0=(e,t)=>{let{base:r,type:n,unit:o}=t,s=QE.has(o)?"rem":o,i=(I0(s)?1:r)+s;if(e===0)return i;let a="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-")),l=`${a}-ratio`;if(e>0){let c=Ur[e-1];return`calc(var(${a}-${c}) * var(${l}))`}if(e<0){let c=Ur[e+1],u=Math.abs(e),d=Math.pow(rO,2*u),f=Ur[u];return f?`max(calc(var(${a}-${c}) / var(${l})), calc(var(${a}-${f}) / ${d.toFixed(4)}))`:`calc(var(${a}-${c}) / var(${l}))`}},eO=(e,t,r,n)=>{let{type:o}=n,s=e===2&&t.length===2?e+1:e,i=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${i+s}))`},z0=(e,t)=>{let r=(e*t-e)/1.618,n=e*t-r,o=e+r,s=(n+o)/2;return[n,s,o]},tO=(e,t)=>z0(e,t).map(r=>r/e),W0=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,l=~~(o*s)-~~o,c,[u,d,f]=z0(o,s);l>16?c=[u,d,f]:c=[u,f],c.forEach((p,h)=>{let g=~~(p/n*1e3)/1e3,m=i+(h+1),y=a+(h+1)/10,b=eO(h+1,c,i,t),x={key:r+(h+1),variable:m,value:p,scaling:g,scalingVariable:b,index:y};B0(x,t)})},rO=1.618,ED=(e,t,r)=>{if(e>=0)return t*Math.pow(r,e);let n=Math.abs(e),o=t*Math.pow(r,e),s=t*Math.pow(r,n)/Math.pow(rO,2*n);return Math.max(o,s)},Hr=e=>{let{type:t,base:r,ratio:n,range:o,subSequence:s}=e,i=Math.abs(o[0])+Math.abs(o[1]),a="--"+(e.varPrefix?e.varPrefix+"-":"")+(t&&t.replace(".","-"))+"-";for(let l=0;l<=i;l++){let c=o[1]-l,u=Ur[c],d=ED(c,r,n),f=~~(d/r*100)/100,p=a+u,h=V0(c,e),g={key:u,variable:p,value:d,base:r,scaling:f,scalingVariable:h,ratio:n,index:c};B0(g,e),s&&W0(g,e)}return e},OD=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=R(t)?t:Ur[t],a=R(t)?Object.entries(Ur).find(([,h])=>h===t)?.[0]:t;if(!i)return console.warn(`Position ${t} is out of range in numToLetterMap`),null;let l={sequence:{},scales:{},vars:{},...e},c=n*Math.pow(o,a),u=~~(c/n*100)/100,d="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,f=V0(a,e),p={key:i,variable:d,value:c,base:n,scaling:u,scalingVariable:f,ratio:o,index:a};return B0(p,l),s&&W0(p,l),l},U0=(e="A",t)=>{let r=H(),{unit:n}=r;if(R(e)&&We(e))return`var(${e})`;let{sequence:o,unit:s=n.default,useVariable:i}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(F0.some(m=>e.includes(m))||!l||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(e))return e;let c=`--${t.varPrefix?t.varPrefix+"-":""}${ad(t.type.replace(".","-"))}-`,u=e.toUpperCase(),d=u.slice(0,1)==="-"?"-":"",f=d?u.slice(1):u,p="";f.includes("_")&&(p="_"+f.split("_")[1].toLowerCase(),f=f.split("_")[0]);let h=m=>a.test(m)?`var(${c}${m}${p})`:m;if(f.includes("+")){let[m,y]=f.split("+"),b=`${h(m)} + ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("*")){let[m,y]=f.split("*"),b=`${h(m)} * ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("-")){let[m,y]=f.split("-"),b=`${h(m)} - ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}if(!o[f]&&f.length===2&&(r.verbose&&console.warn(f,"- value is not found because `subSequence` is set to false"),f=f.slice(0,1)),i||r.useVariable){let m=`var(${c}${f}${p})`;return d?`calc(${m} * -1)`:m}let g=o?o[f]:null;return g?s==="ms"||s==="s"?d+g.val+s:d+g.scaling+s:console.warn("can't find",o,f)},nO=(e,t)=>{if(!["+","-","*","/",","].filter(n=>e.includes(n+" ")).length)return e;let r=/(\s*[+\-*/,]\s*)/;return e.split(r).map(n=>{let o=n.trim();return!o||["+","-","*","/",","].includes(o)?n:U0(o,t)}).join("")},Ba=(e,t,r,n)=>{if(typeof e!="string")return H().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let o=Ya(e);n=o[0],e=o[1]}return["+","-","*","/",","].filter(o=>e.includes(o+" ")).length?e=nO(e,r):e=U0(e,r),{[t]:n?`${n}(${e})`:e}},oO=(e,t)=>Ur[e-t],sO=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=oO(t,o);return r[s]})};M();var TD=(e,t)=>{let r=H(),{cssVars:n}=r;oe(e.value)||(n[e.var]=e.value)},H0=(e,t,r)=>{let n=H(),{unit:o}=n,s=t.unit||o.default,{base:i,ratio:a,type:l}=t,c="--"+(t.varPrefix?t.varPrefix+"-":"")+(l&&l.replace(".","-"));e[`${c}-base`]=i,e[`${c}-unit`]=s;let u=`${c}-ratio`;e[u]=a;let[d,f,p]=tO(i,a);e[`${c}-sub-ratio-1`]=`calc(var(${c}-ratio) * ${d/a})`,e[`${c}-sub-ratio-2`]=`calc(var(${c}-ratio) * ${f/a})`,e[`${c}-sub-ratio-3`]=`calc(var(${c}-ratio) * ${p/a})`},iO=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),pd=(e,t={})=>{let r=H(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=iO.has(i)?"rem":i,{mediaRegenerate:l,sequence:c,scales:u}=e;l||H0(s,e,t);for(let d in c){let f=c[d],p=(e.type===o.type?c[d].val:u[d])+a;if(!l){s[f.variable+"_default"]=p,s[f.variable]=f.scalingVariable;continue}t.useDefault===!1?s[f.variable]=p:(s[f.variable+"_default"]=p,s[f.variable]=`var(${f.variable+"_default"})`)}},jf=(e,t,r={})=>{let n=H(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=iO.has(c)?"rem":c,{mediaRegenerate:d}=e,{sequence:f,scales:p}=l,h=s[a];if(!h&&n.verbose&&console.warn("Can't find media query ",h),!d){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),H0(g,l,r);let m=e.unit||o.default;if(u!==m&&f)for(let y in f){let b=f[y],x=p[y]+u;g[b.variable+"_default"]=x,g[b.variable]=x}return}for(let g in f){let m=f[g],y=(I0(u)?p[g]:f[g].val)+u;!h&&n.verbose&&console.warn("Can't find query ",h);let b=i[`@media ${h}`];b||(b=i[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};M();var PD=Ha(),pb=e=>{let t=H(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},RD=e=>{let t=e&&(e.default||e);if(!R(t))return PD&&console.warn("parseRootAttributes:",t,"is not a string"),{};let r=t.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let n=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return n?n.reduce((o,s)=>{let[i,a]=s.split("=");return o[i]=a.replace(/['"]/g,""),o},{}):{}},$D=(e,t)=>{let r=[];if(e.replace(/id="([^"]*)"/g,(o,s)=>(r.push(s),o)),!r.length)return e;let n=e;for(let o of r){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${t}-${o}`;n=n.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return n},aO=(e,t)=>{let r=RD(t),{width:n,height:o}=r,s=r.viewBox||`0 0 ${n||24} ${o||24}`,i=$D(t,e).replace("<svg",`<symbol id="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="${s}"`);return i=i.replace(/width="[^"]*"/,""),i=i.replace(/height="[^"]*"/,""),i=i.replace("</svg","</symbol"),i=jD(i),i},ID="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",FD=new RegExp(`<(${ID})\\b([^>]*?)\\s*/>`,"g"),jD=e=>e.replace(FD,"<$1$2></$1>"),lO={};X(lO,{appendSVGSprite:()=>SO,appendSvgIconsSprite:()=>CO,applyDocument:()=>wO,applyHeadings:()=>hO,applyReset:()=>EO,applySpacingSequence:()=>bO,applyTimingSequence:()=>_O,applyTypographySequence:()=>gO,checkIfBoxSize:()=>yO,getColor:()=>Te,getFontFamily:()=>dO,getFontSizeByKey:()=>mO,getMediaColor:()=>wt,getMediaTheme:()=>qr,getShadow:()=>vO,getSpacingBasedOnRatio:()=>Wo,getSpacingByKey:()=>ze,getTheme:()=>q0,getTimingByKey:()=>hr,getTimingFunction:()=>Tn,runThroughMedia:()=>pO,setColor:()=>Ea,setFont:()=>fO,setFontFamily:()=>mb,setGradient:()=>Oa,setMediaTheme:()=>G0,setSVG:()=>X0,setShadow:()=>Ta,setSvgIcon:()=>kO,setTheme:()=>cO,splitSpacedValue:()=>xO});M();var Te=(e,t,r)=>{let n=r||H();if(!R(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(We(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,s,i;if(U(e))[o,s,i]=e;else{let d=Xa(e);if(!d){let{color:f,gradient:p}=n,h=p[e]||f[e];return h?n.useVariable?`var(${h.var})`:h.value:e}if(d.passthrough)return d.passthrough;if(d.cssVar)return`var(${d.cssVar})`;o=d.name,s=d.alpha,i=d.tone}let{color:a,gradient:l}=n,c=a[o]||l[o];if(!c)return n.verbose&&console.warn("Can't find color ",o),e;t&&(c[t]?c=c[t]:n.verbose&&console.warn(e," - does not have ",t));let u=c.rgb;return u?(i&&!c[i]&&(u=Ca(u,i),c[i]={rgb:u,var:`${c.var}-${i}`}),c[i]&&(u=c[i].rgb),s?`rgba(${u}, ${s})`:i?`rgba(${u}, 1)`:n.useVariable?`var(${c.var})`:`rgb(${u})`):n.useVariable?`var(${c.var})`:c.value},wt=(e,t,r)=>{let n=r||H();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!R(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(We(e))return`var(${e})`;let o;if(U(e))o=e[0];else{let c=Xa(e);if(!c)return e;if(c.passthrough)return c.passthrough;if(c.cssVar)return`var(${c.cssVar})`;o=c.name}let{color:s,gradient:i}=n,a=s[o]||i[o],l=j(a);if(l&&a.value)return Te(e,`@${t}`,r);if(l){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return Te(e,`@${t}`,r);{let c={};for(let u in a){if(u.charCodeAt(0)!==64)continue;let d=n.media[u.slice(1)];if(!d)continue;let f="@media "+(d==="print"?`${d}`:`screen and ${d}`);c[f]=Te(e,u,r)}return c}}else return n.verbose&&console.warn("Can't find color",e),e},Ea=(e,t,r)=>{let n=H();if(R(e)&&We(e)){let h=e.slice(2);if(e=Te(h),!(e.includes("rgb")||e.includes("var")||e.includes("#"))){let g=h.split(" "),m=n.color[g[0]];if(m&&!m.value&&!m.rgb&&(R(m)||U(m)||j(m))&&(n.color[g[0]]=Ea(m,g[0]),m=n.color[g[0]]),m&&m.value){let y=m.rgb,b=g[1]!==void 0?g[1]:"1",x=g[2];x&&(y=Ca(y,x)),e=`rgba(${y}, ${b})`}else{let y=g[2],b=g[1]!==void 0?g[1]:"1";if(y)try{let x=$n(g[0]);x&&x.length>=3?e=`rgba(${Ca(x.slice(0,3).join(", "),y)}, ${b})`:e=g[0]}catch{e=g[0]}else e=g[0]}}}if(U(e)&&(e={"@light":e[0],"@dark":e[1]}),j(e)){let h={};for(let g in e)h[g]=Ea(e[g],t,g.slice(0,1)==="@"?g.slice(1):g);if(n.useVariable){let g=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`,m,y={};for(let b in h){if(b.charCodeAt(0)!==64)continue;let x=b.slice(1),v=h[b],_=v&&(v.value||v);!_||typeof _!="string"||(y[x]=_,(x==="light"||m===void 0)&&(m=_))}if(m!==void 0){n.cssVars[g]=m,n.cssMediaVars||(n.cssMediaVars={});for(let b in y){let x=`[data-theme="${b}"]`;if(n.cssMediaVars[x]||(n.cssMediaVars[x]={}),n.cssMediaVars[x][g]=y[b],b==="light"||b==="dark"){let v=`@media (prefers-color-scheme: ${b})`;n.cssMediaVars[v]||(n.cssMediaVars[v]={}),n.cssMediaVars[v][g]=y[b]}}h.var=g}}return h}let o=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),s=e.value||e;if(R(s)&&s.includes(".")&&!s.includes("(")){let[h,g]=s.split("."),m=n.color[h];m&&m.rgb&&(s=`rgba(${m.rgb}, ${parseFloat("0."+g)||1})`)}if(R(s)&&!s.includes("(")&&!s.startsWith("#")){let h=Xa(s);if(h&&h.name&&!h.passthrough&&!h.cssVar){let g=n.color[h.name];g&&!g.value&&!g.rgb&&(R(g)||U(g)||j(g))&&(n.color[h.name]=Ea(g,h.name));let m=n.color[h.name];if(m&&m.rgb){let y=m.rgb;h.tone&&(y=Ca(y,h.tone));let b=h.alpha?parseFloat(h.alpha):1;s=`rgba(${y}, ${b})`}}}let i=$n(s),[a,l,c,u=1]=i,d=parseFloat(u.toFixed(2)),f=`${a}, ${l}, ${c}`,p=`rgba(${f}, ${d})`;return n.useVariable&&(n.cssVars[o]=p),{var:o,rgb:f,alpha:d,value:p}},Oa=(e,t,r)=>{let n=H();if(R(e)&&We(e)&&(e=Te(e.slice(2))),U(e))return{"@light":Oa(e[0],t,"light"),"@dark":Oa(e[0],t,"dark")};if(j(e)){let s={};for(let i in e)s[i]=Oa(e[i],t,i.slice(0,1)==="@"?i.slice(1):i);return s}let o=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${t}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[o]=e.value||e),{var:o,value:e.value||e}};M();var DD=new Set(["black","white","red","green","blue","yellow","orange","purple","pink","brown","gray","grey","cyan","magenta","lime","olive","navy","teal","aqua","maroon","silver","fuchsia","transparent","currentColor","currentcolor","inherit","initial","unset","none","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),dA=["color","Color","background","Background","fill","Fill","stroke","Stroke"],LD=e=>{for(let t=0;t<dA.length;t++)if(e.includes(dA[t]))return!0;return!1},hd=e=>{let t={},{state:r,media:n,helpers:o,...s}=e;return Object.keys(s).map(i=>{let a=["color","Color","background","border"].some(l=>i.includes(l));return t[i]=a?Te(e[i]):e[i]}),t},sa=e=>(e.value||(e.value=hd(e)),e.value),q0=(e,t)=>{let r=H();if(r.useVariable)return qr(e,t);let n=r.theme;if(R(e)){let[o,s]=e.split(" "),i=n[o];if(i){if(!s&&!t)return sa(i);e=[o,s||t]}}if(oe(e)&&e[1]){let o=e[0],s=e[1],{helpers:i,media:a,state:l}=n[o];if(a&&a[s])return sa(a[s]);if(i&&i[s])return sa(i[s]);if(l&&l[s])return sa(l[s])}else if(j(e))return hd(e)},MD=(e,t,r)=>{if(j(t))e.variants.inverse.value=hd(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},ND=(e,t,r,n)=>{let o=q0(r);n[`&:${t}`]=o,j(r)&&!r.value&&(r.value=o)},BD=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return ND(e,n,o,t),e}),e):void 0},VD=(e,t,r,n)=>{let o=q0(r);n[`@media (prefers-color-scheme: ${t})`]=o,j(r)&&!r.value&&(r.value=o)},zD=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return(n==="dark"||n==="light")&&VD(e,n,o,t),n==="inverse"&&MD(e,o,t),e}),e):void 0},WD=(e,t)=>{let r=H(),{helpers:n}=e;return n?(Object.keys(n).map(o=>{let s=n[o];return R(s)?n[o]=r.theme[s]:sa(n[o]),e}),e):void 0},cO=(e,t)=>{let r=H();if(r.useVariable)return G0(e,t);let{state:n,media:o,helpers:s}=e,i=hd(e,t),a=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return BD(e,i),zD(e,i),WD(e,i),{var:a,value:i,state:n,media:o,helpers:s}},hb=(e,t,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let c in e)if(e[c])for(let u of Object.keys(e[c]))a.add(u);let l=new Set;for(let c of a){let u=c.slice(0,1);if(!(u==="@"||u==="."||u===":")&&LD(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let p=Te(f,`@${d}`);p!==void 0&&R(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!DD.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>oe(f?.[c]));if(u==="."&&d){let f=c.slice(1),p={};for(let h in e)oe(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=hb(p,`${t}-${f}`,r)}else if(u===":"&&d){let f=c.replace(/^:+/,""),p={};for(let h in e)oe(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=hb(p,`${t}-${f}`,r)}else if(u!=="@"&&u!=="."&&u!==":"){let f=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}-${c}`,p=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,h;for(let g in e){if(l.has(g))continue;let m=e[g]?.[c];if(m===void 0)continue;let y=Te(m,`@${g}`);if(y===void 0)continue;(p&&g===p||!p&&(g==="light"||h===void 0))&&(h=y);let b=`[data-theme="${g}"]`;if(o[b]||(o[b]={}),o[b][f]=y,g==="dark"||g==="light"){let x=`@media (prefers-color-scheme: ${g})`;o[x]||(o[x]={}),o[x][f]=y}}h!==void 0&&(n[f]=h),i[c]=`var(${f})`,i[`.${c}`]={[c]:i[c]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},G0=(e,t,r,n)=>{let o=H(),{cssVars:s}=o,i={value:e},a=!r&&!n;if(oe(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith("@")&&oe(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=hb(l,t,o);Object.assign(i,c)}}for(let l in e){let c=l.slice(0,1),u=e[l];if(c==="@"||c===":"||c==="."){let d=c==="@"&&l;i[l]=G0(u,t,l,n||d)}else if(!a){let d=Te(u,n),f=[...new Set([n,r].filter(g=>g).map(g=>g.slice(1)))],p=f.length?"-"+f.join("-"):"",h=`--${o.varPrefix?o.varPrefix+"-":""}theme-${t}${p}-${l}`;o.useVariable?(o.useThemeSuffixedVars&&(s[h]=d),i[l]=`var(${h})`):i[l]=d,i[`.${l}`]={[l]:i[l]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(R(e)&&We(e)){let l=o.theme[e.slice(2)];return qr(l,n)}return i},gb=e=>{let t=H(),r={};for(let n in e){let o=n.slice(0,1);if(oe(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=gb(e[n]):o==="."&&(r[`&${n}`]=gb(e[n]))}else r[n]=e[n]}return r},uO=(e,t)=>{let r=t.shift();return e[r]?uO(e[r],t):e},pA=(e,t)=>U(t)?uO(e,t):R(t)&&e[t]?e[t]:e,qr=(e,t)=>{let r=H();if(R(e)&&We(e)&&(e=qr(e.slice(2))),!e||!R(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=U(e)?e:e.split(" "),s=r.theme[n];return s&&o.length?s=pA(s,o):s&&t&&(s=pA(s,t)),gb(s)};M();M();var fO=(e,t)=>{let r=H(),n=`--font-${t}`;if(!e||U(e)&&!e[0])return;let o;if(e.isVariable){let s=gr(e.url,r.files)||e.url;D0(s)?o=L0(s):o=Na(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=fd(t,e,r.files);else{let s=Array.isArray(e.url)?e.url.map(i=>gr(i,r.files)||i):gr(e.url,r.files)||e.url;o=Na(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},dO=(e,t)=>{let r=H(),{fontFamily:n}=r;return j0(t||n,e)},mb=(e,t)=>{let r=H(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),j(s)&&(s=Ka(s));let a=`--font-family-${t}`,l=`${s.join(", ")}, ${o[i]}`;return{var:a,value:l,arr:s,type:i}};M();var pO=e=>{let t=H(),{typography:r,media:n}=t;for(let o in e){let s=o.slice(0,1)==="@",i=e[o];if(!s)continue;let{mediaRegenerate:a}=e,l=o.slice(1),{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g}=e;it(i,{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||g,b=!i.unit&&m.has(g)?"rem":y,x=n[l],v="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[v]={fontSize:i.base/r.browserDefault+b},!a){it(i,{sequence:{},scales:{},vars:{}}),Hr(i),jf(e,o);continue}it(i,{sequence:{},scales:{},templates:{},vars:{}}),Hr(i),jf(e,o)}},hO=e=>{let t=H();if(e.h1Matches){let r=e.unit,n=sO(e),{templates:o}=e;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:t.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:e.lineHeight,letterSpacing:a?a.letterSpacing:e.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},gO=()=>{let e=H(),{typography:t}=e;Hr(t),hO(t),pd(t),pO(t)},mO=e=>{let t=H(),{typography:r}=t;return Ba(e,"fontSize",r)};M();M();var UD=e=>{for(let t in e){let r=e[t];if(t.slice(0,1)!=="@")continue;let{type:n,base:o,ratio:s,range:i,subSequence:a,h1Matches:l,unit:c}=e;it(r,{type:n,base:o,ratio:s,range:i,subSequence:a,h1Matches:l,unit:c,sequence:{},scales:{},templates:{},vars:{}}),Hr(r),jf(e,t)}},yO=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},bO=()=>{let e=H(),{spacing:t}=e;Hr(t),pd(t),UD(t)},HD=e=>{let t=H(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:Hr(e)},ze=(e,t="padding",r,n)=>{let o=HD(r);if(R(e)&&!n&&e.includes("(")){let i=Ya(e);n=i[0],e=i[1]}let s=n?[e]:Ka(e);if(U(s)){if(s.length>1){let i="";t==="borderWidth"&&(t="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},l=(c,u)=>Ba(s[u],t+c+i,o,n);return a[s.length].map((c,u)=>l(c,u))}return Ba(e,t,o,n)}},Wo=(e,t,r,n)=>{let o=H(),{spacing:s}=o,i=r||e[t];if(!n&&R(i)&&i.includes("(")){let a=Ya(i);n=a[0],i=a[1]}if(e.spacingRatio){let a=applyCustomSequence(e);return ze(i,t,a,n)}return ze(i,t,s,n)},xO=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=F0.some(s=>e.includes(s));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return e.split(",").map(r=>r.trim()).map(t).join(",").split(" ").map(t).join(" ")};M();var Ta=(e,t,r,n)=>{let o=H();if(U(e))return{"@light":Ta(e[0],t,"light"),"@dark":Ta(e[1],t,"dark")};if(j(e)){let i={};for(let a in e)i[a]=Ta(e[a],t,a.startsWith("@")?a.slice(1):a);return i}R(e)&&!In.test(e)&&(e=ud(e).map(i=>(i=i.trim(),i.split(/\s+/).map(a=>{if(a=a.trim(),!a)return"";if(a.startsWith("--"))return`var(${a})`;let l=Te(a);if(Ho(l))return l;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let c=ze(a,"shadow");return c&&c.shadow?c.shadow:a}).join(" "))).join(", "));let s=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${t}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[s]=e),{var:s,value:e}},vO=(e,t)=>{let r=H();if(t||(t=r.globalTheme),!R(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(We(e))return`var(${e})`;let[n]=U(e)?e:e.split(" "),o=r.shadow[n],s=j(o);if(!o)return r.verbose&&console.warn("Can't find color ",n),e;if(t){if(o[t])return o[t].value;r.verbose&&console.warn(e," - does not have ",t)}if(s&&o.value)return o.value;if(s){let i={};for(let a in o){let l=r.media[a.slice(1)],c="@media "+(l==="print"?`${l}`:`screen and ${l}`);i[c]=o.value}return i}return r.verbose&&console.warn("Can't find color",e),e};M();var _O=()=>{let e=H(),{timing:t}=e;Hr(t),pd(t)},Tn=e=>{let t=H(),{timing:r}=t;return r[e]||r[id(e)]||e},hr=(e,t="timing")=>{let r=H(),{timing:n}=r;return Ba(e,t,n)};M();var wO=()=>{let e=H(),{document:t,fontFamily:r,theme:n,typography:o}=e;return it(t,{theme:n.document,fontFamily:j0(r),fontSize:o.base,lineHeight:o.lineHeight})};M();var K0={document:me},X0=(e,t)=>{let r=H();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?aO(t,e):e},SO=(e,t=K0)=>{let r=H(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];AO(n,t)},kO=(e,t)=>{let r=H();return r.useIconSprite&&!r.semanticIcons?.[t]?X0(e,t):e},CO=(e,t=K0)=>{let r=H(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];AO(n,t)},Jy=(e,t={isRoot:!0})=>{if(!e||!e.createElementNS)return;let r=e.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},qD=(e,t)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,o=new r().parseFromString(n,"image/svg+xml");return o.querySelector("parsererror")?null:o.documentElement}return null},hA=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},AO=(e,t=K0)=>{let r=H(),n=t.document||me;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),pb(e);let o=n.querySelector("#svgSprite"),s=pb(e),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=qD(n,s);if(o)if(a)hA(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let l=Jy(n,{isRoot:!1});l.innerHTML=s,o.append(...l.children)}else if(a){let l=Jy(n);l&&l.nodeType&&(hA(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let l=Jy(n);l&&l.nodeType&&(l.innerHTML=s,n.body.prepend(l))}};M();var EO=(e={})=>{let t=H(),{reset:r,typography:n,document:o}=t;if(r){if(r[":root"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?qr("document"):{},...c.body},l.h1=c.h1,l.h2=c.h2,l.h3=c.h3,l.h4=c.h4,l.h5=c.h5,l.h6=c.h6}let{body:s,...i}=n.templates,a=t.useDocumentTheme?qr("document"):{};if(r.html&&Rn(r.html,a),n.unit){let{media:l}=t;for(let c in n){if(c.charAt(0)!=="@")continue;let u=n[c];if(!u||u.unit===n.unit||!u.unit)continue;let d=u.unit,f=u.base||n.base,p=u.browserDefault||n.browserDefault,h=c.slice(1),g=l[h];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=f/p+d}}return Qt(it(r,e),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+t.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}})}};M();var GD=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),KD=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),XD=e=>GD.has(e),Cn=e=>{let t=e+"";if(In.test(t))return t;let r=t.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?t:t.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(We(n))return`var(${n})`;if(XD(n)||/^\d/.test(n)||n==="0")return n;let o=Te(n);if(Ho(o))return o;let s=ze(n,"border");return s&&s.border?s.border:n}).join(" ")},YD=e=>In.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(We(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let r=Te(t);return Ho(r)?r:t}).join(" "),ZD=(e,t)=>vO(e,t),gA=(e,t)=>In.test(e)?e:ud(e).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(We(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=Te(n);if(Ho(o)){let i=wt(n,t);return j(i)?Object.values(i).filter(a=>a.includes(": "+t))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=ze(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),OO=(e,t)=>{let r=e.indexOf("(");if(r===-1)return e;let n=e.slice(0,r+1),o=e.slice(r+1,e.lastIndexOf(")")),s=")",i=ud(o).map(a=>(a=a.trim(),a.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||KD.has(l)||l==="transparent"||In.test(l))return l;let c=Te(l);return Ho(c)?c:l}).join(" ")));return n+i.join(", ")+s},JD=(e,t)=>{let r=H();return e.split(", ").map(n=>We(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?OO(n,t):r.gradient[e]?{backgroundImage:wt(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!Xa(n)?`url(${n})`:n).join(" ")},QD=e=>R(e)&&e.split(" ").map(t=>ze(t,"gap").gap).join(" "),eL=e=>{let t=e.split(" ");return t.length?t.map(r=>We(r)?`var(${r})`:r.length<3||r.includes("ms")?hr(r).timing||r:Tn(r)?Tn(r):r).join(" "):e},mA=(e,t,r)=>{if(R(e))return e.split(",").map(n=>hr(n).timing||n).join(",")},tL=e=>{let t=e.split(",");if(t.length)return t.map(eL).join(",")};function Oe(e,t,r={},n={}){let o=Ne.call(this,t||r[e]);if(o==null)return;let s;if(R(o)){if(o.includes("(")){let l=Ya(o);s=l[0],o=l[1]}let i=r.scaleBoxSize,a=yO(e);!i&&a&&!n.ratio&&(o=xO(o))}return n.ratio?Wo(r,e,o,s):ze(o,e,void 0,s)}var re=(e,t=null,r)=>Oe(e,t,r,{ratio:!0}),yA=(e,t,r)=>{if(R(e))return{borderRadius:e.split(" ").map((n,o)=>Wo(t,r,n)[r]).join(" ")}};M();var rL=(e,t)=>{let r=H(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},vt=e=>e,bA={color:Ea,gradient:Oa,font:fO,fontFamily:mb,fontfamily:mb,theme:cO,icons:kO,semanticIcons:vt,semanticicons:vt,svg:X0,svgData:vt,typography:vt,shadow:Ta,spacing:vt,media:vt,grid:vt,class:vt,timing:vt,reset:vt,unit:vt,animation:vt,vars:rL},nL=(e,t,r)=>{let n=H(),o=JE(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=bA[o]||bA[s];if(a)try{let l=a(t,r);return i&&(i[r]=l),i}catch(l){n.verbose&&console.warn("Error setting",s,"value",t,r,l)}n.verbose&&console.warn("Can not find",s,"method in scratch")},oL=(e,t)=>{let r=H(),n=e.toLowerCase();return Object.keys(t).sort((o,s)=>{let i=j(t[o])||U(t[o])?1:0,a=j(t[s])||U(t[s])?1:0;return i-a}).forEach(o=>{try{return nL(n,t[o],o)}catch(s){r.verbose&&console.warn("Error setting",n,"value",t[o],o,s)}}),r[n]||r[e]};var sL={},Y0=(e,t=sL)=>{let r=t.config||H(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:l,useIconSprite:c,globalTheme:u,themeRoot:d,useDocumentTheme:f,useDefaultConfig:p,semanticIcons:h,files:g,assets:m,...y}=e;t.newConfig&&(r=AD(t.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),l!==void 0&&(r.useFontImport=l),a!==void 0&&(r.useSvgSprite=a),c!==void 0&&(r.useIconSprite=c),f!==void 0&&(r.useDocumentTheme=f),u!==void 0&&(r.globalTheme=u),d!==void 0&&(r.themeRoot=d),e.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=e.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let b=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),x=b&&b.defaultView||(typeof window<"u"?window:null),v=b&&(r.themeRoot||b.documentElement);if(v&&typeof v.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")v.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?v.style.colorScheme=r.globalTheme:v.style.colorScheme="light dark";else if(x&&x.matchMedia){let T=D=>{v.setAttribute("data-theme",D.matches?"dark":"light")},k=x.matchMedia("(prefers-color-scheme: dark)");if(T(k),v.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=T;try{k.addEventListener("change",T)}catch{k.addListener(T)}}}else v.setAttribute("data-theme","light"),v.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let _=Object.keys(y),S=new Set(_);if(_.forEach(T=>{let k=T.toLowerCase();k!==T&&S.has(k)&&Qt(y[k],y[T])}),_.map(T=>{let k=T.toLowerCase();if(!(k!==T&&S.has(k)))return oL(T,y[T])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{gO()}catch(T){r.verbose&&console.warn("Error applying typography sequence",T)}if(y.spacing)try{bO()}catch(T){r.verbose&&console.warn("Error applying spacing sequence",T)}if(y.timing)try{_O()}catch(T){r.verbose&&console.warn("Error applying timing sequence",T)}wO();let O=EO();return O&&(r.reset=O),r};var iL=null,aL=null,lL=null;function cL(e){e.batchAtomicCss&&(aL=e.batchAtomicCss),e.compoundCssClass&&(lL=e.compoundCssClass)}function uL(){try{let e=H();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}function Bu(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}var xA=new WeakMap;function ia(e,t){let r=TO(t);if(!r)return;let n=xA.get(r);if(n||(n=new Set,xA.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var vA=new WeakMap;function TO(e){let t=e||uL();if(!t||!t.head)return null;let r=vA.get(t);if(r&&r.ownerNode&&r.ownerNode.parentNode===t.head)return r;let n=t.head.querySelector("style[data-smbls]");n||(n=t.createElement("style"),n.setAttribute("data-smbls",""),t.head.appendChild(n));let o=n.sheet;return vA.set(t,o),iL=o,o}function Vt(e){if(TO(),typeof e=="string"){ia(e);return}let t=Object.keys(e),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};t.sort((n,o)=>{let s=n.startsWith("@media"),i=o.startsWith("@media");return!s&&!i?0:s?i?r(o)-r(n):1:-1});for(let n of t){let o=e[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let s in o){let i=o[s];if(typeof i=="object"&&i!==null){let a="";for(let l in i){let c=l.startsWith("--")?l:Bu(l);a+=`${c}:${i[l]};`}ia(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:Bu(s);ia(`${n}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in o){let l=o[a];if(typeof l=="object"&&l!==null)i=!0;else{let c=a.startsWith("--")?a:Bu(a);s+=`${c}:${l};`}}if(s&&ia(`${n}{${s}}`),i){let a=[],l=[];for(let c in o)typeof o[c]=="object"&&o[c]!==null&&(c.startsWith("@media")||c.startsWith("@supports")?a.push(c):l.push(c));a.sort((c,u)=>{let d=f=>{let p=f.match(/max-width:\s*(\d+)/);return p?parseInt(p[1]):0};return d(u)-d(c)});for(let c of l)Vt({[`${n} ${c}`]:o[c]});for(let c of a)Vt({[c]:{[n]:o[c]}})}}}}function _A(e,t){let r="";for(let n in t){let o="";for(let s in t[n])o+=`${Bu(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return ia(`@keyframes ${e}{${r}}`),e}M();Ga();M();M();var fL=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],dL=["none","forwards","backwards","both"],pL=["normal","reverse","alternate","alternate-reverse"],hL=["running","paused"],gL=e=>/^[\d.]+m?s$/.test(e),mL=0,Qy=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(j(e)){let o=`smbls-anim-${mL++}`;return{animationName:_A(o,e)}}let n=r&&r[e];return j(n)?_A(e,n):e},yL=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{},n=e.split(/\s+/),o=null,s=[],i=null,a=null,l=null,c=null,u=null;for(let d of n)r&&r[d]?o=d:gL(d)?s.push(d):fL.includes(d)||d.startsWith("cubic-bezier")||d.startsWith("steps(")?i=d:d==="infinite"||/^\d+$/.test(d)?a=d==="infinite"?d:Number(d):pL.includes(d)?l=d:dL.includes(d)?c=d:hL.includes(d)?u=d:o||(o=d);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:l,fillMode:c,playState:u}},bL={animation:(e,t)=>{if(R(e)&&e.includes(" ")){let r=yL(e,t);return{animationName:Qy(r.name||e,t),animationDuration:r.durations[0]||hr(t.animationDuration||"A").timing,animationDelay:r.durations[1]||hr(t.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Tn(t.animationTimingFunction||"ease"),animationFillMode:r.fillMode||t.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:t.animationIterationCount||1,animationPlayState:r.playState||t.animationPlayState,animationDirection:r.direction||t.animationDirection}}return{animationName:Qy(e,t),animationDuration:hr(t.animationDuration||"A").timing,animationDelay:hr(t.animationDelay||"0s").timing,animationTimingFunction:Tn(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:Qy(e,t)}),animationDuration:e=>({animationDuration:hr(e).timing}),animationDelay:e=>({animationDelay:hr(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Tn(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};M();var xL={show:e=>e?void 0:{display:"none !important"},hide:e=>e?{display:"none !important"}:void 0,height:(e,t)=>re("height",e,t),width:(e,t)=>re("width",e,t),boxSizing:e=>Bt(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Oe("height",t),...Oe("width",r||t)}},inlineSize:(e,t)=>re("inlineSize",e,t),blockSize:(e,t)=>re("blockSize",e,t),minWidth:(e,t)=>re("minWidth",e,t),maxWidth:(e,t)=>re("maxWidth",e,t),widthRange:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Oe("minWidth",t),...Oe("maxWidth",r||t)}},minHeight:(e,t)=>re("minHeight",e,t),maxHeight:(e,t)=>re("maxHeight",e,t),heightRange:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Oe("minHeight",t),...Oe("maxHeight",r||t)}},size:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...re("inlineSize",t),...re("blockSize",r||t)}},minBlockSize:(e,t)=>re("minBlockSize",e,t),minInlineSize:(e,t)=>re("minInlineSize",e,t),maxBlockSize:(e,t)=>re("maxBlockSize",e,t),maxInlineSize:(e,t)=>re("maxInlineSize",e,t),minSize:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Oe("minInlineSize",t),...Oe("minBlockSize",r||t)}},maxSize:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Oe("maxInlineSize",t),...Oe("maxBlockSize",r||t)}},borderWidth:(e,t)=>re("borderWidth",e,t),padding:(e,t)=>re("padding",e,t),scrollPadding:(e,t)=>re("scrollPadding",e,t),paddingInline:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Oe("paddingInlineStart",t),...Oe("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Oe("paddingBlockStart",t),...Oe("paddingBlockEnd",r||t)}},paddingTop:(e,t)=>re("paddingBlockStart",e,t),paddingBottom:(e,t)=>re("paddingBlockEnd",e,t),paddingLeft:(e,t)=>re("paddingInlineStart",e,t),paddingRight:(e,t)=>re("paddingInlineEnd",e,t),paddingBlockStart:(e,t)=>re("paddingBlockStart",e,t),paddingBlockEnd:(e,t)=>re("paddingBlockEnd",e,t),paddingInlineStart:(e,t)=>re("paddingInlineStart",e,t),paddingInlineEnd:(e,t)=>re("paddingInlineEnd",e,t),margin:(e,t)=>re("margin",e,t),marginInline:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Oe("marginInlineStart",t),...Oe("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!R(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{...Oe("marginBlockStart",r),...Oe("marginBlockEnd",n||r)}},marginTop:(e,t)=>re("marginBlockStart",e,t),marginBottom:(e,t)=>re("marginBlockEnd",e,t),marginLeft:(e,t)=>re("marginInlineStart",e,t),marginRight:(e,t)=>re("marginInlineEnd",e,t),marginInlineStart:(e,t)=>re("marginInlineStart",e,t),marginInlineEnd:(e,t)=>re("marginInlineEnd",e,t),marginBlockStart:(e,t)=>re("marginBlockStart",e,t),marginBlockEnd:(e,t)=>re("marginBlockEnd",e,t),gap:e=>({gap:QD(e)}),columnGap:(e,t)=>Wo(t,"columnGap",e),rowGap:(e,t)=>Wo(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!R(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>yA(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>yA(e??t.round,t,"borderRadius")},vL={fontSize:e=>mO(e)||e,fontFamily:e=>({fontFamily:dO(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})},_L={overflow:e=>({overflow:e,scrollBehavior:"smooth"}),cursor:(e,t,r,n)=>{if(!e)return;let o=n.assets&&n.assets[e];if(o&&o.content)e=`url(${o.content.src})`;else{let s=n.files&&n.files[e];s&&s.content&&(e=`url(${s.content.src})`)}return{cursor:e}},opacity:e=>e!=null?{opacity:String(e)}:void 0,visibility:e=>e!=null?{visibility:e}:void 0,pointerEvents:e=>e!=null?{pointerEvents:e}:void 0},wL={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>ze(r,"k").k).join(" ")}},left:e=>ze(e,"left"),top:e=>ze(e,"top"),right:e=>ze(e,"right"),bottom:e=>ze(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>ze(r,"k").k);return{top:t[0],bottom:t[1]||t[0]}},horizontalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>ze(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};M();var Dt=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},SL={theme:(e,t)=>{if(e)return t.themeModifier?qr(e,`@${t.themeModifier}`):qr(e)},color:(e,t)=>{let r=Dt(t);if(e)return{color:wt(e,r)}},background:(e,t)=>{let r=Dt(t);if(e)return R(e)&&e.includes("gradient")?{background:OO(e,r)}:{background:wt(e,r)}},backgroundColor:(e,t)=>{let r=Dt(t);if(e)return{backgroundColor:wt(e,r)}},backgroundImage:(e,t,r,n)=>{let o=Dt(t);if(!e)return;let s=n.assets&&n.assets[e];if(s&&s.content)e=s.content.src;else{let i=n.files&&n.files[e];i&&i.content&&(e=i.content.src)}return{backgroundImage:JD(e,o)}},textStroke:e=>({WebkitTextStroke:YD(e)}),outline:e=>({outline:Cn(e)}),outlineOffset:(e,t)=>re("outlineOffset",e,t),border:e=>({border:Cn(e)}),borderColor:(e,t)=>{let r=Dt(t);if(e)return{borderColor:wt(e,r)}},borderTopColor:(e,t)=>{let r=Dt(t);if(e)return{borderTopColor:wt(e,r)}},borderBottomColor:(e,t)=>{let r=Dt(t);if(e)return{borderBottomColor:wt(e,r)}},borderLeftColor:(e,t)=>{let r=Dt(t);if(e)return{borderLeftColor:wt(e,r)}},borderRightColor:(e,t)=>{let r=Dt(t);if(e)return{borderRightColor:wt(e,r)}},borderLeft:e=>({borderLeft:Cn(e)}),borderTop:e=>({borderTop:Cn(e)}),borderRight:e=>({borderRight:Cn(e)}),borderBottom:e=>({borderBottom:Cn(e)}),shadow:(e,t)=>{let r=Dt(t);if(e)return{boxShadow:ZD(e,r)}},boxShadow:(e,t)=>{if(!R(e))return;let[r,n]=e.split("!importan"),o=Dt(t),s=n?" !important":"";return{boxShadow:gA(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:gA(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:Cn(e)})},PO={transition:e=>({transition:tL(e)}),transitionDuration:e=>({transitionDuration:mA(e)}),transitionDelay:e=>({transitionDelay:mA(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Tn(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};M();var kL={flow:(e,t)=>{let r=t.reverse;if(!R(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(e,t)=>({display:"flex",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}},CL={area:e=>({gridArea:e}),template:e=>({gridTemplate:e}),templateAreas:e=>({gridTemplateAreas:e}),column:e=>({gridColumn:e}),columns:e=>({gridTemplateColumns:e}),templateColumns:e=>({gridTemplateColumns:e}),autoColumns:e=>({gridAutoColumns:e}),columnStart:e=>({gridColumnStart:e}),row:e=>({gridRow:e}),rows:e=>({gridTemplateRows:e}),templateRows:e=>({gridTemplateRows:e}),autoRows:e=>({gridAutoRows:e}),rowStart:e=>({gridRowStart:e}),autoFlow:e=>({gridAutoFlow:e})},wA={...bL,...xL,...vL,..._L,...wL,...SL,...PO,...kL,...CL},AL=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);M();var EL=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,OL=(e,t,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=e.slice(1),s=n.designSystem.media[o],i=Kr(t,r);if(!s)return{[e]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(EL),l=a?a[1]||a[2]:o,c={[`${s} &`]:i};if(l==="dark"||l==="light"){let u=n.designSystem?.scopeSelector||":root",d=u===":root"?":root:not([data-theme])":`${u}:not([data-theme])`;c[`@media (prefers-color-scheme: ${l})`]={[`${d} &`]:i}}return c},SA=(e,t,r)=>({[e]:Kr(t,r)}),ta=(e,t,r)=>{let n=`&${e}`,o=Kr(t,r);if(e.includes(",")&&o){let s={},i={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?i[a]=o[a]:s[a]=o[a];if(Object.keys(i).length){let a=n.split(",").map(c=>c.trim()),l={};Object.keys(s).length&&(l[n]=s);for(let c in i){let u=a.map(d=>`${d} ${c}`).join(", ");l[u]=i[c]}return l}}return{[n]:o}},Z0=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return F(r)?r.call(t,t):!!r},TL=(e,t,r)=>{let n=e.slice(1),o=Z0(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Kr(t,r)},PL=(e,t,r)=>({[e]:t}),RL=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=Z0(n,r);s!==void 0&&(o=s)}if(o)return Kr(t,r)},$L=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=Z0(n,r);s!==void 0&&(o=s)}if(!o)return Kr(t,r)},IL=(e,t)=>Kr(e,t),FL={"@":OL,":":ta,"[":ta,"*":ta,"+":ta,"~":ta,"&":SA,">":SA,$:TL,"-":PL,".":RL,"!":$L},eb=Vo(),jL=(e,t,r)=>{let n=t?.context?.designSystem;n&&kD(n);try{let o={},s={},i=(a,l)=>{if(r.unpack){o={...o,...l};return}o[a]=l};for(let a in e){let l=e[a];if(a==="class"&&t.call("isString",e.class)){let c=l.split(" ");if(c.length){let u=t.context.designSystem.class,d=c.reduce((f,p)=>it(f,u[p]),{});o.designSystemClass=d}}else if(a==="true"){let c=Ne(l,t);it(o,IL(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=F(c)?c(t,t.state,t.context):c;u&&i(a,u),!eb&&j(o[a])&&(o[a].label=a)}else if(wA[a]){let c=Ne(l,t);U(c)&&(c=c.reduce((d,f)=>it(d,f),{}));let u=wA[a](c,t,t.state,t.context);U(u)&&(u=u.reduce((d,f)=>it(d,f),{})),u&&i(a,u),!eb&&j(o[a])&&(o[a].label=a)}else if(AL.has(a)){let c=Ne(l,t);typeof c=="string"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),i(a,{[a]:c}),!eb&&j(o[a])&&(o[a].label=a)}else s[a]=l}return[o,s]}finally{n&&CD()}},DL=(e,t)=>{let r={};for(let n in e){let o=FL[n.slice(0,1)];if(o){let s=o(n,e[n],t);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?Rn(r[i],s[i]):r[i]=s[i])}}return r},Kr=(e,t,r={unpack:!0})=>{let[n,o]=jL(e,t,r),s=DL(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return Jf(n,s);n._selectors=s}return n};M();M();M();Ga();M();var kA=(e,t)=>{let r=e.call("exec",t,e);if(r)return R(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r};var LL={primary:{"@dark":{color:"white",background:"blue",".color-only":{color:"blue"},".inactive":{background:"gray+16"},".gradient":{color:"white",background:"gradient-blue"}},"@light":{color:"white",background:"gradient-blue",".color-only":{color:"blue"},".gradient":{color:"white",background:"gradient-colorful"}}},secondary:{"@dark":{color:"white",background:"green",".color-only":{color:"green"}},"@light":{color:"white",background:"green",".color-only":{color:"green"}},".child":"--primary"},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light",":hover":{color:"gray=95",background:"gradient-light-active"},":focus":{color:"gray=120",background:"gradient-light-active"},":active":{color:"gray=120",background:"gradient-light-active"},".active":{color:"gray=120",background:"gradient-light-active"}},"@light":{color:"gray3",background:"gradient-dark",":hover":{color:"gray1",background:"gradient-dark-active"},":active":{color:"gray1",background:"gradient-dark-active"},".active":{color:"gray1",background:"gradient-dark-active"}}}},ML={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},NL={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"},".light":{color:"white",background:"gray3"},".dark":{color:"white",background:"black.35"}},card:{"@light":{background:"gray.975+150"},"@dark":{color:"white",background:"gray.975-56"},".child":{color:"white",background:"gray3"},".secondary":{color:"white",background:"gradient-blue-dark",".child":{color:"white",background:"black.35"}}},dialog:{"@dark":{color:"white",background:"gray.92",".helper":{color:"white",background:"black"}},"@light":{color:"currentColor",background:"gray.1"}}},Z9={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...LL,...ML,...NL,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var BL={};X(BL,{A:()=>dP,AssetPicture:()=>nT,Audio:()=>cT,Avatar:()=>$P,B:()=>TT,Block:()=>$O,Box:()=>IT,Br:()=>jT,Button:()=>yP,ButtonSet:()=>_P,COMPONENTS:()=>ZL,Caption:()=>vT,Checkbox:()=>KT,CheckboxHgroup:()=>XT,Circle:()=>QO,CircleButton:()=>xP,Clickable:()=>GO,Data:()=>RT,Dialog:()=>kP,DialogFooter:()=>AP,DialogHeader:()=>CP,Dropdown:()=>DP,DropdownList:()=>LP,DropdownParent:()=>MP,DropdownParentFocus:()=>NP,DropdownSiblingFocus:()=>BP,FileIcon:()=>lP,Flex:()=>FO,Focusable:()=>KO,FocusableComponent:()=>XO,Footnote:()=>OT,Form:()=>zO,Grid:()=>DO,Gutter:()=>MO,H1:()=>pT,H2:()=>hT,H3:()=>gT,H4:()=>mT,H5:()=>yT,H6:()=>bT,Headline:()=>AT,Hgroup:()=>BT,HgroupButton:()=>zT,HgroupRows:()=>VT,Hoverable:()=>qO,Hr:()=>FT,I:()=>PT,Icon:()=>iP,IconButton:()=>wP,IconText:()=>aP,Iframe:()=>UO,Img:()=>BO,Inline:()=>IO,InlineFlex:()=>jO,InlineGrid:()=>LO,Input:()=>UT,Italic:()=>kT,KangorooButton:()=>vP,Li:()=>DT,Link:()=>sv,Notification:()=>zP,NumberInput:()=>qT,Ol:()=>MT,P:()=>xT,Picture:()=>tT,Radio:()=>ZT,RadioHgroup:()=>JT,Range:()=>FP,RouteLink:()=>pP,RouterLink:()=>iv,SHAPES:()=>Df,Select:()=>gP,Shape:()=>Q0,Span:()=>dT,SquareButton:()=>bP,Strong:()=>_T,Subhead:()=>ET,Svg:()=>sT,Text:()=>fT,Textarea:()=>nP,TextareaWithButton:()=>oP,Theme:()=>eT,Title:()=>CT,Toggle:()=>eP,ToggleHgroup:()=>tP,Tooltip:()=>OP,TooltipHidden:()=>TP,TooltipParent:()=>PP,U:()=>wT,Ul:()=>LT,Underline:()=>ST,Video:()=>aT,depth:()=>J0,getSystemGlobalTheme:()=>Lf});var RO={};X(RO,{Block:()=>$O,Flex:()=>FO,Grid:()=>DO,Gutter:()=>MO,Inline:()=>IO,InlineFlex:()=>jO,InlineGrid:()=>LO});var $O={display:"block"},IO={display:"inline"},FO={display:"flex"},jO={display:"inline-flex"},DO={display:"grid"},LO={display:"inline-grid"},MO={boxSize:"C1"},NO={};X(NO,{Img:()=>BO});M();var BO={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Zt(e);return t&&t.src||e.src},srcset:e=>{let t=Zt(e);return(t?ld(t):"")||e.srcset}}},VO={};X(VO,{Form:()=>zO});var zO={tag:"form"},WO={};X(WO,{Iframe:()=>UO});var UO={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"},HO={};X(HO,{Clickable:()=>GO,Focusable:()=>KO,FocusableComponent:()=>XO,Hoverable:()=>qO});var VL={appearance:"none",cursor:"pointer",fontFamily:"inherit"},qO={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},GO={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},KO={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},XO={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:VL},YO={};X(YO,{Picture:()=>tT});var ZO={};X(ZO,{Theme:()=>eT,getSystemGlobalTheme:()=>Lf});var JO={};X(JO,{Circle:()=>QO,SHAPES:()=>Df,Shape:()=>Q0,default:()=>zL,depth:()=>J0});M();var _t=H(),J0={4:{boxShadow:`rgba(0,0,0,.10) 0 2${_t.unit.default} 4${_t.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${_t.unit.default} 6${_t.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${_t.unit.default} 10${_t.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${_t.unit.default} 16${_t.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${_t.unit.default} 26${_t.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${_t.unit.default} 42${_t.unit.default}`}},Ro=e=>Te(e.shapeDirectionColor)||Te(e.borderColor)||Te(e.backgroundColor)||Te(e.background),Fu=e=>{let t=PO.transition(e.transition,e);return t&&t.transition},Df={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Ro(e),transition:Fu(e),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:e=>({position:"relative","&:before":{content:'""',display:"block",background:Ro(e),transition:Fu(e),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:Ro(e),transition:Fu(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Fu(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Ro(e)} 25%, transparent 25%), linear-gradient(315deg, ${Ro(e)} 25%, transparent 25%)`},"&:after":{background:Ro(e),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},Q0={deps:{exec:Ne,getSpacingBasedOnRatio:Wo,getMediaColor:wt},classlist:{shape:e=>e.deps.exec(Df[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Df[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},QO={round:"100%"},zL=Q0;M();var Lf=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},eT={deps:{depth:J0},classlist:{depth:e=>!Bt(e.depth)&&e.deps.depth[e.depth]}},tT={deps:{getSystemGlobalTheme:Lf},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Lf},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(e),i=(e.media||t).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":o[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}},rT={};X(rT,{AssetPicture:()=>nT});M();var nT={tag:"picture",children:e=>{let t=Zt(e);if(t)return cd(t,e.alt)}},oT={};X(oT,{Svg:()=>sT});var sT={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,s=e.spriteId||r&&r.useSvgSprite,i=e.call("exec",e.src,e);if(!s&&i)return i;let a=f=>`<use xlink:href="#${f}" />`,l=e.spriteId;if(l)return a(l);if(o&&o[i])return a(i);let c=Symbol.for(i),u=o[c];if(u&&o[u])return a(u);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let d=0;for(let f=0;f<i.length;f++)d=(d<<5)-d+i.charCodeAt(f)|0;return u=o[c]=`svg-${(d>>>0).toString(36)}`,n.init({svg:{[u]:i}},{document:t.document,emotion:t.emotion}),a(u)}},iT={};X(iT,{Video:()=>aT});M();var aT={tag:"video",controls:!0,attr:{src:e=>{let t=Zt(e);return t&&t.src||e.src}},children:e=>{let t=Zt(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},lT={};X(lT,{Audio:()=>cT});M();var cT={tag:"audio",controls:!0,attr:{src:e=>{let t=Zt(e);return t&&t.src||e.src}},children:e=>{let t=Zt(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},uT={};X(uT,{B:()=>TT,Caption:()=>vT,Data:()=>RT,Footnote:()=>OT,H1:()=>pT,H2:()=>hT,H3:()=>gT,H4:()=>mT,H5:()=>yT,H6:()=>bT,Headline:()=>AT,I:()=>PT,Italic:()=>kT,P:()=>xT,Span:()=>dT,Strong:()=>_T,Subhead:()=>ET,Text:()=>fT,Title:()=>CT,U:()=>wT,Underline:()=>ST});var fT={},dT={tag:"span"},pT={tag:"h1"},hT={tag:"h2"},gT={tag:"h3"},mT={tag:"h4"},yT={tag:"h5"},bT={tag:"h6"},xT={tag:"p"},vT={tag:"caption"},_T={tag:"strong",fontWeight:"700"},wT={tag:"u"},ST={tag:"u"},kT={tag:"i"},CT={},AT={tag:"h6",fontSize:"B",fontWeight:500},ET={tag:"span",fontSize:"Z1"},OT={tag:"span",fontSize:"Z"},TT={tag:"b"},PT={tag:"i"},RT={tag:"data"},$T={};X($T,{Box:()=>IT,Br:()=>jT,Hr:()=>FT,Li:()=>DT,Ol:()=>MT,Ul:()=>LT});var WL=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=Kr(t,e,{unpack:!1});r.__class=n},IT={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:WL},FT={tag:"hr",margin:"C1 0"},jT={tag:"br"},DT={tag:"li"},LT={tag:"ul",childExtends:{extends:"Li"}},MT={tag:"ol",childExtends:{extends:"Li"}},NT={};X(NT,{Hgroup:()=>BT,HgroupButton:()=>zT,HgroupRows:()=>VT});var CA=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},BT={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:CA,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:CA,margin:"0",color:"paragraph"}},VT={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},zT={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}},WT={};X(WT,{Input:()=>UT});var UT={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}},HT={};X(HT,{NumberInput:()=>qT});var qT={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}},GT={};X(GT,{Checkbox:()=>KT,CheckboxHgroup:()=>XT});var KT={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},XT={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}},YT={};X(YT,{Radio:()=>ZT,RadioHgroup:()=>JT});var ZT={extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},JT={extends:"CheckboxHgroup",Checkbox:null,Radio:{}},QT={};X(QT,{Toggle:()=>eP,ToggleHgroup:()=>tP});var eP={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},tP={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}},rP={};X(rP,{Textarea:()=>nP,TextareaWithButton:()=>oP});var nP={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},oP={display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}},sP={};X(sP,{FileIcon:()=>lP,Icon:()=>iP,IconText:()=>aP});var iP={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,l=v=>{let _=v[".isActive"];if(_)return v.call("exec",_.name||_.icon)},c=(v,_,S)=>{let{semanticIcons:O}=S&&S.designSystem,{toCamelCase:T}=S&&S.utils,k=u(v,_),D=T(k).split(/([a-z])([A-Z])/g),te=D[1]?D[0]:k.split(".")[0].split(" ")[0],z=O&&O[te];if(z){let N=k.includes(".")?"sfsymbols."+k.split(".").slice(1).join("."):"sfsymbols";return k=z[N]||z[k.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${k}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(v,_)=>{let{key:S}=v,O=v.call("exec",v.name||v.icon||S,v);return v.call("isString",O)&&O.includes("{{")&&(O=v.call("replaceLiteralsWithObjectFields",O)),v.call("isString",O)?O:S},d=u(e,t);if(d.includes(" ")){let v=d.split(" ");d=v[0]+v.slice(1).map(_=>_.charAt(0).toUpperCase()+_.slice(1)).join("")}let f=a(d),p=f.split(/([a-z])([A-Z])/g),h=c(e,t,r);if(h){Object.assign(e,h);return}let g;e.isActive&&(g=l(e));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=e.call("exec",m.icon||m.Icon.name||m.Icon.icon,e)),e.call("isString",g)&&g.includes("{{")&&(g=e.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[f]?y=f:o[p[0]+p[1]]?y=p[0]+p[1]:o[p[0]]?y=p[0]:i&&e.warn("Can't find icon:",d,y);let b=o[y],x=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||x||o.noIcon})},attr:{viewBox:"0 0 24 24"}},aP={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},lP={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}},cP={};X(cP,{A:()=>dP,Link:()=>sv,RouteLink:()=>pP,RouterLink:()=>iv});var UL={};X(UL,{default:()=>XL,getActiveRoute:()=>ov,lastLevel:()=>gd,lastPathname:()=>Mf,matchRoute:()=>tv,parseQuery:()=>rv,parseRoutePattern:()=>ev,router:()=>qo,runGuards:()=>nv});M();var uP=/^:(.+)/,fP=/^\*$/,AA=new Map,ev=e=>{let t=AA.get(e);if(t)return t;let r=e.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(uP);a?n.push({index:i,name:a[1]}):fP.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return AA.set(e,s),s},tv=(e,t,r=0)=>{let n=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),o="/"+(n[0]||""),s=null,i=-1,a={};for(let l in t){if(l==="/*")continue;let c=ev(l),u=HL(n,c);u>i&&(i=u,s=l,a=qL(n,c))}return!s&&t["/*"]&&(s="/*"),{key:s,content:s?t[s]:null,params:a,routePath:o}},HL=(e,t)=>{let{segments:r,hasWildcard:n}=t;if(!n&&r.length!==e.length&&r.length!==1&&r.length>e.length)return-1;let o=0,s=Math.min(r.length,e.length);for(let i=0;i<s;i++)if(r[i]===e[i])o+=3;else if(uP.test(r[i]))o+=1;else if(fP.test(r[i]))o+=.5;else return-1;return o},qL=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},rv=e=>{if(!e||e==="?")return{};let t={};return new URLSearchParams(e).forEach((r,n)=>{t[n]!==void 0?(Array.isArray(t[n])||(t[n]=[t[n]]),t[n].push(r)):t[n]=r}),t},nv=async(e,t)=>{if(!e||!e.length)return!0;for(let r of e){let n=await r(t);if(n===!1)return!1;if(typeof n=="string")return n}return!0},ov=(e=0,t)=>{t||(t=typeof se<"u"?se.location.pathname:"/");let r=t.split("/")[e+1];if(r)return`/${r}`},Mf,gd=0,GL=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,KL={level:gd,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:me&&me.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},qo=async(e,t,r={},n={})=>{let o=t||void 0,s=o?.context?.window||se,i=o?.context?.document||me,a={...KL,...o.context.routerOptions,...n};gd=a.lastLevel;let l=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let c=l.contentElementKey||a.contentElementKey||"content",u=s.location.origin!=="null"?s.location.origin:"http://localhost";e=GL(e);let d=new s.URL(u+e),{pathname:f,search:p,hash:h}=d,g=rv(p),m=o.node,y=h&&h!==s.location.hash.slice(1),b=f!==Mf;Mf=f;let x,v,_,S;if(a.useParamsMatching){let T=tv(f,o.routes,a.level);x=T.key,v=T.routePath,_=T.content,S=T.params}else x=ov(a.level,f),v=x,_=o.routes[x||"/"]||o.routes["/*"],S={};let O=a.scrollToNode?m:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!_){a.onNotFound?a.onNotFound({pathname:f,route:x,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",f,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let T={pathname:f,route:x,params:S,query:g,hash:h,element:o,state:r},k=await nv(a.guards,T);if(k===!1)return;if(typeof k=="string")return qo(k,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,f+(p||"")+(h||""))}catch{}if(b||!y){let T={route:x,routePath:v,hash:h,debugging:!1};Object.keys(S).length&&(T.params=S),Object.keys(g).length&&(T.query=g),a.updateState&&o.state.update(T,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let k=o.__ref?.origin?.content,D={};if(k)for(let z in k){let N=k[z];z==="__ref"||z==="props"||z==="node"||z==="parent"||z==="key"||(typeof N=="string"||typeof N=="number"||typeof N=="boolean"||typeof N=="object"&&N!==null&&!N.node&&!N.__ref)&&(D[z]=N)}let te={...D,...typeof _=="object"?_:{extends:_}};a.useFragment&&(te.tag="fragment");try{o.set(te,{contentElementKey:c})}catch(z){console.error("[smbls/router] failed to render route content",f,z)}}if(a.scrollToTop&&O?.scrollTo&&O.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&_[c]?.node?.scrollTo&&_[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let T=i.getElementById(h);if(T&&O?.scrollTo){let k=T.getBoundingClientRect().top+m.scrollTop-(a.scrollToOffset||0);O.scrollTo({...a.scrollToOptions||{},top:k,left:0})}}zo("routeChanged",o,a)},XL=qo,YL=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||qo)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},sv={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>kA(e,e.href)||kA(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:YL},dP={extends:"Link"},iv={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||qo)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},pP={extends:[sv,iv]},hP={};X(hP,{Select:()=>gP});var gP={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}},mP={};X(mP,{Button:()=>yP,ButtonSet:()=>_P,CircleButton:()=>xP,IconButton:()=>wP,KangorooButton:()=>vP,SquareButton:()=>bP});var yP={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},bP={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},xP={extends:"SquareButton",round:"C"},vP={extends:"Button",childExtends:"IconText"},_P={tag:"nav",display:"flex",childExtends:"SquareButton"},wP={extends:["SquareButton","ClickableItem"],round:"Z"},SP={};X(SP,{Dialog:()=>kP,DialogFooter:()=>AP,DialogHeader:()=>CP});var kP={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},CP={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},AP={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}},EP={};X(EP,{Tooltip:()=>OP,TooltipHidden:()=>TP,TooltipParent:()=>PP});M();var OP={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:e=>Bo(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},TP={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},PP={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}},RP={};X(RP,{Avatar:()=>$P});var $P={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`},IP={};X(IP,{Range:()=>FP});var FP={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:db("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:db("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}},jP={};X(jP,{Dropdown:()=>DP,DropdownList:()=>LP,DropdownParent:()=>MP,DropdownParentFocus:()=>NP,DropdownSiblingFocus:()=>BP});var DP={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},LP={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},MP={position:"relative",zIndex:999,style:{"&:hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},NP={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},BP={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}},VP={};X(VP,{Notification:()=>zP});var zP={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}},ZL=Object.assign({},RO,NO,VO,WO,HO,YO,rT,oT,JO,iT,lT,ZO,uT,$T,NT,WT,HT,GT,YT,QT,rP,sP,cP,hP,mP,SP,EP,RP,IP,jP,VP);var JL=null;function QL(e){JL=e}M();var eM={};X(eM,{CDN_PROVIDERS:()=>Mt,DOMQL_EVENTS:()=>Yb,DOMQ_PROPERTIES:()=>Uo,ENV:()=>hx,HTML_TAGS:()=>Da,METHODS:()=>Ia,METHODS_EXL:()=>Zf,NODE_ENV:()=>Lt,OPTIONS:()=>sd,PACKAGE_MANAGER_TO_CDN:()=>Rf,PARSED_DOMQ_PROPERTIES:()=>Yf,PROPS_METHODS:()=>On,STATE_METHODS:()=>En,STATE_PROPERTIES:()=>Xb,SVG_TAGS:()=>Tx,TYPES:()=>la,UNIVERSAL_RESERVED_KEYS:()=>Pf,addCaching:()=>vf,addContext:()=>xf,addExtend:()=>Fx,addExtends:()=>Qe,addItemAfterEveryElement:()=>Db,addProtoToArray:()=>Gf,addRef:()=>mf,applyCSS:()=>oM,applyDependentState:()=>Qx,applyEvent:()=>Af,applyEventUpdate:()=>Ef,applyExtends:()=>Dx,applyProps:()=>Sa,arrayContainsOtherArray:()=>Tb,arraysEqual:()=>Mb,arrayzeValue:()=>Ka,buildImgSrcset:()=>ld,buildSourcesAndImg:()=>cd,cache:()=>n0,call:()=>AE,captureSnapshot:()=>u0,checkForStateTypes:()=>Xx,checkIfInherits:()=>Cf,checkIfStringIsInArray:()=>Vb,clone:()=>Jb,cloneAndMergeArrayExtend:()=>ma,cloneFunction:()=>DA,concatAddExtends:()=>Rx,copyJavaScriptToClipboard:()=>O0,copyStringToClipboard:()=>E0,createBasedOnType:()=>gf,createElement:()=>Kx,createElementExtends:()=>of,createExtends:()=>nd,createExtendsFromKeys:()=>La,createExtendsStack:()=>cf,createIfConditionFlag:()=>wx,createInheritedState:()=>Yx,createKey:()=>td,createNestedObject:()=>ix,createNestedObjectByKeyPath:()=>Jx,createObjectWithoutPrototype:()=>Ju,createParent:()=>yf,createPath:()=>bf,createProps:()=>od,createPropsStack:()=>pf,createRoot:()=>Gx,createScope:()=>t0,createSnapshotId:()=>ed,customDecodeURIComponent:()=>Kb,customEncodeURIComponent:()=>Gb,cutArrayAfterValue:()=>Fb,cutArrayBeforeValue:()=>Ib,debounce:()=>jA,debounceOnContext:()=>xx,decodeNewlines:()=>qb,deepClone:()=>et,deepContains:()=>ox,deepDefaults:()=>ka,deepDestringifyFunctions:()=>fa,deepExtend:()=>nf,deepMerge:()=>Qt,deepMergeExtends:()=>Xt,deepStringifyFunctions:()=>ca,defineSetter:()=>c0,destringifyGlobalScope:()=>Qb,detectHeightOnInit:()=>g0,detectInfiniteLoop:()=>ux,document:()=>me,encodeNewlines:()=>Hb,error:()=>Tf,excludeKeysFromObject:()=>dx,exec:()=>Ne,extendCachedRegistry:()=>$x,extendStackRegistry:()=>pa,extractArrayExtend:()=>ga,fetchLibraryData:()=>C0,fibonacciNumberByIndex:()=>m0,filterArrays:()=>Nb,filterArraysFast:()=>Bb,finalizeExtends:()=>uf,findClosestNumber:()=>If,findClosestNumberInFactory:()=>k0,findInheritedState:()=>kf,findKeyPosition:()=>Wb,flattenExtend:()=>jo,formatDate:()=>h0,generateHash:()=>ef,generateKey:()=>da,generateMetaTags:()=>S0,get:()=>fE,getActiveRoute:()=>ov,getCDNUrl:()=>$f,getCapitalCaseKeys:()=>BA,getCdnProviderFromConfig:()=>d0,getChildStateInKey:()=>Sf,getChildren:()=>hE,getContext:()=>vE,getCookie:()=>Ex,getDB:()=>EE,getEmotionStylesheet:()=>$0,getExtendsInElement:()=>jx,getExtendsStack:()=>ba,getExtendsStackRegistry:()=>rf,getFrequencyInArray:()=>Pb,getHashedExtend:()=>ha,getImportMapScript:()=>p0,getInObjectByPath:()=>cx,getLocalStorage:()=>LA,getNev:()=>bx,getPageMetadata:()=>FE,getParentStateInKey:()=>wf,getPath:()=>gE,getQuery:()=>OE,getRef:()=>pE,getRoot:()=>yE,getRootContext:()=>xE,getRootData:()=>bE,getRootState:()=>mE,getRootStateInKey:()=>_f,getSpreadChildren:()=>VA,global:()=>Ab,hasFunction:()=>Fo,hasHandlerPlugin:()=>qa,hasOwnProperty:()=>tx,inheritChildExtends:()=>af,inheritChildPropsExtends:()=>sf,inheritParentProps:()=>va,inheritRecursiveChildExtends:()=>lf,init:()=>md,initProps:()=>Hx,is:()=>Yt,isArray:()=>U,isBoolean:()=>Gu,isContextComponent:()=>zA,isCyclic:()=>fx,isDOMNode:()=>st,isDate:()=>Xu,isDefined:()=>Bo,isDevelopment:()=>rd,isEmpty:()=>Yu,isEmptyObject:()=>rx,isEqualDeep:()=>Zu,isFunction:()=>F,isHtmlElement:()=>Wf,isLocal:()=>yx,isMethod:()=>TE,isMobile:()=>Cx,isNode:()=>Va,isNot:()=>Ob,isNotProduction:()=>Ha,isNull:()=>Ku,isNumber:()=>Pn,isObject:()=>j,isObjectLike:()=>oe,isPhoto:()=>y0,isProduction:()=>Vo,isStaging:()=>mx,isState:()=>Zx,isString:()=>R,isStringFunction:()=>_x,isTest:()=>Qu,isTesting:()=>gx,isUndefined:()=>Bt,isUniversallyReservedKey:()=>f0,isValidHtmlTag:()=>Px,joinArrays:()=>Ra,jointStacks:()=>Ix,keys:()=>s0,lastLevel:()=>gd,lastPathname:()=>Mf,loadCssFile:()=>_0,loadJavascript:()=>w0,loadJavascriptFile:()=>b0,loadJavascriptFileEmbedSync:()=>v0,loadJavascriptFileSync:()=>x0,loadRemoteCSS:()=>IE,loadRemoteScript:()=>$E,log:()=>_E,logGroupIf:()=>kx,logIf:()=>Sx,lookdown:()=>lE,lookdownAll:()=>cE,lookup:()=>aE,lowercaseFirstLetter:()=>Wa,makeObjectWithoutPrototype:()=>nx,map:()=>Zb,mapStringsWithContextComponents:()=>ya,matchRoute:()=>tv,matchesComponentNaming:()=>An,memoize:()=>vx,merge:()=>it,mergeSharedLibraries:()=>A0,nextElement:()=>SE,normalizeLibraryKey:()=>Ma,objectToString:()=>ua,objectizeStringProperty:()=>xa,overwrite:()=>Jf,overwriteDeep:()=>Rn,overwriteShallow:()=>Qf,overwriteState:()=>e0,parse:()=>i0,parseDeep:()=>Of,parseQuery:()=>rv,parseRoutePattern:()=>ev,pickupElementFromProps:()=>Nx,pickupPropsFromElement:()=>Mx,previousElement:()=>kE,propExists:()=>Ux,propertizeElement:()=>Bx,propertizeUpdate:()=>UA,reinit:()=>nM,remove:()=>uE,removeChars:()=>T0,removeCookie:()=>Ox,removeDuplicateProps:()=>_a,removeDuplicatesInArray:()=>$a,removeFromArray:()=>Rb,removeFromObject:()=>sx,removeNestedKeyByPath:()=>ax,removeValueFromArray:()=>qf,removeValueFromArrayAll:()=>jb,reorderArrayByValues:()=>Lb,replaceLiteralsWithObjectFields:()=>$A,replaceOctalEscapeSequences:()=>Ub,resolveAsset:()=>Zt,resolveHandler:()=>Fa,resolveSharedLibraries:()=>DE,returnValueAsText:()=>hf,router:()=>qo,runGuards:()=>nv,runPluginHook:()=>ja,scratchSystem:()=>lO,scratchUtils:()=>NE,self:()=>Eb,set:()=>Y0,setActiveRootState:()=>l0,setCookie:()=>Ax,setHashedExtend:()=>tf,setInObjectByPath:()=>lx,setLocalStorage:()=>MA,setNodeStyles:()=>o0,setProps:()=>dE,setPropsPrototype:()=>ff,spotByPath:()=>iE,srcsetFor:()=>Lo,stringIncludesAny:()=>Kf,stringToObject:()=>ex,swapItemsInArray:()=>$b,syncProps:()=>wa,toCamelCase:()=>id,toDashCase:()=>ad,toDescriptionCase:()=>R0,toTitleCase:()=>P0,toggleFullscreen:()=>RE,triggerEventOn:()=>zo,triggerEventOnUpdate:()=>r0,trimStringFromSymbols:()=>zb,unstackArrayOfObjects:()=>Hf,update:()=>Vx,updateProps:()=>qx,variables:()=>CE,verbose:()=>a0,warn:()=>wE,window:()=>se});M();M();var tM=H(),WP=(e=tM,t)=>{let r=j(t.localFile)?t.localFile:{},n=et(r.designSystem||{});return Qt(e,n)},rM={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},md=(e,t=rM)=>{let r=WP(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=t.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(s=m)}let i=Y0({verbose:t.verbose,useReset:t.useReset,useFontImport:t.useFontImport,useVariable:t.useVariable,useSvgSprite:t.useSvgSprite,useDocumentTheme:t.useDocumentTheme,useIconSprite:t.useIconSprite,useDefaultConfig:t.useDefaultConfig,globalTheme:s,themeRoot:t.themeRoot,files:t.files,assets:t.assets,...r},{newConfig:t.newConfig,config:t.config});i&&(i.scopeSelector=n);let a=XE(i.font,i.files),l=i.useReset,c=i.useVariable,u=i.useFontImport,d=i.useSvgSprite,f=e.svg,p=i.useIconSprite,h=e.icons;if(u&&Vt(a),c&&(Vt({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let y in i.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[o]:i.CSS_MEDIA_VARS[y]}:m[y]=i.CSS_MEDIA_VARS[y];Vt(m)}l&&Vt(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];Vt(m)}return(f||d)&&SO(i.svg,{document:t.document}),(h||p)&&CO(i.icons,{document:t.document}),i},UP={},nM=(e,t=UP)=>{let r=WP(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=Y0({verbose:!1,...r});if(!t.preventInject){if(Vt({[n]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith("@media")?i[a]={[o]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];Vt(i)}Vt(s.reset)}return s},oM=(e,t=UP)=>{Vt(e)};M();M();var J9=se&&se.location?se.location.host.includes("dev."):rd();M();Do();var sM={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},iM={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},Q9={...sM,router:iM};M();M();M();M();Do();var Nf={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},aM=Object.create(null);for(let e in Nf)aM[Nf[e]]=e;var tb=Object.create(null);for(let e in Nf){let t=Nf[e];if(tb[t])throw new Error(`Duplicate abbreviation "${t}" for "${e}" \u2014 already used by "${tb[t]}"`);tb[t]=e}var lM=0,cM=()=>`${Date.now().toString(36)}-${(lM++).toString(36)}`,Pa=(e,t,r={})=>({id:cM(),ts:Date.now(),type:e,level:t,...r}),uM=e=>{let t=[],r=e,n=0;for(;r&&n<32;)r.key!=null&&t.unshift(String(r.key)),r=r.parent,n++;return t.join(" > ")},Bf=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:uM(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null,Mo=e=>e?.context?.analyze,fM={init:{category:"lifecycle",type:"lifecycle",level:"debug"},create:{category:"lifecycle",type:"lifecycle",level:"debug"},render:{category:"lifecycle",type:"lifecycle",level:"debug"},beforeRemove:{category:"lifecycle",type:"lifecycle",level:"debug"},remove:{category:"lifecycle",type:"lifecycle",level:"debug"}},dM=(e,{category:t,type:r,level:n})=>o=>{let s=Mo(o);!s||!s.shouldCapture(t)||s.emit(Pa(r,n,{hook:e,element:Bf(o)}))},EA=e=>(t,r)=>{let n=Mo(t);!n||!n.shouldCapture("state")||n.emit(Pa("state","debug",{hook:e,element:Bf(t),changedKeys:r?.changedKeys||null}))},pM={name:"analyze",error(e,t){let r=Mo(e);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(Pa("error","error",{hook:t?.hook||"error",element:Bf(e),error:n,message:n?.message||(typeof t?.message=="string"?t.message:null)}))},renderRouter(e){let t=Mo(e);t&&(!t.shouldCapture("navigation")&&!t.shouldCapture("lifecycle")||t.emit(Pa("navigation","info",{hook:"renderRouter",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=Mo(e);!t||!t.shouldCapture("updates")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(e){let t=Mo(e);if(!t||!t.shouldCapture("updates"))return;let r=null;e.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-e.__ref.__analyzeUpdateStart,e.__ref.__analyzeUpdateStart=null),t.emit(Pa("update","debug",{hook:"update",element:Bf(e),durationMs:r}))},beforeStateUpdate:EA("beforeStateUpdate"),stateUpdate:EA("stateUpdate")};for(let[e,t]of Object.entries(fM))pM[e]=dM(e,t);M();M();M();var e7=typeof se<"u"&&typeof se.document<"u";M();var t7=typeof se<"u"&&typeof se.document<"u";M();var r7=typeof se<"u"&&typeof se.document<"u";var Jt=Object.create(null);Jt.open="0";Jt.close="1";Jt.ping="2";Jt.pong="3";Jt.message="4";Jt.upgrade="5";Jt.noop="6";var Vu=Object.create(null);Object.keys(Jt).forEach(e=>{Vu[Jt[e]]=e});var yb={type:"error",data:"parser error"},HP=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",qP=typeof ArrayBuffer=="function",GP=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,av=({type:e,data:t},r,n)=>HP&&t instanceof Blob?r?n(t):OA(t,n):qP&&(t instanceof ArrayBuffer||GP(t))?r?n(t):OA(new Blob([t]),n):n(Jt[e]+(t||"")),OA=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function TA(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var rb;function hM(e,t){if(HP&&e.data instanceof Blob)return e.data.arrayBuffer().then(TA).then(t);if(qP&&(e.data instanceof ArrayBuffer||GP(e.data)))return t(TA(e.data));av(e,!1,r=>{rb||(rb=new TextEncoder),t(rb.encode(r))})}var PA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",aa=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<PA.length;e++)aa[PA.charCodeAt(e)]=e;var gM=e=>{let t=e.length*.75,r=e.length,n,o=0,s,i,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n<r;n+=4)s=aa[e.charCodeAt(n)],i=aa[e.charCodeAt(n+1)],a=aa[e.charCodeAt(n+2)],l=aa[e.charCodeAt(n+3)],u[o++]=s<<2|i>>4,u[o++]=(i&15)<<4|a>>2,u[o++]=(a&3)<<6|l&63;return c},mM=typeof ArrayBuffer=="function",lv=(e,t)=>{if(typeof e!="string")return{type:"message",data:KP(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:yM(e.substring(1),t)}:Vu[r]?e.length>1?{type:Vu[r],data:e.substring(1)}:{type:Vu[r]}:yb},yM=(e,t)=>{if(mM){let r=gM(e);return KP(r,t)}else return{base64:!0,data:e}},KP=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,XP="",bM=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((s,i)=>{av(s,!1,a=>{n[i]=a,++o===r&&t(n.join(XP))})})},xM=(e,t)=>{let r=e.split(XP),n=[];for(let o=0;o<r.length;o++){let s=lv(r[o],t);if(n.push(s),s.type==="error")break}return n};function vM(){return new TransformStream({transform(e,t){hM(e,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,n)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var nb;function ju(e){return e.reduce((t,r)=>t+r.length,0)}function Du(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;o<t;o++)r[o]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function _M(e,t){nb||(nb=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(ju(r)<1)break;let l=Du(r,1);s=(l[0]&128)===128,o=l[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(ju(r)<2)break;let l=Du(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(ju(r)<8)break;let l=Du(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(yb);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(ju(r)<o)break;let l=Du(r,o);a.enqueue(lv(s?l:nb.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(yb);break}}}})}var YP=4;function Se(e){if(e)return wM(e)}function wM(e){for(var t in Se.prototype)e[t]=Se.prototype[t];return e}Se.prototype.on=Se.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Se.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};Se.prototype.off=Se.prototype.removeListener=Se.prototype.removeAllListeners=Se.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};Se.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,t)}return this};Se.prototype.emitReserved=Se.prototype.emit;Se.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Se.prototype.hasListeners=function(e){return!!this.listeners(e).length};var yd=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),St=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),SM="arraybuffer";function ZP(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var kM=St.setTimeout,CM=St.clearTimeout;function bd(e,t){t.useNativeTimers?(e.setTimeoutFn=kM.bind(St),e.clearTimeoutFn=CM.bind(St)):(e.setTimeoutFn=St.setTimeout.bind(St),e.clearTimeoutFn=St.clearTimeout.bind(St))}var AM=1.33;function EM(e){return typeof e=="string"?OM(e):Math.ceil((e.byteLength||e.size)*AM)}function OM(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function JP(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function TM(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function PM(e){let t={},r=e.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}var RM=class extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}},cv=class extends Se{constructor(e){super(),this.writable=!1,bd(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new RM(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=lv(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){let t=TM(e);return t.length?"?"+t:""}},$M=class extends cv{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||t()})),this.writable||(r++,this.once("drain",function(){--r||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};xM(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,bM(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=JP()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},QP=!1;try{QP=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var IM=QP;function FM(){}var jM=class extends $M{constructor(e){if(super(e),typeof location<"u"){let t=location.protocol==="https:",r=location.port;r||(r=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(n,o)=>{this.onError("xhr post error",n,o)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,r)=>{this.onError("xhr poll error",t,r)}),this.pollXhr=e}},No=class zu extends Se{constructor(t,r,n){super(),this.createRequest=t,bd(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=ZP(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=zu.requestsCount++,zu.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=FM,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete zu.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};No.requestsCount=0;No.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",RA);else if(typeof addEventListener=="function"){let e="onpagehide"in St?"pagehide":"unload";addEventListener(e,RA,!1)}}function RA(){for(let e in No.requests)No.requests.hasOwnProperty(e)&&No.requests[e].abort()}var DM=(function(){let e=eR({xdomain:!1});return e&&e.responseType!==null})(),LM=class extends jM{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=DM&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new No(eR,this.uri(),e)}};function eR(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||IM))return new XMLHttpRequest}catch{}if(!t)try{return new St[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var tR=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",MM=class extends cv{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=tR?{}:ZP(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(n){return this.emitReserved("error",n)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;av(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}n&&yd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=JP()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},ob=St.WebSocket||St.MozWebSocket,NM=class extends MM{createSocket(e,t,r){return tR?new ob(e,t,r):t?new ob(e,t):new ob(e)}doWrite(e,t){this.ws.send(t)}},BM=class extends cv{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=_M(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=vM();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();let o=()=>{r.read().then(({done:i,value:a})=>{i||(this.onPacket(a),o())}).catch(i=>{})};o();let s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;this._writer.write(r).then(()=>{n&&yd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}},VM={websocket:NM,webtransport:BM,polling:LM},zM=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,WM=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function bb(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=zM.exec(e||""),s={},i=14;for(;i--;)s[WM[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=UM(s,s.path),s.queryKey=HM(s,s.query),s}function UM(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function HM(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var xb=typeof addEventListener=="function"&&typeof removeEventListener=="function",Wu=[];xb&&addEventListener("offline",()=>{Wu.forEach(e=>e())},!1);var Uu=class Hu extends Se{constructor(t,r){if(super(),this.binaryType=SM,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=bb(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=bb(r.host).host);bd(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=PM(this.opts.query)),xb&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Wu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=YP,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&Hu.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",Hu.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let r=0;r<this.writeBuffer.length;r++){let n=this.writeBuffer[r].data;if(n&&(t+=EM(n)),r>0&&t>this._maxPayload)return this.writeBuffer.slice(0,r);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,yd(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let s={type:t,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(Hu.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),xb&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Wu.indexOf(this._offlineEventListener);n!==-1&&Wu.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};Uu.protocol=YP;var qM=class extends Uu{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),r=!1;Uu.priorWebsocketSuccess=!1;let n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",u=>{if(!r)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Uu.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let d=new Error("probe error");d.transport=t.name,this.emitReserved("upgradeError",d)}}))};function o(){r||(r=!0,c(),t.close(),t=null)}let s=u=>{let d=new Error("probe error: "+u);d.transport=t.name,o(),this.emitReserved("upgradeError",d)};function i(){s("transport closed")}function a(){s("socket closed")}function l(u){t&&u.name!==t.name&&o()}let c=()=>{t.removeListener("open",n),t.removeListener("error",s),t.removeListener("close",i),this.off("close",a),this.off("upgrading",l)};t.once("open",n),t.once("error",s),t.once("close",i),this.once("close",a),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}},rR=class extends qM{constructor(e,t={}){let r=typeof e=="object"?e:t;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(n=>VM[n]).filter(n=>!!n)),super(e,r)}},n7=rR.protocol;function GM(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=bb(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let o=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port+t,n.href=n.protocol+"://"+o+(r&&r.port===n.port?"":":"+n.port),n}var nR={};X(nR,{Decoder:()=>nN,Encoder:()=>rN,PacketType:()=>J,isPacketValid:()=>lN,protocol:()=>tN});var KM=typeof ArrayBuffer=="function",XM=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,oR=Object.prototype.toString,YM=typeof Blob=="function"||typeof Blob<"u"&&oR.call(Blob)==="[object BlobConstructor]",ZM=typeof File=="function"||typeof File<"u"&&oR.call(File)==="[object FileConstructor]";function uv(e){return KM&&(e instanceof ArrayBuffer||XM(e))||YM&&e instanceof Blob||ZM&&e instanceof File}function qu(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(qu(e[r]))return!0;return!1}if(uv(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return qu(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&qu(e[r]))return!0;return!1}function JM(e){let t=[],r=e.data,n=e;return n.data=vb(r,t),n.attachments=t.length,{packet:n,buffers:t}}function vb(e,t){if(!e)return e;if(uv(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){let r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=vb(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=vb(e[n],t));return r}return e}function QM(e,t){return e.data=_b(e.data,t),delete e.attachments,e}function _b(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=_b(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=_b(e[r],t));return e}var eN=nj(Mj(),1),wb=(0,eN.default)("socket.io-parser"),sR=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],tN=5,J;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(J||(J={}));var rN=class{constructor(e){this.replacer=e}encode(e){return wb("encoding packet %j",e),(e.type===J.EVENT||e.type===J.ACK)&&qu(e)?this.encodeAsBinary({type:e.type===J.EVENT?J.BINARY_EVENT:J.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===J.BINARY_EVENT||e.type===J.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),wb("encoded %j as %s",e,t),t}encodeAsBinary(e){let t=JM(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}},nN=class iR extends Se{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);let n=r.type===J.BINARY_EVENT;n||r.type===J.BINARY_ACK?(r.type=n?J.EVENT:J.ACK,this.reconstructor=new oN(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(uv(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0,n={type:Number(t.charAt(0))};if(J[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===J.BINARY_EVENT||n.type===J.BINARY_ACK){let s=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);let i=t.substring(s,r);if(i!=Number(i)||t.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!aR(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=a}if(t.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(s,r)}else n.nsp="/";let o=t.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=t.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===t.length)break}n.id=Number(t.substring(s,r+1))}if(t.charAt(++r)){let s=this.tryParse(t.substr(r));if(iR.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return wb("decoded %s as %j",t,n),n}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case J.CONNECT:return Vf(r);case J.DISCONNECT:return r===void 0;case J.CONNECT_ERROR:return typeof r=="string"||Vf(r);case J.EVENT:case J.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&sR.indexOf(r[0])===-1);case J.ACK:case J.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},oN=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let t=QM(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function sN(e){return typeof e=="string"}var aR=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function iN(e){return e===void 0||aR(e)}function Vf(e){return Object.prototype.toString.call(e)==="[object Object]"}function aN(e,t){switch(e){case J.CONNECT:return t===void 0||Vf(t);case J.DISCONNECT:return t===void 0;case J.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&sR.indexOf(t[0])===-1);case J.ACK:return Array.isArray(t);case J.CONNECT_ERROR:return typeof t=="string"||Vf(t);default:return!1}}function lN(e){return sN(e.nsp)&&iN(e.id)&&aN(e.type,e.data)}function Nt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var cN=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),lR=class extends Se{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Nt(e,"open",this.onopen.bind(this)),Nt(e,"packet",this.onpacket.bind(this)),Nt(e,"error",this.onerror.bind(this)),Nt(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,n,o;if(cN.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let s={type:J.EVENT,data:t};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){let l=this.ids++,c=t.pop();this._registerAckCallback(l,c),s.id=l}let i=(n=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||n===void 0?void 0:n.writable,a=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!i||(a?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(e,t){var r;let n=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(n===void 0){this.acks[e]=t;return}let o=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let i=0;i<this.sendBuffer.length;i++)this.sendBuffer[i].id===e&&this.sendBuffer.splice(i,1);t.call(this,new Error("operation has timed out"))},n),s=(...i)=>{this.io.clearTimeoutFn(o),t.apply(this,i)};s.withError=!0,this.acks[e]=s}emitWithAck(e,...t){return new Promise((r,n)=>{let o=(s,i)=>s?n(s):r(i);o.withError=!0,t.push(o),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((n,...o)=>(this._queue[0],n!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(n)):(this._queue.shift(),t&&t(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:J.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case J.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case J.EVENT:case J.BINARY_EVENT:this.onevent(e);break;case J.ACK:case J.BINARY_ACK:this.onack(e);break;case J.DISCONNECT:this.ondisconnect();break;case J.CONNECT_ERROR:this.destroy();let t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,r=!1;return function(...n){r||(r=!0,t.packet({type:J.ACK,id:e,data:n}))}}onack(e){let t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:J.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let r of t)r.apply(this,e.data)}}};function Go(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Go.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};Go.prototype.reset=function(){this.attempts=0};Go.prototype.setMin=function(e){this.ms=e};Go.prototype.setMax=function(e){this.max=e};Go.prototype.setJitter=function(e){this.jitter=e};var Sb=class extends Se{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,bd(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((r=t.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Go({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;let n=t.parser||nR;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new rR(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=Nt(t,"open",function(){r.onopen(),e&&e()}),o=i=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",i),e?e(i):this.maybeReconnectOnOpen()},s=Nt(t,"error",o);if(this._timeout!==!1){let i=this._timeout,a=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),t.close()},i);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(n),this.subs.push(s),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(Nt(e,"ping",this.onping.bind(this)),Nt(e,"data",this.ondata.bind(this)),Nt(e,"error",this.onerror.bind(this)),Nt(e,"close",this.onclose.bind(this)),Nt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){yd(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new lR(this,e,t),this.nsps[e]=r),r}_destroy(e){let t=Object.keys(this.nsps);for(let r of t)if(this.nsps[r].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(n=>{n?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",n)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}},ra={};function sb(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=GM(e,t.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=ra[o]&&s in ra[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||i,l;return a?l=new Sb(n,t):(ra[o]||(ra[o]=new Sb(n,t)),l=ra[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(sb,{Manager:Sb,Socket:lR,io:sb,connect:sb});M();M();M();QL(cL);I();var cR=(e,t,r)=>(n={})=>{let{data:o}=n,{schema:s}=n;o&&(o=e.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?md(a):tn(r[i],a):r[i]=a}),s&&(r.schema=s))},uR=(e,t,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=e.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=TC(r,o);if(s.has("state")&&t.update(r.state),["pages","components","snippets","functions","assets"].some(i=>s.has(i))){let{pathname:i,search:a,hash:l}=r.window.location;e.call("router",i+a+l,e.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&md(r.designSystem)};var uN={success:"green",error:"red",warning:"yellow"},fR=(e,t,r)=>{if(e.symbols){if(!r.connected){r.notifications.connected={title:"Connected",message:"to the Symbols live server"},r.update({connected:!0});let n=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}}else if(r.connected){r.notifications.connected={title:"Disconnected",type:"error"},r.update({connected:!1});let n=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected&&t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},dR={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:e})=>({animationDuration:"C",background:uN[e.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(t,r,n)=>{r.update({animation:"fadeInUp"})},onClick:(t,r,n)=>{delete n.notifications[r.key],r.update({animation:"fadeOutDown"}),n.onClose&&n.onClose(t,r,n)}}),IconText:null,childrenAs:"state",children:({state:e})=>e.notifications}};var fN=!1,dN=()=>fN?"http://localhost:8080":"https://api.symbols.app",pN=e=>{let t=e&&e.editor&&e.editor.socketUrl||e&&e.settings&&e.settings.socketUrl;return typeof t=="string"&&t?{mode:"collab",baseUrl:t}:e&&e.editor&&e.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:{mode:null,baseUrl:null}},hN=async e=>{try{let t=e||dN(),r=await A.fetch(`${t}/service-token`,{method:"GET"}),n;try{let o=await r.clone().json();if(o&&typeof o.token=="string")return o.token.trim();n=await r.text()}catch{n=await r.text()}return(n||"").replace(/\s+/gu,"")||void 0}catch(t){console.error("[sync] Failed to fetch service-token",t)}},gR=(e,t,r,n)=>{e.on("snapshot",cR(t,r,n)),e.on("ops",uR(t,r,n)),e.on("clients",o=>{n.editor?.verbose&&fR(o,t,r)}),e.on("disconnect",o=>{n.editor?.verbose&&console.info("[sync] disconnected",o)})},gN=async(e,t,r,n)=>{let o=await hN(n);if(!o)return console.warn("[sync] no service token \u2014 collab disabled"),null;let s=r.key;if(!s)return console.warn("[sync] ctx.key missing \u2014 collab cannot authenticate"),null;let i=r.editor?.projectId||null,a=Co(n,{path:"/collab-socket",transports:["websocket"],auth:{token:o,projectId:i,projectKey:s,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return a.on("connect",()=>{r.editor?.verbose&&console.info("[sync] connected (collab)")}),gR(a,e,t,r),a},mN=(e,t,r)=>{let n=Co({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),gR(n,e,t,r),n.on("reload",()=>{typeof A<"u"&&A.location&&A.location.reload()}),n},yN=async(e,t,r)=>{let{mode:n,baseUrl:o}=pN(r);return n?n==="collab"?gN(e,t,r,o):n==="runner"?mN(e,t,r):null:null},bN={onInit:yN};var mR=e=>typeof e>"u",pR=e=>!!(e?.editor?.socketUrl||e?.settings?.socketUrl),hR=e=>e?.editor?.runtime==="runner",yR=(e,t)=>{Array.isArray(e.extends)?e.extends.push(t):e.extends?e.extends=[e.extends,t]:e.extends=[t]},bR={name:"sync",beforeCreate(e,t){let r=t&&t.editor;(r&&!mR(r.liveSync)?r.liveSync:pR(t)||hR(t))&&(pR(t)&&!hR(t)&&!t?.key||yR(e,bN))}},xR={name:"notifications",beforeCreate(e,t){if(!t)return;let r=mR(t.notifications)?null:t.notifications,n=t.editor&&t.editor.verbose===!0;(r===!0||r!==!1&&n)&&yR(e,dR)}};I();function vR(e){return C(e)?e:$(e)?e.find(t=>C(t)):""}function dv(e){if(!e)return;let t=e.__ref.__componentKey,r=e.extends&&vR(e.extends),n=e.parent&&e.parent.childExtends&&vR(e.parent.childExtends);return(t||r||n||"").split("_")[0].split(".")[0].split("+")[0]}function xd(e){if(!e||!e.__ref)return;let{components:t,pages:r,editor:n}=e.context,o=dv(e);return n&&n.onInitInspect&&!n.onInitInspect(o,e,e.state)?xd(e.parent):o&&(t[o]||r[o])?e:xd(e.parent)}var xN=(e,t,r)=>{let n=r.window||window;n.onkeydown=o=>{o.altKey&&o.shiftKey&&e.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},n.onkeyup=o=>{e.state.preventSelect&&(!o.altKey||!o.shiftKey)&&(e.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),e.Inspector.state.update({area:!1}))}},fv={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:xN,onMousemove:(e,t,r)=>{let n=e.target.ref,o=xd(n),s=t.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=dv(o),a=c=>{s.update({area:c,focusKey:i})},l=()=>{if(e.altKey&&e.shiftKey){let{x:c,y:u,width:d,height:f}=o.node.getBoundingClientRect(),p={x:c,y:u,width:d,height:f};if(!s.area)return a(p);s.area.x!==p.x&&a(p)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{l(),window.requestAnimationFrame(l)})},onMousedown:(e,t,r)=>{if(!r.debugging)return;let n=e.target.ref,o=xd(n);if(!o)return;let s=dv(o);if(!s)return;let i=n.context.editor;if(i&&i.onInspect)return i.onInspect(s,n,n.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return n.context.socket?.emit&&n.context.socket.emit("route",a),e.preventDefault(),e.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(e,t)=>!(t.area&&t.parent.debugging),style:{boxShadow:"0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",zIndex:"9999999",borderRadius:"10px",pointerEvents:"none"},Span:{position:"absolute",margin:"A2 0",fontSize:"Z",color:"text",zIndex:"99999999",transition:"all, defaultBezier, X",textDecoration:"underline",fontWeight:"500",top:"100%",style:{boxShadow:"0 25px 10px 35px black",textShadow:"0 0 10px black"},text:"{{ focusKey }}"},onInit:({context:e})=>{let{components:t}=e;if(w(t)){let{Content:r,...n}=t;for(let o in n)lo[o]||(n[o].__ref||(n[o].__ref={}),n[o].__ref.__componentKey||(n[o].__ref.__componentKey=o))}},onBeforeUpdate:(e,t,r)=>{let{area:n}=r,o=r.area&&r.parent.debugging,s;if(!o)s="display: none !important";else if(n){let{x:i,y:a,width:l,height:c}=n;s=`
|
|
105
105
|
display: block !important;
|
|
106
106
|
top: ${a-6}px;
|
|
107
107
|
left: ${i-6}px;
|
|
108
108
|
width: ${l+12}px;
|
|
109
109
|
height: ${c+12}px;
|
|
110
|
-
`}return t.node.style=s,t.Span.node.innerText=r.focusKey,!1}}},
|
|
110
|
+
`}return t.node.style=s,t.Span.node.innerText=r.focusKey,!1}}},_R={name:"inspect",beforeCreate(e,t){Array.isArray(e.extends)?e.extends.push(fv):e.extends?e.extends=[e.extends,fv]:e.extends=[fv]}};var vN=async(e,t={})=>{let r=t.symbolsConfig,n=r?.owner&&r?.key?`${r.owner}--${r.key}`:r?.key,o=t.key=t.key||n||(C(e)?e:"smblsapp");if(t.define=t.define||fo,t.cssPropsRegistry=we,t.window=g1(t),t.sharedLibraries&&t.sharedLibraries.length){if(t.sharedLibraries.some(f=>typeof f=="string")){let{resolveSharedLibraries:f}=await Promise.resolve().then(()=>(I(),P_));t.sharedLibraries=await f(t.sharedLibraries)}A1(t)}let[s,i]=S1(o,t);t.designSystem=s,t.registry=i,t.cases||(t.cases={}),t.shorthand&&uu.prepareContext(t);let a=k1(e,t);t.state=a,Vs(a),t.pages=C1(e,t),t.components=m1(t),t.utils=y1(t),Er[t.packageManager]&&(t.dependencies=await x1(t)),t.methods=b1(t),t.routerOptions=t1(e,t),t.defaultExtends=[zc],t.snippets=t.snippets||{},t.functions=t.functions||{},t.plugins=t.plugins||[],t.globalScope&&w(t.globalScope)&&(t.globalScope=ls(t.globalScope));let l=(d,f)=>{let p=f?d[f]:d;if(!w(p))return;let h=lt(p);try{Object.assign(p,h)}catch(g){if(f)d[f]=h;else throw g}};l(e),l(t,"components"),l(t,"pages"),l(t,"functions"),l(t,"methods"),l(t,"snippets"),l(t,"app"),t.fetch&&t.fetch.__resolved&&delete t.fetch.__resolved,t.db&&t.db.__resolved&&delete t.db.__resolved;let c=d=>t.plugins.some(f=>f.name===d);if(t.polyglot&&!c("polyglot")){t.plugins.push(au);for(let d in ji)d in t.functions||(t.functions[d]=ji[d])}if(c("helmet")||t.plugins.push(i1),t.fetch&&!c("fetch")&&t.plugins.push(yh),t.designSystem?.typography?.useCapsize!==!1&&!c("capsize")&&(t.plugins.push(P1),t.cssPropsRegistry.useCapsize=T1),t.shorthand&&!c("shorthand")&&t.plugins.push(uu),t.analyze&&!c("analyze")){let d=t.analyze===!0?{}:t.analyze;t.analyze=xy(d),t.plugins.push(zi)}return t.sync!==!1&&!c("sync")&&t.plugins.push(bR),t.inspect&&!c("inspect")&&t.plugins.push(_R),(t.notifications===!0||t.editor&&t.editor.verbose===!0)&&t.notifications!==!1&&!c("notifications")&&t.plugins.push(xR),t},pv=async(e,t)=>{w(t)||(t={}),tr(e)?(e={},t.parent=e):C(e)?(e={},t.key=e):w(e)||(e={});let r=t.window||(typeof window<"u"?window:null),n=r?.__BRENDER__,o=null;if(n){let l=t.document||(typeof document<"u"?document:null);l&&(o=Array.from(l.head.querySelectorAll("style")))}if(await vN(e,t),t.useReset!==!1){let l=t.document||(typeof document<"u"?document:null);if(l){let c=l.head.querySelector("style[data-smbls]");c||(c=l.createElement("style"),c.setAttribute("data-smbls",""),l.head.appendChild(c));let u=c.sheet;if(u){try{u.insertRule("*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }",0)}catch{}try{u.insertRule("h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }",1)}catch{}}}}if(t.app&&w(t.app))for(let l in t.app)e[l]===void 0&&(e[l]=t.app[l]);e.extends=f1(e,t),t.router!==!1&&(e.routes=t.pages),e.state=t.state,e.context=t,e.data=e.data||{},t.skipDesignSystemInit||await v1({functions:t.functions,utils:t.utils,snippets:t.snippets,...t.files},t);for(let l of t.plugins)if(typeof l.beforeCreate=="function")try{l.beforeCreate(e,t)}catch(c){console.error(`[smbls] plugin "${l.name||"?"}" beforeCreate error:`,c)}let s=t.document;if(!s||!s.createElement)return e;let i=t.parent||s.body;if(n)return _N($t,e,i,t,r,o);let a=$t(e,i,t.key,{verbose:t.verbose,context:t,...t.domqlOptions});return typeof window<"u"&&!t.document&&(window.__smblsApp=a),a},_N=async(e,t,r,n,o,s)=>{let i=r.ownerDocument||document;s&&s.forEach(c=>{c.parentNode&&c.remove()});let a=[];for(let c of r.childNodes){if(c.nodeType===1){let u=c.tagName.toLowerCase();if(u==="script"||u==="link"||u==="style"||u==="svg"&&c.id)continue}a.push(c)}a.forEach(c=>c.remove()),i.querySelectorAll("[data-br]").forEach(c=>c.removeAttribute("data-br"));let l=e(t,r,n.key,{verbose:n.verbose,context:n,...n.domqlOptions});return wN(o),l},wN=e=>{e&&(delete e.__BRENDER__,delete e.__BR_REGISTRY__)};var hv=(e,t)=>ae(e,w(t)?t:{}),SN=e=>{if(typeof document>"u")return;let t=e.themeRoot||e.document&&e.document.documentElement||document.documentElement;if(!t||typeof t.setAttribute!="function")return;let r=e.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(r=s)}}catch{}let n=e.themeStorageKey;if(r==="auto"&&n&&typeof localStorage<"u")try{let s=localStorage.getItem(n);s&&(r=s)}catch{}let o=r==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():r;t.setAttribute("data-theme",o),e.globalTheme=r,e.themeRoot=t},kN=()=>{if(typeof document>"u")return null;try{let e=document.querySelector('meta[name="symbols-runtime"]'),t=e&&e.getAttribute("content");return typeof t=="string"&&t?t:null}catch{return null}},wR=e=>{let t=kN();t&&(e.editor||(e.editor={}),e.editor.runtime||(e.editor.runtime=t),t==="runner"&&typeof e.editor.livesync>"u"&&(e.editor.livesync=!0))},gv=(e,t=Lr,r)=>{let n={...Lr,...hv(t,r)};return wR(n),SN(n),pv(e,n).then(s=>{if(ry(s,n),s.destroy=()=>$i(s),s.onCreate&&s.onCreate(s,s.state,s.context,n),s.context?.analyze?.activate)try{s.context.analyze.activate(s.context)}catch(i){console.error("[analyze] activate error:",i)}return s}).catch(s=>{throw console.error("[smbls] create error:",s),s})},CN=(e,t=Lr,r)=>{let n=gv(e,t,r),o={...Lr,...hv(t,r)},s=o.key;return s1(n,s,{utils:Ri,...o}),n},AN=async(e,t=Lr,r)=>{let n={...Lr,...hv(t,r)};wR(n);let o=t.key;await o1(o,n);let s=await pv(e,n);return ry(s,n),s.destroy=()=>$i(s),n.onCreate&&await n.onCreate(s,s.state,s.context,n),s},EN=(e={},t=Lr,r)=>gv({deps:{isUndefined:Pe},...e},ae({domqlOptions:{onlyResolveExtends:!0}},t),r);Kc(jc);return TR(ON);})();
|