smbls 3.14.37 → 3.14.39

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/dist/smbls.esm.js CHANGED
@@ -1,45 +1,45 @@
1
- var Zb=Object.create;var di=Object.defineProperty;var Jb=Object.getOwnPropertyDescriptor;var Qb=Object.getOwnPropertyNames;var tx=Object.getPrototypeOf,ex=Object.prototype.hasOwnProperty;var I=(t,e)=>()=>(t&&(e=t(t=0)),e);var hi=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),$=(t,e)=>{for(var r in e)di(t,r,{get:e[r],enumerable:!0})},rx=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Qb(e))!ex.call(t,n)&&n!==r&&di(t,n,{get:()=>e[n],enumerable:!(o=Jb(e,n))||o.enumerable});return t};var ox=(t,e,r)=>(r=t!=null?Zb(tx(t)):{},rx(e||!t||!t.__esModule?di(r,"default",{value:t,enumerable:!0}):r,t));var mf,yf,k,q,Hr=I(()=>{"use strict";mf=globalThis,yf=globalThis,k=globalThis,q=k.document});var he,Xo,St,qr=I(()=>{"use strict";Hr();he=t=>(typeof Node=="object"?t instanceof k.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,Xo=t=>(typeof HTMLElement=="object"?t instanceof k.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,St=t=>typeof k<"u"&&(k.Node&&t instanceof k.Node||k.Window&&t instanceof k.Window||t===k||t===document)});var S,_,se,C,_i,wi,E,ki,D,_t,ut,Zo,wt,bf,ct=I(()=>{"use strict";qr();S=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,_=t=>typeof t=="string",se=t=>typeof t=="number",C=t=>typeof t=="function",_i=t=>t===!0||t===!1,wi=t=>t===null,E=t=>Array.isArray(t),ki=t=>t instanceof Date,D=t=>t===null?!1:typeof t=="object",_t=t=>t!==void 0,ut=t=>t===void 0,Zo={boolean:_i,array:E,object:S,string:_,date:ki,number:se,null:wi,function:C,objectLike:D,node:he,htmlElement:Xo,defined:_t},wt=t=>(...e)=>e.some(r=>Zo[r](t)),bf=t=>(...e)=>!e.some(r=>Zo[r](t))});var xf,Sf,_f,wf,Gr,Jo,kf,vf,Qo,Cf,Af,Ef,Tf,Of,Rf,Pf,Kr,tn,er=I(()=>{"use strict";ie();ct();xf=(t,e)=>e.every(r=>t.includes(r)),Sf=(t,e)=>{let r=0;for(let o=0;o<t.length;o++)t[o]===e&&r++;return r},_f=(t,e)=>{if(_(e)&&(e=parseInt(e)),se(e)){if(e<0||e>=t.length||isNaN(e))throw new Error("Invalid index");t.splice(e,1)}else throw new Error("Invalid index");return t},wf=(t,e,r)=>{e<0||r<0||e>=t.length||r>=t.length||([t[e],t[r]]=[t[r],t[e]])},Gr=(...t)=>[].concat(...t),Jo=(t,e=[])=>t.reduce((r,o)=>W(r,Y(o,{exclude:e}),e),{}),kf=(t,e)=>{let r=t.indexOf(e);return r!==-1?t.slice(0,r):t},vf=(t,e)=>{if(!E(t))return;let r=t.indexOf(e);return r!==-1?t.slice(r+1):t},Qo=(t,e)=>{let r=t.indexOf(e);if(r>-1){let o=[...t];return o.splice(r,1),o}return t},Cf=(t,e)=>t.filter(r=>r!==e),Af=(t,e)=>{let r=[];for(let o=0;o<t.length;o++)r.push(t[o]),o<t.length-1&&r.push(e);return r},Ef=(t,e,r)=>{let o=[...t],n=o.indexOf(e),s=o.indexOf(r);if(n!==-1&&s!==-1){let i=o.splice(n,1)[0],a=s<n?s:s+1;o.splice(a,0,i)}return o},Tf=(t,e)=>{if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0},Of=(t,e)=>t.filter(r=>!e.includes(r)),Rf=(t,e)=>{let r=new Set(e);return t.filter(o=>!r.has(o))},Pf=(t,e)=>{if(!t)return 0;let r=0;for(let o=0;o<e.length;o++)t.includes(e[o])&&r++;return r},Kr=t=>E(t)?[...new Set(t)]:t,tn=(t,e)=>{for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!1,configurable:!0,writable:!0})}});function rr(t,e,r={}){let{bracketsLength:o=2}=r,n=o===3?"{{{":"{{";if(!t.includes(n))return t;let s=lx[o],i=e||this.state||{},a=this;return t.replace(s,(c,l,f,p)=>{let u=f.trim();if(p){let d=a?.context,h=d?.functions?.[p]||d?.utils?.[p]||d?.methods?.[p]||d?.snippets?.[p]||a?.[p];if(h&&typeof h=="function")try{return String(h.call(a,u)??"")}catch{return""}return""}if(l){let d=(l.match(/\.\.\//g)||[]).length,h=i;for(let m=0;m<d;m++){if(!h||!h.parent)return"";h=h.parent}if(u==="parent")return String(h.value??"");let g=Yr(h,u);return String(g??"")}else{let d=Yr(i,u);if(d!=null)return String(d);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=Yr(m,u);if(b!=null&&typeof b!="object")return String(b);for(let x in m){let w=m[x];if(w&&typeof w=="object"&&!Array.isArray(w)){let v=Yr(w,u);if(v!=null&&typeof v!="object")return String(v)}}}let y=Yr(h.translations,u);if(y!=null&&typeof y!="object")return String(y)}return""}})}var en,If,lx,Yr,or,$f,fx,Ff,Df,Lf,ux,Mf,Nf,Xr=I(()=>{"use strict";en=(t,e)=>{for(let r of e)if(t.includes(r))return!0;return!1},If=(t,e)=>{let r=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(r,"")},lx={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Yr=(t,e)=>e.split(".").reduce((r,o)=>r?.[o],t);or=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,$f=(t,e)=>{let r=t.split(`
2
- `),o=-1,n=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,l=!1;for(let f=0;f<r.length;f++)if(a.test(r[f])&&!l){if(l=!0,o=f+1,s=r[f].indexOf(e)+1,r[f].includes("{}")){n=o,i=r[f].indexOf("{}")+3;break}let p=r[f].slice(s+e.length);if(p.includes("{")||p.includes("["))c=1;else{n=f+1,i=r[f].length+1;break}}else if(l&&(c+=(r[f].match(/{/g)||[]).length,c+=(r[f].match(/\[/g)||[]).length,c-=(r[f].match(/}/g)||[]).length,c-=(r[f].match(/]/g)||[]).length,c===0)){n=f+1,i=r[f].lastIndexOf("}")!==-1?r[f].lastIndexOf("}")+2:r[f].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:o,endLineNumber:n}},fx=/\\([0-7]{1,3})/g,Ff=t=>t.replace(fx,(e,r)=>String.fromCharCode(parseInt(r,8))),Df=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),Lf=t=>t.replace(/\/\/\/\/\/n/g,`
3
- `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),ux=/[^a-zA-Z0-9\s]/g,Mf=t=>t.replace(ux,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),Nf=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var Fe,rn,jf,De,Le,Zr,on,Bf,nr=I(()=>{"use strict";Fe=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"]),rn=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),jf=["ref","parent","__element","__depends","__ref","__children","root"],De=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"]),Le=new Set(["update","__element"]),Zr=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"]),on=new Set(["node","context","extends","__element","__ref",...Zr,...De,...Le]),Bf=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var Vf,Me,G,zf,Q,W,Uf,Wf,Y,nn,px,sn,dx,hx,gx,Jr,mx,yx,Nt,bx,xx,Sx,an,Hf,qf,vi,Gf,Kf,cn,sr,kt,Ci,_x,Yf,Xf,Ai,Zf,Jf,Qf,tu,eu,ru,ou,ie=I(()=>{"use strict";Hr();ct();er();Xr();qr();nr();Vf="production",Me=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,G=(t,e,r,o)=>{if(C(t))return e?typeof t.call!="function"?t:t.call(e,e,r||e.state,o||e.context):void 0;if(t!=null&&e?.context?.plugins&&(E(t)||S(t)&&!St(t))){let n=e.context.plugins;for(let s of n)if(s.resolveHandler){let i=s.resolveHandler(t,e);if(typeof i=="function")return G(i,e,r,o)}}return t},zf=(t,e,r)=>{for(let o in e)t[o]=G(e[o],r)},Q=(t,e,r=[])=>{let o=r instanceof Set;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(Me(n)||(o?r.has(n):r.includes(n))||t[n]===void 0&&(t[n]=e[n]));return t},W=(t,e,r=on)=>Uf(t,e,r,null),Uf=(t,e,r,o)=>{if(t===e)return t;if(o){for(let s=0;s<o.length;s+=2)if(o[s]===t&&o[s+1]===e)return t}let n=r instanceof Set;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||Me(s)||s==="constructor"||s==="prototype"||(n?r.has(s):r.includes(s)))continue;let i=t[s],a=e[s];if(D(i)&&D(a)){let c=o||[];c.push(t,e),Uf(i,a,r,c),c.length-=2}else i===void 0&&(t[s]=a)}return t},Wf=(t,e=[])=>{let r=e instanceof Set,o={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(Me(n)||(r?e.has(n):e.includes(n))||(o[n]=t[n]));return o},Y=(t,e={})=>{let{exclude:r=[],cleanUndefined:o=!1,cleanNull:n=!1,window:s,visited:i=new WeakMap,handleExtends:a=!1}=e,c=s||k||globalThis;if(!D(t)||St(t))return t;if(i.has(t))return i.get(t);let f=E(t)?[]:{};i.set(t,f);let p=r instanceof Set?r:r.length>3?new Set(r):null;for(let u in t){if(!Object.prototype.hasOwnProperty.call(t,u)||Me(u)||u==="__proto__"||(p?p.has(u):r.includes(u)))continue;let d=t[u];if(!(o&&d===void 0)&&!(n&&d===null)){if(St(d)){f[u]=d;continue}if(a&&u==="extends"&&E(d)){f[u]=Jo(d,r);continue}if(C(d)){f[u]=d;continue}D(d)?f[u]=Y(d,{...e,visited:i}):f[u]=d}}return f},nn=(t,e={})=>{(t.node||t.__ref||t.parent||t.__element||t.parse)&&((t.__element||t.parent?.__element).warn("Trying to clone element or state at",t),t=t.parse?.());for(let r in t){let o=t[r];if(C(o))e[r]=o.toString();else if(S(o))e[r]={},nn(o,e[r]);else if(E(o)){let n=e[r]=[];for(let s=0;s<o.length;s++){let i=o[s];S(i)?(n[s]={},nn(i,n[s])):C(i)?n[s]=i.toString():n[s]=i}}else e[r]=o}return e},px=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),sn=(t={},e=0)=>{if(t===null||typeof t!="object")return String(t);let r=!1;for(let s in t){r=!0;break}if(!r)return"{}";let o=" ".repeat(e),n=`{
4
- `;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=!1;for(let l=0;l<s.length;l++)if(px.has(s[l])){a=!0;break}let c=a?`'${s}'`:s;if(n+=`${o} ${c}: `,E(i)){n+=`[
5
- `;for(let l of i)D(l)&&l!==null?n+=`${o} ${sn(l,e+2)},
6
- `:_(l)?n+=`${o} '${l}',
7
- `:n+=`${o} ${l},
8
- `;n+=`${o} ]`}else D(i)?n+=sn(i,e+1):_(i)?n+=en(i,[`
9
- `,"'"])?`\`${i}\``:`'${i}'`:n+=i;n+=`,
10
- `}return n+=`${o}}`,n},dx=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],hx=/^["[{]/,gx=/^(export|import)\s/,Jr=t=>{if(!t)return!1;let e=t.trim().replace(/\n\s*/g," ").trim();if(e===""||e==="{}"||e==="[]"||gx.test(e)||!dx.some(s=>s.test(e)))return!1;let o=e.charCodeAt(0),n=e.includes("=>");return!(o===123&&!n||o===91||hx.test(e)&&!n)},mx=t=>(0,eval)(t),yx=(t,e)=>{let r=/^(\s*(?:async\s+)?function\s*[\w$]*\s*\([^)]*\)\s*)\{/.exec(t);if(!r)return null;let o=r[0].length,n=[],s=o,i=1,a=null,c=t.length,l=new RegExp("^(?:const|let|var)\\s+"+e+"\\b");for(;s<c&&i>0;){let p=t[s];if(p==="/"&&t[s+1]==="/"){let u=t.indexOf(`
1
+ var tx=Object.create;var di=Object.defineProperty;var ex=Object.getOwnPropertyDescriptor;var rx=Object.getOwnPropertyNames;var nx=Object.getPrototypeOf,ox=Object.prototype.hasOwnProperty;var I=(t,e)=>()=>(t&&(e=t(t=0)),e);var hi=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),$=(t,e)=>{for(var r in e)di(t,r,{get:e[r],enumerable:!0})},sx=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of rx(e))!ox.call(t,o)&&o!==r&&di(t,o,{get:()=>e[o],enumerable:!(n=ex(e,o))||n.enumerable});return t};var ix=(t,e,r)=>(r=t!=null?tx(nx(t)):{},sx(e||!t||!t.__esModule?di(r,"default",{value:t,enumerable:!0}):r,t));var bf,xf,k,X,Hr=I(()=>{"use strict";bf=globalThis,xf=globalThis,k=globalThis,X=k.document});var he,Yn,kt,qr=I(()=>{"use strict";Hr();he=t=>(typeof Node=="object"?t instanceof k.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,Yn=t=>(typeof HTMLElement=="object"?t instanceof k.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,kt=t=>typeof k<"u"&&(k.Node&&t instanceof k.Node||k.Window&&t instanceof k.Window||t===k||t===document)});var _,w,se,C,_i,wi,E,ki,N,vt,ht,Zn,Ct,Sf,ft=I(()=>{"use strict";qr();_=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,w=t=>typeof t=="string",se=t=>typeof t=="number",C=t=>typeof t=="function",_i=t=>t===!0||t===!1,wi=t=>t===null,E=t=>Array.isArray(t),ki=t=>t instanceof Date,N=t=>t===null?!1:typeof t=="object",vt=t=>t!==void 0,ht=t=>t===void 0,Zn={boolean:_i,array:E,object:_,string:w,date:ki,number:se,null:wi,function:C,objectLike:N,node:he,htmlElement:Yn,defined:vt},Ct=t=>(...e)=>e.some(r=>Zn[r](t)),Sf=t=>(...e)=>!e.some(r=>Zn[r](t))});var _f,wf,kf,vf,Gr,Jn,Cf,Af,Qn,Ef,Tf,Of,Rf,Pf,If,$f,Kr,to,er=I(()=>{"use strict";ie();ft();_f=(t,e)=>e.every(r=>t.includes(r)),wf=(t,e)=>{let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r},kf=(t,e)=>{if(w(e)&&(e=parseInt(e)),se(e)){if(e<0||e>=t.length||isNaN(e))throw new Error("Invalid index");t.splice(e,1)}else throw new Error("Invalid index");return t},vf=(t,e,r)=>{e<0||r<0||e>=t.length||r>=t.length||([t[e],t[r]]=[t[r],t[e]])},Gr=(...t)=>[].concat(...t),Jn=(t,e=[])=>t.reduce((r,n)=>G(r,Q(n,{exclude:e}),e),{}),Cf=(t,e)=>{let r=t.indexOf(e);return r!==-1?t.slice(0,r):t},Af=(t,e)=>{if(!E(t))return;let r=t.indexOf(e);return r!==-1?t.slice(r+1):t},Qn=(t,e)=>{let r=t.indexOf(e);if(r>-1){let n=[...t];return n.splice(r,1),n}return t},Ef=(t,e)=>t.filter(r=>r!==e),Tf=(t,e)=>{let r=[];for(let n=0;n<t.length;n++)r.push(t[n]),n<t.length-1&&r.push(e);return r},Of=(t,e,r)=>{let n=[...t],o=n.indexOf(e),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},Rf=(t,e)=>{if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0},Pf=(t,e)=>t.filter(r=>!e.includes(r)),If=(t,e)=>{let r=new Set(e);return t.filter(n=>!r.has(n))},$f=(t,e)=>{if(!t)return 0;let r=0;for(let n=0;n<e.length;n++)t.includes(e[n])&&r++;return r},Kr=t=>E(t)?[...new Set(t)]:t,to=(t,e)=>{for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!1,configurable:!0,writable:!0})}});function rr(t,e,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!t.includes(o))return t;let s=px[n],i=e||this.state||{},a=this;return t.replace(s,(c,l,f,p)=>{let u=f.trim();if(p){let d=a?.context,h=d?.functions?.[p]||d?.utils?.[p]||d?.methods?.[p]||d?.snippets?.[p]||a?.[p];if(h&&typeof h=="function")try{return String(h.call(a,u)??"")}catch{return""}return""}if(l){let d=(l.match(/\.\.\//g)||[]).length,h=i;for(let m=0;m<d;m++){if(!h||!h.parent)return"";h=h.parent}if(u==="parent")return String(h.value??"");let g=Xr(h,u);return String(g??"")}else{let d=Xr(i,u);if(d!=null)return String(d);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=Xr(m,u);if(b!=null&&typeof b!="object")return String(b);for(let x in m){let S=m[x];if(S&&typeof S=="object"&&!Array.isArray(S)){let v=Xr(S,u);if(v!=null&&typeof v!="object")return String(v)}}}let y=Xr(h.translations,u);if(y!=null&&typeof y!="object")return String(y)}return""}})}var eo,Ff,px,Xr,nr,Df,dx,Lf,Mf,Nf,hx,jf,Bf,Yr=I(()=>{"use strict";eo=(t,e)=>{for(let r of e)if(t.includes(r))return!0;return!1},Ff=(t,e)=>{let r=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(r,"")},px={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Xr=(t,e)=>e.split(".").reduce((r,n)=>r?.[n],t);nr=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,Df=(t,e)=>{let r=t.split(`
2
+ `),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,l=!1;for(let f=0;f<r.length;f++)if(a.test(r[f])&&!l){if(l=!0,n=f+1,s=r[f].indexOf(e)+1,r[f].includes("{}")){o=n,i=r[f].indexOf("{}")+3;break}let p=r[f].slice(s+e.length);if(p.includes("{")||p.includes("["))c=1;else{o=f+1,i=r[f].length+1;break}}else if(l&&(c+=(r[f].match(/{/g)||[]).length,c+=(r[f].match(/\[/g)||[]).length,c-=(r[f].match(/}/g)||[]).length,c-=(r[f].match(/]/g)||[]).length,c===0)){o=f+1,i=r[f].lastIndexOf("}")!==-1?r[f].lastIndexOf("}")+2:r[f].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},dx=/\\([0-7]{1,3})/g,Lf=t=>t.replace(dx,(e,r)=>String.fromCharCode(parseInt(r,8))),Mf=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),Nf=t=>t.replace(/\/\/\/\/\/n/g,`
3
+ `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),hx=/[^a-zA-Z0-9\s]/g,jf=t=>t.replace(hx,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),Bf=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var Fe,ro,Vf,De,Le,Zr,no,zf,or=I(()=>{"use strict";Fe=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"]),ro=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),Vf=["ref","parent","__element","__depends","__ref","__children","root"],De=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"]),Le=new Set(["update","__element"]),Zr=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"]),no=new Set(["node","context","extends","__element","__ref",...Zr,...De,...Le]),zf=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var Uf,Me,Y,Wf,et,G,Hf,qf,Q,oo,gx,so,mx,yx,bx,Jr,xx,Sx,jt,_x,wx,kx,io,Gf,Kf,vi,Xf,Yf,ao,sr,At,Ci,vx,Zf,Jf,Ai,Qf,tu,eu,ru,nu,ou,su,ie=I(()=>{"use strict";Hr();ft();er();Yr();qr();or();Uf="production",Me=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,Y=(t,e,r,n)=>{if(C(t))return e?typeof t.call!="function"?t:t.call(e,e,r||e.state,n||e.context):void 0;if(t!=null&&e?.context?.plugins&&(E(t)||_(t)&&!kt(t))){let o=e.context.plugins;for(let s of o)if(s.resolveHandler){let i=s.resolveHandler(t,e);if(typeof i=="function")return Y(i,e,r,n)}}return t},Wf=(t,e,r)=>{for(let n in e)t[n]=Y(e[n],r)},et=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Me(o)||(n?r.has(o):r.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},G=(t,e,r=no)=>Hf(t,e,r,null),Hf=(t,e,r,n)=>{if(t===e)return t;if(n){for(let s=0;s<n.length;s+=2)if(n[s]===t&&n[s+1]===e)return t}let o=r instanceof Set;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||Me(s)||s==="constructor"||s==="prototype"||(o?r.has(s):r.includes(s)))continue;let i=t[s],a=e[s];if(N(i)&&N(a)){let c=n||[];c.push(t,e),Hf(i,a,r,c),c.length-=2}else i===void 0&&(t[s]=a)}return t},qf=(t,e=[])=>{let r=e instanceof Set,n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(Me(o)||(r?e.has(o):e.includes(o))||(n[o]=t[o]));return n},Q=(t,e={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,window:s,visited:i=new WeakMap,handleExtends:a=!1}=e,c=s||k||globalThis;if(!N(t)||kt(t))return t;if(i.has(t))return i.get(t);let f=E(t)?[]:{};i.set(t,f);let p=r instanceof Set?r:r.length>3?new Set(r):null;for(let u in t){if(!Object.prototype.hasOwnProperty.call(t,u)||Me(u)||u==="__proto__"||(p?p.has(u):r.includes(u)))continue;let d=t[u];if(!(n&&d===void 0)&&!(o&&d===null)){if(kt(d)){f[u]=d;continue}if(a&&u==="extends"&&E(d)){f[u]=Jn(d,r);continue}if(C(d)){f[u]=d;continue}N(d)?f[u]=Q(d,{...e,visited:i}):f[u]=d}}return f},oo=(t,e={})=>{(t.node||t.__ref||t.parent||t.__element||t.parse)&&((t.__element||t.parent?.__element).warn("Trying to clone element or state at",t),t=t.parse?.());for(let r in t){let n=t[r];if(C(n))e[r]=n.toString();else if(_(n))e[r]={},oo(n,e[r]);else if(E(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];_(i)?(o[s]={},oo(i,o[s])):C(i)?o[s]=i.toString():o[s]=i}}else e[r]=n}return e},gx=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),so=(t={},e=0)=>{if(t===null||typeof t!="object")return String(t);let r=!1;for(let s in t){r=!0;break}if(!r)return"{}";let n=" ".repeat(e),o=`{
4
+ `;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=!1;for(let l=0;l<s.length;l++)if(gx.has(s[l])){a=!0;break}let c=a?`'${s}'`:s;if(o+=`${n} ${c}: `,E(i)){o+=`[
5
+ `;for(let l of i)N(l)&&l!==null?o+=`${n} ${so(l,e+2)},
6
+ `:w(l)?o+=`${n} '${l}',
7
+ `:o+=`${n} ${l},
8
+ `;o+=`${n} ]`}else N(i)?o+=so(i,e+1):w(i)?o+=eo(i,[`
9
+ `,"'"])?`\`${i}\``:`'${i}'`:o+=i;o+=`,
10
+ `}return o+=`${n}}`,o},mx=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],yx=/^["[{]/,bx=/^(export|import)\s/,Jr=t=>{if(!t)return!1;let e=t.trim().replace(/\n\s*/g," ").trim();if(e===""||e==="{}"||e==="[]"||bx.test(e)||!mx.some(s=>s.test(e)))return!1;let n=e.charCodeAt(0),o=e.includes("=>");return!(n===123&&!o||n===91||yx.test(e)&&!o)},xx=t=>(0,eval)(t),Sx=(t,e)=>{let r=/^(\s*(?:async\s+)?function\s*[\w$]*\s*\([^)]*\)\s*)\{/.exec(t);if(!r)return null;let n=r[0].length,o=[],s=n,i=1,a=null,c=t.length,l=new RegExp("^(?:const|let|var)\\s+"+e+"\\b");for(;s<c&&i>0;){let p=t[s];if(p==="/"&&t[s+1]==="/"){let u=t.indexOf(`
11
11
  `,s);s=u===-1?c:u;continue}if(p==="/"&&t[s+1]==="*"){let u=t.indexOf("*/",s+2);s=u===-1?c:u+2;continue}if(p==='"'||p==="'"||p==="`"){let u=p;for(s++;s<c;){if(t[s]==="\\"){s+=2;continue}if(t[s]===u){s++;break}if(u==="`"&&t[s]==="$"&&t[s+1]==="{"){s+=2;let d=1;for(;s<c&&d>0;)t[s]==="{"?d++:t[s]==="}"&&d--,s++;continue}s++}continue}if(p==="{"){i++,s++;continue}if(p==="}"){i--,s++;continue}if(i===1&&l.test(t.slice(s))){let u=s,d=0,h=s;for(;h<c;){let g=t[h];if(g==='"'||g==="'"||g==="`"){let m=g;for(h++;h<c;){if(t[h]==="\\"){h+=2;continue}if(t[h]===m){h++;break}h++}continue}if(g==="("||g==="["||g==="{"){d++,h++;continue}if(g===")"||g==="]"||g==="}"){if(d===0)break;d--,h++;continue}if(d===0&&(g===";"||g===`
12
- `)){h++;break}h++}n.push([u,h]),s=h;continue}s++}if(!n.length)return null;let f=t;for(let p=n.length-1;p>=0;p--)f=f.slice(0,n[p][0])+f.slice(n[p][1]);return f},Nt=(t,e={},r={window:{eval:mx}})=>{for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let n=t[o];if(_(n))if(Jr(n))try{e[o]=r.window.eval(`(${n})`)}catch(s){let i=s&&s.message?s.message:String(s),a=/await is only valid in async/.test(i),c=/Identifier '([^']+)' has already been declared/.exec(i),l=null;if(a){let f=String(n).trim();if(/^function[\s(]/.test(f))try{l=r.window.eval("(async "+f+")")}catch{}}else if(c){let f=c[1],p=yx(String(n),f);if(p&&p!==n)try{l=r.window.eval("("+p+")")}catch{}}l?e[o]=l:(typeof console<"u"&&console.warn&&console.warn('[smbls] deepDestringifyFunctions: eval failed on "'+o+'" \u2014 function will be left as a string and el.call("'+o+'") will silently no-op. Reason: '+i+`.
13
- First 200 chars of source: `+String(n).slice(0,200)),e[o]=n)}else e[o]=n;else if(E(n)){let s=e[o]=[];for(let i=0;i<n.length;i++){let a=n[i];if(_(a))if(Jr(a))try{s.push(r.window.eval(`(${a})`))}catch(c){typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed in array at index ${i} (prop "${o}"). Reason: ${c&&c.message?c.message:String(c)}.
14
- First 200 chars: ${String(a).slice(0,200)}`),s.push(a)}else s.push(a);else S(a)?s.push(Nt(a)):s.push(a)}}else S(n)?e[o]=Nt(n,e[o]):e[o]=n}return e},bx="Set",xx="Map",Sx=t=>!t||typeof t!="object"?t:t.__type===bx&&Array.isArray(t.values)?new Set(t.values):t.__type===xx&&Array.isArray(t.entries)?new Map(t.entries):t,an=t=>{if(!t||typeof t!="object")return t;let e={},r=[];for(let o of Object.keys(t)){let n=t[o];_(n)&&Jr(n)?r.push([o,n]):e[o]=Sx(n)}for(let[o,n]of r)try{let s=Object.keys(e).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
15
- `);e[o]=k.eval(`(function(__gs__) { ${s}
16
- return (${n}); })`)(e)}catch{try{e[o]=k.eval(`(${n})`)}catch{e[o]=n}}return e},Hf=(t,e={verbose:!0})=>{try{return t?k.eval("("+t+")"):{}}catch(r){e.verbose&&console.warn(r)}},qf=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),vi=t=>{for(let e in t)return!1;return!0},Gf=t=>S(t)&&vi(t),Kf=()=>Object.create(null),cn=(t,e,r={})=>{let o=r.exclude||[],n=r.preventUnderscore;for(let s in e)o.includes(s)||!n&&Me(s)||s==="constructor"||s==="prototype"||e[s]!==void 0&&(t[s]=e[s]);return t},sr=(t,e,r=[])=>{let o=r instanceof Set;for(let n in e)Me(n)||n==="constructor"||n==="prototype"||(o?r.has(n):r.includes(n))||(t[n]=e[n]);return t},kt=(t,e,r={},o=new WeakMap)=>{if(!D(t)||!D(e)||St(t)||St(e))return e;if(o.has(t))return o.get(t);o.set(t,t);let n=r.exclude,s=n?n instanceof Set?n:new Set(n):null,i=!r.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&Me(a)||a==="constructor"||a==="prototype")continue;let c=t[a],l=e[a];St(l)?t[a]=l:D(c)&&D(l)?t[a]=kt(c,l,r,o):l!==void 0&&(t[a]=l)}return t},Ci=(t,e,r=new Set)=>{if(typeof t!="object"||typeof e!="object"||t===null||e===null)return t===e;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);let o=Object.keys(t),n=Object.keys(e);if(o.length!==n.length)return!1;for(let s=0;s<o.length;s++){let i=o[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!Ci(t[i],e[i],r))return!1}return!0},_x=new Set(["node","__ref"]),Yf=(t,e,r=_x)=>{if(t===e)return!0;if(!D(t)||!D(e)||St(t)||St(e))return t===e;let o=r instanceof Set?r:new Set(r),n=new WeakSet;function s(i,a){if(n.has(a))return!0;n.add(a);for(let c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||o.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let l=a[c],f=i[c];if(St(l)||St(f)){if(l!==f)return!1}else if(D(l)&&D(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},Xf=(t,e)=>{if(e==null)return t;if(wt(e)("string","number"))delete t[e];else if(E(e))for(let r=0;r<e.length;r++)delete t[e[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return t},Ai=t=>{if(t===null||typeof t!="object")return t;let e=Object.create(null);for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=Ai(t[r]));return e},Zf=(t,e)=>{if(t.length===0)return e;let r={},o=r;for(let n=0;n<t.length;n++)n===t.length-1&&e?o[t[n]]=e:(o[t[n]]={},o=o[t[n]]);return r},Jf=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let n=0;n<e.length-1;n++){if(r[e[n]]===void 0)return;r=r[e[n]]}let o=e[e.length-1];r&&Object.prototype.hasOwnProperty.call(r,o)&&delete r[o]},Qf=(t,e,r)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let o=t;for(let n=0;n<e.length-1;n++)(!o[e[n]]||typeof o[e[n]]!="object")&&(o[e[n]]={}),o=o[e[n]];return o[e[e.length-1]]=r,t},tu=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let o=0;o<e.length;o++){if(r==null)return;r=r[e[o]]}return r},eu=t=>{let r=[],o=0;for(let n=0;n<t.length;n++)if(r.length<2)r.push(t[n]);else if(t[n]===r[n%2]?o++:(r=[t[n-1],t[n]],o=1),o>=20)return(Vf==="test"||Vf==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},ru=t=>{let e=new WeakSet;function r(o){if(o&&typeof o=="object"){if(e.has(o))return!0;e.add(o);for(let n in o)if(Object.prototype.hasOwnProperty.call(o,n)&&r(o[n]))return console.log(o,"cycle at "+n),!0}return!1}return r(t)},ou=(t,e)=>{let r=e instanceof Set?e:new Set(e),o={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&!r.has(n)&&(o[n]=t[n]);return o}});var ln,fn,un,pn=I(()=>{"use strict";ie();ln=(function(){let t=0;function e(){return t++,t}return e})(),fn=ln,un=(t,e,r)=>(G(r,t)||r||t.key||ln()).toString()});var Kt,nu,Ne,Ei,su,iu,au,je,cu,ir,Ti=I(()=>{"use strict";Kt="production",nu=Kt,Ne=(t=Kt)=>t==="production",Ei=(t=Kt)=>t==="testing"||t==="test",su=Ei,iu=(t=Kt)=>t==="staging",au=(t=Kt)=>t==="local",je=(t=Kt)=>t==="development"||t==="dev"||t==="local",cu=(t,e=Kt)=>e[t],ir=(t=Kt)=>!Ne(t)});function dn(t,e,r){let o;return function(){let n=this,s=arguments,i=function(){o=null,r||t.apply(n,s)},a=r&&!o;clearTimeout(o),o=setTimeout(i,e),a&&t.apply(n,s)}}function pu(t,e=window){let r=function(){return t.apply(e,arguments)};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r}var lu,fu,wx,uu,Qr,to,Yt,ar=I(()=>{"use strict";lu=(t,e,r=300)=>{let o;return(...n)=>{clearTimeout(o),o=setTimeout(()=>{e.apply(t,n)},r)}},fu=t=>{let e={};return(...r)=>{let o=r[0];if(o in e)return e[o];{let n=t(o);return e[o]=n,n}}},wx=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,uu=t=>wx.test(t),Qr=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},to=(t,e)=>{if(typeof t=="function")return t;let r=e?.context?.plugins;if(!r)return t;for(let o of r)if(o.resolveHandler){let n=o.resolveHandler(t,e);if(typeof n=="function")return n}return t},Yt=(t,e,...r)=>{let o=e?.context?.plugins;if(!o)return!1;let n=!1;for(let s of o)typeof s[t]=="function"&&(s[t](e,...r),n=!0);return n}});var du,hu=I(()=>{"use strict";ct();ie();du=(t,e)=>{let{__ref:r}=t,o=t.if;if(C(o)){let n;try{n=o(t,t.state,t.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete r.__if;return}n?r.__if=!0:delete r.__if}else o!=null&&typeof o=="object"?G(o,t)?r.__if=!0:delete r.__if:r.__if=!0}});var gu,mu,yu=I(()=>{"use strict";gu=(t,...e)=>{t&&e.map(r=>console.log(r))},mu=(t,e,...r)=>{t&&(console.group(e),r.map(o=>console.log(o)),console.groupEnd(e))}});function wu(t){let e;try{if(!window.localStorage)return;e=window.localStorage.getItem(t)}catch{return}if(e!==null)try{return JSON.parse(e)}catch{return}}function ku(t,e){if(e!=null)try{if(!window.localStorage)return;let r=typeof e=="object"?JSON.stringify(e):e;window.localStorage.setItem(t,r)}catch{}}var bu,xu,Su,_u,vu=I(()=>{"use strict";ct();Hr();bu=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),xu=(t,e,r=365)=>{if(ut(q)||ut(q.cookie))return;let o=new Date;o.setTime(o.getTime()+r*24*60*60*1e3);let n=`expires=${o.toUTCString()}`;q.cookie=`${t}=${e};${n};path=/`},Su=t=>{if(ut(q)||ut(q.cookie))return;let e=`${t}=`,o=decodeURIComponent(q.cookie).split(";");for(let n=0;n<o.length;n++){let s=o[n];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(e)===0)return s.substring(e.length,s.length)}return""},_u=t=>{ut(q)||ut(q.cookie)||(q.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var eo,Cu,Au,Oi=I(()=>{"use strict";eo={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"])},Cu=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"]),Au=t=>eo.body.has(t)});var Ri,Eu,ro,mn,vt,Tu,Pi,yn,Ou,bn,Ii,$i,xn,Fi,oo,kx,ae,Ru,hn,Sn,Pu,gn,Iu,$u,Di,Li,Mi,Ni,ji,Bi,Fu,_n=I(()=>{"use strict";er();Vi();ie();ct();Ri="production",Eu=t=>t.sourcemap!==!1&&Ri!=="production",ro=t=>{if(t.includes("+"))return t.split("+").filter(ce);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!ce(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},mn=(t,e,r)=>{let o=[],n=ro(r);n&&(o=[...n]);let s=t.extends;return s&&(o=E(s)?[...o,...s]:[...o,s]),o},vt=(t,e)=>{let{__ref:r}=e,{__extends:o}=r;if(!t)return o;let n=e.variant,s=e.context;if(n&&s?.components&&!Array.isArray(t)&&typeof t=="string"){let i=`${t}.${n}`;s.components[i]&&(t=i)}return o.includes(t)||(o=Array.isArray(t)?[...o,...t]:[...o,t],r.__extends=o),o},Tu=(t,e)=>{if(!t)return e;let{extends:r}=e,o=E(r)?r:[r],n=E(t)?t:[t];return{...e,extends:Gr(n,o)}},Pi=()=>Math.random().toString(36).substring(2),yn={},Ou={},bn=t=>yn[t.__hash],Ii=(t,e)=>{let r=Pi();return _(t)||(t.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(yn[r]=e),e},$i=(t,e)=>t.__hash?e.concat(bn(t)):Ii(t,e),xn=(t,e,r,o=new Set,n,s)=>{for(let i of t)E(i)?xn(i,e,r,o,n,s):oo(i,e,r,o,n,void 0,s);return e},Fi=(t,e,r,o=new Set,n,s,i)=>{let a=t.extends,c={...t};delete c.extends;let l=!1;for(let f in c){l=!0;break}return l&&(e.push(c),n&&n.push(s)),a&&oo(a,e,r,o,n,s,i),e},oo=(t,e,r,o=new Set,n,s,i)=>{if(!t||o.has(t))return e;if(E(t))return xn(t,e,r,o,n,i);let a=s;return _(t)?(a=t,t=Sn(t,r)):i&&S(t)&&i.has(t)&&(a=i.get(t)),o.add(t),t?.extends?Fi(t,e,r,o,n,a,i):t&&(e.push(t),n&&n.push(a)),e},kx=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),ae=(t,e,r,o,n)=>{e=Y(e);for(let s in e){if(kx.has(s))continue;let i=t[s],a=e[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(e,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)t[s]=a,r&&o?S(a)&&!E(a)?(r[s]=r[s]||{},Ru(r[s],a,o)):r[s]=o:r&&n?.[s]&&(r[s]=n[s]);else if(S(i)&&S(a)){let c=r?r[s]=r[s]||{}:void 0,l=n?.[s];ce(s)?t[s]=ae(i,a,c,o,l):ae(i,a,c,o,l)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(E(i)&&E(a))t[s]=i.concat(a);else if(E(i)&&S(a)){let c=ae({},i);t[s]=ae(c,a)}}}}return t},Ru=(t,e,r,o)=>{if(o||(o=new WeakSet),!o.has(e)){o.add(e);for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n)||n==="__proto__"||n==="constructor"||n==="prototype")continue;let s=e[n];S(s)&&!E(s)?(t[n]=t[n]||{},Ru(t[n],s,r,o)):t[n]=r}}},hn=(t,e,r)=>t.reduce((o,n,s)=>{let i=Y(n),a=r?r[s]:void 0;return ae(o,i,e,a)},{}),Sn=(t,e,r={},o)=>{let n=e?.components||r.components,s=e?.pages||r.pages;if(_(t)){let i=n&&(n[t+"."+o]||n[t]||n["smbls."+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;r.verbose&&(Ri==="test"||Ri==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},Pu=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),gn=(t,e,r,o)=>{if(!t)return[];if(t.__hash)return bn(t)||[];let s=oo(t,[],e,new Set,r,void 0,o);return r?s:$i(t,s)},Iu=(t,e)=>{if(!t)return e;let r=E(t)?t:[t];return Gr(r,e)},$u=t=>{let e=[];function r(o){for(let n in o)Object.prototype.hasOwnProperty.call(o,n)&&(ce(n)&&e.push(n),n==="extends"&&(typeof o[n]=="string"?e.push(o[n]):Array.isArray(o[n])&&(e=e.concat(o[n]))),typeof o[n]=="object"&&o[n]!==null&&r(o[n]))}return r(t),e},Di=(t,e,r={})=>{let{__ref:o}=t,n=t.context||e.context,s=t.variant;if(t.extends)if(Array.isArray(t.extends)&&t.extends.length>0){let[i,...a]=t.extends;if(typeof i=="string"&&s&&n?.components){let c=`${i}.${s}`;n.components[c]?vt([c,...a],t):vt(t.extends,t)}else vt(t.extends,t)}else if(typeof t.extends=="string"&&s&&n?.components){let i=`${t.extends}.${s}`;n.components[i]?vt(i,t):vt(t.extends,t)}else vt(t.extends,t);return Li(t,e,r),Mi(t,e,r),Ni(t,e,r),t.component&&vt(G(t.component,t),t),n.defaultExtends&&vt(n.defaultExtends,t),Kr(o.__extends)},Li=(t,e,r={})=>{let{__ref:o}=t;return r.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&vt(e.childProps.extends,t),o.__extends},Mi=(t,e,r={})=>{let{__ref:o}=t,n=r.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!n&&s&&vt(s,t),o.__extends},Ni=(t,e,r={})=>{let{__ref:o}=t,n=e.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key==="__text";return n&&!i&&!s&&vt(n,t),o.__extends},ji=(t,e,r={})=>{let{__ref:o}=t,n=t.context||e.context,s=t.variant,i=Eu(r),a=i?[...o.__extends]:null,c=Kr(o.__extends.map((l,f)=>Sn(l,n,r,f===0&&s)));if(i){let l=new WeakMap;for(let u=0;u<c.length;u++){let d=c[u],h=a[u];d&&S(d)&&_(h)&&l.set(d,h)}let f=[],p=gn(c,n,f,l);o.__extendsStack=p,o.__extendsNames=f}else{let l=gn(c,n);o.__extendsStack=l}return o.__extendsStack},Bi=(t,e,r={})=>{let{__ref:o}=t,{__extendsStack:n}=o;if(Eu(r)){let s={},i=o.__extendsNames||[],a=hn(n,s,i),c={};ae(t,a,c,void 0,s),o.__sourcemap=c}else{let s=hn(n);ae(t,s)}return t},Fu=(t,e,r={})=>(Di(t,e,r),ji(t,e,r),Bi(t,e,r),t)});function Du(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function Lu(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function Mu(t,e,r){let{context:o}=e||{},[n]=ro(r),s=r||n;return o?.components?.[s]||o?.pages?.[s]}var ce,Vi=I(()=>{"use strict";_n();ct();ce=t=>{if(!_(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function Nu(t,e){let{props:r,on:o}=e,n=or(t.split("on")[1]),s=o[n],i=r[t];C(s)?o[n]=(...a)=>{if(s(...a)!==!1&&C(i))return i(...a)}:o[n]=i}var ju=I(()=>{"use strict";Xr();ct()});function Ui(t,e={}){let r=e.cachedKeys||[];for(let o in t){let n=t[o];if(o.length>2&&o.charCodeAt(0)===111&&o.charCodeAt(1)===110&&o[2]===o[2].toUpperCase()&&(C(n)||n!=null&&Qr(this.context))){let h=or(o.slice(2));t.on&&(t.on[h]=n),delete t[o];continue}if(o==="childProps"){t.props[o]=n,delete t[o],r.push(o);continue}let a=this.define?.[o],c=this.context?.define?.[o],l=S(a)||C(a),f=S(c)||C(c);if(l||f)continue;let p=o.charAt(0);if(Vu.has(p)){t.props[o]=n,delete t[o],r.push(o);continue}let u=zi.test(o)||Bu.test(o)||Cx(n),d=Fe.has(o);!u&&!d&&(o in t.props||(t.props[o]=n),delete t[o],r.push(o))}return t}function Wi(t=this,e){let r=e.cachedKeys||[];for(let o in t.props){let n=t.props[o],s=o.length>2&&o.charCodeAt(0)===111&&o.charCodeAt(1)===110,i=C(n)||n!=null&&Qr(this.context);if(s&&i){Nu(o,t),delete t.props[o];continue}if(r.includes(o)||o==="childProps")continue;let a=o.charAt(0);if(Vu.has(a))continue;let c=this.define?.[o],l=this.context?.define?.[o],f=S(c)||C(c),p=S(l)||C(l),u=zi.test(o)||Bu.test(o),d=Fe.has(o);(u||d||f||p)&&(t[o]===void 0||n===null)&&(t[o]=n,t.props&&delete t.props[o])}return t}function Hi(t=this){let e=[];return Ui.call(this,t,{cachedKeys:e}),Wi.call(this,t,{cachedKeys:e}),t}function zu(t={}){return t.on||(t.on={}),t.props||(t.props={}),Hi.call(this,t)}function qi(t,e){this.__element.update({props:t},e)}function An(t){let e={update:qi.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var zi,Bu,Vu,vx,Cx,vn,wn,Uu,Cn,En,Tn,Gi,kn,Wu,Hu,Ki=I(()=>{"use strict";nr();ju();ie();ct();Xr();ar();zi=/^[A-Z]/,Bu=/^\d+$/,Vu=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),vx=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),Cx=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(vx.has(e)||zi.test(e))return!0;return!1},vn=(t,e,r)=>{let{props:o,__ref:n}=t;if(n.__propsStack=[],o)n.__initialProps=o;else return{};return D(o)?{...o}:(n.__propsStack.push(o),{})};wn=t=>wt(t)("string","number")?{inheritedString:t}:t,Uu=(t,e)=>!t||!e.length?!1:e.includes(t),Cn=(t,e)=>{let{__ref:r}=t,o=r.__propsStack||[],n=e.props;if(!n)return o;let s=n[t.key],i=n.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=wn(i);o.unshift(c)}if(s){let c=wn(s);o.unshift(c)}return o};En=t=>{let e=new Set;return t.filter(r=>!r||Le.has(r)||e.has(r)?!1:(e.add(r),!0))},Tn=(t,e,r)=>(e.props=t.reduce((o,n)=>{if(Le.has(n))return o;for(;C(n);)n=G(n,e);return W(o,Y(n,{exclude:Le}))},{}),An(e),e.props),Gi=(t,e)=>{let{props:r,__ref:o}=t,n=o.__propsStack||[];if(e?.props&&(n=[...Cn(t,e)]),S(r)?n.push(r):r==="inherit"&&e?.props?n.push(e.props):r&&n.push(r),E(o.__extendsStack))for(let s=0;s<o.__extendsStack.length;s++){let i=o.__extendsStack[s];i.props&&i.props!==r&&n.push(i.props)}return o.__propsStack=En(n),o.__propsStack},kn=(t,e)=>{let{__ref:r}=t,o=Gi(t,e);o.length?Tn(o,t):(r.__propsStack=[],t.props={})},Wu=function(t,e,r){let{__ref:o}=t;if(o.__if)kn(t,e);else try{kn(t,e)}catch(n){t.context?.designSystem?.verbose&&console.warn("initProps error at",o.path?.join("."),n),t.props={},o.__propsStack=[]}return An(t),t},Hu=(t,e,r)=>{let{__ref:o}=e,s=[...o.__propsStack||[]],i=Cn(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),o.__propsStack=En(s),o.__propsStack.length&&Tn(o.__propsStack,e),e}});var qu,Yi,Xi,Zi,Ji,Gu,Qi,ta,ea,Ku,Yu=I(()=>{"use strict";_n();pn();qr();Ki();Oi();ct();qu="production",Yi=(t,e,r)=>{let o=e.childExtends&&e.childExtends.tag,n=e.childProps&&e.childProps.tag,s=eo.body.has(r)&&r;return{text:t,tag:o||n||s||"string"}},Xi=(t,e,r)=>{if(t===void 0)return(qu==="test"||qu==="development")&&console.warn(r,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:wt(t)("string","number")?Yi(t,e,r):C(t)?{props:t}:t},Zi=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},Ji=(t,e,r,o,n)=>{if(!e)return n;if(he(e)){let s={key:":root",node:e};return n[`${r}_parent`]=s,s}return e},Gu=(t,e)=>{let{__ref:r}=t,{__ref:o}=e,n=e&&e.key===":root";r?.root||(r.root=n?t:o?.root)},Qi=(t,e,r)=>{let{__ref:o}=e;return o||(o=e.ref={}),o.path||(o.path=[]),o.path.concat(r)},ta=(t,e,r,o,n)=>(o.context&&!n.context&&!t.context&&(n.context=o.context),o.context||e.context||n.context||t.context),ea=(t,e,r)=>{let o=Zi(t,e);return t.__ref=o,o.__defineCache||(o.__defineCache={}),o.__exec||(o.__exec={}),o.__execProps||(o.__execProps={}),o.__class||(o.__class={}),o.__classNames||(o.__classNames={}),o.__attr||(o.__attr={}),o.__changes||(o.__changes=[]),o.__children||(o.__children=[]),o.__extends=mn(t,e,r),o.path=Qi(t,e,r),o},Ku=(t,e,r,o,n)=>{let i=t?.__hash?{extends:[t]}:Xi(t,e,r);if(!i)return;let a=Ji(i,e,r,o,n),c=un(i,a,r);ea(i,a,c);let l=vn(i,a,c),f=ta(i,a,c,o,n),p=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:p}}});var Xu,ra,oa,na,sa,Zu,ia,Ju,Qu,tp,ep,rp=I(()=>{"use strict";er();nr();ie();ct();Xu=t=>{let{state:e,props:r,__ref:o}=t,n=r?.state||e;return wt(n)("string","number")?(o.__state=n,{value:n}):n===!0?(o.__state=t.key,{}):n?(o.__hasRootState=!0,n):!1},ra=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},oa=(t,e)=>{if(!t.includes("../"))return;let o=t.split("../").length-1;for(let n=0;n<o;n++){if(!e.parent)return null;e=e.parent}return e},na=(t,e,r={})=>{let o=_(t)?t.split("/"):[t],n=o.length-1;for(let s=0;s<n;s++){let i=o[s],a=o[s+1];if(i==="__proto__"||a==="__proto__")return;let c=e[i];c||(c=e[i]={}),c[a]||(c[a]={}),t=a,e=c}return r.returnParent?e:e[t]},sa=(t,e,r={})=>{let n=t.__ref.__state;if(!ia(t))return;let s=ra(n,e.state),i=e.state;if(s)i=s,n=n.replaceAll("~/","");else{let a=oa(n,e.state);a&&(i=a,n=n.replaceAll("../",""))}if(i)return na(n,i,r)},Zu=(t,e)=>{let r=t.__ref,o=sa(t,e);if(o===void 0)return t.state;if(wt(o)("object","array"))return Y(o);if(wt(o)("string","number","boolean"))return r.__stateType=typeof o,{value:o};console.warn(r.__state,"is not present. Replacing with",{})},ia=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&wt(r)("number","string","boolean"))},Ju=function(t){return D(t)?!!(t.update&&t.parse&&t.clean&&t.create&&t.parent&&t.destroy&&t.rootUpdate&&t.parentUpdate&&t.keys&&t.values&&t.toggle&&t.replace&&t.quietUpdate&&t.quietReplace&&t.add&&t.apply&&t.applyReplace&&t.setByPath&&t.setPathCollection&&t.removeByPath&&t.removePathCollection&&t.getByPath&&t.applyFunction&&t.__element&&t.__children):!1},Qu=(t,e)=>{if(!t)return e||{};let r=t.split("/"),o={},n=o,s=r.length-1;for(let i=0;i<=s;i++)n[r[i]]=i===s?e||{}:{},n=n[r[i]];return o},tp=(t,e)=>{let{__element:r}=e,o=r?.state;if(!o)return;let n=Y(o,De),s={[t.key]:n},i=S(o.__depends)?{...o.__depends,...s}:s;return Array.isArray(o)?tn(o,{...Object.getPrototypeOf(o),__depends:i}):Object.setPrototypeOf(o,{...Object.getPrototypeOf(o),__depends:i}),n},ep=(t,e,r={})=>{let{overwrite:o}=r;if(!o)return;let n=o==="shallow";if(o==="merge"){W(t,e,De);return}(n?sr:kt)(t,e,De)}});var op,np=I(()=>{"use strict";op=(t,e)=>{let{__ref:r}=t,o=t.context||e.context||r.root?.context;o&&!o.globalScope&&(o.globalScope={});let n=e.scope||r.root?.scope,s=o?.globalScope;if(!t.scope)n?t.scope=n:s?t.scope=Object.create(s):t.scope={};else if(typeof t.scope=="object"&&t.scope!==null&&Object.getPrototypeOf(t.scope)===Object.prototype){let i=n||s;i&&Object.setPrototypeOf(t.scope,i)}}});var sp,aa,Be,ca,ip,la=I(()=>{"use strict";ct();ar();sp=(t,e)=>{let r="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[r]},aa=(t,e,r,o,n)=>{if(t=to(t,e),!!C(t))try{let s=t.call(e,e,r||e.state,o||e.context,n);return s&&typeof s.then=="function"&&s.catch(i=>{e.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(e.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),e.context?.strictMode)throw s}},Be=(t,e,r)=>{if(!e)throw new Error("Element is required");Yt(t,e,r);let o=sp(t,e);if(o){let{state:n,context:s}=e;return aa(o,e,n,s,r)}},ca=(t,e,r,o,n,s)=>{if(t=to(t,r),!!C(t))try{let i=t.call(r,e,r,o||r.state,n||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}},ip=(t,e,r,o)=>{Yt(t,r,e,o);let n=sp(t,r);if(n){let{state:s,context:i}=r;return ca(n,e,r,s,i,o)}}});var ap,On,fa=I(()=>{"use strict";ap={},On={}});var fp={};$(fp,{setup:()=>Ex,supabaseAdapter:()=>lp});var cp,Ax,Ex,ua,Tx,lp,up=I(()=>{"use strict";cp=new Map,Ax=(t,e,r)=>`${t}|${e}|${r?"off":"on"}`,Ex=async({url:t,key:e,projectId:r,createClient:o,auth:n,retry:s,adapter:i,...a})=>{let c=t||r&&`https://${r}.supabase.co`;if(!c||!e)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");o||(o=(await import("@supabase/supabase-js")).createClient),n===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let l=Ax(c,e,n===!1),f=cp.get(l);return f||(f=await o(c,e,a),f?.auth&&cp.set(l,f)),!f||!f.auth?null:lp(f)},ua=(t,e)=>{if(!e)return t;for(let r in e){let o=e[r];if(o===null)t=t.is(r,null);else if(Array.isArray(o))t=t.in(r,o);else if(typeof o=="object")for(let n in o)n==="gt"?t=t.gt(r,o[n]):n==="gte"?t=t.gte(r,o[n]):n==="lt"?t=t.lt(r,o[n]):n==="lte"?t=t.lte(r,o[n]):n==="neq"?t=t.neq(r,o[n]):n==="like"?t=t.like(r,o[n]):n==="ilike"?t=t.ilike(r,o[n]):n==="in"?t=t.in(r,o[n]):n==="is"?t=t.is(r,o[n]):n==="contains"?t=t.contains(r,o[n]):n==="containedBy"?t=t.containedBy(r,o[n]):n==="textSearch"&&(t=t.textSearch(r,o[n]));else t=t.eq(r,o)}return t},Tx=(t,{limit:e,offset:r,order:o,single:n}={})=>{if(o)if(Array.isArray(o))for(let s of o){let i=typeof s=="string"?s:s.by;t=t.order(i,{ascending:s.asc!==!1})}else{let s=typeof o=="string"?o:o.by;t=t.order(s,{ascending:o.asc!==!1})}return e&&(t=t.limit(e)),r&&(t=t.range(r,r+(e||20)-1)),n&&(t=t.single()),t},lp=t=>({name:"supabase",client:t,getSession:async()=>{let{data:e}=await t.auth.getSession();return e?.session||null},getUser:async()=>{let{data:e}=await t.auth.getUser();return e?.user||null},signIn:e=>e.provider?t.auth.signInWithOAuth({provider:e.provider}):e.token?t.auth.signInWithIdToken(e):t.auth.signInWithPassword(e),signUp:e=>t.auth.signUp(e),signOut:()=>t.auth.signOut(),onAuthStateChange:e=>{let{data:{subscription:r}}=t.auth.onAuthStateChange((o,n)=>e(o,n));return()=>r.unsubscribe()},select:async({from:e,schema:r,select:o,params:n,headers:s,...i})=>{let c=(r?t.schema(r):t).from(e).select(o||"*");if(c=ua(c,n),c=Tx(c,i),s)try{for(let l in s)c.setHeader?c=c.setHeader(l,s[l]):t.rest&&(t.rest.headers[l]=s[l])}catch(l){console.warn("[supabase] setHeader failed:",l.message)}return c},rpc:({from:e,params:r})=>t.rpc(e,r),insert:({from:e,schema:r,data:o,select:n})=>(r?t.schema(r):t).from(e).insert(o).select(n||"*"),update:({from:e,schema:r,data:o,params:n,select:s})=>{let a=(r?t.schema(r):t).from(e).update(o);return a=ua(a,n),a.select(s||"*")},upsert:({from:e,schema:r,data:o,select:n})=>(r?t.schema(r):t).from(e).upsert(o).select(n||"*"),delete:({from:e,params:r})=>{let o=t.from(e).delete();return o=ua(o,r),o},subscribe:({from:e,params:r,on:o},n)=>{let s=o||"*",i=t.channel(`db-${e}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:e,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>n(a.new,a.old,a)).subscribe();return()=>t.removeChannel(i)},upload:({bucket:e,path:r,file:o,options:n})=>t.storage.from(e).upload(r,o,n),download:({bucket:e,path:r})=>t.storage.from(e).download(r),getPublicUrl:({bucket:e,path:r})=>t.storage.from(e).getPublicUrl(r)})});var dp={};$(dp,{restAdapter:()=>pp,setup:()=>Rx});var Ox,ge,Rx,pp,hp=I(()=>{"use strict";Ox=(t,e,r)=>{let o=e&&!e.startsWith("/")?"/":"",n=new URL(`${t}${o}${e}`);if(r)for(let s in r){let i=r[s];i!=null&&n.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return n.toString()},ge=async(t,e)=>{let r=await globalThis.fetch(t,e),o=r.headers.get("content-type"),n=o&&o.includes("json")?await r.json():await r.text();return{data:n,error:r.ok?null:n?.message||n?.error||r.statusText,status:r.status}},Rx=async({url:t,headers:e,auth:r,fetchOptions:o})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return pp(t,e,r,o)},pp=(t,e={},r,o={})=>{let n=r?.token||null,s=f=>{let p={...e,...f};return n&&(p.Authorization=`Bearer ${n}`),p},i=f=>({...s(f),"Content-Type":"application/json"}),a=f=>({...o,...f}),c=(f,p)=>{let u=p||t;if(f&&(f.startsWith("http://")||f.startsWith("https://")))return f;let d=f&&!f.startsWith("/")?"/":"";return`${u}${d}${f||""}`};return{name:"rest",setToken:f=>{n=f},getSession:async()=>{if(!r?.sessionUrl)return n?{token:n}:null;let f=await ge(c(r.sessionUrl,r.baseUrl),a({headers:s()}));return f.error?null:f.data},signIn:async f=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let p=await ge(c(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(f)}));return p.data?.token&&(n=p.data.token),p},signOut:async()=>(r?.signOutUrl&&await ge(c(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),n=null,{error:null}),select:({from:f,params:p,select:u,limit:d,offset:h,order:g,single:m,headers:y,baseUrl:b})=>{let x={...p};return u&&(x.select=u),d&&(x.limit=d),h&&(x.offset=h),m&&(x.single=!0),g&&(typeof g=="string"?x.order=g:Array.isArray(g)?x.order=g.map(w=>`${w.by}:${w.asc===!1?"desc":"asc"}`).join(","):g.by&&(x.order=`${g.by}:${g.asc===!1?"desc":"asc"}`)),ge(Ox(b||t,f||"",x),a({headers:s(y)}))},rpc:({from:f,params:p,headers:u,baseUrl:d})=>ge(c(`rpc/${f}`,d),a({method:"POST",headers:i(u),body:JSON.stringify(p)})),insert:({from:f,data:p,headers:u,baseUrl:d})=>ge(c(f,d),a({method:"POST",headers:i(u),body:JSON.stringify(p)})),update:({from:f,data:p,params:u,method:d,headers:h,baseUrl:g})=>{let m=u?.id||p?.id,y=m?`${f}/${m}`:f;return ge(c(y,g),a({method:d||"PATCH",headers:i(h),body:JSON.stringify(p)}))},delete:({from:f,params:p,headers:u,baseUrl:d})=>{let h=p?.id,g=h?`${f}/${h}`:f;return ge(c(g,d),a({method:"DELETE",headers:s(u)}))}}}});var mp={};$(mp,{localAdapter:()=>gp,setup:()=>Ix});var pa,Px,Ix,gp,yp=I(()=>{"use strict";pa=(t,e)=>{if(!e)return!0;for(let r in e){let o=e[r];if(o===null){if(t[r]!==null&&t[r]!==void 0)return!1}else if(Array.isArray(o)){if(!o.includes(t[r]))return!1}else if(typeof o=="object"){for(let n in o)if(n==="gt"&&!(t[r]>o[n])||n==="gte"&&!(t[r]>=o[n])||n==="lt"&&!(t[r]<o[n])||n==="lte"&&!(t[r]<=o[n])||n==="neq"&&t[r]===o[n]||n==="like"&&!String(t[r]).includes(o[n]))return!1}else if(t[r]!==o)return!1}return!0},Px=(t,{order:e,limit:r,offset:o,single:n})=>{let s=[...t];if(e){let i=typeof e=="string"?e:e.by,a=e.asc!==!1;s.sort((c,l)=>c[i]<l[i]?a?-1:1:c[i]>l[i]?a?1:-1:0)}return o&&(s=s.slice(o)),r&&(s=s.slice(0,r)),n?{data:s[0]||null,error:null}:{data:s,error:null}},Ix=async({data:t,...e})=>gp(t,e),gp=(t={},e={})=>{let r={},o={},n=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=f=>{if(!r[f])if(n)try{let p=localStorage.getItem(s+f);r[f]=p?JSON.parse(p):t[f]||[]}catch{r[f]=t[f]||[]}else r[f]=t[f]||[];return r[f]},a=f=>{if(n)try{localStorage.setItem(s+f,JSON.stringify(r[f]))}catch{}},c=(f,p,u,d)=>{let h=o[f];if(h)for(let g of h)g(u,d,{event:p,table:f})},l=Date.now();return{name:"local",store:r,select:async({from:f,params:p,...u})=>{let h=i(f).filter(g=>pa(g,p));return Px(h,u)},insert:async({from:f,data:p})=>{let u=i(f),h=(Array.isArray(p)?p:[p]).map(g=>{let m={id:g.id||++l,...g};return u.push(m),m});a(f);for(let g of h)c(f,"INSERT",g,null);return{data:Array.isArray(p)?h:h[0],error:null}},update:async({from:f,data:p,params:u})=>{let d=i(f),h=[];for(let g=0;g<d.length;g++)if(pa(d[g],u)){let m={...d[g]};Object.assign(d[g],p),h.push(d[g]),c(f,"UPDATE",d[g],m)}return a(f),{data:h,error:null}},delete:async({from:f,params:p})=>{let u=i(f),d=[];for(let h=u.length-1;h>=0;h--)pa(u[h],p)&&(d.push(u[h]),u.splice(h,1),c(f,"DELETE",null,d[d.length-1]));return a(f),{data:d,error:null}},subscribe:({from:f,on:p},u)=>{o[f]||(o[f]=[]);let d=(h,g,m)=>{p&&p!=="*"&&p!==m.event||u(h,g,m)};return o[f].push(d),()=>{let h=o[f].indexOf(d);h>-1&&o[f].splice(h,1)}}}}});var uo={};$(uo,{createAdapter:()=>Dx,default:()=>Hx,executeFetch:()=>fo,fetchPlugin:()=>ya,initAdapterAuth:()=>$n,parseDuration:()=>so,queryClient:()=>Wx,registerAdapter:()=>Fx,resolveDb:()=>wp});var $x,Rn,_p,Fx,Dx,wp,so,ht,kp,no,Lx,lo,io,ao,Pn,ga,In,Mx,bp,da,vp,Cp,cr,xp,Nx,Sp,jx,Fn,Ap,$n,ma,Tt,jt,co,Ve,Xt,me,Bx,Vx,zx,ha,Ux,fo,Wx,ya,Hx,ze=I(()=>{"use strict";T();$x=["select","rpc","insert","update","delete","subscribe"],Rn=Symbol.for("@symbo.ls/fetch:BUILTIN_ADAPTERS"),_p=(()=>{if(typeof globalThis<"u"&&globalThis[Rn])return globalThis[Rn];let t={supabase:()=>Promise.resolve().then(()=>(up(),fp)),rest:()=>Promise.resolve().then(()=>(hp(),dp)),local:()=>Promise.resolve().then(()=>(yp(),mp))};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Rn,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Rn]}catch{}return t})(),Fx=(t,e)=>{_p[t]=e},Dx=t=>{let e={};for(let r of $x)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},wp=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...r}=t,o=typeof e=="string"?e:typeof t=="string"?t:null;if(!o)return null;let n=_p[o];if(!n)throw new Error(`Unknown db adapter: "${o}". Use registerAdapter() for adapters with optional deps.`);return(await n()).setup(r)},so=t=>{if(!t)return 0;if(typeof t=="number")return t;let e=t.match(/^(\d+)(ms|s|m|h)$/);if(!e)return 0;let r=parseInt(e[1]),o=e[2];return o==="ms"?r:o==="s"?r*1e3:o==="m"?r*6e4:o==="h"?r*36e5:0},ht=new Map,kp=new Map,no=new Map,Lx=(t,e)=>{if(t.cache?.key)return t.cache.key;let r=jx(t.params),o=`${t.from}:${t.method}:${JSON.stringify(r||"")}`;return e?`${o}:${e}`:o},lo=t=>ht.get(t)||null,io=(t,e,r)=>{let o=ht.get(t),n={data:e,error:r,time:Date.now(),stale:!1};ht.set(t,n);let s=kp.get(t);if(s)for(let i of s)C(i)&&i(n);return n},ao=t=>{if(t){let e=ht.get(t);e&&(e.stale=!0);return}for(let[,e]of ht)e.stale=!0},Pn=t=>{if(t){ht.delete(t);return}ht.clear()},ga=t=>!t&&t!==!1?{staleTime:6e4,gcTime:3e5}:t===!1?null:t===!0?{staleTime:6e4,gcTime:3e5}:typeof t=="number"?{staleTime:t,gcTime:Math.max(t*5,3e5)}:_(t)?{staleTime:so(t),gcTime:3e5}:{staleTime:so(t.stale||t.staleTime)||6e4,gcTime:so(t.gc||t.gcTime||t.expire)||3e5,key:t.key},In=null,Mx=()=>{In||(In=setInterval(()=>{let t=Date.now();for(let[e,r]of ht){let o=kp.get(e);!(o&&o.size>0)&&t-r.time>(r.gcTime||3e5)&&ht.delete(e)}},3e4),In.unref&&In.unref())};Mx();bp=3,da=t=>Math.min(1e3*2**t,3e4),vp=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:bp,delay:da}:typeof e=="number"?{count:e,delay:da}:{count:e.count??bp,delay:C(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:da}},Cp=async(t,e)=>{let{count:r,delay:o}=e,n;for(let s=0;s<=r;s++)try{let i=await t();if(i?.error){if(n=i.error,s<r){let a=C(o)?o(s,n):o;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(n=i,s<r){let a=C(o)?o(s,i):o;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:n}},cr={focus:new Set,online:new Set},xp=!1,Nx=()=>{if(xp||typeof window>"u")return;xp=!0;let t=()=>{for(let r of cr.focus)r()},e=()=>{for(let r of cr.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},Sp=(t,e)=>{let r=e.__ref;if(t===!0)return{from:r.__state||e.key,method:"select",query:!0,on:"create"};if(_(t))return{from:t,method:"select",query:!0,on:"create"};if(S(t)){let o={...t};return o.from=o.from||r.__state||e.key,o.method=o.method||"select",o.on=o.on||"create",o.query===void 0&&(o.query=!0),o}return null},jx=t=>(!t||C(t),t),Fn=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},Ap=(t,e,r)=>{let o;if(!t)o=void 0;else if(C(t))o=t(e,e.state);else{o={};for(let n in t){let s=t[n];o[n]=C(s)?s(e,e.state):s}}return o},$n=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let r=(o,n)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:o,session:n,loading:!1}})};try{let o=await t.getSession();r(o?.user||null,o)}catch(o){console.warn("[fetch] Failed to restore auth session:",o.message)}t.onAuthStateChange&&t.onAuthStateChange((o,n)=>{r(n?.user||null,n)})},ma=async(t,e)=>{if(C(t.select))return t.auth!==!1&&await $n(t,e),t;if(t.__resolved)return t.auth!==!1&&await $n(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=wp(t);let r=await t.__resolving;return delete t.__resolving,r?(r.auth=t.auth,r.url=t.url,r.key=t.key,t.__resolved=r,e.fetch=r,t.auth!==!1&&await $n(r,e),r):null},Tt=(t,e,...r)=>{let o=C(t[e])?t[e]:null;o&&o.call(t,...r,t,t.state,t.context)},jt=(t,e,r,...o)=>{let n=t&&C(t[r])?t[r]:null;n&&n.call(e,...o,e,e.state,e.context)},co=t=>{let e={},r=t.node;if(!r)return e;if(r.tagName==="FORM"){let n=new FormData(r);for(let[s,i]of n.entries())e[s]=i;return e}let o=r.querySelectorAll("input, textarea, select");for(let n=0;n<o.length;n++){let s=o[n],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?e[i]=s.checked:s.type==="file"?e[i]=s.files:e[i]=s.value)}return e},Ve=(t,e,r,o={})=>{let n=r&&r.startsWith("~/"),s=n&&t.state?.root||t.state;if(s?.update)if(n){let i=r.slice(2);e&&typeof e=="object"&&!Array.isArray(e)&&i in e?s.update(e,{preventFetch:!0,...o}):s.update({[i]:e},{preventFetch:!0,...o})}else{let i=r?{[r]:e}:e;s.update(i,{preventFetch:!0,...o})}},Xt=(t,e)=>{let r=t?.__ref;r&&(r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error)},me=async(t,e,r,o={})=>{let n=r?.fetch;if(!n||!e||!e.__ref||t.enabled===!1||C(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||C(t.skip)&&t.skip(e,e.state))return;let s=await ma(n,r);if(!s||!e.__ref)return;let i=e.__ref,{from:a,method:c,query:l,params:f,cache:p,transform:u,single:d,auth:h,fields:g,as:m,limit:y,offset:b,order:x,headers:w,baseUrl:v,page:O,cursor:R,getNextPageParam:M,getPreviousPageParam:P,infinite:z,placeholderData:U,initialData:X,select:j,keepPreviousData:Z}=t,Dt=_(j)?j:void 0;if(l&&C(e.getQuery)){let H=e.getQuery(s.name||"paths");H&&(Dt=H.select||H.length&&H.join(",")||Dt)}let Gt=Ap(f,e,r),Lt=ga(p),qo=vp(t),fi=Fn(e,r),Yb=fi?`:${fi}`:"",et=Lt?p?.key||`${a}:${c}:${JSON.stringify(Gt||"")}${z?":infinite":""}${O?":p"+JSON.stringify(O):""}${Yb}`:null;if(!i.__fetchInitialized&&et&&(i.__fetchInitialized=!0,X!==void 0)){let H=C(X)?X():X;io(et,H,null)}if((c==="select"||c==="rpc")&&et&&Lt){let H=lo(et);if(H&&!H.error){let B=Date.now()-H.time,tt=H.stale||B>(Lt.staleTime||0),N=H.data;if(C(j)&&(N=j(N,e,e.state)),u&&(N=u(N,e,e.state)),Ve(e,N,m),!tt){Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(U!==void 0){let B=C(U)?U(e,e.state):U;B!==void 0&&Ve(e,B,m)}}if(et&&no.has(et)&&!o.force){let H=no.get(et);try{let B=await Promise.race([H,new Promise((tt,N)=>setTimeout(()=>N("DEDUP_TIMEOUT"),15e3))]);if(B?.data!==void 0){let tt=B.data;C(j)&&(tt=j(tt,e,e.state)),u&&(tt=u(tt,e,e.state)),Ve(e,tt,m),Tt(e,"onFetchComplete",tt),jt(t,e,"onFetchComplete",tt)}}catch{}return}let Xb=!lo(et)?.data;Xt(e,{isFetching:!0,isLoading:Xb,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Tt(e,"onFetchStart"),jt(t,e,"onFetchStart");let oe=r?.analyze?.emitNetwork,ui=oe?typeof performance<"u"?performance.now():Date.now():0;oe&&oe({phase:"start",mode:"query",from:a,method:c,cacheKey:et,lang:fi});let df=Cp(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let N=await s.getSession();if(h===!0&&!N){let pt={message:"Not authenticated"};return Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:pt,status:"error",fetchStatus:"idle"}),Tt(e,"onFetchError",pt),jt(t,e,"onFetchError",pt),{data:null,error:pt}}}let H=s[c];if(!C(H))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let B={from:a,select:Dt,params:Gt,single:d,limit:y,offset:b,order:x,headers:w,baseUrl:v},tt=Fn(e,r);if(tt&&(B.headers={...B.headers,"Accept-Language":tt}),O!==void 0){if(S(O))O.offset!==void 0&&(B.offset=O.offset),O.limit!==void 0&&(B.limit=O.limit),O.cursor!==void 0&&(B.params={...B.params,cursor:O.cursor});else if(typeof O=="number"){let N=t.pageSize||y||20;B.offset=(O-1)*N,B.limit=N}}if(R!==void 0&&(B.params={...B.params,cursor:R}),c==="insert"||c==="update"||c==="upsert"){let N;if(g===!0||t.on==="submit")N=co(e);else if(E(g)){let pt=co(e);N={};for(let pi of g)N[pi]=pt[pi]}else e.state?.parse?N=e.state.parse():S(e.state)&&(N={...e.state});u&&(N=u(N,e,e.state)),B.data=N}if(c==="rpc"){let N=Gt;if(t.on==="submit"){let pt=co(e);N=t.transformParams?t.transformParams(pt,e,e.state):pt}B.params=N}if(c==="subscribe"){let N=s.subscribe({from:a,params:Gt,on:t.subscribeOn},(pt,pi,Mk)=>{Ve(e,pt,m),Tt(e,"onFetchComplete",pt),jt(t,e,"onFetchComplete",pt)});return i.__unsubscribe=N,{data:null,error:null,subscribed:!0}}return H(B)},qo);et&&no.set(et,df);try{let H=await df;if(H?.subscribed)return;let{data:B,error:tt}=H||{};if(tt){et&&io(et,null,tt),Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:tt,status:"error",fetchStatus:"idle"}),Tt(e,"onFetchError",tt),jt(t,e,"onFetchError",tt),oe&&oe({phase:"error",mode:"query",from:a,method:c,cacheKey:et,error:tt.message||tt,durationMs:(typeof performance<"u"?performance.now():Date.now())-ui});return}if(B!==void 0){if((c==="select"||c==="rpc")&&et){let pt=io(et,B,null);pt.gcTime=Lt?.gcTime||3e5}let N=B;z&&E(B)&&(i.__pages||(i.__pages=[]),o.direction==="previous"?i.__pages.unshift(B):i.__pages.push(B),N=i.__pages.flat(),M&&(i.__nextPageParam=M(B,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),P&&(i.__prevPageParam=P(B,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),C(j)&&(N=j(N,e,e.state)),u&&(N=u(N,e,e.state)),(!Z||N!==void 0)&&Ve(e,N,m),Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Tt(e,"onFetchComplete",N),jt(t,e,"onFetchComplete",N),oe&&oe({phase:"success",mode:"query",ok:!0,from:a,method:c,cacheKey:et,durationMs:(typeof performance<"u"?performance.now():Date.now())-ui})}}catch(H){Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:H,status:"error",fetchStatus:"idle"}),Tt(e,"onFetchError",H),jt(t,e,"onFetchError",H),oe&&oe({phase:"error",mode:"query",from:a,method:c,cacheKey:et,error:H.message||String(H),durationMs:(typeof performance<"u"?performance.now():Date.now())-ui})}finally{et&&no.delete(et)}},Bx=(t,e,r)=>{let o=t.on,n=e.__ref;n.__fetchListeners||(n.__fetchListeners=[]);let s=t.__runner||me;if(o==="submit"){let i=c=>{c.preventDefault(),s(t,e,r)},a=e.node;a&&(a.addEventListener("submit",i),n.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(o==="click"){let i=()=>s(t,e,r),a=e.node;a&&(a.addEventListener("click",i),n.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else o==="stateChange"&&(n.__fetchOnStateChange=()=>s(t,e,r))},Vx=(t,e,r)=>{let o=e.__ref;o.__fetchCleanups||(o.__fetchCleanups=[]),Nx();let n=t.refetchInterval;if(n){let s=typeof n=="number"?n:so(n);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&me(t,e,r,{force:!0})},s);o.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=Fn(e,r),a=Lx(t,i),c=lo(a),l=ga(t.cache);(!c||c.stale||Date.now()-c.time>(l?.staleTime||0))&&me(t,e,r,{force:!0})};cr.focus.add(s),o.__fetchCleanups.push(()=>cr.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>me(t,e,r,{force:!0});cr.online.add(s),o.__fetchCleanups.push(()=>cr.online.delete(s))}},zx=(t,e,r)=>{if(!e.optimistic)return null;let o=t.__ref,n=e.as,s=t.state?.parse?t.state.parse():S(t.state)?{...t.state}:t.state;o.__optimisticSnapshot=s;let i=C(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&Ve(t,i,n),s},ha=(t,e)=>{let r=t.__ref,o=r.__optimisticSnapshot;o!==void 0&&(Ve(t,o,e.as),delete r.__optimisticSnapshot)},Ux=async(t,e,r)=>{let o=r?.fetch;if(!o)return;let n=await ma(o,r);if(!n)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:p,auth:u,headers:d,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:x,onSettled:w}=t,v;if(c===!0||p==="submit")v=co(e);else if(E(c)){let P=co(e);v={};for(let z of c)v[z]=P[z]}else e.state?.parse?v=e.state.parse():S(e.state)&&(v={...e.state});l&&(v=l(v,e,e.state)),C(y)&&y(v,e,e.state);let O=m?zx(e,t,v):null;s.__fetching=!0,Xt(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Tt(e,"onFetchStart"),jt(t,e,"onFetchStart");let R=r?.analyze?.emitNetwork,M=R?typeof performance<"u"?performance.now():Date.now():0;R&&R({phase:"start",mode:"mutation",from:a,method:i});try{if(u!==!1&&n.auth!==!1&&n.getSession){let Gt=await n.getSession();if(u===!0&&!Gt){O!==void 0&&ha(e,t);let Lt={message:"Not authenticated"};Tt(e,"onFetchError",Lt),jt(t,e,"onFetchError",Lt);return}}let P=n[i];if(!C(P))return;let z={from:a,data:v,headers:d,baseUrl:h};t.params&&(z.params=Ap(t.params,e,r));let U=Fn(e,r);U&&(z.headers={...z.headers,"Accept-Language":U});let X=vp(t),j=await Cp(()=>P(z),X),{data:Z,error:Dt}=j||{};if(Dt){O!==void 0&&ha(e,t),Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Dt,status:"error",fetchStatus:"idle"}),Tt(e,"onFetchError",Dt),C(x)&&x(Dt,v,e),C(w)&&w(null,Dt,v,e),R&&R({phase:"error",mode:"mutation",from:a,method:i,error:Dt.message||String(Dt),durationMs:(typeof performance<"u"?performance.now():Date.now())-M});return}if(delete s.__optimisticSnapshot,Z!==void 0){let Gt=f?{[f]:Z}:Z;e.state?.update&&e.state.update(Gt,{preventFetch:!0})}if(Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Tt(e,"onFetchComplete",Z),jt(t,e,"onFetchComplete",Z),C(b)&&b(Z,v,e),C(w)&&w(Z,null,v,e),R&&R({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-M}),g){let Gt=E(g)?g:[g];for(let Lt of Gt)if(Lt===!0||Lt==="*")for(let[qo]of ht)qo.startsWith(a+":")&&ao(qo);else ao(Lt)}}catch(P){O!==void 0&&ha(e,t),Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:P,status:"error",fetchStatus:"idle"}),Tt(e,"onFetchError",P),jt(t,e,"onFetchError",P),C(x)&&x(P,v,e),C(w)&&w(null,P,v,e),R&&R({phase:"error",mode:"mutation",from:a,method:i,error:P.message||String(P),durationMs:(typeof performance<"u"?performance.now():Date.now())-M})}finally{s.__fetching=!1}},fo=(t,e,r,o)=>{if(!t||!o?.fetch)return;let s=G(t,e);if(!s)return;let i=E(s)?s.map(c=>Sp(G(c,e),e)).filter(Boolean):[Sp(s,e)].filter(Boolean);for(let c of i){let l=c.method==="insert"||c.method==="update"||c.method==="upsert"||c.method==="delete",f=l?Ux:me;c.on==="create"?f(c,e,o):Promise.resolve().then(()=>{Bx({...c,__runner:f},e,o)}),!l&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&Vx(c,e,o)}let a=e.__ref;a.refetch=c=>{for(let l of i)me(l,e,o,{force:!0,...c})},a.fetchNextPage=()=>{let c=i[0];if(!c||!c.infinite)return;let l=a.__nextPageParam;if(l==null)return;let f={...c,cursor:l};me(f,e,o,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let c=i[0];if(!c||!c.infinite)return;let l=a.__prevPageParam;if(l==null)return;let f={...c,cursor:l};me(f,e,o,{direction:"previous",force:!0})}},Wx={invalidateQueries:t=>{if(!t){ao();return}if(_(t))for(let[e]of ht)(e.startsWith(t)||e.includes(t))&&ao(e);else if(E(t)){let e=t.join(":");for(let[r]of ht)r.includes(e)&&ao(r)}},removeQueries:t=>{if(!t){Pn();return}if(_(t))for(let[e]of ht)(e.startsWith(t)||e.includes(t))&&Pn(e)},getQueryData:t=>lo(t)?.data??void 0,setQueryData:(t,e)=>{let r=lo(t),o=C(e)?e(r?.data):e;io(t,o,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let o=await ma(r,e);if(!o)return;let n=t.cache?.key||`${t.from}:${t.method||"select"}:${JSON.stringify(t.params||"")}`,s=o[t.method||"select"];if(!C(s))return;let i=await s({from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single});if(i?.data!==void 0&&!i?.error){let a=io(n,i.data,null);a.gcTime=ga(t.cache)?.gcTime||3e5}return i},getCache:()=>ht,clear:()=>Pn(),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[r]of ht)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(e)||Pn(r))}},ya={name:"fetch",create(t){let e=t.fetch;e&&(t.parent||no.clear(),fo(e,t,t.state,t.context))}},Hx=fo});function Ln(t){let e=this,{__ref:r}=e,o=[].concat(t),n=r.root[o[0]];if(!o||!o.length)return console.log(o,"on",e.key,"is undefined");for(;n.key===o[0]&&(o.shift(),!!o.length);)if(n=n[o[0]],!n)return;return n}function Tp(t){let e=this,{parent:r}=e;if(C(t))return r.state&&t(r,r.state,r.context)?r:r.parent?r.lookup(t):void 0;if(e[t])return e[t];for(;r.param!==t;){if(r[t])return r[t];if(r=r.parent,!r)return}return r}function Op(t){let e=this,{__ref:r}=e,o=r?.__children;if(o)for(let n=0;n<o.length;n++){let s=o[n],i=e[s];if(s===t)return i;if(C(t)){let c=t(i,i.state,i.context);if(i.state&&c)return i}let a=i?.lookdown?.(t);if(a)return a}}function Rp(t,e=[]){let r=this,{__ref:o}=r,n=o?.__children;if(n){for(let s=0;s<n.length;s++){let i=n[s],a=r[i];if(i===t)e.push(a);else if(C(t)){let c=t(a,a.state,a.context);a.state&&c&&e.push(a)}a?.lookdownAll?.(t,e)}return e.length?e:void 0}}function xa(t={}){let e=this;if(e.node?.style){for(let r in t){let o=t[r],n=e[r];if(S(o)&&n)xa.call(n,o);else if(o!=null){let s=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(o).replace(/\s*!important\s*$/,"");e.node.style.setProperty(s,i,"important")}}return e}}function Pp(t){let e=this;if(Be("beforeRemove",e,t)===!1)return e;C(e.node.remove)?e.node.remove():Ne()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=Qo(e.parent.__ref.__children,e.key)),Be("remove",e,t)}function Ip(t){return this[t]}function $p(t,e){let r=this;if(t)return r.update(t,e),r}function Fp(t){return t?this.__ref&&this.__ref[t]:this.__ref}function Mn(){return this.getRef("__children").map(e=>this[e])}function Nn(){return this.getRef().path}function Bn(t){let e=null,r=o=>o.__element&&o.root?.isRootState;if(!this)e=Ep();else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let o=this.state&&r(this.state),n=C(this.state)&&this.parent.state&&r(this.parent.state);(o||n)&&(e=this.state.root||this.parent.state.root)}return e||(e=Ep()),t?e?.[t]:e}function Vn(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function zn(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function Un(t){let e=this.getRoot()?.context;return t?e[t]:e}function Wn(t){let e=this.context;return t?e[t]:e}function Sa(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||Fe.has(r)&&!rn.has(r)||e.push(r);return e}function _a(t=[]){let e=this,r={},o=Sa.call(e),n=o.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<o.length;i++){let a=o[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||n&&a==="content")continue;let c=e[a];if(a==="state"){if(e.__ref&&!e.__ref.__hasRootState)continue;let l=C(c&&c.parse)?c.parse():c;r[a]=C(l)?l:JSON.parse(JSON.stringify(l||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:l,update:f,...p}=e[a];r[a]=p}else _t(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function Dn(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let o=_a.call(r,t),n=t.length?new Set(t):null;for(let s in o){if(n&&n.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=o[s];Array.isArray(i)?o[s]=i.map(a=>D(a)?Dn.call(a,t,e):a):D(i)&&(o[s]=Dn.call(i,t,e))}return o}function po(...t){if(ye!=="test"&&ye!=="development")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(o=>console.log(`%c${o}:
17
- `,"font-weight: bold",e[o])):(console.log(r.path),e.keys().forEach(n=>console.log(`%c${n}:`,"font-weight: bold",e[n]))),console.log(e),console.groupEnd(e.key),e}function Mp(...t){(ye==="test"||ye==="development")&&console.log(...t)}function Hn(...t){(ye==="test"||ye==="development")&&console.warn(...t)}function lr(...t){if(ye==="test"||ye==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&po.call(this),new Error(...t)}}function qn(){let t=this,{key:e,parent:r}=t,{__children:o}=r.__ref,n=o.indexOf(e),s=o[n+1];return r[s]}function Gn(t){let e=t||this,{key:r,parent:o}=e,{__children:n}=o.__ref;if(!n)return;let s=n.indexOf(r);return o[n[s-1]]}function Kn(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let r=e.data.varCaches,o={},n;for(let s in t)t[s]!==r[s]&&(n=!0,o[s]=t[s]);return{changed:s=>{if(!n)return;let i=s(o,Y(r));for(let a in o)r[a]=o[a];return i},timeout:(s,i)=>{if(!n)return;let a=setTimeout(()=>{s(o),clearTimeout(a)},i)}}}function Np(t,...e){let r=this.context,o=r.utils?.[t]||r.functions?.[t]||r.methods?.[t]||r.snippets?.[t];if(o)try{let n=o.call(this,...e);return n&&typeof n.then=="function"&&n.catch(s=>{lr.call(this,s)}),n}catch(n){if(lr.call(this,n),r?.strictMode)throw n}}async function Yn(){let t=this,e=t.context?.fetch;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:n}=await Promise.resolve().then(()=>(ze(),uo));await n(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:n}=await Promise.resolve().then(()=>(ze(),uo));await n(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=Promise.resolve().then(()=>(ze(),uo)).then(({resolveDb:n})=>n(e));e.__resolving=r;let o=await r;if(e.__resolved=o,t.context.fetch=o,delete e.__resolving,o.getSession){let{initAdapterAuth:n}=await Promise.resolve().then(()=>(ze(),uo));await n(o,t.context)}return o}function Xn(t){let e=this,r=t||On.useStateQuery||e.context?.useStateQuery;if(!r)return null;let o={};if(ba(e,o),r===!0)return o;let n=Qx[r];return n?n(o):o}function Bp(t,e){return!!(Zr.has(t)||e?.context?.methods?.[t])}var ye,Dp,jn,Ep,Lp,ba,qx,jp,Gx,Kx,Yx,Xx,Zx,Jx,Qx,Vp=I(()=>{"use strict";la();nr();ct();ie();Ti();er();fa();ye="production";Dp=null,jn=t=>{Dp=t||null},Ep=()=>Dp||null;Lp=(t,e,r,o)=>Object.defineProperty(t,e,{get:r,set:o});ba=(t,e)=>{let r=t.__ref;if(!r)return;let o=r.__state;o&&typeof o=="string"&&qx(e,o);let n=r.__children;if(n)for(let a=0;a<n.length;a++){let c=t[n[a]];c&&c.__ref&&ba(c,e)}let s=r.contentElementKey||"content",i=t[s];i&&i.__ref&&ba(i,e)},qx=(t,e)=>{let o=e.replaceAll("../","").replaceAll("~/","").split("/"),n=t;for(let s=0;s<o.length;s++){let i=o[s];s===o.length-1?n[i]||(n[i]=!0):(n[i]===!0&&(n[i]={}),n[i]||(n[i]={}),n=n[i])}},jp=(t,e=0)=>{let r=" ".repeat(e),o=Object.entries(t);return o.length?o.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {
18
- ${jp(i,e+1)}
12
+ `)){h++;break}h++}o.push([u,h]),s=h;continue}s++}if(!o.length)return null;let f=t;for(let p=o.length-1;p>=0;p--)f=f.slice(0,o[p][0])+f.slice(o[p][1]);return f},jt=(t,e={},r={window:{eval:xx}})=>{for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let o=t[n];if(w(o))if(Jr(o))try{e[n]=r.window.eval(`(${o})`)}catch(s){let i=s&&s.message?s.message:String(s),a=/await is only valid in async/.test(i),c=/Identifier '([^']+)' has already been declared/.exec(i),l=null;if(a){let f=String(o).trim();if(/^function[\s(]/.test(f))try{l=r.window.eval("(async "+f+")")}catch{}}else if(c){let f=c[1],p=Sx(String(o),f);if(p&&p!==o)try{l=r.window.eval("("+p+")")}catch{}}l?e[n]=l:(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: '+i+`.
13
+ First 200 chars of source: `+String(o).slice(0,200)),e[n]=o)}else e[n]=o;else if(E(o)){let s=e[n]=[];for(let i=0;i<o.length;i++){let a=o[i];if(w(a))if(Jr(a))try{s.push(r.window.eval(`(${a})`))}catch(c){typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed in array at index ${i} (prop "${n}"). Reason: ${c&&c.message?c.message:String(c)}.
14
+ First 200 chars: ${String(a).slice(0,200)}`),s.push(a)}else s.push(a);else _(a)?s.push(jt(a)):s.push(a)}}else _(o)?e[n]=jt(o,e[n]):e[n]=o}return e},_x="Set",wx="Map",kx=t=>!t||typeof t!="object"?t:t.__type===_x&&Array.isArray(t.values)?new Set(t.values):t.__type===wx&&Array.isArray(t.entries)?new Map(t.entries):t,io=t=>{if(!t||typeof t!="object")return t;let e={},r=[];for(let n of Object.keys(t)){let o=t[n];w(o)&&Jr(o)?r.push([n,o]):e[n]=kx(o)}for(let[n,o]of r)try{let s=Object.keys(e).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
15
+ `);e[n]=k.eval(`(function(__gs__) { ${s}
16
+ return (${o}); })`)(e)}catch{try{e[n]=k.eval(`(${o})`)}catch{e[n]=o}}return e},Gf=(t,e={verbose:!0})=>{try{return t?k.eval("("+t+")"):{}}catch(r){e.verbose&&console.warn(r)}},Kf=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),vi=t=>{for(let e in t)return!1;return!0},Xf=t=>_(t)&&vi(t),Yf=()=>Object.create(null),ao=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&Me(s)||s==="constructor"||s==="prototype"||e[s]!==void 0&&(t[s]=e[s]);return t},sr=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Me(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},At=(t,e,r={},n=new WeakMap)=>{if(!N(t)||!N(e)||kt(t)||kt(e))return e;if(n.has(t))return n.get(t);n.set(t,t);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&Me(a)||a==="constructor"||a==="prototype")continue;let c=t[a],l=e[a];kt(l)?t[a]=l:N(c)&&N(l)?t[a]=At(c,l,r,n):l!==void 0&&(t[a]=l)}return t},Ci=(t,e,r=new Set)=>{if(typeof t!="object"||typeof e!="object"||t===null||e===null)return t===e;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);let n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!Ci(t[i],e[i],r))return!1}return!0},vx=new Set(["node","__ref"]),Zf=(t,e,r=vx)=>{if(t===e)return!0;if(!N(t)||!N(e)||kt(t)||kt(e))return t===e;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 c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||n.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let l=a[c],f=i[c];if(kt(l)||kt(f)){if(l!==f)return!1}else if(N(l)&&N(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},Jf=(t,e)=>{if(e==null)return t;if(Ct(e)("string","number"))delete t[e];else if(E(e))for(let r=0;r<e.length;r++)delete t[e[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return t},Ai=t=>{if(t===null||typeof t!="object")return t;let e=Object.create(null);for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=Ai(t[r]));return e},Qf=(t,e)=>{if(t.length===0)return e;let r={},n=r;for(let o=0;o<t.length;o++)o===t.length-1&&e?n[t[o]]=e:(n[t[o]]={},n=n[t[o]]);return r},tu=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let o=0;o<e.length-1;o++){if(r[e[o]]===void 0)return;r=r[e[o]]}let n=e[e.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},eu=(t,e,r)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let o=0;o<e.length-1;o++)(!n[e[o]]||typeof n[e[o]]!="object")&&(n[e[o]]={}),n=n[e[o]];return n[e[e.length-1]]=r,t},ru=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let n=0;n<e.length;n++){if(r==null)return;r=r[e[n]]}return r},nu=t=>{let r=[],n=0;for(let o=0;o<t.length;o++)if(r.length<2)r.push(t[o]);else if(t[o]===r[o%2]?n++:(r=[t[o-1],t[o]],n=1),n>=20)return(Uf==="test"||Uf==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},ou=t=>{let e=new WeakSet;function r(n){if(n&&typeof n=="object"){if(e.has(n))return!0;e.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(t)},su=(t,e)=>{let r=e instanceof Set?e:new Set(e),n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&!r.has(o)&&(n[o]=t[o]);return n}});var co,lo,fo,uo=I(()=>{"use strict";ie();co=(function(){let t=0;function e(){return t++,t}return e})(),lo=co,fo=(t,e,r)=>(Y(r,t)||r||t.key||co()).toString()});var Kt,iu,Ne,Ei,au,cu,lu,je,fu,ir,Ti=I(()=>{"use strict";Kt="production",iu=Kt,Ne=(t=Kt)=>t==="production",Ei=(t=Kt)=>t==="testing"||t==="test",au=Ei,cu=(t=Kt)=>t==="staging",lu=(t=Kt)=>t==="local",je=(t=Kt)=>t==="development"||t==="dev"||t==="local",fu=(t,e=Kt)=>e[t],ir=(t=Kt)=>!Ne(t)});function po(t,e,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||t.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,e),a&&t.apply(o,s)}}function hu(t,e=window){let r=function(){return t.apply(e,arguments)};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}var uu,pu,Cx,du,Qr,tn,Xt,ar=I(()=>{"use strict";uu=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},pu=t=>{let e={};return(...r)=>{let n=r[0];if(n in e)return e[n];{let o=t(n);return e[n]=o,o}}},Cx=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,du=t=>Cx.test(t),Qr=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},tn=(t,e)=>{if(typeof t=="function")return t;let r=e?.context?.plugins;if(!r)return t;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(t,e);if(typeof o=="function")return o}return t},Xt=(t,e,...r)=>{let n=e?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[t]=="function"&&(s[t](e,...r),o=!0);return o}});var gu,mu=I(()=>{"use strict";ft();ie();gu=(t,e)=>{let{__ref:r}=t,n=t.if;if(C(n)){let o;try{o=n(t,t.state,t.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"?Y(n,t)?r.__if=!0:delete r.__if:r.__if=!0}});var yu,bu,xu=I(()=>{"use strict";yu=(t,...e)=>{t&&e.map(r=>console.log(r))},bu=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function vu(t){let e;try{if(!window.localStorage)return;e=window.localStorage.getItem(t)}catch{return}if(e!==null)try{return JSON.parse(e)}catch{return}}function Cu(t,e){if(e!=null)try{if(!window.localStorage)return;let r=typeof e=="object"?JSON.stringify(e):e;window.localStorage.setItem(t,r)}catch{}}var Su,_u,wu,ku,Au=I(()=>{"use strict";ft();Hr();Su=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),_u=(t,e,r=365)=>{if(ht(X)||ht(X.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;X.cookie=`${t}=${e};${o};path=/`},wu=t=>{if(ht(X)||ht(X.cookie))return;let e=`${t}=`,n=decodeURIComponent(X.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(e)===0)return s.substring(e.length,s.length)}return""},ku=t=>{ht(X)||ht(X.cookie)||(X.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var en,Eu,Tu,Oi=I(()=>{"use strict";en={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"])},Eu=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"]),Tu=t=>en.body.has(t)});var Ri,Ou,rn,mo,Et,Ru,Pi,yo,Pu,bo,Ii,$i,xo,Fi,nn,Ax,ae,Iu,ho,So,$u,go,Fu,Du,Di,Li,Mi,Ni,ji,Bi,Lu,_o=I(()=>{"use strict";er();Vi();ie();ft();Ri="production",Ou=t=>t.sourcemap!==!1&&Ri!=="production",rn=t=>{if(t.includes("+"))return t.split("+").filter(ce);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!ce(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},mo=(t,e,r)=>{let n=[],o=rn(r);o&&(n=[...o]);let s=t.extends;return s&&(n=E(s)?[...n,...s]:[...n,s]),n},Et=(t,e)=>{let{__ref:r}=e,{__extends:n}=r;if(!t)return n;let o=e.variant,s=e.context;if(o&&s?.components&&!Array.isArray(t)&&typeof t=="string"){let i=`${t}.${o}`;s.components[i]&&(t=i)}return n.includes(t)||(n=Array.isArray(t)?[...n,...t]:[...n,t],r.__extends=n),n},Ru=(t,e)=>{if(!t)return e;let{extends:r}=e,n=E(r)?r:[r],o=E(t)?t:[t];return{...e,extends:Gr(o,n)}},Pi=()=>Math.random().toString(36).substring(2),yo={},Pu={},bo=t=>yo[t.__hash],Ii=(t,e)=>{let r=Pi();return w(t)||(t.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(yo[r]=e),e},$i=(t,e)=>t.__hash?e.concat(bo(t)):Ii(t,e),xo=(t,e,r,n=new Set,o,s)=>{for(let i of t)E(i)?xo(i,e,r,n,o,s):nn(i,e,r,n,o,void 0,s);return e},Fi=(t,e,r,n=new Set,o,s,i)=>{let a=t.extends,c={...t};delete c.extends;let l=!1;for(let f in c){l=!0;break}return l&&(e.push(c),o&&o.push(s)),a&&nn(a,e,r,n,o,s,i),e},nn=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(E(t))return xo(t,e,r,n,o,i);let a=s;return w(t)?(a=t,t=So(t,r)):i&&_(t)&&i.has(t)&&(a=i.get(t)),n.add(t),t?.extends?Fi(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a)),e},Ax=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),ae=(t,e,r,n,o)=>{e=Q(e);for(let s in e){if(Ax.has(s))continue;let i=t[s],a=e[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(e,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)t[s]=a,r&&n?_(a)&&!E(a)?(r[s]=r[s]||{},Iu(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(_(i)&&_(a)){let c=r?r[s]=r[s]||{}:void 0,l=o?.[s];ce(s)?t[s]=ae(i,a,c,n,l):ae(i,a,c,n,l)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(E(i)&&E(a))t[s]=i.concat(a);else if(E(i)&&_(a)){let c=ae({},i);t[s]=ae(c,a)}}}}return t},Iu=(t,e,r,n)=>{if(n||(n=new WeakSet),!n.has(e)){n.add(e);for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=e[o];_(s)&&!E(s)?(t[o]=t[o]||{},Iu(t[o],s,r,n)):t[o]=r}}},ho=(t,e,r)=>t.reduce((n,o,s)=>{let i=Q(o),a=r?r[s]:void 0;return ae(n,i,e,a)},{}),So=(t,e,r={},n)=>{let o=e?.components||r.components,s=e?.pages||r.pages;if(w(t)){let i=o&&(o[t+"."+n]||o[t]||o["smbls."+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;r.verbose&&(Ri==="test"||Ri==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},$u=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),go=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return bo(t)||[];let s=nn(t,[],e,new Set,r,void 0,n);return r?s:$i(t,s)},Fu=(t,e)=>{if(!t)return e;let r=E(t)?t:[t];return Gr(r,e)},Du=t=>{let e=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(ce(o)&&e.push(o),o==="extends"&&(typeof n[o]=="string"?e.push(n[o]):Array.isArray(n[o])&&(e=e.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(t),e},Di=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.variant;if(t.extends)if(Array.isArray(t.extends)&&t.extends.length>0){let[i,...a]=t.extends;if(typeof i=="string"&&s&&o?.components){let c=`${i}.${s}`;o.components[c]?Et([c,...a],t):Et(t.extends,t)}else Et(t.extends,t)}else if(typeof t.extends=="string"&&s&&o?.components){let i=`${t.extends}.${s}`;o.components[i]?Et(i,t):Et(t.extends,t)}else Et(t.extends,t);return Li(t,e,r),Mi(t,e,r),Ni(t,e,r),t.component&&Et(Y(t.component,t),t),o.defaultExtends&&Et(o.defaultExtends,t),Kr(n.__extends)},Li=(t,e,r={})=>{let{__ref:n}=t;return r.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&Et(e.childProps.extends,t),n.__extends},Mi=(t,e,r={})=>{let{__ref:n}=t,o=r.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!o&&s&&Et(s,t),n.__extends},Ni=(t,e,r={})=>{let{__ref:n}=t,o=e.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key==="__text";return o&&!i&&!s&&Et(o,t),n.__extends},ji=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.variant,i=Ou(r),a=i?[...n.__extends]:null,c=Kr(n.__extends.map((l,f)=>So(l,o,r,f===0&&s)));if(i){let l=new WeakMap;for(let u=0;u<c.length;u++){let d=c[u],h=a[u];d&&_(d)&&w(h)&&l.set(d,h)}let f=[],p=go(c,o,f,l);n.__extendsStack=p,n.__extendsNames=f}else{let l=go(c,o);n.__extendsStack=l}return n.__extendsStack},Bi=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(Ou(r)){let s={},i=n.__extendsNames||[],a=ho(o,s,i),c={};ae(t,a,c,void 0,s),n.__sourcemap=c}else{let s=ho(o);ae(t,s)}return t},Lu=(t,e,r={})=>(Di(t,e,r),ji(t,e,r),Bi(t,e,r),t)});function Mu(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function Nu(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function ju(t,e,r){let{context:n}=e||{},[o]=rn(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var ce,Vi=I(()=>{"use strict";_o();ft();ce=t=>{if(!w(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function Bu(t,e){let{props:r,on:n}=e,o=nr(t.split("on")[1]),s=n[o],i=r[t];C(s)?n[o]=(...a)=>{if(s(...a)!==!1&&C(i))return i(...a)}:n[o]=i}var Vu=I(()=>{"use strict";Yr();ft()});function Ui(t,e={}){let r=e.cachedKeys||[];for(let n in t){let o=t[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(C(o)||o!=null&&Qr(this.context))){let h=nr(n.slice(2));t.on&&(t.on[h]=o),delete t[n];continue}if(n==="childProps"){t.props[n]=o,delete t[n],r.push(n);continue}let a=this.define?.[n],c=this.context?.define?.[n],l=_(a)||C(a),f=_(c)||C(c);if(l||f)continue;let p=n.charAt(0);if(Uu.has(p)){t.props[n]=o,delete t[n],r.push(n);continue}let u=zi.test(n)||zu.test(n)||Tx(o),d=Fe.has(n);!u&&!d&&(n in t.props||(t.props[n]=o),delete t[n],r.push(n))}return t}function Wi(t=this,e){let r=e.cachedKeys||[];for(let n in t.props){let o=t.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=C(o)||o!=null&&Qr(this.context);if(s&&i){Bu(n,t),delete t.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(Uu.has(a))continue;let c=this.define?.[n],l=this.context?.define?.[n],f=_(c)||C(c),p=_(l)||C(l),u=zi.test(n)||zu.test(n),d=Fe.has(n);(u||d||f||p)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function Hi(t=this){let e=[];return Ui.call(this,t,{cachedKeys:e}),Wi.call(this,t,{cachedKeys:e}),t}function Wu(t={}){return t.on||(t.on={}),t.props||(t.props={}),Hi.call(this,t)}function qi(t,e){this.__element.update({props:t},e)}function Ao(t){let e={update:qi.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var zi,zu,Uu,Ex,Tx,vo,wo,Hu,Co,Eo,To,Gi,ko,qu,Gu,Ki=I(()=>{"use strict";or();Vu();ie();ft();Yr();ar();zi=/^[A-Z]/,zu=/^\d+$/,Uu=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),Ex=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),Tx=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(Ex.has(e)||zi.test(e))return!0;return!1},vo=(t,e,r)=>{let{props:n,__ref:o}=t;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return N(n)?{...n}:(o.__propsStack.push(n),{})};wo=t=>Ct(t)("string","number")?{inheritedString:t}:t,Hu=(t,e)=>!t||!e.length?!1:e.includes(t),Co=(t,e)=>{let{__ref:r}=t,n=r.__propsStack||[],o=e.props;if(!o)return n;let s=o[t.key],i=o.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=wo(i);n.unshift(c)}if(s){let c=wo(s);n.unshift(c)}return n};Eo=t=>{let e=new Set;return t.filter(r=>!r||Le.has(r)||e.has(r)?!1:(e.add(r),!0))},To=(t,e,r)=>(e.props=t.reduce((n,o)=>{if(Le.has(o))return n;for(;C(o);)o=Y(o,e);return G(n,Q(o,{exclude:Le}))},{}),Ao(e),e.props),Gi=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...Co(t,e)]),_(r)?o.push(r):r==="inherit"&&e?.props?o.push(e.props):r&&o.push(r),E(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=Eo(o),n.__propsStack},ko=(t,e)=>{let{__ref:r}=t,n=Gi(t,e);n.length?To(n,t):(r.__propsStack=[],t.props={})},qu=function(t,e,r){let{__ref:n}=t;if(n.__if)ko(t,e);else try{ko(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),t.props={},n.__propsStack=[]}return Ao(t),t},Gu=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=Co(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=Eo(s),n.__propsStack.length&&To(n.__propsStack,e),e}});var Ku,Xi,Yi,Zi,Ji,Xu,Qi,ta,ea,Yu,Zu=I(()=>{"use strict";_o();uo();qr();Ki();Oi();ft();Ku="production",Xi=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.childProps&&e.childProps.tag,s=en.body.has(r)&&r;return{text:t,tag:n||o||s||"string"}},Yi=(t,e,r)=>{if(t===void 0)return(Ku==="test"||Ku==="development")&&console.warn(r,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:Ct(t)("string","number")?Xi(t,e,r):C(t)?{props:t}:t},Zi=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},Ji=(t,e,r,n,o)=>{if(!e)return o;if(he(e)){let s={key:":root",node:e};return o[`${r}_parent`]=s,s}return e},Xu=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===":root";r?.root||(r.root=o?t:n?.root)},Qi=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},ta=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),ea=(t,e,r)=>{let n=Zi(t,e);return t.__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=mo(t,e,r),n.path=Qi(t,e,r),n},Yu=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:Yi(t,e,r);if(!i)return;let a=Ji(i,e,r,n,o),c=fo(i,a,r);ea(i,a,c);let l=vo(i,a,c),f=ta(i,a,c,n,o),p=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:p}}});var Ju,ra,na,oa,sa,Qu,ia,tp,ep,rp,np,op=I(()=>{"use strict";er();or();ie();ft();Ju=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return Ct(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},ra=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},na=(t,e)=>{if(!t.includes("../"))return;let n=t.split("../").length-1;for(let o=0;o<n;o++){if(!e.parent)return null;e=e.parent}return e},oa=(t,e,r={})=>{let n=w(t)?t.split("/"):[t],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 c=e[i];c||(c=e[i]={}),c[a]||(c[a]={}),t=a,e=c}return r.returnParent?e:e[t]},sa=(t,e,r={})=>{let o=t.__ref.__state;if(!ia(t))return;let s=ra(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=na(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return oa(o,i,r)},Qu=(t,e)=>{let r=t.__ref,n=sa(t,e);if(n===void 0)return t.state;if(Ct(n)("object","array"))return Q(n);if(Ct(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},ia=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&Ct(r)("number","string","boolean"))},tp=function(t){return N(t)?!!(t.update&&t.parse&&t.clean&&t.create&&t.parent&&t.destroy&&t.rootUpdate&&t.parentUpdate&&t.keys&&t.values&&t.toggle&&t.replace&&t.quietUpdate&&t.quietReplace&&t.add&&t.apply&&t.applyReplace&&t.setByPath&&t.setPathCollection&&t.removeByPath&&t.removePathCollection&&t.getByPath&&t.applyFunction&&t.__element&&t.__children):!1},ep=(t,e)=>{if(!t)return e||{};let r=t.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?e||{}:{},o=o[r[i]];return n},rp=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=Q(n,De),s={[t.key]:o},i=_(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?to(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},np=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){G(t,e,De);return}(o?sr:At)(t,e,De)}});var sp,ip=I(()=>{"use strict";sp=(t,e)=>{let{__ref:r}=t,n=t.context||e.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=e.scope||r.root?.scope,s=n?.globalScope;if(!t.scope)o?t.scope=o:s?t.scope=Object.create(s):t.scope={};else if(typeof t.scope=="object"&&t.scope!==null&&Object.getPrototypeOf(t.scope)===Object.prototype){let i=o||s;i&&Object.setPrototypeOf(t.scope,i)}}});var ap,aa,Be,ca,cp,la=I(()=>{"use strict";ft();ar();ap=(t,e)=>{let r="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[r]},aa=(t,e,r,n,o)=>{if(t=tn(t,e),!!C(t))try{let s=t.call(e,e,r||e.state,n||e.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{e.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(e.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),e.context?.strictMode)throw s}},Be=(t,e,r)=>{if(!e)throw new Error("Element is required");Xt(t,e,r);let n=ap(t,e);if(n){let{state:o,context:s}=e;return aa(n,e,o,s,r)}},ca=(t,e,r,n,o,s)=>{if(t=tn(t,r),!!C(t))try{let i=t.call(r,e,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}},cp=(t,e,r,n)=>{Xt(t,r,e,n);let o=ap(t,r);if(o){let{state:s,context:i}=r;return ca(o,e,r,s,i,n)}}});var lp,Oo,fa=I(()=>{"use strict";lp={},Oo={}});var pp={};$(pp,{setup:()=>Rx,supabaseAdapter:()=>up});var fp,Ox,Rx,ua,Px,up,dp=I(()=>{"use strict";fp=new Map,Ox=(t,e,r)=>`${t}|${e}|${r?"off":"on"}`,Rx=async({url:t,key:e,projectId:r,createClient:n,auth:o,retry:s,adapter:i,...a})=>{let c=t||r&&`https://${r}.supabase.co`;if(!c||!e)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 l=Ox(c,e,o===!1),f=fp.get(l);return f||(f=await n(c,e,a),f?.auth&&fp.set(l,f)),!f||!f.auth?null:up(f)},ua=(t,e)=>{if(!e)return t;for(let r in e){let n=e[r];if(n===null)t=t.is(r,null);else if(Array.isArray(n))t=t.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?t=t.gt(r,n[o]):o==="gte"?t=t.gte(r,n[o]):o==="lt"?t=t.lt(r,n[o]):o==="lte"?t=t.lte(r,n[o]):o==="neq"?t=t.neq(r,n[o]):o==="like"?t=t.like(r,n[o]):o==="ilike"?t=t.ilike(r,n[o]):o==="in"?t=t.in(r,n[o]):o==="is"?t=t.is(r,n[o]):o==="contains"?t=t.contains(r,n[o]):o==="containedBy"?t=t.containedBy(r,n[o]):o==="textSearch"&&(t=t.textSearch(r,n[o]));else t=t.eq(r,n)}return t},Px=(t,{limit:e,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;t=t.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;t=t.order(s,{ascending:n.asc!==!1})}return e&&(t=t.limit(e)),r&&(t=t.range(r,r+(e||20)-1)),o&&(t=t.single()),t},up=t=>({name:"supabase",client:t,getSession:async()=>{let{data:e}=await t.auth.getSession();return e?.session||null},getUser:async()=>{let{data:e}=await t.auth.getUser();return e?.user||null},signIn:e=>e.provider?t.auth.signInWithOAuth({provider:e.provider}):e.token?t.auth.signInWithIdToken(e):t.auth.signInWithPassword(e),signUp:e=>t.auth.signUp(e),signOut:()=>t.auth.signOut(),onAuthStateChange:e=>{let{data:{subscription:r}}=t.auth.onAuthStateChange((n,o)=>e(n,o));return()=>r.unsubscribe()},select:async({from:e,schema:r,select:n,params:o,headers:s,...i})=>{let c=(r?t.schema(r):t).from(e).select(n||"*");if(c=ua(c,o),c=Px(c,i),s)try{for(let l in s)c.setHeader?c=c.setHeader(l,s[l]):t.rest&&(t.rest.headers[l]=s[l])}catch(l){console.warn("[supabase] setHeader failed:",l.message)}return c},rpc:({from:e,params:r})=>t.rpc(e,r),insert:({from:e,schema:r,data:n,select:o})=>(r?t.schema(r):t).from(e).insert(n).select(o||"*"),update:({from:e,schema:r,data:n,params:o,select:s})=>{let a=(r?t.schema(r):t).from(e).update(n);return a=ua(a,o),a.select(s||"*")},upsert:({from:e,schema:r,data:n,select:o})=>(r?t.schema(r):t).from(e).upsert(n).select(o||"*"),delete:({from:e,params:r})=>{let n=t.from(e).delete();return n=ua(n,r),n},subscribe:({from:e,params:r,on:n},o)=>{let s=n||"*",i=t.channel(`db-${e}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:e,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>t.removeChannel(i)},upload:({bucket:e,path:r,file:n,options:o})=>t.storage.from(e).upload(r,n,o),download:({bucket:e,path:r})=>t.storage.from(e).download(r),getPublicUrl:({bucket:e,path:r})=>t.storage.from(e).getPublicUrl(r)})});var gp={};$(gp,{restAdapter:()=>hp,setup:()=>$x});var Ix,ge,$x,hp,mp=I(()=>{"use strict";Ix=(t,e,r)=>{let n=e&&!e.startsWith("/")?"/":"",o=new URL(`${t}${n}${e}`);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()},ge=async(t,e)=>{let r=await globalThis.fetch(t,e),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}},$x=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return hp(t,e,r,n)},hp=(t,e={},r,n={})=>{let o=r?.token||null,s=f=>{let p={...e,...f};return o&&(p.Authorization=`Bearer ${o}`),p},i=f=>({...s(f),"Content-Type":"application/json"}),a=f=>({...n,...f}),c=(f,p)=>{let u=p||t;if(f&&(f.startsWith("http://")||f.startsWith("https://")))return f;let d=f&&!f.startsWith("/")?"/":"";return`${u}${d}${f||""}`};return{name:"rest",setToken:f=>{o=f},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let f=await ge(c(r.sessionUrl,r.baseUrl),a({headers:s()}));return f.error?null:f.data},signIn:async f=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let p=await ge(c(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(f)}));return p.data?.token&&(o=p.data.token),p},signOut:async()=>(r?.signOutUrl&&await ge(c(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:f,params:p,select:u,limit:d,offset:h,order:g,single:m,headers:y,baseUrl:b})=>{let x={...p};return u&&(x.select=u),d&&(x.limit=d),h&&(x.offset=h),m&&(x.single=!0),g&&(typeof g=="string"?x.order=g:Array.isArray(g)?x.order=g.map(S=>`${S.by}:${S.asc===!1?"desc":"asc"}`).join(","):g.by&&(x.order=`${g.by}:${g.asc===!1?"desc":"asc"}`)),ge(Ix(b||t,f||"",x),a({headers:s(y)}))},rpc:({from:f,params:p,headers:u,baseUrl:d})=>ge(c(`rpc/${f}`,d),a({method:"POST",headers:i(u),body:JSON.stringify(p)})),insert:({from:f,data:p,headers:u,baseUrl:d})=>ge(c(f,d),a({method:"POST",headers:i(u),body:JSON.stringify(p)})),update:({from:f,data:p,params:u,method:d,headers:h,baseUrl:g})=>{let m=u?.id||p?.id,y=m?`${f}/${m}`:f;return ge(c(y,g),a({method:d||"PATCH",headers:i(h),body:JSON.stringify(p)}))},delete:({from:f,params:p,headers:u,baseUrl:d})=>{let h=p?.id,g=h?`${f}/${h}`:f;return ge(c(g,d),a({method:"DELETE",headers:s(u)}))}}}});var bp={};$(bp,{localAdapter:()=>yp,setup:()=>Dx});var pa,Fx,Dx,yp,xp=I(()=>{"use strict";pa=(t,e)=>{if(!e)return!0;for(let r in e){let n=e[r];if(n===null){if(t[r]!==null&&t[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(t[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(t[r]>n[o])||o==="gte"&&!(t[r]>=n[o])||o==="lt"&&!(t[r]<n[o])||o==="lte"&&!(t[r]<=n[o])||o==="neq"&&t[r]===n[o]||o==="like"&&!String(t[r]).includes(n[o]))return!1}else if(t[r]!==n)return!1}return!0},Fx=(t,{order:e,limit:r,offset:n,single:o})=>{let s=[...t];if(e){let i=typeof e=="string"?e:e.by,a=e.asc!==!1;s.sort((c,l)=>c[i]<l[i]?a?-1:1:c[i]>l[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}},Dx=async({data:t,...e})=>yp(t,e),yp=(t={},e={})=>{let r={},n={},o=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=f=>{if(!r[f])if(o)try{let p=localStorage.getItem(s+f);r[f]=p?JSON.parse(p):t[f]||[]}catch{r[f]=t[f]||[]}else r[f]=t[f]||[];return r[f]},a=f=>{if(o)try{localStorage.setItem(s+f,JSON.stringify(r[f]))}catch{}},c=(f,p,u,d)=>{let h=n[f];if(h)for(let g of h)g(u,d,{event:p,table:f})},l=Date.now();return{name:"local",store:r,select:async({from:f,params:p,...u})=>{let h=i(f).filter(g=>pa(g,p));return Fx(h,u)},insert:async({from:f,data:p})=>{let u=i(f),h=(Array.isArray(p)?p:[p]).map(g=>{let m={id:g.id||++l,...g};return u.push(m),m});a(f);for(let g of h)c(f,"INSERT",g,null);return{data:Array.isArray(p)?h:h[0],error:null}},update:async({from:f,data:p,params:u})=>{let d=i(f),h=[];for(let g=0;g<d.length;g++)if(pa(d[g],u)){let m={...d[g]};Object.assign(d[g],p),h.push(d[g]),c(f,"UPDATE",d[g],m)}return a(f),{data:h,error:null}},delete:async({from:f,params:p})=>{let u=i(f),d=[];for(let h=u.length-1;h>=0;h--)pa(u[h],p)&&(d.push(u[h]),u.splice(h,1),c(f,"DELETE",null,d[d.length-1]));return a(f),{data:d,error:null}},subscribe:({from:f,on:p},u)=>{n[f]||(n[f]=[]);let d=(h,g,m)=>{p&&p!=="*"&&p!==m.event||u(h,g,m)};return n[f].push(d),()=>{let h=n[f].indexOf(d);h>-1&&n[f].splice(h,1)}}}}});var pn={};$(pn,{createAdapter:()=>Nx,default:()=>Kx,executeFetch:()=>un,fetchPlugin:()=>ya,initAdapterAuth:()=>$o,parseDuration:()=>sn,queryClient:()=>Gx,registerAdapter:()=>Mx,resolveDb:()=>vp});var Lx,Ro,kp,Mx,Nx,vp,sn,yt,Cp,on,jx,fn,an,cn,Po,ga,Io,Bx,Sp,da,Ap,Ep,cr,_p,Vx,wp,zx,Fo,Tp,$o,ma,Pt,Bt,ln,Ve,Yt,me,Ux,Wx,Hx,ha,qx,un,Gx,ya,Kx,ze=I(()=>{"use strict";O();Lx=["select","rpc","insert","update","delete","subscribe"],Ro=Symbol.for("@symbo.ls/fetch:BUILTIN_ADAPTERS"),kp=(()=>{if(typeof globalThis<"u"&&globalThis[Ro])return globalThis[Ro];let t={supabase:()=>Promise.resolve().then(()=>(dp(),pp)),rest:()=>Promise.resolve().then(()=>(mp(),gp)),local:()=>Promise.resolve().then(()=>(xp(),bp))};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Ro,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Ro]}catch{}return t})(),Mx=(t,e)=>{kp[t]=e},Nx=t=>{let e={};for(let r of Lx)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},vp=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...r}=t,n=typeof e=="string"?e:typeof t=="string"?t:null;if(!n)return null;let o=kp[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},sn=t=>{if(!t)return 0;if(typeof t=="number")return t;let e=t.match(/^(\d+)(ms|s|m|h)$/);if(!e)return 0;let r=parseInt(e[1]),n=e[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},yt=new Map,Cp=new Map,on=new Map,jx=(t,e)=>{if(t.cache?.key)return t.cache.key;let r=zx(t.params),n=`${t.from}:${t.method}:${JSON.stringify(r||"")}`;return e?`${n}:${e}`:n},fn=t=>yt.get(t)||null,an=(t,e,r)=>{let n=yt.get(t),o={data:e,error:r,time:Date.now(),stale:!1};yt.set(t,o);let s=Cp.get(t);if(s)for(let i of s)C(i)&&i(o);return o},cn=t=>{if(t){let e=yt.get(t);e&&(e.stale=!0);return}for(let[,e]of yt)e.stale=!0},Po=t=>{if(t){yt.delete(t);return}yt.clear()},ga=t=>!t&&t!==!1?{staleTime:6e4,gcTime:3e5}:t===!1?null:t===!0?{staleTime:6e4,gcTime:3e5}:typeof t=="number"?{staleTime:t,gcTime:Math.max(t*5,3e5)}:w(t)?{staleTime:sn(t),gcTime:3e5}:{staleTime:sn(t.stale||t.staleTime)||6e4,gcTime:sn(t.gc||t.gcTime||t.expire)||3e5,key:t.key},Io=null,Bx=()=>{Io||(Io=setInterval(()=>{let t=Date.now();for(let[e,r]of yt){let n=Cp.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&yt.delete(e)}},3e4),Io.unref&&Io.unref())};Bx();Sp=3,da=t=>Math.min(1e3*2**t,3e4),Ap=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:Sp,delay:da}:typeof e=="number"?{count:e,delay:da}:{count:e.count??Sp,delay:C(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:da}},Ep=async(t,e)=>{let{count:r,delay:n}=e,o;for(let s=0;s<=r;s++)try{let i=await t();if(i?.error){if(o=i.error,s<r){let a=C(n)?n(s,o):n;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=C(n)?n(s,i):n;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},cr={focus:new Set,online:new Set},_p=!1,Vx=()=>{if(_p||typeof window>"u")return;_p=!0;let t=()=>{for(let r of cr.focus)r()},e=()=>{for(let r of cr.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},wp=(t,e)=>{let r=e.__ref;if(t===!0)return{from:r.__state||e.key,method:"select",query:!0,on:"create"};if(w(t))return{from:t,method:"select",query:!0,on:"create"};if(_(t)){let n={...t};return n.from=n.from||r.__state||e.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},zx=t=>(!t||C(t),t),Fo=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},Tp=(t,e,r)=>{let n;if(!t)n=void 0;else if(C(t))n=t(e,e.state);else{n={};for(let o in t){let s=t[o];n[o]=C(s)?s(e,e.state):s}}return n},$o=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let r=(n,o)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await t.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}t.onAuthStateChange&&t.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},ma=async(t,e)=>{if(C(t.select))return t.auth!==!1&&await $o(t,e),t;if(t.__resolved)return t.auth!==!1&&await $o(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=vp(t);let r=await t.__resolving;return delete t.__resolving,r?(r.auth=t.auth,r.url=t.url,r.key=t.key,t.__resolved=r,e.fetch=r,t.auth!==!1&&await $o(r,e),r):null},Pt=(t,e,...r)=>{let n=C(t[e])?t[e]:null;n&&n.call(t,...r,t,t.state,t.context)},Bt=(t,e,r,...n)=>{let o=t&&C(t[r])?t[r]:null;o&&o.call(e,...n,e,e.state,e.context)},ln=t=>{let e={},r=t.node;if(!r)return e;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())e[s]=i;return e}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"?e[i]=s.checked:s.type==="file"?e[i]=s.files:e[i]=s.value)}return e},Ve=(t,e,r,n={})=>{let o=r&&r.startsWith("~/"),s=o&&t.state?.root||t.state;if(s?.update)if(o){let i=r.slice(2);e&&typeof e=="object"&&!Array.isArray(e)&&i in e?s.update(e,{preventFetch:!0,...n}):s.update({[i]:e},{preventFetch:!0,...n})}else{let i=r?{[r]:e}:e;s.update(i,{preventFetch:!0,...n})}},Yt=(t,e)=>{let r=t?.__ref;r&&(r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error)},me=async(t,e,r,n={})=>{let o=r?.fetch;if(!o||!e||!e.__ref||t.enabled===!1||C(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||C(t.skip)&&t.skip(e,e.state))return;let s=await ma(o,r);if(!s||!e.__ref)return;let i=e.__ref,{from:a,method:c,query:l,params:f,cache:p,transform:u,single:d,auth:h,fields:g,as:m,limit:y,offset:b,order:x,headers:S,baseUrl:v,page:T,cursor:R,getNextPageParam:L,getPreviousPageParam:P,infinite:V,placeholderData:z,initialData:U,select:M,keepPreviousData:D}=t,q=w(M)?M:void 0;if(l&&C(e.getQuery)){let K=e.getQuery(s.name||"paths");K&&(q=K.select||K.length&&K.join(",")||q)}let J=Tp(f,e,r),dt=ga(p),qn=Ap(t),fi=Fo(e,r),Jb=fi?`:${fi}`:"",nt=dt?p?.key||`${a}:${c}:${JSON.stringify(J||"")}${V?":infinite":""}${T?":p"+JSON.stringify(T):""}${Jb}`:null;if(!i.__fetchInitialized&&nt&&(i.__fetchInitialized=!0,U!==void 0)){let K=C(U)?U():U;an(nt,K,null)}if((c==="select"||c==="rpc")&&nt&&dt){let K=fn(nt);if(K&&!K.error){let W=Date.now()-K.time,rt=K.stale||W>(dt.staleTime||0),B=K.data;if(C(M)&&(B=M(B,e,e.state)),u&&(B=u(B,e,e.state)),Ve(e,B,m),!rt){Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(z!==void 0){let W=C(z)?z(e,e.state):z;W!==void 0&&Ve(e,W,m)}}if(nt&&on.has(nt)&&!n.force){let K=on.get(nt);try{let W=await Promise.race([K,new Promise((rt,B)=>setTimeout(()=>B("DEDUP_TIMEOUT"),15e3))]);if(W?.data!==void 0){let rt=W.data;C(M)&&(rt=M(rt,e,e.state)),u&&(rt=u(rt,e,e.state)),Ve(e,rt,m),Pt(e,"onFetchComplete",rt),Bt(t,e,"onFetchComplete",rt)}}catch{}return}let Qb=!fn(nt)?.data;Yt(e,{isFetching:!0,isLoading:Qb,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Pt(e,"onFetchStart"),Bt(t,e,"onFetchStart");let ne=r?.analyze?.emitNetwork,ui=ne?typeof performance<"u"?performance.now():Date.now():0;ne&&ne({phase:"start",mode:"query",from:a,method:c,cacheKey:nt,lang:fi});let gf=Ep(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let B=await s.getSession();if(h===!0&&!B){let gt={message:"Not authenticated"};return Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:gt,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",gt),Bt(t,e,"onFetchError",gt),{data:null,error:gt}}}let K=s[c];if(!C(K))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let W={from:a,select:q,params:J,single:d,limit:y,offset:b,order:x,headers:S,baseUrl:v},rt=Fo(e,r);if(rt&&(W.headers={...W.headers,"Accept-Language":rt}),T!==void 0){if(_(T))T.offset!==void 0&&(W.offset=T.offset),T.limit!==void 0&&(W.limit=T.limit),T.cursor!==void 0&&(W.params={...W.params,cursor:T.cursor});else if(typeof T=="number"){let B=t.pageSize||y||20;W.offset=(T-1)*B,W.limit=B}}if(R!==void 0&&(W.params={...W.params,cursor:R}),c==="insert"||c==="update"||c==="upsert"){let B;if(g===!0||t.on==="submit")B=ln(e);else if(E(g)){let gt=ln(e);B={};for(let pi of g)B[pi]=gt[pi]}else e.state?.parse?B=e.state.parse():_(e.state)&&(B={...e.state});u&&(B=u(B,e,e.state)),W.data=B}if(c==="rpc"){let B=J;if(t.on==="submit"){let gt=ln(e);B=t.transformParams?t.transformParams(gt,e,e.state):gt}W.params=B}if(c==="subscribe"){let B=s.subscribe({from:a,params:J,on:t.subscribeOn},(gt,pi,Zk)=>{Ve(e,gt,m),Pt(e,"onFetchComplete",gt),Bt(t,e,"onFetchComplete",gt)});return i.__unsubscribe=B,{data:null,error:null,subscribed:!0}}return K(W)},qn);nt&&on.set(nt,gf);try{let K=await gf;if(K?.subscribed)return;let{data:W,error:rt}=K||{};if(rt){nt&&an(nt,null,rt),Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:rt,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",rt),Bt(t,e,"onFetchError",rt),ne&&ne({phase:"error",mode:"query",from:a,method:c,cacheKey:nt,error:rt.message||rt,durationMs:(typeof performance<"u"?performance.now():Date.now())-ui});return}if(W!==void 0){if((c==="select"||c==="rpc")&&nt){let gt=an(nt,W,null);gt.gcTime=dt?.gcTime||3e5}let B=W;V&&E(W)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(W):i.__pages.push(W),B=i.__pages.flat(),L&&(i.__nextPageParam=L(W,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),P&&(i.__prevPageParam=P(W,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),C(M)&&(B=M(B,e,e.state)),u&&(B=u(B,e,e.state)),(!D||B!==void 0)&&Ve(e,B,m),Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Pt(e,"onFetchComplete",B),Bt(t,e,"onFetchComplete",B),ne&&ne({phase:"success",mode:"query",ok:!0,from:a,method:c,cacheKey:nt,durationMs:(typeof performance<"u"?performance.now():Date.now())-ui})}}catch(K){Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:K,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",K),Bt(t,e,"onFetchError",K),ne&&ne({phase:"error",mode:"query",from:a,method:c,cacheKey:nt,error:K.message||String(K),durationMs:(typeof performance<"u"?performance.now():Date.now())-ui})}finally{nt&&on.delete(nt)}},Ux=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||me;if(n==="submit"){let i=c=>{c.preventDefault(),s(t,e,r)},a=e.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(t,e,r),a=e.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(t,e,r))},Wx=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),Vx();let o=t.refetchInterval;if(o){let s=typeof o=="number"?o:sn(o);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&me(t,e,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=Fo(e,r),a=jx(t,i),c=fn(a),l=ga(t.cache);(!c||c.stale||Date.now()-c.time>(l?.staleTime||0))&&me(t,e,r,{force:!0})};cr.focus.add(s),n.__fetchCleanups.push(()=>cr.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>me(t,e,r,{force:!0});cr.online.add(s),n.__fetchCleanups.push(()=>cr.online.delete(s))}},Hx=(t,e,r)=>{if(!e.optimistic)return null;let n=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():_(t.state)?{...t.state}:t.state;n.__optimisticSnapshot=s;let i=C(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&Ve(t,i,o),s},ha=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Ve(t,n,e.as),delete r.__optimisticSnapshot)},qx=async(t,e,r)=>{let n=r?.fetch;if(!n)return;let o=await ma(n,r);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:p,auth:u,headers:d,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:x,onSettled:S}=t,v;if(c===!0||p==="submit")v=ln(e);else if(E(c)){let P=ln(e);v={};for(let V of c)v[V]=P[V]}else e.state?.parse?v=e.state.parse():_(e.state)&&(v={...e.state});l&&(v=l(v,e,e.state)),C(y)&&y(v,e,e.state);let T=m?Hx(e,t,v):null;s.__fetching=!0,Yt(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Pt(e,"onFetchStart"),Bt(t,e,"onFetchStart");let R=r?.analyze?.emitNetwork,L=R?typeof performance<"u"?performance.now():Date.now():0;R&&R({phase:"start",mode:"mutation",from:a,method:i});try{if(u!==!1&&o.auth!==!1&&o.getSession){let J=await o.getSession();if(u===!0&&!J){T!==void 0&&ha(e,t);let dt={message:"Not authenticated"};Pt(e,"onFetchError",dt),Bt(t,e,"onFetchError",dt);return}}let P=o[i];if(!C(P))return;let V={from:a,data:v,headers:d,baseUrl:h};t.params&&(V.params=Tp(t.params,e,r));let z=Fo(e,r);z&&(V.headers={...V.headers,"Accept-Language":z});let U=Ap(t),M=await Ep(()=>P(V),U),{data:D,error:q}=M||{};if(q){T!==void 0&&ha(e,t),Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:q,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",q),C(x)&&x(q,v,e),C(S)&&S(null,q,v,e),R&&R({phase:"error",mode:"mutation",from:a,method:i,error:q.message||String(q),durationMs:(typeof performance<"u"?performance.now():Date.now())-L});return}if(delete s.__optimisticSnapshot,D!==void 0){let J=f?{[f]:D}:D;e.state?.update&&e.state.update(J,{preventFetch:!0})}if(Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Pt(e,"onFetchComplete",D),Bt(t,e,"onFetchComplete",D),C(b)&&b(D,v,e),C(S)&&S(D,null,v,e),R&&R({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-L}),g){let J=E(g)?g:[g];for(let dt of J)if(dt===!0||dt==="*")for(let[qn]of yt)qn.startsWith(a+":")&&cn(qn);else cn(dt)}}catch(P){T!==void 0&&ha(e,t),Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:P,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",P),Bt(t,e,"onFetchError",P),C(x)&&x(P,v,e),C(S)&&S(null,P,v,e),R&&R({phase:"error",mode:"mutation",from:a,method:i,error:P.message||String(P),durationMs:(typeof performance<"u"?performance.now():Date.now())-L})}finally{s.__fetching=!1}},un=(t,e,r,n)=>{if(!t||!n?.fetch)return;let s=Y(t,e);if(!s)return;let i=E(s)?s.map(c=>wp(Y(c,e),e)).filter(Boolean):[wp(s,e)].filter(Boolean);for(let c of i){let l=c.method==="insert"||c.method==="update"||c.method==="upsert"||c.method==="delete",f=l?qx:me;c.on==="create"?f(c,e,n):Promise.resolve().then(()=>{Ux({...c,__runner:f},e,n)}),!l&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&Wx(c,e,n)}let a=e.__ref;a.refetch=c=>{for(let l of i)me(l,e,n,{force:!0,...c})},a.fetchNextPage=()=>{let c=i[0];if(!c||!c.infinite)return;let l=a.__nextPageParam;if(l==null)return;let f={...c,cursor:l};me(f,e,n,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let c=i[0];if(!c||!c.infinite)return;let l=a.__prevPageParam;if(l==null)return;let f={...c,cursor:l};me(f,e,n,{direction:"previous",force:!0})}},Gx={invalidateQueries:t=>{if(!t){cn();return}if(w(t))for(let[e]of yt)(e.startsWith(t)||e.includes(t))&&cn(e);else if(E(t)){let e=t.join(":");for(let[r]of yt)r.includes(e)&&cn(r)}},removeQueries:t=>{if(!t){Po();return}if(w(t))for(let[e]of yt)(e.startsWith(t)||e.includes(t))&&Po(e)},getQueryData:t=>fn(t)?.data??void 0,setQueryData:(t,e)=>{let r=fn(t),n=C(e)?e(r?.data):e;an(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let n=await ma(r,e);if(!n)return;let o=t.cache?.key||`${t.from}:${t.method||"select"}:${JSON.stringify(t.params||"")}`,s=n[t.method||"select"];if(!C(s))return;let i=await s({from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single});if(i?.data!==void 0&&!i?.error){let a=an(o,i.data,null);a.gcTime=ga(t.cache)?.gcTime||3e5}return i},getCache:()=>yt,clear:()=>Po(),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[r]of yt)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(e)||Po(r))}},ya={name:"fetch",create(t){let e=t.fetch;e&&(t.parent||on.clear(),un(e,t,t.state,t.context))}},Kx=un});function Lo(t){let e=this,{__ref:r}=e,n=[].concat(t),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",e.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function Rp(t){let e=this,{parent:r}=e;if(C(t))return r.state&&t(r,r.state,r.context)?r:r.parent?r.lookup(t):void 0;if(e[t])return e[t];for(;r.param!==t;){if(r[t])return r[t];if(r=r.parent,!r)return}return r}function Pp(t){let e=this,{__ref:r}=e,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=e[s];if(s===t)return i;if(C(t)){let c=t(i,i.state,i.context);if(i.state&&c)return i}let a=i?.lookdown?.(t);if(a)return a}}function Ip(t,e=[]){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===t)e.push(a);else if(C(t)){let c=t(a,a.state,a.context);a.state&&c&&e.push(a)}a?.lookdownAll?.(t,e)}return e.length?e:void 0}}function xa(t={}){let e=this;if(e.node?.style){for(let r in t){let n=t[r],o=e[r];if(_(n)&&o)xa.call(o,n);else if(n!=null){let s=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(n).replace(/\s*!important\s*$/,"");e.node.style.setProperty(s,i,"important")}}return e}}function $p(t){let e=this;if(Be("beforeRemove",e,t)===!1)return e;C(e.node.remove)?e.node.remove():Ne()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=Qn(e.parent.__ref.__children,e.key)),Be("remove",e,t)}function Fp(t){return this[t]}function Dp(t,e){let r=this;if(t)return r.update(t,e),r}function Lp(t){return t?this.__ref&&this.__ref[t]:this.__ref}function Mo(){return this.getRef("__children").map(e=>this[e])}function No(){return this.getRef().path}function Bo(t){let e=null,r=n=>n.__element&&n.root?.isRootState;if(!this)e=Op();else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=C(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=Op()),t?e?.[t]:e}function Vo(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function zo(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function Uo(t){let e=this.getRoot()?.context;return t?e[t]:e}function Wo(t){let e=this.context;return t?e[t]:e}function Sa(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||Fe.has(r)&&!ro.has(r)||e.push(r);return e}function _a(t=[]){let e=this,r={},n=Sa.call(e),o=n.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||o&&a==="content")continue;let c=e[a];if(a==="state"){if(e.__ref&&!e.__ref.__hasRootState)continue;let l=C(c&&c.parse)?c.parse():c;r[a]=C(l)?l:JSON.parse(JSON.stringify(l||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:l,update:f,...p}=e[a];r[a]=p}else vt(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function Do(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let n=_a.call(r,t),o=t.length?new Set(t):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=>N(a)?Do.call(a,t,e):a):N(i)&&(n[s]=Do.call(i,t,e))}return n}function dn(...t){if(ye!=="test"&&ye!=="development")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(n=>console.log(`%c${n}:
17
+ `,"font-weight: bold",e[n])):(console.log(r.path),e.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",e[o]))),console.log(e),console.groupEnd(e.key),e}function jp(...t){(ye==="test"||ye==="development")&&console.log(...t)}function Ho(...t){(ye==="test"||ye==="development")&&console.warn(...t)}function lr(...t){if(ye==="test"||ye==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&dn.call(this),new Error(...t)}}function qo(){let t=this,{key:e,parent:r}=t,{__children:n}=r.__ref,o=n.indexOf(e),s=n[o+1];return r[s]}function Go(t){let e=t||this,{key:r,parent:n}=e,{__children:o}=n.__ref;if(!o)return;let s=o.indexOf(r);return n[o[s-1]]}function Ko(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let r=e.data.varCaches,n={},o;for(let s in t)t[s]!==r[s]&&(o=!0,n[s]=t[s]);return{changed:s=>{if(!o)return;let i=s(n,Q(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 Bp(t,...e){let r=this.context,n=r.utils?.[t]||r.functions?.[t]||r.methods?.[t]||r.snippets?.[t];if(n)try{let o=n.call(this,...e);return o&&typeof o.then=="function"&&o.catch(s=>{lr.call(this,s)}),o}catch(o){if(lr.call(this,o),r?.strictMode)throw o}}async function Xo(){let t=this,e=t.context?.fetch;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(ze(),pn));await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(ze(),pn));await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=Promise.resolve().then(()=>(ze(),pn)).then(({resolveDb:o})=>o(e));e.__resolving=r;let n=await r;if(e.__resolved=n,t.context.fetch=n,delete e.__resolving,n.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(ze(),pn));await o(n,t.context)}return n}function Yo(t){let e=this,r=t||Oo.useStateQuery||e.context?.useStateQuery;if(!r)return null;let n={};if(ba(e,n),r===!0)return n;let o=rS[r];return o?o(n):n}function zp(t,e){return!!(Zr.has(t)||e?.context?.methods?.[t])}var ye,Mp,jo,Op,Np,ba,Xx,Vp,Yx,Zx,Jx,Qx,tS,eS,rS,Up=I(()=>{"use strict";la();or();ft();ie();Ti();er();fa();ye="production";Mp=null,jo=t=>{Mp=t||null},Op=()=>Mp||null;Np=(t,e,r,n)=>Object.defineProperty(t,e,{get:r,set:n});ba=(t,e)=>{let r=t.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&Xx(e,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&ba(c,e)}let s=r.contentElementKey||"content",i=t[s];i&&i.__ref&&ba(i,e)},Xx=(t,e)=>{let n=e.replaceAll("../","").replaceAll("~/","").split("/"),o=t;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])}},Vp=(t,e=0)=>{let r=" ".repeat(e),n=Object.entries(t);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {
18
+ ${Vp(i,e+1)}
19
19
  ${r}}`).join(`
20
- `):""},Gx=t=>`{
21
- ${jp(t,1)}
22
- }`,Kx=t=>{let e={fields:{},include:[]},r=(o,n)=>{let s=[];for(let i in o)if(o[i]===!0)s.push(i);else{let a=n?`${n}.${i}`:i;e.include.push(a),r(o[i],a)}s.length&&(e.fields[n||"_root"]=s)};return r(t,""),e},Yx=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let l=e(s[c]),f=[];l.select&&f.push(`$select=${l.select}`),l.expand&&f.push(`$expand=${l.expand}`),a.push(f.length?`${c}(${f.join(";")})`:c)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:r,expand:o}=e(t),n=[];return r&&n.push(`$select=${r}`),o&&n.push(`$expand=${o}`),n.join("&")},Xx=(t,e)=>{let r=[],o=[],n=new Set,s=(f,p,u)=>{n.add(p),u&&o.push(`LEFT JOIN ${p} ON ${p}.${u}_id = ${u}.id`);for(let d in f)f[d]===!0?r.push(`${p}.${d}`):s(f[d],d,p)},i=Object.keys(t);i.length===1&&t[i[0]]!==!0?s(t[i[0]],i[0],null):s(t,"_root",null);let a=[...n][0]||"_root",c=r.length?r.join(", "):"*",l=o.length?`
23
- `+o.join(`
20
+ `):""},Yx=t=>`{
21
+ ${Vp(t,1)}
22
+ }`,Zx=t=>{let e={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;e.include.push(a),r(n[i],a)}s.length&&(e.fields[o||"_root"]=s)};return r(t,""),e},Jx=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let l=e(s[c]),f=[];l.select&&f.push(`$select=${l.select}`),l.expand&&f.push(`$expand=${l.expand}`),a.push(f.length?`${c}(${f.join(";")})`:c)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:r,expand:n}=e(t),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join("&")},Qx=(t,e)=>{let r=[],n=[],o=new Set,s=(f,p,u)=>{o.add(p),u&&n.push(`LEFT JOIN ${p} ON ${p}.${u}_id = ${u}.id`);for(let d in f)f[d]===!0?r.push(`${p}.${d}`):s(f[d],d,p)},i=Object.keys(t);i.length===1&&t[i[0]]!==!0?s(t[i[0]],i[0],null):s(t,"_root",null);let a=[...o][0]||"_root",c=r.length?r.join(", "):"*",l=n.length?`
23
+ `+n.join(`
24
24
  `):"";return`SELECT ${c}
25
- FROM ${a}${l}`},Zx=t=>{let e=[],r=(o,n)=>{for(let s in o){let i=n?`${n}/${s}`:s;o[s]===!0?e.push(i):r(o[s],i)}};return r(t,""),e},Jx=t=>{let e=o=>{let n=[];for(let s in o)o[s]===!0?n.push(s):n.push(`${s}(${e(o[s])})`);return n.join(", ")},r=Object.keys(t);return r.length===1&&t[r[0]]!==!0?{from:r[0],select:e(t[r[0]])}:{from:null,select:e(t)}},Qx={graphql:Gx,"json-api":Kx,odata:Yx,sql:Xx,supabase:Jx,paths:Zx}});var tS,zp,Up=I(()=>{"use strict";pn();tS={snapshotId:fn},zp=(t,e)=>{let r=t.__ref,{currentSnapshot:o,calleeElement:n}=e;if(!n||n===t){let a=tS.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=n.__ref.__currentSnapshot;return o<i?[i,n,!0]:[i,n]}});var wa,Wp,Hp=I(()=>{wa=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),Wp=t=>typeof t=="string"&&wa.has(t)});async function qp(t){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(e){console.warn(`Error attempting to enable fullscreen mode: ${e.message} (${e.name})`)}}var Gp=I(()=>{"use strict"});function eS(t){return/^[0-9.]+$/.test(t)&&t!==""}var Zt,Ue,ho,Jt,Kp,Yp=I(()=>{"use strict";Zt={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e)=>`${Zt.skypack.url}/${t}${e!=="latest"?`@${e}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e)=>`${Zt.esmsh.url}/${t}${e!=="latest"?`@${e}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e)=>`${Zt.unpkg.url}/${t}${e!=="latest"?`@${e}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e)=>`${Zt.jsdelivr.url}/${t}${e!=="latest"?`@${e}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e)=>t.split("/").length>2||!eS(e)?`${Zt.symbols.url}/${t}`:`${Zt.symbols.url}/${t}/${e}.js`}},Ue={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},ho=(t={})=>{let{packageManager:e}=t;return Ue[e]||null},Jt=(t,e="latest",r="esmsh")=>(Zt[r]||Zt.esmsh).formatUrl(t,e),Kp=(t,e="skypack")=>{let r=t.dependencies||{},o=Object.keys(r);if(!o.length)return"";let n={};for(let s of o){let i=r[s]||"latest";n[s]=Jt(s,i,e)}return`<script type="importmap">{
26
- "imports": ${JSON.stringify(n,null,2)}
27
- }<\/script>`}});var Xp,Zp=I(()=>{"use strict";Xp=t=>{if(!t)return"";let e=new Date(t),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),o=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${o}, ${r}`}});var Jp,Qp=I(()=>{"use strict";Jp=(t,e)=>{let r=setTimeout(()=>{let{props:o}=t;if(!e.clientHeight){let{node:{clientHeight:n}}=t;n&&(e.clientHeight=n)}if(e.active){if(o.height==="auto")return;t.update({height:e.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let n=setTimeout(()=>{t.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(n)},450)}else t.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}});var td,ed=I(()=>{"use strict";td=function(e){let r=[0,1];for(let o=2;o<=e;o++)r[o]=r[o-1]+r[o-2];return r[e]}});var rd,od=I(()=>{"use strict";rd=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function go(t,e={}){let{window:r=globalThis}=e,{document:o=r.document}=e;return new Promise((n,s)=>{let i=o.querySelector(`script[src="${t}"]`);if(i)return n(i);let a=o.createElement("script");a.src=t,a.async=e.async===!0,a.type=e.type||"text/javascript",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,n(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${t}`))},o.head.appendChild(a)})}async function ld(t,e={}){let{window:r=globalThis}=e,{document:o=r.document}=e;return new Promise((n,s)=>{let i=o.querySelector(`link[href="${t}"]`);if(i)return n(i);let a=o.createElement("link");a.href=t,a.rel=e.rel||"stylesheet",a.type="text/css",a.media=e.media||"all",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,n(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${t}`))},o.head.appendChild(a)})}var nd,sd,id,ad,cd,fd=I(()=>{"use strict";nd=(t,e=!1,r=document,o="text/javascript")=>new Promise((n,s)=>{try{let i=r.createElement("script");i.type=o,i.async=e,i.src=t,i.addEventListener("load",a=>{n({status:!0})}),i.addEventListener("error",a=>{s(new Error({status:!1,message:`Failed to load the script ${t}`}))}),r.body.appendChild(i)}catch(i){s(i)}}),sd=(t,e=document,r="text/javascript")=>new Promise((o,n)=>{let s=e.createElement("script");s.type=r,s.src=t;let i=e.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;",e.body.appendChild(i),s.onload=()=>{console.log(`Successfully loaded: ${t}`),e.body.removeChild(i),o()},s.onerror=()=>{e.body.removeChild(i),n(new Error(`Failed to load: ${t}`))},e.body.appendChild(s)}),id=(t,e=document,r,o="text/javascript")=>{let n=new window.XMLHttpRequest;if(n.open("GET",t,!1),n.send(),n.status===200){let s=e.createElement("script");s.type=o,s.text=n.responseText,e.body.appendChild(s),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${t}`)},ad=(t,e=!1,r=document,o="text/javascript")=>new Promise((n,s)=>{try{let i=r.createElement("link");i.rel="stylesheet",i.href=t,i.addEventListener("load",a=>{n({status:!0})}),r.head.appendChild(i)}catch(i){s(i)}}),cd=(t,e=!1,r=document,o="text/javascript",n="smbls-script")=>{try{let s=r.createElement("script");s.type=o,s.async=e,s.id=n,s.innerHTML=t,r.body.appendChild(s)}catch(s){console.warn(s)}}});function nS(t,e){if(!e||typeof e!="object")return t;let r=n=>{if(!oS(n))return n;let s=e[n];return s?.src?s.src:n},o={...t};for(let[n,s]of Object.entries(o))typeof s=="string"?o[n]=r(s):Array.isArray(s)&&(o[n]=s.map(i=>typeof i=="string"?r(i):i));return o}function Zn(t,e){if(!t||!e)return;let r=e.split("."),o=t;for(let n of r){if(o==null||typeof o!="object")return;o=o[n]}return o}function sS(t,e,r){let n=(e.config||e.settings||{}).polyglot||e.polyglot,s=r?.lang||n?.defaultLang||"en",a=(n?.translations||{})[s]||{},c=r?.state||{},l={...t};for(let[f,p]of Object.entries(l))typeof p!="string"||!p.includes("{{")||(l[f]=p.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(u,d,h)=>{let g=d.trim();if(h==="polyglot")return a[g]??Zn(a,g)??u;if(h==="getLocalStateLang")return Zn(c,g+s)??u;let m=Zn(c,g);return m!==void 0?m:a[g]??Zn(a,g)??u}));return l}function ud(t){let e={...t};for(let[r,o]of Object.entries(e))if(typeof o=="function"){let n=o.toString(),s=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){e[r]=`{{ ${i[1]} | polyglot }}`;continue}let a=n.match(/s\.(\w+(?:\.\w+)+)/);if(a){e[r]=`{{ ${a[1]} }}`;continue}delete e[r]}else if(typeof o=="string"){let n=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(n){e[r]=`{{ ${n[1]} | getLocalStateLang }}`;continue}let s=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | polyglot }}`;continue}if(o.includes("=>")&&o.includes("s.")){let i=o.match(/s\.(\w+(?:\.\w+)+)/);if(i){e[r]=`{{ ${i[1]} }}`;continue}}}return e}function dd(t,e,r,{isProduction:o=!1,channel:n="production"}={}){let s=t.pages?.[e],i=S(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=ud(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},p=ud(f),u={};if(t.integrations?.seo?u={...t.integrations.seo,...p,...c}:Object.keys(p).length?u={...p,...c}:u={...c},!u.title){let g=t.name||t.key;g?o?u.title=g:n==="development"?u.title=`${g} / dev:symbo.ls`:n==="staging"?u.title=`${g} / staging:symbo.ls`:u.title=`${g} / symbo.ls`:u.title="Symbols demo"}u=sS(u,t,r),u.title&&(l.has("title")||!u["og:title"])&&(l.has("og:title")||(u["og:title"]=u.title)),u.description&&(l.has("description")||!u["og:description"])&&(l.has("og:description")||(u["og:description"]=u.description)),u.title&&!u["twitter:title"]&&(u["twitter:title"]=u.title),u.description&&!u["twitter:description"]&&(u["twitter:description"]=u.description);let d=r?.actualPathname||e;if(u["og:url"]||u.url){let g=(u["og:url"]||u.url||"").replace(/\/$/,"");if(g&&d&&d!=="/"){let m=d.startsWith("/")?d:"/"+d;u["og:url"]=g+m}}u=nS(u,t.files);let h=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[g,m]of Object.entries(u))if(typeof m=="string"&&m.includes("{{")){let y=m.replace(/\{\{[^}]*\}\}/g,"").trim();y?u[g]=y:g==="title"?u[g]=h:delete u[g]}return u}var Ot,rS,pd,oS,hd=I(()=>{"use strict";ct();Ot=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,r=>e[r])},rS=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}="${Ot(r)}"`).join(" "),pd=(t,e)=>(e||(t={...t,robots:"noindex"}),Object.entries(t).reduce((o,[n,s])=>{if(!s&&s!==0&&s!==!1)return o;if(n==="title")return o.push(`<title>${Ot(s)}</title>`),o;if(n==="canonical")return o.push(`<link rel="canonical" href="${Ot(s)}">`),o;if(n==="manifest")return o.push(`<link rel="manifest" href="${Ot(s)}">`),o;if(n==="favicon"||n==="favicons"||n==="icon"||n==="icons")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="string")o.push(`<link rel="icon" href="${Ot(f)}">`);else if(typeof f=="object"){let p=rS(f);/rel=/.test(p)?o.push(`<link ${p}>`):o.push(`<link rel="icon" ${p}>`)}}),o;if(n==="alternate")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="object"){let p=Object.entries(f).filter(([u,d])=>d!==void 0).map(([u,d])=>`${u}="${Ot(d)}"`).join(" ");o.push(`<link rel="alternate" ${p}>`)}}),o;let i=(l,f,p="name")=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")o.push(`<meta ${p}="${Ot(l)}" content="${Ot(f)}">`);else if(Array.isArray(f))f.forEach(u=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")o.push(`<meta ${p}="${Ot(l)}" content="${Ot(u)}">`);else if(typeof u=="object"){let d=Object.entries(u).filter(([h,g])=>g!==void 0).map(([h,g])=>`${h}="${Ot(g)}"`).join(" ");o.push(`<meta ${d}>`)}});else if(typeof f=="object"){let u=Object.entries(f).filter(([d,h])=>h!==void 0).map(([d,h])=>`${d}="${Ot(h)}"`).join(" ");o.push(`<meta ${u}>`)}};if(n.startsWith("http-equiv:")){let l=n.replace("http-equiv:","");return i(l,s,"http-equiv"),o}if(n.startsWith("itemprop:")){let l=n.replace("itemprop:","");return i(l,s,"itemprop"),o}let c=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(l=>n.startsWith(l));if(c){let l=n.replace(c,"");return i(`${c.replace(":","")}:${l}`,s,c==="twitter:"||c==="DC:"||c==="DCTERMS:"?"name":"property"),o}if(n.startsWith("apple:")||n.startsWith("msapplication:")){let l=n.startsWith("apple:")?"apple-":"msapplication-",f=n.replace(/^apple:|^msapplication:/,"");return i(`${l}${f}`,s,"name"),o}return i(n,s),o},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">']).join(`
28
- `)),oS=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http")});var ka,gd,md=I(()=>{"use strict";ct();ka=(t,e)=>(E(e)?e:Object.values(e)).reduce((r,o)=>Math.abs(o-t)<Math.abs(r-t)?o:r),gd=(t,e)=>(t=parseFloat(t),S(e)&&(e=Object.values(e)),ka(t,e))});function mo(t){let e=String(t||"").trim();if(!e)return{owner:yd,key:"",full:""};let r=null,o=e;if(e.includes("/")){let s=e.indexOf("/");r=e.slice(0,s),o=e.slice(s+1)}o=o.replace(/\.symbo\.ls$/iu,""),r||(r=yd);let n=o?`${r}/${o}`:"";return{owner:r,key:o,full:n}}async function va(t,e={}){if((e.provider||"kv")==="api")return bd(t,e);let o=await cS(t,e);return o||bd(t,e)}async function cS(t,e={}){let r=e.kvBaseUrl||iS,o=e.env||"production",n=`${r}/kv/${encodeURIComponent(t)}?env=${o}`;try{let s=await fetch(n,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function bd(t,e={}){let r=e.apiBaseUrl||aS,{key:o}=mo(t);try{let n=`${r}/core/projects/libraries/available?search=${encodeURIComponent(o)}&limit=10`,s=await fetch(n,{method:"GET"});if(!s.ok)return null;let i=await s.json(),c=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(d=>{let{key:h}=mo(d?.key);return h.toLowerCase()===o.toLowerCase()});if(!c?.id&&!c?._id)return null;let l=c.id||c._id,f=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,p=await fetch(f,{method:"GET"});if(!p.ok)return null;let u=await p.json();return u?.data||u||null}catch{return null}}async function xd(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async o=>{if(S(o))return o;if(_(o)){let{full:n}=mo(o);if(!n)return null;try{let s=await va(n,e);return s||console.warn(`[smbls] Shared library "${n}" not found`),s}catch(s){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,s.message),null}}return null}))).filter(Boolean)}var yd,iS,aS,Jn,Qn,Sd=I(()=>{"use strict";ct();yd="system",iS="https://smbls-kv.nika-980.workers.dev",aS="https://api.symbols.app";Jn=(t,e)=>{for(let r in e)r in t?S(t[r])&&S(e[r])&&Jn(t[r],e[r]):t[r]=e[r]},Qn=(t,e)=>{if(!(!e||!e.length))for(let r=0;r<e.length;r++){let o=e[r];if(S(o)){for(let n in o)if(Object.prototype.hasOwnProperty.call(o,n))if(S(o[n])&&S(t[n]))if(n==="designSystem")Jn(t[n],o[n]);else for(let s in o[n])s in t[n]||(t[n][s]=o[n][s]);else n in t||(t[n]=o[n])}}}});var _d,wd,kd,ts,vd,es,Cd,fr,Ad=I(()=>{"use strict";ct();_d=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},wd=async t=>{try{let e=new Blob([t],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":e});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(e){console.error("Failed to copy JavaScript code: ",e)}},kd=t=>t.replace(/[^a-zA-Z0-9_]/g,""),ts=t=>(typeof t!="string"&&(t=String(t||"")),t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,r){return r===0?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")),vd=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),es=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Cd=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},fr=t=>{if(E(t))return t;if(_(t))return t.split(" ");if(S(t))return Object.values(t);if(se(t))return[t]}});var Ed,Td=I(()=>{"use strict";Ed=()=>{let t=document.styleSheets[0],e="";if(t)try{let r=t.cssRules||t.rules;for(let o=0;o<r.length;o++)e+=r[o].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 e}});var Ct,yo,rs,os,Od=I(()=>{"use strict";Ct=t=>{let e=t&&t.src;if(!e||typeof e!="string")return null;let r=t.context;if(!r)return null;let o=r.assets&&r.assets[e]||r.files&&r.files[e];return o?typeof o=="string"?{src:o,type:null,variants:null}:typeof o=="object"&&typeof o.src=="string"?o:null:null},yo=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return"";let r=t.some(n=>typeof n.width=="number"),o=[];for(let n of t)r&&typeof n.width=="number"?o.push(`${n.src} ${n.width}w`):r||(n.scale===1&&e?o.push(n.src):n.scale&&n.scale!==1&&o.push(`${n.src} ${n.scale}x`));return o.join(", ")},rs=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(r=>r.format===t.type);return yo(e,{keepOneX:!1})},os=(t,e)=>{if(!t||typeof t!="object"||typeof t.src!="string")return[];if(!Array.isArray(t.variants)||!t.variants.length)return[{tag:"img",attr:{src:t.src,alt:e||""}}];let r=new Map;for(let a of t.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let o=[];for(let[a,c]of r)a!==t.type&&o.push({tag:"source",attr:{type:a,srcset:yo(c,{keepOneX:!0})}});let n=r.get(t.type)||[],s=yo(n,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...o,{tag:"img",attr:i}]}});var Rd={};$(Rd,{CDN_PROVIDERS:()=>Zt,DOMQL_EVENTS:()=>Bf,DOMQ_PROPERTIES:()=>Fe,ENV:()=>nu,HTML_TAGS:()=>eo,METHODS:()=>Zr,METHODS_EXL:()=>on,NODE_ENV:()=>Kt,OPTIONS:()=>On,PACKAGE_MANAGER_TO_CDN:()=>Ue,PARSED_DOMQ_PROPERTIES:()=>rn,PROPS_METHODS:()=>Le,STATE_METHODS:()=>De,STATE_PROPERTIES:()=>jf,SVG_TAGS:()=>Cu,TYPES:()=>Zo,UNIVERSAL_RESERVED_KEYS:()=>wa,addCaching:()=>ea,addContext:()=>ta,addExtend:()=>Iu,addExtends:()=>vt,addItemAfterEveryElement:()=>Af,addProtoToArray:()=>tn,addRef:()=>Zi,applyDependentState:()=>tp,applyEvent:()=>aa,applyEventUpdate:()=>ca,applyExtends:()=>Fu,applyProps:()=>kn,arrayContainsOtherArray:()=>xf,arraysEqual:()=>Tf,arrayzeValue:()=>fr,buildImgSrcset:()=>rs,buildSourcesAndImg:()=>os,cache:()=>ap,call:()=>Np,captureSnapshot:()=>zp,checkForStateTypes:()=>Xu,checkIfInherits:()=>ia,checkIfStringIsInArray:()=>Pf,clone:()=>Wf,cloneAndMergeArrayExtend:()=>hn,cloneFunction:()=>pu,concatAddExtends:()=>Tu,copyJavaScriptToClipboard:()=>wd,copyStringToClipboard:()=>_d,createBasedOnType:()=>Xi,createElement:()=>Ku,createElementExtends:()=>Di,createExtends:()=>mn,createExtendsFromKeys:()=>ro,createExtendsStack:()=>ji,createIfConditionFlag:()=>du,createInheritedState:()=>Zu,createKey:()=>un,createNestedObject:()=>Zf,createNestedObjectByKeyPath:()=>Qu,createObjectWithoutPrototype:()=>Ai,createParent:()=>Ji,createPath:()=>Qi,createProps:()=>vn,createPropsStack:()=>Gi,createRoot:()=>Gu,createScope:()=>op,createSnapshotId:()=>fn,customDecodeURIComponent:()=>Nf,customEncodeURIComponent:()=>Mf,cutArrayAfterValue:()=>vf,cutArrayBeforeValue:()=>kf,debounce:()=>dn,debounceOnContext:()=>lu,decodeNewlines:()=>Lf,deepClone:()=>Y,deepContains:()=>Yf,deepDefaults:()=>Jn,deepDestringifyFunctions:()=>Nt,deepExtend:()=>Fi,deepMerge:()=>W,deepMergeExtends:()=>ae,deepStringifyFunctions:()=>nn,defineSetter:()=>Lp,destringifyGlobalScope:()=>an,detectHeightOnInit:()=>Jp,detectInfiniteLoop:()=>eu,document:()=>q,encodeNewlines:()=>Df,error:()=>lr,excludeKeysFromObject:()=>ou,exec:()=>G,extendCachedRegistry:()=>Ou,extendStackRegistry:()=>yn,extractArrayExtend:()=>xn,fetchLibraryData:()=>va,fibonacciNumberByIndex:()=>td,filterArrays:()=>Of,filterArraysFast:()=>Rf,finalizeExtends:()=>Bi,findClosestNumber:()=>ka,findClosestNumberInFactory:()=>gd,findInheritedState:()=>sa,findKeyPosition:()=>$f,flattenExtend:()=>oo,formatDate:()=>Xp,generateHash:()=>Pi,generateKey:()=>ln,generateMetaTags:()=>pd,get:()=>Ip,getCDNUrl:()=>Jt,getCapitalCaseKeys:()=>Du,getCdnProviderFromConfig:()=>ho,getChildStateInKey:()=>na,getChildren:()=>Mn,getContext:()=>Wn,getCookie:()=>Su,getDB:()=>Yn,getEmotionStylesheet:()=>Ed,getExtendsInElement:()=>$u,getExtendsStack:()=>gn,getExtendsStackRegistry:()=>$i,getFrequencyInArray:()=>Sf,getHashedExtend:()=>bn,getImportMapScript:()=>Kp,getInObjectByPath:()=>tu,getLocalStorage:()=>wu,getNev:()=>cu,getPageMetadata:()=>dd,getParentStateInKey:()=>oa,getPath:()=>Nn,getQuery:()=>Xn,getRef:()=>Fp,getRoot:()=>Vn,getRootContext:()=>Un,getRootData:()=>zn,getRootState:()=>Bn,getRootStateInKey:()=>ra,getSpreadChildren:()=>Lu,global:()=>mf,hasFunction:()=>Jr,hasHandlerPlugin:()=>Qr,hasOwnProperty:()=>qf,inheritChildExtends:()=>Mi,inheritChildPropsExtends:()=>Li,inheritParentProps:()=>Cn,inheritRecursiveChildExtends:()=>Ni,initProps:()=>Wu,is:()=>wt,isArray:()=>E,isBoolean:()=>_i,isContextComponent:()=>Mu,isCyclic:()=>ru,isDOMNode:()=>St,isDate:()=>ki,isDefined:()=>_t,isDevelopment:()=>je,isEmpty:()=>vi,isEmptyObject:()=>Gf,isEqualDeep:()=>Ci,isFunction:()=>C,isHtmlElement:()=>Xo,isLocal:()=>au,isMethod:()=>Bp,isMobile:()=>bu,isNode:()=>he,isNot:()=>bf,isNotProduction:()=>ir,isNull:()=>wi,isNumber:()=>se,isObject:()=>S,isObjectLike:()=>D,isPhoto:()=>rd,isProduction:()=>Ne,isStaging:()=>iu,isState:()=>Ju,isString:()=>_,isStringFunction:()=>uu,isTest:()=>Ei,isTesting:()=>su,isUndefined:()=>ut,isUniversallyReservedKey:()=>Wp,isValidHtmlTag:()=>Au,joinArrays:()=>Gr,jointStacks:()=>Pu,keys:()=>Sa,loadCssFile:()=>ad,loadJavascript:()=>cd,loadJavascriptFile:()=>nd,loadJavascriptFileEmbedSync:()=>id,loadJavascriptFileSync:()=>sd,loadRemoteCSS:()=>ld,loadRemoteScript:()=>go,log:()=>Mp,logGroupIf:()=>mu,logIf:()=>gu,lookdown:()=>Op,lookdownAll:()=>Rp,lookup:()=>Tp,lowercaseFirstLetter:()=>or,makeObjectWithoutPrototype:()=>Kf,map:()=>zf,mapStringsWithContextComponents:()=>Sn,matchesComponentNaming:()=>ce,memoize:()=>fu,merge:()=>Q,mergeSharedLibraries:()=>Qn,nextElement:()=>qn,normalizeLibraryKey:()=>mo,objectToString:()=>sn,objectizeStringProperty:()=>wn,overwrite:()=>cn,overwriteDeep:()=>kt,overwriteShallow:()=>sr,overwriteState:()=>ep,parse:()=>_a,parseDeep:()=>Dn,pickupElementFromProps:()=>Wi,pickupPropsFromElement:()=>Ui,previousElement:()=>Gn,propExists:()=>Uu,propertizeElement:()=>Hi,propertizeUpdate:()=>zu,remove:()=>Pp,removeChars:()=>kd,removeCookie:()=>_u,removeDuplicateProps:()=>En,removeDuplicatesInArray:()=>Kr,removeFromArray:()=>_f,removeFromObject:()=>Xf,removeNestedKeyByPath:()=>Jf,removeValueFromArray:()=>Qo,removeValueFromArrayAll:()=>Cf,reorderArrayByValues:()=>Ef,replaceLiteralsWithObjectFields:()=>rr,replaceOctalEscapeSequences:()=>Ff,resolveAsset:()=>Ct,resolveHandler:()=>to,resolveSharedLibraries:()=>xd,returnValueAsText:()=>Yi,runPluginHook:()=>Yt,self:()=>yf,setActiveRootState:()=>jn,setCookie:()=>xu,setHashedExtend:()=>Ii,setInObjectByPath:()=>Qf,setLocalStorage:()=>ku,setNodeStyles:()=>xa,setProps:()=>$p,setPropsPrototype:()=>An,spotByPath:()=>Ln,srcsetFor:()=>yo,stringIncludesAny:()=>en,stringToObject:()=>Hf,swapItemsInArray:()=>wf,syncProps:()=>Tn,toCamelCase:()=>ts,toDashCase:()=>es,toDescriptionCase:()=>Cd,toTitleCase:()=>vd,toggleFullscreen:()=>qp,triggerEventOn:()=>Be,triggerEventOnUpdate:()=>ip,trimStringFromSymbols:()=>If,unstackArrayOfObjects:()=>Jo,update:()=>qi,updateProps:()=>Hu,variables:()=>Kn,verbose:()=>po,warn:()=>Hn,window:()=>k});var T=I(()=>{"use strict";pn();Ti();ct();ie();ar();er();qr();hu();yu();Xr();Hr();vu();Oi();Vi();Ki();_n();Yu();rp();nr();np();Vp();fa();Up();la();Hp();Gp();Yp();Zp();Qp();ed();od();fd();hd();md();Sd();Ad();Td();Od()});var vb=hi((G$,kb)=>{var Lr=1e3,Mr=Lr*60,Nr=Mr*60,Qe=Nr*24,ek=Qe*7,rk=Qe*365.25;kb.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return ok(t);if(r==="number"&&isFinite(t))return e.long?sk(t):nk(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function ok(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),o=(e[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return r*rk;case"weeks":case"week":case"w":return r*ek;case"days":case"day":case"d":return r*Qe;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Nr;case"minutes":case"minute":case"mins":case"min":case"m":return r*Mr;case"seconds":case"second":case"secs":case"sec":case"s":return r*Lr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function nk(t){var e=Math.abs(t);return e>=Qe?Math.round(t/Qe)+"d":e>=Nr?Math.round(t/Nr)+"h":e>=Mr?Math.round(t/Mr)+"m":e>=Lr?Math.round(t/Lr)+"s":t+"ms"}function sk(t){var e=Math.abs(t);return e>=Qe?ii(t,e,Qe,"day"):e>=Nr?ii(t,e,Nr,"hour"):e>=Mr?ii(t,e,Mr,"minute"):e>=Lr?ii(t,e,Lr,"second"):t+" ms"}function ii(t,e,r,o){var n=e>=r*1.5;return Math.round(t/r)+" "+o+(n?"s":"")}});var Ab=hi((K$,Cb)=>{function ik(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=n,r.enabled=a,r.humanize=vb(),r.destroy=l,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let p=0;for(let u=0;u<f.length;u++)p=(p<<5)-p+f.charCodeAt(u),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(f){let p,u=null,d,h;function g(...m){if(!g.enabled)return;let y=g,b=Number(new Date),x=b-(p||b);y.diff=x,y.prev=p,y.curr=b,p=b,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let w=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(O,R)=>{if(O==="%%")return"%";w++;let M=r.formatters[R];if(typeof M=="function"){let P=m[w];O=M.call(y,P),m.splice(w,1),w--}return O}),r.formatArgs.call(y,m),(y.log||r.log).apply(y,m)}return g.namespace=f,g.useColors=r.useColors(),g.color=r.selectColor(f),g.extend=o,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>u!==null?u:(d!==r.namespaces&&(d=r.namespaces,h=r.enabled(f)),h),set:m=>{u=m}}),typeof r.init=="function"&&r.init(g),g}function o(f,p){let u=r(this.namespace+(typeof p>"u"?":":p)+f);return u.log=this.log,u}function n(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let p=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let u of p)u[0]==="-"?r.skips.push(u.slice(1)):r.names.push(u)}function s(f,p){let u=0,d=0,h=-1,g=0;for(;u<f.length;)if(d<p.length&&(p[d]===f[u]||p[d]==="*"))p[d]==="*"?(h=d,g=u,d++):(u++,d++);else if(h!==-1)d=h+1,g++,u=g;else return!1;for(;d<p.length&&p[d]==="*";)d++;return d===p.length}function i(){let f=[...r.names,...r.skips.map(p=>"-"+p)].join(",");return r.enable(""),f}function a(f){for(let p of r.skips)if(s(f,p))return!1;for(let p of r.names)if(s(f,p))return!0;return!1}function c(f){return f instanceof Error?f.stack||f.message:f}function l(){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}Cb.exports=ik});var Eb=hi((xt,ai)=>{xt.formatArgs=ck;xt.save=lk;xt.load=fk;xt.useColors=ak;xt.storage=uk();xt.destroy=(()=>{let t=!1;return()=>{t||(t=!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`."))}})();xt.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 ak(){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 t;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&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function ck(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+ai.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(r++,n==="%c"&&(o=r))}),t.splice(o,0,e)}xt.log=console.debug||console.log||(()=>{});function lk(t){try{t?xt.storage.setItem("debug",t):xt.storage.removeItem("debug")}catch{}}function fk(){let t;try{t=xt.storage.getItem("debug")||xt.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function uk(){try{return localStorage}catch{}}ai.exports=Ab()(xt);var{formatters:pk}=ai.exports;pk.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var bt=null,Go=0,Ko=[],zr=()=>bt,nx=t=>{bt=t};function ne(t){let e=new Set;function r(){return bt&&(e.add(bt),bt._sources.add(s)),t}function o(i){i!==t&&(t=i,gf(e))}function n(){return t}let s={get:r,set:o,peek:n,_subscribers:e,_type:"signal"};return s}function sx(t){let e,r=!0,o=new Set,n={_sources:new Set,_type:"computed",_subscribers:o,_execute(){yi(n);let s=bt;bt=n;try{let i=t();i!==e?(e=i,r=!1,gf(o)):r=!1}finally{bt=s}},_notify(){r=!0,o.size>0&&n._execute()},get(){return bt&&(o.add(bt),bt._sources.add(n)),r&&n._execute(),e},peek(){return r&&n._execute(),e}};return n._execute(),n}var gi=new Set,mi=!1;function at(t,e){let r=e?.depth??0,o={_sources:new Set,_type:"effect",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(o._disposed)return;yi(o);let n=bt;bt=o;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{bt=n}},_notify(){o._disposed||(Go>0?Ko.push(o):hf(o))},dispose(){o._disposed=!0,yi(o)}};return o._execute(),o}function Ie(t){Go++;try{t()}finally{Go--,Go===0&&ax()}}function hf(t){gi.add(t),mi||(mi=!0,queueMicrotask(ix))}function ix(){mi=!1;let t=Array.from(gi).sort((e,r)=>e._depth-r._depth);gi=new Set;for(let e=0;e<t.length;e++){let r=t[e];r._disposed||r._execute()}}function ax(){for(let t=0;t<Ko.length;t++)hf(Ko[t]);Ko.length=0}function gf(t){let e=Array.from(t);for(let r=0;r<e.length;r++)e[r]._notify()}function yi(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var $e=Symbol("store"),Yo=Symbol("signals"),bi=t=>!t||typeof t!="object"||Array.isArray(t)||t[$e]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName;function Mt(t,e,r){r===void 0&&(r=0);let o={},n={},s=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let y in t){if(y==="__proto__"||!Object.prototype.hasOwnProperty.call(t,y))continue;let b=t[y];r<s&&b&&typeof b=="object"&&!bi(b)?(n[y]=b,o[y]=ne(Mt(b,e,r+1))):(n[y]=b,o[y]=ne(b))}let i=new Proxy(n,{get(y,b){if(b===$e)return!0;if(b===Yo)return o;if(b==="__raw")return y;if(b==="update")return a;if(b==="parse")return l;if(b==="clean")return f;if(b==="keys")return p;if(b==="values")return u;if(b==="replace")return d;if(b==="add")return h;if(b==="remove")return g;if(b==="destroy")return m;if(b==="quietUpdate")return c;if(b==="__element")return y.__element;if(b==="parent")return y.parent;if(b==="root")return y.root;if(Object.prototype.hasOwnProperty.call(o,b))return o[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"&&zr()!=null)return o[b]=ne(void 0),o[b].get()},set(y,b,x){return b==="__proto__"?!1:b==="__element"||b==="parent"||b==="root"?(y[b]=x,!0):(Object.prototype.hasOwnProperty.call(o,b)?(y[b]=x,x&&typeof x=="object"&&!bi(x)?o[b].set(Mt(x,e,r+1)):o[b].set(x)):(y[b]=x,x&&typeof x=="object"&&!bi(x)?o[b]=ne(Mt(x,e,r+1)):o[b]=ne(x)),!0)},has(y,b){return b in o||b in y},ownKeys(y){return Object.keys(o)},getOwnPropertyDescriptor(y,b){return b in o?{enumerable:!0,configurable:!0,value:o[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return o[b]&&(o[b].set(void 0),delete o[b]),delete y[b],!0}});function a(y,b){Ie(()=>{for(let w in y)w!=="__proto__"&&(i[w]=y[w])});let x=n.__element;return x&&x.onUpdate&&!b?.quiet&&x.onUpdate(x,i,x.context),i}function c(y){return a(y,{quiet:!0})}function l(y){if(y||(y=new Set),y.has(i))return"[Circular]";y.add(i);let b={};for(let x in o){if(x==="parent"||x==="root"||x.startsWith("__"))continue;let w=o[x].peek();w&&w[$e]?b[x]=w.parse(y):b[x]=w}return b}function f(){return Ie(()=>{for(let y in o)delete i[y]}),i}function p(){return Object.keys(o)}function u(){return Object.keys(o).map(y=>o[y].peek())}function d(y){return Ie(()=>{for(let b in o)b in y||delete i[b];for(let b in y)b!=="__proto__"&&(i[b]=y[b])}),i}function h(y,b){return i[y]=b,i}function g(y){return delete i[y],i}function m(){f(),n.__element=null,n.parent=null}return i}function dt(t){return t&&t[$e]===!0}function cx(t){return t[Yo]}function Si(t,e){let r={},o={};if(t&&typeof t=="object")for(let i in t)o[i]=t[i],r[i]=ne(t[i]);let n=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=e;for(;a;){let c=a[Yo];if(c&&Object.prototype.hasOwnProperty.call(c,i))return c;a=a[$e]?a[xi]:null}return null};return new Proxy(o,{get(i,a){return a===$e?!0:a===Yo?r:a===xi?e:a==="__raw"?i:Object.prototype.hasOwnProperty.call(r,a)?r[a].get():e&&a!=="then"&&a!=="constructor"?e[a]:i[a]},set(i,a,c){let l=n(a);return l?(l===r&&(i[a]=c),l[a].set(c),!0):(i[a]=c,r[a]=ne(c),!0)},has(i,a){if(a in r||a in i)return!0;let c=e;for(;c;){if(a in c)return!0;c=c[$e]?c[xi]:null}return!1},ownKeys(){return Object.keys(r)},getOwnPropertyDescriptor(i,a){return a in r?{enumerable:!0,configurable:!0,value:r[a].peek()}:Object.getOwnPropertyDescriptor(i,a)}})}var xi=Symbol("scope.parent");var gr={};$(gr,{CSS_NATIVE_COLOR_REGEX:()=>le,CSS_UNITS:()=>Wr,applyMediaSequenceVars:()=>hr,applySequenceGlobalVars:()=>Ma,applySequenceVars:()=>Ge,changeLightness:()=>hS,colorStringToRgbaArray:()=>be,convertSvgToSymbol:()=>Na,findHeadingLetter:()=>Yd,findHeadings:()=>La,generateSequence:()=>Bt,generateSequencePosition:()=>ZS,generateSprite:()=>fs,generateSubSequence:()=>Fa,getColorShade:()=>Dd,getDefaultOrFirstKey:()=>bo,getFnPrefixAndValue:()=>qe,getFontFace:()=>yS,getFontFaceEach:()=>xo,getFontFaceEachString:()=>jd,getFontFaceString:()=>Aa,getFontFormat:()=>Md,getRgbTone:()=>pr,getSequenceValue:()=>Da,getSequenceValueBySymbols:()=>Kd,getSequenceValuePropertyPair:()=>we,getSubratio:()=>$a,getSubratioDifference:()=>Ia,hexToRgb:()=>fS,hexToRgbArray:()=>Pd,hexToRgba:()=>pS,hslToRgb:()=>Fd,isCSSVar:()=>rt,isGoogleFontsUrl:()=>ss,isResolvedColor:()=>xe,isScalingUnit:()=>Ur,mixTwoColors:()=>lS,mixTwoRgb:()=>dS,mixTwoRgba:()=>Ld,numToLetterMap:()=>_e,opacify:()=>ns,parseColorToken:()=>We,resolveFileUrl:()=>Qt,returnSubThemeOrDefault:()=>mS,rgbArrayToHex:()=>Id,rgbToHSL:()=>$d,rgbToHex:()=>uS,setCustomFont:()=>Ca,setCustomFontMedia:()=>dr,setFontImport:()=>is,setInCustomFontMedia:()=>Nd,setScalingVar:()=>Pa,setSubScalingVar:()=>qd,setVariables:()=>JS,splitTopLevelCommas:()=>ur});var Ur=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",Wr=["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"];T();var be=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];if(t[0]==="#")return t.length<7&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(t.length>4?t[4]+t[4]:"")),[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16),t.length>7?parseInt(t.substr(7,2),16)/255:1];if(t.indexOf("rgb")===-1&&q&&k){let e=q.body.appendChild(q.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){q.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return q.body.removeChild(e),[0,0,0,0];t=k.getComputedStyle(e).color,q.body.removeChild(e)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(e=>+e)):[0,0,0,0]},lS=(t,e,r=.5)=>(t=be(t),e=be(e),Ld(t,e,r)),fS=(t,e=1)=>{let[r,o,n]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${o},${n})`},Pd=(t,e=1)=>{let[r,o,n]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,o,n]},uS=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),Id=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),pS=(t,e=1)=>{let[r,o,n]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${o},${n},${e})`},dS=(t,e,r=.5)=>{let o=[];for(let n=0;n<3;n++)o[n]=~~(t[n]+(e[n]-t[n])*r);return`rgb(${o})`},hS=(t,e)=>{let[r,o,n]=e,s=Math.max(0,Math.min(100,n+parseFloat(t)));return[r,o,s]},$d=(t,e,r)=>{let o=Math.max(t,e,r),n=o-Math.min(t,e,r),s=1-Math.abs(o+o-n-1),i=n&&(o==t?(e-r)/n:o==e?2+(r-t)/n:4+(t-e)/n);return[60*(i<0?i+6:i),s?n/s:0,(o+o-n)/2]},Fd=(t,e,r,o=e*Math.min(r,1-r),n=(s,i=(s+t/30)%12)=>r-o*Math.max(Math.min(i-3,9-i,1),-1))=>[n(0),n(8),n(4)],Dd=(t,e)=>{let r=parseInt(t,16),o=(r>>16)+e;o>255?o=255:o<0&&(o=0);let n=(r>>8&255)+e;n>255?n=255:n<0&&(n=0);let s=(r&255)+e;return s>255?s=255:s<0&&(s=0),((s|n<<8|o<<16)+16777216).toString(16).slice(1)},Ld=(t,e,r=.5)=>{let o=[];for(let n=0;n<4;n++){let s=n===3?i=>i:Math.round;o[n]=s(t[n]+(e[n]-t[n])*r)}return`rgba(${o})`},ns=(t,e)=>{let r=be(t);if(!r){ir()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},rt=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,le=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,gS=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,We=t=>{if(!_(t))return null;if(le.test(t))return{passthrough:t};if(rt(t))return{cssVar:t};let e=t.match(gS);if(!e)return null;let[,r,o,n]=e,s=o!==void 0?`0.${o}`:void 0,i=n&&n[0]==="="?n.slice(1):n;return{name:r,alpha:s,tone:i}},xe=t=>_(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),ur=t=>{let e=[],r="",o=0;for(let n of t){if(n==="("?o+=1:n===")"&&o>0&&(o-=1),n===","&&o===0){e.push(r),r="";continue}r+=n}return(r.length||!e.length)&&e.push(r),e},pr=(t,e)=>{_(t)&&t.includes("rgb")&&(t=be(t).join(", ")),_(t)&&(t=t.split(",").map(n=>parseFloat(n.trim()))),se(e)&&(e+="");let r=Id(t),o=e.slice(0,1);if(o==="-"||o==="+"){let n=Dd(r,parseFloat(e));return Pd(n).join(", ")}else{let[n,s,i]=t,a=$d(n,s,i),[c,l,f]=a;return Fd(c,l,parseFloat(e)/100*255)}};var mS=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Qt=(t,e)=>{if(!t||!e)return null;try{return new URL(t),null}catch{}let r=e[t];return r?r.content&&r.content.src:null},bo=(t,e)=>{if(t[e])return t[e].value;if(t.default)return t[t.default].value;let r=Object.keys(t)[0];return r&&t[r]&&t[r].value},Md=t=>{if(typeof t!="string"||!t)return null;let e=t.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(e)?e:null},ss=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),is=t=>`@import url('${t}');`,Nd=t=>`@font-face { ${t} }`,Ca=(t,e,r,o={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=Md(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
25
+ FROM ${a}${l}`},tS=t=>{let e=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;n[s]===!0?e.push(i):r(n[s],i)}};return r(t,""),e},eS=t=>{let e=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${e(n[s])})`);return o.join(", ")},r=Object.keys(t);return r.length===1&&t[r[0]]!==!0?{from:r[0],select:e(t[r[0]])}:{from:null,select:e(t)}},rS={graphql:Yx,"json-api":Zx,odata:Jx,sql:Qx,supabase:eS,paths:tS}});var nS,Wp,Hp=I(()=>{"use strict";uo();nS={snapshotId:lo},Wp=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=nS.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var wa,qp,Gp=I(()=>{wa=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),qp=t=>typeof t=="string"&&wa.has(t)});async function Kp(t){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(e){console.warn(`Error attempting to enable fullscreen mode: ${e.message} (${e.name})`)}}var Xp=I(()=>{"use strict"});function oS(t){return/^[0-9.]+$/.test(t)&&t!==""}var Zt,Ue,hn,Jt,Yp,Zp=I(()=>{"use strict";Zt={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e)=>`${Zt.skypack.url}/${t}${e!=="latest"?`@${e}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e)=>`${Zt.esmsh.url}/${t}${e!=="latest"?`@${e}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e)=>`${Zt.unpkg.url}/${t}${e!=="latest"?`@${e}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e)=>`${Zt.jsdelivr.url}/${t}${e!=="latest"?`@${e}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e)=>t.split("/").length>2||!oS(e)?`${Zt.symbols.url}/${t}`:`${Zt.symbols.url}/${t}/${e}.js`}},Ue={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},hn=(t={})=>{let{packageManager:e}=t;return Ue[e]||null},Jt=(t,e="latest",r="esmsh")=>(Zt[r]||Zt.esmsh).formatUrl(t,e),Yp=(t,e="skypack")=>{let r=t.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let s of n){let i=r[s]||"latest";o[s]=Jt(s,i,e)}return`<script type="importmap">{
26
+ "imports": ${JSON.stringify(o,null,2)}
27
+ }<\/script>`}});var Jp,Qp=I(()=>{"use strict";Jp=t=>{if(!t)return"";let e=new Date(t),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),n=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${n}, ${r}`}});var td,ed=I(()=>{"use strict";td=(t,e)=>{let r=setTimeout(()=>{let{props:n}=t;if(!e.clientHeight){let{node:{clientHeight:o}}=t;o&&(e.clientHeight=o)}if(e.active){if(n.height==="auto")return;t.update({height:e.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let o=setTimeout(()=>{t.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(o)},450)}else t.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}});var rd,nd=I(()=>{"use strict";rd=function(e){let r=[0,1];for(let n=2;n<=e;n++)r[n]=r[n-1]+r[n-2];return r[e]}});var od,sd=I(()=>{"use strict";od=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function gn(t,e={}){let{window:r=globalThis}=e,{document:n=r.document}=e;return new Promise((o,s)=>{let i=n.querySelector(`script[src="${t}"]`);if(i)return o(i);let a=n.createElement("script");a.src=t,a.async=e.async===!0,a.type=e.type||"text/javascript",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${t}`))},n.head.appendChild(a)})}async function ud(t,e={}){let{window:r=globalThis}=e,{document:n=r.document}=e;return new Promise((o,s)=>{let i=n.querySelector(`link[href="${t}"]`);if(i)return o(i);let a=n.createElement("link");a.href=t,a.rel=e.rel||"stylesheet",a.type="text/css",a.media=e.media||"all",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${t}`))},n.head.appendChild(a)})}var id,ad,cd,ld,fd,pd=I(()=>{"use strict";id=(t,e=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("script");i.type=n,i.async=e,i.src=t,i.addEventListener("load",a=>{o({status:!0})}),i.addEventListener("error",a=>{s(new Error({status:!1,message:`Failed to load the script ${t}`}))}),r.body.appendChild(i)}catch(i){s(i)}}),ad=(t,e=document,r="text/javascript")=>new Promise((n,o)=>{let s=e.createElement("script");s.type=r,s.src=t;let i=e.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;",e.body.appendChild(i),s.onload=()=>{console.log(`Successfully loaded: ${t}`),e.body.removeChild(i),n()},s.onerror=()=>{e.body.removeChild(i),o(new Error(`Failed to load: ${t}`))},e.body.appendChild(s)}),cd=(t,e=document,r,n="text/javascript")=>{let o=new window.XMLHttpRequest;if(o.open("GET",t,!1),o.send(),o.status===200){let s=e.createElement("script");s.type=n,s.text=o.responseText,e.body.appendChild(s),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${t}`)},ld=(t,e=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("link");i.rel="stylesheet",i.href=t,i.addEventListener("load",a=>{o({status:!0})}),r.head.appendChild(i)}catch(i){s(i)}}),fd=(t,e=!1,r=document,n="text/javascript",o="smbls-script")=>{try{let s=r.createElement("script");s.type=n,s.async=e,s.id=o,s.innerHTML=t,r.body.appendChild(s)}catch(s){console.warn(s)}}});function aS(t,e){if(!e||typeof e!="object")return t;let r=o=>{if(!iS(o))return o;let s=e[o];return s?.src?s.src:o},n={...t};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 Zo(t,e){if(!t||!e)return;let r=e.split("."),n=t;for(let o of r){if(n==null||typeof n!="object")return;n=n[o]}return n}function cS(t,e,r){let o=(e.config||e.settings||{}).polyglot||e.polyglot,s=r?.lang||o?.defaultLang||"en",a=(o?.translations||{})[s]||{},c=r?.state||{},l={...t};for(let[f,p]of Object.entries(l))typeof p!="string"||!p.includes("{{")||(l[f]=p.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(u,d,h)=>{let g=d.trim();if(h==="polyglot")return a[g]??Zo(a,g)??u;if(h==="getLocalStateLang")return Zo(c,g+s)??u;let m=Zo(c,g);return m!==void 0?m:a[g]??Zo(a,g)??u}));return l}function dd(t){let e={...t};for(let[r,n]of Object.entries(e))if(typeof n=="function"){let o=n.toString(),s=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){e[r]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){e[r]=`{{ ${a[1]} }}`;continue}delete e[r]}else if(typeof n=="string"){let o=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){e[r]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | polyglot }}`;continue}if(n.includes("=>")&&n.includes("s.")){let i=n.match(/s\.(\w+(?:\.\w+)+)/);if(i){e[r]=`{{ ${i[1]} }}`;continue}}}return e}function gd(t,e,r,{isProduction:n=!1,channel:o="production"}={}){let s=t.pages?.[e],i=_(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=dd(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},p=dd(f),u={};if(t.integrations?.seo?u={...t.integrations.seo,...p,...c}:Object.keys(p).length?u={...p,...c}:u={...c},!u.title){let g=t.name||t.key;g?n?u.title=g:o==="development"?u.title=`${g} / dev:symbo.ls`:o==="staging"?u.title=`${g} / staging:symbo.ls`:u.title=`${g} / symbo.ls`:u.title="Symbols demo"}u=cS(u,t,r),u.title&&(l.has("title")||!u["og:title"])&&(l.has("og:title")||(u["og:title"]=u.title)),u.description&&(l.has("description")||!u["og:description"])&&(l.has("og:description")||(u["og:description"]=u.description)),u.title&&!u["twitter:title"]&&(u["twitter:title"]=u.title),u.description&&!u["twitter:description"]&&(u["twitter:description"]=u.description);let d=r?.actualPathname||e;if(u["og:url"]||u.url){let g=(u["og:url"]||u.url||"").replace(/\/$/,"");if(g&&d&&d!=="/"){let m=d.startsWith("/")?d:"/"+d;u["og:url"]=g+m}}u=aS(u,t.files);let h=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[g,m]of Object.entries(u))if(typeof m=="string"&&m.includes("{{")){let y=m.replace(/\{\{[^}]*\}\}/g,"").trim();y?u[g]=y:g==="title"?u[g]=h:delete u[g]}return u}var It,sS,hd,iS,md=I(()=>{"use strict";ft();It=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,r=>e[r])},sS=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}="${It(r)}"`).join(" "),hd=(t,e)=>(e||(t={...t,robots:"noindex"}),Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1)return n;if(o==="title")return n.push(`<title>${It(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${It(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${It(s)}">`),n;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="string")n.push(`<link rel="icon" href="${It(f)}">`);else if(typeof f=="object"){let p=sS(f);/rel=/.test(p)?n.push(`<link ${p}>`):n.push(`<link rel="icon" ${p}>`)}}),n;if(o==="alternate")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="object"){let p=Object.entries(f).filter(([u,d])=>d!==void 0).map(([u,d])=>`${u}="${It(d)}"`).join(" ");n.push(`<link rel="alternate" ${p}>`)}}),n;let i=(l,f,p="name")=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")n.push(`<meta ${p}="${It(l)}" content="${It(f)}">`);else if(Array.isArray(f))f.forEach(u=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")n.push(`<meta ${p}="${It(l)}" content="${It(u)}">`);else if(typeof u=="object"){let d=Object.entries(u).filter(([h,g])=>g!==void 0).map(([h,g])=>`${h}="${It(g)}"`).join(" ");n.push(`<meta ${d}>`)}});else if(typeof f=="object"){let u=Object.entries(f).filter(([d,h])=>h!==void 0).map(([d,h])=>`${d}="${It(h)}"`).join(" ");n.push(`<meta ${u}>`)}};if(o.startsWith("http-equiv:")){let l=o.replace("http-equiv:","");return i(l,s,"http-equiv"),n}if(o.startsWith("itemprop:")){let l=o.replace("itemprop:","");return i(l,s,"itemprop"),n}let c=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(l=>o.startsWith(l));if(c){let l=o.replace(c,"");return i(`${c.replace(":","")}:${l}`,s,c==="twitter:"||c==="DC:"||c==="DCTERMS:"?"name":"property"),n}if(o.startsWith("apple:")||o.startsWith("msapplication:")){let l=o.startsWith("apple:")?"apple-":"msapplication-",f=o.replace(/^apple:|^msapplication:/,"");return i(`${l}${f}`,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(`
28
+ `)),iS=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http")});var ka,yd,bd=I(()=>{"use strict";ft();ka=(t,e)=>(E(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),yd=(t,e)=>(t=parseFloat(t),_(e)&&(e=Object.values(e)),ka(t,e))});function mn(t){let e=String(t||"").trim();if(!e)return{owner:xd,key:"",full:""};let r=null,n=e;if(e.includes("/")){let s=e.indexOf("/");r=e.slice(0,s),n=e.slice(s+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=xd);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function va(t,e={}){if((e.provider||"kv")==="api")return Sd(t,e);let n=await uS(t,e);return n||Sd(t,e)}async function uS(t,e={}){let r=e.kvBaseUrl||lS,n=e.env||"production",o=`${r}/kv/${encodeURIComponent(t)}?env=${n}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function Sd(t,e={}){let r=e.apiBaseUrl||fS,{key:n}=mn(t);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(),c=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(d=>{let{key:h}=mn(d?.key);return h.toLowerCase()===n.toLowerCase()});if(!c?.id&&!c?._id)return null;let l=c.id||c._id,f=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,p=await fetch(f,{method:"GET"});if(!p.ok)return null;let u=await p.json();return u?.data||u||null}catch{return null}}async function _d(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async n=>{if(_(n))return n;if(w(n)){let{full:o}=mn(n);if(!o)return null;try{let s=await va(o,e);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 xd,lS,fS,Jo,Qo,wd=I(()=>{"use strict";ft();xd="system",lS="https://smbls-kv.nika-980.workers.dev",fS="https://api.symbols.app";Jo=(t,e)=>{for(let r in e)r in t?_(t[r])&&_(e[r])&&Jo(t[r],e[r]):t[r]=e[r]},Qo=(t,e)=>{if(!(!e||!e.length))for(let r=0;r<e.length;r++){let n=e[r];if(_(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(_(n[o])&&_(t[o]))if(o==="designSystem")Jo(t[o],n[o]);else for(let s in n[o])s in t[o]||(t[o][s]=n[o][s]);else o in t||(t[o]=n[o])}}}});var kd,vd,Cd,ts,Ad,es,Ed,fr,Td=I(()=>{"use strict";ft();kd=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},vd=async t=>{try{let e=new Blob([t],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":e});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(e){console.error("Failed to copy JavaScript code: ",e)}},Cd=t=>t.replace(/[^a-zA-Z0-9_]/g,""),ts=t=>(typeof t!="string"&&(t=String(t||"")),t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,r){return r===0?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")),Ad=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),es=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Ed=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},fr=t=>{if(E(t))return t;if(w(t))return t.split(" ");if(_(t))return Object.values(t);if(se(t))return[t]}});var Od,Rd=I(()=>{"use strict";Od=()=>{let t=document.styleSheets[0],e="";if(t)try{let r=t.cssRules||t.rules;for(let n=0;n<r.length;n++)e+=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 e}});var Tt,yn,rs,ns,Pd=I(()=>{"use strict";Tt=t=>{let e=t&&t.src;if(!e||typeof e!="string")return null;let r=t.context;if(!r)return null;let n=r.assets&&r.assets[e]||r.files&&r.files[e];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},yn=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return"";let r=t.some(o=>typeof o.width=="number"),n=[];for(let o of t)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&e?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},rs=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(r=>r.format===t.type);return yn(e,{keepOneX:!1})},ns=(t,e)=>{if(!t||typeof t!="object"||typeof t.src!="string")return[];if(!Array.isArray(t.variants)||!t.variants.length)return[{tag:"img",attr:{src:t.src,alt:e||""}}];let r=new Map;for(let a of t.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,c]of r)a!==t.type&&n.push({tag:"source",attr:{type:a,srcset:yn(c,{keepOneX:!0})}});let o=r.get(t.type)||[],s=yn(o,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}});var Id={};$(Id,{CDN_PROVIDERS:()=>Zt,DOMQL_EVENTS:()=>zf,DOMQ_PROPERTIES:()=>Fe,ENV:()=>iu,HTML_TAGS:()=>en,METHODS:()=>Zr,METHODS_EXL:()=>no,NODE_ENV:()=>Kt,OPTIONS:()=>Oo,PACKAGE_MANAGER_TO_CDN:()=>Ue,PARSED_DOMQ_PROPERTIES:()=>ro,PROPS_METHODS:()=>Le,STATE_METHODS:()=>De,STATE_PROPERTIES:()=>Vf,SVG_TAGS:()=>Eu,TYPES:()=>Zn,UNIVERSAL_RESERVED_KEYS:()=>wa,addCaching:()=>ea,addContext:()=>ta,addExtend:()=>Fu,addExtends:()=>Et,addItemAfterEveryElement:()=>Tf,addProtoToArray:()=>to,addRef:()=>Zi,applyDependentState:()=>rp,applyEvent:()=>aa,applyEventUpdate:()=>ca,applyExtends:()=>Lu,applyProps:()=>ko,arrayContainsOtherArray:()=>_f,arraysEqual:()=>Rf,arrayzeValue:()=>fr,buildImgSrcset:()=>rs,buildSourcesAndImg:()=>ns,cache:()=>lp,call:()=>Bp,captureSnapshot:()=>Wp,checkForStateTypes:()=>Ju,checkIfInherits:()=>ia,checkIfStringIsInArray:()=>$f,clone:()=>qf,cloneAndMergeArrayExtend:()=>ho,cloneFunction:()=>hu,concatAddExtends:()=>Ru,copyJavaScriptToClipboard:()=>vd,copyStringToClipboard:()=>kd,createBasedOnType:()=>Yi,createElement:()=>Yu,createElementExtends:()=>Di,createExtends:()=>mo,createExtendsFromKeys:()=>rn,createExtendsStack:()=>ji,createIfConditionFlag:()=>gu,createInheritedState:()=>Qu,createKey:()=>fo,createNestedObject:()=>Qf,createNestedObjectByKeyPath:()=>ep,createObjectWithoutPrototype:()=>Ai,createParent:()=>Ji,createPath:()=>Qi,createProps:()=>vo,createPropsStack:()=>Gi,createRoot:()=>Xu,createScope:()=>sp,createSnapshotId:()=>lo,customDecodeURIComponent:()=>Bf,customEncodeURIComponent:()=>jf,cutArrayAfterValue:()=>Af,cutArrayBeforeValue:()=>Cf,debounce:()=>po,debounceOnContext:()=>uu,decodeNewlines:()=>Nf,deepClone:()=>Q,deepContains:()=>Zf,deepDefaults:()=>Jo,deepDestringifyFunctions:()=>jt,deepExtend:()=>Fi,deepMerge:()=>G,deepMergeExtends:()=>ae,deepStringifyFunctions:()=>oo,defineSetter:()=>Np,destringifyGlobalScope:()=>io,detectHeightOnInit:()=>td,detectInfiniteLoop:()=>nu,document:()=>X,encodeNewlines:()=>Mf,error:()=>lr,excludeKeysFromObject:()=>su,exec:()=>Y,extendCachedRegistry:()=>Pu,extendStackRegistry:()=>yo,extractArrayExtend:()=>xo,fetchLibraryData:()=>va,fibonacciNumberByIndex:()=>rd,filterArrays:()=>Pf,filterArraysFast:()=>If,finalizeExtends:()=>Bi,findClosestNumber:()=>ka,findClosestNumberInFactory:()=>yd,findInheritedState:()=>sa,findKeyPosition:()=>Df,flattenExtend:()=>nn,formatDate:()=>Jp,generateHash:()=>Pi,generateKey:()=>co,generateMetaTags:()=>hd,get:()=>Fp,getCDNUrl:()=>Jt,getCapitalCaseKeys:()=>Mu,getCdnProviderFromConfig:()=>hn,getChildStateInKey:()=>oa,getChildren:()=>Mo,getContext:()=>Wo,getCookie:()=>wu,getDB:()=>Xo,getEmotionStylesheet:()=>Od,getExtendsInElement:()=>Du,getExtendsStack:()=>go,getExtendsStackRegistry:()=>$i,getFrequencyInArray:()=>wf,getHashedExtend:()=>bo,getImportMapScript:()=>Yp,getInObjectByPath:()=>ru,getLocalStorage:()=>vu,getNev:()=>fu,getPageMetadata:()=>gd,getParentStateInKey:()=>na,getPath:()=>No,getQuery:()=>Yo,getRef:()=>Lp,getRoot:()=>Vo,getRootContext:()=>Uo,getRootData:()=>zo,getRootState:()=>Bo,getRootStateInKey:()=>ra,getSpreadChildren:()=>Nu,global:()=>bf,hasFunction:()=>Jr,hasHandlerPlugin:()=>Qr,hasOwnProperty:()=>Kf,inheritChildExtends:()=>Mi,inheritChildPropsExtends:()=>Li,inheritParentProps:()=>Co,inheritRecursiveChildExtends:()=>Ni,initProps:()=>qu,is:()=>Ct,isArray:()=>E,isBoolean:()=>_i,isContextComponent:()=>ju,isCyclic:()=>ou,isDOMNode:()=>kt,isDate:()=>ki,isDefined:()=>vt,isDevelopment:()=>je,isEmpty:()=>vi,isEmptyObject:()=>Xf,isEqualDeep:()=>Ci,isFunction:()=>C,isHtmlElement:()=>Yn,isLocal:()=>lu,isMethod:()=>zp,isMobile:()=>Su,isNode:()=>he,isNot:()=>Sf,isNotProduction:()=>ir,isNull:()=>wi,isNumber:()=>se,isObject:()=>_,isObjectLike:()=>N,isPhoto:()=>od,isProduction:()=>Ne,isStaging:()=>cu,isState:()=>tp,isString:()=>w,isStringFunction:()=>du,isTest:()=>Ei,isTesting:()=>au,isUndefined:()=>ht,isUniversallyReservedKey:()=>qp,isValidHtmlTag:()=>Tu,joinArrays:()=>Gr,jointStacks:()=>$u,keys:()=>Sa,loadCssFile:()=>ld,loadJavascript:()=>fd,loadJavascriptFile:()=>id,loadJavascriptFileEmbedSync:()=>cd,loadJavascriptFileSync:()=>ad,loadRemoteCSS:()=>ud,loadRemoteScript:()=>gn,log:()=>jp,logGroupIf:()=>bu,logIf:()=>yu,lookdown:()=>Pp,lookdownAll:()=>Ip,lookup:()=>Rp,lowercaseFirstLetter:()=>nr,makeObjectWithoutPrototype:()=>Yf,map:()=>Wf,mapStringsWithContextComponents:()=>So,matchesComponentNaming:()=>ce,memoize:()=>pu,merge:()=>et,mergeSharedLibraries:()=>Qo,nextElement:()=>qo,normalizeLibraryKey:()=>mn,objectToString:()=>so,objectizeStringProperty:()=>wo,overwrite:()=>ao,overwriteDeep:()=>At,overwriteShallow:()=>sr,overwriteState:()=>np,parse:()=>_a,parseDeep:()=>Do,pickupElementFromProps:()=>Wi,pickupPropsFromElement:()=>Ui,previousElement:()=>Go,propExists:()=>Hu,propertizeElement:()=>Hi,propertizeUpdate:()=>Wu,remove:()=>$p,removeChars:()=>Cd,removeCookie:()=>ku,removeDuplicateProps:()=>Eo,removeDuplicatesInArray:()=>Kr,removeFromArray:()=>kf,removeFromObject:()=>Jf,removeNestedKeyByPath:()=>tu,removeValueFromArray:()=>Qn,removeValueFromArrayAll:()=>Ef,reorderArrayByValues:()=>Of,replaceLiteralsWithObjectFields:()=>rr,replaceOctalEscapeSequences:()=>Lf,resolveAsset:()=>Tt,resolveHandler:()=>tn,resolveSharedLibraries:()=>_d,returnValueAsText:()=>Xi,runPluginHook:()=>Xt,self:()=>xf,setActiveRootState:()=>jo,setCookie:()=>_u,setHashedExtend:()=>Ii,setInObjectByPath:()=>eu,setLocalStorage:()=>Cu,setNodeStyles:()=>xa,setProps:()=>Dp,setPropsPrototype:()=>Ao,spotByPath:()=>Lo,srcsetFor:()=>yn,stringIncludesAny:()=>eo,stringToObject:()=>Gf,swapItemsInArray:()=>vf,syncProps:()=>To,toCamelCase:()=>ts,toDashCase:()=>es,toDescriptionCase:()=>Ed,toTitleCase:()=>Ad,toggleFullscreen:()=>Kp,triggerEventOn:()=>Be,triggerEventOnUpdate:()=>cp,trimStringFromSymbols:()=>Ff,unstackArrayOfObjects:()=>Jn,update:()=>qi,updateProps:()=>Gu,variables:()=>Ko,verbose:()=>dn,warn:()=>Ho,window:()=>k});var O=I(()=>{"use strict";uo();Ti();ft();ie();ar();er();qr();mu();xu();Yr();Hr();Au();Oi();Vi();Ki();_o();Zu();op();or();ip();Up();fa();Hp();la();Gp();Xp();Zp();Qp();ed();nd();sd();pd();md();bd();wd();Td();Rd();Pd()});var Eb=hi((uF,Ab)=>{var Lr=1e3,Mr=Lr*60,Nr=Mr*60,Qe=Nr*24,gk=Qe*7,mk=Qe*365.25;Ab.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return yk(t);if(r==="number"&&isFinite(t))return e.long?xk(t):bk(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function yk(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*mk;case"weeks":case"week":case"w":return r*gk;case"days":case"day":case"d":return r*Qe;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Nr;case"minutes":case"minute":case"mins":case"min":case"m":return r*Mr;case"seconds":case"second":case"secs":case"sec":case"s":return r*Lr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function bk(t){var e=Math.abs(t);return e>=Qe?Math.round(t/Qe)+"d":e>=Nr?Math.round(t/Nr)+"h":e>=Mr?Math.round(t/Mr)+"m":e>=Lr?Math.round(t/Lr)+"s":t+"ms"}function xk(t){var e=Math.abs(t);return e>=Qe?ii(t,e,Qe,"day"):e>=Nr?ii(t,e,Nr,"hour"):e>=Mr?ii(t,e,Mr,"minute"):e>=Lr?ii(t,e,Lr,"second"):t+" ms"}function ii(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+" "+n+(o?"s":"")}});var Ob=hi((pF,Tb)=>{function Sk(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=a,r.humanize=Eb(),r.destroy=l,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let p=0;for(let u=0;u<f.length;u++)p=(p<<5)-p+f.charCodeAt(u),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(f){let p,u=null,d,h;function g(...m){if(!g.enabled)return;let y=g,b=Number(new Date),x=b-(p||b);y.diff=x,y.prev=p,y.curr=b,p=b,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let S=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(T,R)=>{if(T==="%%")return"%";S++;let L=r.formatters[R];if(typeof L=="function"){let P=m[S];T=L.call(y,P),m.splice(S,1),S--}return T}),r.formatArgs.call(y,m),(y.log||r.log).apply(y,m)}return g.namespace=f,g.useColors=r.useColors(),g.color=r.selectColor(f),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>u!==null?u:(d!==r.namespaces&&(d=r.namespaces,h=r.enabled(f)),h),set:m=>{u=m}}),typeof r.init=="function"&&r.init(g),g}function n(f,p){let u=r(this.namespace+(typeof p>"u"?":":p)+f);return u.log=this.log,u}function o(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let p=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let u of p)u[0]==="-"?r.skips.push(u.slice(1)):r.names.push(u)}function s(f,p){let u=0,d=0,h=-1,g=0;for(;u<f.length;)if(d<p.length&&(p[d]===f[u]||p[d]==="*"))p[d]==="*"?(h=d,g=u,d++):(u++,d++);else if(h!==-1)d=h+1,g++,u=g;else return!1;for(;d<p.length&&p[d]==="*";)d++;return d===p.length}function i(){let f=[...r.names,...r.skips.map(p=>"-"+p)].join(",");return r.enable(""),f}function a(f){for(let p of r.skips)if(s(f,p))return!1;for(let p of r.names)if(s(f,p))return!0;return!1}function c(f){return f instanceof Error?f.stack||f.message:f}function l(){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}Tb.exports=Sk});var Rb=hi((wt,ai)=>{wt.formatArgs=wk;wt.save=kk;wt.load=vk;wt.useColors=_k;wt.storage=Ck();wt.destroy=(()=>{let t=!1;return()=>{t||(t=!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`."))}})();wt.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 _k(){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 t;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&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function wk(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+ai.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),t.splice(n,0,e)}wt.log=console.debug||console.log||(()=>{});function kk(t){try{t?wt.storage.setItem("debug",t):wt.storage.removeItem("debug")}catch{}}function vk(){let t;try{t=wt.storage.getItem("debug")||wt.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Ck(){try{return localStorage}catch{}}ai.exports=Ob()(wt);var{formatters:Ak}=ai.exports;Ak.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var _t=null,Gn=0,Kn=[],zr=()=>_t,ax=t=>{_t=t};function oe(t){let e=new Set;function r(){return _t&&(e.add(_t),_t._sources.add(s)),t}function n(i){i!==t&&(t=i,yf(e))}function o(){return t}let s={get:r,set:n,peek:o,_subscribers:e,_type:"signal"};return s}function cx(t){let e,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){yi(o);let s=_t;_t=o;try{let i=t();i!==e?(e=i,r=!1,yf(n)):r=!1}finally{_t=s}},_notify(){r=!0,n.size>0&&o._execute()},get(){return _t&&(n.add(_t),_t._sources.add(o)),r&&o._execute(),e},peek(){return r&&o._execute(),e}};return o._execute(),o}var gi=new Set,mi=!1;function lt(t,e){let r=e?.depth??0,n={_sources:new Set,_type:"effect",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(n._disposed)return;yi(n);let o=_t;_t=n;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{_t=o}},_notify(){n._disposed||(Gn>0?Kn.push(n):mf(n))},dispose(){n._disposed=!0,yi(n)}};return n._execute(),n}function Ie(t){Gn++;try{t()}finally{Gn--,Gn===0&&fx()}}function mf(t){gi.add(t),mi||(mi=!0,queueMicrotask(lx))}function lx(){mi=!1;let t=Array.from(gi).sort((e,r)=>e._depth-r._depth);gi=new Set;for(let e=0;e<t.length;e++){let r=t[e];r._disposed||r._execute()}}function fx(){for(let t=0;t<Kn.length;t++)mf(Kn[t]);Kn.length=0}function yf(t){let e=Array.from(t);for(let r=0;r<e.length;r++)e[r]._notify()}function yi(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var $e=Symbol("store"),Xn=Symbol("signals"),bi=t=>!t||typeof t!="object"||Array.isArray(t)||t[$e]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName;function Nt(t,e,r){r===void 0&&(r=0);let n={},o={},s=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let y in t){if(y==="__proto__"||!Object.prototype.hasOwnProperty.call(t,y))continue;let b=t[y];r<s&&b&&typeof b=="object"&&!bi(b)?(o[y]=b,n[y]=oe(Nt(b,e,r+1))):(o[y]=b,n[y]=oe(b))}let i=new Proxy(o,{get(y,b){if(b===$e)return!0;if(b===Xn)return n;if(b==="__raw")return y;if(b==="update")return a;if(b==="parse")return l;if(b==="clean")return f;if(b==="keys")return p;if(b==="values")return u;if(b==="replace")return d;if(b==="add")return h;if(b==="remove")return g;if(b==="destroy")return m;if(b==="quietUpdate")return c;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"&&zr()!=null)return n[b]=oe(void 0),n[b].get()},set(y,b,x){return b==="__proto__"?!1:b==="__element"||b==="parent"||b==="root"?(y[b]=x,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=x,x&&typeof x=="object"&&!bi(x)?n[b].set(Nt(x,e,r+1)):n[b].set(x)):(y[b]=x,x&&typeof x=="object"&&!bi(x)?n[b]=oe(Nt(x,e,r+1)):n[b]=oe(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){Ie(()=>{for(let S in y)S!=="__proto__"&&(i[S]=y[S])});let x=o.__element;return x&&x.onUpdate&&!b?.quiet&&x.onUpdate(x,i,x.context),i}function c(y){return a(y,{quiet:!0})}function l(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 S=n[x].peek();S&&S[$e]?b[x]=S.parse(y):b[x]=S}return b}function f(){return Ie(()=>{for(let y in n)delete i[y]}),i}function p(){return Object.keys(n)}function u(){return Object.keys(n).map(y=>n[y].peek())}function d(y){return Ie(()=>{for(let b in n)b in y||delete i[b];for(let b in y)b!=="__proto__"&&(i[b]=y[b])}),i}function h(y,b){return i[y]=b,i}function g(y){return delete i[y],i}function m(){f(),o.__element=null,o.parent=null}return i}function mt(t){return t&&t[$e]===!0}function ux(t){return t[Xn]}function Si(t,e){let r={},n={};if(t&&typeof t=="object")for(let i in t)n[i]=t[i],r[i]=oe(t[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=e;for(;a;){let c=a[Xn];if(c&&Object.prototype.hasOwnProperty.call(c,i))return c;a=a[$e]?a[xi]:null}return null};return new Proxy(n,{get(i,a){return a===$e?!0:a===Xn?r:a===xi?e:a==="__raw"?i:Object.prototype.hasOwnProperty.call(r,a)?r[a].get():e&&a!=="then"&&a!=="constructor"?e[a]:i[a]},set(i,a,c){let l=o(a);return l?(l===r&&(i[a]=c),l[a].set(c),!0):(i[a]=c,r[a]=oe(c),!0)},has(i,a){if(a in r||a in i)return!0;let c=e;for(;c;){if(a in c)return!0;c=c[$e]?c[xi]:null}return!1},ownKeys(){return Object.keys(r)},getOwnPropertyDescriptor(i,a){return a in r?{enumerable:!0,configurable:!0,value:r[a].peek()}:Object.getOwnPropertyDescriptor(i,a)}})}var xi=Symbol("scope.parent");var gr={};$(gr,{CSS_NATIVE_COLOR_REGEX:()=>le,CSS_UNITS:()=>Wr,applyMediaSequenceVars:()=>hr,applySequenceGlobalVars:()=>Ma,applySequenceVars:()=>Ge,changeLightness:()=>yS,colorStringToRgbaArray:()=>be,convertSvgToSymbol:()=>Na,findHeadingLetter:()=>Zd,findHeadings:()=>La,generateSequence:()=>Vt,generateSequencePosition:()=>t_,generateSprite:()=>fs,generateSubSequence:()=>Fa,getColorShade:()=>Md,getDefaultOrFirstKey:()=>bn,getFnPrefixAndValue:()=>qe,getFontFace:()=>SS,getFontFaceEach:()=>xn,getFontFaceEachString:()=>Vd,getFontFaceString:()=>Aa,getFontFormat:()=>jd,getRgbTone:()=>pr,getSequenceValue:()=>Da,getSequenceValueBySymbols:()=>Yd,getSequenceValuePropertyPair:()=>we,getSubratio:()=>$a,getSubratioDifference:()=>Ia,hexToRgb:()=>dS,hexToRgbArray:()=>$d,hexToRgba:()=>gS,hslToRgb:()=>Ld,isCSSVar:()=>ot,isGoogleFontsUrl:()=>ss,isResolvedColor:()=>xe,isScalingUnit:()=>Ur,mixTwoColors:()=>pS,mixTwoRgb:()=>mS,mixTwoRgba:()=>Nd,numToLetterMap:()=>_e,opacify:()=>os,parseColorToken:()=>We,resolveFileUrl:()=>Qt,returnSubThemeOrDefault:()=>xS,rgbArrayToHex:()=>Fd,rgbToHSL:()=>Dd,rgbToHex:()=>hS,setCustomFont:()=>Ca,setCustomFontMedia:()=>dr,setFontImport:()=>is,setInCustomFontMedia:()=>Bd,setScalingVar:()=>Pa,setSubScalingVar:()=>Kd,setVariables:()=>e_,splitTopLevelCommas:()=>ur});var Ur=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",Wr=["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"];O();var be=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];if(t[0]==="#")return t.length<7&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(t.length>4?t[4]+t[4]:"")),[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16),t.length>7?parseInt(t.substr(7,2),16)/255:1];if(t.indexOf("rgb")===-1&&X&&k){let e=X.body.appendChild(X.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){X.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return X.body.removeChild(e),[0,0,0,0];t=k.getComputedStyle(e).color,X.body.removeChild(e)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(e=>+e)):[0,0,0,0]},pS=(t,e,r=.5)=>(t=be(t),e=be(e),Nd(t,e,r)),dS=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},$d=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},hS=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),Fd=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),gS=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},mS=(t,e,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(t[o]+(e[o]-t[o])*r);return`rgb(${n})`},yS=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},Dd=(t,e,r)=>{let n=Math.max(t,e,r),o=n-Math.min(t,e,r),s=1-Math.abs(n+n-o-1),i=o&&(n==t?(e-r)/o:n==e?2+(r-t)/o:4+(t-e)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},Ld=(t,e,r,n=e*Math.min(r,1-r),o=(s,i=(s+t/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],Md=(t,e)=>{let r=parseInt(t,16),n=(r>>16)+e;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+e;o>255?o=255:o<0&&(o=0);let s=(r&255)+e;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},Nd=(t,e,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(t[o]+(e[o]-t[o])*r)}return`rgba(${n})`},os=(t,e)=>{let r=be(t);if(!r){ir()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},ot=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,le=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,bS=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,We=t=>{if(!w(t))return null;if(le.test(t))return{passthrough:t};if(ot(t))return{cssVar:t};let e=t.match(bS);if(!e)return null;let[,r,n,o]=e,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},xe=t=>w(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),ur=t=>{let e=[],r="",n=0;for(let o of t){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){e.push(r),r="";continue}r+=o}return(r.length||!e.length)&&e.push(r),e},pr=(t,e)=>{w(t)&&t.includes("rgb")&&(t=be(t).join(", ")),w(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),se(e)&&(e+="");let r=Fd(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=Md(r,parseFloat(e));return $d(o).join(", ")}else{let[o,s,i]=t,a=Dd(o,s,i),[c,l,f]=a;return Ld(c,l,parseFloat(e)/100*255)}};var xS=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Qt=(t,e)=>{if(!t||!e)return null;try{return new URL(t),null}catch{}let r=e[t];return r?r.content&&r.content.src:null},bn=(t,e)=>{if(t[e])return t[e].value;if(t.default)return t[t.default].value;let r=Object.keys(t)[0];return r&&t[r]&&t[r].value},jd=t=>{if(typeof t!="string"||!t)return null;let e=t.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(e)?e:null},ss=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),is=t=>`@import url('${t}');`,Bd=t=>`@font-face { ${t} }`,Ca=(t,e,r,n={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=jd(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
29
29
  `);return`
30
30
  font-family: '${t}';
31
- font-style: ${o.fontStyle||"normal"};${r?`
32
- font-weight: ${r};`:""}${o.fontStretch?`
33
- font-stretch: ${o.fontStretch};`:""}${o.fontDisplay?`
34
- font-display: ${o.fontDisplay};`:""}
35
- src: ${i};`},dr=(t,e,r,o)=>`@font-face {${Ca(t,e,r,o)}
36
- }`,xo=(t,e,r)=>Object.keys(e).map(n=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l}=e[n],f=Array.isArray(s)?s.map(p=>Qt(p,r)||p):Qt(s,r)||s;return Ca(t,f,i,{fontStyle:a,fontDisplay:c,fontStretch:l})}),yS=t=>Object.keys(t).map(r=>xo(r,t[r].value)),jd=(t,e,r)=>{if(e&&e.isVariable){let s=Qt(e.url,r)||e.url;return ss(s)?is(s):dr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return xo(t,e,r).map(Nd);let n=Array.isArray(e.url)?e.url.map(s=>Qt(s,r)||s):Qt(e.url,r)||e.url;return dr(t,n,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})},Aa=(t,e)=>Object.keys(t).map(o=>jd(o,t[o].value,e));T();T();T();var as={};$(as,{animation:()=>NS,breakpoints:()=>LS,class:()=>WS,color:()=>ES,devices:()=>MS,document:()=>DS,font:()=>SS,fontFace:()=>kS,fontFamily:()=>_S,fontFamilyTypes:()=>wS,gradient:()=>TS,grid:()=>US,icons:()=>PS,media:()=>vS,reset:()=>HS,semanticIcons:()=>IS,sequence:()=>He,shadow:()=>RS,spacing:()=>AS,svg:()=>jS,svgData:()=>BS,templates:()=>VS,theme:()=>OS,timing:()=>FS,typography:()=>Ea,unit:()=>bS,vars:()=>qS});var He={"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 xS={browserDefault:16,base:16,type:"font-size",ratio:He["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},Ea=xS;var SS={};var _S={},wS={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},kS={};var vS={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var CS={base:Ea.base,type:"spacing",ratio:He.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},AS=CS;var ES={},TS={};var OS={};var RS={};var PS={},IS={};var $S={default:150,base:150,type:"timing",ratio:He["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},FS=$S;var DS={};var LS={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},MS={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 NS={};var jS={},BS={};var VS={};var zS={},US=zS;var WS={};var HS={},qS={};var Bd={},Vd={},cs=as,ls={},Ta=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase());for(let t in cs){let e=t.toLowerCase();ls[e]=cs[t];let r=Ta(e);r!==e&&(ls[r]=cs[t]),e!==t&&(ls[t]=cs[t])}var Oa={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:Bd,cssMediaVars:Vd,CSS_VARS:Bd,CSS_MEDIA_VARS:Vd,_scratchConfig:!0,...ls},zd=Y(Oa),Se={active:"0",0:Oa},fE=t=>(_t(t)&&(Se.active=t),Se[t||Se.active]),So=[],lt=t=>{t&&t._scratchConfig&&So.push(t)},nt=()=>{So.pop()},A=t=>So.length?So[So.length-1]:Se[t||Se.active]||Oa,Ud=t=>{if(S(t))return Se.active="1",Se[1]=W(t,Y(zd)),t},GS=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],KS=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],YS=t=>{for(let e of KS){let r;for(let o of e){let n=t[o];S(n)&&(r=r?W(n,r):n)}if(r)for(let o of e)S(t[o])&&(t[o]=r)}},Wd=(t,e,{cleanBase:r=!1}={})=>{let o=r?null:A(),n=Y(!r&&o&&o._scratchConfig?o:zd);for(let i of GS)delete n[i];let s=W(e||{},n);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,YS(s),t&&(Se[t]=s),s};var _e={"-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"},Ra=(t,e)=>{let{key:r,variable:o,value:n,scaling:s,index:i,scalingVariable:a}=t;e.sequence[r]={key:r,decimal:~~(n*100)/100,val:~~n,scaling:s,index:i,scalingVariable:a,variable:o},e.scales[r]=s;let c=Hd.has(e.unit)?"rem":e.unit;e.vars[o]=s+c},qe=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},Hd=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Pa=(t,e)=>{let{base:r,type:o,unit:n}=e,s=Hd.has(n)?"rem":n,i=(Ur(s)?1:r)+s;if(t===0)return i;let c="--"+(e.varPrefix?e.varPrefix+"-":"")+(o&&o.replace(".","-")),l=`${c}-ratio`;if(t>0){let f=_e[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=_e[t+1],p=Math.abs(t),u=Math.pow(Gd,2*p),d=_e[p];return d?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${d}) / ${u.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},qd=(t,e,r,o)=>{let{type:n}=o,i=t===2&&e.length===2?t+1:t,l=`${"--"+(o.varPrefix?o.varPrefix+"-":"")+(n&&n.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${l+i}))`},Ia=(t,e)=>{let o=(t*e-t)/1.618,n=t*e-o,s=t+o,i=(n+s)/2;return[n,i,s]},$a=(t,e)=>Ia(t,e).map(r=>r/t),Fa=(t,e)=>{let{key:r,base:o,value:n,ratio:s,variable:i,index:a}=t,l=~~(n*s)-~~n,f,[p,u,d]=Ia(n,s);l>16?f=[p,u,d]:f=[p,d],f.forEach((h,g)=>{let m=~~(h/o*1e3)/1e3,y=i+(g+1),b=a+(g+1)/10,x=qd(g+1,f,i,e),w={key:r+(g+1),variable:y,value:h,scaling:m,scalingVariable:x,index:b};Ra(w,e)})},Gd=1.618,XS=(t,e,r)=>{if(t>=0)return e*Math.pow(r,t);let o=Math.abs(t),n=e*Math.pow(r,t),s=e*Math.pow(r,o)/Math.pow(Gd,2*o);return Math.max(n,s)},Bt=t=>{let{type:e,base:r,ratio:o,range:n,subSequence:s}=t,i=Math.abs(n[0])+Math.abs(n[1]),c="--"+(t.varPrefix?t.varPrefix+"-":"")+(e&&e.replace(".","-"))+"-";for(let l=0;l<=i;l++){let f=n[1]-l,p=_e[f],u=XS(f,r,o),d=~~(u/r*100)/100,h=c+p,g=Pa(f,t),m={key:p,variable:h,value:u,base:r,scaling:d,scalingVariable:g,ratio:o,index:f};Ra(m,t),s&&Fa(m,t)}return t},ZS=(t,e=0)=>{let{type:r,base:o,ratio:n,subSequence:s}=t,i=_(e)?e:_e[e],a=_(e)?Object.entries(_e).find(([,m])=>m===e)?.[0]:e;if(!i)return console.warn(`Position ${e} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...t},l=o*Math.pow(n,a),f=~~(l/o*100)/100,d="--"+(t.varPrefix?t.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,h=Pa(a,t),g={key:i,variable:d,value:l,base:o,scaling:f,scalingVariable:h,ratio:n,index:a};return Ra(g,c),s&&Fa(g,c),c},Da=(t="A",e)=>{let r=A(),{unit:o}=r;if(_(t)&&rt(t))return`var(${t})`;let{sequence:n,unit:s=o.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(Wr.some(x=>t.includes(x))||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let u=`--${e.varPrefix?e.varPrefix+"-":""}${es(e.type.replace(".","-"))}-`,d=t.toUpperCase(),h=d.slice(0,1)==="-"?"-":"",g=h?d.slice(1):d,m="";g.includes("_")&&(m="_"+g.split("_")[1].toLowerCase(),g=g.split("_")[0]);let y=x=>a.test(x)?`var(${u}${x}${m})`:x;if(g.includes("+")){let[x,w]=g.split("+"),v=`${y(x)} + ${y(w)}`;return h?`calc((${v}) * -1)`:`calc(${v})`}else if(g.includes("*")){let[x,w]=g.split("*"),v=`${y(x)} * ${y(w)}`;return h?`calc((${v}) * -1)`:`calc(${v})`}else if(g.includes("-")){let[x,w]=g.split("-"),v=`${y(x)} - ${y(w)}`;return h?`calc((${v}) * -1)`:`calc(${v})`}if(!n[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(${u}${g}${m})`;return h?`calc(${x} * -1)`:x}let b=n?n[g]:null;return b?s==="ms"||s==="s"?h+b.val+s:h+b.scaling+s:console.warn("can't find",n,g)},Kd=(t,e)=>{if(!["+","-","*","/",","].filter(s=>t.includes(s+" ")).length)return t;let o=/(\s*[+\-*/,]\s*)/;return t.split(o).map(s=>{let i=s.trim();return!i||["+","-","*","/",","].includes(i)?s:Da(i,e)}).join("")},we=(t,e,r,o)=>{if(typeof t!="string")return A().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!o&&t.includes("(")){let s=qe(t);o=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=Kd(t,r):t=Da(t,r),{[e]:o?`${o}(${t})`:t}},Yd=(t,e)=>_e[t-e],La=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((o,n)=>{let s=Yd(e,n);return r[s]})};T();var JS=(t,e)=>{let r=A(),{cssVars:o}=r;D(t.value)||(o[t.var]=t.value)},Ma=(t,e,r)=>{let o=A(),{unit:n}=o,s=e.unit||n.default,{base:i,ratio:a,type:c}=e,f="--"+(e.varPrefix?e.varPrefix+"-":"")+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let p=`${f}-ratio`;t[p]=a;let[u,d,h]=$a(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${u/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${h/a})`},Xd=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Ge=(t,e={})=>{let r=A(),{unit:o,timing:n,cssVars:s}=r,i=t.unit||o.default,a=Xd.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||Ma(s,t,e);for(let p in l){let u=l[p],d=(t.type===n.type?l[p].val:f[p])+a;if(!c){s[u.variable+"_default"]=d,s[u.variable]=u.scalingVariable;continue}e.useDefault===!1?s[u.variable]=d:(s[u.variable+"_default"]=d,s[u.variable]=`var(${u.variable+"_default"})`)}},hr=(t,e,r={})=>{let o=A(),{unit:n,media:s,cssVars:i}=o,a=e.slice(1),c=t[e],l=c.unit||t.unit||n.default,f=Xd.has(l)?"rem":l,{mediaRegenerate:p}=t,{sequence:u,scales:d}=c,h=s[a];if(!h&&o.verbose&&console.warn("Can't find media query ",h),!p){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),Ma(g,c,r);let m=t.unit||n.default;if(f!==m&&u)for(let y in u){let b=u[y],x=d[y]+f;g[b.variable+"_default"]=x,g[b.variable]=x}return}for(let g in u){let m=u[g],y=(Ur(f)?d[g]:u[g].val)+f;!h&&o.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}};T();var Jd=ir(),fs=t=>{let e=A(),r="";for(let o in t)e.__svgCache[o]||(e.__svgCache[o]=!0,r+=t[o]);return r},QS=t=>{let e=t&&(t.default||t);if(!_(e))return Jd&&console.warn("parseRootAttributes:",e,"is not a string"),{};let r=e.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let n=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return n?n.reduce((s,i)=>{let[a,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{}):{}},t_=(t,e)=>{let r=[];if(t.replace(/id="([^"]*)"/g,(n,s)=>(r.push(s),n)),!r.length)return t;let o=t;for(let n of r){let s=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${e}-${n}`;o=o.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 o},Zd=new Set,Na=(t,e)=>{let r=e&&e.default?e.default:e;if(!_(r))return Jd&&!Zd.has(t)&&(Zd.add(t),console.warn("convertSvgToSymbol:",t,"is not a string")),"";e=r;let o=QS(e),{width:n,height:s}=o,i=o.viewBox||`0 0 ${n||24} ${s||24}`,l=t_(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${i}"`);return l=l.replace(/width="[^"]*"/,""),l=l.replace(/height="[^"]*"/,""),l=l.replace("</svg","</symbol"),l=o_(l),l},e_="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",r_=new RegExp(`<(${e_})\\b([^>]*?)\\s*/>`,"g"),o_=t=>t.replace(r_,"<$1$2></$1>");var hs={};$(hs,{appendSVGSprite:()=>rc,appendSvgIconsSprite:()=>nc,applyDocument:()=>Qa,applyHeadings:()=>oh,applyReset:()=>sc,applySpacingSequence:()=>Ya,applyTimingSequence:()=>Ja,applyTypographySequence:()=>qa,checkIfBoxSize:()=>Ka,getColor:()=>J,getFontFamily:()=>Ha,getFontSizeByKey:()=>Ga,getMediaColor:()=>gt,getMediaTheme:()=>te,getShadow:()=>Za,getSpacingBasedOnRatio:()=>fe,getSpacingByKey:()=>ft,getTheme:()=>Va,getTimingByKey:()=>Vt,getTimingFunction:()=>ee,runThroughMedia:()=>rh,setColor:()=>mr,setFont:()=>Wa,setFontFamily:()=>ps,setGradient:()=>yr,setMediaTheme:()=>Ua,setSVG:()=>ds,setShadow:()=>br,setSvgIcon:()=>oc,setTheme:()=>za,splitSpacedValue:()=>Xa});T();var J=(t,e,r)=>{let o=r||A();if(!_(t)){o.verbose&&console.warn(t,"- type for color is not valid");return}if(rt(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let n,s,i;if(E(t))[n,s,i]=t;else{let p=We(t);if(!p){let{color:u,gradient:d}=o,h=d[t]||u[t];return h?o.useVariable?`var(${h.var})`:h.value:t}if(p.passthrough)return p.passthrough;if(p.cssVar)return`var(${p.cssVar})`;n=p.name,s=p.alpha,i=p.tone}let{color:a,gradient:c}=o,l=a[n]||c[n];if(!l)return o.verbose&&console.warn("Can't find color ",n),t;e&&(l[e]?l=l[e]:o.verbose&&console.warn(t," - does not have ",e));let f=l.rgb;return f?(i&&!l[i]&&(f=pr(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, 1)`:o.useVariable?`var(${l.var})`:`rgb(${f})`):o.useVariable?`var(${l.var})`:l.value},gt=(t,e,r)=>{let o=r||A();if(e||(e=o.globalTheme==="auto"?null:o.globalTheme),!_(t)){o.verbose&&console.warn(t,"- type for color is not valid");return}if(rt(t))return`var(${t})`;let n;if(E(t))n=t[0];else{let l=We(t);if(!l)return t;if(l.passthrough)return l.passthrough;if(l.cssVar)return`var(${l.cssVar})`;n=l.name}let{color:s,gradient:i}=o,a=s[n]||i[n],c=S(a);if(c&&a.value)return J(t,`@${e}`,r);if(c){if(o.useVariable&&a.var)return`var(${a.var})`;if(e)return J(t,`@${e}`,r);{let l={};for(let f in a){if(f.charCodeAt(0)!==64)continue;let p=o.media[f.slice(1)];if(!p)continue;let u="@media "+(p==="print"?`${p}`:`screen and ${p}`);l[u]=J(t,f,r)}return l}}else return o.verbose&&console.warn("Can't find color",t),t},mr=(t,e,r)=>{let o=A();if(_(t)&&rt(t)){let g=t.slice(2);if(t=J(g),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let m=g.split(" "),y=o.color[m[0]];if(y&&!y.value&&!y.rgb&&(_(y)||E(y)||S(y))&&(o.color[m[0]]=mr(y,m[0]),y=o.color[m[0]]),y&&y.value){let b=y.rgb,x=m[1]!==void 0?m[1]:"1",w=m[2];w&&(b=pr(b,w)),t=`rgba(${b}, ${x})`}else{let b=m[2],x=m[1]!==void 0?m[1]:"1";if(b)try{let w=be(m[0]);w&&w.length>=3?t=`rgba(${pr(w.slice(0,3).join(", "),b)}, ${x})`:t=m[0]}catch{t=m[0]}else t=m[0]}}}if(E(t)&&(t={"@light":t[0],"@dark":t[1]}),S(t)){let g={};for(let m in t)g[m]=mr(t[m],e,m.slice(0,1)==="@"?m.slice(1):m);if(o.useVariable){let y=`--${o.varPrefix?o.varPrefix+"-":""}color-${e}`,b,x={};for(let w in g){if(w.charCodeAt(0)!==64)continue;let v=w.slice(1),O=g[w],R=O&&(O.value||O);!R||typeof R!="string"||(x[v]=R,(v==="light"||b===void 0)&&(b=R))}if(b!==void 0){o.cssVars[y]=b,o.cssMediaVars||(o.cssMediaVars={});for(let w in x){let v=`[data-theme="${w}"]`;if(o.cssMediaVars[v]||(o.cssMediaVars[v]={}),o.cssMediaVars[v][y]=x[w],w==="light"||w==="dark"){let O=`@media (prefers-color-scheme: ${w})`;o.cssMediaVars[O]||(o.cssMediaVars[O]={}),o.cssMediaVars[O][y]=x[w]}}g.var=y}}return g}let s=`--${o.varPrefix?o.varPrefix+"-":""}color-${e}`+(r?`-${r}`:""),i=t.value||t;if(_(i)&&i.includes(".")&&!i.includes("(")){let[g,m]=i.split("."),y=o.color[g];y&&y.rgb&&(i=`rgba(${y.rgb}, ${parseFloat("0."+m)||1})`)}if(_(i)&&!i.includes("(")&&!i.startsWith("#")){let g=We(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=o.color[g.name];m&&!m.value&&!m.rgb&&(_(m)||E(m)||S(m))&&(o.color[g.name]=mr(m,g.name));let y=o.color[g.name];if(y&&y.rgb){let b=y.rgb;g.tone&&(b=pr(b,g.tone));let x=g.alpha?parseFloat(g.alpha):1;i=`rgba(${b}, ${x})`}}}let a=be(i),[c,l,f,p=1]=a,u=parseFloat(p.toFixed(2)),d=`${c}, ${l}, ${f}`,h=`rgba(${d}, ${u})`;return o.useVariable&&(o.cssVars[s]=h),{var:s,rgb:d,alpha:u,value:h}},yr=(t,e,r)=>{let o=A();if(_(t)&&rt(t)&&(t=J(t.slice(2))),E(t))return{"@light":yr(t[0],e,"light"),"@dark":yr(t[0],e,"dark")};if(S(t)){let i={};for(let a in t)i[a]=yr(t[a],e,a.slice(0,1)==="@"?a.slice(1):a);return i}let s=`--${o.varPrefix?o.varPrefix+"-":""}gradient-${e}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[s]=t.value||t),{var:s,value:t.value||t}};T();var n_=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"]),Qd=["color","Color","background","Background","fill","Fill","stroke","Stroke"],s_=t=>{for(let e=0;e<Qd.length;e++)if(t.includes(Qd[e]))return!0;return!1},us=t=>{let e={},{state:r,media:o,helpers:n,...s}=t;return Object.keys(s).map(a=>{let l=["color","Color","background","border"].some(f=>a.includes(f));return e[a]=l?J(t[a]):t[a]}),e},_o=t=>(t.value||(t.value=us(t)),t.value),Va=(t,e)=>{let r=A();if(r.useVariable)return te(t,e);let o=r.theme;if(_(t)){let[n,s]=t.split(" "),i=o[n];if(i){if(!s&&!e)return _o(i);t=[n,s||e]}}if(D(t)&&t[1]){let n=t[0],s=t[1],{helpers:i,media:a,state:c}=o[n];if(a&&a[s])return _o(a[s]);if(i&&i[s])return _o(i[s]);if(c&&c[s])return _o(c[s])}else if(S(t))return us(t)},i_=(t,e,r)=>{if(S(e))t.variants.inverse.value=us(e);else if(e===!0){let{color:o,background:n}=r;t.variants.inverse={value:{color:n,background:o}}}},a_=(t,e,r,o)=>{let n=Va(r);o[`&:${e}`]=n,S(r)&&!r.value&&(r.value=n)},c_=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(n=>{let s=r[n];return a_(t,n,s,e),t}),t):void 0},l_=(t,e,r,o)=>{let n=Va(r);o[`@media (prefers-color-scheme: ${e})`]=n,S(r)&&!r.value&&(r.value=n)},f_=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(n=>{let s=r[n];return(n==="dark"||n==="light")&&l_(t,n,s,e),n==="inverse"&&i_(t,s,e),t}),t):void 0},u_=(t,e)=>{let r=A(),{helpers:o}=t;return o?(Object.keys(o).map(s=>{let i=o[s];return _(i)?o[s]=r.theme[i]:_o(o[s]),t}),t):void 0},za=(t,e)=>{let r=A();if(r.useVariable)return Ua(t,e);let{state:o,media:n,helpers:s}=t,i=us(t,e),c=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}`;return c_(t,i),f_(t,i),u_(t,i),{var:c,value:i,state:o,media:n,helpers:s}};var ja=(t,e,r)=>{let{cssVars:o}=r;r.cssMediaVars||(r.cssMediaVars={});let n=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let l in t)if(t[l])for(let f of Object.keys(t[l]))a.add(f);let c=new Set;for(let l of a){let f=l.slice(0,1);if(!(f==="@"||f==="."||f===":")&&s_(l))for(let p in t){if(c.has(p))continue;let u=t[p]?.[l];if(u===void 0)continue;let d=J(u,`@${p}`);d!==void 0&&_(d)&&/^[a-z][a-zA-Z]+$/.test(d)&&!n_.has(d)&&c.add(p)}}for(let l of a){let f=l.slice(0,1),p=Object.values(t).some(u=>D(u?.[l]));if(f==="."&&p){let u=l.slice(1),d={};for(let h in t)D(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=ja(d,`${e}-${u}`,r)}else if(f===":"&&p){let u=l.replace(/^:+/,""),d={};for(let h in t)D(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=ja(d,`${e}-${u}`,r)}else if(f!=="@"&&f!=="."&&f!==":"){let d=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}-${l}`,h=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,g;for(let m in t){if(c.has(m))continue;let y=t[m]?.[l];if(y===void 0)continue;let b=J(y,`@${m}`);if(b===void 0)continue;(h&&m===h||!h&&(m==="light"||g===void 0))&&(g=b);let x=`[data-theme="${m}"]`;if(n[x]||(n[x]={}),n[x][d]=b,m==="dark"||m==="light"){let w=`@media (prefers-color-scheme: ${m})`;n[w]||(n[w]={}),n[w][d]=b}}g!==void 0&&(o[d]=g),i[l]=`var(${d})`,i[`.${l}`]={[l]:i[l]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},Ua=(t,e,r,o)=>{let n=A(),{cssVars:s}=n,i={value:t},a=!r&&!o;if(D(t)){if(a&&n.useVariable){let c={};for(let l in t)l.startsWith("@")&&D(t[l])&&(c[l.slice(1)]=t[l]);if(Object.keys(c).length){let l=ja(c,e,n);Object.assign(i,l)}}for(let c in t){let l=c.slice(0,1),f=t[c];if(l==="@"||l===":"||l==="."){let p=l==="@"&&c;i[c]=Ua(f,e,c,o||p)}else if(!a){let p=J(f,o),u=[...new Set([o,r].filter(m=>m).map(m=>m.slice(1)))],d=u.length?"-"+u.join("-"):"",g=`--${n.varPrefix?n.varPrefix+"-":""}theme-${e}${d}-${c}`;n.useVariable?(n.useThemeSuffixedVars&&(s[g]=p),i[c]=`var(${g})`):i[c]=p,i[`.${c}`]={[c]:i[c]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(_(t)&&rt(t)){let l=n.theme[t.slice(2)];return te(l,o)}return i},Ba=t=>{let e=A(),r={};for(let o in t){let n=o.slice(0,1);if(D(t[o])){if(n==="@")continue;n===":"?r[`&${o}`]=Ba(t[o]):n==="."&&(r[`&${o}`]=Ba(t[o]))}else r[o]=t[o]}return r},eh=(t,e)=>{let r=e.shift();return t[r]?eh(t[r],e):t},th=(t,e)=>E(e)?eh(t,e):_(e)&&t[e]?t[e]:t;var te=(t,e)=>{let r=A();if(_(t)&&rt(t)&&(t=te(t.slice(2))),!t||!_(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[o,...n]=E(t)?t:t.split(" "),s=r.theme[o];return s&&n.length?s=th(s,n):s&&e&&(s=th(s,e)),Ba(s)};T();T();var Wa=(t,e)=>{let r=A(),o=`--font-${e}`;if(!t||E(t)&&!t[0])return;let n;if(t.isVariable){let s=Qt(t.url,r.files)||t.url;ss(s)?n=is(s):n=dr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])n=xo(e,t,r.files);else{let s=Array.isArray(t.url)?t.url.map(i=>Qt(i,r.files)||i):Qt(t.url,r.files)||t.url;n=dr(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})}return{var:o,value:t,fontFace:n}},Ha=(t,e)=>{let r=A(),{fontFamily:o}=r;return bo(e||o,t)},ps=(t,e)=>{let r=A(),{fontFamily:o,fontFamilyTypes:n}=r,{value:s,type:i}=t;t.isDefault&&(o.default=e),S(s)&&(s=fr(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${n[i]}`;return{var:a,value:c,arr:s,type:i}};T();var rh=t=>{let e=A(),{typography:r,media:o}=e;for(let n in t){let s=n.slice(0,1)==="@",i=t[n];if(!s)continue;let{mediaRegenerate:a}=t,c=n.slice(1),{type:l,base:f,ratio:p,range:u,subSequence:d,h1Matches:h,unit:g}=t;Q(i,{type:l,base:f,ratio:p,range:u,subSequence:d,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=o[c],w="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[w]={fontSize:i.base/r.browserDefault+b},!a){Q(i,{sequence:{},scales:{},vars:{}}),Bt(i),hr(t,n);continue}Q(i,{sequence:{},scales:{},templates:{},vars:{}}),Bt(i),hr(t,n)}},oh=t=>{let e=A();if(t.h1Matches){let r=t.unit,o=La(t),{templates:n}=t;for(let s in o){let i=`h${parseInt(s)+1}`,a=n[i];n[i]={fontSize:e.useVariable?`var(${o[s]?.variable})`:`${o[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},qa=()=>{let t=A(),{typography:e}=t;Bt(e),oh(e),Ge(e),rh(e)},Ga=t=>{let e=A(),{typography:r}=e;return we(t,"fontSize",r)};T();T();var p_=t=>{for(let e in t){let r=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:n,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f}=t;Q(r,{type:n,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),Bt(r),hr(t,e)}},Ka=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),o=e.includes("border")||e.includes("outline");return r&&!o},Ya=()=>{let t=A(),{spacing:e}=t;Bt(e),Ge(e),p_(e)},d_=t=>{let e=A(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:Bt(t)},ft=(t,e="padding",r,o)=>{let n=d_(r);if(_(t)&&!o&&t.includes("(")){let i=qe(t);o=i[0],t=i[1]}let s=o?[t]:fr(t);if(E(s)){if(s.length>1){let i="";e==="borderWidth"&&(e="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},c=(l,f)=>we(s[f],e+l+i,n,o);return a[s.length].map((l,f)=>c(l,f))}return we(t,e,n,o)}},fe=(t,e,r,o)=>{let n=A(),{spacing:s}=n,i=r||t[e];if(!o&&_(i)&&i.includes("(")){let a=qe(i);o=a[0],i=a[1]}if(t.spacingRatio){let a=applyCustomSequence(t);return ft(i,e,a,o)}return ft(i,e,s,o)},Xa=t=>{let e=r=>{let o=["+","-","*","/"].includes(r),n=Wr.some(i=>t.includes(i));return o||n?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return t.split(",").map(r=>r.trim()).map(e).join(",").split(" ").map(e).join(" ")};T();var br=(t,e,r,o)=>{let n=A();if(E(t))return{"@light":br(t[0],e,"light"),"@dark":br(t[1],e,"dark")};if(S(t)){let a={};for(let c in t)a[c]=br(t[c],e,c.startsWith("@")?c.slice(1):c);return a}_(t)&&!le.test(t)&&(t=ur(t).map(a=>(a=a.trim(),a.split(/\s+/).map(c=>{if(c=c.trim(),!c)return"";if(c.startsWith("--"))return`var(${c})`;let l=J(c);if(xe(l))return l;if(/^\d/.test(c)||c==="0"||c.includes("px")||c.slice(-2)==="em"||c==="inset"||c==="none")return c;let f=ft(c,"shadow");return f&&f.shadow?f.shadow:c}).join(" "))).join(", "));let i=`--${n.varPrefix?n.varPrefix+"-":""}shadow-${e}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[i]=t),{var:i,value:t}},Za=(t,e)=>{let r=A();if(e||(e=r.globalTheme),!_(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(rt(t))return`var(${t})`;let[o]=E(t)?t:t.split(" "),s=r.shadow[o],i=S(s);if(!s)return r.verbose&&console.warn("Can't find color ",o),t;if(e){if(s[e])return s[e].value;r.verbose&&console.warn(t," - does not have ",e)}if(i&&s.value)return s.value;if(i){let a={};for(let c in s){let l=r.media[c.slice(1)],f="@media "+(l==="print"?`${l}`:`screen and ${l}`);a[f]=s.value}return a}return r.verbose&&console.warn("Can't find color",t),t};T();var Ja=()=>{let t=A(),{timing:e}=t;Bt(e),Ge(e)},ee=t=>{let e=A(),{timing:r}=e;return r[t]||r[ts(t)]||t},Vt=(t,e="timing")=>{let r=A(),{timing:o}=r;return we(t,e,o)};T();var Qa=()=>{let t=A(),{document:e,fontFamily:r,theme:o,typography:n}=t;return Q(e,{theme:o.document,fontFamily:bo(r),fontSize:n.base,lineHeight:n.lineHeight})};T();var ec={document:q},ds=(t,e)=>{let r=A();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?Na(e,t):t},rc=(t,e=ec)=>{let r=A(),o=Object.keys(t).length?{}:r.svg;for(let n in t)o[n]=t[n];sh(o,e)},oc=(t,e)=>{let r=A();return r.useIconSprite&&!r.semanticIcons?.[e]?ds(t,e):t},nc=(t,e=ec)=>{let r=A(),o=Object.keys(t).length?{}:r.icons;for(let n in t)o[n]=t[n];sh(o,e)},tc=(t,e={isRoot:!0})=>{if(!t||!t.createElementNS)return;let r=t.createElementNS("http://www.w3.org/2000/svg","svg");return e.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},h_=(t,e)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let o=`<svg xmlns="http://www.w3.org/2000/svg">${e}</svg>`,s=new r().parseFromString(o,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},nh=(t,e,r)=>{for(;e.firstChild;){let o=e.firstChild;r.appendChild(t.importNode(o,!0)),o.remove()}},sh=(t,e=ec)=>{let r=A(),o=e.document||q;if(!o||!o.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),fs(t);let n=o.querySelector("#svgSprite"),s=fs(t),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=h_(o,s);if(n)if(a)nh(o,a,n);else if(o.body.insertAdjacentHTML)n.insertAdjacentHTML("beforeend",s);else{let c=tc(o,{isRoot:!1});c.innerHTML=s,n.append(...c.children)}else if(a){let c=tc(o);c&&c.nodeType&&(nh(o,a,c),o.body.prepend(c))}else if(o.body.insertAdjacentHTML)o.body.insertAdjacentHTML("afterbegin",i);else{let c=tc(o);c&&c.nodeType&&(c.innerHTML=s,o.body.prepend(c))}};T();var sc=(t={})=>{let e=A(),{reset:r,typography:o,document:n}=e;if(r){if(r[":root"]){let c=r,l=o.templates;c.body={...e.useDocumentTheme?te("document"):{},...l.body},c.h1=l.h1,c.h2=l.h2,c.h3=l.h3,c.h4=l.h4,c.h5=l.h5,c.h6=l.h6}let{body:s,...i}=o.templates,a=e.useDocumentTheme?te("document"):{};if(r.html&&kt(r.html,a),o.unit){let{media:c}=e;for(let l in o){if(l.charAt(0)!=="@")continue;let f=o[l];if(!f||f.unit===o.unit||!f.unit)continue;let p=f.unit,u=f.base||o.base,d=f.browserDefault||o.browserDefault,h=l.slice(1),g=c[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=u/d+p}}return W(Q(r,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:o.unit?o.base/o.browserDefault+o.unit:o.browserDefault+"px",fontFamily:n.fontFamily,lineHeight:n.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:n.fontFamily,fontSize:o.base/o.browserDefault+e.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}})}};T();var g_=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),m_=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),y_=t=>g_.has(t),ke=t=>{let e=t+"";if(le.test(e))return e;let r=e.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?e:e.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(rt(n))return`var(${n})`;if(y_(n)||/^\d/.test(n)||n==="0")return n;let s=J(n);if(xe(s))return s;let i=ft(n,"border");return i&&i.border?i.border:n}).join(" ")},ih=t=>le.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(rt(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=J(e);return xe(r)?r:e}).join(" "),ah=(t,e)=>Za(t,e),ic=(t,e)=>le.test(t)?t:ur(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(rt(o))return`var(${o})`;if(o==="inset"||o==="none")return o;let n=J(o);if(xe(n)){let i=gt(o,e);return S(i)?Object.values(i).filter(a=>a.includes(": "+e))[0]:i}if(/^\d/.test(o)||o==="0"||o.includes("px")||o.slice(-2)==="em")return o;let s=ft(o,"shadow");return s&&s.shadow?s.shadow:o}).join(" "):"")).join(", "),ac=(t,e)=>{let r=t.indexOf("(");if(r===-1)return t;let o=t.slice(0,r+1),n=t.slice(r+1,t.lastIndexOf(")")),s=")",a=ur(n).map(c=>(c=c.trim(),c.split(/\s+/).map(f=>{if(!f||/^\d/.test(f)||f==="0"||m_.has(f)||f==="transparent"||le.test(f))return f;let p=J(f);return xe(p)?p:f}).join(" ")));return o+a.join(", ")+s},ch=(t,e)=>{let r=A();return t.split(", ").map(o=>rt(o)?`var(${o})`:o.includes("url")?o:o.includes("gradient")?ac(o,e):r.gradient[t]?{backgroundImage:gt(t,e||r.globalTheme)}:o.includes("/")||o.startsWith("http")||o.includes(".")&&!We(o)?`url(${o})`:o).join(" ")},lh=t=>_(t)&&t.split(" ").map(e=>ft(e,"gap").gap).join(" "),b_=t=>{let e=t.split(" ");return e.length?e.map(r=>rt(r)?`var(${r})`:r.length<3||r.includes("ms")?Vt(r).timing||r:ee(r)?ee(r):r).join(" "):t},cc=(t,e,r)=>{if(_(t))return t.split(",").map(o=>Vt(o).timing||o).join(",")},fh=t=>{let e=t.split(",");if(e.length)return e.map(b_).join(",")};function ot(t,e,r={},o={}){let n=G.call(this,e||r[t]);if(n==null)return;let s;if(_(n)){if(n.includes("(")){let c=qe(n);s=c[0],n=c[1]}let i=r.scaleBoxSize,a=Ka(t);!i&&a&&!o.ratio&&(n=Xa(n))}return o.ratio?fe(r,t,n,s):ft(n,t,void 0,s)}var L=(t,e=null,r)=>ot(t,e,r,{ratio:!0}),lc=(t,e,r)=>{if(_(t))return{borderRadius:t.split(" ").map((o,n)=>fe(e,r,o)[r]).join(" ")}};T();var x_=(t,e)=>{let r=A(),{cssVars:o}=r,n=e.startsWith("--")?e:`--${e}`;return o[n]=t,t},Rt=t=>t,uh={color:mr,gradient:yr,font:Wa,fontFamily:ps,fontfamily:ps,theme:za,icons:oc,semanticIcons:Rt,semanticicons:Rt,svg:ds,svgData:Rt,typography:Rt,shadow:br,spacing:Rt,media:Rt,grid:Rt,class:Rt,timing:Rt,reset:Rt,unit:Rt,animation:Rt,vars:x_},S_=(t,e,r)=>{let o=A(),n=Ta(t),s=n.toLowerCase(),i=o[n]||o[s]||o[t],a=uh[n]||uh[s];if(a)try{let c=a(e,r);return i&&(i[r]=c),i}catch(c){o.verbose&&console.warn("Error setting",s,"value",e,r,c)}o.verbose&&console.warn("Can not find",s,"method in scratch")},__=(t,e)=>{let r=A(),o=t.toLowerCase();return Object.keys(e).sort((s,i)=>{let a=S(e[s])||E(e[s])?1:0,c=S(e[i])||E(e[i])?1:0;return a-c}).forEach(s=>{try{return S_(o,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",o,"value",e[s],s,i)}}),r[o]||r[t]},ph=(t,e)=>{let r=e||A();r.globalTheme=t;let n=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),s=n&&n.defaultView||(typeof window<"u"?window:null);if(n){let a=r.themeRoot||n.documentElement;if(t&&t!=="auto")a.setAttribute("data-theme",t),t==="dark"||t==="light"?a.style.colorScheme=t:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let l=p=>{a.setAttribute("data-theme",p.matches?"dark":"light")},f=s.matchMedia("(prefers-color-scheme: dark)");if(l(f),a.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=l;try{f.addEventListener("change",l)}catch{f.addListener(l)}}}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(n&&r.cssVars){let a=r.scopeSelector||":root",c=n.styleSheets;for(let l=0;l<c.length;l++)try{let f=c[l].cssRules;for(let p=0;p<f.length;p++)if(f[p].selectorText===a){for(let u in r.cssVars)f[p].style.setProperty(u,r.cssVars[u]);return r}}catch{}}return r},w_={},wo=(t,e=w_)=>{let r=e.config||A(),{version:o,verbose:n,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:p,useDocumentTheme:u,useDefaultConfig:d,semanticIcons:h,files:g,assets:m,...y}=t;e.newConfig&&(r=Ud(e.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),n!==void 0&&(r.verbose=n),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),c!==void 0&&(r.useFontImport=c),a!==void 0&&(r.useSvgSprite=a),l!==void 0&&(r.useIconSprite=l),u!==void 0&&(r.useDocumentTheme=u),f!==void 0&&(r.globalTheme=f),p!==void 0&&(r.themeRoot=p),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),d!==void 0&&(r.useDefaultConfig=d),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),w=x&&x.defaultView||(typeof window<"u"?window:null),v=x&&(r.themeRoot||x.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(w&&w.matchMedia){let z=X=>{v.setAttribute("data-theme",X.matches?"dark":"light")},U=w.matchMedia("(prefers-color-scheme: dark)");if(z(U),v.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=z;try{U.addEventListener("change",z)}catch{U.addListener(z)}}}else v.setAttribute("data-theme","light"),v.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let O=Object.keys(y),R=new Set(O);if(O.forEach(P=>{let z=P.toLowerCase();z!==P&&R.has(z)&&W(y[z],y[P])}),O.map(P=>{let z=P.toLowerCase();if(!(z!==P&&R.has(z)))return __(P,y[P])}),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{qa()}catch(P){r.verbose&&console.warn("Error applying typography sequence",P)}if(y.spacing)try{Ya()}catch(P){r.verbose&&console.warn("Error applying spacing sequence",P)}if(y.timing)try{Ja()}catch(P){r.verbose&&console.warn("Error applying timing sequence",P)}Qa();let M=sc();return M&&(r.reset=M),r};var xr=new Map,k_=null,uc=null,v_=null;function pc(t){t.batchAtomicCss&&(uc=t.batchAtomicCss),t.compoundCssClass&&(v_=t.compoundCssClass)}var C_=new Set;function A_(t){try{let e=A();e&&(e.document=t)}catch{}t&&C_.add(t)}function mh(){try{let t=A();if(t?.document)return t.document}catch{}return typeof document<"u"?document:null}var E_={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 Ke(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function gs(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e.toString(36)}function T_(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():gs(e)}function dh(t,e,r){let o=(r?r+"":"")+t+":"+e,n=xr.get(o),s=n?null:Ke(t);if(!n){let a=E_[t]||gs(t),c=T_(e);n=r?`_${r}_${a}-${c}`:`_${a}-${c}`,xr.set(o,n)}if(typeof e=="string"&&(e.indexOf("}")!==-1||e.indexOf("{")!==-1))return n;let i=`.${n}{${s||Ke(t)}:${e}}`;return Pt(i),n}var hh=new WeakMap;function Pt(t,e){let r=yh(e);if(!r)return;let o=hh.get(r);if(o||(o=new Set,hh.set(r,o)),!o.has(t)){o.add(t);try{r.insertRule(t,r.cssRules.length)}catch{}}}var gh=new WeakMap;function yh(t){let e=t||mh();if(!e||!e.head)return null;let r=gh.get(e);if(r&&r.ownerNode&&r.ownerNode.parentNode===e.head)return r;let o=e.head.querySelector("style[data-smbls]");o||(o=e.createElement("style"),o.setAttribute("data-smbls",""),e.head.appendChild(o));let n=o.sheet;return gh.set(e,n),k_=n,n}var O_=8;function Ye(t,e,r){if(!t||typeof t!="object")return"";let o=null,n=0,s=[],i=[];for(let c in t){let l=t[c];l==null||l===!1||l===""||(typeof l=="object"?i.push([c,l]):uc?(o||(o=[]),o.push(c,String(l)),n++):s.push(dh(c,String(l),r)))}if(o&&n>=O_){let c=o.join("\0"),l=uc(c),f=l.indexOf("\0"),p=l.substring(0,f),u=l.substring(f+1);if(u){let d=u.split(`
37
- `);for(let h=0;h<d.length;h++)d[h]&&Pt(d[h])}s.push(p)}else if(o)for(let c=0;c<o.length;c+=2)s.push(dh(o[c],o[c+1],r));let a=[];for(let c=0;c<i.length;c++)a.push(R_(i[c][0],i[c][1],r));return s.concat(a).join(" ").trim()}var fc=new Map;function R_(t,e,r){let o=(r?r+"":"")+t+JSON.stringify(e),n=xr.get(o);if(n){let u=fc.get(n);if(u)for(let d=0;d<u.length;d++)Pt(u[d]);return n}n=r?`_${r}_c${gs(o)}`:`_c${gs(o)}`;let s="",i=[],a=u=>typeof u=="string"&&(u.indexOf("{")!==-1||u.indexOf("}")!==-1),c=(u,d)=>{let h="";for(let g in d){let m=d[g];if(m!=null)if(typeof m=="object")c([...u,g],m);else{if(a(m))continue;h+=`${Ke(g)}:${m};`}}h&&(u.length===0?s+=h:i.push({chain:u,body:h}))};c([],e);let l=u=>{if(!u.length)return`.${n}`;let d=u[0].split(",").map(h=>h.trim()).map(h=>h.includes("&")?h.replace(/&/g,`.${n}`):h.startsWith(":")?`.${n}${h}`:`.${n} ${h}`);for(let h=1;h<u.length;h++){let g=u[h].split(",").map(y=>y.trim()),m=[];for(let y of d)for(let b of g)b.includes("&")?m.push(b.replace(/&/g,y)):b.startsWith(":")?m.push(y+b):m.push(y+" "+b);d=m}return d.join(", ")},f=[];if(t.startsWith("@media")||t.startsWith("@supports")){if(s){let u=`${t}{.${n}{${s}}}`;f.push(u),Pt(u)}for(let u of i){let d=l(u.chain),h=`${t}{${d}{${u.body}}}`;f.push(h),Pt(h)}return fc.set(n,f),xr.set(o,n),n}let p=l([t]);if(s){let u=`${p}{${s}}`;f.push(u),Pt(u)}for(let u of i){let h=`${l([t,...u.chain])}{${u.body}}`;f.push(h),Pt(h)}return fc.set(n,f),xr.set(o,n),n}function st(t){if(yh(),typeof t=="string"){Pt(t);return}let e=Object.keys(t),r=o=>{let n=o.match(/max-width:\s*(\d+)/);return n?parseInt(n[1]):0};e.sort((o,n)=>{let s=o.startsWith("@media"),i=n.startsWith("@media");return!s&&!i?0:s?i?r(n)-r(o):1:-1});for(let o of e){let n=t[o];if(o.startsWith("@media")||o.startsWith("@supports"))for(let s in n){let i=n[s];if(typeof i=="object"&&i!==null){let a="";for(let c in i){let l=c.startsWith("--")?c:Ke(c);a+=`${l}:${i[c]};`}Pt(`${o}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:Ke(s);Pt(`${o}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in n){let c=n[a];if(typeof c=="object"&&c!==null)i=!0;else{let l=a.startsWith("--")?a:Ke(a);s+=`${l}:${c};`}}if(s&&Pt(`${o}{${s}}`),i){let a=[],c=[];for(let l in n)typeof n[l]=="object"&&n[l]!==null&&(l.startsWith("@media")||l.startsWith("@supports")?a.push(l):c.push(l));a.sort((l,f)=>{let p=u=>{let d=u.match(/max-width:\s*(\d+)/);return d?parseInt(d[1]):0};return p(f)-p(l)});for(let l of c)st({[`${o} ${l}`]:n[l]});for(let l of a)st({[l]:{[o]:n[l]}})}}}}function ms(t,e){let r="";for(let o in e){let n="";for(let s in e[o])n+=`${Ke(s)}:${e[o][s]};`;r+=`${o}{${n}}`}return Pt(`@keyframes ${t}{${r}}`),t}function P_(){return xr.size}T();var dc="http://www.w3.org/2000/svg",xs=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"]),I_=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 ys(t){return I_.has(t)||xs.has(t)}function Ss(t){return xs.has(t)}function Sr(t){let{tag:e,key:r}=t;if(typeof e=="function"&&(e=e(t)),e===!0&&(e=r),typeof e=="string"&&ys(e))return e;if(!r||typeof r!="string")return"div";let o=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template"]),n=r.toLowerCase();return n.includes(".")&&(n=n.split(".")[0]),n.includes("_")&&(n=n.split("_")[0]),ys(n)&&!o.has(n)?n:"div"}var bh={};function bs(t,e){let r=e?.context?.document||globalThis.document;if(!r)return null;if(t==="string")return r.createTextNode(e?.text||"");if(t==="fragment")return r.createDocumentFragment();if(Ss(t)){let o=e?.parent;if(t==="svg"||o?.node?.namespaceURI===dc)return r.createElementNS(dc,t);if(t!=="svg")return r.createElement("div")}return r.createElement(t)}function _r(t){let e=t.tag=Sr(t),o=Ss(e)&&(e==="svg"||t.parent?.node?.namespaceURI===dc)?"svg:"+e:e,n=t?.context?.document||globalThis.document,s=bh[o];if(s||(s=bh[o]=bs(e,t)),!s)return null;let i=n&&s.ownerDocument!==n?bs(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}var At=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"]),xh={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},wr=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"]),Sh=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),_s=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 hc=new WeakMap,$_={passive:!0},F_={passive:!0,capture:!0},gc=(t,e)=>Sh.has(t)?e?F_:$_:e||!1;function wh(t){let e=hc.get(t);return e||(e={handlers:new Map,installed:new Set},hc.set(t,e)),e}function D_(t,e){let r=wh(e);if(r.installed.has(t))return;r.installed.add(t);let o=t==="focus"||t==="blur"||t==="focusin"||t==="focusout"||t==="mouseenter"||t==="mouseleave",n=t==="mouseenter"||t==="mouseleave";e.addEventListener(t,s=>{let i=s.target;for(;i&&i!==e;){let a=r.handlers.get(t);if(a){let c=a.get(i);if(c){if(n&&s.relatedTarget&&i.contains(s.relatedTarget)){i=i.parentNode;continue}if(c(s),s.cancelBubble)return}}i=i.parentNode}},gc(t,o))}function mc(t,e,r,o){o||(o=e.ownerDocument?.documentElement||e.getRootNode());let n=wh(o);D_(t,o),n.handlers.has(t)||n.handlers.set(t,new WeakMap),n.handlers.get(t).set(e,r)}function yc(t,e,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let o=hc.get(r);if(!o)return;let n=o.handlers.get(t);n&&n.delete(e)}function _h(t){return _s.has(t)&&!wr.has(t)}function ws(t,e,r){let{node:o,context:n}=e;if(!o)return;let s=n?.designSystem,i=a=>{s&&lt(s);try{let c=r.call(e,a,e,e.state,n);if(c&&typeof c.then=="function"){c.catch(l=>{e.error=l,console.error("[DOMQL] Async event error:",l)}).finally(()=>{s&&nt()});return}}catch(c){if(e.error=c,console.error("[DOMQL] Event error:",c),n?.strictMode)throw c}s&&nt()};if(_h(t)){let a=n?.rootNode||o.ownerDocument?.documentElement;mc(t,o,i,a)}else o.addEventListener(t,i,gc(t,!1));e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(_h(t)){let a=n?.rootNode||o.ownerDocument?.documentElement;yc(t,o,a)}else o.removeEventListener(t,i,gc(t,!1))})}function kh(t){let e=[];return t.extends&&(Array.isArray(t.extends)?e.push(...t.extends):e.push(t.extends)),t.extend&&(Array.isArray(t.extend)?e.push(...t.extend):e.push(t.extend)),e}function ks(t,e,r){let o=kh(e);if(!o.length)return;let s=(t.context||r?.context||{}).components||{};for(let i=0;i<o.length;i++){let a=vh(o[i],s);a&&a!==e&&Ch(t,a,r,new Set([e]))}}function vh(t,e){if(typeof t=="string"){if(t.includes(">")){let r=t.split(">").map(n=>n.trim()),o=e[r[0]]||e[`smbls.${r[0]}`];for(let n=1;n<r.length&&o;n++)o=o[r[n]];return o||null}return e[t]||e[`smbls.${t}`]||null}return typeof t=="object"&&t!==null?t:null}function Ch(t,e,r,o=new Set){if(o.has(e))return;o.add(e);let n=kh(e);if(n.length){let i=(t.context||r?.context||{}).components||{};for(let a=0;a<n.length;a++){let c=vh(n[a],i);c&&Ch(t,c,r,o)}}for(let s in e){if(s==="extends"||s==="extend")continue;let i=e[s];t[s]===void 0?i&&typeof i=="object"&&!Array.isArray(i)&&typeof i!="function"?t[s]={...i}:t[s]=i:typeof t[s]=="object"&&typeof i=="object"&&!Array.isArray(t[s])&&!Array.isArray(i)&&t[s]!==null&&i!==null?t[s]=Ah(t[s],i):t[s]=i}}function Ah(t,e){let r={...t};for(let o in e){let n=r[o],s=e[o];n&&s&&typeof n=="object"&&typeof s=="object"&&!Array.isArray(n)&&!Array.isArray(s)&&typeof n!="function"&&typeof s!="function"?r[o]=Ah(n,s):r[o]=s}return r}ar();function vs(t={},e={}){let r=this,o=r.__ref;if(o){if((typeof t=="string"||typeof t=="number")&&(t={text:t}),!e.preventListeners&&typeof r.onBeforeUpdate=="function"&&r.onBeforeUpdate(r,r.state,r.context,e)===!1)return r;if(Ie(()=>{if(t.state&&dt(r.state)&&r.state.update(t.state),t.text!==void 0&&(r.text=t.text,!o.__exec.text&&r.node&&(r.tag==="string"?r.node.nodeValue=t.text??"":r.node.textContent=t.text??"")),t.html!==void 0&&(r.html=t.html,!o.__exec.html&&r.node&&(r.node.innerHTML=t.html)),t.style&&r.node?.style){if(!o.__exec.style)for(let n in t.style){let s=t.style[n];if(s==null)continue;let i=n.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=String(s).replace(/\s*!important\s*$/,"");r.node.style.setProperty(i,a,"important")}r.style||(r.style={}),Object.assign(r.style,t.style)}if(t.attr&&r.node?.setAttribute){for(let n in t.attr){let s=t.attr[n];s==null||s===!1?r.node.removeAttribute(n):typeof s!="function"&&typeof s!="object"&&r.node.setAttribute(n,s===!0?"":s)}r.attr||(r.attr={}),Object.assign(r.attr,t.attr)}if(t.data&&r.node?.dataset){for(let n in t.data)r.node.dataset[n]=t.data[n];r.data||(r.data={}),Object.assign(r.data,t.data)}for(let n in t){if(At.has(n)||n==="state")continue;let s=t[n],i=r[n];if(i&&i.__ref&&typeof i.update=="function")i.update(s,e);else if(typeof s=="object"&&s!==null){let a=n.charCodeAt(0);a>=65&&a<=90&&zt(s,r,n,e)}else n!=="text"&&n!=="html"&&n!=="style"&&n!=="attr"&&n!=="data"&&(r[n]=s)}}),r.node&&o.__conditionalRunners)for(let n of o.__conditionalRunners)n();return Yt("update",r),!e.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,e),r}}function kr(t){if(!t)return;let e=t.__ref;if(e){try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(e.__effects){for(let r=0;r<e.__effects.length;r++)e.__effects[r].dispose();e.__effects.length=0}if(e.__eventCleanup){for(let r=0;r<e.__eventCleanup.length;r++)e.__eventCleanup[r]();e.__eventCleanup.length=0}if(e.__children){for(let r=0;r<e.__children.length;r++){let o=e.__children[r],n=t[o];n&&n.__ref&&kr(n)}e.__children.length=0}if(t.node?.parentNode&&t.node.remove(),t.state?.destroy&&t.state.__element===t&&t.state.destroy(),t.parent?.__ref?.__children){let r=t.parent.__ref.__children.indexOf(t.key);r!==-1&&t.parent.__ref.__children.splice(r,1),delete t.parent[t.key]}try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(r){console.error("[smbls] onRemove error:",r)}t.node=null,t.parent=null,t.__ref=null}}function Cs(){kr(this)}T();T();var L_=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],M_=["none","forwards","backwards","both"],N_=["normal","reverse","alternate","alternate-reverse"],j_=["running","paused"],B_=t=>/^[\d.]+m?s$/.test(t),V_=0,bc=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{};if(S(t)){let n=`smbls-anim-${V_++}`;return{animationName:ms(n,t)}}let o=r&&r[t];return S(o)?ms(t,o):t},z_=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{},o=t.split(/\s+/),n=null,s=[],i=null,a=null,c=null,l=null,f=null;for(let p of o)r&&r[p]?n=p:B_(p)?s.push(p):L_.includes(p)||p.startsWith("cubic-bezier")||p.startsWith("steps(")?i=p:p==="infinite"||/^\d+$/.test(p)?a=p==="infinite"?p:Number(p):N_.includes(p)?c=p:M_.includes(p)?l=p:j_.includes(p)?f=p:n||(n=p);return{name:n,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:l,playState:f}},Eh={animation:(t,e)=>{if(_(t)&&t.includes(" ")){let r=z_(t,e);return{animationName:bc(r.name||t,e),animationDuration:r.durations[0]||Vt(e.animationDuration||"A").timing,animationDelay:r.durations[1]||Vt(e.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||ee(e.animationTimingFunction||"ease"),animationFillMode:r.fillMode||e.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:e.animationIterationCount||1,animationPlayState:r.playState||e.animationPlayState,animationDirection:r.direction||e.animationDirection}}return{animationName:bc(t,e),animationDuration:Vt(e.animationDuration||"A").timing,animationDelay:Vt(e.animationDelay||"0s").timing,animationTimingFunction:ee(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||"both",animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}},animationName:(t,e)=>({animationName:bc(t,e)}),animationDuration:t=>({animationDuration:Vt(t).timing}),animationDelay:t=>({animationDelay:Vt(t).timing}),animationTimingFunction:t=>({animationTimingFunction:ee(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};T();var Th={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>L("height",t,e),width:(t,e)=>L("width",t,e),boxSizing:t=>ut(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!_(t))return;let[e,r]=t.split(" ");return{...ot("height",e),...ot("width",r||e)}},inlineSize:(t,e)=>L("inlineSize",t,e),blockSize:(t,e)=>L("blockSize",t,e),minWidth:(t,e)=>L("minWidth",t,e),maxWidth:(t,e)=>L("maxWidth",t,e),widthRange:t=>{if(!_(t))return;let[e,r]=t.split(" ");return{...ot("minWidth",e),...ot("maxWidth",r||e)}},minHeight:(t,e)=>L("minHeight",t,e),maxHeight:(t,e)=>L("maxHeight",t,e),heightRange:t=>{if(!_(t))return;let[e,r]=t.split(" ");return{...ot("minHeight",e),...ot("maxHeight",r||e)}},size:t=>{if(!_(t))return;let[e,r]=t.split(" ");return{...L("inlineSize",e),...L("blockSize",r||e)}},minBlockSize:(t,e)=>L("minBlockSize",t,e),minInlineSize:(t,e)=>L("minInlineSize",t,e),maxBlockSize:(t,e)=>L("maxBlockSize",t,e),maxInlineSize:(t,e)=>L("maxInlineSize",t,e),minSize:t=>{if(!_(t))return;let[e,r]=t.split(" ");return{...ot("minInlineSize",e),...ot("minBlockSize",r||e)}},maxSize:t=>{if(!_(t))return;let[e,r]=t.split(" ");return{...ot("maxInlineSize",e),...ot("maxBlockSize",r||e)}},borderWidth:(t,e)=>L("borderWidth",t,e),padding:(t,e)=>L("padding",t,e),scrollPadding:(t,e)=>L("scrollPadding",t,e),paddingInline:t=>{if(!_(t))return;let[e,r]=t.split(" ");return{...ot("paddingInlineStart",e),...ot("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!_(t))return;let[e,r]=t.split(" ");return{...ot("paddingBlockStart",e),...ot("paddingBlockEnd",r||e)}},paddingTop:(t,e)=>L("paddingBlockStart",t,e),paddingBottom:(t,e)=>L("paddingBlockEnd",t,e),paddingLeft:(t,e)=>L("paddingInlineStart",t,e),paddingRight:(t,e)=>L("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>L("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>L("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>L("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>L("paddingInlineEnd",t,e),margin:(t,e)=>L("margin",t,e),marginInline:t=>{if(!_(t))return;let[e,r]=t.split(" ");return{...ot("marginInlineStart",e),...ot("marginInlineEnd",r||e)}},marginBlock:(t,e)=>{if(!_(e.marginBlock))return;let[r,o]=e.marginBlock.split(" ");return{...ot("marginBlockStart",r),...ot("marginBlockEnd",o||r)}},marginTop:(t,e)=>L("marginBlockStart",t,e),marginBottom:(t,e)=>L("marginBlockEnd",t,e),marginLeft:(t,e)=>L("marginInlineStart",t,e),marginRight:(t,e)=>L("marginInlineEnd",t,e),marginInlineStart:(t,e)=>L("marginInlineStart",t,e),marginInlineEnd:(t,e)=>L("marginInlineEnd",t,e),marginBlockStart:(t,e)=>L("marginBlockStart",t,e),marginBlockEnd:(t,e)=>L("marginBlockEnd",t,e),gap:t=>({gap:lh(t)}),columnGap:(t,e)=>fe(e,"columnGap",t),rowGap:(t,e)=>fe(e,"rowGap",t),flexWrap:t=>({display:"flex",flexWrap:t}),flexFlow:(t,e)=>{let r=e.reverse;if(!_(t))return;let[o,n]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(o="row"),(t.startsWith("y")||t==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&r?"-reverse":"")+" "+(n||"")}},flexAlign:t=>{if(!_(t))return;let[e,r]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:r}},round:(t,e)=>lc(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>lc(t??e.round,e,"borderRadius")};var Oh={fontSize:t=>Ga(t)||t,fontFamily:t=>({fontFamily:Ha(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t})};var Rh={overflow:t=>({overflow:t,scrollBehavior:"smooth"}),cursor:(t,e,r,o)=>{if(!t)return;let n=o.assets&&o.assets[t];if(n&&n.content)t=`url(${n.content.src})`;else{let s=o.files&&o.files[t];s&&s.content&&(t=`url(${s.content.src})`)}return{cursor:t}},opacity:t=>t!=null?{opacity:String(t)}:void 0,visibility:t=>t!=null?{visibility:t}:void 0,pointerEvents:t=>t!=null?{pointerEvents:t}:void 0};var Ph={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:t.split(" ").map(r=>ft(r,"k").k).join(" ")}},left:t=>ft(t,"left"),top:t=>ft(t,"top"),right:t=>ft(t,"right"),bottom:t=>ft(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>ft(r,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>ft(r,"k").k);return{left:e[0],right:e[1]||e[0]}}};T();var Ut=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},Ih={theme:(t,e)=>{if(t)return e.themeModifier?te(t,`@${e.themeModifier}`):te(t)},color:(t,e)=>{let r=Ut(e);if(t)return{color:gt(t,r)}},background:(t,e)=>{let r=Ut(e);if(t)return _(t)&&t.includes("gradient")?{background:ac(t,r)}:{background:gt(t,r)}},backgroundColor:(t,e)=>{let r=Ut(e);if(t)return{backgroundColor:gt(t,r)}},backgroundImage:(t,e,r,o)=>{let n=Ut(e);if(!t)return;let s=o.assets&&o.assets[t];if(s&&s.content)t=s.content.src;else{let i=o.files&&o.files[t];i&&i.content&&(t=i.content.src)}return{backgroundImage:ch(t,n)}},textStroke:t=>({WebkitTextStroke:ih(t)}),outline:t=>({outline:ke(t)}),outlineOffset:(t,e)=>L("outlineOffset",t,e),border:t=>({border:ke(t)}),borderColor:(t,e)=>{let r=Ut(e);if(t)return{borderColor:gt(t,r)}},borderTopColor:(t,e)=>{let r=Ut(e);if(t)return{borderTopColor:gt(t,r)}},borderBottomColor:(t,e)=>{let r=Ut(e);if(t)return{borderBottomColor:gt(t,r)}},borderLeftColor:(t,e)=>{let r=Ut(e);if(t)return{borderLeftColor:gt(t,r)}},borderRightColor:(t,e)=>{let r=Ut(e);if(t)return{borderRightColor:gt(t,r)}},borderLeft:t=>({borderLeft:ke(t)}),borderTop:t=>({borderTop:ke(t)}),borderRight:t=>({borderRight:ke(t)}),borderBottom:t=>({borderBottom:ke(t)}),shadow:(t,e)=>{let r=Ut(e);if(t)return{boxShadow:ah(t,r)}},boxShadow:(t,e)=>{if(!_(t))return;let[r,o]=t.split("!importan"),n=Ut(e),s=o?" !important":"";return{boxShadow:ic(r.trim(),n)+s}},textShadow:(t,{context:e})=>({textShadow:ic(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:ke(t)})};var As={transition:t=>({transition:fh(t)}),transitionDuration:t=>({transitionDuration:cc(t)}),transitionDelay:t=>({transitionDelay:cc(t)}),transitionTimingFunction:t=>({transitionTimingFunction:ee(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};T();var $h={flow:(t,e)=>{let r=e.reverse;if(!_(t))return;let[o,n]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(o="row"),(t.startsWith("y")||t==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&r?"-reverse":"")+" "+(n||"")}},wrap:(t,e)=>({display:"flex",flexWrap:t}),align:(t,e)=>{let[r,o]=t.split(" ");return{display:"flex",alignItems:r,justifyContent:o}}};var Fh={area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:t}),templateColumns:t=>({gridTemplateColumns:t}),autoColumns:t=>({gridAutoColumns:t}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:t}),templateRows:t=>({gridTemplateRows:t}),autoRows:t=>({gridAutoRows:t}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var it={...Eh,...Th,...Oh,...Rh,...Ph,...Ih,...As,...$h,...Fh};var mt=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"]);T();var U_=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,W_=(t,e,r)=>{let{context:o}=r;if(!o.designSystem?.media)return;let n=t.slice(1),s=o.designSystem.media[n],i=It(e,r);if(!s)return{[t]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(U_),c=a?a[1]||a[2]:n,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let f=o.designSystem?.scopeSelector||":root",p=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${p} &`]:i}}return l},Dh=(t,e,r)=>({[t]:It(e,r)}),ko=(t,e,r)=>{let o=`&${t}`,n=It(e,r);if(t.includes(",")&&n){let s={},i={};for(let a in n)typeof n[a]=="object"&&n[a]!==null?i[a]=n[a]:s[a]=n[a];if(Object.keys(i).length){let a=o.split(",").map(l=>l.trim()),c={};Object.keys(s).length&&(c[o]=s);for(let l in i){let f=a.map(p=>`${p} ${l}`).join(", ");c[f]=i[l]}return c}}return{[o]:n}},xc=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},H_=(t,e,r)=>{let o=t.slice(1),n=xc(o,r);if(n===void 0&&(n=!!r[o]),!!n)return It(e,r)},q_=(t,e,r)=>({[t]:e}),G_=(t,e,r)=>{let o=t.slice(1),n=r[o]===!0||r.state?.[o];if(!n)if(typeof r[o]=="function")try{n=r[o](r,r.state,r.context)}catch{}else{let s=xc(o,r);s!==void 0&&(n=s)}if(n)return It(e,r)},K_=(t,e,r)=>{let o=t.slice(1),n=r[o]===!0||r.state?.[o];if(!n)if(typeof r[o]=="function")try{n=r[o](r,r.state,r.context)}catch{}else{let s=xc(o,r);s!==void 0&&(n=s)}if(!n)return It(e,r)},Lh=(t,e)=>It(t,e),Mh={"@":W_,":":ko,"[":ko,"*":ko,"+":ko,"~":ko,"&":Dh,">":Dh,$:H_,"-":q_,".":G_,"!":K_};var Sc=Ne(),Y_=(t,e,r)=>{let o=e?.context?.designSystem;o&&lt(o);try{let n={},s={},i=(a,c)=>{if(r.unpack){n={...n,...c};return}n[a]=c};for(let a in t){let c=t[a];if(a==="class"&&e.call("isString",t.class)){let l=c.split(" ");if(l.length){let f=e.context.designSystem.class,p=l.reduce((u,d)=>Q(u,f[d]),{});n.designSystemClass=p}}else if(a==="true"){let l=G(c,e);Q(n,Lh(l,e))}else if(e.classlist[a]){let l=e.classlist[a],f=C(l)?l(e,e.state,e.context):l;f&&i(a,f),!Sc&&S(n[a])&&(n[a].label=a)}else if(it[a]){let l=G(c,e);E(l)&&(l=l.reduce((p,u)=>Q(p,u),{}));let f=it[a](l,e,e.state,e.context);E(f)&&(f=f.reduce((p,u)=>Q(p,u),{})),f&&i(a,f),!Sc&&S(n[a])&&(n[a].label=a)}else if(mt.has(a)){let l=G(c,e);typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),i(a,{[a]:l}),!Sc&&S(n[a])&&(n[a].label=a)}else s[a]=c}return[n,s]}finally{o&&nt()}},X_=(t,e)=>{let r={};for(let o in t){let n=Mh[o.slice(0,1)];if(n){let s=n(o,t[o],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?kt(r[i],s[i]):r[i]=s[i])}}return r},It=(t,e,r={unpack:!0})=>{let[o,n]=Y_(t,e,r),s=X_(n,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return cn(o,s);o._selectors=s}return o},hO=(t,e)=>{let r={};if(t.class)for(let o in t.class)r[o]=t.class[o](e);return r};T();var Z_=t=>{if(S(t))return It(t,t)},xO=(t,e)=>{let r=Z_(t);return typeof e=="function"?e(r):Ye(r)};T();function Bh(t,e,r){let o=t?.context?.analyze;if(!o||!o.emit||e==="warn"&&!o.shouldCapture("warnings")||e==="error"&&!o.shouldCapture("errors"))return;let n=r.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");o.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:e==="error"?"error":"warning",level:e,hook:e==="error"?"el.error":"el.warn",element:{key:t.key!=null?String(t.key):null,name:t.__name||null,tag:t.tag||null},message:n||null,args:r})}function J_(...t){return Bh(this,"warn",t),Hn.apply(this,t)}function Q_(...t){return Bh(this,"error",t),lr.apply(this,t)}var Nh={update:vs,remove:Cs,getDB:Yn,getQuery:Xn,getRootData:zn,getChildren:Mn,getPath:Nn,nextElement:qn,previousElement:Gn,verbose:po,warn:J_,error:Q_,variables:Kn,spotByPath:Ln,set(t,e){if(this.removeContent(),t!=null){let r=this.context?.__create;r&&r(t,this,"content",e)}this.__ref&&(this.__ref.contentManaged=!0)},reset(t){let e=this.context?.__create;if(!e)return this;let r=this.parent,o=this.key,n=this.parse();return this.remove(),e(n,r,o,t)},lookup(t){let e=this.parent;for(;e;){if(typeof t=="function"){if(t(e))return e}else if(typeof t=="string"){if(e.key===t)return e;if(e[t]&&e[t].__ref)return e[t]}e=e.parent}return null},lookdown(t){let e=this.__ref;if(!e?.__children)return null;for(let r of e.__children){let o=this[r];if(!o)continue;if(typeof t=="function"){if(t(o))return o}else if(typeof t=="string"&&o.key===t)return o;let n=o.lookdown?.(t);if(n)return n}return null},lookdownAll(t,e=[]){let r=this.__ref;if(!r?.__children)return e;for(let o of r.__children){let n=this[o];n&&(typeof t=="function"?t(n)&&e.push(n):typeof t=="string"&&n.key===t&&e.push(n),n.lookdownAll?.(t,e))}return e},getRef(){return this.__ref},getRoot:Vn,getRootState:Bn,getRootContext:Un,getContext:Wn,parse(t){let e={},r=t?new Set(t):null,o=this.__ref?.__exec;for(let n in this)if(!(n==="parent"||n==="node"||n==="__ref")&&!r?.has(n)){if(o&&o[n]!==void 0){e[n]=o[n];continue}typeof this[n]!="function"&&(e[n]=this[n])}return e},parseDeep(t){let e=this.parse(t),r=this.__ref;if(r?.__children)for(let o of r.__children)this[o]?.parseDeep&&(e[o]=this[o].parseDeep(t));return e},keys(){return Object.keys(this)},log(...t){if(t.length){let e={};for(let r of t)e[r]=this[r];console.log(e)}else console.log(this)},setProps(t,e){return this.update(t,e)},setNodeStyles(t){if(this.node?.style)for(let e in t){let r=t[e];if(r==null)continue;let o=e.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),n=String(r).replace(/\s*!important\s*$/,"");this.node.style.setProperty(o,n,"important")}},call(t,...e){let r=this.context,o=r?.methods?.[t]||r?.functions?.[t]||r?.utils?.[t]||this[t];if(typeof o=="function")return o.call(this,...e)},removeContent(){let t=this.__ref;if(!t?.__children)return;let e=this.content;if(e?.remove){e.remove(),delete this.content;let r=t.__children.indexOf("content");r!==-1&&t.__children.splice(r,1)}e?.node?.parentNode&&e.node.parentNode.removeChild(e.node)}},jh=new WeakMap;function tw(t){if(!t)return Nh;let e=jh.get(t);if(e)return e;e=Object.create(Nh);let r=t.methods;if(r)for(let o in r)e[o]=r[o];return jh.set(t,e),e}function Es(t){let e=tw(t.context);Object.setPrototypeOf(t,e)}T();ar();var ew=(t,e,r)=>{Object.defineProperty(t,e,{value:r,enumerable:!1,configurable:!0,writable:!0})},Wt=(t,e)=>{if(dt(e)){let n=e.__raw||e;e.toggle||Object.defineProperty(n,"toggle",{value:function(s,i={}){e[s]=!e[s]},enumerable:!1,configurable:!0}),e.set||Object.defineProperty(n,"set",{value:function(s,i={}){return e.clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.update(s,i),e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"setByPath",{value:function(s,i,a={}){let c=s.split("."),l=e;for(let f=0;f<c.length-1;f++)l[c[f]]===void 0&&(l[c[f]]={}),l=l[c[f]];return l[c[c.length-1]]=i,e},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"getByPath",{value:function(s){let i=s.split("."),a=e;for(let c=0;c<i.length;c++){if(a==null)return;a=a[i[c]]}return a},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"removeByPath",{value:function(s,i={}){let a=s.split("."),c=e;for(let l=0;l<a.length-1;l++){if(c==null)return e;c=c[a[l]]}return c&&delete c[a[a.length-1]],e},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"reset",{value:function(s={}){let i=e.parse();return e.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"apply",{value:function(s,i={}){if(typeof s=="function"){let a=s(e);return e.update(a,i)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"applyFunction",{value:function(s,i={}){if(typeof s=="function")return s(e),e.update(e.parse(),i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"rootUpdate",{value:function(s,i={}){let a=e;for(;a?.parent&&dt(a.parent);)a=a.parent;return a.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"parentUpdate",{value:function(s,i={}){if(e.parent)return e.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"quietReplace",{value:function(s,i={}){return e.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(n,"root")||Object.defineProperty(n,"root",{get:function(){let s=e;for(;s?.parent&&dt(s.parent);)s=s.parent;return s},enumerable:!1,configurable:!0});return}if(!e||typeof e!="object")return;let r=()=>{for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&delete e[n]},o={update(n){if(!n||typeof n!="object")return e;for(let s in n)e[s]=n[s];return e},apply(n){if(typeof n!="function")return e;let s=n(e);return s?e.update(s):e},parse(){return{...e}},toggle(n){return e[n]=!e[n],e},set(n){if(!n||typeof n!="object")return e;r();for(let s in n)e[s]=n[s];return e},replace(n){return e.set(n)},clean(){return r(),e}};for(let n in o)typeof e[n]!="function"&&ew(e,n,o[n])};var rw=function(t,e,r){return t.state=Vh(t,e,r),t.state},Vh=function(t,e,r){let{__ref:o}=t,n=t.state;if(n==null||n===!1){let s=e?.state||{};return Wt(t,s),s}if(typeof n=="string")return o&&(o.__state=n),o.__stateType="string",ow(n,t,e);if(typeof n=="number"||typeof n=="boolean"){o&&(o.__state=n,o.__stateType=typeof n,o.__hasRootState=!0);let s=Mt({value:n});return s.__element=t,e?.state&&(s.parent=e.state),Wt(t,s),s}if(typeof n=="function"&&(n=n(t,e?.state)||{}),typeof n=="object"&&!dt(n)){o&&(o.__hasRootState=!0),n.isRootState&&o&&(o.__hasRootState=!0);let s=Mt({...n});if(s.__element=t,!Object.getOwnPropertyDescriptor(s,"root")){let i=e?.state?.root||e?.state||s;Object.defineProperty(s,"root",{get:()=>i,enumerable:!1,configurable:!0})}return e?.state&&(s.parent=e.state,e.state.__children&&(e.state.__children[t.key]=s)),Wt(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,r),s}return dt(n)?(n.__element=t,n):e?.state||{}};function _c(t,e){if(!e)return t;let r=e.split("/"),o=t;for(let n of r){if(o==null)return{};o=o[n]}return o??{}}function ow(t,e,r){if(!r?.state)return{};if(t===".")return r.state;if(t.startsWith("../")){let n=t.slice(3),s=r.state?.parent;return n&&s?_c(s,n):s??r.state??{}}if(t.startsWith("~/")){let n=r.state;for(;n?.parent;)n=n.parent;let s=t.slice(2);return s?_c(n,s):n??{}}let o=_c(r.state,t);if(o&&typeof o=="object"&&!dt(o)&&!Object.getOwnPropertyDescriptor(o,"root")){let n=r.state?.root||r.state;Object.defineProperty(o,"root",{get:()=>n,enumerable:!1,configurable:!0})}return o}var nw=(t,e)=>{if(!t)return Uh;let r=aw(t,e);return!r||!r.state?Uh:lw(r.state)},sw=()=>zr()!=null,iw=128;function aw(t,e){let r=typeof e=="function"?e:typeof e=="string"?s=>!!s?.[e]:s=>!!s?.state,o=t,n=null;for(let s=0;s<iw&&o;s++){if(r(o)&&o.state)return o;if(o.state&&!n&&(n=o),!o.parent||o.parent===o)break;o=o.parent}return n}var cw={get(t,e){return t[e]}},zh=new WeakMap,lw=t=>{let e=zh.get(t);return e||(e=new Proxy(t,cw),zh.set(t,e)),e},Uh=new Proxy(Object.create(null),{get(){},has(){return!1}});T();var VO=["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"],wc={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"]},fw=["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"],kc=t=>t.startsWith("aria")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?"aria-"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>"-"+e.toLowerCase()):t.startsWith("data")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?"data-"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>"-"+e.toLowerCase()):null,Ze=(t,e)=>e.startsWith("aria-")||e.startsWith("data-")||kc(e)||wc.default.includes(e)?!0:Object.prototype.hasOwnProperty.call(wc,t)?wc[t].includes(e):!1,Gh=t=>{if(!_(t))return!1;let e=t.toLowerCase();return fw.includes(e)},zO=(t,e,r)=>{let o={};for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(r&&n in r)continue;if(n==="aria"&&e[n]&&typeof e[n]=="object"){for(let a in e[n])_t(e[n][a])&&(o["aria-"+a]=e[n][a]);continue}if(n==="data"&&e[n]&&typeof e[n]=="object"){for(let a in e[n])if(_t(e[n][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());o["data-"+c]=e[n][a]}continue}let s=Ze(t,n),i=Gh(n);if(_t(e[n])&&(s||i)){let a=kc(n)||n;o[a]=e[n]}}return o},UO=(t,e)=>{let r={};if(t.attr)for(let o in t.attr)r[o]=t.attr[o](e,e.state,e.context);if(t.aria&&typeof t.aria=="object")for(let o in t.aria){let n=t.aria[o];typeof n=="function"&&(r["aria-"+o]=n(e,e.state,e.context))}if(t.data&&typeof t.data=="object")for(let o in t.data){let n=t.data[o];if(typeof n=="function"){let s=o.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());r["data-"+s]=n(e,e.state,e.context)}}return r},Xe=(t,e)=>{let r=t.call("exec",e,t);if(r)return _(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},Wh=(t,e)=>{let r=(t.preSrc||"")+(Xe(t,e)||"");if(!r)return;try{return new URL(r),r}catch{}let{context:o}=t;if(!o.files&&!o.assets)return r;if(r.startsWith("/assets/")){let n=r.slice(8),s=o.assets&&(o.assets[r]||o.assets[n]);return s&&s.content?s.content.src:r}if(r.startsWith("/files/")){let n=r.slice(7),s=o.files&&(o.files[r]||o.files[n]);return s&&s.content?s.content.src:r}if(o.assets){let n=o.assets[r];if(n&&n.content)return n.content.src}if(o.files){let n=o.files[r];if(n&&n.content)return n.content.src}return r},Hh={src:t=>Wh(t,t.src),href:t=>Xe(t,t.href),action:t=>Xe(t,t.action),poster:t=>Wh(t,t.poster),data:t=>Xe(t,t.data)},Kh=t=>{let e=t.tag||"div",r={};for(let o in Hh)if(t[o]!==void 0&&Ze(e,o)){let n=Hh[o](t);n!==void 0&&(r[o]=n)}return r},qh=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},uw=(t,e,r)=>{if(t==="$"){let n=qh(e,r);return n===void 0&&(n=!!r[e]),n}let o=r[e]===!0||r.state[e];if(!o){let n=qh(e,r);n!==void 0&&(o=n)}return t==="."?!!o:!o},pw=new Set(["$",".","!"]),WO=(t,e,r)=>{let o={},n=(s,i,a,c)=>{let l=i;o[s]=f=>{if(uw(a,c,f))return C(l)?l(f):l}};for(let s in t){let i=s.charAt(0);if(!pw.has(i))continue;let a=t[s];if(!a||typeof a!="object")continue;let c=s.slice(1);for(let l in a){if(r&&l in r)continue;if(l==="aria"&&a[l]&&typeof a[l]=="object"){for(let d in a[l])n("aria-"+d,a[l][d],i,c);continue}if(l==="data"&&a[l]&&typeof a[l]=="object"){for(let d in a[l]){let h=d.replace(/([A-Z])/g,g=>"-"+g.toLowerCase());n("data-"+h,a[l][d],i,c)}continue}let f=Ze(e,l),p=Gh(l);if(!f&&!p)continue;let u=kc(l)||l;n(u,a[l],i,c)}}return o};var dw=1;function Cr(t){return t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90}function hw(t){return t.charAt(2).toLowerCase()+t.slice(3)}function gw(t){return t.toLowerCase()}function Ac(t,e){let r={...t};for(let o in e){let n=r[o],s=e[o];n&&s&&typeof n=="object"&&typeof s=="object"&&!Array.isArray(n)&&!Array.isArray(s)&&typeof n!="function"&&typeof s!="function"?r[o]=Ac(n,s):r[o]=s}return r}function zt(t,e,r,o={},n){if(t==null||t===!1)return null;(typeof t=="string"||typeof t=="number")&&(t={text:t});let s=Object.create(null);s.key=r||t.key||`_${dw++}`,s.parent=e||null,s.context=t.context||e?.context||o.context||{},s.context.__create||(s.context.__create=zt);let i=s.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||s,path:e?.__ref?.path?[...e.__ref.path,s.key]:[s.key]};if(r&&!t.extends&&!t.extend){let g=r.indexOf("_");if(g>0){let m=r.substring(0,g),y=s.context?.components;y&&(y[m]||y["smbls."+m])&&(t={extends:m,...t})}}ks(s,t,o);let a=new Set(["childProps","attr","style","scope","data"]),c=s.props&&typeof s.props=="object"?s.props:null;for(let g in t){if(g==="parent"||g==="node"||g==="__ref"||g==="extends"||g==="context"||g==="props")continue;let m=t[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]=Ac(y,m):b&&a.has(g)?s[g]={...y,...m}:s[g]=m}function l(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]=Ac(b,y):x&&a.has(m)?s[m]={...b,...y}:s[m]=y}}c&&l(c),t.props&&typeof t.props=="object"&&l(t.props),t.data!==void 0&&(s.data=t.data),t.classlist!==void 0&&(s.classlist=t.classlist),t.text!==void 0&&(s.text=t.text),t.html!==void 0&&(s.html=t.html);let f=s.scope&&typeof s.scope=="object"?s.scope:null,p=e?.scope,u=s.context&&typeof s.context.globalScope=="object"&&s.context.globalScope||null,d=p||u||null;if(t.scope!==void 0||f){let g={};f&&Object.assign(g,f),t.scope!==void 0&&Object.assign(g,t.scope),s.scope=Si(g,d)}else d&&(s.scope=d);if(t.if!==void 0&&(s.if=t.if),Es(s),mw(s,e,t),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 t.if=="function"&&(i.__ifInitialized=!0);else return e&&(e[s.key]=s),typeof t.if=="function"&&Ec(s,{if:t.if}),s;s.tag||(s.tag=Sr(s)),ve("Init",s,o);let h=s.node=_r(s);if(!h)return s;ve("AttachNode",s,o),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),Ec(s,t),Tc(s),Xh(s),Zh(s,o);try{Jh(s,o)}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?`
31
+ font-style: ${n.fontStyle||"normal"};${r?`
32
+ font-weight: ${r};`:""}${n.fontStretch?`
33
+ font-stretch: ${n.fontStretch};`:""}${n.fontDisplay?`
34
+ font-display: ${n.fontDisplay};`:""}
35
+ src: ${i};`},dr=(t,e,r,n)=>`@font-face {${Ca(t,e,r,n)}
36
+ }`,xn=(t,e,r)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l}=e[o],f=Array.isArray(s)?s.map(p=>Qt(p,r)||p):Qt(s,r)||s;return Ca(t,f,i,{fontStyle:a,fontDisplay:c,fontStretch:l})}),SS=t=>Object.keys(t).map(r=>xn(r,t[r].value)),Vd=(t,e,r)=>{if(e&&e.isVariable){let s=Qt(e.url,r)||e.url;return ss(s)?is(s):dr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return xn(t,e,r).map(Bd);let o=Array.isArray(e.url)?e.url.map(s=>Qt(s,r)||s):Qt(e.url,r)||e.url;return dr(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})},Aa=(t,e)=>Object.keys(t).map(n=>Vd(n,t[n].value,e));O();O();O();var as={};$(as,{animation:()=>VS,breakpoints:()=>jS,class:()=>GS,color:()=>RS,devices:()=>BS,document:()=>NS,font:()=>kS,fontFace:()=>AS,fontFamily:()=>vS,fontFamilyTypes:()=>CS,gradient:()=>PS,grid:()=>qS,icons:()=>FS,media:()=>ES,reset:()=>KS,semanticIcons:()=>DS,sequence:()=>He,shadow:()=>$S,spacing:()=>OS,svg:()=>zS,svgData:()=>US,templates:()=>WS,theme:()=>IS,timing:()=>MS,typography:()=>Ea,unit:()=>_S,vars:()=>XS});var He={"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 _S={default:"em"};var wS={browserDefault:16,base:16,type:"font-size",ratio:He["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},Ea=wS;var kS={};var vS={},CS={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},AS={};var ES={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var TS={base:Ea.base,type:"spacing",ratio:He.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},OS=TS;var RS={},PS={};var IS={};var $S={};var FS={},DS={};var LS={default:150,base:150,type:"timing",ratio:He["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},MS=LS;var NS={};var jS={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},BS={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 VS={};var zS={},US={};var WS={};var HS={},qS=HS;var GS={};var KS={},XS={};var zd={},Ud={},cs=as,ls={},Ta=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase());for(let t in cs){let e=t.toLowerCase();ls[e]=cs[t];let r=Ta(e);r!==e&&(ls[r]=cs[t]),e!==t&&(ls[t]=cs[t])}var Oa={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:zd,cssMediaVars:Ud,CSS_VARS:zd,CSS_MEDIA_VARS:Ud,_scratchConfig:!0,...ls},Wd=Q(Oa),Se={active:"0",0:Oa},vA=t=>(vt(t)&&(Se.active=t),Se[t||Se.active]),Sn=[],ut=t=>{t&&t._scratchConfig&&Sn.push(t)},it=()=>{Sn.pop()},A=t=>Sn.length?Sn[Sn.length-1]:Se[t||Se.active]||Oa,Hd=t=>{if(_(t))return Se.active="1",Se[1]=G(t,Q(Wd)),t},YS=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],ZS=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],JS=t=>{for(let e of ZS){let r;for(let n of e){let o=t[n];_(o)&&(r=r?G(o,r):o)}if(r)for(let n of e)_(t[n])&&(t[n]=r)}},qd=(t,e,{cleanBase:r=!1}={})=>{let n=r?null:A(),o=Q(!r&&n&&n._scratchConfig?n:Wd);for(let i of YS)delete o[i];let s=G(e||{},o);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,JS(s),t&&(Se[t]=s),s};var _e={"-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"},Ra=(t,e)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=t;e.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},e.scales[r]=s;let c=Gd.has(e.unit)?"rem":e.unit;e.vars[n]=s+c},qe=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},Gd=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Pa=(t,e)=>{let{base:r,type:n,unit:o}=e,s=Gd.has(o)?"rem":o,i=(Ur(s)?1:r)+s;if(t===0)return i;let c="--"+(e.varPrefix?e.varPrefix+"-":"")+(n&&n.replace(".","-")),l=`${c}-ratio`;if(t>0){let f=_e[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=_e[t+1],p=Math.abs(t),u=Math.pow(Xd,2*p),d=_e[p];return d?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${d}) / ${u.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},Kd=(t,e,r,n)=>{let{type:o}=n,i=t===2&&e.length===2?t+1:t,l=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${l+i}))`},Ia=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},$a=(t,e)=>Ia(t,e).map(r=>r/t),Fa=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[p,u,d]=Ia(o,s);l>16?f=[p,u,d]:f=[p,d],f.forEach((h,g)=>{let m=~~(h/n*1e3)/1e3,y=i+(g+1),b=a+(g+1)/10,x=Kd(g+1,f,i,e),S={key:r+(g+1),variable:y,value:h,scaling:m,scalingVariable:x,index:b};Ra(S,e)})},Xd=1.618,QS=(t,e,r)=>{if(t>=0)return e*Math.pow(r,t);let n=Math.abs(t),o=e*Math.pow(r,t),s=e*Math.pow(r,n)/Math.pow(Xd,2*n);return Math.max(o,s)},Vt=t=>{let{type:e,base:r,ratio:n,range:o,subSequence:s}=t,i=Math.abs(o[0])+Math.abs(o[1]),c="--"+(t.varPrefix?t.varPrefix+"-":"")+(e&&e.replace(".","-"))+"-";for(let l=0;l<=i;l++){let f=o[1]-l,p=_e[f],u=QS(f,r,n),d=~~(u/r*100)/100,h=c+p,g=Pa(f,t),m={key:p,variable:h,value:u,base:r,scaling:d,scalingVariable:g,ratio:n,index:f};Ra(m,t),s&&Fa(m,t)}return t},t_=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=w(e)?e:_e[e],a=w(e)?Object.entries(_e).find(([,m])=>m===e)?.[0]:e;if(!i)return console.warn(`Position ${e} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...t},l=n*Math.pow(o,a),f=~~(l/n*100)/100,d="--"+(t.varPrefix?t.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,h=Pa(a,t),g={key:i,variable:d,value:l,base:n,scaling:f,scalingVariable:h,ratio:o,index:a};return Ra(g,c),s&&Fa(g,c),c},Da=(t="A",e)=>{let r=A(),{unit:n}=r;if(w(t)&&ot(t))return`var(${t})`;let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(Wr.some(x=>t.includes(x))||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let u=`--${e.varPrefix?e.varPrefix+"-":""}${es(e.type.replace(".","-"))}-`,d=t.toUpperCase(),h=d.slice(0,1)==="-"?"-":"",g=h?d.slice(1):d,m="";g.includes("_")&&(m="_"+g.split("_")[1].toLowerCase(),g=g.split("_")[0]);let y=x=>a.test(x)?`var(${u}${x}${m})`:x;if(g.includes("+")){let[x,S]=g.split("+"),v=`${y(x)} + ${y(S)}`;return h?`calc((${v}) * -1)`:`calc(${v})`}else if(g.includes("*")){let[x,S]=g.split("*"),v=`${y(x)} * ${y(S)}`;return h?`calc((${v}) * -1)`:`calc(${v})`}else if(g.includes("-")){let[x,S]=g.split("-"),v=`${y(x)} - ${y(S)}`;return h?`calc((${v}) * -1)`:`calc(${v})`}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(${u}${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)},Yd=(t,e)=>{if(!["+","-","*","/",","].filter(s=>t.includes(s+" ")).length)return t;let n=/(\s*[+\-*/,]\s*)/;return t.split(n).map(s=>{let i=s.trim();return!i||["+","-","*","/",","].includes(i)?s:Da(i,e)}).join("")},we=(t,e,r,n)=>{if(typeof t!="string")return A().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!n&&t.includes("(")){let s=qe(t);n=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=Yd(t,r):t=Da(t,r),{[e]:n?`${n}(${t})`:t}},Zd=(t,e)=>_e[t-e],La=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=Zd(e,o);return r[s]})};O();var e_=(t,e)=>{let r=A(),{cssVars:n}=r;N(t.value)||(n[t.var]=t.value)},Ma=(t,e,r)=>{let n=A(),{unit:o}=n,s=e.unit||o.default,{base:i,ratio:a,type:c}=e,f="--"+(e.varPrefix?e.varPrefix+"-":"")+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let p=`${f}-ratio`;t[p]=a;let[u,d,h]=$a(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${u/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${h/a})`},Jd=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Ge=(t,e={})=>{let r=A(),{unit:n,timing:o,cssVars:s}=r,i=t.unit||n.default,a=Jd.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||Ma(s,t,e);for(let p in l){let u=l[p],d=(t.type===o.type?l[p].val:f[p])+a;if(!c){s[u.variable+"_default"]=d,s[u.variable]=u.scalingVariable;continue}e.useDefault===!1?s[u.variable]=d:(s[u.variable+"_default"]=d,s[u.variable]=`var(${u.variable+"_default"})`)}},hr=(t,e,r={})=>{let n=A(),{unit:o,media:s,cssVars:i}=n,a=e.slice(1),c=t[e],l=c.unit||t.unit||o.default,f=Jd.has(l)?"rem":l,{mediaRegenerate:p}=t,{sequence:u,scales:d}=c,h=s[a];if(!h&&n.verbose&&console.warn("Can't find media query ",h),!p){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),Ma(g,c,r);let m=t.unit||o.default;if(f!==m&&u)for(let y in u){let b=u[y],x=d[y]+f;g[b.variable+"_default"]=x,g[b.variable]=x}return}for(let g in u){let m=u[g],y=(Ur(f)?d[g]:u[g].val)+f;!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}};O();var th=ir(),fs=t=>{let e=A(),r="";for(let n in t)e.__svgCache[n]||(e.__svgCache[n]=!0,r+=t[n]);return r},r_=t=>{let e=t&&(t.default||t);if(!w(e))return th&&console.warn("parseRootAttributes:",e,"is not a string"),{};let r=e.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,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{}):{}},n_=(t,e)=>{let r=[];if(t.replace(/id="([^"]*)"/g,(o,s)=>(r.push(s),o)),!r.length)return t;let n=t;for(let o of r){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${e}-${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},Qd=new Set,Na=(t,e)=>{let r=e&&e.default?e.default:e;if(!w(r))return th&&!Qd.has(t)&&(Qd.add(t),console.warn("convertSvgToSymbol:",t,"is not a string")),"";e=r;let n=r_(e),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,l=n_(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${i}"`);return l=l.replace(/width="[^"]*"/,""),l=l.replace(/height="[^"]*"/,""),l=l.replace("</svg","</symbol"),l=i_(l),l},o_="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",s_=new RegExp(`<(${o_})\\b([^>]*?)\\s*/>`,"g"),i_=t=>t.replace(s_,"<$1$2></$1>");var hs={};$(hs,{appendSVGSprite:()=>rc,appendSvgIconsSprite:()=>oc,applyDocument:()=>Qa,applyHeadings:()=>sh,applyReset:()=>sc,applySpacingSequence:()=>Xa,applyTimingSequence:()=>Ja,applyTypographySequence:()=>qa,checkIfBoxSize:()=>Ka,getColor:()=>tt,getFontFamily:()=>Ha,getFontSizeByKey:()=>Ga,getMediaColor:()=>bt,getMediaTheme:()=>te,getShadow:()=>Za,getSpacingBasedOnRatio:()=>fe,getSpacingByKey:()=>pt,getTheme:()=>Va,getTimingByKey:()=>zt,getTimingFunction:()=>ee,runThroughMedia:()=>oh,setColor:()=>mr,setFont:()=>Wa,setFontFamily:()=>ps,setGradient:()=>yr,setMediaTheme:()=>Ua,setSVG:()=>ds,setShadow:()=>br,setSvgIcon:()=>nc,setTheme:()=>za,splitSpacedValue:()=>Ya});O();var tt=(t,e,r)=>{let n=r||A();if(!w(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(E(t))[o,s,i]=t;else{let p=We(t);if(!p){let{color:u,gradient:d}=n,h=d[t]||u[t];return h?n.useVariable?`var(${h.var})`:h.value:t}if(p.passthrough)return p.passthrough;if(p.cssVar)return`var(${p.cssVar})`;o=p.name,s=p.alpha,i=p.tone}let{color:a,gradient:c}=n,l=a[o]||c[o];if(!l)return n.verbose&&console.warn("Can't find color ",o),t;e&&(l[e]?l=l[e]:n.verbose&&console.warn(t," - does not have ",e));let f=l.rgb;return f?(i&&!l[i]&&(f=pr(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, 1)`:n.useVariable?`var(${l.var})`:`rgb(${f})`):n.useVariable?`var(${l.var})`:l.value},bt=(t,e,r)=>{let n=r||A();if(e||(e=n.globalTheme==="auto"?null:n.globalTheme),!w(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;let o;if(E(t))o=t[0];else{let l=We(t);if(!l)return t;if(l.passthrough)return l.passthrough;if(l.cssVar)return`var(${l.cssVar})`;o=l.name}let{color:s,gradient:i}=n,a=s[o]||i[o],c=_(a);if(c&&a.value)return tt(t,`@${e}`,r);if(c){if(n.useVariable&&a.var)return`var(${a.var})`;if(e)return tt(t,`@${e}`,r);{let l={};for(let f in a){if(f.charCodeAt(0)!==64)continue;let p=n.media[f.slice(1)];if(!p)continue;let u="@media "+(p==="print"?`${p}`:`screen and ${p}`);l[u]=tt(t,f,r)}return l}}else return n.verbose&&console.warn("Can't find color",t),t},mr=(t,e,r)=>{let n=A();if(w(t)&&ot(t)){let g=t.slice(2);if(t=tt(g),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let m=g.split(" "),y=n.color[m[0]];if(y&&!y.value&&!y.rgb&&(w(y)||E(y)||_(y))&&(n.color[m[0]]=mr(y,m[0]),y=n.color[m[0]]),y&&y.value){let b=y.rgb,x=m[1]!==void 0?m[1]:"1",S=m[2];S&&(b=pr(b,S)),t=`rgba(${b}, ${x})`}else{let b=m[2],x=m[1]!==void 0?m[1]:"1";if(b)try{let S=be(m[0]);S&&S.length>=3?t=`rgba(${pr(S.slice(0,3).join(", "),b)}, ${x})`:t=m[0]}catch{t=m[0]}else t=m[0]}}}if(E(t)&&(t={"@light":t[0],"@dark":t[1]}),_(t)){let g={};for(let m in t)g[m]=mr(t[m],e,m.slice(0,1)==="@"?m.slice(1):m);if(n.useVariable){let y=`--${n.varPrefix?n.varPrefix+"-":""}color-${e}`,b,x={};for(let S in g){if(S.charCodeAt(0)!==64)continue;let v=S.slice(1),T=g[S],R=T&&(T.value||T);!R||typeof R!="string"||(x[v]=R,(v==="light"||b===void 0)&&(b=R))}if(b!==void 0){n.cssVars[y]=b,n.cssMediaVars||(n.cssMediaVars={});for(let S in x){let v=`[data-theme="${S}"]`;if(n.cssMediaVars[v]||(n.cssMediaVars[v]={}),n.cssMediaVars[v][y]=x[S],S==="light"||S==="dark"){let T=`@media (prefers-color-scheme: ${S})`;n.cssMediaVars[T]||(n.cssMediaVars[T]={}),n.cssMediaVars[T][y]=x[S]}}g.var=y}}return g}let s=`--${n.varPrefix?n.varPrefix+"-":""}color-${e}`+(r?`-${r}`:""),i=t.value||t;if(w(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(w(i)&&!i.includes("(")&&!i.startsWith("#")){let g=We(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=n.color[g.name];m&&!m.value&&!m.rgb&&(w(m)||E(m)||_(m))&&(n.color[g.name]=mr(m,g.name));let y=n.color[g.name];if(y&&y.rgb){let b=y.rgb;g.tone&&(b=pr(b,g.tone));let x=g.alpha?parseFloat(g.alpha):1;i=`rgba(${b}, ${x})`}}}let a=be(i),[c,l,f,p=1]=a,u=parseFloat(p.toFixed(2)),d=`${c}, ${l}, ${f}`,h=`rgba(${d}, ${u})`;return n.useVariable&&(n.cssVars[s]=h),{var:s,rgb:d,alpha:u,value:h}},yr=(t,e,r)=>{let n=A();if(w(t)&&ot(t)&&(t=tt(t.slice(2))),E(t))return{"@light":yr(t[0],e,"light"),"@dark":yr(t[0],e,"dark")};if(_(t)){let i={};for(let a in t)i[a]=yr(t[a],e,a.slice(0,1)==="@"?a.slice(1):a);return i}let s=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${e}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[s]=t.value||t),{var:s,value:t.value||t}};O();var a_=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"]),eh=["color","Color","background","Background","fill","Fill","stroke","Stroke"],c_=t=>{for(let e=0;e<eh.length;e++)if(t.includes(eh[e]))return!0;return!1},us=t=>{let e={},{state:r,media:n,helpers:o,...s}=t;return Object.keys(s).map(a=>{let l=["color","Color","background","border"].some(f=>a.includes(f));return e[a]=l?tt(t[a]):t[a]}),e},_n=t=>(t.value||(t.value=us(t)),t.value),Va=(t,e)=>{let r=A();if(r.useVariable)return te(t,e);let n=r.theme;if(w(t)){let[o,s]=t.split(" "),i=n[o];if(i){if(!s&&!e)return _n(i);t=[o,s||e]}}if(N(t)&&t[1]){let o=t[0],s=t[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return _n(a[s]);if(i&&i[s])return _n(i[s]);if(c&&c[s])return _n(c[s])}else if(_(t))return us(t)},l_=(t,e,r)=>{if(_(e))t.variants.inverse.value=us(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},f_=(t,e,r,n)=>{let o=Va(r);n[`&:${e}`]=o,_(r)&&!r.value&&(r.value=o)},u_=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return f_(t,o,s,e),t}),t):void 0},p_=(t,e,r,n)=>{let o=Va(r);n[`@media (prefers-color-scheme: ${e})`]=o,_(r)&&!r.value&&(r.value=o)},d_=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&p_(t,o,s,e),o==="inverse"&&l_(t,s,e),t}),t):void 0},h_=(t,e)=>{let r=A(),{helpers:n}=t;return n?(Object.keys(n).map(s=>{let i=n[s];return w(i)?n[s]=r.theme[i]:_n(n[s]),t}),t):void 0},za=(t,e)=>{let r=A();if(r.useVariable)return Ua(t,e);let{state:n,media:o,helpers:s}=t,i=us(t,e),c=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}`;return u_(t,i),d_(t,i),h_(t,i),{var:c,value:i,state:n,media:o,helpers:s}};var ja=(t,e,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 l in t)if(t[l])for(let f of Object.keys(t[l]))a.add(f);let c=new Set;for(let l of a){let f=l.slice(0,1);if(!(f==="@"||f==="."||f===":")&&c_(l))for(let p in t){if(c.has(p))continue;let u=t[p]?.[l];if(u===void 0)continue;let d=tt(u,`@${p}`);d!==void 0&&w(d)&&/^[a-z][a-zA-Z]+$/.test(d)&&!a_.has(d)&&c.add(p)}}for(let l of a){let f=l.slice(0,1),p=Object.values(t).some(u=>N(u?.[l]));if(f==="."&&p){let u=l.slice(1),d={};for(let h in t)N(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=ja(d,`${e}-${u}`,r)}else if(f===":"&&p){let u=l.replace(/^:+/,""),d={};for(let h in t)N(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=ja(d,`${e}-${u}`,r)}else if(f!=="@"&&f!=="."&&f!==":"){let d=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}-${l}`,h=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,g;for(let m in t){if(c.has(m))continue;let y=t[m]?.[l];if(y===void 0)continue;let b=tt(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][d]=b,m==="dark"||m==="light"){let S=`@media (prefers-color-scheme: ${m})`;o[S]||(o[S]={}),o[S][d]=b}}g!==void 0&&(n[d]=g),i[l]=`var(${d})`,i[`.${l}`]={[l]:i[l]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},Ua=(t,e,r,n)=>{let o=A(),{cssVars:s}=o,i={value:t},a=!r&&!n;if(N(t)){if(a&&o.useVariable){let c={};for(let l in t)l.startsWith("@")&&N(t[l])&&(c[l.slice(1)]=t[l]);if(Object.keys(c).length){let l=ja(c,e,o);Object.assign(i,l)}}for(let c in t){let l=c.slice(0,1),f=t[c];if(l==="@"||l===":"||l==="."){let p=l==="@"&&c;i[c]=Ua(f,e,c,n||p)}else if(!a){let p=tt(f,n),u=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],d=u.length?"-"+u.join("-"):"",g=`--${o.varPrefix?o.varPrefix+"-":""}theme-${e}${d}-${c}`;o.useVariable?(o.useThemeSuffixedVars&&(s[g]=p),i[c]=`var(${g})`):i[c]=p,i[`.${c}`]={[c]:i[c]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(w(t)&&ot(t)){let l=o.theme[t.slice(2)];return te(l,n)}return i},Ba=t=>{let e=A(),r={};for(let n in t){let o=n.slice(0,1);if(N(t[n])){if(o==="@")continue;o===":"?r[`&${n}`]=Ba(t[n]):o==="."&&(r[`&${n}`]=Ba(t[n]))}else r[n]=t[n]}return r},nh=(t,e)=>{let r=e.shift();return t[r]?nh(t[r],e):t},rh=(t,e)=>E(e)?nh(t,e):w(e)&&t[e]?t[e]:t;var te=(t,e)=>{let r=A();if(w(t)&&ot(t)&&(t=te(t.slice(2))),!t||!w(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[n,...o]=E(t)?t:t.split(" "),s=r.theme[n];return s&&o.length?s=rh(s,o):s&&e&&(s=rh(s,e)),Ba(s)};O();O();var Wa=(t,e)=>{let r=A(),n=`--font-${e}`;if(!t||E(t)&&!t[0])return;let o;if(t.isVariable){let s=Qt(t.url,r.files)||t.url;ss(s)?o=is(s):o=dr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])o=xn(e,t,r.files);else{let s=Array.isArray(t.url)?t.url.map(i=>Qt(i,r.files)||i):Qt(t.url,r.files)||t.url;o=dr(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})}return{var:n,value:t,fontFace:o}},Ha=(t,e)=>{let r=A(),{fontFamily:n}=r;return bn(e||n,t)},ps=(t,e)=>{let r=A(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=t;t.isDefault&&(n.default=e),_(s)&&(s=fr(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};O();var oh=t=>{let e=A(),{typography:r,media:n}=e;for(let o in t){let s=o.slice(0,1)==="@",i=t[o];if(!s)continue;let{mediaRegenerate:a}=t,c=o.slice(1),{type:l,base:f,ratio:p,range:u,subSequence:d,h1Matches:h,unit:g}=t;et(i,{type:l,base:f,ratio:p,range:u,subSequence:d,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[c],S="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[S]={fontSize:i.base/r.browserDefault+b},!a){et(i,{sequence:{},scales:{},vars:{}}),Vt(i),hr(t,o);continue}et(i,{sequence:{},scales:{},templates:{},vars:{}}),Vt(i),hr(t,o)}},sh=t=>{let e=A();if(t.h1Matches){let r=t.unit,n=La(t),{templates:o}=t;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:e.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},qa=()=>{let t=A(),{typography:e}=t;Vt(e),sh(e),Ge(e),oh(e)},Ga=t=>{let e=A(),{typography:r}=e;return we(t,"fontSize",r)};O();O();var g_=t=>{for(let e in t){let r=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f}=t;et(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),Vt(r),hr(t,e)}},Ka=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),n=e.includes("border")||e.includes("outline");return r&&!n},Xa=()=>{let t=A(),{spacing:e}=t;Vt(e),Ge(e),g_(e)},m_=t=>{let e=A(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:Vt(t)},pt=(t,e="padding",r,n)=>{let o=m_(r);if(w(t)&&!n&&t.includes("(")){let i=qe(t);n=i[0],t=i[1]}let s=n?[t]:fr(t);if(E(s)){if(s.length>1){let i="";e==="borderWidth"&&(e="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},c=(l,f)=>we(s[f],e+l+i,o,n);return a[s.length].map((l,f)=>c(l,f))}return we(t,e,o,n)}},fe=(t,e,r,n)=>{let o=A(),{spacing:s}=o,i=r||t[e];if(!n&&w(i)&&i.includes("(")){let a=qe(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=applyCustomSequence(t);return pt(i,e,a,n)}return pt(i,e,s,n)},Ya=t=>{let e=r=>{let n=["+","-","*","/"].includes(r),o=Wr.some(i=>t.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return t.split(",").map(r=>r.trim()).map(e).join(",").split(" ").map(e).join(" ")};O();var br=(t,e,r,n)=>{let o=A();if(E(t))return{"@light":br(t[0],e,"light"),"@dark":br(t[1],e,"dark")};if(_(t)){let a={};for(let c in t)a[c]=br(t[c],e,c.startsWith("@")?c.slice(1):c);return a}w(t)&&!le.test(t)&&(t=ur(t).map(a=>(a=a.trim(),a.split(/\s+/).map(c=>{if(c=c.trim(),!c)return"";if(c.startsWith("--"))return`var(${c})`;let l=tt(c);if(xe(l))return l;if(/^\d/.test(c)||c==="0"||c.includes("px")||c.slice(-2)==="em"||c==="inset"||c==="none")return c;let f=pt(c,"shadow");return f&&f.shadow?f.shadow:c}).join(" "))).join(", "));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${e}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[i]=t),{var:i,value:t}},Za=(t,e)=>{let r=A();if(e||(e=r.globalTheme),!w(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;let[n]=E(t)?t:t.split(" "),s=r.shadow[n],i=_(s);if(!s)return r.verbose&&console.warn("Can't find color ",n),t;if(e){if(s[e])return s[e].value;r.verbose&&console.warn(t," - does not have ",e)}if(i&&s.value)return s.value;if(i){let a={};for(let c in s){let l=r.media[c.slice(1)],f="@media "+(l==="print"?`${l}`:`screen and ${l}`);a[f]=s.value}return a}return r.verbose&&console.warn("Can't find color",t),t};O();var Ja=()=>{let t=A(),{timing:e}=t;Vt(e),Ge(e)},ee=t=>{let e=A(),{timing:r}=e;return r[t]||r[ts(t)]||t},zt=(t,e="timing")=>{let r=A(),{timing:n}=r;return we(t,e,n)};O();var Qa=()=>{let t=A(),{document:e,fontFamily:r,theme:n,typography:o}=t;return et(e,{theme:n.document,fontFamily:bn(r),fontSize:o.base,lineHeight:o.lineHeight})};O();var ec={document:X},ds=(t,e)=>{let r=A();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?Na(e,t):t},rc=(t,e=ec)=>{let r=A(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=t[o];ah(n,e)},nc=(t,e)=>{let r=A();return r.useIconSprite&&!r.semanticIcons?.[e]?ds(t,e):t},oc=(t,e=ec)=>{let r=A(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=t[o];ah(n,e)},tc=(t,e={isRoot:!0})=>{if(!t||!t.createElementNS)return;let r=t.createElementNS("http://www.w3.org/2000/svg","svg");return e.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},y_=(t,e)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${e}</svg>`,s=new r().parseFromString(n,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},ih=(t,e,r)=>{for(;e.firstChild;){let n=e.firstChild;r.appendChild(t.importNode(n,!0)),n.remove()}},ah=(t,e=ec)=>{let r=A(),n=e.document||X;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),fs(t);let o=n.querySelector("#svgSprite"),s=fs(t),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=y_(n,s);if(o)if(a)ih(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let c=tc(n,{isRoot:!1});c.innerHTML=s,o.append(...c.children)}else if(a){let c=tc(n);c&&c.nodeType&&(ih(n,a,c),n.body.prepend(c))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let c=tc(n);c&&c.nodeType&&(c.innerHTML=s,n.body.prepend(c))}};O();var sc=(t={})=>{let e=A(),{reset:r,typography:n,document:o}=e;if(r){if(r[":root"]){let c=r,l=n.templates;c.body={...e.useDocumentTheme?te("document"):{},...l.body},c.h1=l.h1,c.h2=l.h2,c.h3=l.h3,c.h4=l.h4,c.h5=l.h5,c.h6=l.h6}let{body:s,...i}=n.templates,a=e.useDocumentTheme?te("document"):{};if(r.html&&At(r.html,a),n.unit){let{media:c}=e;for(let l in n){if(l.charAt(0)!=="@")continue;let f=n[l];if(!f||f.unit===n.unit||!f.unit)continue;let p=f.unit,u=f.base||n.base,d=f.browserDefault||n.browserDefault,h=l.slice(1),g=c[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=u/d+p}}return G(et(r,t),{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+e.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}})}};O();var b_=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),x_=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),S_=t=>b_.has(t),ke=t=>{let e=t+"";if(le.test(e))return e;let r=e.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?e:e.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(ot(o))return`var(${o})`;if(S_(o)||/^\d/.test(o)||o==="0")return o;let s=tt(o);if(xe(s))return s;let i=pt(o,"border");return i&&i.border?i.border:o}).join(" ")},ch=t=>le.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(ot(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=tt(e);return xe(r)?r:e}).join(" "),lh=(t,e)=>Za(t,e),ic=(t,e)=>le.test(t)?t:ur(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(ot(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=tt(n);if(xe(o)){let i=bt(n,e);return _(i)?Object.values(i).filter(a=>a.includes(": "+e))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=pt(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),ac=(t,e)=>{let r=t.indexOf("(");if(r===-1)return t;let n=t.slice(0,r+1),o=t.slice(r+1,t.lastIndexOf(")")),s=")",a=ur(o).map(c=>(c=c.trim(),c.split(/\s+/).map(f=>{if(!f||/^\d/.test(f)||f==="0"||x_.has(f)||f==="transparent"||le.test(f))return f;let p=tt(f);return xe(p)?p:f}).join(" ")));return n+a.join(", ")+s},fh=(t,e)=>{let r=A();return t.split(", ").map(n=>ot(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?ac(n,e):r.gradient[t]?{backgroundImage:bt(t,e||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!We(n)?`url(${n})`:n).join(" ")},uh=t=>w(t)&&t.split(" ").map(e=>pt(e,"gap").gap).join(" "),__=t=>{let e=t.split(" ");return e.length?e.map(r=>ot(r)?`var(${r})`:r.length<3||r.includes("ms")?zt(r).timing||r:ee(r)?ee(r):r).join(" "):t},cc=(t,e,r)=>{if(w(t))return t.split(",").map(n=>zt(n).timing||n).join(",")},ph=t=>{let e=t.split(",");if(e.length)return e.map(__).join(",")};function st(t,e,r={},n={}){let o=Y.call(this,e||r[t]);if(o==null)return;let s;if(w(o)){if(o.includes("(")){let c=qe(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=Ka(t);!i&&a&&!n.ratio&&(o=Ya(o))}return n.ratio?fe(r,t,o,s):pt(o,t,void 0,s)}var j=(t,e=null,r)=>st(t,e,r,{ratio:!0}),lc=(t,e,r)=>{if(w(t))return{borderRadius:t.split(" ").map((n,o)=>fe(e,r,n)[r]).join(" ")}};O();var w_=(t,e)=>{let r=A(),{cssVars:n}=r,o=e.startsWith("--")?e:`--${e}`;return n[o]=t,t},$t=t=>t,dh={color:mr,gradient:yr,font:Wa,fontFamily:ps,fontfamily:ps,theme:za,icons:nc,semanticIcons:$t,semanticicons:$t,svg:ds,svgData:$t,typography:$t,shadow:br,spacing:$t,media:$t,grid:$t,class:$t,timing:$t,reset:$t,unit:$t,animation:$t,vars:w_},k_=(t,e,r)=>{let n=A(),o=Ta(t),s=o.toLowerCase(),i=n[o]||n[s]||n[t],a=dh[o]||dh[s];if(a)try{let c=a(e,r);return i&&(i[r]=c),i}catch(c){n.verbose&&console.warn("Error setting",s,"value",e,r,c)}n.verbose&&console.warn("Can not find",s,"method in scratch")},v_=(t,e)=>{let r=A(),n=t.toLowerCase();return Object.keys(e).sort((s,i)=>{let a=_(e[s])||E(e[s])?1:0,c=_(e[i])||E(e[i])?1:0;return a-c}).forEach(s=>{try{return k_(n,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",e[s],s,i)}}),r[n]||r[t]},hh=(t,e)=>{let r=e||A();r.globalTheme=t;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(t&&t!=="auto")a.setAttribute("data-theme",t),t==="dark"||t==="light"?a.style.colorScheme=t:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let l=p=>{a.setAttribute("data-theme",p.matches?"dark":"light")},f=s.matchMedia("(prefers-color-scheme: dark)");if(l(f),a.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=l;try{f.addEventListener("change",l)}catch{f.addListener(l)}}}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",c=o.styleSheets;for(let l=0;l<c.length;l++)try{let f=c[l].cssRules;for(let p=0;p<f.length;p++)if(f[p].selectorText===a){for(let u in r.cssVars)f[p].style.setProperty(u,r.cssVars[u]);return r}}catch{}}return r},C_={},wn=(t,e=C_)=>{let r=e.config||A(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:p,useDocumentTheme:u,useDefaultConfig:d,semanticIcons:h,files:g,assets:m,...y}=t;e.newConfig&&(r=Hd(e.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),c!==void 0&&(r.useFontImport=c),a!==void 0&&(r.useSvgSprite=a),l!==void 0&&(r.useIconSprite=l),u!==void 0&&(r.useDocumentTheme=u),f!==void 0&&(r.globalTheme=f),p!==void 0&&(r.themeRoot=p),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),d!==void 0&&(r.useDefaultConfig=d),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),S=x&&x.defaultView||(typeof window<"u"?window:null),v=x&&(r.themeRoot||x.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(S&&S.matchMedia){let V=U=>{v.setAttribute("data-theme",U.matches?"dark":"light")},z=S.matchMedia("(prefers-color-scheme: dark)");if(V(z),v.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=V;try{z.addEventListener("change",V)}catch{z.addListener(V)}}}else v.setAttribute("data-theme","light"),v.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let T=Object.keys(y),R=new Set(T);if(T.forEach(P=>{let V=P.toLowerCase();V!==P&&R.has(V)&&G(y[V],y[P])}),T.map(P=>{let V=P.toLowerCase();if(!(V!==P&&R.has(V)))return v_(P,y[P])}),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{qa()}catch(P){r.verbose&&console.warn("Error applying typography sequence",P)}if(y.spacing)try{Xa()}catch(P){r.verbose&&console.warn("Error applying spacing sequence",P)}if(y.timing)try{Ja()}catch(P){r.verbose&&console.warn("Error applying timing sequence",P)}Qa();let L=sc();return L&&(r.reset=L),r};var xr=new Map,A_=null,uc=null,E_=null;function pc(t){t.batchAtomicCss&&(uc=t.batchAtomicCss),t.compoundCssClass&&(E_=t.compoundCssClass)}var T_=new Set;function O_(t){try{let e=A();e&&(e.document=t)}catch{}t&&T_.add(t)}function bh(){try{let t=A();if(t?.document)return t.document}catch{}return typeof document<"u"?document:null}var R_={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 Ke(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function gs(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e.toString(36)}function P_(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():gs(e)}function gh(t,e,r){let n=(r?r+"":"")+t+":"+e,o=xr.get(n),s=o?null:Ke(t);if(!o){let a=R_[t]||gs(t),c=P_(e);o=r?`_${r}_${a}-${c}`:`_${a}-${c}`,xr.set(n,o)}if(typeof e=="string"&&(e.indexOf("}")!==-1||e.indexOf("{")!==-1))return o;let i=`.${o}{${s||Ke(t)}:${e}}`;return Ft(i),o}var mh=new WeakMap;function Ft(t,e){let r=xh(e);if(!r)return;let n=mh.get(r);if(n||(n=new Set,mh.set(r,n)),!n.has(t)){n.add(t);try{r.insertRule(t,r.cssRules.length)}catch{}}}var yh=new WeakMap;function xh(t){let e=t||bh();if(!e||!e.head)return null;let r=yh.get(e);if(r&&r.ownerNode&&r.ownerNode.parentNode===e.head)return r;let n=e.head.querySelector("style[data-smbls]");n||(n=e.createElement("style"),n.setAttribute("data-smbls",""),e.head.appendChild(n));let o=n.sheet;return yh.set(e,o),A_=o,o}var I_=8;function Xe(t,e,r){if(!t||typeof t!="object")return"";let n=null,o=0,s=[],i=[];for(let c in t){let l=t[c];l==null||l===!1||l===""||(typeof l=="object"?i.push([c,l]):uc?(n||(n=[]),n.push(c,String(l)),o++):s.push(gh(c,String(l),r)))}if(n&&o>=I_){let c=n.join("\0"),l=uc(c),f=l.indexOf("\0"),p=l.substring(0,f),u=l.substring(f+1);if(u){let d=u.split(`
37
+ `);for(let h=0;h<d.length;h++)d[h]&&Ft(d[h])}s.push(p)}else if(n)for(let c=0;c<n.length;c+=2)s.push(gh(n[c],n[c+1],r));let a=[];for(let c=0;c<i.length;c++)a.push($_(i[c][0],i[c][1],r));return s.concat(a).join(" ").trim()}var fc=new Map;function $_(t,e,r){let n=(r?r+"":"")+t+JSON.stringify(e),o=xr.get(n);if(o){let u=fc.get(o);if(u)for(let d=0;d<u.length;d++)Ft(u[d]);return o}o=r?`_${r}_c${gs(n)}`:`_c${gs(n)}`;let s="",i=[],a=u=>typeof u=="string"&&(u.indexOf("{")!==-1||u.indexOf("}")!==-1),c=(u,d)=>{let h="";for(let g in d){let m=d[g];if(m!=null)if(typeof m=="object")c([...u,g],m);else{if(a(m))continue;h+=`${Ke(g)}:${m};`}}h&&(u.length===0?s+=h:i.push({chain:u,body:h}))};c([],e);let l=u=>{if(!u.length)return`.${o}`;let d=u[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<u.length;h++){let g=u[h].split(",").map(y=>y.trim()),m=[];for(let y of d)for(let b of g)b.includes("&")?m.push(b.replace(/&/g,y)):b.startsWith(":")?m.push(y+b):m.push(y+" "+b);d=m}return d.join(", ")},f=[];if(t.startsWith("@media")||t.startsWith("@supports")){if(s){let u=`${t}{.${o}{${s}}}`;f.push(u),Ft(u)}for(let u of i){let d=l(u.chain),h=`${t}{${d}{${u.body}}}`;f.push(h),Ft(h)}return fc.set(o,f),xr.set(n,o),o}let p=l([t]);if(s){let u=`${p}{${s}}`;f.push(u),Ft(u)}for(let u of i){let h=`${l([t,...u.chain])}{${u.body}}`;f.push(h),Ft(h)}return fc.set(o,f),xr.set(n,o),o}function at(t){if(xh(),typeof t=="string"){Ft(t);return}let e=Object.keys(t),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};e.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 e){let o=t[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 c in i){let l=c.startsWith("--")?c:Ke(c);a+=`${l}:${i[c]};`}Ft(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:Ke(s);Ft(`${n}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in o){let c=o[a];if(typeof c=="object"&&c!==null)i=!0;else{let l=a.startsWith("--")?a:Ke(a);s+=`${l}:${c};`}}if(s&&Ft(`${n}{${s}}`),i){let a=[],c=[];for(let l in o)typeof o[l]=="object"&&o[l]!==null&&(l.startsWith("@media")||l.startsWith("@supports")?a.push(l):c.push(l));a.sort((l,f)=>{let p=u=>{let d=u.match(/max-width:\s*(\d+)/);return d?parseInt(d[1]):0};return p(f)-p(l)});for(let l of c)at({[`${n} ${l}`]:o[l]});for(let l of a)at({[l]:{[n]:o[l]}})}}}}function ms(t,e){let r="";for(let n in e){let o="";for(let s in e[n])o+=`${Ke(s)}:${e[n][s]};`;r+=`${n}{${o}}`}return Ft(`@keyframes ${t}{${r}}`),t}function F_(){return xr.size}O();var dc="http://www.w3.org/2000/svg",xs=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"]),D_=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 ys(t){return D_.has(t)||xs.has(t)}function Ss(t){return xs.has(t)}function Sr(t){let{tag:e,key:r}=t;if(typeof e=="function"&&(e=e(t)),e===!0&&(e=r),typeof e=="string"&&ys(e))return e;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]),ys(o)&&!n.has(o)?o:"div"}var Sh={};function bs(t,e){let r=e?.context?.document||globalThis.document;if(!r)return null;if(t==="string")return r.createTextNode(e?.text||"");if(t==="fragment")return r.createDocumentFragment();if(Ss(t)){let n=e?.parent;if(t==="svg"||n?.node?.namespaceURI===dc)return r.createElementNS(dc,t);if(t!=="svg")return r.createElement("div")}return r.createElement(t)}function _r(t){let e=t.tag=Sr(t),n=Ss(e)&&(e==="svg"||t.parent?.node?.namespaceURI===dc)?"svg:"+e:e,o=t?.context?.document||globalThis.document,s=Sh[n];if(s||(s=Sh[n]=bs(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?bs(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}var Ot=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"]),_h={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},wr=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"]),wh=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),_s=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 hc=new WeakMap,L_={passive:!0},M_={passive:!0,capture:!0},gc=(t,e)=>wh.has(t)?e?M_:L_:e||!1;function vh(t){let e=hc.get(t);return e||(e={handlers:new Map,installed:new Set},hc.set(t,e)),e}function N_(t,e){let r=vh(e);if(r.installed.has(t))return;r.installed.add(t);let n=t==="focus"||t==="blur"||t==="focusin"||t==="focusout"||t==="mouseenter"||t==="mouseleave",o=t==="mouseenter"||t==="mouseleave";e.addEventListener(t,s=>{let i=s.target;for(;i&&i!==e;){let a=r.handlers.get(t);if(a){let c=a.get(i);if(c){if(o&&s.relatedTarget&&i.contains(s.relatedTarget)){i=i.parentNode;continue}if(c(s),s.cancelBubble)return}}i=i.parentNode}},gc(t,n))}function mc(t,e,r,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let o=vh(n);N_(t,n),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,r)}function yc(t,e,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let n=hc.get(r);if(!n)return;let o=n.handlers.get(t);o&&o.delete(e)}function kh(t){return _s.has(t)&&!wr.has(t)}function ws(t,e,r){let{node:n,context:o}=e;if(!n)return;let s=o?.designSystem,i=a=>{s&&ut(s);try{let c=r.call(e,a,e,e.state,o);if(c&&typeof c.then=="function"){c.catch(l=>{e.error=l,console.error("[DOMQL] Async event error:",l)}).finally(()=>{s&&it()});return}}catch(c){if(e.error=c,console.error("[DOMQL] Event error:",c),o?.strictMode)throw c}s&&it()};if(kh(t)){let a=o?.rootNode||n.ownerDocument?.documentElement;mc(t,n,i,a)}else n.addEventListener(t,i,gc(t,!1));e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(kh(t)){let a=o?.rootNode||n.ownerDocument?.documentElement;yc(t,n,a)}else n.removeEventListener(t,i,gc(t,!1))})}function Ch(t){let e=[];return t.extends&&(Array.isArray(t.extends)?e.push(...t.extends):e.push(t.extends)),t.extend&&(Array.isArray(t.extend)?e.push(...t.extend):e.push(t.extend)),e}function ks(t,e,r){let n=Ch(e);if(!n.length)return;let s=(t.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=Ah(n[i],s);a&&a!==e&&Eh(t,a,r,new Set([e]))}}function Ah(t,e){if(typeof t=="string"){if(t.includes(">")){let r=t.split(">").map(o=>o.trim()),n=e[r[0]]||e[`smbls.${r[0]}`];for(let o=1;o<r.length&&n;o++)n=n[r[o]];return n||null}return e[t]||e[`smbls.${t}`]||null}return typeof t=="object"&&t!==null?t:null}function Eh(t,e,r,n=new Set){if(n.has(e))return;n.add(e);let o=Ch(e);if(o.length){let i=(t.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let c=Ah(o[a],i);c&&Eh(t,c,r,n)}}for(let s in e){if(s==="extends"||s==="extend")continue;let i=e[s];t[s]===void 0?i&&typeof i=="object"&&!Array.isArray(i)&&typeof i!="function"?t[s]={...i}:t[s]=i:typeof t[s]=="object"&&typeof i=="object"&&!Array.isArray(t[s])&&!Array.isArray(i)&&t[s]!==null&&i!==null?t[s]=Th(t[s],i):t[s]=i}}function Th(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=Th(o,s):r[n]=s}return r}ar();function vs(t={},e={}){let r=this,n=r.__ref;if(n){if((typeof t=="string"||typeof t=="number")&&(t={text:t}),!e.preventListeners&&typeof r.onBeforeUpdate=="function"&&r.onBeforeUpdate(r,r.state,r.context,e)===!1)return r;if(Ie(()=>{if(t.state&&mt(r.state)&&r.state.update(t.state),t.text!==void 0&&(r.text=t.text,!n.__exec.text&&r.node&&(r.tag==="string"?r.node.nodeValue=t.text??"":r.node.textContent=t.text??"")),t.html!==void 0&&(r.html=t.html,!n.__exec.html&&r.node&&(r.node.innerHTML=t.html)),t.style&&r.node?.style){if(!n.__exec.style)for(let o in t.style){let s=t.style[o];if(s==null)continue;let i=o.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=String(s).replace(/\s*!important\s*$/,"");r.node.style.setProperty(i,a,"important")}r.style||(r.style={}),Object.assign(r.style,t.style)}if(t.attr&&r.node?.setAttribute){for(let o in t.attr){let s=t.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,t.attr)}if(t.data&&r.node?.dataset){for(let o in t.data)r.node.dataset[o]=t.data[o];r.data||(r.data={}),Object.assign(r.data,t.data)}for(let o in t){if(Ot.has(o)||o==="state")continue;let s=t[o],i=r[o];if(i&&i.__ref&&typeof i.update=="function")i.update(s,e);else if(typeof s=="object"&&s!==null){let a=o.charCodeAt(0);a>=65&&a<=90&&Ut(s,r,o,e)}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 Xt("update",r),!e.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,e),r}}function kr(t){if(!t)return;let e=t.__ref;if(e){try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(e.__effects){for(let r=0;r<e.__effects.length;r++)e.__effects[r].dispose();e.__effects.length=0}if(e.__eventCleanup){for(let r=0;r<e.__eventCleanup.length;r++)e.__eventCleanup[r]();e.__eventCleanup.length=0}if(e.__children){for(let r=0;r<e.__children.length;r++){let n=e.__children[r],o=t[n];o&&o.__ref&&kr(o)}e.__children.length=0}if(t.node?.parentNode&&t.node.remove(),t.state?.destroy&&t.state.__element===t&&t.state.destroy(),t.parent?.__ref?.__children){let r=t.parent.__ref.__children.indexOf(t.key);r!==-1&&t.parent.__ref.__children.splice(r,1),delete t.parent[t.key]}try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(r){console.error("[smbls] onRemove error:",r)}t.node=null,t.parent=null,t.__ref=null}}function Cs(){kr(this)}O();O();var j_=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],B_=["none","forwards","backwards","both"],V_=["normal","reverse","alternate","alternate-reverse"],z_=["running","paused"],U_=t=>/^[\d.]+m?s$/.test(t),W_=0,bc=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{};if(_(t)){let o=`smbls-anim-${W_++}`;return{animationName:ms(o,t)}}let n=r&&r[t];return _(n)?ms(t,n):t},H_=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{},n=t.split(/\s+/),o=null,s=[],i=null,a=null,c=null,l=null,f=null;for(let p of n)r&&r[p]?o=p:U_(p)?s.push(p):j_.includes(p)||p.startsWith("cubic-bezier")||p.startsWith("steps(")?i=p:p==="infinite"||/^\d+$/.test(p)?a=p==="infinite"?p:Number(p):V_.includes(p)?c=p:B_.includes(p)?l=p:z_.includes(p)?f=p:o||(o=p);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:l,playState:f}},Oh={animation:(t,e)=>{if(w(t)&&t.includes(" ")){let r=H_(t,e);return{animationName:bc(r.name||t,e),animationDuration:r.durations[0]||zt(e.animationDuration||"A").timing,animationDelay:r.durations[1]||zt(e.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||ee(e.animationTimingFunction||"ease"),animationFillMode:r.fillMode||e.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:e.animationIterationCount||1,animationPlayState:r.playState||e.animationPlayState,animationDirection:r.direction||e.animationDirection}}return{animationName:bc(t,e),animationDuration:zt(e.animationDuration||"A").timing,animationDelay:zt(e.animationDelay||"0s").timing,animationTimingFunction:ee(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||"both",animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}},animationName:(t,e)=>({animationName:bc(t,e)}),animationDuration:t=>({animationDuration:zt(t).timing}),animationDelay:t=>({animationDelay:zt(t).timing}),animationTimingFunction:t=>({animationTimingFunction:ee(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};O();var Rh={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>j("height",t,e),width:(t,e)=>j("width",t,e),boxSizing:t=>ht(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...st("height",e),...st("width",r||e)}},inlineSize:(t,e)=>j("inlineSize",t,e),blockSize:(t,e)=>j("blockSize",t,e),minWidth:(t,e)=>j("minWidth",t,e),maxWidth:(t,e)=>j("maxWidth",t,e),widthRange:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...st("minWidth",e),...st("maxWidth",r||e)}},minHeight:(t,e)=>j("minHeight",t,e),maxHeight:(t,e)=>j("maxHeight",t,e),heightRange:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...st("minHeight",e),...st("maxHeight",r||e)}},size:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...j("inlineSize",e),...j("blockSize",r||e)}},minBlockSize:(t,e)=>j("minBlockSize",t,e),minInlineSize:(t,e)=>j("minInlineSize",t,e),maxBlockSize:(t,e)=>j("maxBlockSize",t,e),maxInlineSize:(t,e)=>j("maxInlineSize",t,e),minSize:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...st("minInlineSize",e),...st("minBlockSize",r||e)}},maxSize:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...st("maxInlineSize",e),...st("maxBlockSize",r||e)}},borderWidth:(t,e)=>j("borderWidth",t,e),padding:(t,e)=>j("padding",t,e),scrollPadding:(t,e)=>j("scrollPadding",t,e),paddingInline:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...st("paddingInlineStart",e),...st("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...st("paddingBlockStart",e),...st("paddingBlockEnd",r||e)}},paddingTop:(t,e)=>j("paddingBlockStart",t,e),paddingBottom:(t,e)=>j("paddingBlockEnd",t,e),paddingLeft:(t,e)=>j("paddingInlineStart",t,e),paddingRight:(t,e)=>j("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>j("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>j("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>j("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>j("paddingInlineEnd",t,e),margin:(t,e)=>j("margin",t,e),marginInline:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...st("marginInlineStart",e),...st("marginInlineEnd",r||e)}},marginBlock:(t,e)=>{if(!w(e.marginBlock))return;let[r,n]=e.marginBlock.split(" ");return{...st("marginBlockStart",r),...st("marginBlockEnd",n||r)}},marginTop:(t,e)=>j("marginBlockStart",t,e),marginBottom:(t,e)=>j("marginBlockEnd",t,e),marginLeft:(t,e)=>j("marginInlineStart",t,e),marginRight:(t,e)=>j("marginInlineEnd",t,e),marginInlineStart:(t,e)=>j("marginInlineStart",t,e),marginInlineEnd:(t,e)=>j("marginInlineEnd",t,e),marginBlockStart:(t,e)=>j("marginBlockStart",t,e),marginBlockEnd:(t,e)=>j("marginBlockEnd",t,e),gap:t=>({gap:uh(t)}),columnGap:(t,e)=>fe(e,"columnGap",t),rowGap:(t,e)=>fe(e,"rowGap",t),flexWrap:t=>({display:"flex",flexWrap:t}),flexFlow:(t,e)=>{let r=e.reverse;if(!w(t))return;let[n,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(n="row"),(t.startsWith("y")||t==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:r}},round:(t,e)=>lc(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>lc(t??e.round,e,"borderRadius")};var Ph={fontSize:t=>Ga(t)||t,fontFamily:t=>({fontFamily:Ha(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t})};var Ih={overflow:t=>({overflow:t,scrollBehavior:"smooth"}),cursor:(t,e,r,n)=>{if(!t)return;let o=n.assets&&n.assets[t];if(o&&o.content)t=`url(${o.content.src})`;else{let s=n.files&&n.files[t];s&&s.content&&(t=`url(${s.content.src})`)}return{cursor:t}},opacity:t=>t!=null?{opacity:String(t)}:void 0,visibility:t=>t!=null?{visibility:t}:void 0,pointerEvents:t=>t!=null?{pointerEvents:t}:void 0};var $h={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:t.split(" ").map(r=>pt(r,"k").k).join(" ")}},left:t=>pt(t,"left"),top:t=>pt(t,"top"),right:t=>pt(t,"right"),bottom:t=>pt(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>pt(r,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>pt(r,"k").k);return{left:e[0],right:e[1]||e[0]}}};O();var Wt=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},Fh={theme:(t,e)=>{if(t)return e.themeModifier?te(t,`@${e.themeModifier}`):te(t)},color:(t,e)=>{let r=Wt(e);if(t)return{color:bt(t,r)}},background:(t,e)=>{let r=Wt(e);if(t)return w(t)&&t.includes("gradient")?{background:ac(t,r)}:{background:bt(t,r)}},backgroundColor:(t,e)=>{let r=Wt(e);if(t)return{backgroundColor:bt(t,r)}},backgroundImage:(t,e,r,n)=>{let o=Wt(e);if(!t)return;let s=n.assets&&n.assets[t];if(s&&s.content)t=s.content.src;else{let i=n.files&&n.files[t];i&&i.content&&(t=i.content.src)}return{backgroundImage:fh(t,o)}},textStroke:t=>({WebkitTextStroke:ch(t)}),outline:t=>({outline:ke(t)}),outlineOffset:(t,e)=>j("outlineOffset",t,e),border:t=>({border:ke(t)}),borderColor:(t,e)=>{let r=Wt(e);if(t)return{borderColor:bt(t,r)}},borderTopColor:(t,e)=>{let r=Wt(e);if(t)return{borderTopColor:bt(t,r)}},borderBottomColor:(t,e)=>{let r=Wt(e);if(t)return{borderBottomColor:bt(t,r)}},borderLeftColor:(t,e)=>{let r=Wt(e);if(t)return{borderLeftColor:bt(t,r)}},borderRightColor:(t,e)=>{let r=Wt(e);if(t)return{borderRightColor:bt(t,r)}},borderLeft:t=>({borderLeft:ke(t)}),borderTop:t=>({borderTop:ke(t)}),borderRight:t=>({borderRight:ke(t)}),borderBottom:t=>({borderBottom:ke(t)}),shadow:(t,e)=>{let r=Wt(e);if(t)return{boxShadow:lh(t,r)}},boxShadow:(t,e)=>{if(!w(t))return;let[r,n]=t.split("!importan"),o=Wt(e),s=n?" !important":"";return{boxShadow:ic(r.trim(),o)+s}},textShadow:(t,{context:e})=>({textShadow:ic(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:ke(t)})};var As={transition:t=>({transition:ph(t)}),transitionDuration:t=>({transitionDuration:cc(t)}),transitionDelay:t=>({transitionDelay:cc(t)}),transitionTimingFunction:t=>({transitionTimingFunction:ee(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};O();var Dh={flow:(t,e)=>{let r=e.reverse;if(!w(t))return;let[n,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(n="row"),(t.startsWith("y")||t==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(t,e)=>({display:"flex",flexWrap:t}),align:(t,e)=>{let[r,n]=t.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var Lh={area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:t}),templateColumns:t=>({gridTemplateColumns:t}),autoColumns:t=>({gridAutoColumns:t}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:t}),templateRows:t=>({gridTemplateRows:t}),autoRows:t=>({gridAutoRows:t}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var ct={...Oh,...Rh,...Ph,...Ih,...$h,...Fh,...As,...Dh,...Lh};var xt=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"]);O();var q_=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,G_=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=t.slice(1),s=n.designSystem.media[o],i=Dt(e,r);if(!s)return{[t]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(q_),c=a?a[1]||a[2]:o,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let f=n.designSystem?.scopeSelector||":root",p=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${p} &`]:i}}return l},Mh=(t,e,r)=>({[t]:Dt(e,r)}),kn=(t,e,r)=>{let n=`&${t}`,o=Dt(e,r);if(t.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(l=>l.trim()),c={};Object.keys(s).length&&(c[n]=s);for(let l in i){let f=a.map(p=>`${p} ${l}`).join(", ");c[f]=i[l]}return c}}return{[n]:o}},xc=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},K_=(t,e,r)=>{let n=t.slice(1),o=xc(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Dt(e,r)},X_=(t,e,r)=>({[t]:e}),Y_=(t,e,r)=>{let n=t.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=xc(n,r);s!==void 0&&(o=s)}if(o)return Dt(e,r)},Z_=(t,e,r)=>{let n=t.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=xc(n,r);s!==void 0&&(o=s)}if(!o)return Dt(e,r)},Nh=(t,e)=>Dt(t,e),jh={"@":G_,":":kn,"[":kn,"*":kn,"+":kn,"~":kn,"&":Mh,">":Mh,$:K_,"-":X_,".":Y_,"!":Z_};var Sc=Ne(),J_=(t,e,r)=>{let n=e?.context?.designSystem;n&&ut(n);try{let o={},s={},i=(a,c)=>{if(r.unpack){o={...o,...c};return}o[a]=c};for(let a in t){let c=t[a];if(a==="class"&&e.call("isString",t.class)){let l=c.split(" ");if(l.length){let f=e.context.designSystem.class,p=l.reduce((u,d)=>et(u,f[d]),{});o.designSystemClass=p}}else if(a==="true"){let l=Y(c,e);et(o,Nh(l,e))}else if(e.classlist[a]){let l=e.classlist[a],f=C(l)?l(e,e.state,e.context):l;f&&i(a,f),!Sc&&_(o[a])&&(o[a].label=a)}else if(ct[a]){let l=Y(c,e);E(l)&&(l=l.reduce((p,u)=>et(p,u),{}));let f=ct[a](l,e,e.state,e.context);E(f)&&(f=f.reduce((p,u)=>et(p,u),{})),f&&i(a,f),!Sc&&_(o[a])&&(o[a].label=a)}else if(xt.has(a)){let l=Y(c,e);typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),i(a,{[a]:l}),!Sc&&_(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{n&&it()}},Q_=(t,e)=>{let r={};for(let n in t){let o=jh[n.slice(0,1)];if(o){let s=o(n,t[n],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?At(r[i],s[i]):r[i]=s[i])}}return r},Dt=(t,e,r={unpack:!0})=>{let[n,o]=J_(t,e,r),s=Q_(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return ao(n,s);n._selectors=s}return n},TO=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};O();var tw=t=>{if(_(t))return Dt(t,t)},$O=(t,e)=>{let r=tw(t);return typeof e=="function"?e(r):Xe(r)};O();function zh(t,e,r){let n=t?.context?.analyze;if(!n||!n.emit||e==="warn"&&!n.shouldCapture("warnings")||e==="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:e==="error"?"error":"warning",level:e,hook:e==="error"?"el.error":"el.warn",element:{key:t.key!=null?String(t.key):null,name:t.__name||null,tag:t.tag||null},message:o||null,args:r})}function ew(...t){return zh(this,"warn",t),Ho.apply(this,t)}function rw(...t){return zh(this,"error",t),lr.apply(this,t)}var Bh={update:vs,remove:Cs,getDB:Xo,getQuery:Yo,getRootData:zo,getChildren:Mo,getPath:No,nextElement:qo,previousElement:Go,verbose:dn,warn:ew,error:rw,variables:Ko,spotByPath:Lo,set(t,e){if(this.removeContent(),t!=null){let r=this.context?.__create;r&&r(t,this,"content",e)}this.__ref&&(this.__ref.contentManaged=!0)},reset(t){let e=this.context?.__create;if(!e)return this;let r=this.parent,n=this.key,o=this.parse();return this.remove(),e(o,r,n,t)},lookup(t){let e=this.parent;for(;e;){if(typeof t=="function"){if(t(e))return e}else if(typeof t=="string"){if(e.key===t)return e;if(e[t]&&e[t].__ref)return e[t]}e=e.parent}return null},lookdown(t){let e=this.__ref;if(!e?.__children)return null;for(let r of e.__children){let n=this[r];if(!n)continue;if(typeof t=="function"){if(t(n))return n}else if(typeof t=="string"&&n.key===t)return n;let o=n.lookdown?.(t);if(o)return o}return null},lookdownAll(t,e=[]){let r=this.__ref;if(!r?.__children)return e;for(let n of r.__children){let o=this[n];o&&(typeof t=="function"?t(o)&&e.push(o):typeof t=="string"&&o.key===t&&e.push(o),o.lookdownAll?.(t,e))}return e},getRef(){return this.__ref},getRoot:Vo,getRootState:Bo,getRootContext:Uo,getContext:Wo,parse(t){let e={},r=t?new Set(t):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){e[o]=n[o];continue}typeof this[o]!="function"&&(e[o]=this[o])}return e},parseDeep(t){let e=this.parse(t),r=this.__ref;if(r?.__children)for(let n of r.__children)this[n]?.parseDeep&&(e[n]=this[n].parseDeep(t));return e},keys(){return Object.keys(this)},log(...t){if(t.length){let e={};for(let r of t)e[r]=this[r];console.log(e)}else console.log(this)},setProps(t,e){return this.update(t,e)},setNodeStyles(t){if(this.node?.style)for(let e in t){let r=t[e];if(r==null)continue;let n=e.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),o=String(r).replace(/\s*!important\s*$/,"");this.node.style.setProperty(n,o,"important")}},call(t,...e){let r=this.context,n=r?.methods?.[t]||r?.functions?.[t]||r?.utils?.[t]||this[t];if(typeof n=="function")return n.call(this,...e)},removeContent(){let t=this.__ref;if(!t?.__children)return;let e=this.content;if(e?.remove){e.remove(),delete this.content;let r=t.__children.indexOf("content");r!==-1&&t.__children.splice(r,1)}e?.node?.parentNode&&e.node.parentNode.removeChild(e.node)}},Vh=new WeakMap;function nw(t){if(!t)return Bh;let e=Vh.get(t);if(e)return e;e=Object.create(Bh);let r=t.methods;if(r)for(let n in r)e[n]=r[n];return Vh.set(t,e),e}function Es(t){let e=nw(t.context);Object.setPrototypeOf(t,e)}O();ar();var ow=(t,e,r)=>{Object.defineProperty(t,e,{value:r,enumerable:!1,configurable:!0,writable:!0})},Ht=(t,e)=>{if(mt(e)){let o=e.__raw||e;e.toggle||Object.defineProperty(o,"toggle",{value:function(s,i={}){e[s]=!e[s]},enumerable:!1,configurable:!0}),e.set||Object.defineProperty(o,"set",{value:function(s,i={}){return e.clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.update(s,i),e},enumerable:!1,configurable:!0}),Object.defineProperty(o,"setByPath",{value:function(s,i,a={}){let c=s.split("."),l=e;for(let f=0;f<c.length-1;f++)l[c[f]]===void 0&&(l[c[f]]={}),l=l[c[f]];return l[c[c.length-1]]=i,e},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"getByPath",{value:function(s){let i=s.split("."),a=e;for(let c=0;c<i.length;c++){if(a==null)return;a=a[i[c]]}return a},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"removeByPath",{value:function(s,i={}){let a=s.split("."),c=e;for(let l=0;l<a.length-1;l++){if(c==null)return e;c=c[a[l]]}return c&&delete c[a[a.length-1]],e},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"reset",{value:function(s={}){let i=e.parse();return e.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"apply",{value:function(s,i={}){if(typeof s=="function"){let a=s(e);return e.update(a,i)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"applyFunction",{value:function(s,i={}){if(typeof s=="function")return s(e),e.update(e.parse(),i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"rootUpdate",{value:function(s,i={}){let a=e;for(;a?.parent&&mt(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(e.parent)return e.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"quietReplace",{value:function(s,i={}){return e.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(o,"root")||Object.defineProperty(o,"root",{get:function(){let s=e;for(;s?.parent&&mt(s.parent);)s=s.parent;return s},enumerable:!1,configurable:!0});return}if(!e||typeof e!="object")return;let r=()=>{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&delete e[o]},n={update(o){if(!o||typeof o!="object")return e;for(let s in o)e[s]=o[s];return e},apply(o){if(typeof o!="function")return e;let s=o(e);return s?e.update(s):e},parse(){return{...e}},toggle(o){return e[o]=!e[o],e},set(o){if(!o||typeof o!="object")return e;r();for(let s in o)e[s]=o[s];return e},replace(o){return e.set(o)},clean(){return r(),e}};for(let o in n)typeof e[o]!="function"&&ow(e,o,n[o])};var sw=function(t,e,r){return t.state=Uh(t,e,r),t.state},Uh=function(t,e,r){let{__ref:n}=t,o=t.state;if(o==null||o===!1){let s=e?.state||{};return Ht(t,s),s}if(typeof o=="string")return n&&(n.__state=o),n.__stateType="string",iw(o,t,e);if(typeof o=="number"||typeof o=="boolean"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=Nt({value:o});return s.__element=t,e?.state&&(s.parent=e.state),Ht(t,s),s}if(typeof o=="function"&&(o=o(t,e?.state)||{}),typeof o=="object"&&!mt(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let s=Nt({...o});if(s.__element=t,!Object.getOwnPropertyDescriptor(s,"root")){let i=e?.state?.root||e?.state||s;Object.defineProperty(s,"root",{get:()=>i,enumerable:!1,configurable:!0})}return e?.state&&(s.parent=e.state,e.state.__children&&(e.state.__children[t.key]=s)),Ht(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,r),s}return mt(o)?(o.__element=t,o):e?.state||{}};function _c(t,e){if(!e)return t;let r=e.split("/"),n=t;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function iw(t,e,r){if(!r?.state)return{};if(t===".")return r.state;if(t.startsWith("../")){let o=t.slice(3),s=r.state?.parent;return o&&s?_c(s,o):s??r.state??{}}if(t.startsWith("~/")){let o=r.state;for(;o?.parent;)o=o.parent;let s=t.slice(2);return s?_c(o,s):o??{}}let n=_c(r.state,t);if(n&&typeof n=="object"&&!mt(n)&&!Object.getOwnPropertyDescriptor(n,"root")){let o=r.state?.root||r.state;Object.defineProperty(n,"root",{get:()=>o,enumerable:!1,configurable:!0})}return n}var aw=(t,e)=>{if(!t)return Hh;let r=fw(t,e);return!r||!r.state?Hh:pw(r.state)},cw=()=>zr()!=null,lw=128;function fw(t,e){let r=typeof e=="function"?e:typeof e=="string"?s=>!!s?.[e]:s=>!!s?.state,n=t,o=null;for(let s=0;s<lw&&n;s++){if(r(n)&&n.state)return n;if(n.state&&!o&&(o=n),!n.parent||n.parent===n)break;n=n.parent}return o}var uw={get(t,e){return t[e]}},Wh=new WeakMap,pw=t=>{let e=Wh.get(t);return e||(e=new Proxy(t,uw),Wh.set(t,e)),e},Hh=new Proxy(Object.create(null),{get(){},has(){return!1}});O();var eR=["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"],wc={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"]},dw=["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"],kc=t=>t.startsWith("aria")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?"aria-"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>"-"+e.toLowerCase()):t.startsWith("data")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?"data-"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>"-"+e.toLowerCase()):null,Ze=(t,e)=>e.startsWith("aria-")||e.startsWith("data-")||kc(e)||wc.default.includes(e)?!0:Object.prototype.hasOwnProperty.call(wc,t)?wc[t].includes(e):!1,Xh=t=>{if(!w(t))return!1;let e=t.toLowerCase();return dw.includes(e)},rR=(t,e,r)=>{let n={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(r&&o in r)continue;if(o==="aria"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])vt(e[o][a])&&(n["aria-"+a]=e[o][a]);continue}if(o==="data"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])if(vt(e[o][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());n["data-"+c]=e[o][a]}continue}let s=Ze(t,o),i=Xh(o);if(vt(e[o])&&(s||i)){let a=kc(o)||o;n[a]=e[o]}}return n},nR=(t,e)=>{let r={};if(t.attr)for(let n in t.attr)r[n]=t.attr[n](e,e.state,e.context);if(t.aria&&typeof t.aria=="object")for(let n in t.aria){let o=t.aria[n];typeof o=="function"&&(r["aria-"+n]=o(e,e.state,e.context))}if(t.data&&typeof t.data=="object")for(let n in t.data){let o=t.data[n];if(typeof o=="function"){let s=n.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());r["data-"+s]=o(e,e.state,e.context)}}return r},Ye=(t,e)=>{let r=t.call("exec",e,t);if(r)return w(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},qh=(t,e)=>{let r=(t.preSrc||"")+(Ye(t,e)||"");if(!r)return;try{return new URL(r),r}catch{}let{context:n}=t;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},Gh={src:t=>qh(t,t.src),href:t=>Ye(t,t.href),action:t=>Ye(t,t.action),poster:t=>qh(t,t.poster),data:t=>Ye(t,t.data)},Yh=t=>{let e=t.tag||"div",r={};for(let n in Gh)if(t[n]!==void 0&&Ze(e,n)){let o=Gh[n](t);o!==void 0&&(r[n]=o)}return r},Kh=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},hw=(t,e,r)=>{if(t==="$"){let o=Kh(e,r);return o===void 0&&(o=!!r[e]),o}let n=r[e]===!0||r.state[e];if(!n){let o=Kh(e,r);o!==void 0&&(n=o)}return t==="."?!!n:!n},gw=new Set(["$",".","!"]),oR=(t,e,r)=>{let n={},o=(s,i,a,c)=>{let l=i;n[s]=f=>{if(hw(a,c,f))return C(l)?l(f):l}};for(let s in t){let i=s.charAt(0);if(!gw.has(i))continue;let a=t[s];if(!a||typeof a!="object")continue;let c=s.slice(1);for(let l in a){if(r&&l in r)continue;if(l==="aria"&&a[l]&&typeof a[l]=="object"){for(let d in a[l])o("aria-"+d,a[l][d],i,c);continue}if(l==="data"&&a[l]&&typeof a[l]=="object"){for(let d in a[l]){let h=d.replace(/([A-Z])/g,g=>"-"+g.toLowerCase());o("data-"+h,a[l][d],i,c)}continue}let f=Ze(e,l),p=Xh(l);if(!f&&!p)continue;let u=kc(l)||l;o(u,a[l],i,c)}}return n};var mw=1;function Cr(t){return t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90}function yw(t){return t.charAt(2).toLowerCase()+t.slice(3)}function bw(t){return t.toLowerCase()}function Ac(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=Ac(o,s):r[n]=s}return r}function Ut(t,e,r,n={},o){if(t==null||t===!1)return null;(typeof t=="string"||typeof t=="number")&&(t={text:t});let s=Object.create(null);s.key=r||t.key||`_${mw++}`,s.parent=e||null,s.context=t.context||e?.context||n.context||{},s.context.__create||(s.context.__create=Ut);let i=s.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||s,path:e?.__ref?.path?[...e.__ref.path,s.key]:[s.key]};if(r&&!t.extends&&!t.extend){let g=r.indexOf("_");if(g>0){let m=r.substring(0,g),y=s.context?.components;y&&(y[m]||y["smbls."+m])&&(t={extends:m,...t})}}ks(s,t,n);let a=new Set(["childProps","attr","style","scope","data"]),c=s.props&&typeof s.props=="object"?s.props:null;for(let g in t){if(g==="parent"||g==="node"||g==="__ref"||g==="extends"||g==="context"||g==="props")continue;let m=t[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]=Ac(y,m):b&&a.has(g)?s[g]={...y,...m}:s[g]=m}function l(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]=Ac(b,y):x&&a.has(m)?s[m]={...b,...y}:s[m]=y}}c&&l(c),t.props&&typeof t.props=="object"&&l(t.props),t.data!==void 0&&(s.data=t.data),t.classlist!==void 0&&(s.classlist=t.classlist),t.text!==void 0&&(s.text=t.text),t.html!==void 0&&(s.html=t.html);let f=s.scope&&typeof s.scope=="object"?s.scope:null,p=e?.scope,u=s.context&&typeof s.context.globalScope=="object"&&s.context.globalScope||null,d=p||u||null;if(t.scope!==void 0||f){let g={};f&&Object.assign(g,f),t.scope!==void 0&&Object.assign(g,t.scope),s.scope=Si(g,d)}else d&&(s.scope=d);if(t.if!==void 0&&(s.if=t.if),Es(s),xw(s,e,t),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 t.if=="function"&&(i.__ifInitialized=!0);else return e&&(e[s.key]=s),typeof t.if=="function"&&Ec(s,{if:t.if}),s;s.tag||(s.tag=Sr(s)),ve("Init",s,n);let h=s.node=_r(s);if(!h)return s;ve("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),Ec(s,t),Tc(s),Jh(s),Qh(s,n);try{tg(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?`
38
38
  `+g.stack.split(`
39
39
  `).slice(0,6).join(`
40
- `):"")}}if(Pc(s,e,n),e&&(e[s.key]=s,e.__ref?.__children&&(e.__ref.__children.includes(s.key)||e.__ref.__children.push(s.key))),typeof s.html=="function"&&s.node&&!s.node.innerHTML){let g=s.context?.designSystem;g&&lt(g);try{let m=s.html(s,s.state,s.context);m!=null&&typeof m!="function"&&(s.node.innerHTML=m)}catch{}finally{g&&nt()}}if(ve("Create",s,o),ve("Complete",s,o),ve("Render",s,o),ve("RenderRouter",s,o),typeof s.onFrame=="function"){let g=s.onFrame,m=s.context?.designSystem,y=()=>{if(s.node){if(s.node.isConnected){m&&lt(m);try{g(s,s.state,s.context)}catch(b){console.error("[DOMQL] onFrame error:",b)}finally{m&&nt()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function mw(t,e,r){let o=!e,n=r.state&&typeof r.state=="object"&&!Array.isArray(r.state)&&Object.keys(r.state).length===0,s=o&&n&&t.context?.state,i=r.state!==void 0&&!s?r.state:t.state&&!dt(t.state)?t.state:void 0;if(i==null){if(e?.state)t.state=e.state,Wt(t,t.state);else if(t.context?.state){let a=t.context.state,c={...a},l=t.context?.polyglot;if(l?.translations){let f=a.lang||l.defaultLang||"en",p=l.translations[f];if(p&&typeof p=="object")for(let d in p)c[d]===void 0&&(c[d]=p[d]);let u=new Set(l.languages||[]);for(let d in l.translations)!u.has(d)&&c[d]===void 0&&(c[d]=l.translations[d])}t.state=dt(c)?c:Mt(c),t.state.__element=t,t.state.root=t.state,Wt(t,t.state)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),Wt(t,t.state);return}if(typeof i=="string"){if(t.state=Yh(i,e),t.state&&typeof t.state=="object"&&!dt(t.state)){let a=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:a,enumerable:!1,configurable:!0,writable:!0})}Wt(t,t.state);return}if(typeof i=="function"){let a=i(t,e?.state);t.state=Mt(a||{})}else t.state=Mt({...i});t.state.__element=t,e?.state?(t.state.parent=e.state,t.state.root=e.state.root||e.state):t.state.root=t.state,Wt(t,t.state)}function vc(t,e){if(!e)return t;let r=e.split("/"),o=t;for(let n of r){if(o==null)return{};o=o[n]}return o??{}}function Yh(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")){let n=t.slice(3);return n?vc(e.state,n):e.state??{}}if(t.startsWith("~/")){let n=e.state?.root||e.state,s=t.slice(2);return s?vc(n,s):n??{}}if(e.state?.[t]!==void 0)return e.state[t];let r=vc(e.state,t);if(r!=null&&Object.keys(r).length>0)return r;let o=e.context?.polyglot;if(o?.translations){let n=e.state?.root?.lang||o.defaultLang||"en",s=o.translations[n];if(s?.[t]!==void 0)return s[t];if(o.translations[t]!==void 0)return o.translations[t]}return{}}function yw(t){let e=t.__ref,r=t.tag||"div",o=t.context?.designSystem,n=[],s=Object.keys(t);for(let i=0;i<s.length;i++){let a=s[i];if(typeof t[a]!="function"||At.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||Cr(a)||it[a]||mt&&mt.has(a)||Ze(r,a)||n.push({prop:a,fn:t[a]})}for(let i=0;i<n.length;i++){let{prop:a,fn:c}=n[i];e.__exec[a]=c,Object.defineProperty(t,a,{get(){o&&lt(o);try{return c(t,t.state,t.context)}catch{return}finally{o&&nt()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function Ec(t,e){let r=t.__ref;if(yw(t),typeof t.text=="function"){let n=t.text,s=at(()=>{if(!r.contentManaged)try{let i=n(t,t.state,t.context);t.node&&i!=null&&typeof i!="function"&&typeof i!="object"&&(typeof i=="string"&&i.includes("{{")&&(i=rr.call(t,i,t.state)),t.tag==="string"?t.node.nodeValue=i:t.node.textContent=i)}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.text=n}else if(typeof t.text=="string"&&t.text.includes("{{")){let n=t.text,s=at(()=>{if(r.contentManaged)return;let i=rr.call(t,n,t.state);i!=null&&(t.text=i),t.node&&(t.tag==="string"?t.node.nodeValue=i??"":t.node.textContent=i??"")},{depth:r.path.length});r.__effects.push(s),r.__exec.text=n}for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&typeof t[n]=="function"&&!At.has(n)&&!Cr(n)&&!r.__exec[n]){if(it[n]){let s=t[n],i=n,a=at(()=>{let c=t.context?.designSystem;c&&lt(c);try{let l=s(t,t.state,t.context),f=it[i](l,t,t.state,t.context);f&&t.node?vr(t.node,f):t.node&&(i==="show"||i==="hide")&&(t.node.style.display="")}finally{c&&nt()}},{depth:r.path.length});r.__effects.push(a),r.__exec[n]=s}else if(mt&&mt.has(n)){let s=t[n],i=n,a=at(()=>{let c=t.context?.designSystem;c&&lt(c);try{let l=s(t,t.state,t.context);t.node&&(l!=null?vr(t.node,{[i]:l}):t.node.style[i]="")}finally{c&&nt()}},{depth:r.path.length});r.__effects.push(a),r.__exec[n]=s}}if(typeof e.html=="function"){let n=e.html,s=at(()=>{let i=t.context?.designSystem;i&&lt(i);try{let a=n(t,t.state,t.context);t.node&&a!=null&&typeof a!="function"&&(t.node.innerHTML=a)}finally{i&&nt()}},{depth:r.path.length});r.__effects.push(s),r.__exec.html=n}if(typeof e.value=="function"){let n=e.value,s=at(()=>{try{let i=n(t,t.state,t.context);if(!t.node||!("value"in t.node))return;let a=i==null?"":String(i);if(t.node.value===a)return;let c=typeof document<"u"&&document.activeElement===t.node,l=c&&typeof t.node.selectionStart=="number"?t.node.selectionStart:null,f=c&&typeof t.node.selectionEnd=="number"?t.node.selectionEnd:null;if(t.node.value=a,c&&l!=null&&f!=null)try{t.node.setSelectionRange(l,f)}catch{}}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.value=n}if(typeof e.style=="function"){let n=e.style,s=at(()=>{let i=n(t,t.state,t.context);vr(t.node,i)},{depth:r.path.length});r.__effects.push(s),r.__exec.style=n}else if(t.style&&typeof t.style=="object")for(let n in t.style){let s=t.style[n];if(typeof s!="function")continue;let i=at(()=>{try{let a=s(t,t.state,t.context);t.node&&vr(t.node,{[n]:a})}catch{}},{depth:r.path.length});r.__effects.push(i)}if(t.attr&&typeof t.attr=="object"){for(let n in t.attr)if(typeof t.attr[n]=="function"){let s=t.attr[n],i=n,a=at(()=>{try{let c=s(t,t.state,t.context);t.node?.setAttribute&&(c==null||c===!1?t.node.removeAttribute(i):typeof c!="function"&&typeof c!="object"&&t.node.setAttribute(i,c===!0?"":c))}catch{}},{depth:r.path.length});r.__effects.push(a)}}if(t.aria&&typeof t.aria=="object")for(let n in t.aria){let s=t.aria[n];if(typeof s!="function")continue;let i="aria-"+n.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=at(()=>{try{let c=s(t,t.state,t.context);if(!t.node?.setAttribute)return;c==null||c===!1?t.node.removeAttribute(i):typeof c!="function"&&typeof c!="object"&&t.node.setAttribute(i,c===!0?"":c)}catch{}},{depth:r.path.length});r.__effects.push(a)}if(t.data&&typeof t.data=="object")for(let n in t.data){let s=t.data[n];if(typeof s!="function")continue;let a="data-"+n.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),c=at(()=>{try{let l=s(t,t.state,t.context);if(!t.node?.setAttribute)return;l==null||l===!1?t.node.removeAttribute(a):typeof l!="function"&&typeof l!="object"&&t.node.setAttribute(a,l===!0?"":l)}catch{}},{depth:r.path.length});r.__effects.push(c)}let o=t.classlist&&typeof t.classlist=="object"&&!Array.isArray(t.classlist)?t.classlist:t.class&&typeof t.class=="object"&&!Array.isArray(t.class)?t.class:null;if(o)for(let n in o){let s=o[n];if(typeof s!="function")continue;let i=at(()=>{try{let a=s(t,t.state,t.context);if(!t.node?.classList)return;typeof a=="string"?t.node.classList.add(a):a?t.node.classList.add(n):t.node.classList.remove(n)}catch{}},{depth:r.path.length});r.__effects.push(i)}if(typeof e.if=="function"){let n=e.if,s=at(()=>{let i=n(t,t.state,t.context),a=r.__if;if(r.__if=!!i,a&&!r.__if&&t.node)t.node.remove();else if(!a&&r.__if)if(r.__ifInitialized){t.node||(t.node=_r(t));let c=t.parent,l=c?.node;if(l&&t.node){let f=null,p=Object.keys(c),u=p.indexOf(t.key);for(let d=u+1;d<p.length;d++){let h=c[p[d]];if(h?.node?.parentNode===l){f=h.node;break}}f?l.insertBefore(t.node,f):l.appendChild(t.node)}else Pc(t,t.parent);Tc(t)}else{if(r.__ifInitialized=!0,t.tag||(t.tag=Sr(t)),ve("Init",t,{}),t.node||(t.node=_r(t)),!t.node)return;ve("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id);let c=e.if;delete e.if;try{Ec(t,e)}finally{e.if=c}Tc(t),Xh(t),Zh(t,{}),Jh(t,{}),Pc(t,t.parent)}},{depth:r.path.length});r.__effects.push(s)}for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||At.has(n)||typeof t[n]!="function")continue;let s=n.charCodeAt(0);if(s>=65&&s<=90||Cr(n))continue;let i=t[n];r.__exec[n]=i;let a=t.tag||"div";if(Ze(a,n)&&!it[n]&&!(mt&&mt.has(n))){let c=n,l=at(()=>{try{let f=i(t,t.state,t.context);t.node?.setAttribute&&(f==null||f===!1?t.node.removeAttribute(c):typeof f!="function"&&typeof f!="object"&&(c==="src"&&"src"in t.node?t.node.src=f:t.node.setAttribute(c,f===!0?"":f)))}catch{}},{depth:r.path.length});r.__effects.push(l)}}Sw(t)}function Tc(t){let{node:e}=t;if(e){if(typeof t.text=="string"&&!t.text.includes("{{")?t.tag==="string"?e.nodeValue=t.text:e.textContent=t.text:typeof t.text=="number"&&(e.textContent=t.text),_w(t),typeof t.html=="string"&&(e.innerHTML=t.html),t.value!=null&&typeof t.value!="function"&&"value"in e){let r=String(t.value);e.value!==r&&(e.value=r)}if(t.style&&typeof t.style=="object"&&vr(e,t.style),t.attr&&typeof t.attr=="object")for(let r in t.attr){let o=t.attr[r];typeof o=="function"||typeof o=="object"||o==null||o===!1||e.setAttribute&&e.setAttribute(r,o===!0?"":o)}if(t.data&&typeof t.data=="object")for(let r in t.data){let o=t.data[r];typeof o=="function"||typeof o=="object"||o==null||o===!1||e.dataset&&(e.dataset[r]=o===!0?"":o)}if(t.classlist||t.class){let r=t.classlist||t.class;if(typeof r=="string")r.split(" ").forEach(o=>o&&e.classList.add(o));else if(typeof r=="object")for(let o in r){let n=typeof r[o]=="function"?r[o](t,t.state,t.context):r[o];n&&e.classList.add(typeof n=="string"?n:o)}}}}function vr(t,e){if(!t||!e||!t.style)return;let r=null;for(let o in e){let n=e[o];if(n!=null){if(o.charAt(0)==="&"&&typeof n=="object"){r||(r={}),r[o]=n;continue}try{let s=String(n),i=o.replace(/[A-Z]/g,f=>"-"+f.toLowerCase()),a=s.trim(),c=/\s*!important\s*$/.test(a),l=a.replace(/\s*!important\s*$/,"");t.style.setProperty(i,l,c?"important":"")}catch{}}}r&&xw(t,r)}var bw=0;function xw(t,e){let r=`_ds${bw++}`;t.classList.add(r);let o=t.ownerDocument,n=o.querySelector("style[data-smbls-scoped]");n||(n=o.createElement("style"),n.setAttribute("data-smbls-scoped",""),o.head.appendChild(n));let s="";for(let i in e){let a="."+r,c=i.replace(/&/g,a).split(",").map(f=>{let p=f.trim();return p.includes(a)?p:a+p}).join(", "),l=e[i];if(typeof l=="object"){let f="",p="";for(let u in l){let d=l[u];if(typeof d=="object"){let h=u.includes("&")?c.split(", ").map(m=>u.replace(/&/g,m)).join(", "):c.split(", ").map(m=>`${m} ${u}`).join(", "),g="";for(let m in d)g+=`${m.replace(/[A-Z]/g,y=>"-"+y.toLowerCase())}: ${d[m]};`;p+=`${h} { ${g} }
40
+ `):"")}}if(Pc(s,e,o),e&&(e[s.key]=s,e.__ref?.__children&&(e.__ref.__children.includes(s.key)||e.__ref.__children.push(s.key))),typeof s.html=="function"&&s.node&&!s.node.innerHTML){let g=s.context?.designSystem;g&&ut(g);try{let m=s.html(s,s.state,s.context);m!=null&&typeof m!="function"&&(s.node.innerHTML=m)}catch{}finally{g&&it()}}if(ve("Create",s,n),ve("Complete",s,n),ve("Render",s,n),ve("RenderRouter",s,n),typeof s.onFrame=="function"){let g=s.onFrame,m=s.context?.designSystem,y=()=>{if(s.node){if(s.node.isConnected){m&&ut(m);try{g(s,s.state,s.context)}catch(b){console.error("[DOMQL] onFrame error:",b)}finally{m&&it()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function xw(t,e,r){let n=!e,o=r.state&&typeof r.state=="object"&&!Array.isArray(r.state)&&Object.keys(r.state).length===0,s=n&&o&&t.context?.state,i=r.state!==void 0&&!s?r.state:t.state&&!mt(t.state)?t.state:void 0;if(i==null){if(e?.state)t.state=e.state,Ht(t,t.state);else if(t.context?.state){let a=t.context.state,c={...a},l=t.context?.polyglot;if(l?.translations){let f=a.lang||l.defaultLang||"en",p=l.translations[f];if(p&&typeof p=="object")for(let d in p)c[d]===void 0&&(c[d]=p[d]);let u=new Set(l.languages||[]);for(let d in l.translations)!u.has(d)&&c[d]===void 0&&(c[d]=l.translations[d])}t.state=mt(c)?c:Nt(c),t.state.__element=t,t.state.root=t.state,Ht(t,t.state)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),Ht(t,t.state);return}if(typeof i=="string"){if(t.state=Zh(i,e),t.state&&typeof t.state=="object"&&!mt(t.state)){let a=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:a,enumerable:!1,configurable:!0,writable:!0})}Ht(t,t.state);return}if(typeof i=="function"){let a=i(t,e?.state);t.state=Nt(a||{})}else t.state=Nt({...i});t.state.__element=t,e?.state?(t.state.parent=e.state,t.state.root=e.state.root||e.state):t.state.root=t.state,Ht(t,t.state)}function vc(t,e){if(!e)return t;let r=e.split("/"),n=t;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function Zh(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")){let o=t.slice(3);return o?vc(e.state,o):e.state??{}}if(t.startsWith("~/")){let o=e.state?.root||e.state,s=t.slice(2);return s?vc(o,s):o??{}}if(e.state?.[t]!==void 0)return e.state[t];let r=vc(e.state,t);if(r!=null&&Object.keys(r).length>0)return r;let n=e.context?.polyglot;if(n?.translations){let o=e.state?.root?.lang||n.defaultLang||"en",s=n.translations[o];if(s?.[t]!==void 0)return s[t];if(n.translations[t]!==void 0)return n.translations[t]}return{}}function Sw(t){let e=t.__ref,r=t.tag||"div",n=t.context?.designSystem,o=[],s=Object.keys(t);for(let i=0;i<s.length;i++){let a=s[i];if(typeof t[a]!="function"||Ot.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||Cr(a)||ct[a]||xt&&xt.has(a)||Ze(r,a)||o.push({prop:a,fn:t[a]})}for(let i=0;i<o.length;i++){let{prop:a,fn:c}=o[i];e.__exec[a]=c,Object.defineProperty(t,a,{get(){n&&ut(n);try{return c(t,t.state,t.context)}catch{return}finally{n&&it()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function Ec(t,e){let r=t.__ref;if(Sw(t),typeof t.text=="function"){let o=t.text,s=lt(()=>{if(!r.contentManaged)try{let i=o(t,t.state,t.context);t.node&&i!=null&&typeof i!="function"&&typeof i!="object"&&(typeof i=="string"&&i.includes("{{")&&(i=rr.call(t,i,t.state)),t.tag==="string"?t.node.nodeValue=i:t.node.textContent=i)}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}else if(typeof t.text=="string"&&t.text.includes("{{")){let o=t.text,s=lt(()=>{if(r.contentManaged)return;let i=rr.call(t,o,t.state);i!=null&&(t.text=i),t.node&&(t.tag==="string"?t.node.nodeValue=i??"":t.node.textContent=i??"")},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&typeof t[o]=="function"&&!Ot.has(o)&&!Cr(o)&&!r.__exec[o]){if(ct[o]){let s=t[o],i=o,a=lt(()=>{let c=t.context?.designSystem;c&&ut(c);try{let l=s(t,t.state,t.context),f=ct[i](l,t,t.state,t.context);f&&t.node?vr(t.node,f):t.node&&(i==="show"||i==="hide")&&(t.node.style.display="")}finally{c&&it()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}else if(xt&&xt.has(o)){let s=t[o],i=o,a=lt(()=>{let c=t.context?.designSystem;c&&ut(c);try{let l=s(t,t.state,t.context);t.node&&(l!=null?vr(t.node,{[i]:l}):t.node.style[i]="")}finally{c&&it()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}}if(typeof e.html=="function"){let o=e.html,s=lt(()=>{let i=t.context?.designSystem;i&&ut(i);try{let a=o(t,t.state,t.context);t.node&&a!=null&&typeof a!="function"&&(t.node.innerHTML=a)}finally{i&&it()}},{depth:r.path.length});r.__effects.push(s),r.__exec.html=o}if(typeof e.value=="function"){let o=e.value,s=lt(()=>{try{let i=o(t,t.state,t.context);if(!t.node||!("value"in t.node))return;let a=i==null?"":String(i);if(t.node.value===a)return;let c=typeof document<"u"&&document.activeElement===t.node,l=c&&typeof t.node.selectionStart=="number"?t.node.selectionStart:null,f=c&&typeof t.node.selectionEnd=="number"?t.node.selectionEnd:null;if(t.node.value=a,c&&l!=null&&f!=null)try{t.node.setSelectionRange(l,f)}catch{}}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.value=o}if(typeof e.style=="function"){let o=e.style,s=lt(()=>{let i=o(t,t.state,t.context);vr(t.node,i)},{depth:r.path.length});r.__effects.push(s),r.__exec.style=o}else if(t.style&&typeof t.style=="object")for(let o in t.style){let s=t.style[o];if(typeof s!="function")continue;let i=lt(()=>{try{let a=s(t,t.state,t.context);t.node&&vr(t.node,{[o]:a})}catch{}},{depth:r.path.length});r.__effects.push(i)}if(t.attr&&typeof t.attr=="object"){for(let o in t.attr)if(typeof t.attr[o]=="function"){let s=t.attr[o],i=o,a=lt(()=>{try{let c=s(t,t.state,t.context);t.node?.setAttribute&&(c==null||c===!1?t.node.removeAttribute(i):typeof c!="function"&&typeof c!="object"&&t.node.setAttribute(i,c===!0?"":c))}catch{}},{depth:r.path.length});r.__effects.push(a)}}if(t.aria&&typeof t.aria=="object")for(let o in t.aria){let s=t.aria[o];if(typeof s!="function")continue;let i="aria-"+o.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=lt(()=>{try{let c=s(t,t.state,t.context);if(!t.node?.setAttribute)return;c==null||c===!1?t.node.removeAttribute(i):typeof c!="function"&&typeof c!="object"&&t.node.setAttribute(i,c===!0?"":c)}catch{}},{depth:r.path.length});r.__effects.push(a)}if(t.data&&typeof t.data=="object")for(let o in t.data){let s=t.data[o];if(typeof s!="function")continue;let a="data-"+o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),c=lt(()=>{try{let l=s(t,t.state,t.context);if(!t.node?.setAttribute)return;l==null||l===!1?t.node.removeAttribute(a):typeof l!="function"&&typeof l!="object"&&t.node.setAttribute(a,l===!0?"":l)}catch{}},{depth:r.path.length});r.__effects.push(c)}let n=t.classlist&&typeof t.classlist=="object"&&!Array.isArray(t.classlist)?t.classlist:t.class&&typeof t.class=="object"&&!Array.isArray(t.class)?t.class:null;if(n)for(let o in n){let s=n[o];if(typeof s!="function")continue;let i=lt(()=>{try{let a=s(t,t.state,t.context);if(!t.node?.classList)return;typeof a=="string"?t.node.classList.add(a):a?t.node.classList.add(o):t.node.classList.remove(o)}catch{}},{depth:r.path.length});r.__effects.push(i)}if(typeof e.if=="function"){let o=e.if,s=lt(()=>{let i=o(t,t.state,t.context),a=r.__if;if(r.__if=!!i,a&&!r.__if&&t.node)t.node.remove();else if(!a&&r.__if)if(r.__ifInitialized){t.node||(t.node=_r(t));let c=t.parent,l=c?.node;if(l&&t.node){let f=null,p=Object.keys(c),u=p.indexOf(t.key);for(let d=u+1;d<p.length;d++){let h=c[p[d]];if(h?.node?.parentNode===l){f=h.node;break}}f?l.insertBefore(t.node,f):l.appendChild(t.node)}else Pc(t,t.parent);Tc(t)}else{if(r.__ifInitialized=!0,t.tag||(t.tag=Sr(t)),ve("Init",t,{}),t.node||(t.node=_r(t)),!t.node)return;ve("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id);let c=e.if;delete e.if;try{Ec(t,e)}finally{e.if=c}Tc(t),Jh(t),Qh(t,{}),tg(t,{}),Pc(t,t.parent)}},{depth:r.path.length});r.__effects.push(s)}for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||Ot.has(o)||typeof t[o]!="function")continue;let s=o.charCodeAt(0);if(s>=65&&s<=90||Cr(o))continue;let i=t[o];r.__exec[o]=i;let a=t.tag||"div";if(Ze(a,o)&&!ct[o]&&!(xt&&xt.has(o))){let c=o,l=lt(()=>{try{let f=i(t,t.state,t.context);t.node?.setAttribute&&(f==null||f===!1?t.node.removeAttribute(c):typeof f!="function"&&typeof f!="object"&&(c==="src"&&"src"in t.node?t.node.src=f:t.node.setAttribute(c,f===!0?"":f)))}catch{}},{depth:r.path.length});r.__effects.push(l)}}kw(t)}function Tc(t){let{node:e}=t;if(e){if(typeof t.text=="string"&&!t.text.includes("{{")?t.tag==="string"?e.nodeValue=t.text:e.textContent=t.text:typeof t.text=="number"&&(e.textContent=t.text),vw(t),typeof t.html=="string"&&(e.innerHTML=t.html),t.value!=null&&typeof t.value!="function"&&"value"in e){let r=String(t.value);e.value!==r&&(e.value=r)}if(t.style&&typeof t.style=="object"&&vr(e,t.style),t.attr&&typeof t.attr=="object")for(let r in t.attr){let n=t.attr[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||e.setAttribute&&e.setAttribute(r,n===!0?"":n)}if(t.data&&typeof t.data=="object")for(let r in t.data){let n=t.data[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||e.dataset&&(e.dataset[r]=n===!0?"":n)}if(t.classlist||t.class){let r=t.classlist||t.class;if(typeof r=="string")r.split(" ").forEach(n=>n&&e.classList.add(n));else if(typeof r=="object")for(let n in r){let o=typeof r[n]=="function"?r[n](t,t.state,t.context):r[n];o&&e.classList.add(typeof o=="string"?o:n)}}}}function vr(t,e){if(!t||!e||!t.style)return;let r=null;for(let n in e){let o=e[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,f=>"-"+f.toLowerCase()),a=s.trim(),c=/\s*!important\s*$/.test(a),l=a.replace(/\s*!important\s*$/,"");t.style.setProperty(i,l,c?"important":"")}catch{}}}r&&ww(t,r)}var _w=0;function ww(t,e){let r=`_ds${_w++}`;t.classList.add(r);let n=t.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 e){let a="."+r,c=i.replace(/&/g,a).split(",").map(f=>{let p=f.trim();return p.includes(a)?p:a+p}).join(", "),l=e[i];if(typeof l=="object"){let f="",p="";for(let u in l){let d=l[u];if(typeof d=="object"){let h=u.includes("&")?c.split(", ").map(m=>u.replace(/&/g,m)).join(", "):c.split(", ").map(m=>`${m} ${u}`).join(", "),g="";for(let m in d)g+=`${m.replace(/[A-Z]/g,y=>"-"+y.toLowerCase())}: ${d[m]};`;p+=`${h} { ${g} }
41
41
  `}else f+=`${u.replace(/[A-Z]/g,h=>"-"+h.toLowerCase())}: ${d};`}f&&(s+=`${c} { ${f} }
42
- `),p&&(s+=p)}}s&&(n.textContent+=s)}function Sw(t){let e=t.__ref;e.__conditionalRunners=[];for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let o=r.charAt(0);if(o!=="."&&o!=="!")continue;let n=r.slice(1);if(!n)continue;let s=t[r];if(!s||typeof s!="object")continue;let i=o==="!",a={lastMatch:!1,appliedKeys:null},c=()=>{if(!t.node)return;let f,p=t[n];if(p===void 0)if(t.state&&n in t.state)f=t.state[n];else{let h=t.context?.cases?.[n];if(h===void 0)return;f=typeof h=="function"?h.call(t,t):h}else typeof p=="function"?f=p(t,t.state,t.context):f=p;let u=i?!f:!!f;if(u===a.lastMatch)return;a.lastMatch=u;let d=t.context?.designSystem;d&&lt(d);try{if(u){let h={};for(let m in s){if(!Object.prototype.hasOwnProperty.call(s,m))continue;let y=typeof s[m]=="function"?s[m](t,t.state,t.context):s[m];if(y!=null)if(it[m]){let b=it[m](y,t,t.state,t.context);if(b){let x=Array.isArray(b)?b:[b];for(let w of x)w&&Object.assign(h,w)}}else mt&&mt.has(m)&&(h[m]=y)}let g=Object.keys(h);g.length?(vr(t.node,h),a.appliedKeys=g):a.appliedKeys=null}else if(a.appliedKeys){for(let h of a.appliedKeys)t.node.style[h]="";a.appliedKeys=null}}finally{d&&nt()}};e.__conditionalRunners.push(c);let l=at(c,{depth:e.path.length});e.__effects.push(l)}}var Cc=new WeakSet;function _w(t){let{node:e}=t;if(!e)return;if(Cc.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}Cc.add(t);let r=t.context?.designSystem;r&&lt(r);try{let o={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||typeof t[s]=="function"||At.has(s))continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!Cr(s)){if(it[s]){let a=t[s],c=it[s](a,t,t.state,t.context);if(c){if(Array.isArray(c))for(let l of c)l&&Object.assign(o,l);else Object.assign(o,c);n=!0}}else if(mt&&mt.has(s)){let a=t[s];a!=null&&typeof a!="object"&&(o[s]=a,n=!0)}else if(s.charCodeAt(0)===45){let a=t[s];a!=null&&typeof a!="object"&&(o[s]=a,n=!0)}else if(s.charAt(0)==="&"){let a=t[s];a&&typeof a=="object"&&(o[s]=a,n=!0)}else if(s.charAt(0)==="@"||s.charAt(0)===":"){let a=t[s];if(a&&typeof a=="object"){let c={};for(let l in a){let f=a[l];if(typeof f=="function"&&(f=f(t,t.state,t.context)),!(f==null||typeof f=="function"))if(it[l]){let p=it[l](f,t,t.state,t.context);if(p)if(Array.isArray(p))for(let u of p)u&&Object.assign(c,u);else Object.assign(c,p)}else c[l]=f}if(Object.keys(c).length){if(s.length>1&&s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")&&!s.startsWith("@supports")&&(s==="@dark"||s==="@light"||!t.context?.designSystem?.media?.[s.slice(1)])){let f={};for(let u in c){let d=c[u];f[u]=typeof d=="string"&&!d.includes("!important")?d+" !important":d}let p=s.slice(1);o[`[data-theme="${p}"] &`]=f}else{let f=s;if(s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")){let u=s.slice(1),d=t.context?.designSystem?.media?.[u]||t.context?.designSystem?.media?.[u];d&&(f=`@media ${d}`)}let p={};for(let u in c){let d=c[u];if(d&&typeof d=="object"&&!Array.isArray(d)){let h={};for(let m in d)if(it[m]){let y=it[m](d[m],t,t.state,t.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]=d[m];let g=u.startsWith(":")?"":" ";if(f.includes(",")){let m=f.split(",").map(y=>`${y.trim()}${g}${u}`).join(", ");o[m]=h}else o[`${f}${g}${u}`]=h}else p[u]=d}Object.keys(p).length&&(o[f]=p)}n=!0}n=!0}}}}if(n){o.display&&String(o.display).includes("!important")&&(e.style.setProperty("display",String(o.display).replace(/\s*!important\s*$/,""),"important"),delete o.display);let s=Ye(o,null,t.context?.cssPrefix);s&&e.classList&&s.split(" ").forEach(a=>a&&e.classList.add(a));let i=t.display!=null&&typeof t.display!="function"?t.display:t.hide===!0||t.show===!1?"none":null;if(i!=null){let a=o.display;if(a&&a!==i)if(i==="none"){let c=[];for(let l of e.classList)l.startsWith("_d-")&&l!=="_d-none"&&c.push(l);for(let l of c)e.classList.remove(l);e.classList.add("_d-none")}else e.style.display=t.display}}}finally{r&&nt(),Cc.delete(t)}}function Xh(t){let{node:e}=t;if(!e||!e.setAttribute)return;if(t.aria&&typeof t.aria=="object")for(let n in t.aria){let s=t.aria[n];if(typeof s=="function"||typeof s=="object"||s==null||s===!1)continue;let i="aria-"+n.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());e.setAttribute(i,s===!0?"":s)}let r=Kh(t);for(let n in r){let s=r[n];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&e.setAttribute(n,s===!0?"":s)}let o=t.tag||"div";for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||typeof t[n]=="function"||At.has(n)||n==="on"||r[n]!==void 0)continue;let s=n.charCodeAt(0);if(!(s>=65&&s<=90)&&!Cr(n)&&!(it[n]||mt&&mt.has(n))&&Ze(o,n)){let i=t[n];if(i==null||i===!1||(typeof i=="string"&&i.includes("{{")&&(i=rr(i,t,t.state,t.context),t[n]=i),i==null||i===!1||typeof i=="function"||typeof i=="object"))continue;e.setAttribute(n,i===!0?"":i)}}}function Zh(t,e){for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||!Cr(r))continue;let o=t[r];if(typeof o=="string"&&/^[A-Za-z_$][\w$]*$/.test(o)){let s=o;o=function(a){return t.call(s,a)}}if(typeof o!="function")continue;let n=hw(r);wr.has(n)||ws(gw(n),t,o)}}function Oc(t,e){let r={...t};for(let o in e){let n=r[o],s=e[o];n&&s&&typeof n=="object"&&typeof s=="object"&&!Array.isArray(n)&&!Array.isArray(s)&&typeof n!="function"&&typeof s!="function"?r[o]=Oc(n,s):r[o]=s}return r}function Rc(t,e,r){if(!e||!t.node)return;let o=t.childExtends;if(Array.isArray(e)){let s=(t.context?.document||globalThis.document)?.createDocumentFragment();if(!s)return;let i=t.childProps,a=t.childrenAs;for(let c=0;c<e.length;c++){let l=e[c],f=l;(typeof l=="string"||typeof l=="number")&&(l={text:l});let p=i;if(typeof i=="function")try{p=i(t,l)}catch{p=null}if(a==="state"){let h=f;(typeof f=="string"||typeof f=="number")&&(h={value:f,text:f}),l=p?{...p,state:h}:{state:h}}else p&&(l=Oc(p,l));if(o&&!l.ignoreChildExtends)if(l.extends){let h=Array.isArray(l.extends)?l.extends:[l.extends],g=Array.isArray(o)?o:[o];l={...l,extends:[...g,...h]}}else l={extends:o,...l};let u=l?.key||`${c}`,d=zt(l,t,u,r);d?.node&&s.appendChild(d.node)}t.node.appendChild(s);return}if(typeof e=="string"){let n=Yh(e,t);if(Array.isArray(n)){Rc(t,n,r);return}}if(typeof e=="object")for(let n in e){if(At.has(n))continue;let s=e[n];if(!(s==null||s===!1)){if((typeof s=="string"||typeof s=="number")&&(s={text:s}),t.childProps&&(s=Oc(t.childProps,s)),o&&!s.ignoreChildExtends)if(s.extends){let i=Array.isArray(s.extends)?s.extends:[s.extends],a=Array.isArray(o)?o:[o];s={...s,extends:[...a,...i]}}else s={extends:o,...s};zt(s,t,n,r)}}}function Jh(t,e){let{children:r,content:o}=t,n=t.childExtends;if(typeof r=="function"){let i=r;r=i(t,t.state,t.context),t.children=r;let a=t.__ref,c=!1,l=at(()=>{let f=i(t,t.state,t.context);if(!c){c=!0;return}if(f===t.children)return;if(t.children=f,Array.isArray(f)&&t.childrenAs==="state"){let d=t.childProps,h=[],g=new Map;for(let v=0;v<f.length;v++){let O=f[v],R=d;if(typeof d=="function")try{R=d(t,O)}catch{R=null}let M=R&&R.key||O&&O.key||`${v}`;h.push(M),g.set(M,{rawChild:O,childProps:R})}let m=new Set(h),y=a.__children.slice();for(let v of y)if(!m.has(v)){let O=t[v];O?.remove&&O.remove(),delete t[v]}let b=t.childExtends,w=(t.context?.document||globalThis.document)?.createDocumentFragment();for(let v of h){let O=g.get(v),R=O.rawChild,M=t[v];if(M&&M.state){if(R&&typeof R=="object"){let j=M.state;if(typeof j.replace=="function")j.replace(R);else if(typeof j.update=="function"){for(let Z in j)if(!(Z==="__element"||Z==="root"||Z==="parent"||Z==="update")&&!Object.prototype.hasOwnProperty.call(R,Z))try{j[Z]=void 0}catch{}j.update(R)}else for(let Z in R)j[Z]=R[Z]}continue}let P=R;(typeof R=="string"||typeof R=="number")&&(P={value:R,text:R});let z=O.childProps,U=z?{...z,state:P}:{state:P};if(b&&!U.ignoreChildExtends)if(U.extends){let j=Array.isArray(U.extends)?U.extends:[U.extends],Z=Array.isArray(b)?b:[b];U={...U,extends:[...Z,...j]}}else U={extends:b,...U};let X=zt(U,t,v,e);X?.node&&w&&w.appendChild(X.node)}w&&w.childNodes.length&&t.node&&t.node.appendChild(w),a.__children=h;return}for(let d of[...a.__children]){let h=t[d];h?.remove&&h.remove(),delete t[d]}a.__children=[],Rc(t,f,e)},{depth:a.path.length});a.__effects.push(l)}if(Rc(t,r||o,e),r||o)return;let s=t.context?.components||{};{let i=Object.keys(t);for(let a=0;a<i.length;a++){let c=i[a];if(!c.endsWith("Extends")||typeof t[c]!="string")continue;let l=c.slice(0,-7);if(!l||l.charCodeAt(0)<65||l.charCodeAt(0)>90)continue;let f={extends:t[c]};delete t[c];for(let p=a+1;p<i.length;p++){let u=i[p],d=u.charCodeAt(0);if(d>=65&&d<=90||At.has(u)||typeof t[u]=="function"&&(u.startsWith("on")||u.startsWith(".")))break;let h=t[u];h!==void 0&&(f[u]=h,delete t[u])}t[l]&&typeof t[l]=="object"?t[l]={...f,...t[l]}:t[l]=f}}for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||At.has(i)||typeof t[i]!="object"||t[i]===null)continue;let a=i.charCodeAt(0);if(a<65||a>90)continue;let c=t[i];if(!c.__ref){if(!c.extends&&!c.extend){let l=s[i]||s[`smbls.${i}`];l&&(c={extends:l,...c})}if(t.childProps&&(c={...t.childProps,...c}),n&&!c.ignoreChildExtends)if(c.extends){let l=Array.isArray(c.extends)?c.extends:[c.extends],f=Array.isArray(n)?n:[n];c={...c,extends:[...f,...l]}}else c={extends:n,...c};zt(c,t,i,e)}}}function Pc(t,e,r){let{node:o}=t;if(!o)return;let n=e?.node||(e?.nodeType?e:null);if(n)if(r?.position==="before"&&r.node)n.insertBefore(o,r.node);else if(r?.position==="after"&&r.node){let s=r.node.nextSibling;s?n.insertBefore(o,s):n.appendChild(o)}else n.appendChild(o)}function ve(t,e,r){let o=t.charAt(0).toLowerCase()+t.slice(1);e.context?.plugins?.length&&Yt(o,e,r);let n="on"+t,s=e[n];if(typeof s=="function"){let i=e.context?.designSystem;i&&lt(i);try{if(s(e,e.state,e.context,r)===!1)return!1}catch(a){if(e.context?.plugins?.length&&Yt("error",e,{hook:n,error:a})||console.error(`[DOMQL] Lifecycle "${n}" error:`,a),e.context?.strictMode)throw a}finally{i&&nt()}}return!0}var Qh={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"]},tg={"gradient-blue-light":`linear-gradient(to right,
42
+ `),p&&(s+=p)}}s&&(o.textContent+=s)}function kw(t){let e=t.__ref;e.__conditionalRunners=[];for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=r.charAt(0);if(n!=="."&&n!=="!")continue;let o=r.slice(1);if(!o)continue;let s=t[r];if(!s||typeof s!="object")continue;let i=n==="!",a={lastMatch:!1,appliedKeys:null},c=()=>{if(!t.node)return;let f,p=t[o];if(p===void 0)if(t.state&&o in t.state)f=t.state[o];else{let h=t.context?.cases?.[o];if(h===void 0)return;f=typeof h=="function"?h.call(t,t):h}else typeof p=="function"?f=p(t,t.state,t.context):f=p;let u=i?!f:!!f;if(u===a.lastMatch)return;a.lastMatch=u;let d=t.context?.designSystem;d&&ut(d);try{if(u){let h={};for(let m in s){if(!Object.prototype.hasOwnProperty.call(s,m))continue;let y=typeof s[m]=="function"?s[m](t,t.state,t.context):s[m];if(y!=null)if(ct[m]){let b=ct[m](y,t,t.state,t.context);if(b){let x=Array.isArray(b)?b:[b];for(let S of x)S&&Object.assign(h,S)}}else xt&&xt.has(m)&&(h[m]=y)}let g=Object.keys(h);g.length?(vr(t.node,h),a.appliedKeys=g):a.appliedKeys=null}else if(a.appliedKeys){for(let h of a.appliedKeys)t.node.style[h]="";a.appliedKeys=null}}finally{d&&it()}};e.__conditionalRunners.push(c);let l=lt(c,{depth:e.path.length});e.__effects.push(l)}}var Cc=new WeakSet;function vw(t){let{node:e}=t;if(!e)return;if(Cc.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}Cc.add(t);let r=t.context?.designSystem;r&&ut(r);try{let n={},o=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||typeof t[s]=="function"||Ot.has(s))continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!Cr(s)){if(ct[s]){let a=t[s],c=ct[s](a,t,t.state,t.context);if(c){if(Array.isArray(c))for(let l of c)l&&Object.assign(n,l);else Object.assign(n,c);o=!0}}else if(xt&&xt.has(s)){let a=t[s];a!=null&&typeof a!="object"&&(n[s]=a,o=!0)}else if(s.charCodeAt(0)===45){let a=t[s];a!=null&&typeof a!="object"&&(n[s]=a,o=!0)}else if(s.charAt(0)==="&"){let a=t[s];a&&typeof a=="object"&&(n[s]=a,o=!0)}else if(s.charAt(0)==="@"||s.charAt(0)===":"){let a=t[s];if(a&&typeof a=="object"){let c={};for(let l in a){let f=a[l];if(typeof f=="function"&&(f=f(t,t.state,t.context)),!(f==null||typeof f=="function"))if(ct[l]){let p=ct[l](f,t,t.state,t.context);if(p)if(Array.isArray(p))for(let u of p)u&&Object.assign(c,u);else Object.assign(c,p)}else c[l]=f}if(Object.keys(c).length){if(s.length>1&&s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")&&!s.startsWith("@supports")&&(s==="@dark"||s==="@light"||!t.context?.designSystem?.media?.[s.slice(1)])){let f={};for(let u in c){let d=c[u];f[u]=typeof d=="string"&&!d.includes("!important")?d+" !important":d}let p=s.slice(1);n[`[data-theme="${p}"] &`]=f}else{let f=s;if(s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")){let u=s.slice(1),d=t.context?.designSystem?.media?.[u]||t.context?.designSystem?.media?.[u];d&&(f=`@media ${d}`)}let p={};for(let u in c){let d=c[u];if(d&&typeof d=="object"&&!Array.isArray(d)){let h={};for(let m in d)if(ct[m]){let y=ct[m](d[m],t,t.state,t.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]=d[m];let g=u.startsWith(":")?"":" ";if(f.includes(",")){let m=f.split(",").map(y=>`${y.trim()}${g}${u}`).join(", ");n[m]=h}else n[`${f}${g}${u}`]=h}else p[u]=d}Object.keys(p).length&&(n[f]=p)}o=!0}o=!0}}}}if(o){n.display&&String(n.display).includes("!important")&&(e.style.setProperty("display",String(n.display).replace(/\s*!important\s*$/,""),"important"),delete n.display);let s=Xe(n,null,t.context?.cssPrefix);s&&e.classList&&s.split(" ").forEach(a=>a&&e.classList.add(a));let i=t.display!=null&&typeof t.display!="function"?t.display:t.hide===!0||t.show===!1?"none":null;if(i!=null){let a=n.display;if(a&&a!==i)if(i==="none"){let c=[];for(let l of e.classList)l.startsWith("_d-")&&l!=="_d-none"&&c.push(l);for(let l of c)e.classList.remove(l);e.classList.add("_d-none")}else e.style.display=t.display}}}finally{r&&it(),Cc.delete(t)}}function Jh(t){let{node:e}=t;if(!e||!e.setAttribute)return;if(t.aria&&typeof t.aria=="object")for(let o in t.aria){let s=t.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());e.setAttribute(i,s===!0?"":s)}let r=Yh(t);for(let o in r){let s=r[o];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&e.setAttribute(o,s===!0?"":s)}let n=t.tag||"div";for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||typeof t[o]=="function"||Ot.has(o)||o==="on"||r[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!Cr(o)&&!(ct[o]||xt&&xt.has(o))&&Ze(n,o)){let i=t[o];if(i==null||i===!1||(typeof i=="string"&&i.includes("{{")&&(i=rr(i,t,t.state,t.context),t[o]=i),i==null||i===!1||typeof i=="function"||typeof i=="object"))continue;e.setAttribute(o,i===!0?"":i)}}}function Qh(t,e){for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||!Cr(r))continue;let n=t[r];if(typeof n=="string"&&/^[A-Za-z_$][\w$]*$/.test(n)){let s=n;n=function(a){return t.call(s,a)}}if(typeof n!="function")continue;let o=yw(r);wr.has(o)||ws(bw(o),t,n)}}function Oc(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=Oc(o,s):r[n]=s}return r}function Rc(t,e,r){if(!e||!t.node)return;let n=t.childExtends;if(Array.isArray(e)){let s=(t.context?.document||globalThis.document)?.createDocumentFragment();if(!s)return;let i=t.childProps,a=t.childrenAs;for(let c=0;c<e.length;c++){let l=e[c],f=l;(typeof l=="string"||typeof l=="number")&&(l={text:l});let p=i;if(typeof i=="function")try{p=i(t,l)}catch{p=null}if(a==="state"){let h=f;(typeof f=="string"||typeof f=="number")&&(h={value:f,text:f}),l=p?{...p,state:h}:{state:h}}else p&&(l=Oc(p,l));if(n&&!l.ignoreChildExtends)if(l.extends){let h=Array.isArray(l.extends)?l.extends:[l.extends],g=Array.isArray(n)?n:[n];l={...l,extends:[...g,...h]}}else l={extends:n,...l};let u=l?.key||`${c}`,d=Ut(l,t,u,r);d?.node&&s.appendChild(d.node)}t.node.appendChild(s);return}if(typeof e=="string"){let o=Zh(e,t);if(Array.isArray(o)){Rc(t,o,r);return}}if(typeof e=="object")for(let o in e){if(Ot.has(o))continue;let s=e[o];if(!(s==null||s===!1)){if((typeof s=="string"||typeof s=="number")&&(s={text:s}),t.childProps&&(s=Oc(t.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};Ut(s,t,o,r)}}}function tg(t,e){let{children:r,content:n}=t,o=t.childExtends;if(typeof r=="function"){let i=r;r=i(t,t.state,t.context),t.children=r;let a=t.__ref,c=!1,l=lt(()=>{let f=i(t,t.state,t.context);if(!c){c=!0;return}if(f===t.children)return;if(t.children=f,Array.isArray(f)&&t.childrenAs==="state"){let d=t.childProps,h=[],g=new Map;for(let v=0;v<f.length;v++){let T=f[v],R=d;if(typeof d=="function")try{R=d(t,T)}catch{R=null}let L=R&&R.key||T&&T.key||`${v}`;h.push(L),g.set(L,{rawChild:T,childProps:R})}let m=new Set(h),y=a.__children.slice();for(let v of y)if(!m.has(v)){let T=t[v];T?.remove&&T.remove(),delete t[v]}let b=t.childExtends,S=(t.context?.document||globalThis.document)?.createDocumentFragment();for(let v of h){let T=g.get(v),R=T.rawChild,L=t[v];if(L&&L.state){if(R&&typeof R=="object"){let M=L.state;if(typeof M.replace=="function")M.replace(R);else if(typeof M.update=="function"){for(let D in M)if(!(D==="__element"||D==="root"||D==="parent"||D==="update")&&!Object.prototype.hasOwnProperty.call(R,D))try{M[D]=void 0}catch{}M.update(R)}else for(let D in R)M[D]=R[D]}continue}let P=R;(typeof R=="string"||typeof R=="number")&&(P={value:R,text:R});let V=T.childProps,z=V?{...V,state:P}:{state:P};if(b&&!z.ignoreChildExtends)if(z.extends){let M=Array.isArray(z.extends)?z.extends:[z.extends],D=Array.isArray(b)?b:[b];z={...z,extends:[...D,...M]}}else z={extends:b,...z};let U=Ut(z,t,v,e);U?.node&&S&&S.appendChild(U.node)}S&&S.childNodes.length&&t.node&&t.node.appendChild(S),a.__children=h;return}for(let d of[...a.__children]){let h=t[d];h?.remove&&h.remove(),delete t[d]}a.__children=[],Rc(t,f,e)},{depth:a.path.length});a.__effects.push(l)}if(Rc(t,r||n,e),r||n)return;let s=t.context?.components||{};{let i=Object.keys(t);for(let a=0;a<i.length;a++){let c=i[a];if(!c.endsWith("Extends")||typeof t[c]!="string")continue;let l=c.slice(0,-7);if(!l||l.charCodeAt(0)<65||l.charCodeAt(0)>90)continue;let f={extends:t[c]};delete t[c];for(let p=a+1;p<i.length;p++){let u=i[p],d=u.charCodeAt(0);if(d>=65&&d<=90||Ot.has(u)||typeof t[u]=="function"&&(u.startsWith("on")||u.startsWith(".")))break;let h=t[u];h!==void 0&&(f[u]=h,delete t[u])}t[l]&&typeof t[l]=="object"?t[l]={...f,...t[l]}:t[l]=f}}for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||Ot.has(i)||typeof t[i]!="object"||t[i]===null)continue;let a=i.charCodeAt(0);if(a<65||a>90)continue;let c=t[i];if(!c.__ref){if(!c.extends&&!c.extend){let l=s[i]||s[`smbls.${i}`];l&&(c={extends:l,...c})}if(t.childProps&&(c={...t.childProps,...c}),o&&!c.ignoreChildExtends)if(c.extends){let l=Array.isArray(c.extends)?c.extends:[c.extends],f=Array.isArray(o)?o:[o];c={...c,extends:[...f,...l]}}else c={extends:o,...c};Ut(c,t,i,e)}}}function Pc(t,e,r){let{node:n}=t;if(!n)return;let o=e?.node||(e?.nodeType?e: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 ve(t,e,r){let n=t.charAt(0).toLowerCase()+t.slice(1);e.context?.plugins?.length&&Xt(n,e,r);let o="on"+t,s=e[o];if(typeof s=="function"){let i=e.context?.designSystem;i&&ut(i);try{if(s(e,e.state,e.context,r)===!1)return!1}catch(a){if(e.context?.plugins?.length&&Xt("error",e,{hook:o,error:a})||console.error(`[DOMQL] Lifecycle "${o}" error:`,a),e.context?.strictMode)throw a}finally{i&&it()}}return!0}var eg={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"]},rg={"gradient-blue-light":`linear-gradient(to right,
43
43
  rgba(4, 116, 242, 1),
44
44
  rgba(0, 48, 103, 1)
45
45
  )`,"gradient-blue-dark":`linear-gradient(to right,
@@ -65,15 +65,15 @@ FROM ${a}${l}`},Zx=t=>{let e=[],r=(o,n)=>{for(let s in o){let i=n?`${n}/${s}`:s;
65
65
  #1E54F0 36%,
66
66
  #8B4CCA 69%,
67
67
  #C66894 100%
68
- )`};var ww={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"}}}},kw={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},vw={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"}}},eg={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...ww,...kw,...vw,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var rg={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var og={ratio:1.618,subSequence:!0};var ng={SourceSans:[{url:""}]},sg={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif",metrics:{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3}}};var ig={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 ag={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 cg={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Ts={version:"0.0.1",color:Qh,gradient:tg,theme:eg,typography:rg,spacing:og,font:ng,fontFamily:sg,timing:cg,icons:ig,media:ag,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var Co={};$(Co,{A:()=>wm,AssetPicture:()=>Ag,Audio:()=>Og,Avatar:()=>Mm,B:()=>Kg,Block:()=>lg,Box:()=>Is,Br:()=>Jg,Button:()=>Cm,ButtonSet:()=>Om,COMPONENTS:()=>Er,Caption:()=>jg,Checkbox:()=>cm,CheckboxHgroup:()=>lm,Circle:()=>kg,CircleButton:()=>Em,Clickable:()=>Sg,Data:()=>Xg,Dialog:()=>Pm,DialogFooter:()=>$m,DialogHeader:()=>Im,Dropdown:()=>jm,DropdownList:()=>Bm,DropdownParent:()=>Vm,DropdownParentFocus:()=>zm,DropdownSiblingFocus:()=>Um,FileIcon:()=>bm,Flex:()=>ug,Focusable:()=>_g,FocusableComponent:()=>wg,Footnote:()=>Gg,Form:()=>yg,Grid:()=>dg,Gutter:()=>gg,H1:()=>Ig,H2:()=>$g,H3:()=>Fg,H4:()=>Dg,H5:()=>Lg,H6:()=>Mg,Headline:()=>Hg,Hgroup:()=>om,HgroupButton:()=>sm,HgroupRows:()=>nm,Hoverable:()=>xg,Hr:()=>Zg,I:()=>Yg,Icon:()=>mm,IconButton:()=>Rm,IconText:()=>ym,Iframe:()=>bg,Img:()=>mg,Inline:()=>fg,InlineFlex:()=>pg,InlineGrid:()=>hg,Input:()=>im,Italic:()=>Ug,KangorooButton:()=>Tm,Li:()=>Qg,Link:()=>al,Notification:()=>Wm,NumberInput:()=>am,Ol:()=>em,P:()=>Ng,Picture:()=>Cg,Radio:()=>fm,RadioHgroup:()=>um,Range:()=>Nm,RouteLink:()=>km,RouterLink:()=>cl,SHAPES:()=>Rs,Select:()=>vm,Shape:()=>Mc,Span:()=>Pg,SquareButton:()=>Am,Strong:()=>Bg,Subhead:()=>qg,Svg:()=>Eg,Text:()=>Rg,Textarea:()=>hm,TextareaWithButton:()=>gm,Theme:()=>vg,Title:()=>Wg,Toggle:()=>pm,ToggleHgroup:()=>dm,Tooltip:()=>Fm,TooltipHidden:()=>Dm,TooltipParent:()=>Lm,U:()=>Vg,Ul:()=>tm,Underline:()=>zg,Video:()=>Tg,depth:()=>Ps,getSystemGlobalTheme:()=>vo});var Ic={};$(Ic,{Block:()=>lg,Flex:()=>ug,Grid:()=>dg,Gutter:()=>gg,Inline:()=>fg,InlineFlex:()=>pg,InlineGrid:()=>hg});var lg={display:"block"},fg={display:"inline"},ug={display:"flex"},pg={display:"inline-flex"},dg={display:"grid"},hg={display:"inline-grid"},gg={boxSize:"C1"};var $c={};$($c,{Img:()=>mg});T();var mg={tag:"img",attr:{title:t=>t.title||t.alt,src:t=>{let e=Ct(t);return e&&e.src||t.src},srcset:t=>{let e=Ct(t);return(e?rs(e):"")||t.srcset}}};var Fc={};$(Fc,{Form:()=>yg});var yg={tag:"form"};var Dc={};$(Dc,{Iframe:()=>bg});var bg={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var Lc={};$(Lc,{Clickable:()=>Sg,Focusable:()=>_g,FocusableComponent:()=>wg,Hoverable:()=>xg});var Cw={appearance:"none",cursor:"pointer",fontFamily:"inherit"},xg={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}}},Sg={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},_g={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:t=>t.tabIndex}},wg={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:Cw};var Bc={};$(Bc,{Picture:()=>Cg});var jc={};$(jc,{Theme:()=>vg,getSystemGlobalTheme:()=>vo});var Nc={};$(Nc,{Circle:()=>kg,SHAPES:()=>Rs,Shape:()=>Mc,default:()=>Aw,depth:()=>Ps});T();var $t=A(),Ps={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}`}},Ar=t=>J(t.shapeDirectionColor)||J(t.borderColor)||J(t.backgroundColor)||J(t.background),Os=t=>{let e=As.transition(t.transition,t);return e&&e.transition},Rs={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:t=>({position:t.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Ar(t),transition:Os(t),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:t=>({position:"relative","&:before":{content:'""',display:"block",background:Ar(t),transition:Os(t),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:t=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:Ar(t),transition:Os(t),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:t=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Os(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Ar(t)} 25%, transparent 25%), linear-gradient(315deg, ${Ar(t)} 25%, transparent 25%)`},"&:after":{background:Ar(t),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)"}}}},Mc={deps:{exec:G,getSpacingBasedOnRatio:fe,getMediaColor:gt},classlist:{shape:t=>t.deps.exec(Rs[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Rs[t.shape+"Direction"];return t.shape&&e?e[t.shapeDirection||"left"]:null},shapeDirectionColor:t=>{let e={borderColor:t.deps.getMediaColor(t.background||t.backgroundColor)};return t.shapeDirection?e:null}}},kg={round:"100%"},Aw=Mc;T();var vo=({context:t,state:e})=>{let r=e&&e.root,o=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return o==="auto"?null:o},vg={deps:{depth:Ps},classlist:{depth:t=>!ut(t.depth)&&t.deps.depth[t.depth]}};var Cg={deps:{getSystemGlobalTheme:vo},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:vo},tag:"source",attr:{media:t=>{let{key:e,context:r,deps:o}=t,{media:n}=r.designSystem,s=o.getSystemGlobalTheme(t),i=(t.media||e).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":n[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(t,e)=>t.parent?.src||e.src}};var Vc={};$(Vc,{AssetPicture:()=>Ag});T();var Ag={tag:"picture",children:t=>{let e=Ct(t);if(e)return os(e,t.alt)}};var zc={};$(zc,{Svg:()=>Eg});var Eg={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:t=>{let{context:e}=t;if(t.semanticIcons)return;if(t.html&&typeof t.html!="function")return t.call("exec",t.html,t);let{designSystem:r,utils:o}=e,n=r&&r.svg,s=t.spriteId||r&&r.useSvgSprite,i=t.call("exec",t.src,t);if(!s&&i)return i;let a=u=>`<use xlink:href="#${u}" />`,c=t.spriteId;if(c)return a(c);if(n&&n[i])return a(i);let l=Symbol.for(i),f=n[l];if(f&&n[f])return a(f);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 p=0;for(let u=0;u<i.length;u++)p=(p<<5)-p+i.charCodeAt(u)|0;return f=n[l]=`svg-${(p>>>0).toString(36)}`,o.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var Uc={};$(Uc,{Video:()=>Tg});T();var Tg={tag:"video",controls:!0,attr:{src:t=>{let e=Ct(t);return e&&e.src||t.src}},children:t=>{let e=Ct(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Wc={};$(Wc,{Audio:()=>Og});T();var Og={tag:"audio",controls:!0,attr:{src:t=>{let e=Ct(t);return e&&e.src||t.src}},children:t=>{let e=Ct(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Hc={};$(Hc,{B:()=>Kg,Caption:()=>jg,Data:()=>Xg,Footnote:()=>Gg,H1:()=>Ig,H2:()=>$g,H3:()=>Fg,H4:()=>Dg,H5:()=>Lg,H6:()=>Mg,Headline:()=>Hg,I:()=>Yg,Italic:()=>Ug,P:()=>Ng,Span:()=>Pg,Strong:()=>Bg,Subhead:()=>qg,Text:()=>Rg,Title:()=>Wg,U:()=>Vg,Underline:()=>zg});var Rg={},Pg={tag:"span"},Ig={tag:"h1"},$g={tag:"h2"},Fg={tag:"h3"},Dg={tag:"h4"},Lg={tag:"h5"},Mg={tag:"h6"},Ng={tag:"p"},jg={tag:"caption"},Bg={tag:"strong",fontWeight:"700"},Vg={tag:"u"},zg={tag:"u"},Ug={tag:"i"},Wg={},Hg={tag:"h6",fontSize:"B",fontWeight:500},qg={tag:"span",fontSize:"Z1"},Gg={tag:"span",fontSize:"Z"},Kg={tag:"b"},Yg={tag:"i"},Xg={tag:"data"};var qc={};$(qc,{Box:()=>Is,Br:()=>Jg,Hr:()=>Zg,Li:()=>Qg,Ol:()=>em,Ul:()=>tm});var Ew=t=>{if(!t.context)return;let{props:e,__ref:r}=t,o=It(e,t,{unpack:!1});r.__class=o},Is={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:Ew},Zg={tag:"hr",margin:"C1 0"},Jg={tag:"br"},Qg={tag:"li"},tm={tag:"ul",childExtends:{extends:"Li"}},em={tag:"ol",childExtends:{extends:"Li"}};var Gc={};$(Gc,{Hgroup:()=>om,HgroupButton:()=>sm,HgroupRows:()=>nm});var rm=t=>{if(t.text!=null||t.html!=null)return!0;for(let e in t){let r=e.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},om={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:rm,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:rm,margin:"0",color:"paragraph"}},nm={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},sm={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Kc={};$(Kc,{Input:()=>im});var im={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:t=>t.pattern,minLength:t=>t.minlength,maxLength:t=>t.maxlength,name:t=>t.name,autocomplete:t=>t.autocomplete,placeholder:t=>t.placeholder,value:t=>{if(!t.value)return;let e=t.call("exec",t.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e},checked:t=>t.call("exec",t.checked,t),disabled:t=>t.disabled||null,readonly:t=>t.readonly,required:t=>t.required,type:t=>t.type}};var Yc={};$(Yc,{NumberInput:()=>am});var am={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:t=>t.step,min:t=>t.min,max:t=>t.max}};var Xc={};$(Xc,{Checkbox:()=>cm,CheckboxHgroup:()=>lm});var cm={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:t=>t.call("exec",t.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"}}},lm={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Zc={};$(Zc,{Radio:()=>fm,RadioHgroup:()=>um});var fm={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}},um={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Jc={};$(Jc,{Toggle:()=>pm,ToggleHgroup:()=>dm});var pm={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}},dm={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Qc={};$(Qc,{Textarea:()=>hm,TextareaWithButton:()=>gm});var hm={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"}},gm={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 tl={};$(tl,{FileIcon:()=>bm,Icon:()=>mm,IconText:()=>ym});var mm={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(t,e,r)=>{let{parent:o}=t,{icons:n,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,c=w=>{let v=w[".isActive"];if(v)return w.call("exec",v.name||v.icon)},l=(w,v,O)=>{let{semanticIcons:R}=O&&O.designSystem,{toCamelCase:M}=O&&O.utils,P=f(w,v),U=M(P).split(/([a-z])([A-Z])/g),X=U[1]?U[0]:P.split(".")[0].split(" ")[0],j=R&&R[X];if(j){let Z=P.includes(".")?"sfsymbols."+P.split(".").slice(1).join("."):"sfsymbols";return P=j[Z]||j[P.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${P}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},f=(w,v)=>{let{key:O}=w,R=w.call("exec",w.name||w.icon||O,w);return w.call("isString",R)&&R.includes("{{")&&(R=w.call("replaceLiteralsWithObjectFields",R)),w.call("isString",R)?R:O},p=f(t,e);if(p.includes(" ")){let w=p.split(" ");p=w[0]+w.slice(1).map(v=>v.charAt(0).toUpperCase()+v.slice(1)).join("")}let u=a(p),d=u.split(/([a-z])([A-Z])/g),h=l(t,e,r);if(h){Object.assign(t,h);return}let g;t.isActive&&(g=c(t));let m=o[".isActive"];o&&o.isActive&&m&&m.icon&&(g=t.call("exec",m.icon||m.Icon.name||m.Icon.icon,t)),t.call("isString",g)&&g.includes("{{")&&(g=t.call("replaceLiteralsWithObjectFields",g));let y;n[g]&&(y=g),n[u]?y=u:n[d[0]+d[1]]?y=d[0]+d[1]:n[d[0]]?y=d[0]:i&&t.warn("Can't find icon:",p,y);let b=n[y],x=o&&o.src||t.src;Object.assign(t,{spriteId:s&&y,src:b||x||n.noIcon})},attr:{viewBox:"0 0 24 24"}},ym={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:t=>{let{parent:e}=t;return t.call("exec",e.icon||t.name||t.sfSymbols||e.sfSymbols,t)},icon:t=>t.call("exec",t.parent.icon,t.parent)},text:t=>t.text},bm={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var ll={};$(ll,{A:()=>wm,Link:()=>al,RouteLink:()=>km,RouterLink:()=>cl});var il={};$(il,{default:()=>Iw,getActiveRoute:()=>sl,lastLevel:()=>Fs,lastPathname:()=>$s,matchRoute:()=>rl,parseQuery:()=>ol,parseRoutePattern:()=>el,router:()=>re,runGuards:()=>nl});T();var Sm=/^:(.+)/,_m=/^\*$/,xm=new Map,el=t=>{let e=xm.get(t);if(e)return e;let r=t.replace(/^\//,"").split("/"),o=[],n=!1;for(let i=0;i<r.length;i++){let a=r[i].match(Sm);a?o.push({index:i,name:a[1]}):_m.test(r[i])&&(n=!0)}let s={segments:r,params:o,hasWildcard:n,pattern:t};return xm.set(t,s),s},rl=(t,e,r=0)=>{let n=t.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(n[0]||""),i=null,a=-1,c={};for(let l in e){if(l==="/*")continue;let f=el(l),p=Tw(n,f);p>a&&(a=p,i=l,c=Ow(n,f))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},Tw=(t,e)=>{let{segments:r,hasWildcard:o}=e;if(!o&&r.length!==t.length&&r.length!==1&&r.length>t.length)return-1;let n=0,s=Math.min(r.length,t.length);for(let i=0;i<s;i++)if(r[i]===t[i])n+=3;else if(Sm.test(r[i]))n+=1;else if(_m.test(r[i]))n+=.5;else return-1;return n},Ow=(t,e)=>{let r={};for(let{index:o,name:n}of e.params)t[o]&&(r[n]=decodeURIComponent(t[o]));return r},ol=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((o,n)=>{e[n]!==void 0?(Array.isArray(e[n])||(e[n]=[e[n]]),e[n].push(o)):e[n]=o}),e},nl=async(t,e)=>{if(!t||!t.length)return!0;for(let r of t){let o=await r(e);if(o===!1)return!1;if(typeof o=="string")return o}return!0},sl=(t=0,e)=>{e||(e=typeof k<"u"?k.location.pathname:"/");let o=e.split("/")[t+1];if(o)return`/${o}`},$s,Fs=0,Rw=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,Pw={level:Fs,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:q&&q.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},re=async(t,e,r={},o={})=>{let n=e||void 0,s=n?.context?.window||k,i=n?.context?.document||q,a={...Pw,...n.context.routerOptions,...o};Fs=a.lastLevel;let c=n.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||"content");let l=c.contentElementKey||a.contentElementKey||"content",f=s.location.origin!=="null"?s.location.origin:"http://localhost";t=Rw(t);let p=new s.URL(f+t),{pathname:u,search:d,hash:h}=p,g=ol(d),m=n.node,y=h&&h!==s.location.hash.slice(1),b=u!==$s;$s=u;let x,w,v,O;if(a.useParamsMatching){let M=rl(u,n.routes,a.level);x=M.key,w=M.routePath,v=M.content,O=M.params}else x=sl(a.level,u),w=x,v=n.routes[x||"/"]||n.routes["/*"],O={};let R=a.scrollToNode?m:a.scrollNode;if(n.state?.root?.debugging){n.state.root.debugging=!1;return}if(!v){a.onNotFound?a.onNotFound({pathname:u,route:x,element:n}):a.silent||console.warn("[smbls/router] no content matched for path",u,"\u2014 available routes:",Object.keys(n.routes||{}));return}if(a.guards&&a.guards.length){let M={pathname:u,route:x,params:O,query:g,hash:h,element:n,state:r},P=await nl(a.guards,M);if(P===!1)return;if(typeof P=="string")return re(P,e,r,{...o,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,u+(d||"")+(h||""))}catch{}if(b||!y){let M={route:x,routePath:w,hash:h,debugging:!1};Object.keys(O).length&&(M.params=O),Object.keys(g).length&&(M.query=g),a.updateState&&n.state.update(M,{preventContentUpdate:!0}),l&&a.removeOldElement&&n[l].remove();let P=n.__ref?.origin?.content,z={};if(P)for(let X in P){let j=P[X];X==="__ref"||X==="props"||X==="node"||X==="parent"||X==="key"||(typeof j=="string"||typeof j=="number"||typeof j=="boolean"||typeof j=="object"&&j!==null&&!j.node&&!j.__ref)&&(z[X]=j)}let U={...z,...typeof v=="object"?v:{extends:v}};a.useFragment&&(U.tag="fragment");try{n.set(U,{contentElementKey:l})}catch(X){console.error("[smbls/router] failed to render route content",u,X)}}if(a.scrollToTop&&R?.scrollTo&&R.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&v[l]?.node?.scrollTo&&v[l].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let M=i.getElementById(h);if(M&&R?.scrollTo){let P=M.getBoundingClientRect().top+m.scrollTop-(a.scrollToOffset||0);R.scrollTo({...a.scrollToOptions||{},top:P,left:0})}}Be("routeChanged",n,a)},Iw=re;var $w=(t,e,r)=>{let{context:o}=e,{href:n,scrollToTop:s,stopPropagation:i}=e,a=e.call("exec",n,e);if(e.call("isString",a)&&a.includes("{{")&&(a=e.call("replaceLiteralsWithObjectFields",a)),i&&t.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:p}=o,u=e.__ref.root,d=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&&!d){t.preventDefault();try{let h=u;if(p&&p.customRouterElement){let g=Array.isArray(p.customRouterElement)?p.customRouterElement:p.customRouterElement.split("."),m=u;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,u.routes&&(h.routes=u.routes))}(f.router||l.router||c.router||re)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...p,...e.routerOptions})}catch(h){console.warn(h)}}},al={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>Xe(t,t.href)||Xe(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:$w},wm={extends:"Link"},cl={onClick:(t,e,r)=>{let{context:o}=e,{href:n,scrollToTop:s,stopPropagation:i}=e,a=e.call("exec",n,e);if(e.call("isString",a)&&a.includes("{{")&&(a=e.call("replaceLiteralsWithObjectFields",a)),i&&t.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:p}=o,u=e.__ref.root,d=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&&!d){t.preventDefault();try{let h=u;if(p&&p.customRouterElement){let g=Array.isArray(p.customRouterElement)?p.customRouterElement:p.customRouterElement.split("."),m=u;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,u.routes&&(h.routes=u.routes))}(f.router||l.router||c.router||re)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...p,...e.routerOptions})}catch(h){console.warn(h)}}}},km={extends:[al,cl]};var fl={};$(fl,{Select:()=>vm});var vm={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:t=>t.value,selected:t=>t.selected,disabled:t=>t.disabled}},attr:{name:t=>t.name,disabled:t=>t.disabled,value:t=>{if(!t.value)return;let e=t.call("exec",t.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e}}};var ul={};$(ul,{Button:()=>Cm,ButtonSet:()=>Om,CircleButton:()=>Em,IconButton:()=>Rm,KangorooButton:()=>Tm,SquareButton:()=>Am});var Cm={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:t=>t.call("exec",t.disabled)},Am={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"},Em={extends:"SquareButton",round:"C"},Tm={extends:"Button",childExtends:"IconText"},Om={tag:"nav",display:"flex",childExtends:"SquareButton"},Rm={extends:["SquareButton","ClickableItem"],round:"Z"};var pl={};$(pl,{Dialog:()=>Pm,DialogFooter:()=>$m,DialogHeader:()=>Im});var Pm={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Im={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},$m={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 dl={};$(dl,{Tooltip:()=>Fm,TooltipHidden:()=>Dm,TooltipParent:()=>Lm});T();var Fm={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:t=>_t(t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:t=>t.parent.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.description,t))||t.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},Dm={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:t=>{let e=!t.shapeDirection||t.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(t,e)}},Lm={position:"relative",zIndex:999,onInit:t=>{let{Tooltip:e,TooltipHidden:r}=t,o=e||r;if(!o)return;let n=o&&o[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":n||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var hl={};$(hl,{Avatar:()=>Mm});var Mm={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:t=>`https://api.dicebear.com/7.x/${t.avatarType||"initials"}/svg?seed=${t.key||"no-avatar"}`};var gl={};$(gl,{Range:()=>Nm});var Nm={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,r)=>{e.call("isFunction",e.onInput)?e.onInput(t,e,r):r.update({value:parseFloat(e.node.value)})},onChange:(t,e,r)=>{e.call("isFunction",e.onChange)?e.onChange(t,e,r):r.update({value:parseFloat(e.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:ns("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:ns("#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:(t,e,r)=>{let o=t.call("exec",t[e],t);return(t.call("isFunction",o)?o(t,t.state):o!==void 0?o:r!==void 0?r:0)+""}},attr:{type:"range",value:(t,e)=>t.call("exec",e.value||t.value||t.defaultValue,t),min:(t,e)=>t.deps.returnPropertyValue(t,"min",0),max:(t,e)=>t.deps.returnPropertyValue(t,"max",100),step:(t,e)=>t.deps.returnPropertyValue(t,"step",1)}};var ml={};$(ml,{Dropdown:()=>jm,DropdownList:()=>Bm,DropdownParent:()=>Vm,DropdownParentFocus:()=>zm,DropdownSiblingFocus:()=>Um});var jm={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"},Bm={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:t=>t.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:t,state:e})=>e.active===t,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:t,state:e})=>e.active===t,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},Vm={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},zm={position:"relative",tabindex:"0",":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:(t,e)=>{e.node===document.activeElement&&e.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},Um={position:"relative",tabindex:"0",":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:(t,e)=>{e.node===document.activeElement&&e.node.blur()}}};var yl={};$(yl,{Notification:()=>Wm});var Wm={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 Er=Object.assign({},Ic,$c,Fc,Dc,Lc,Bc,Vc,zc,Nc,Uc,Wc,jc,Hc,qc,Gc,Kc,Yc,Xc,Zc,Jc,Qc,tl,ll,fl,ul,pl,dl,hl,gl,ml,yl);function Ds(t){if(t==null)return 0;if(typeof t!="object")return Hm(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let o=0;o<t.length;o++)e=(e^Ds(t[o]))*16777619;return e>>>0}let r=Object.keys(t).sort();for(let o=0;o<r.length;o++)e=(e^Hm(r[o]))*16777619,e=(e^Ds(t[r[o]]))*16777619;return e>>>0}function Hm(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e}function Ls(t,e){if(t===e)return!0;if(t===null||e===null||typeof t!=typeof e||typeof t!="object")return!1;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!Ls(t[n],e[n]))return!1;return!0}let r=Object.keys(t),o=Object.keys(e);if(r.length!==o.length)return!1;for(let n=0;n<r.length;n++){let s=r[n];if(!Object.prototype.hasOwnProperty.call(e,s)||!Ls(t[s],e[s]))return!1}return!0}function bl(t,e){if(e===void 0)return t;if(t===void 0)return e;if(e===null)return null;if(typeof e!="object"||Array.isArray(e))return e;if(typeof t!="object"||Array.isArray(t))return{...e};let r=!1,o={};for(let n in t)if(n in e){let s=bl(t[n],e[n]);o[n]=s,s!==t[n]&&(r=!0)}else o[n]=t[n];for(let n in e)n in t||(o[n]=e[n],r=!0);return r?o:t}function xl(t,e,r){if(!e||typeof e!="object")return t;if(!t||typeof t!="object")return e;if(r||(r=new WeakSet),r.has(e))return t;r.add(e);for(let o in e){let n=e[o];n&&typeof n=="object"&&!Array.isArray(n)&&t[o]&&typeof t[o]=="object"&&!Array.isArray(t[o])?xl(t[o],n,r):t[o]=n}return t}function Ce(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e.toString(36)}function Tr(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function Ao(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Ce(e)}function qm(t){return t.split(`
68
+ )`};var Cw={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"}}}},Aw={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},Ew={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"}}},ng={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...Cw,...Aw,...Ew,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var og={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var sg={ratio:1.618,subSequence:!0};var ig={SourceSans:[{url:""}]},ag={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif",metrics:{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3}}};var cg={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 lg={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 fg={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Ts={version:"0.0.1",color:eg,gradient:rg,theme:ng,typography:og,spacing:sg,font:ig,fontFamily:ag,timing:fg,icons:cg,media:lg,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var Cn={};$(Cn,{A:()=>vm,AssetPicture:()=>Tg,Audio:()=>Pg,Avatar:()=>jm,B:()=>Yg,Block:()=>ug,Box:()=>Is,Br:()=>tm,Button:()=>Em,ButtonSet:()=>Pm,COMPONENTS:()=>Er,Caption:()=>Vg,Checkbox:()=>fm,CheckboxHgroup:()=>um,Circle:()=>Cg,CircleButton:()=>Om,Clickable:()=>wg,Data:()=>Jg,Dialog:()=>$m,DialogFooter:()=>Dm,DialogHeader:()=>Fm,Dropdown:()=>Vm,DropdownList:()=>zm,DropdownParent:()=>Um,DropdownParentFocus:()=>Wm,DropdownSiblingFocus:()=>Hm,FileIcon:()=>Sm,Flex:()=>dg,Focusable:()=>kg,FocusableComponent:()=>vg,Footnote:()=>Xg,Form:()=>xg,Grid:()=>gg,Gutter:()=>yg,H1:()=>Fg,H2:()=>Dg,H3:()=>Lg,H4:()=>Mg,H5:()=>Ng,H6:()=>jg,Headline:()=>Gg,Hgroup:()=>sm,HgroupButton:()=>am,HgroupRows:()=>im,Hoverable:()=>_g,Hr:()=>Qg,I:()=>Zg,Icon:()=>bm,IconButton:()=>Im,IconText:()=>xm,Iframe:()=>Sg,Img:()=>bg,Inline:()=>pg,InlineFlex:()=>hg,InlineGrid:()=>mg,Input:()=>cm,Italic:()=>Hg,KangorooButton:()=>Rm,Li:()=>em,Link:()=>al,Notification:()=>qm,NumberInput:()=>lm,Ol:()=>nm,P:()=>Bg,Picture:()=>Eg,Radio:()=>pm,RadioHgroup:()=>dm,Range:()=>Bm,RouteLink:()=>Cm,RouterLink:()=>cl,SHAPES:()=>Rs,Select:()=>Am,Shape:()=>Mc,Span:()=>$g,SquareButton:()=>Tm,Strong:()=>zg,Subhead:()=>Kg,Svg:()=>Og,Text:()=>Ig,Textarea:()=>mm,TextareaWithButton:()=>ym,Theme:()=>Ag,Title:()=>qg,Toggle:()=>hm,ToggleHgroup:()=>gm,Tooltip:()=>Lm,TooltipHidden:()=>Mm,TooltipParent:()=>Nm,U:()=>Ug,Ul:()=>rm,Underline:()=>Wg,Video:()=>Rg,depth:()=>Ps,getSystemGlobalTheme:()=>vn});var Ic={};$(Ic,{Block:()=>ug,Flex:()=>dg,Grid:()=>gg,Gutter:()=>yg,Inline:()=>pg,InlineFlex:()=>hg,InlineGrid:()=>mg});var ug={display:"block"},pg={display:"inline"},dg={display:"flex"},hg={display:"inline-flex"},gg={display:"grid"},mg={display:"inline-grid"},yg={boxSize:"C1"};var $c={};$($c,{Img:()=>bg});O();var bg={tag:"img",attr:{title:t=>t.title||t.alt,src:t=>{let e=Tt(t);return e&&e.src||t.src},srcset:t=>{let e=Tt(t);return(e?rs(e):"")||t.srcset}}};var Fc={};$(Fc,{Form:()=>xg});var xg={tag:"form"};var Dc={};$(Dc,{Iframe:()=>Sg});var Sg={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var Lc={};$(Lc,{Clickable:()=>wg,Focusable:()=>kg,FocusableComponent:()=>vg,Hoverable:()=>_g});var Tw={appearance:"none",cursor:"pointer",fontFamily:"inherit"},_g={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}}},wg={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},kg={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:t=>t.tabIndex}},vg={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:Tw};var Bc={};$(Bc,{Picture:()=>Eg});var jc={};$(jc,{Theme:()=>Ag,getSystemGlobalTheme:()=>vn});var Nc={};$(Nc,{Circle:()=>Cg,SHAPES:()=>Rs,Shape:()=>Mc,default:()=>Ow,depth:()=>Ps});O();var Lt=A(),Ps={4:{boxShadow:`rgba(0,0,0,.10) 0 2${Lt.unit.default} 4${Lt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${Lt.unit.default} 6${Lt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${Lt.unit.default} 10${Lt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${Lt.unit.default} 16${Lt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${Lt.unit.default} 26${Lt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${Lt.unit.default} 42${Lt.unit.default}`}},Ar=t=>tt(t.shapeDirectionColor)||tt(t.borderColor)||tt(t.backgroundColor)||tt(t.background),Os=t=>{let e=As.transition(t.transition,t);return e&&e.transition},Rs={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:t=>({position:t.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Ar(t),transition:Os(t),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:t=>({position:"relative","&:before":{content:'""',display:"block",background:Ar(t),transition:Os(t),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:t=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:Ar(t),transition:Os(t),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:t=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Os(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Ar(t)} 25%, transparent 25%), linear-gradient(315deg, ${Ar(t)} 25%, transparent 25%)`},"&:after":{background:Ar(t),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)"}}}},Mc={deps:{exec:Y,getSpacingBasedOnRatio:fe,getMediaColor:bt},classlist:{shape:t=>t.deps.exec(Rs[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Rs[t.shape+"Direction"];return t.shape&&e?e[t.shapeDirection||"left"]:null},shapeDirectionColor:t=>{let e={borderColor:t.deps.getMediaColor(t.background||t.backgroundColor)};return t.shapeDirection?e:null}}},Cg={round:"100%"},Ow=Mc;O();var vn=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n==="auto"?null:n},Ag={deps:{depth:Ps},classlist:{depth:t=>!ht(t.depth)&&t.deps.depth[t.depth]}};var Eg={deps:{getSystemGlobalTheme:vn},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:vn},tag:"source",attr:{media:t=>{let{key:e,context:r,deps:n}=t,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(t),i=(t.media||e).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:(t,e)=>t.parent?.src||e.src}};var Vc={};$(Vc,{AssetPicture:()=>Tg});O();var Tg={tag:"picture",children:t=>{let e=Tt(t);if(e)return ns(e,t.alt)}};var zc={};$(zc,{Svg:()=>Og});var Og={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:t=>{let{context:e}=t;if(t.semanticIcons)return;if(t.html&&typeof t.html!="function")return t.call("exec",t.html,t);let{designSystem:r,utils:n}=e,o=r&&r.svg,s=t.spriteId||r&&r.useSvgSprite,i=t.call("exec",t.src,t);if(!s&&i)return i;let a=u=>`<use xlink:href="#${u}" />`,c=t.spriteId;if(c)return a(c);if(o&&o[i])return a(i);let l=Symbol.for(i),f=o[l];if(f&&o[f])return a(f);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 p=0;for(let u=0;u<i.length;u++)p=(p<<5)-p+i.charCodeAt(u)|0;return f=o[l]=`svg-${(p>>>0).toString(36)}`,n.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var Uc={};$(Uc,{Video:()=>Rg});O();var Rg={tag:"video",controls:!0,attr:{src:t=>{let e=Tt(t);return e&&e.src||t.src}},children:t=>{let e=Tt(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Wc={};$(Wc,{Audio:()=>Pg});O();var Pg={tag:"audio",controls:!0,attr:{src:t=>{let e=Tt(t);return e&&e.src||t.src}},children:t=>{let e=Tt(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Hc={};$(Hc,{B:()=>Yg,Caption:()=>Vg,Data:()=>Jg,Footnote:()=>Xg,H1:()=>Fg,H2:()=>Dg,H3:()=>Lg,H4:()=>Mg,H5:()=>Ng,H6:()=>jg,Headline:()=>Gg,I:()=>Zg,Italic:()=>Hg,P:()=>Bg,Span:()=>$g,Strong:()=>zg,Subhead:()=>Kg,Text:()=>Ig,Title:()=>qg,U:()=>Ug,Underline:()=>Wg});var Ig={},$g={tag:"span"},Fg={tag:"h1"},Dg={tag:"h2"},Lg={tag:"h3"},Mg={tag:"h4"},Ng={tag:"h5"},jg={tag:"h6"},Bg={tag:"p"},Vg={tag:"caption"},zg={tag:"strong",fontWeight:"700"},Ug={tag:"u"},Wg={tag:"u"},Hg={tag:"i"},qg={},Gg={tag:"h6",fontSize:"B",fontWeight:500},Kg={tag:"span",fontSize:"Z1"},Xg={tag:"span",fontSize:"Z"},Yg={tag:"b"},Zg={tag:"i"},Jg={tag:"data"};var qc={};$(qc,{Box:()=>Is,Br:()=>tm,Hr:()=>Qg,Li:()=>em,Ol:()=>nm,Ul:()=>rm});var Rw=t=>{if(!t.context)return;let{props:e,__ref:r}=t,n=Dt(e,t,{unpack:!1});r.__class=n},Is={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:Rw},Qg={tag:"hr",margin:"C1 0"},tm={tag:"br"},em={tag:"li"},rm={tag:"ul",childExtends:{extends:"Li"}},nm={tag:"ol",childExtends:{extends:"Li"}};var Gc={};$(Gc,{Hgroup:()=>sm,HgroupButton:()=>am,HgroupRows:()=>im});var om=t=>{if(t.text!=null||t.html!=null)return!0;for(let e in t){let r=e.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},sm={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:om,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:om,margin:"0",color:"paragraph"}},im={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},am={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Kc={};$(Kc,{Input:()=>cm});var cm={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:t=>t.pattern,minLength:t=>t.minlength,maxLength:t=>t.maxlength,name:t=>t.name,autocomplete:t=>t.autocomplete,placeholder:t=>t.placeholder,value:t=>{if(!t.value)return;let e=t.call("exec",t.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e},checked:t=>t.call("exec",t.checked,t),disabled:t=>t.disabled||null,readonly:t=>t.readonly,required:t=>t.required,type:t=>t.type}};var Xc={};$(Xc,{NumberInput:()=>lm});var lm={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:t=>t.step,min:t=>t.min,max:t=>t.max}};var Yc={};$(Yc,{Checkbox:()=>fm,CheckboxHgroup:()=>um});var fm={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:t=>t.call("exec",t.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"}}},um={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Zc={};$(Zc,{Radio:()=>pm,RadioHgroup:()=>dm});var pm={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}},dm={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Jc={};$(Jc,{Toggle:()=>hm,ToggleHgroup:()=>gm});var hm={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}},gm={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Qc={};$(Qc,{Textarea:()=>mm,TextareaWithButton:()=>ym});var mm={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"}},ym={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 tl={};$(tl,{FileIcon:()=>Sm,Icon:()=>bm,IconText:()=>xm});var bm={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(t,e,r)=>{let{parent:n}=t,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,c=S=>{let v=S[".isActive"];if(v)return S.call("exec",v.name||v.icon)},l=(S,v,T)=>{let{semanticIcons:R}=T&&T.designSystem,{toCamelCase:L}=T&&T.utils,P=f(S,v),z=L(P).split(/([a-z])([A-Z])/g),U=z[1]?z[0]:P.split(".")[0].split(" ")[0],M=R&&R[U];if(M){let D=P.includes(".")?"sfsymbols."+P.split(".").slice(1).join("."):"sfsymbols";return P=M[D]||M[P.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${P}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},f=(S,v)=>{let{key:T}=S,R=S.call("exec",S.name||S.icon||T,S);return S.call("isString",R)&&R.includes("{{")&&(R=S.call("replaceLiteralsWithObjectFields",R)),S.call("isString",R)?R:T},p=f(t,e);if(p.includes(" ")){let S=p.split(" ");p=S[0]+S.slice(1).map(v=>v.charAt(0).toUpperCase()+v.slice(1)).join("")}let u=a(p),d=u.split(/([a-z])([A-Z])/g),h=l(t,e,r);if(h){Object.assign(t,h);return}let g;t.isActive&&(g=c(t));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=t.call("exec",m.icon||m.Icon.name||m.Icon.icon,t)),t.call("isString",g)&&g.includes("{{")&&(g=t.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[u]?y=u:o[d[0]+d[1]]?y=d[0]+d[1]:o[d[0]]?y=d[0]:i&&t.warn("Can't find icon:",p,y);let b=o[y],x=n&&n.src||t.src;Object.assign(t,{spriteId:s&&y,src:b||x||o.noIcon})},attr:{viewBox:"0 0 24 24"}},xm={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:t=>{let{parent:e}=t;return t.call("exec",e.icon||t.name||t.sfSymbols||e.sfSymbols,t)},icon:t=>t.call("exec",t.parent.icon,t.parent)},text:t=>t.text},Sm={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var ll={};$(ll,{A:()=>vm,Link:()=>al,RouteLink:()=>Cm,RouterLink:()=>cl});var il={};$(il,{default:()=>Dw,getActiveRoute:()=>sl,lastLevel:()=>Fs,lastPathname:()=>$s,matchRoute:()=>rl,parseQuery:()=>nl,parseRoutePattern:()=>el,router:()=>re,runGuards:()=>ol});O();var wm=/^:(.+)/,km=/^\*$/,_m=new Map,el=t=>{let e=_m.get(t);if(e)return e;let r=t.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(wm);a?n.push({index:i,name:a[1]}):km.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return _m.set(t,s),s},rl=(t,e,r=0)=>{let o=t.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||""),i=null,a=-1,c={};for(let l in e){if(l==="/*")continue;let f=el(l),p=Pw(o,f);p>a&&(a=p,i=l,c=Iw(o,f))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},Pw=(t,e)=>{let{segments:r,hasWildcard:n}=e;if(!n&&r.length!==t.length&&r.length!==1&&r.length>t.length)return-1;let o=0,s=Math.min(r.length,t.length);for(let i=0;i<s;i++)if(r[i]===t[i])o+=3;else if(wm.test(r[i]))o+=1;else if(km.test(r[i]))o+=.5;else return-1;return o},Iw=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},nl=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((n,o)=>{e[o]!==void 0?(Array.isArray(e[o])||(e[o]=[e[o]]),e[o].push(n)):e[o]=n}),e},ol=async(t,e)=>{if(!t||!t.length)return!0;for(let r of t){let n=await r(e);if(n===!1)return!1;if(typeof n=="string")return n}return!0},sl=(t=0,e)=>{e||(e=typeof k<"u"?k.location.pathname:"/");let n=e.split("/")[t+1];if(n)return`/${n}`},$s,Fs=0,$w=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,Fw={level:Fs,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:X&&X.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},re=async(t,e,r={},n={})=>{let o=e||void 0,s=o?.context?.window||k,i=o?.context?.document||X,a={...Fw,...o.context.routerOptions,...n};Fs=a.lastLevel;let c=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||"content");let l=c.contentElementKey||a.contentElementKey||"content",f=s.location.origin!=="null"?s.location.origin:"http://localhost";t=$w(t);let p=new s.URL(f+t),{pathname:u,search:d,hash:h}=p,g=nl(d),m=o.node,y=h&&h!==s.location.hash.slice(1),b=u!==$s;$s=u;let x,S,v,T;if(a.useParamsMatching){let L=rl(u,o.routes,a.level);x=L.key,S=L.routePath,v=L.content,T=L.params}else x=sl(a.level,u),S=x,v=o.routes[x||"/"]||o.routes["/*"],T={};let R=a.scrollToNode?m:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!v){a.onNotFound?a.onNotFound({pathname:u,route:x,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",u,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let L={pathname:u,route:x,params:T,query:g,hash:h,element:o,state:r},P=await ol(a.guards,L);if(P===!1)return;if(typeof P=="string")return re(P,e,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,u+(d||"")+(h||""))}catch{}if(b||!y){let L={route:x,routePath:S,hash:h,debugging:!1};Object.keys(T).length&&(L.params=T),Object.keys(g).length&&(L.query=g),a.updateState&&o.state.update(L,{preventContentUpdate:!0}),l&&a.removeOldElement&&o[l].remove();let P=o.__ref?.origin?.content,V={};if(P)for(let U in P){let M=P[U];U==="__ref"||U==="props"||U==="node"||U==="parent"||U==="key"||(typeof M=="string"||typeof M=="number"||typeof M=="boolean"||typeof M=="object"&&M!==null&&!M.node&&!M.__ref)&&(V[U]=M)}let z={...V,...typeof v=="object"?v:{extends:v}};a.useFragment&&(z.tag="fragment");try{o.set(z,{contentElementKey:l})}catch(U){console.error("[smbls/router] failed to render route content",u,U)}}if(a.scrollToTop&&R?.scrollTo&&R.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&v[l]?.node?.scrollTo&&v[l].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let L=i.getElementById(h);if(L&&R?.scrollTo){let P=L.getBoundingClientRect().top+m.scrollTop-(a.scrollToOffset||0);R.scrollTo({...a.scrollToOptions||{},top:P,left:0})}}Be("routeChanged",o,a)},Dw=re;var Lw=(t,e,r)=>{let{context:n}=e,{href:o,scrollToTop:s,stopPropagation:i}=e,a=e.call("exec",o,e);if(e.call("isString",a)&&a.includes("{{")&&(a=e.call("replaceLiteralsWithObjectFields",a)),i&&t.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:p}=n,u=e.__ref.root,d=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&&!d){t.preventDefault();try{let h=u;if(p&&p.customRouterElement){let g=Array.isArray(p.customRouterElement)?p.customRouterElement:p.customRouterElement.split("."),m=u;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,u.routes&&(h.routes=u.routes))}(f.router||l.router||c.router||re)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...p,...e.routerOptions})}catch(h){console.warn(h)}}},al={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>Ye(t,t.href)||Ye(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:Lw},vm={extends:"Link"},cl={onClick:(t,e,r)=>{let{context:n}=e,{href:o,scrollToTop:s,stopPropagation:i}=e,a=e.call("exec",o,e);if(e.call("isString",a)&&a.includes("{{")&&(a=e.call("replaceLiteralsWithObjectFields",a)),i&&t.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:p}=n,u=e.__ref.root,d=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&&!d){t.preventDefault();try{let h=u;if(p&&p.customRouterElement){let g=Array.isArray(p.customRouterElement)?p.customRouterElement:p.customRouterElement.split("."),m=u;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,u.routes&&(h.routes=u.routes))}(f.router||l.router||c.router||re)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...p,...e.routerOptions})}catch(h){console.warn(h)}}}},Cm={extends:[al,cl]};var fl={};$(fl,{Select:()=>Am});var Am={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:t=>t.value,selected:t=>t.selected,disabled:t=>t.disabled}},attr:{name:t=>t.name,disabled:t=>t.disabled,value:t=>{if(!t.value)return;let e=t.call("exec",t.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e}}};var ul={};$(ul,{Button:()=>Em,ButtonSet:()=>Pm,CircleButton:()=>Om,IconButton:()=>Im,KangorooButton:()=>Rm,SquareButton:()=>Tm});var Em={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:t=>t.call("exec",t.disabled)},Tm={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"},Om={extends:"SquareButton",round:"C"},Rm={extends:"Button",childExtends:"IconText"},Pm={tag:"nav",display:"flex",childExtends:"SquareButton"},Im={extends:["SquareButton","ClickableItem"],round:"Z"};var pl={};$(pl,{Dialog:()=>$m,DialogFooter:()=>Dm,DialogHeader:()=>Fm});var $m={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Fm={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},Dm={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 dl={};$(dl,{Tooltip:()=>Lm,TooltipHidden:()=>Mm,TooltipParent:()=>Nm});O();var Lm={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:t=>vt(t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:t=>t.parent.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.description,t))||t.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},Mm={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:t=>{let e=!t.shapeDirection||t.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(t,e)}},Nm={position:"relative",zIndex:999,onInit:t=>{let{Tooltip:e,TooltipHidden:r}=t,n=e||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var hl={};$(hl,{Avatar:()=>jm});var jm={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:t=>`https://api.dicebear.com/7.x/${t.avatarType||"initials"}/svg?seed=${t.key||"no-avatar"}`};var gl={};$(gl,{Range:()=>Bm});var Bm={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,r)=>{e.call("isFunction",e.onInput)?e.onInput(t,e,r):r.update({value:parseFloat(e.node.value)})},onChange:(t,e,r)=>{e.call("isFunction",e.onChange)?e.onChange(t,e,r):r.update({value:parseFloat(e.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:os("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:os("#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:(t,e,r)=>{let n=t.call("exec",t[e],t);return(t.call("isFunction",n)?n(t,t.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(t,e)=>t.call("exec",e.value||t.value||t.defaultValue,t),min:(t,e)=>t.deps.returnPropertyValue(t,"min",0),max:(t,e)=>t.deps.returnPropertyValue(t,"max",100),step:(t,e)=>t.deps.returnPropertyValue(t,"step",1)}};var ml={};$(ml,{Dropdown:()=>Vm,DropdownList:()=>zm,DropdownParent:()=>Um,DropdownParentFocus:()=>Wm,DropdownSiblingFocus:()=>Hm});var Vm={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"},zm={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:t=>t.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:t,state:e})=>e.active===t,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:t,state:e})=>e.active===t,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},Um={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Wm={position:"relative",tabindex:"0",":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:(t,e)=>{e.node===document.activeElement&&e.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},Hm={position:"relative",tabindex:"0",":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:(t,e)=>{e.node===document.activeElement&&e.node.blur()}}};var yl={};$(yl,{Notification:()=>qm});var qm={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 Er=Object.assign({},Ic,$c,Fc,Dc,Lc,Bc,Vc,zc,Nc,Uc,Wc,jc,Hc,qc,Gc,Kc,Xc,Yc,Zc,Jc,Qc,tl,ll,fl,ul,pl,dl,hl,gl,ml,yl);function Ds(t){if(t==null)return 0;if(typeof t!="object")return Gm(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let n=0;n<t.length;n++)e=(e^Ds(t[n]))*16777619;return e>>>0}let r=Object.keys(t).sort();for(let n=0;n<r.length;n++)e=(e^Gm(r[n]))*16777619,e=(e^Ds(t[r[n]]))*16777619;return e>>>0}function Gm(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e}function Ls(t,e){if(t===e)return!0;if(t===null||e===null||typeof t!=typeof e||typeof t!="object")return!1;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(!Ls(t[o],e[o]))return!1;return!0}let r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let s=r[o];if(!Object.prototype.hasOwnProperty.call(e,s)||!Ls(t[s],e[s]))return!1}return!0}function bl(t,e){if(e===void 0)return t;if(t===void 0)return e;if(e===null)return null;if(typeof e!="object"||Array.isArray(e))return e;if(typeof t!="object"||Array.isArray(t))return{...e};let r=!1,n={};for(let o in t)if(o in e){let s=bl(t[o],e[o]);n[o]=s,s!==t[o]&&(r=!0)}else n[o]=t[o];for(let o in e)o in t||(n[o]=e[o],r=!0);return r?n:t}function xl(t,e,r){if(!e||typeof e!="object")return t;if(!t||typeof t!="object")return e;if(r||(r=new WeakSet),r.has(e))return t;r.add(e);for(let n in e){let o=e[n];o&&typeof o=="object"&&!Array.isArray(o)&&t[n]&&typeof t[n]=="object"&&!Array.isArray(t[n])?xl(t[n],o,r):t[n]=o}return t}function Ce(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e.toString(36)}function Tr(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function An(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Ce(e)}function Km(t){return t.split(`
69
69
  `).map(Ce).join(`
70
- `)}var Gm={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 Km(t,e){let r=Gm[t]||Ce(t),o=Ao(e),n=`_${r}-${o}`,s=Tr(t),i=`.${n}{${s}: ${e}}`;return`${n}
71
- ${i}`}var Ym=t=>typeof t=="string"&&(t.indexOf("{")!==-1||t.indexOf("}")!==-1);function Xm(t){let e=t.split("\0"),r=[],o=[];for(let n=0;n+1<e.length;n+=2){let s=e[n],i=e[n+1];if(!i||Ym(i))continue;let a=Gm[s]||Ce(s),c=Ao(i),l=`_${a}-${c}`,f=Tr(s);r.push(l),o.push(`.${l}{${f}:${i}}`)}return r.join(" ")+"\0"+o.join(`
72
- `)}function Zm(t,e){let r=t+e,o=`_c${Ce(r)}`,n=e.split("\0"),s="";for(let a=0;a+1<n.length;a+=2){let c=n[a],l=n[a+1];l&&(Ym(l)||(s+=`${Tr(c)}:${l};`))}let i;if(t.startsWith("@media"))i=`${t}{.${o}{${s}}}`;else if(t.startsWith(":")||t.startsWith("&")){let a=t.startsWith("&")?t.slice(1):t;i=`.${o}${a}{${s}}`}else t.includes("&")?i=`${t.replace("&",`.${o}`)}{${s}}`:i=`.${o} ${t}{${s}}`;return`${o}
73
- ${i}`}var Sl=null;function _l(t){Sl=t}var Ht={structuralHash:Ds,deepEqual:Ls,mergeStructural:bl,overwriteDeep:xl,shortHash:Ce,toKebab:Tr,sanitizeValue:Ao,batchShortHash:qm,atomicCssClass:Km,batchAtomicCss:Xm,compoundCssClass:Zm},Jm=!1,Ms=null;function Nw(t){return Ms||(Ms=import(t||"@symbo.ls/wasm/pkg").then(e=>(e.structuralHash&&(Ht.structuralHash=e.structuralHash),e.deepEqual&&(Ht.deepEqual=e.deepEqual),e.mergeStructural&&(Ht.mergeStructural=e.mergeStructural),e.overwriteDeep&&(Ht.overwriteDeep=e.overwriteDeep),e.shortHash&&(Ht.shortHash=e.shortHash),e.toKebab&&(Ht.toKebab=e.toKebab),e.sanitizeValue&&(Ht.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(Ht.batchShortHash=e.batchShortHash),e.atomicCssClass&&(Ht.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(Ht.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(Ht.compoundCssClass=e.compoundCssClass),Jm=!0,Sl&&e.batchAtomicCss&&Sl({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),Ms)}function jw(){return Jm}T();var Eo={};$(Eo,{CDN_PROVIDERS:()=>Zt,DOMQL_EVENTS:()=>Bf,DOMQ_PROPERTIES:()=>Fe,ENV:()=>nu,HTML_TAGS:()=>eo,METHODS:()=>Zr,METHODS_EXL:()=>on,NODE_ENV:()=>Kt,OPTIONS:()=>On,PACKAGE_MANAGER_TO_CDN:()=>Ue,PARSED_DOMQ_PROPERTIES:()=>rn,PROPS_METHODS:()=>Le,STATE_METHODS:()=>De,STATE_PROPERTIES:()=>jf,SVG_TAGS:()=>Cu,TYPES:()=>Zo,UNIVERSAL_RESERVED_KEYS:()=>wa,addCaching:()=>ea,addContext:()=>ta,addExtend:()=>Iu,addExtends:()=>vt,addItemAfterEveryElement:()=>Af,addProtoToArray:()=>tn,addRef:()=>Zi,applyCSS:()=>ey,applyDependentState:()=>tp,applyEvent:()=>aa,applyEventUpdate:()=>ca,applyExtends:()=>Fu,applyProps:()=>kn,arrayContainsOtherArray:()=>xf,arraysEqual:()=>Tf,arrayzeValue:()=>fr,buildImgSrcset:()=>rs,buildSourcesAndImg:()=>os,cache:()=>ap,call:()=>Np,captureSnapshot:()=>zp,checkForStateTypes:()=>Xu,checkIfInherits:()=>ia,checkIfStringIsInArray:()=>Pf,clone:()=>Wf,cloneAndMergeArrayExtend:()=>hn,cloneFunction:()=>pu,concatAddExtends:()=>Tu,copyJavaScriptToClipboard:()=>wd,copyStringToClipboard:()=>_d,createBasedOnType:()=>Xi,createElement:()=>Ku,createElementExtends:()=>Di,createExtends:()=>mn,createExtendsFromKeys:()=>ro,createExtendsStack:()=>ji,createIfConditionFlag:()=>du,createInheritedState:()=>Zu,createKey:()=>un,createNestedObject:()=>Zf,createNestedObjectByKeyPath:()=>Qu,createObjectWithoutPrototype:()=>Ai,createParent:()=>Ji,createPath:()=>Qi,createProps:()=>vn,createPropsStack:()=>Gi,createRoot:()=>Gu,createScope:()=>op,createSnapshotId:()=>fn,customDecodeURIComponent:()=>Nf,customEncodeURIComponent:()=>Mf,cutArrayAfterValue:()=>vf,cutArrayBeforeValue:()=>kf,debounce:()=>dn,debounceOnContext:()=>lu,decodeNewlines:()=>Lf,deepClone:()=>Y,deepContains:()=>Yf,deepDefaults:()=>Jn,deepDestringifyFunctions:()=>Nt,deepExtend:()=>Fi,deepMerge:()=>W,deepMergeExtends:()=>ae,deepStringifyFunctions:()=>nn,defineSetter:()=>Lp,destringifyGlobalScope:()=>an,detectHeightOnInit:()=>Jp,detectInfiniteLoop:()=>eu,document:()=>q,encodeNewlines:()=>Df,error:()=>lr,excludeKeysFromObject:()=>ou,exec:()=>G,extendCachedRegistry:()=>Ou,extendStackRegistry:()=>yn,extractArrayExtend:()=>xn,fetchLibraryData:()=>va,fibonacciNumberByIndex:()=>td,filterArrays:()=>Of,filterArraysFast:()=>Rf,finalizeExtends:()=>Bi,findClosestNumber:()=>ka,findClosestNumberInFactory:()=>gd,findInheritedState:()=>sa,findKeyPosition:()=>$f,flattenExtend:()=>oo,formatDate:()=>Xp,generateHash:()=>Pi,generateKey:()=>ln,generateMetaTags:()=>pd,get:()=>Ip,getActiveRoute:()=>sl,getCDNUrl:()=>Jt,getCapitalCaseKeys:()=>Du,getCdnProviderFromConfig:()=>ho,getChildStateInKey:()=>na,getChildren:()=>Mn,getContext:()=>Wn,getCookie:()=>Su,getDB:()=>Yn,getEmotionStylesheet:()=>Ed,getExtendsInElement:()=>$u,getExtendsStack:()=>gn,getExtendsStackRegistry:()=>$i,getFrequencyInArray:()=>Sf,getHashedExtend:()=>bn,getImportMapScript:()=>Kp,getInObjectByPath:()=>tu,getLocalStorage:()=>wu,getNev:()=>cu,getPageMetadata:()=>dd,getParentStateInKey:()=>oa,getPath:()=>Nn,getQuery:()=>Xn,getRef:()=>Fp,getRoot:()=>Vn,getRootContext:()=>Un,getRootData:()=>zn,getRootState:()=>Bn,getRootStateInKey:()=>ra,getSpreadChildren:()=>Lu,global:()=>mf,hasFunction:()=>Jr,hasHandlerPlugin:()=>Qr,hasOwnProperty:()=>qf,inheritChildExtends:()=>Mi,inheritChildPropsExtends:()=>Li,inheritParentProps:()=>Cn,inheritRecursiveChildExtends:()=>Ni,init:()=>Ae,initProps:()=>Wu,is:()=>wt,isArray:()=>E,isBoolean:()=>_i,isContextComponent:()=>Mu,isCyclic:()=>ru,isDOMNode:()=>St,isDate:()=>ki,isDefined:()=>_t,isDevelopment:()=>je,isEmpty:()=>vi,isEmptyObject:()=>Gf,isEqualDeep:()=>Ci,isFunction:()=>C,isHtmlElement:()=>Xo,isLocal:()=>au,isMethod:()=>Bp,isMobile:()=>bu,isNode:()=>he,isNot:()=>bf,isNotProduction:()=>ir,isNull:()=>wi,isNumber:()=>se,isObject:()=>S,isObjectLike:()=>D,isPhoto:()=>rd,isProduction:()=>Ne,isStaging:()=>iu,isState:()=>Ju,isString:()=>_,isStringFunction:()=>uu,isTest:()=>Ei,isTesting:()=>su,isUndefined:()=>ut,isUniversallyReservedKey:()=>Wp,isValidHtmlTag:()=>Au,joinArrays:()=>Gr,jointStacks:()=>Pu,keys:()=>Sa,lastLevel:()=>Fs,lastPathname:()=>$s,loadCssFile:()=>ad,loadJavascript:()=>cd,loadJavascriptFile:()=>nd,loadJavascriptFileEmbedSync:()=>id,loadJavascriptFileSync:()=>sd,loadRemoteCSS:()=>ld,loadRemoteScript:()=>go,log:()=>Mp,logGroupIf:()=>mu,logIf:()=>gu,lookdown:()=>Op,lookdownAll:()=>Rp,lookup:()=>Tp,lowercaseFirstLetter:()=>or,makeObjectWithoutPrototype:()=>Kf,map:()=>zf,mapStringsWithContextComponents:()=>Sn,matchRoute:()=>rl,matchesComponentNaming:()=>ce,memoize:()=>fu,merge:()=>Q,mergeSharedLibraries:()=>Qn,nextElement:()=>qn,normalizeLibraryKey:()=>mo,objectToString:()=>sn,objectizeStringProperty:()=>wn,overwrite:()=>cn,overwriteDeep:()=>kt,overwriteShallow:()=>sr,overwriteState:()=>ep,parse:()=>_a,parseDeep:()=>Dn,parseQuery:()=>ol,parseRoutePattern:()=>el,pickupElementFromProps:()=>Wi,pickupPropsFromElement:()=>Ui,previousElement:()=>Gn,propExists:()=>Uu,propertizeElement:()=>Hi,propertizeUpdate:()=>zu,reinit:()=>ty,remove:()=>Pp,removeChars:()=>kd,removeCookie:()=>_u,removeDuplicateProps:()=>En,removeDuplicatesInArray:()=>Kr,removeFromArray:()=>_f,removeFromObject:()=>Xf,removeNestedKeyByPath:()=>Jf,removeValueFromArray:()=>Qo,removeValueFromArrayAll:()=>Cf,reorderArrayByValues:()=>Ef,replaceLiteralsWithObjectFields:()=>rr,replaceOctalEscapeSequences:()=>Ff,resolveAsset:()=>Ct,resolveHandler:()=>to,resolveSharedLibraries:()=>xd,returnValueAsText:()=>Yi,router:()=>re,runGuards:()=>nl,runPluginHook:()=>Yt,scratchSystem:()=>hs,scratchUtils:()=>gr,self:()=>yf,set:()=>wo,setActiveRootState:()=>jn,setCookie:()=>xu,setHashedExtend:()=>Ii,setInObjectByPath:()=>Qf,setLocalStorage:()=>ku,setNodeStyles:()=>xa,setProps:()=>$p,setPropsPrototype:()=>An,spotByPath:()=>Ln,srcsetFor:()=>yo,stringIncludesAny:()=>en,stringToObject:()=>Hf,swapItemsInArray:()=>wf,syncProps:()=>Tn,toCamelCase:()=>ts,toDashCase:()=>es,toDescriptionCase:()=>Cd,toTitleCase:()=>vd,toggleFullscreen:()=>qp,triggerEventOn:()=>Be,triggerEventOnUpdate:()=>ip,trimStringFromSymbols:()=>If,unstackArrayOfObjects:()=>Jo,update:()=>qi,updateProps:()=>Hu,variables:()=>Kn,verbose:()=>po,warn:()=>Hn,window:()=>k});T();T();var Bw=A(),Qm=(t=Bw,e)=>{let r=S(e.localFile)?e.localFile:{},o=Y(r.designSystem||{});return W(t,o)},Vw={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Ae=(t,e=Vw)=>{let r=Qm(t||{},e),o=e.scopeSelector||":root",n=o===":root"?":root:not([data-theme])":`${o}:not([data-theme])`,s=e.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(s=m)}let i=wo({verbose:e.verbose,useReset:e.useReset,useFontImport:e.useFontImport,useVariable:e.useVariable,useSvgSprite:e.useSvgSprite,useDocumentTheme:e.useDocumentTheme,useIconSprite:e.useIconSprite,useDefaultConfig:e.useDefaultConfig,globalTheme:s,themeRoot:e.themeRoot,files:e.files,assets:e.assets,...r},{newConfig:e.newConfig,config:e.config});i&&(i.scopeSelector=o);let a=Aa(i.font,i.files),c=i.useReset,l=i.useVariable,f=i.useFontImport,p=i.useSvgSprite,u=t.svg,d=i.useIconSprite,h=t.icons;if(f&&st(a),l&&(st({[o]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let y in i.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[n]:i.CSS_MEDIA_VARS[y]}:m[y]=i.CSS_MEDIA_VARS[y];st(m)}c&&st(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];st(m)}return(u||p)&&rc(i.svg,{document:e.document}),(h||d)&&nc(i.icons,{document:e.document}),i},Ns={},ty=(t,e=Ns)=>{let r=Qm(t||{},e),o=e.scopeSelector||":root",n=o===":root"?":root:not([data-theme])":`${o}:not([data-theme])`,s=wo({verbose:!1,...r});if(!e.preventInject){if(st({[o]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith("@media")?i[a]={[n]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];st(i)}st(s.reset)}return s},ey=(t,e=Ns)=>{st(t)},GP=(t,e=Ns)=>{let r=e.scopeSelector||":root",o=r===":root"?":root:not([data-theme])":`${r}:not([data-theme])`;if(st({[r]:t.CSS_VARS}),t.CSS_MEDIA_VARS){let n={};for(let s in t.CSS_MEDIA_VARS)s.startsWith("@media")?n[s]={[o]:t.CSS_MEDIA_VARS[s]}:n[s]=t.CSS_MEDIA_VARS[s];st(n)}};var KP=(t,e=Ns)=>{};T();var ry=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,wl={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},oy=(t,e)=>{if(!e)return t;let r=Array.isArray(e)?e:e.split("."),o=t;for(let n of r){if(!o||!o[n])return null;o=o[n]}return o},ny=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=wl:e.router=Q(e.router||{},wl);let r=e.router,o=async(s,i)=>{let a=s.context?.window||k;if(!a.location)return;let{pathname:c,search:l,hash:f}=a.location;c=ry(c);let p=c+l+f,u=s;if(r.customRouterElement){let d=oy(s,r.customRouterElement);d&&(u=d,s.routes&&(u.routes=s.routes))}u.routes&&await re(p,u,{},{initialRender:!0,pushState:!1})},n=!ut(t.onRenderRouter);return r&&r.initRouter&&!n&&(t.onRenderRouter=o),zw(e,r),r},kl=(t,e)=>{if(e.router===!1)return;let r=e.router||wl;if(!r.popState)return;let o=e.utils&&e.utils.router?e.utils.router:re,n=e.window||k,s=async i=>{let{pathname:a,search:c,hash:l}=n.location;a=ry(a);let f=a+c+l,p=t;if(r.customRouterElement){let u=oy(t,r.customRouterElement);u&&(p=u,t.routes&&(p.routes=t.routes))}await p.call("router",f,p,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};n.addEventListener("popstate",s),e.__teardowns=e.__teardowns||[],e.__teardowns.push(()=>n.removeEventListener("popstate",s))},zw=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return W(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};T();var vl=k&&k.location?k.location.host.includes("dev."):je(),sy=vl?"http://localhost:8080/get":"https://api.symbols.app/get",Uw={endpoint:sy},iy=async(t,e=Uw)=>{let r=e.endpoint||sy,o=e.serviceRoute?E(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",n;try{return n=await globalThis.fetch(r+"/?"+o,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await n.json()}catch(s){if(C(e.onError))return e.onError(s);console.error(s)}},Ww=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let o=await iy(t,r),n=vl||e.isDevelopment?Nt(o):Nt(o.releases[0]);r.serviceRoute?E(r.serviceRoute)?r.serviceRoute.forEach(s=>{kt(e[s],n[s.toLowerCase()])}):kt(e[r.serviceRoute],n):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{kt(e[s],n[s.toLowerCase()])})}return e},Hw=async(t,e,r)=>{let{editor:o}=e;if(o&&o.remote){let n=await iy(t,o),s=vl||e.isDevelopment?Nt(n):Nt(n.releases[0]);r(s)}},ay=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await Ww(t,e)}catch(r){console.error(r)}},cy=(t,e,r,o)=>{if(e&&r.editor)try{r.editor.async&&Hw(e,r,o||(n=>{let s=n.designSystem;S(s)&&r.utils.init(s),S(n.state)&&t.state.set(n.state)}))}catch(n){console.error(n)}};var js=t=>{if(!t||t.__destroyed)return!1;let e=t.context;if(!e)return t.__destroyed=!0,!1;if(Array.isArray(e.__teardowns)){for(let r of e.__teardowns)try{r()}catch(o){console.error("[smbls] destroy teardown error:",o)}e.__teardowns.length=0}try{kr(t)}catch(r){console.error("[smbls] dispose error:",r)}if(e.fetch&&e.fetch.__resolved&&delete e.fetch.__resolved,e.fetch&&e.fetch.__resolving&&delete e.fetch.__resolving,e.db&&e.db.__resolved&&delete e.db.__resolved,e.db&&e.db.__resolving&&delete e.db.__resolving,e.analyze?.destroy)try{e.analyze.destroy()}catch(r){console.error("[analyze] destroy error:",r)}return t.__destroyed=!0,!0};T();var qw={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"}},Gw=t=>{if(t.tag==="link")return`link[${t.attr}="${t.key}"]`;if(t.tag&&!t.attr&&!t.key)return t.tag;if(t.tag&&t.attr&&t.key)return`${t.tag}[${t.attr}="${t.key}"]`},Bs=(t,e,r)=>{if(!t)return{};let o=C(t)?G(t,e,r):{...t};if(!S(o))return{};for(let n in o){let s=o[n];C(s)&&(s=G(s,e,r)),_(s)&&s.includes("{{")&&e?.call&&(s=e.call("replaceLiteralsWithObjectFields",s,r)),o[n]=s}return o};var Kw=(t,e)=>{let r=e.createElement(t.tag);return t.attr&&r.setAttribute(t.attr,t.key),(e.head||e.querySelector("head")).appendChild(r),r},Vs=(t,e)=>{if(!(!S(t)||!e))for(let r in t){let o=t[r];if(o==null)continue;let n=qw[r];if(!n)continue;let s=Gw(n),i=e.querySelector(s)||Kw(n,e);i&&(r==="title"?i.textContent=o:n.valueAttr?i.setAttribute(n.valueAttr,o):i.setAttribute("content",o))}};var ly={name:"helmet",create(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let o=Bs(e,t,t.state);Vs(o,r)},update(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let o=Bs(e,t,t.state);Vs(o,r)}};ze();var fy=(t,e,r,o)=>{t&&fo(t,e,r,o)},uy=(t,e,r)=>{if(!t)return;let o=e.context?.document||typeof document<"u"&&document;if(!o)return;let n=Bs(t,e,r);Vs(n,o)},py=async(t,e)=>{if(!t)return;let r={tag:"fragment",...t},o=async()=>{await e.set(r,{preventDefineUpdate:"$router"})};return e.lazyLoad?window.requestAnimationFrame(o):await o(),r},To={routes:t=>t,metadata:uy,fetch:fy,$router:py},Yw=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=uy),t.fetch!==!1&&(e.fetch=fy),t.router!==!1&&(e.$router=py),e};var dy={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},Cl={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},zs={...dy,router:Cl},Xw={state:{},pages:{},components:{},router:Cl,define:To},Ee=Xw;T();T();var hy=(t,e)=>D(t.extends)?t.extends:[];T();var by=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let r=typeof document<"u"?document:e.document;t.document=t.document||r;let o=t.window;return o&&o!==e&&typeof o.URL!="function"?(typeof console<"u"&&console.warn&&console.warn("[smbls/router] context.window lacks URL, falling back to globalThis \u2014 passed-in window may be a stub"),t.window=e):t.window=o||e,t.window},gy=(t="smbls")=>{let e={};for(let r in Er)Object.prototype.hasOwnProperty.call(Er,r)&&(ce(r)?e[`smbls.${r}`]=Er[r]:e[r]=Er[r]);return e},xy=t=>t.components?{...gy(),...t.components}:gy(),Sy=t=>({...Eo,...il,...gr,...t.utils,...t.snippets,...t.functions}),_y=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),my={},wy=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:o=!1,cdnProvider:n,packageManager:s,symbolsConfig:i})=>{if(n||(n=Ue[s]||ho(i)||"esmsh"),!t)return null;let a=!1;for(let c in t){a=!0;break}if(!a)return null;for(let c in t){let l=t[c];if(e&&e[c])continue;let f=je()&&o?`?${Math.random()}`:"",p=Jt(c,l,n)+f;try{if(my[c])continue;my[c]=!0,await Promise.race([go(p,{document:r,type:"module"}),new Promise((u,d)=>setTimeout(()=>d(new Error(`Timeout loading ${c}`)),1e4))])}catch(u){if(console.error(`Failed to load ${c} from ${n}:`,u),n!=="symbols")try{let d=Jt(c,l,"symbols")+f;await Promise.race([go(d,{document:r}),new Promise((h,g)=>setTimeout(()=>g(new Error(`Timeout fallback ${c}`)),2e4))]),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(d){console.error(`Failed to load ${c} from fallback:`,d)}}}return t},ky=async(t,e)=>{let r=e.window||window,o=e.cdnProvider||ho(e.symbolsConfig)||"esmsh",n=async i=>async(a,c)=>{let f=(i.window||window).packages[a];return typeof f=="function"?f():f},s=async i=>async(a,c=o)=>{let{dependenciesOnDemand:l}=i,f=i.document||document,p=i.window||window;if(!p.packages[a]){let u=je()?`?${Math.random()}`:"";if(l&&l[a]){let d=l[a],h=Jt(a,d,c)+u;try{await i.utils.loadRemoteScript(h,{window:p,document:f})}catch(g){if(console.error(`Failed to load ${a} from ${c}:`,g),c!=="symbols"){let m=Jt(a,d,"symbols")+u;await i.utils.loadRemoteScript(m,{window:p,document:f})}}}else{let d=Jt(a,"latest",c)+u;try{await i.utils.loadRemoteScript(d,{window:p,document:f})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let g=Jt(a,"latest","symbols")+u;await i.utils.loadRemoteScript(g,{window:p,document:f})}}p.packages[a]="loadedOnDeman"}}return await p.require(a,c)};r.packages?r.packages=Q(r.packages,t):r.packages=t,r.require||(e.utils.require=await n(e),r.require=e.utils.require),r.requireOnDemand||(e.utils.requireOnDemand=await s(e),r.requireOnDemand=e.utils.requireOnDemand)},Zw=/\s+/g,vy=(t,e)=>typeof t=="function"?t(e,e?.state,e?.context):t,Jw=(t,e)=>{let r="";for(let o in t){let n=t[o];typeof n=="boolean"&&n?r+=` ${o}`:typeof n=="string"?r+=` ${n}`:typeof n=="function"&&(r+=` ${vy(n,e)}`)}return r},Qw=(t,e,r)=>{if(!t)return;let{key:o}=e;t===!0&&(t=e.classlist={key:o}),typeof t=="string"&&(t=e.classlist={default:t}),t!==null&&typeof t=="object"&&!Array.isArray(t)&&(t=Jw(t,e));let n=t.replace(Zw," ").trim();if(r&&typeof r.setAttribute=="function")r.setAttribute("class",n);else if(r)try{r.className=n}catch{}return n},t0=()=>(t,e,r)=>{let o=vy(t,e);if(t){let{__ref:n}=e;n.__class.style=o}Cy()(e.classlist,e,e.state,!0)},Cy=()=>(t,e,r,o)=>{if(e.style&&!o)return;let{__ref:n}=e,{__class:s,__classNames:i}=n;if(!(t===null||typeof t!="object"||Array.isArray(t))){e.class&&(i.classProps=e.class),e.attr?.class&&(i.class=e.attr.class);for(let a in s){let c=s[a];if(!c){delete i[a];continue}let l;typeof c=="string"||typeof c=="number"?l=c:typeof c=="boolean"?l=e.key:l=Ye(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];e.node&&Qw(i,e,e.node)}},e0=()=>({style:t0(),classlist:Cy()}),r0=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],yy=!1,Ay=(t,e)=>{let r=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,o=e.initOptions||{},n=e.registry||e0(),s=e.designSystem?W(Y(e.designSystem),Ts):Y(Ts),i={};for(let d of r0)e[d]!==void 0&&(i[d]=e[d]);let a,c=yy&&!e.skipDesignSystemInit,l=c?`[data-smbls-app="${t}"]`:":root";e.scopeSelector=l;let f=l===":root"?":root:not([data-theme])":`${l}:not([data-theme])`;if(e.skipDesignSystemInit){if(a=A(t)||A(),a&&(a.document=r),a?.CSS_VARS){lt(a);try{if(st({[l]:a.CSS_VARS}),a.CSS_MEDIA_VARS){let d={};for(let h in a.CSS_MEDIA_VARS)h.startsWith("@media")?d[h]={[f]:a.CSS_MEDIA_VARS[h]}:d[h]=a.CSS_MEDIA_VARS[h];st(d)}}finally{nt()}}}else if(c){let d=Wd(t,s,{cleanBase:!0});for(let g in i)d[g]=i[g];d.document=r;let h=t.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);e.cssPrefix=h,d.varPrefix=h,lt(d);try{a=Ae(d,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:l,...zs,...i,...o})}finally{nt()}}else{let d=A();d&&(d.document=r),a=Ae(s,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:l,...zs,...i,...o}),a&&a!==d&&(a.document=r),yy=!0}let p=a?.CONFIG||a,u=p?.font;if(u){lt(p);try{for(let d in u){let h=u[d];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")&&st(`@font-face { ${m} }`)}}finally{nt()}}return[a,n]},Ey=(t,e)=>{let r={};e.state&&W(r,e.state),t&&t.state&&W(r,t.state);let o=e.polyglot;if(o?.translations){let n=null;try{typeof localStorage<"u"&&(n=localStorage.getItem(o.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let s=n||r.lang||o.defaultLang||"en";n&&n!==r.lang&&(r.lang=n);let i=o.translations[s];if(i&&typeof i=="object")for(let c in i)r[c]=i[c];let a=new Set(o.languages||[]);for(let c in o.translations)!a.has(c)&&r[c]===void 0&&(r[c]=o.translations[c])}return r.isRootState=!0,Y(r)},Ty=(t,e)=>{S(t.routes)&&S(e.pages)&&Q(t.routes,e.pages);let r=t.routes||e.pages||{};for(let o in r){if(o.charCodeAt(0)===47)continue;let n=o==="index"?"":o;r["/"+n]=r[o],delete r[o]}return r},Oy=t=>{Qn(t,t.sharedLibraries)};T();var Py="smbls_lang",o0="smbls_t_",n0="smbls_tv_",Or={get(t){try{return window?.localStorage.getItem(t)}catch{return null}},set(t,e){try{window?.localStorage.setItem(t,e)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(t){try{window?.localStorage.removeItem(t)}catch(e){console.warn("[polyglot] localStorage unavailable:",e.message)}}},Oo={};function Ws(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||e?.defaultLang||"en"}function Al(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var Us=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let r=e.split("."),o=t;for(let n=0;n<r.length;n++){if(o==null)return;o=o[r[n]]}return o},Ry=(t,e,r)=>{let o=e.lastIndexOf(".");if(o===-1)return t[e+"_"+r];let n=Us(t,e.substring(0,o));if(n!=null)return n[e.substring(o+1)+"_"+r]};function El(t,e){if(!t)return"";let r=this?.context,o=r?.polyglot,n=e||this.call("getActiveLang"),s=this?.state;if(s){let l=Ry(s,t,n);if(l!==void 0)return l}if(o?.translations){let l=o.translations[n];if(l){let f=Us(l,t);if(f!==void 0)return f}}let a=(s?.root||r?.state?.root)?.translations;if(a){let l=a[n];if(l){let f=Us(l,t);if(f!==void 0)return f}}let c=o?.defaultLang||"en";if(s){let l=Ry(s,t,c);if(l!==void 0)return l}if(o?.translations){let l=o.translations[c];if(l){let f=Us(l,t);if(f!==void 0)return f}}return t}async function Tl(t){let e=this?.context,r=e?.polyglot,o=this?.state?.root||e?.state?.root;if(!r||!o)return;let n=r.storagePrefix||o0,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):n0);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!o.translations?.[t]){let c=Or.get(n+t);if(c)try{let l=JSON.parse(c),f={translations:{...o.translations||{}}};f.translations[t]=l,o.update&&o.update(f)}catch(l){console.warn("[polyglot] Failed to apply language update:",l.message)}}let i=(r.storagePrefix||"smbls")+":"+t;if(Oo[i])return Oo[i];let a=this;return Oo[i]=(async()=>{try{let c=r.fetch,l=parseInt(Or.get(s+t),10)||0,f,p,u;if(C(c)){let h=await c(t,l,a);if(!h||h.changed===!1)return;f=h.translations||h.data||h,p=h.version||0,u=!0}else if(S(c)){let h=a.getDB||(()=>e.fetch),g=C(h)?await h.call(a):e.fetch;if(!g)return;let m=c.rpc||c.from||"get_translations_if_changed",y={p_lang:t,p_cached_version:l,...c.params||{}},b=await g.rpc({from:m,params:y});if(b.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,b.error;let x=b.data;if(!x||!x.changed)return;f=x.translations||{},p=x.version||0,u=!0}else return;if(!u||!f)return;Or.set(n+t,JSON.stringify(f)),p&&Or.set(s+t,String(p));let d={translations:{...o.translations||{}}};d.translations[t]=f,o.update&&o.update(d)}catch(c){if(r.verbose!==!1){let l=c?.message||c?.details||(typeof c=="object"?JSON.stringify(c):String(c));console.warn("[polyglot] Failed to load translations for",t,"-",l)}}finally{delete Oo[i]}})(),Oo[i]}async function Ol(t){let e=this?.context,r=e?.polyglot,o=this?.state?.root||e?.state?.root;if(!o||this.call("getActiveLang")===t)return;let n=r?.storageLangKey||Py;Or.set(n,t),r?.fetch&&await this.call("loadTranslations",t),e?.state&&(e.state.lang=t);let s=r?.translations?.[t],i={lang:t};if(s&&typeof s=="object")for(let c in s){let l=s[c];(Array.isArray(l)||typeof l=="string"||typeof l=="number")&&(i[c]=l)}if(o.update&&o.update(i),s&&typeof s=="object")for(let c in s){let l=s[c];if(l&&typeof l=="object"&&!Array.isArray(l)&&o[c]&&typeof o[c]=="object"&&!Array.isArray(o[c]))for(let f in l)o[c][f]=l[f]}let a=this?.context?.document||globalThis.document;if(a&&s){let c=a.querySelectorAll("[data-key]");for(let l of c){let f=l.ref;if(!f)continue;let p=f.__ref?.__exec?.text;if(typeof p=="string"&&p.includes("{{"))try{let u=f.call("replaceLiteralsWithObjectFields",p,f.state);u!=null&&l.textContent!==u&&(l.textContent=u)}catch{}}}}async function Rl(t,e,r){let o=this?.context,n=o?.polyglot,s=this?.state?.root||o?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=r),n?.translations?.[e]&&(n.translations[e][t]=r),n?.fetch&&S(n.fetch)){let i=this.getDB||(()=>o.fetch),a=C(i)?await i.call(this):o.fetch;if(!a)return;let c=n.fetch.table||"translations",l=await a.upsert({from:c,data:{key:t,lang:e,text:r}});if(l?.error)throw l.error;return l.data}}async function Iy(){let t=this?.context,e=t?.polyglot;if(!e)return;let r=this?.state?.root||t?.state?.root;if(!r)return;let o=e.storageLangKey||Py,s=Or.get(o)||e.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&!(e.translations&&e.translations[s])&&await this.call("loadTranslations",s)}function Pl(t){try{let e=this?.context?.polyglot,o=(this?.state?.root||this?.context?.state?.root)?.lang||e?.defaultLang||"en",n=this?.state;if(!n)return"";let s=t.lastIndexOf(".");if(s===-1)return n[t+o]??"";let i=t.substring(0,s).split("."),a=n;for(let c=0;c<i.length;c++){if(a==null)return"";a=a[i[c]]}return a==null?"":a[t.substring(s+1)+o]??""}catch{return""}}var Il={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Iy.call(t))}};var Hs={polyglot:El,getLocalStateLang:Pl,getActiveLang:Ws,getLang:Ws,setLang:Ol,getLanguages:Al,loadTranslations:Tl,upsertTranslation:Rl};ze();var qs={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}},Gs=t=>parseFloat(t.toFixed(4)),s0=(t,e,r)=>{let{ascent:o,descent:n,lineGap:s,unitsPerEm:i,capHeight:a}=e,c=Math.abs(n),l=o+c+s,f=r!==void 0?r:l/i*t,p=f/t,u=l/i,d=(o-a+s/2)/i-(p-u)/2,h=(c+s/2)/i-(p-u)/2;return{fontSize:`${Gs(t/16)}rem`,lineHeight:`${Gs(f)}px`,capHeightTrim:`${Gs(-d)}em`,baselineTrim:`${Gs(-h)}em`}},i0=(t,e)=>{if(typeof t=="number")return t;let r=e?.designSystem;if(!r)return null;let{typography:o}=r;if(o?.sequence){let s=String(t).toUpperCase(),i=o.sequence[s];if(i)return i.decimal||i.val}let n=parseFloat(t);return isNaN(n)?null:typeof t=="string"&&t.endsWith("rem")?n*(r.typography?.browserDefault||16):n},a0=(t,e)=>{let o=e?.designSystem?.font_family||{};if(t){let s=o[t];if(s?.metrics)return s.metrics;let i=String(t).toLowerCase().replace(/['"]/g,"").trim();if(qs[i])return qs[i]}let n=o.default||Object.keys(o)[0];if(n){let s=o[n];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(qs[a])return qs[a]}}return null},$y=(t,e,r,o)=>{if(!t)return;let n=i0(e.fontSize,o);if(!n)return;let s=a0(e.fontFamily,o);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=s0(n,s,i),f={};return e.lineHeight||(f.lineHeight=a),f["::before"]={content:'""',marginBottom:c,display:"table"},f["::after"]={content:'""',marginTop:l,display:"table"},f},Fy={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}};var Ro={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"},Ft=Object.create(null);for(let t in Ro)Ft[Ro[t]]=t;var $l=Object.create(null);for(let t in Ro){let e=Ro[t];if($l[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${$l[e]}"`);$l[e]=t}var Te=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]);function Po(t){return/^[A-Z]/.test(t)}function Io(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function c0(t){return t.trim().split(/\s+/).filter(Boolean)}function Dy(t){return t.replace(/_/g," ")}function l0(t){if(!t||typeof t!="string")return{};let e={},r=c0(t);for(let o of r){if(o.startsWith("!")){let c=o.slice(1),l=Ft[c]||c;e[l]=!1;continue}let n=o.indexOf(":");if(n===-1){let c=Ft[o]||o;e[c]=!0;continue}let s=o.slice(0,n),i=o.slice(n+1),a=Ft[s]||s;if(i.includes(",")){e[a]=i.split(",").map(Dy);continue}e[a]=Dy(i)}return e}function $o(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?$o(r):r});let e={};for(let r in t){let o=t[r];if(Po(r)){e[r]=Fl(o);continue}let n=Ft[r]||r;if(Io(r)&&n===r){e[r]=Fl(o);continue}if(Te.has(n)||Te.has(r)){e[n]=o;continue}e[n]=Fl(o)}return e}function Fl(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?$o(e):e}):typeof t=="object"?$o(t):t}function Fo(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Fo(r):r});let e={};if(typeof t.in=="string"){let r=l0(t.in);for(let o in r)e[o]=r[o]}for(let r in t){if(r==="in")continue;let o=t[r];if(Po(r)){e[r]=Dl(o);continue}let n=Ft[r]||r;if(Io(r)&&n===r){e[r]=Dl(o);continue}if(Te.has(n)||Te.has(r)){e[n]=o;continue}e[n]=Dl(o)}return e}function Dl(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Fo(e):e}):typeof t=="object"?Fo(t):t}function f0(t){let e="",r=0;for(;r<t.length;){if(t[r]==="\\"&&r+1<t.length){let o=t[r+1];if(o===","||o==="_"||o==="\\"){e+=o,r+=2;continue}}t[r]==="_"?e+=" ":e+=t[r],r++}return e}function u0(t){let e=[],r="",o=0;for(;o<t.length;){if(t[o]==="\\"&&o+1<t.length){r+=t[o]+t[o+1],o+=2;continue}if(t[o]===","){e.push(r),r="",o++;continue}r+=t[o],o++}return e.push(r),e}function Ly(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):f0(t)}function Ll(t){if(!t||typeof t!="string")return{};let e={},r=t.trim().split(/\s+/).filter(Boolean);for(let o of r){if(o.startsWith("!")){let l=o.slice(1),f=Ft[l]||l;e[f]=!1;continue}let n=o.indexOf(":");if(n===-1){let l=Ft[o]||o;e[l]=!0;continue}let s=o.slice(0,n),i=o.slice(n+1),a=Ft[s]||s,c=u0(i);if(c.length>1){e[a]=c.map(Ly);continue}e[a]=Ly(i)}return e}function Do(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Do(r):r});let e={};if(typeof t.in=="string"){let r=Ll(t.in);for(let o in r)e[o]=r[o]}for(let r in t){if(r==="in")continue;let o=t[r];if(Po(r)){typeof o=="string"?e[r]=Ll(o):e[r]=Ml(o);continue}let n=Ft[r]||r;if(Io(r)&&n===r){typeof o=="string"?e[r]=Ll(o):e[r]=Ml(o);continue}if(Te.has(n)||Te.has(r)){e[n]=o;continue}e[n]=Ml(o)}return e}function Ml(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Do(e):e}):typeof t=="object"?Do(t):t}var p0={shorten:$o,stringify:Fo,stringifyFurther:Do};function d0(t,e){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(o=>e(o));let r={};for(let o in t){let n=t[o];r[o]=n&&typeof n=="object"?e(n):n}return r}var h0=["components","pages","snippets"],Ks={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let o=p0[e===!0?"shorten":e];if(o){for(let n of h0)t[n]&&(t[n]=d0(t[n],o));t.app&&typeof t.app=="object"&&(t.app=o(t.app))}}};var g0=0,m0=()=>`${Date.now().toString(36)}-${(g0++).toString(36)}`,V=(t,e,r={})=>({id:m0(),ts:Date.now(),type:t,level:e,...r}),y0=t=>{let e=[],r=t,o=0;for(;r&&o<32;)r.key!=null&&e.unshift(String(r.key)),r=r.parent,o++;return e.join(" > ")},Rr=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:y0(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var Pr=t=>t?.context?.analyze,b0={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"}},x0=(t,{category:e,type:r,level:o})=>n=>{let s=Pr(n);!s||!s.shouldCapture(e)||s.emit(V(r,o,{hook:t,element:Rr(n)}))},My=t=>(e,r)=>{let o=Pr(e);!o||!o.shouldCapture("state")||o.emit(V("state","debug",{hook:t,element:Rr(e),changedKeys:r?.changedKeys||null}))},Lo={name:"analyze",error(t,e){let r=Pr(t);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let o=e?.error||e?.err||(e instanceof Error?e:null);r.emit(V("error","error",{hook:e?.hook||"error",element:Rr(t),error:o,message:o?.message||(typeof e?.message=="string"?e.message:null)}))},renderRouter(t){let e=Pr(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(V("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=Pr(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=Pr(t);if(!e||!e.shouldCapture("updates"))return;let r=null;t.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-t.__ref.__analyzeUpdateStart,t.__ref.__analyzeUpdateStart=null),e.emit(V("update","debug",{hook:"update",element:Rr(t),durationMs:r}))},beforeStateUpdate:My("beforeStateUpdate"),stateUpdate:My("stateUpdate")};for(let[t,e]of Object.entries(b0))Lo[t]=x0(t,e);T();var Ys={error:0,warn:1,info:2,debug:3,trace:4};var Nl=(t,e)=>{let r=Ys[t],o=Ys[e];return r==null||o==null?!0:r<=o},Xs=t=>Ys[t]!=null?t:"warn";T();var Zs=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var S0=(t,e)=>{for(let r of e)if(r instanceof RegExp){if(r.test(t))return!0}else if(typeof r=="string"&&t.toLowerCase().includes(r.toLowerCase()))return!0;return!1},_0=(t,e)=>{if(e!=="redact"){if(e==="hash"){let r=0,o=String(t);for(let n=0;n<o.length;n++)r=(r<<5)-r+o.charCodeAt(n)|0;return`#${(r>>>0).toString(36)}`}return"***"}},jl=(t,e,r,o)=>{if(o>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>jl(s,e,r,o+1));let n={};for(let s of Object.keys(t))if(S0(s,e)||Zs.test(s)){let a=_0(t[s],r);a!==void 0&&(n[s]=a)}else n[s]=jl(t[s],e,r,o+1);return n},Bl=(t=[],e="mask")=>{let r=Array.isArray(t)?t:[t];return o=>{if(!o)return o;let{id:n,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:p,element:u,target:d,...h}=o,g=jl(h,r,e,0);return{id:n,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:p,element:u,target:d,...g}}};var Ny=t=>{let e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<"u"?navigator.userAgent:null,o=t.config.buildHash||null,n=t.config.appId||null;return s=>{if(!s)return s;let i=t.context?.routerOptions?.currentRoute||null,a=k,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:e,app:{id:n,build:o,route:i},meta:{ua:r,viewport:c}}}},jy=()=>t=>{if(!t)return t;if(t.element&&typeof t.element=="object"){let e=t.element;(e.node||e.parent||e.__ref)&&(t={...t,element:{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,tag:e.tag||null,component:e.component||null}})}return t.error instanceof Error&&(t={...t,error:{name:t.error.name,message:t.error.message,stack:t.error.stack}}),t},By=(t=1e3,e=500)=>{let r=new Map;return o=>{if(!o)return o;let n=`${o.type}:${o.level}:${o.message||""}:${o.error?.message||""}`,s=r.get(n),i=o.ts||Date.now();if(s&&i-s<t)return null;if(r.set(n,i),r.size>e){let a=Math.ceil(e/10),c=0;for(let l of r.keys()){if(c++>=a)break;r.delete(l)}}return o}},Vy=t=>e=>{if(!e)return e;let r=t[e.type];return r==null||r>=1?e:Math.random()>r?null:e},zy={redact:t=>Bl(t.config.redact||[],t.config.maskStrategy),enrich:t=>Ny(t),summarize:()=>jy(),dedupe:t=>By(t.config.cache?.dedupeWindowMs||1e3),sample:t=>Vy(t.config.sample||{})},w0=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let r=zy[t];return r?r(e):null}return null},Vl=t=>{let e=t.config,r=Array.isArray(e.transformers)?e.transformers.slice():[],o=r.findIndex(s=>s==="redact");o>=0&&r.splice(o,1);let n=[];e.redact!==!1&&n.push(zy.redact(t));for(let s of r){let i=w0(s,t);i&&n.push(i)}return s=>{let i=s;for(let a of n){if(i==null)return null;let c=a(i);if(c==null)return null;if(Array.isArray(c)){let l=n.slice(n.indexOf(a)+1),f=[];for(let p of c){let u=p,d=!1;for(let h of l)if(u=h(u),u==null){d=!0;break}!d&&u!=null&&f.push(u)}return f}i=c}return i}};T();var k0={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},v0="\x1B[0m",Js=typeof k<"u"&&typeof k.document<"u",Wy=(t={})=>{let e=t.minLevel||null,r=console.error.bind(console),o=console.warn.bind(console),n=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?r:s.level==="warn"?o:n,a=`[analyze:${s.type}]`;if(Js)i(a,s);else{let c=k0[s.level]||"";i(`${c}${a}${v0}`,s)}}},Hy=(t,e={})=>{let r=e.max||t.config.cache?.max||500,o=new Array(r),n=0,s=0,i=a=>{o[n]=a,n=(n+1)%r,s<r&&s++};return t.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(n-s+r)%r;for(let l=0;l<s;l++)a[l]=o[(c+l)%r];return a},query:(a={})=>{let c=t.__memory.snapshot(),l=a.sinceMs?Date.now()-a.sinceMs:0;return c.filter(f=>!(!f||a.level&&f.level!==a.level||a.type&&f.type!==a.type||l&&f.ts<l))},clear:()=>{n=0,s=0}},i},qy=(t={})=>{let e=t.url,r=t.batchMs!=null?t.batchMs:5e3,o=t.maxBatch||50;if(!e)return()=>{};let n=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!n.length)return;let c=JSON.stringify({events:n});n=[];let l=Js?new k.Blob([c],{type:"application/json"}):c;if(Js&&navigator.sendBeacon)try{navigator.sendBeacon(e,l);return}catch{}typeof fetch<"u"&&fetch(e,{method:"POST",headers:{"Content-Type":"application/json","X-Analyze-Beacon":"1"},body:c,keepalive:!0}).catch(()=>{})};Js&&(k.addEventListener("pagehide",i,{passive:!0}),k.addEventListener("beforeunload",i,{passive:!0}));let a=c=>{c&&(n.push(c),n.length>=o?i():s||(s=setTimeout(i,r)))};return a.flush=i,a},Uy={console:Wy,memory:Hy,beacon:qy},zl=t=>{let e=Array.isArray(t.config.sinks)?t.config.sinks:["console"],r=[];for(let o of e)if(typeof o=="function")r.push(o);else if(typeof o=="string"){let n=Uy[o];if(!n)continue;r.push(o==="memory"?n(t,{}):n({}))}else if(o&&typeof o=="object"&&o.type){let n=Uy[o.type];if(!n)continue;r.push(o.type==="memory"?n(t,o):n(o))}return r};T();var C0=typeof k<"u"&&typeof k.document<"u",A0=new Set(["password","hidden"]),Gy=(t,e)=>{let r=0,o=null,n=null;return(...s)=>{let i=Date.now();i-r>=e?(r=i,t(...s)):(n=s,o||(o=setTimeout(()=>{r=Date.now(),o=null,n&&(t(...n),n=null)},e-(i-r))))}},Ul="__analyzeKeyPath",Ir=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[Ul])return e[Ul];let r=[],o=e,n=0,s=null;for(;o&&n<64;){if(o.getAttribute){let a=o.getAttribute("data-key");a&&(s==null&&(s=a),r.unshift(a))}o=o.parentNode,n++}let i;if(r.length)i={selector:null,key:s,path:r.join(" > "),tag:e.tagName?.toLowerCase()||null};else{let a=(e.tagName||"unknown").toLowerCase(),c=e.id?`#${e.id}`:"",l=e.className&&typeof e.className=="string"?"."+e.className.trim().split(/\s+/).slice(0,2).join("."):"";i={selector:`${a}${c}${l}`,key:null,path:null}}try{e[Ul]=i}catch{}return i},E0=(t,e)=>{if(e==="mask")return"***";if(e!=="redact"){if(e==="hash"){let r=0,o=String(t||"");for(let n=0;n<o.length;n++)r=(r<<5)-r+o.charCodeAt(n)|0;return`#${(r>>>0).toString(36)}`}return"***"}},T0=t=>!!(!t||t.tagName==="INPUT"&&A0.has(t.type)||Zs.test(t.name||"")||Zs.test(t.id||"")||t.dataset?.analyze==="skip"),Wl=t=>{if(!C0)return;let e=t.config.capture,r=t.config.throttle,o=t.__teardown,n=(s,i,a,c)=>{s.addEventListener(i,a,c),o.push(()=>s.removeEventListener(i,a,c))};if(e.errors&&(n(k,"error",s=>{t.emit(V("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}))}),n(k,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;t.emit(V("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),e.pointer){n(k,"click",i=>{t.emit(V("pointer","info",{hook:"click",target:Ir(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:Ky(i)}))},{passive:!0,capture:!0}),n(k,"dblclick",i=>{t.emit(V("pointer","info",{hook:"dblclick",target:Ir(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),n(k,"contextmenu",i=>{t.emit(V("pointer","info",{hook:"contextmenu",target:Ir(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=Gy(i=>{t.emit(V("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},r.pointermove);n(k,"pointermove",s,{passive:!0})}if(e.keyboard&&n(k,"keydown",s=>{t.emit(V("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:Ky(s),target:Ir(s)}))},{passive:!0,capture:!0}),e.forms){let s=i=>{let a=i.target;if(!a||!a.tagName||!["INPUT","TEXTAREA","SELECT"].includes(a.tagName))return;let l=T0(a),f=a.dataset?.analyze==="track",p=null;f&&!l?p=a.value:t.config.maskFormValues!==!1&&(p=E0(a.value,t.config.maskStrategy)),t.emit(V("forms","info",{hook:i.type,target:Ir(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:p}))};n(k,"input",s,{passive:!0,capture:!0}),n(k,"change",s,{passive:!0,capture:!0}),n(k,"submit",i=>{t.emit(V("forms","info",{hook:"submit",target:Ir(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=Gy(()=>{t.emit(V("scroll","trace",{hook:"scroll",x:k.scrollX,y:k.scrollY}))},r.scroll);n(k,"scroll",s,{passive:!0,capture:!0})}if(e.viewport){let s=dn(()=>{t.emit(V("viewport","info",{hook:"resize",w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}))},r.resize);n(k,"resize",s,{passive:!0}),n(k,"orientationchange",()=>{t.emit(V("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),n(k.document,"visibilitychange",()=>{t.emit(V("viewport","info",{hook:"visibilitychange",hidden:k.document.hidden}))},{passive:!0}),t.emit(V("viewport","info",{hook:"initial",w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}))}if(e.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{t.emit(V("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(O0)}))}catch{}return i.apply(console,a)},o.push(()=>{console[s]=i})}if(e.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let c of a.getEntries())t.emit(V("performance","info",{hook:c.entryType,name:c.name,startTime:c.startTime,duration:c.duration,value:c.value!=null?c.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{}o.push(()=>s.disconnect())}catch{}},Ky=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),O0=t=>{if(t==null)return t;if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};T();var R0=typeof k<"u"&&typeof k.document<"u";var Hl=t=>{if(R0&&t.config.capture.network){if(typeof k.fetch=="function"){let e=k.fetch.bind(k),r=function(o,n){if(n?.headers?.["X-Analyze-Beacon"])return e(o,n);let s=typeof o=="string"?o:o&&o.url||"",i=(n?.method||typeof o=="object"&&o?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return t.emit(V("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),e(o,n).then(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;return t.emit(V("network",c.ok?"info":"warn",{hook:"fetch.success",source:"window.fetch",url:s,method:i,status:c.status,ok:c.ok,durationMs:l})),c}).catch(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;throw t.emit(V("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:c,durationMs:l})),c})};k.fetch=r,t.__teardown.push(()=>{k.fetch=e})}if(typeof k.XMLHttpRequest=="function"){let e=k.XMLHttpRequest,r=e.prototype.open,o=e.prototype.send;e.prototype.open=function(n,s){return this.__analyze={method:String(n).toUpperCase(),url:String(s)},r.apply(this,arguments)},e.prototype.send=function(n){let s=this.__analyze;if(!s)return o.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();t.emit(V("network","info",{hook:"xhr.start",source:"xhr",url:s.url,method:s.method}));let a=()=>{let l=(typeof performance<"u"?performance.now():Date.now())-i,f=this.status>=200&&this.status<400;t.emit(V("network",f?"info":"warn",{hook:"xhr.success",source:"xhr",url:s.url,method:s.method,status:this.status,ok:f,durationMs:l}))},c=()=>{let l=(typeof performance<"u"?performance.now():Date.now())-i;t.emit(V("network","error",{hook:"xhr.error",source:"xhr",url:s.url,method:s.method,status:this.status,durationMs:l}))};return this.addEventListener("loadend",a),this.addEventListener("error",c),o.apply(this,arguments)},t.__teardown.push(()=>{e.prototype.open=r,e.prototype.send=o})}}};var P0={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},I0={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},$0={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},F0=t=>{let e={...P0,...t};return e.replay&&Object.assign(e,I0),e.telemetry&&Object.assign(e,$0),e},D0=64,L0=()=>{if(typeof k>"u"||!k.location)return null;try{let e=new URLSearchParams(k.location.search).get("analyze");return e||null}catch{return null}},ql=(t={})=>{let e=t===!0?{}:{...t};e.capture=F0(e.capture||{});let r=L0();(r==="debug"||e.debug)&&(e.level="debug",e.debug=!0,e.capture={...e.capture,lifecycle:!0,state:!0,updates:!0,console:!0}),r==="off"&&(e.enabled=!1),e.level=Xs(e.level||"warn"),e.cache={max:500,dedupeWindowMs:1e3,...e.cache||{}},e.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...e.throttle||{}},e.maskFormValues==null&&(e.maskFormValues=!0),e.maskStrategy||(e.maskStrategy="mask"),Array.isArray(e.sinks)||(e.sinks=["console","memory"]),Array.isArray(e.transformers)||(e.transformers=["enrich","summarize"]);let o={config:e,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},n=()=>{o.__pipeline||(o.__pipeline=Vl(o),o.__sinks=zl(o))};return o.shouldCapture=s=>o.config.enabled===!1?!1:!!o.config.capture[s],o.emit=s=>{if(s&&o.config.enabled!==!1&&!o.__paused&&Nl(s.level,o.config.level)){if(!o.__ready){if(s.level!=="error"&&!o.config.captureDuringHydration)return;o.__preBuffer.length<D0&&o.__preBuffer.push(s);return}n(),Yy(o,s)}},o.activate=s=>{if(o.context==null&&(o.context=s||null),o.__ready)return;o.__ready=!0;let i=o.__preBuffer;if(o.__preBuffer=[],i.length){n();for(let a of i)Yy(o,a)}try{Wl(o)}catch(a){console.error("[analyze] browser attach error:",a)}try{Hl(o)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of o.__onActivate||[])try{a(o)}catch(c){console.error("[analyze] onActivate error:",c)}},o.pause=()=>{o.__paused=!0},o.resume=()=>{o.__paused=!1},o.setLevel=s=>{o.config.level=Xs(s)},o.setCapture=(s,i)=>{o.config.capture[s]=!!i},o.query=s=>o.__memory?o.__memory.query(s):[],o.snapshot=()=>o.__memory?o.__memory.snapshot():[],o.emitNetwork=s=>{if(!o.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";o.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})},o.flush=()=>{if(o.__sinks)for(let s of o.__sinks)typeof s.flush=="function"&&s.flush()},o.replay=()=>({initialSnapshot:o.__initialSnapshot,events:o.snapshot()}),o.destroy=()=>{for(let s of o.__teardown)try{s()}catch{}o.__teardown=[],o.__ready=!1,o.__paused=!0},o.__onActivate=[],o.onActivate=s=>{o.__onActivate.push(s)},o},Yy=(t,e)=>{let r=t.__pipeline(e);if(r==null)return;let o=Array.isArray(r)?r:[r];for(let n of o){if(typeof t.config.onEvent=="function")try{t.config.onEvent(n)}catch{}for(let s of t.__sinks)try{s(n)}catch(i){console.error("[analyze] sink error:",i)}}};var qt=Object.create(null);qt.open="0";qt.close="1";qt.ping="2";qt.pong="3";qt.message="4";qt.upgrade="5";qt.noop="6";var Mo=Object.create(null);Object.keys(qt).forEach(t=>{Mo[qt[t]]=t});var No={type:"error",data:"parser error"};var Jy=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Qy=typeof ArrayBuffer=="function",tb=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,jo=({type:t,data:e},r,o)=>Jy&&e instanceof Blob?r?o(e):Xy(e,o):Qy&&(e instanceof ArrayBuffer||tb(e))?r?o(e):Xy(new Blob([e]),o):o(qt[t]+(e||"")),Xy=(t,e)=>{let r=new FileReader;return r.onload=function(){let o=r.result.split(",")[1];e("b"+(o||""))},r.readAsDataURL(t)};function Zy(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var Gl;function eb(t,e){if(Jy&&t.data instanceof Blob)return t.data.arrayBuffer().then(Zy).then(e);if(Qy&&(t.data instanceof ArrayBuffer||tb(t.data)))return e(Zy(t.data));jo(t,!1,r=>{Gl||(Gl=new TextEncoder),e(Gl.encode(r))})}var rb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Bo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<rb.length;t++)Bo[rb.charCodeAt(t)]=t;var ob=t=>{let e=t.length*.75,r=t.length,o,n=0,s,i,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);let l=new ArrayBuffer(e),f=new Uint8Array(l);for(o=0;o<r;o+=4)s=Bo[t.charCodeAt(o)],i=Bo[t.charCodeAt(o+1)],a=Bo[t.charCodeAt(o+2)],c=Bo[t.charCodeAt(o+3)],f[n++]=s<<2|i>>4,f[n++]=(i&15)<<4|a>>2,f[n++]=(a&3)<<6|c&63;return l};var M0=typeof ArrayBuffer=="function",Vo=(t,e)=>{if(typeof t!="string")return{type:"message",data:nb(t,e)};let r=t.charAt(0);return r==="b"?{type:"message",data:N0(t.substring(1),e)}:Mo[r]?t.length>1?{type:Mo[r],data:t.substring(1)}:{type:Mo[r]}:No},N0=(t,e)=>{if(M0){let r=ob(t);return nb(r,e)}else return{base64:!0,data:t}},nb=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var sb="",ib=(t,e)=>{let r=t.length,o=new Array(r),n=0;t.forEach((s,i)=>{jo(s,!1,a=>{o[i]=a,++n===r&&e(o.join(sb))})})},ab=(t,e)=>{let r=t.split(sb),o=[];for(let n=0;n<r.length;n++){let s=Vo(r[n],e);if(o.push(s),s.type==="error")break}return o};function cb(){return new TransformStream({transform(t,e){eb(t,r=>{let o=r.length,n;if(o<126)n=new Uint8Array(1),new DataView(n.buffer).setUint8(0,o);else if(o<65536){n=new Uint8Array(3);let s=new DataView(n.buffer);s.setUint8(0,126),s.setUint16(1,o)}else{n=new Uint8Array(9);let s=new DataView(n.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(o))}t.data&&typeof t.data!="string"&&(n[0]|=128),e.enqueue(n),e.enqueue(r)})}})}var Kl;function Qs(t){return t.reduce((e,r)=>e+r.length,0)}function ti(t,e){if(t[0].length===e)return t.shift();let r=new Uint8Array(e),o=0;for(let n=0;n<e;n++)r[n]=t[0][o++],o===t[0].length&&(t.shift(),o=0);return t.length&&o<t[0].length&&(t[0]=t[0].slice(o)),r}function lb(t,e){Kl||(Kl=new TextDecoder);let r=[],o=0,n=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(o===0){if(Qs(r)<1)break;let c=ti(r,1);s=(c[0]&128)===128,n=c[0]&127,n<126?o=3:n===126?o=1:o=2}else if(o===1){if(Qs(r)<2)break;let c=ti(r,2);n=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),o=3}else if(o===2){if(Qs(r)<8)break;let c=ti(r,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(No);break}n=f*Math.pow(2,32)+l.getUint32(4),o=3}else{if(Qs(r)<n)break;let c=ti(r,n);a.enqueue(Vo(s?c:Kl.decode(c),e)),o=0}if(n===0||n>t){a.enqueue(No);break}}}})}var Yl=4;function K(t){if(t)return j0(t)}function j0(t){for(var e in K.prototype)t[e]=K.prototype[e];return t}K.prototype.on=K.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};K.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};K.prototype.off=K.prototype.removeListener=K.prototype.removeAllListeners=K.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+t];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var o,n=0;n<r.length;n++)if(o=r[n],o===e||o.fn===e){r.splice(n,1);break}return r.length===0&&delete this._callbacks["$"+t],this};K.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],o=1;o<arguments.length;o++)e[o-1]=arguments[o];if(r){r=r.slice(0);for(var o=0,n=r.length;o<n;++o)r[o].apply(this,e)}return this};K.prototype.emitReserved=K.prototype.emit;K.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};K.prototype.hasListeners=function(t){return!!this.listeners(t).length};var ue=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),yt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),fb="arraybuffer";function ei(t,...e){return e.reduce((r,o)=>(t.hasOwnProperty(o)&&(r[o]=t[o]),r),{})}var B0=yt.setTimeout,V0=yt.clearTimeout;function pe(t,e){e.useNativeTimers?(t.setTimeoutFn=B0.bind(yt),t.clearTimeoutFn=V0.bind(yt)):(t.setTimeoutFn=yt.setTimeout.bind(yt),t.clearTimeoutFn=yt.clearTimeout.bind(yt))}var z0=1.33;function ub(t){return typeof t=="string"?U0(t):Math.ceil((t.byteLength||t.size)*z0)}function U0(t){let e=0,r=0;for(let o=0,n=t.length;o<n;o++)e=t.charCodeAt(o),e<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(o++,r+=4);return r}function ri(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function pb(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function db(t){let e={},r=t.split("&");for(let o=0,n=r.length;o<n;o++){let s=r[o].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}var oi=class extends Error{constructor(e,r,o){super(e),this.description=r,this.context=o,this.type="TransportError"}},de=class extends K{constructor(e){super(),this.writable=!1,pe(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,r,o){return super.emitReserved("error",new oi(e,r,o)),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 r=Vo(e,this.socket.binaryType);this.onPacket(r)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,r={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_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 r=pb(e);return r.length?"?"+r:""}};var zo=class extends de{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let r=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let o=0;this._polling&&(o++,this.once("pollComplete",function(){--o||r()})),this.writable||(o++,this.once("drain",function(){--o||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let r=o=>{if(this.readyState==="opening"&&o.type==="open"&&this.onOpen(),o.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(o)};ab(e,this.socket.binaryType).forEach(r),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,ib(e,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=ri()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var hb=!1;try{hb=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var gb=hb;function W0(){}var Xl=class extends zo{constructor(e){if(super(e),typeof location<"u"){let r=location.protocol==="https:",o=location.port;o||(o=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||o!==e.port}}doWrite(e,r){let o=this.request({method:"POST",data:e});o.on("success",r),o.on("error",(n,s)=>{this.onError("xhr post error",n,s)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(r,o)=>{this.onError("xhr poll error",r,o)}),this.pollXhr=e}},Oe=class t extends K{constructor(e,r,o){super(),this.createRequest=e,pe(this,o),this._opts=o,this._method=o.method||"GET",this._uri=r,this._data=o.data!==void 0?o.data:null,this._create()}_create(){var e;let r=ei(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let o=this._xhr=this.createRequest(r);try{o.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){o.setDisableHeaderCheck&&o.setDisableHeaderCheck(!0);for(let n in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(n)&&o.setRequestHeader(n,this._opts.extraHeaders[n])}}catch{}if(this._method==="POST")try{o.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{o.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(o),"withCredentials"in o&&(o.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(o.timeout=this._opts.requestTimeout),o.onreadystatechange=()=>{var n;o.readyState===3&&((n=this._opts.cookieJar)===null||n===void 0||n.parseCookies(o.getResponseHeader("set-cookie"))),o.readyState===4&&(o.status===200||o.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof o.status=="number"?o.status:0)},0))},o.send(this._data)}catch(n){this.setTimeoutFn(()=>{this._onError(n)},0);return}typeof document<"u"&&(this._index=t.requestsCount++,t.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=W0,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete t.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Oe.requestsCount=0;Oe.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",mb);else if(typeof addEventListener=="function"){let t="onpagehide"in yt?"pagehide":"unload";addEventListener(t,mb,!1)}}function mb(){for(let t in Oe.requests)Oe.requests.hasOwnProperty(t)&&Oe.requests[t].abort()}var H0=(function(){let t=yb({xdomain:!1});return t&&t.responseType!==null})(),Re=class extends Xl{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=H0&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Oe(yb,this.uri(),e)}};function yb(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||gb))return new XMLHttpRequest}catch{}if(!e)try{return new yt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var bb=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Jl=class extends de{get name(){return"websocket"}doOpen(){let e=this.uri(),r=this.opts.protocols,o=bb?{}:ei(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,r,o)}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 r=0;r<e.length;r++){let o=e[r],n=r===e.length-1;jo(o,this.supportsBinary,s=>{try{this.doWrite(o,s)}catch{}n&&ue(()=>{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",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=ri()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},Zl=yt.WebSocket||yt.MozWebSocket,Pe=class extends Jl{createSocket(e,r,o){return bb?new Zl(e,r,o):r?new Zl(e,r):new Zl(e)}doWrite(e,r){this.ws.send(r)}};var $r=class extends de{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 r=lb(Number.MAX_SAFE_INTEGER,this.socket.binaryType),o=e.readable.pipeThrough(r).getReader(),n=cb();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();let s=()=>{o.read().then(({done:a,value:c})=>{a||(this.onPacket(c),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(e){this.writable=!1;for(let r=0;r<e.length;r++){let o=e[r],n=r===e.length-1;this._writer.write(o).then(()=>{n&&ue(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var Ql={websocket:Pe,webtransport:$r,polling:Re};var q0=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,G0=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Fr(t){if(t.length>8e3)throw"URI too long";let e=t,r=t.indexOf("["),o=t.indexOf("]");r!=-1&&o!=-1&&(t=t.substring(0,r)+t.substring(r,o).replace(/:/g,";")+t.substring(o,t.length));let n=q0.exec(t||""),s={},i=14;for(;i--;)s[G0[i]]=n[i]||"";return r!=-1&&o!=-1&&(s.source=e,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=K0(s,s.path),s.queryKey=Y0(s,s.query),s}function K0(t,e){let r=/\/{2,9}/g,o=e.replace(r,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&o.splice(0,1),e.slice(-1)=="/"&&o.splice(o.length-1,1),o}function Y0(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(o,n,s){n&&(r[n]=s)}),r}var tf=typeof addEventListener=="function"&&typeof removeEventListener=="function",ni=[];tf&&addEventListener("offline",()=>{ni.forEach(t=>t())},!1);var Je=class t extends K{constructor(e,r){if(super(),this.binaryType=fb,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(r=e,e=null),e){let o=Fr(e);r.hostname=o.host,r.secure=o.protocol==="https"||o.protocol==="wss",r.port=o.port,o.query&&(r.query=o.query)}else r.host&&(r.hostname=Fr(r.host).host);pe(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(o=>{let n=o.prototype.name;this.transports.push(n),this._transportsByName[n]=o}),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=db(this.opts.query)),tf&&(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"})},ni.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=Yl,r.transport=e,this.id&&(r.sid=this.id);let o=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](o)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let e=this.opts.rememberUpgrade&&t.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(e);r.open(),this.setTransport(r)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.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",t.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.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=e.data,this._onError(r);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),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 e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let o=0;o<this.writeBuffer.length;o++){let n=this.writeBuffer[o].data;if(n&&(r+=ub(n)),o>0&&r>this._maxPayload)return this.writeBuffer.slice(0,o);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,ue(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,r,o){return this._sendPacket("message",e,r,o),this}send(e,r,o){return this._sendPacket("message",e,r,o),this}_sendPacket(e,r,o,n){if(typeof r=="function"&&(n=r,r=void 0),typeof o=="function"&&(n=o,o=null),this.readyState==="closing"||this.readyState==="closed")return;o=o||{},o.compress=o.compress!==!1;let s={type:e,data:r,options:o};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),n&&this.once("flush",n),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),e()},o=()=>{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?o():e()}):this.upgrading?o():e()),this}_onError(e){if(t.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,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(),tf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let o=ni.indexOf(this._offlineEventListener);o!==-1&&ni.splice(o,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};Je.protocol=Yl;var si=class extends Je{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 r=this.createTransport(e),o=!1;Je.priorWebsocketSuccess=!1;let n=()=>{o||(r.send([{type:"ping",data:"probe"}]),r.once("packet",p=>{if(!o)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Je.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{o||this.readyState!=="closed"&&(f(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let u=new Error("probe error");u.transport=r.name,this.emitReserved("upgradeError",u)}}))};function s(){o||(o=!0,f(),r.close(),r=null)}let i=p=>{let u=new Error("probe error: "+p);u.transport=r.name,s(),this.emitReserved("upgradeError",u)};function a(){i("transport closed")}function c(){i("socket closed")}function l(p){r&&p.name!==r.name&&s()}let f=()=>{r.removeListener("open",n),r.removeListener("error",i),r.removeListener("close",a),this.off("close",c),this.off("upgrading",l)};r.once("open",n),r.once("error",i),r.once("close",a),this.once("close",c),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{o||r.open()},200):r.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let r=[];for(let o=0;o<e.length;o++)~this.transports.indexOf(e[o])&&r.push(e[o]);return r}},Dr=class extends si{constructor(e,r={}){let o=typeof e=="object"?e:r;(!o.transports||o.transports&&typeof o.transports[0]=="string")&&(o.transports=(o.transports||["polling","websocket","webtransport"]).map(n=>Ql[n]).filter(n=>!!n)),super(e,o)}};var T$=Dr.protocol;function xb(t,e="",r){let o=t;r=r||typeof location<"u"&&location,t==null&&(t=r.protocol+"//"+r.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=r.protocol+t:t=r.host+t),/^(https?|wss?):\/\//.test(t)||(typeof r<"u"?t=r.protocol+"//"+t:t="https://"+t),o=Fr(t)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";let s=o.host.indexOf(":")!==-1?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+s+":"+o.port+e,o.href=o.protocol+"://"+s+(r&&r.port===o.port?"":":"+o.port),o}var cf={};$(cf,{Decoder:()=>sf,Encoder:()=>nf,PacketType:()=>F,isPacketValid:()=>mk,protocol:()=>Rb});var Z0=typeof ArrayBuffer=="function",J0=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Sb=Object.prototype.toString,Q0=typeof Blob=="function"||typeof Blob<"u"&&Sb.call(Blob)==="[object BlobConstructor]",tk=typeof File=="function"||typeof File<"u"&&Sb.call(File)==="[object FileConstructor]";function Wo(t){return Z0&&(t instanceof ArrayBuffer||J0(t))||Q0&&t instanceof Blob||tk&&t instanceof File}function Uo(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,o=t.length;r<o;r++)if(Uo(t[r]))return!0;return!1}if(Wo(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Uo(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&Uo(t[r]))return!0;return!1}function _b(t){let e=[],r=t.data,o=t;return o.data=ef(r,e),o.attachments=e.length,{packet:o,buffers:e}}function ef(t,e){if(!t)return t;if(Wo(t)){let r={_placeholder:!0,num:e.length};return e.push(t),r}else if(Array.isArray(t)){let r=new Array(t.length);for(let o=0;o<t.length;o++)r[o]=ef(t[o],e);return r}else if(typeof t=="object"&&!(t instanceof Date)){let r={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=ef(t[o],e));return r}return t}function wb(t,e){return t.data=rf(t.data,e),delete t.attachments,t}function rf(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=rf(t[r],e);else if(typeof t=="object")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=rf(t[r],e));return t}var Tb=ox(Eb(),1),of=(0,Tb.default)("socket.io-parser"),Ob=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Rb=5,F;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(F||(F={}));var nf=class{constructor(e){this.replacer=e}encode(e){return of("encoding packet %j",e),(e.type===F.EVENT||e.type===F.ACK)&&Uo(e)?this.encodeAsBinary({type:e.type===F.EVENT?F.BINARY_EVENT:F.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===F.BINARY_EVENT||e.type===F.BINARY_ACK)&&(r+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(r+=e.nsp+","),e.id!=null&&(r+=e.id),e.data!=null&&(r+=JSON.stringify(e.data,this.replacer)),of("encoded %j as %s",e,r),r}encodeAsBinary(e){let r=_b(e),o=this.encodeAsString(r.packet),n=r.buffers;return n.unshift(o),n}},sf=class t extends K{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e=="function"?{reviver:e}:e)}add(e){let r;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(e);let o=r.type===F.BINARY_EVENT;o||r.type===F.BINARY_ACK?(r.type=o?F.EVENT:F.ACK,this.reconstructor=new af(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Wo(e)||e.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(e),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: "+e)}decodeString(e){let r=0,o={type:Number(e.charAt(0))};if(F[o.type]===void 0)throw new Error("unknown packet type "+o.type);if(o.type===F.BINARY_EVENT||o.type===F.BINARY_ACK){let s=r+1;for(;e.charAt(++r)!=="-"&&r!=e.length;);let i=e.substring(s,r);if(i!=Number(i)||e.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!Pb(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");o.attachments=a}if(e.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(e.charAt(r)===","||r===e.length););o.nsp=e.substring(s,r)}else o.nsp="/";let n=e.charAt(r+1);if(n!==""&&Number(n)==n){let s=r+1;for(;++r;){let i=e.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===e.length)break}o.id=Number(e.substring(s,r+1))}if(e.charAt(++r)){let s=this.tryParse(e.substr(r));if(t.isPayloadValid(o.type,s))o.data=s;else throw new Error("invalid payload")}return of("decoded %s as %j",e,o),o}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,r){switch(e){case F.CONNECT:return ci(r);case F.DISCONNECT:return r===void 0;case F.CONNECT_ERROR:return typeof r=="string"||ci(r);case F.EVENT:case F.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&Ob.indexOf(r[0])===-1);case F.ACK:case F.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},af=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 r=wb(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function dk(t){return typeof t=="string"}var Pb=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function hk(t){return t===void 0||Pb(t)}function ci(t){return Object.prototype.toString.call(t)==="[object Object]"}function gk(t,e){switch(t){case F.CONNECT:return e===void 0||ci(e);case F.DISCONNECT:return e===void 0;case F.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&Ob.indexOf(e[0])===-1);case F.ACK:return Array.isArray(e);case F.CONNECT_ERROR:return typeof e=="string"||ci(e);default:return!1}}function mk(t){return dk(t.nsp)&&hk(t.id)&&gk(t.type,t.data)}function Et(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var yk=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),jr=class extends K{constructor(e,r,o){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=r,o&&o.auth&&(this.auth=o.auth),this._opts=Object.assign({},o),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Et(e,"open",this.onopen.bind(this)),Et(e,"packet",this.onpacket.bind(this)),Et(e,"error",this.onerror.bind(this)),Et(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,...r){var o,n,s;if(yk.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(r.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let i={type:F.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let f=this.ids++,p=r.pop();this._registerAckCallback(f,p),i.id=f}let a=(n=(o=this.io.engine)===null||o===void 0?void 0:o.transport)===null||n===void 0?void 0:n.writable,c=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,r){var o;let n=(o=this.flags.timeout)!==null&&o!==void 0?o:this._opts.ackTimeout;if(n===void 0){this.acks[e]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&this.sendBuffer.splice(a,1);r.call(this,new Error("operation has timed out"))},n),i=(...a)=>{this.io.clearTimeoutFn(s),r.apply(this,a)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...r){return new Promise((o,n)=>{let s=(i,a)=>i?n(i):o(a);s.withError=!0,r.push(s),this.emit(e,...r)})}_addToQueue(e){let r;typeof e[e.length-1]=="function"&&(r=e.pop());let o={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((n,...s)=>(this._queue[0],n!==null?o.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(n)):(this._queue.shift(),r&&r(null,...s)),o.pending=!1,this._drainQueue())),this._queue.push(o),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!e||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.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:F.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,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(o=>String(o.id)===e)){let o=this.acks[e];delete this.acks[e],o.withError&&o.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case F.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 F.EVENT:case F.BINARY_EVENT:this.onevent(e);break;case F.ACK:case F.BINARY_ACK:this.onack(e);break;case F.DISCONNECT:this.ondisconnect();break;case F.CONNECT_ERROR:this.destroy();let o=new Error(e.data.message);o.data=e.data.data,this.emitReserved("connect_error",o);break}}onevent(e){let r=e.data||[];e.id!=null&&r.push(this.ack(e.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let o of r)o.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 r=this,o=!1;return function(...n){o||(o=!0,r.packet({type:F.ACK,id:e,data:n}))}}onack(e){let r=this.acks[e.id];typeof r=="function"&&(delete this.acks[e.id],r.withError&&e.data.unshift(null),r.apply(this,e.data))}onconnect(e,r){this.id=e,this.recovered=r&&this._pid===r,this._pid=r,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:F.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 r=this._anyListeners;for(let o=0;o<r.length;o++)if(e===r[o])return r.splice(o,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 r=this._anyOutgoingListeners;for(let o=0;o<r.length;o++)if(e===r[o])return r.splice(o,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let o of r)o.apply(this,e.data)}}};function tr(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}tr.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-r:t+r}return Math.min(t,this.max)|0};tr.prototype.reset=function(){this.attempts=0};tr.prototype.setMin=function(t){this.ms=t};tr.prototype.setMax=function(t){this.max=t};tr.prototype.setJitter=function(t){this.jitter=t};var Br=class extends K{constructor(e,r){var o;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(r=e,e=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,pe(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((o=r.randomizationFactor)!==null&&o!==void 0?o:.5),this.backoff=new tr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=e;let n=r.parser||cf;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=r.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 r;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(r=this.backoff)===null||r===void 0||r.setMin(e),this)}randomizationFactor(e){var r;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(r=this.backoff)===null||r===void 0||r.setJitter(e),this)}reconnectionDelayMax(e){var r;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(r=this.backoff)===null||r===void 0||r.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 Dr(this.uri,this.opts);let r=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;let n=Et(r,"open",function(){o.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=Et(r,"error",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{n(),s(new Error("timeout")),r.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(n),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(Et(e,"ping",this.onping.bind(this)),Et(e,"data",this.ondata.bind(this)),Et(e,"error",this.onerror.bind(this)),Et(e,"close",this.onclose.bind(this)),Et(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(r){this.onclose("parse error",r)}}ondecoded(e){ue(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,r){let o=this.nsps[e];return o?this._autoConnect&&!o.active&&o.connect():(o=new jr(this,e,r),this.nsps[e]=o),o}_destroy(e){let r=Object.keys(this.nsps);for(let o of r)if(this.nsps[o].active)return;this._close()}_packet(e){let r=this.encoder.encode(e);for(let o=0;o<r.length;o++)this.engine.write(r[o],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,r){var o;this.cleanup(),(o=this.engine)===null||o===void 0||o.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,r),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 r=this.backoff.duration();this._reconnecting=!0;let o=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()}))},r);this.opts.autoUnref&&o.unref(),this.subs.push(()=>{this.clearTimeoutFn(o)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}};var Ho={};function Vr(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let r=xb(t,e.path||"/socket.io"),o=r.source,n=r.id,s=r.path,i=Ho[n]&&s in Ho[n].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Br(o,e):(Ho[n]||(Ho[n]=new Br(o,e)),c=Ho[n]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(Vr,{Manager:Br,Socket:jr,io:Vr,connect:Vr});T();var bk=new Set(["__proto__","constructor","prototype"]),Ib=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(bk.has(t[e]))return!1;return!0},xk=(t,e)=>{!t||!Ib(e)||e.reduce((r,o,n,s)=>{if(r&&o in r){if(n!==s.length-1)return r[o];delete r[o]}},t)},Sk=(t,e,r,o=!1)=>{!t||!Ib(e)||e.reduce((n,s,i,a)=>{if(n){if(i!==a.length-1)return!n[s]&&o&&(n[s]={}),n[s];n[s]=r}},t)},$b=(t,e)=>{let r=new Set;if(!Array.isArray(e))return r;for(let[o,n,s]of e)if(!(!Array.isArray(n)||!n.length))switch(r.add(n[0]),o){case"delete":xk(t,n);break;case"update":case"set":Sk(t,n,s,!0);break;default:break}return r};T();var Fb=(t,e,r)=>(o={})=>{let{data:n}=o,{schema:s}=o;n&&(n=t.call("deepDestringifyFunctions",n,Array.isArray(n)?[]:{}),Object.entries(n).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?Ae(a):sr(r[i],a):r[i]=a}),s&&(r.schema=s))},Db=(t,e,r)=>(o={})=>{let{changes:n}=o;if(!n||!Array.isArray(n)||!n.length)return;n=t.call("deepDestringifyFunctions",n,Array.isArray(n)?[]:{});let s=$b(r,n);if(s.has("state")&&e.update(r.state),["pages","components","snippets","functions","assets"].some(i=>s.has(i))){let{pathname:i,search:a,hash:c}=r.window.location;t.call("router",i+a+c,t.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&Ae(r.designSystem)};var _k={success:"green",error:"red",warning:"yellow"},Lb=(t,e,r)=>{if(t.symbols){if(!r.connected){r.notifications.connected={title:"Connected",message:"to the Symbols live server"},r.update({connected:!0});let o=setTimeout(()=>{delete r.notifications.connected,e.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(o)},3e3)}}else if(r.connected){r.notifications.connected={title:"Disconnected",type:"error"},r.update({connected:!1});let o=setTimeout(()=>{delete r.notifications.connected,e.notifications.content.connected&&e.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(o)},3e3)}},Mb={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:_k[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,r,o)=>{r.update({animation:"fadeInUp"})},onClick:(e,r,o)=>{delete o.notifications[r.key],r.update({animation:"fadeOutDown"}),o.onClose&&o.onClose(e,r,o)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var wk=!1,kk=()=>wk?"http://localhost:8080":"https://api.symbols.app",vk=t=>{let e=t&&t.editor&&t.editor.socketUrl||t&&t.settings&&t.settings.socketUrl;return typeof e=="string"&&e?{mode:"collab",baseUrl:e}:t&&t.editor&&t.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:{mode:null,baseUrl:null}},Ck=async t=>{try{let e=t||kk(),r=await k.fetch(`${e}/service-token`,{method:"GET"}),o;try{let n=await r.clone().json();if(n&&typeof n.token=="string")return n.token.trim();o=await r.text()}catch{o=await r.text()}return(o||"").replace(/\s+/gu,"")||void 0}catch(e){console.error("[sync] Failed to fetch service-token",e)}},Bb=(t,e,r,o)=>{t.on("snapshot",Fb(e,r,o)),t.on("ops",Db(e,r,o)),t.on("clients",n=>{o.editor?.verbose&&Lb(n,e,r)}),t.on("disconnect",n=>{o.editor?.verbose&&console.info("[sync] disconnected",n)})},Ak=async(t,e,r,o)=>{let n=await Ck(o);if(!n)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=Vr(o,{path:"/collab-socket",transports:["websocket"],auth:{token:n,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)")}),Bb(a,t,e,r),a},Ek=(t,e,r)=>{let o=Vr({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return o.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),Bb(o,t,e,r),o.on("reload",()=>{typeof k<"u"&&k.location&&k.location.reload()}),o},Tk=async(t,e,r)=>{let{mode:o,baseUrl:n}=vk(r);return o?o==="collab"?Ak(t,e,r,n):o==="runner"?Ek(t,e,r):null:null},Ok={onInit:Tk};var Vb=t=>typeof t>"u",Nb=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),jb=t=>t?.editor?.runtime==="runner",zb=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},Ub={name:"sync",beforeCreate(t,e){let r=e&&e.editor;(r&&!Vb(r.liveSync)?r.liveSync:Nb(e)||jb(e))&&(Nb(e)&&!jb(e)&&!e?.key||zb(t,Ok))}},Wb={name:"notifications",beforeCreate(t,e){if(!e)return;let r=Vb(e.notifications)?null:e.notifications,o=e.editor&&e.editor.verbose===!0;(r===!0||r!==!1&&o)&&zb(t,Mb)}};T();function Hb(t){return _(t)?t:E(t)?t.find(e=>_(e)):""}function ff(t){if(!t)return;let e=t.__ref.__componentKey,r=t.extends&&Hb(t.extends),o=t.parent&&t.parent.childExtends&&Hb(t.parent.childExtends);return(e||r||o||"").split("_")[0].split(".")[0].split("+")[0]}function li(t){if(!t||!t.__ref)return;let{components:e,pages:r,editor:o}=t.context,n=ff(t);return o&&o.onInitInspect&&!o.onInitInspect(n,t,t.state)?li(t.parent):n&&(e[n]||r[n])?t:li(t.parent)}var Rk=(t,e,r)=>{let o=r.window||window;o.onkeydown=n=>{n.altKey&&n.shiftKey&&t.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},o.onkeyup=n=>{t.state.preventSelect&&(!n.altKey||!n.shiftKey)&&(t.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),t.Inspector.state.update({area:!1}))}},lf={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:Rk,onMousemove:(t,e,r)=>{let o=t.target.ref,n=li(o),s=e.Inspector.state;if(!n||!r.debugging||!n.__ref)return s.update({area:!1});let i=ff(n),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:p,height:u}=n.node.getBoundingClientRect(),d={x:l,y:f,width:p,height:u};if(!s.area)return a(d);s.area.x!==d.x&&a(d)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{c(),window.requestAnimationFrame(c)})},onMousedown:(t,e,r)=>{if(!r.debugging)return;let o=t.target.ref,n=li(o);if(!n)return;let s=ff(n);if(!s)return;let i=o.context.editor;if(i&&i.onInspect)return i.onInspect(s,o,o.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return o.context.socket?.emit&&o.context.socket.emit("route",a),t.preventDefault(),t.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(t,e)=>!(e.area&&e.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:t})=>{let{components:e}=t;if(S(e)){let{Content:r,...o}=e;for(let n in o)Co[n]||(o[n].__ref||(o[n].__ref={}),o[n].__ref.__componentKey||(o[n].__ref.__componentKey=n))}},onBeforeUpdate:(t,e,r)=>{let{area:o}=r,n=r.area&&r.parent.debugging,s;if(!n)s="display: none !important";else if(o){let{x:i,y:a,width:c,height:l}=o;s=`
70
+ `)}var Xm={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 Ym(t,e){let r=Xm[t]||Ce(t),n=An(e),o=`_${r}-${n}`,s=Tr(t),i=`.${o}{${s}: ${e}}`;return`${o}
71
+ ${i}`}var Zm=t=>typeof t=="string"&&(t.indexOf("{")!==-1||t.indexOf("}")!==-1);function Jm(t){let e=t.split("\0"),r=[],n=[];for(let o=0;o+1<e.length;o+=2){let s=e[o],i=e[o+1];if(!i||Zm(i))continue;let a=Xm[s]||Ce(s),c=An(i),l=`_${a}-${c}`,f=Tr(s);r.push(l),n.push(`.${l}{${f}:${i}}`)}return r.join(" ")+"\0"+n.join(`
72
+ `)}function Qm(t,e){let r=t+e,n=`_c${Ce(r)}`,o=e.split("\0"),s="";for(let a=0;a+1<o.length;a+=2){let c=o[a],l=o[a+1];l&&(Zm(l)||(s+=`${Tr(c)}:${l};`))}let i;if(t.startsWith("@media"))i=`${t}{.${n}{${s}}}`;else if(t.startsWith(":")||t.startsWith("&")){let a=t.startsWith("&")?t.slice(1):t;i=`.${n}${a}{${s}}`}else t.includes("&")?i=`${t.replace("&",`.${n}`)}{${s}}`:i=`.${n} ${t}{${s}}`;return`${n}
73
+ ${i}`}var Sl=null;function _l(t){Sl=t}var qt={structuralHash:Ds,deepEqual:Ls,mergeStructural:bl,overwriteDeep:xl,shortHash:Ce,toKebab:Tr,sanitizeValue:An,batchShortHash:Km,atomicCssClass:Ym,batchAtomicCss:Jm,compoundCssClass:Qm},ty=!1,Ms=null;function Vw(t){return Ms||(Ms=import(t||"@symbo.ls/wasm/pkg").then(e=>(e.structuralHash&&(qt.structuralHash=e.structuralHash),e.deepEqual&&(qt.deepEqual=e.deepEqual),e.mergeStructural&&(qt.mergeStructural=e.mergeStructural),e.overwriteDeep&&(qt.overwriteDeep=e.overwriteDeep),e.shortHash&&(qt.shortHash=e.shortHash),e.toKebab&&(qt.toKebab=e.toKebab),e.sanitizeValue&&(qt.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(qt.batchShortHash=e.batchShortHash),e.atomicCssClass&&(qt.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(qt.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(qt.compoundCssClass=e.compoundCssClass),ty=!0,Sl&&e.batchAtomicCss&&Sl({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),Ms)}function zw(){return ty}O();var En={};$(En,{CDN_PROVIDERS:()=>Zt,DOMQL_EVENTS:()=>zf,DOMQ_PROPERTIES:()=>Fe,ENV:()=>iu,HTML_TAGS:()=>en,METHODS:()=>Zr,METHODS_EXL:()=>no,NODE_ENV:()=>Kt,OPTIONS:()=>Oo,PACKAGE_MANAGER_TO_CDN:()=>Ue,PARSED_DOMQ_PROPERTIES:()=>ro,PROPS_METHODS:()=>Le,STATE_METHODS:()=>De,STATE_PROPERTIES:()=>Vf,SVG_TAGS:()=>Eu,TYPES:()=>Zn,UNIVERSAL_RESERVED_KEYS:()=>wa,addCaching:()=>ea,addContext:()=>ta,addExtend:()=>Fu,addExtends:()=>Et,addItemAfterEveryElement:()=>Tf,addProtoToArray:()=>to,addRef:()=>Zi,applyCSS:()=>ny,applyDependentState:()=>rp,applyEvent:()=>aa,applyEventUpdate:()=>ca,applyExtends:()=>Lu,applyProps:()=>ko,arrayContainsOtherArray:()=>_f,arraysEqual:()=>Rf,arrayzeValue:()=>fr,buildImgSrcset:()=>rs,buildSourcesAndImg:()=>ns,cache:()=>lp,call:()=>Bp,captureSnapshot:()=>Wp,checkForStateTypes:()=>Ju,checkIfInherits:()=>ia,checkIfStringIsInArray:()=>$f,clone:()=>qf,cloneAndMergeArrayExtend:()=>ho,cloneFunction:()=>hu,concatAddExtends:()=>Ru,copyJavaScriptToClipboard:()=>vd,copyStringToClipboard:()=>kd,createBasedOnType:()=>Yi,createElement:()=>Yu,createElementExtends:()=>Di,createExtends:()=>mo,createExtendsFromKeys:()=>rn,createExtendsStack:()=>ji,createIfConditionFlag:()=>gu,createInheritedState:()=>Qu,createKey:()=>fo,createNestedObject:()=>Qf,createNestedObjectByKeyPath:()=>ep,createObjectWithoutPrototype:()=>Ai,createParent:()=>Ji,createPath:()=>Qi,createProps:()=>vo,createPropsStack:()=>Gi,createRoot:()=>Xu,createScope:()=>sp,createSnapshotId:()=>lo,customDecodeURIComponent:()=>Bf,customEncodeURIComponent:()=>jf,cutArrayAfterValue:()=>Af,cutArrayBeforeValue:()=>Cf,debounce:()=>po,debounceOnContext:()=>uu,decodeNewlines:()=>Nf,deepClone:()=>Q,deepContains:()=>Zf,deepDefaults:()=>Jo,deepDestringifyFunctions:()=>jt,deepExtend:()=>Fi,deepMerge:()=>G,deepMergeExtends:()=>ae,deepStringifyFunctions:()=>oo,defineSetter:()=>Np,destringifyGlobalScope:()=>io,detectHeightOnInit:()=>td,detectInfiniteLoop:()=>nu,document:()=>X,encodeNewlines:()=>Mf,error:()=>lr,excludeKeysFromObject:()=>su,exec:()=>Y,extendCachedRegistry:()=>Pu,extendStackRegistry:()=>yo,extractArrayExtend:()=>xo,fetchLibraryData:()=>va,fibonacciNumberByIndex:()=>rd,filterArrays:()=>Pf,filterArraysFast:()=>If,finalizeExtends:()=>Bi,findClosestNumber:()=>ka,findClosestNumberInFactory:()=>yd,findInheritedState:()=>sa,findKeyPosition:()=>Df,flattenExtend:()=>nn,formatDate:()=>Jp,generateHash:()=>Pi,generateKey:()=>co,generateMetaTags:()=>hd,get:()=>Fp,getActiveRoute:()=>sl,getCDNUrl:()=>Jt,getCapitalCaseKeys:()=>Mu,getCdnProviderFromConfig:()=>hn,getChildStateInKey:()=>oa,getChildren:()=>Mo,getContext:()=>Wo,getCookie:()=>wu,getDB:()=>Xo,getEmotionStylesheet:()=>Od,getExtendsInElement:()=>Du,getExtendsStack:()=>go,getExtendsStackRegistry:()=>$i,getFrequencyInArray:()=>wf,getHashedExtend:()=>bo,getImportMapScript:()=>Yp,getInObjectByPath:()=>ru,getLocalStorage:()=>vu,getNev:()=>fu,getPageMetadata:()=>gd,getParentStateInKey:()=>na,getPath:()=>No,getQuery:()=>Yo,getRef:()=>Lp,getRoot:()=>Vo,getRootContext:()=>Uo,getRootData:()=>zo,getRootState:()=>Bo,getRootStateInKey:()=>ra,getSpreadChildren:()=>Nu,global:()=>bf,hasFunction:()=>Jr,hasHandlerPlugin:()=>Qr,hasOwnProperty:()=>Kf,inheritChildExtends:()=>Mi,inheritChildPropsExtends:()=>Li,inheritParentProps:()=>Co,inheritRecursiveChildExtends:()=>Ni,init:()=>Ae,initProps:()=>qu,is:()=>Ct,isArray:()=>E,isBoolean:()=>_i,isContextComponent:()=>ju,isCyclic:()=>ou,isDOMNode:()=>kt,isDate:()=>ki,isDefined:()=>vt,isDevelopment:()=>je,isEmpty:()=>vi,isEmptyObject:()=>Xf,isEqualDeep:()=>Ci,isFunction:()=>C,isHtmlElement:()=>Yn,isLocal:()=>lu,isMethod:()=>zp,isMobile:()=>Su,isNode:()=>he,isNot:()=>Sf,isNotProduction:()=>ir,isNull:()=>wi,isNumber:()=>se,isObject:()=>_,isObjectLike:()=>N,isPhoto:()=>od,isProduction:()=>Ne,isStaging:()=>cu,isState:()=>tp,isString:()=>w,isStringFunction:()=>du,isTest:()=>Ei,isTesting:()=>au,isUndefined:()=>ht,isUniversallyReservedKey:()=>qp,isValidHtmlTag:()=>Tu,joinArrays:()=>Gr,jointStacks:()=>$u,keys:()=>Sa,lastLevel:()=>Fs,lastPathname:()=>$s,loadCssFile:()=>ld,loadJavascript:()=>fd,loadJavascriptFile:()=>id,loadJavascriptFileEmbedSync:()=>cd,loadJavascriptFileSync:()=>ad,loadRemoteCSS:()=>ud,loadRemoteScript:()=>gn,log:()=>jp,logGroupIf:()=>bu,logIf:()=>yu,lookdown:()=>Pp,lookdownAll:()=>Ip,lookup:()=>Rp,lowercaseFirstLetter:()=>nr,makeObjectWithoutPrototype:()=>Yf,map:()=>Wf,mapStringsWithContextComponents:()=>So,matchRoute:()=>rl,matchesComponentNaming:()=>ce,memoize:()=>pu,merge:()=>et,mergeSharedLibraries:()=>Qo,nextElement:()=>qo,normalizeLibraryKey:()=>mn,objectToString:()=>so,objectizeStringProperty:()=>wo,overwrite:()=>ao,overwriteDeep:()=>At,overwriteShallow:()=>sr,overwriteState:()=>np,parse:()=>_a,parseDeep:()=>Do,parseQuery:()=>nl,parseRoutePattern:()=>el,pickupElementFromProps:()=>Wi,pickupPropsFromElement:()=>Ui,previousElement:()=>Go,propExists:()=>Hu,propertizeElement:()=>Hi,propertizeUpdate:()=>Wu,reinit:()=>ry,remove:()=>$p,removeChars:()=>Cd,removeCookie:()=>ku,removeDuplicateProps:()=>Eo,removeDuplicatesInArray:()=>Kr,removeFromArray:()=>kf,removeFromObject:()=>Jf,removeNestedKeyByPath:()=>tu,removeValueFromArray:()=>Qn,removeValueFromArrayAll:()=>Ef,reorderArrayByValues:()=>Of,replaceLiteralsWithObjectFields:()=>rr,replaceOctalEscapeSequences:()=>Lf,resolveAsset:()=>Tt,resolveHandler:()=>tn,resolveSharedLibraries:()=>_d,returnValueAsText:()=>Xi,router:()=>re,runGuards:()=>ol,runPluginHook:()=>Xt,scratchSystem:()=>hs,scratchUtils:()=>gr,self:()=>xf,set:()=>wn,setActiveRootState:()=>jo,setCookie:()=>_u,setHashedExtend:()=>Ii,setInObjectByPath:()=>eu,setLocalStorage:()=>Cu,setNodeStyles:()=>xa,setProps:()=>Dp,setPropsPrototype:()=>Ao,spotByPath:()=>Lo,srcsetFor:()=>yn,stringIncludesAny:()=>eo,stringToObject:()=>Gf,swapItemsInArray:()=>vf,syncProps:()=>To,toCamelCase:()=>ts,toDashCase:()=>es,toDescriptionCase:()=>Ed,toTitleCase:()=>Ad,toggleFullscreen:()=>Kp,triggerEventOn:()=>Be,triggerEventOnUpdate:()=>cp,trimStringFromSymbols:()=>Ff,unstackArrayOfObjects:()=>Jn,update:()=>qi,updateProps:()=>Gu,variables:()=>Ko,verbose:()=>dn,warn:()=>Ho,window:()=>k});O();O();var Uw=A(),ey=(t=Uw,e)=>{let r=_(e.localFile)?e.localFile:{},n=Q(r.designSystem||{});return G(t,n)},Ww={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Ae=(t,e=Ww)=>{let r=ey(t||{},e),n=e.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=e.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(s=m)}let i=wn({verbose:e.verbose,useReset:e.useReset,useFontImport:e.useFontImport,useVariable:e.useVariable,useSvgSprite:e.useSvgSprite,useDocumentTheme:e.useDocumentTheme,useIconSprite:e.useIconSprite,useDefaultConfig:e.useDefaultConfig,globalTheme:s,themeRoot:e.themeRoot,files:e.files,assets:e.assets,...r},{newConfig:e.newConfig,config:e.config});i&&(i.scopeSelector=n);let a=Aa(i.font,i.files),c=i.useReset,l=i.useVariable,f=i.useFontImport,p=i.useSvgSprite,u=t.svg,d=i.useIconSprite,h=t.icons;if(f&&at(a),l&&(at({[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];at(m)}c&&at(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];at(m)}return(u||p)&&rc(i.svg,{document:e.document}),(h||d)&&oc(i.icons,{document:e.document}),i},Ns={},ry=(t,e=Ns)=>{let r=ey(t||{},e),n=e.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=wn({verbose:!1,...r});if(!e.preventInject){if(at({[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];at(i)}at(s.reset)}return s},ny=(t,e=Ns)=>{at(t)},aI=(t,e=Ns)=>{let r=e.scopeSelector||":root",n=r===":root"?":root:not([data-theme])":`${r}:not([data-theme])`;if(at({[r]:t.CSS_VARS}),t.CSS_MEDIA_VARS){let o={};for(let s in t.CSS_MEDIA_VARS)s.startsWith("@media")?o[s]={[n]:t.CSS_MEDIA_VARS[s]}:o[s]=t.CSS_MEDIA_VARS[s];at(o)}};var cI=(t,e=Ns)=>{};O();var oy=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,wl={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},sy=(t,e)=>{if(!e)return t;let r=Array.isArray(e)?e:e.split("."),n=t;for(let o of r){if(!n||!n[o])return null;n=n[o]}return n},iy=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=wl:e.router=et(e.router||{},wl);let r=e.router,n=async(s,i)=>{let a=s.context?.window||k;if(!a.location)return;let{pathname:c,search:l,hash:f}=a.location;c=oy(c);let p=c+l+f,u=s;if(r.customRouterElement){let d=sy(s,r.customRouterElement);d&&(u=d,s.routes&&(u.routes=s.routes))}u.routes&&await re(p,u,{},{initialRender:!0,pushState:!1})},o=!ht(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.onRenderRouter=n),Hw(e,r),r},kl=(t,e)=>{if(e.router===!1)return;let r=e.router||wl;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:re,o=e.window||k,s=async i=>{let{pathname:a,search:c,hash:l}=o.location;a=oy(a);let f=a+c+l,p=t;if(r.customRouterElement){let u=sy(t,r.customRouterElement);u&&(p=u,t.routes&&(p.routes=t.routes))}await p.call("router",f,p,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};o.addEventListener("popstate",s),e.__teardowns=e.__teardowns||[],e.__teardowns.push(()=>o.removeEventListener("popstate",s))},Hw=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return G(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};O();var vl=k&&k.location?k.location.host.includes("dev."):je(),ay=vl?"http://localhost:8080/get":"https://api.symbols.app/get",qw={endpoint:ay},cy=async(t,e=qw)=>{let r=e.endpoint||ay,n=e.serviceRoute?E(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",o;try{return o=await globalThis.fetch(r+"/?"+n,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await o.json()}catch(s){if(C(e.onError))return e.onError(s);console.error(s)}},Gw=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await cy(t,r),o=vl||e.isDevelopment?jt(n):jt(n.releases[0]);r.serviceRoute?E(r.serviceRoute)?r.serviceRoute.forEach(s=>{At(e[s],o[s.toLowerCase()])}):At(e[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{At(e[s],o[s.toLowerCase()])})}return e},Kw=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await cy(t,n),s=vl||e.isDevelopment?jt(o):jt(o.releases[0]);r(s)}},ly=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await Gw(t,e)}catch(r){console.error(r)}},fy=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&Kw(e,r,n||(o=>{let s=o.designSystem;_(s)&&r.utils.init(s),_(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};var js=t=>{if(!t||t.__destroyed)return!1;let e=t.context;if(!e)return t.__destroyed=!0,!1;if(Array.isArray(e.__teardowns)){for(let r of e.__teardowns)try{r()}catch(n){console.error("[smbls] destroy teardown error:",n)}e.__teardowns.length=0}try{kr(t)}catch(r){console.error("[smbls] dispose error:",r)}if(e.fetch&&e.fetch.__resolved&&delete e.fetch.__resolved,e.fetch&&e.fetch.__resolving&&delete e.fetch.__resolving,e.db&&e.db.__resolved&&delete e.db.__resolved,e.db&&e.db.__resolving&&delete e.db.__resolving,e.analyze?.destroy)try{e.analyze.destroy()}catch(r){console.error("[analyze] destroy error:",r)}return t.__destroyed=!0,!0};O();var Xw={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"}},Yw=t=>{if(t.tag==="link")return`link[${t.attr}="${t.key}"]`;if(t.tag&&!t.attr&&!t.key)return t.tag;if(t.tag&&t.attr&&t.key)return`${t.tag}[${t.attr}="${t.key}"]`},Bs=(t,e,r)=>{if(!t)return{};let n=C(t)?Y(t,e,r):{...t};if(!_(n))return{};for(let o in n){let s=n[o];C(s)&&(s=Y(s,e,r)),w(s)&&s.includes("{{")&&e?.call&&(s=e.call("replaceLiteralsWithObjectFields",s,r)),n[o]=s}return n};var Zw=(t,e)=>{let r=e.createElement(t.tag);return t.attr&&r.setAttribute(t.attr,t.key),(e.head||e.querySelector("head")).appendChild(r),r},Vs=(t,e)=>{if(!(!_(t)||!e))for(let r in t){let n=t[r];if(n==null)continue;let o=Xw[r];if(!o)continue;let s=Yw(o),i=e.querySelector(s)||Zw(o,e);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}};var uy={name:"helmet",create(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Bs(e,t,t.state);Vs(n,r)},update(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Bs(e,t,t.state);Vs(n,r)}};ze();var py=(t,e,r,n)=>{t&&un(t,e,r,n)},dy=(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<"u"&&document;if(!n)return;let o=Bs(t,e,r);Vs(o,n)},hy=async(t,e)=>{if(!t)return;let r={tag:"fragment",...t},n=async()=>{await e.set(r,{preventDefineUpdate:"$router"})};return e.lazyLoad?window.requestAnimationFrame(n):await n(),r},Tn={routes:t=>t,metadata:dy,fetch:py,$router:hy},Jw=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=dy),t.fetch!==!1&&(e.fetch=py),t.router!==!1&&(e.$router=hy),e};var gy={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},Cl={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},zs={...gy,router:Cl},Qw={state:{},pages:{},components:{},router:Cl,define:Tn},Ee=Qw;O();O();var my=(t,e)=>N(t.extends)?t.extends:[];O();var Sy=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let r=typeof document<"u"?document:e.document;t.document=t.document||r;let n=t.window;return n&&n!==e&&typeof n.URL!="function"?(typeof console<"u"&&console.warn&&console.warn("[smbls/router] context.window lacks URL, falling back to globalThis \u2014 passed-in window may be a stub"),t.window=e):t.window=n||e,t.window},yy=(t="smbls")=>{let e={};for(let r in Er)Object.prototype.hasOwnProperty.call(Er,r)&&(ce(r)?e[`smbls.${r}`]=Er[r]:e[r]=Er[r]);return e},_y=t=>t.components?{...yy(),...t.components}:yy(),wy=t=>({...En,...il,...gr,...t.utils,...t.snippets,...t.functions}),ky=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),by={},vy=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=Ue[s]||hn(i)||"esmsh"),!t)return null;let a=!1;for(let c in t){a=!0;break}if(!a)return null;for(let c in t){let l=t[c];if(e&&e[c])continue;let f=je()&&n?`?${Math.random()}`:"",p=Jt(c,l,o)+f;try{if(by[c])continue;by[c]=!0,await Promise.race([gn(p,{document:r,type:"module"}),new Promise((u,d)=>setTimeout(()=>d(new Error(`Timeout loading ${c}`)),1e4))])}catch(u){if(console.error(`Failed to load ${c} from ${o}:`,u),o!=="symbols")try{let d=Jt(c,l,"symbols")+f;await Promise.race([gn(d,{document:r}),new Promise((h,g)=>setTimeout(()=>g(new Error(`Timeout fallback ${c}`)),2e4))]),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(d){console.error(`Failed to load ${c} from fallback:`,d)}}}return t},Cy=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||hn(e.symbolsConfig)||"esmsh",o=async i=>async(a,c)=>{let f=(i.window||window).packages[a];return typeof f=="function"?f():f},s=async i=>async(a,c=n)=>{let{dependenciesOnDemand:l}=i,f=i.document||document,p=i.window||window;if(!p.packages[a]){let u=je()?`?${Math.random()}`:"";if(l&&l[a]){let d=l[a],h=Jt(a,d,c)+u;try{await i.utils.loadRemoteScript(h,{window:p,document:f})}catch(g){if(console.error(`Failed to load ${a} from ${c}:`,g),c!=="symbols"){let m=Jt(a,d,"symbols")+u;await i.utils.loadRemoteScript(m,{window:p,document:f})}}}else{let d=Jt(a,"latest",c)+u;try{await i.utils.loadRemoteScript(d,{window:p,document:f})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let g=Jt(a,"latest","symbols")+u;await i.utils.loadRemoteScript(g,{window:p,document:f})}}p.packages[a]="loadedOnDeman"}}return await p.require(a,c)};r.packages?r.packages=et(r.packages,t):r.packages=t,r.require||(e.utils.require=await o(e),r.require=e.utils.require),r.requireOnDemand||(e.utils.requireOnDemand=await s(e),r.requireOnDemand=e.utils.requireOnDemand)},t0=/\s+/g,Ay=(t,e)=>typeof t=="function"?t(e,e?.state,e?.context):t,e0=(t,e)=>{let r="";for(let n in t){let o=t[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${Ay(o,e)}`)}return r},r0=(t,e,r)=>{if(!t)return;let{key:n}=e;t===!0&&(t=e.classlist={key:n}),typeof t=="string"&&(t=e.classlist={default:t}),t!==null&&typeof t=="object"&&!Array.isArray(t)&&(t=e0(t,e));let o=t.replace(t0," ").trim();if(r&&typeof r.setAttribute=="function")r.setAttribute("class",o);else if(r)try{r.className=o}catch{}return o},n0=()=>(t,e,r)=>{let n=Ay(t,e);if(t){let{__ref:o}=e;o.__class.style=n}Ey()(e.classlist,e,e.state,!0)},Ey=()=>(t,e,r,n)=>{if(e.style&&!n)return;let{__ref:o}=e,{__class:s,__classNames:i}=o;if(!(t===null||typeof t!="object"||Array.isArray(t))){e.class&&(i.classProps=e.class),e.attr?.class&&(i.class=e.attr.class);for(let a in s){let c=s[a];if(!c){delete i[a];continue}let l;typeof c=="string"||typeof c=="number"?l=c:typeof c=="boolean"?l=e.key:l=Xe(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];e.node&&r0(i,e,e.node)}},o0=()=>({style:n0(),classlist:Ey()}),s0=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],xy=!1,Ty=(t,e)=>{let r=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,n=e.initOptions||{},o=e.registry||o0(),s=e.designSystem?G(Q(e.designSystem),Ts):Q(Ts),i={};for(let d of s0)e[d]!==void 0&&(i[d]=e[d]);let a,c=xy&&!e.skipDesignSystemInit,l=c?`[data-smbls-app="${t}"]`:":root";e.scopeSelector=l;let f=l===":root"?":root:not([data-theme])":`${l}:not([data-theme])`;if(e.skipDesignSystemInit){if(a=A(t)||A(),a&&(a.document=r),a?.CSS_VARS){ut(a);try{if(at({[l]:a.CSS_VARS}),a.CSS_MEDIA_VARS){let d={};for(let h in a.CSS_MEDIA_VARS)h.startsWith("@media")?d[h]={[f]:a.CSS_MEDIA_VARS[h]}:d[h]=a.CSS_MEDIA_VARS[h];at(d)}}finally{it()}}}else if(c){let d=qd(t,s,{cleanBase:!0});for(let g in i)d[g]=i[g];d.document=r;let h=t.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);e.cssPrefix=h,d.varPrefix=h,ut(d);try{a=Ae(d,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:l,...zs,...i,...n})}finally{it()}}else{let d=A();d&&(d.document=r),a=Ae(s,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:l,...zs,...i,...n}),a&&a!==d&&(a.document=r),xy=!0}let p=a?.CONFIG||a,u=p?.font;if(u){ut(p);try{for(let d in u){let h=u[d];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")&&at(`@font-face { ${m} }`)}}finally{it()}}return[a,o]},Oy=(t,e)=>{let r={};e.state&&G(r,e.state),t&&t.state&&G(r,t.state);let n=e.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 c in i)r[c]=i[c];let a=new Set(n.languages||[]);for(let c in n.translations)!a.has(c)&&r[c]===void 0&&(r[c]=n.translations[c])}return r.isRootState=!0,Q(r)},Ry=(t,e)=>{_(t.routes)&&_(e.pages)&&et(t.routes,e.pages);let r=t.routes||e.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},Py=t=>{Qo(t,t.sharedLibraries)};O();var $y="smbls_lang",i0="smbls_t_",a0="smbls_tv_",Or={get(t){try{return window?.localStorage.getItem(t)}catch{return null}},set(t,e){try{window?.localStorage.setItem(t,e)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(t){try{window?.localStorage.removeItem(t)}catch(e){console.warn("[polyglot] localStorage unavailable:",e.message)}}},On={};function Ws(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||e?.defaultLang||"en"}function Al(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var Us=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let r=e.split("."),n=t;for(let o=0;o<r.length;o++){if(n==null)return;n=n[r[o]]}return n},Iy=(t,e,r)=>{let n=e.lastIndexOf(".");if(n===-1)return t[e+"_"+r];let o=Us(t,e.substring(0,n));if(o!=null)return o[e.substring(n+1)+"_"+r]};function El(t,e){if(!t)return"";let r=this?.context,n=r?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let l=Iy(s,t,o);if(l!==void 0)return l}if(n?.translations){let l=n.translations[o];if(l){let f=Us(l,t);if(f!==void 0)return f}}let a=(s?.root||r?.state?.root)?.translations;if(a){let l=a[o];if(l){let f=Us(l,t);if(f!==void 0)return f}}let c=n?.defaultLang||"en";if(s){let l=Iy(s,t,c);if(l!==void 0)return l}if(n?.translations){let l=n.translations[c];if(l){let f=Us(l,t);if(f!==void 0)return f}}return t}async function Tl(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!r||!n)return;let o=r.storagePrefix||i0,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):a0);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!n.translations?.[t]){let c=Or.get(o+t);if(c)try{let l=JSON.parse(c),f={translations:{...n.translations||{}}};f.translations[t]=l,n.update&&n.update(f)}catch(l){console.warn("[polyglot] Failed to apply language update:",l.message)}}let i=(r.storagePrefix||"smbls")+":"+t;if(On[i])return On[i];let a=this;return On[i]=(async()=>{try{let c=r.fetch,l=parseInt(Or.get(s+t),10)||0,f,p,u;if(C(c)){let h=await c(t,l,a);if(!h||h.changed===!1)return;f=h.translations||h.data||h,p=h.version||0,u=!0}else if(_(c)){let h=a.getDB||(()=>e.fetch),g=C(h)?await h.call(a):e.fetch;if(!g)return;let m=c.rpc||c.from||"get_translations_if_changed",y={p_lang:t,p_cached_version:l,...c.params||{}},b=await g.rpc({from:m,params:y});if(b.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,b.error;let x=b.data;if(!x||!x.changed)return;f=x.translations||{},p=x.version||0,u=!0}else return;if(!u||!f)return;Or.set(o+t,JSON.stringify(f)),p&&Or.set(s+t,String(p));let d={translations:{...n.translations||{}}};d.translations[t]=f,n.update&&n.update(d)}catch(c){if(r.verbose!==!1){let l=c?.message||c?.details||(typeof c=="object"?JSON.stringify(c):String(c));console.warn("[polyglot] Failed to load translations for",t,"-",l)}}finally{delete On[i]}})(),On[i]}async function Ol(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!n||this.call("getActiveLang")===t)return;let o=r?.storageLangKey||$y;Or.set(o,t),r?.fetch&&await this.call("loadTranslations",t),e?.state&&(e.state.lang=t);let s=r?.translations?.[t],i={lang:t};if(s&&typeof s=="object")for(let c in s){let l=s[c];(Array.isArray(l)||typeof l=="string"||typeof l=="number")&&(i[c]=l)}if(n.update&&n.update(i),s&&typeof s=="object")for(let c in s){let l=s[c];if(l&&typeof l=="object"&&!Array.isArray(l)&&n[c]&&typeof n[c]=="object"&&!Array.isArray(n[c]))for(let f in l)n[c][f]=l[f]}let a=this?.context?.document||globalThis.document;if(a&&s){let c=a.querySelectorAll("[data-key]");for(let l of c){let f=l.ref;if(!f)continue;let p=f.__ref?.__exec?.text;if(typeof p=="string"&&p.includes("{{"))try{let u=f.call("replaceLiteralsWithObjectFields",p,f.state);u!=null&&l.textContent!==u&&(l.textContent=u)}catch{}}}}async function Rl(t,e,r){let n=this?.context,o=n?.polyglot,s=this?.state?.root||n?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=r),o?.translations?.[e]&&(o.translations[e][t]=r),o?.fetch&&_(o.fetch)){let i=this.getDB||(()=>n.fetch),a=C(i)?await i.call(this):n.fetch;if(!a)return;let c=o.fetch.table||"translations",l=await a.upsert({from:c,data:{key:t,lang:e,text:r}});if(l?.error)throw l.error;return l.data}}async function Fy(){let t=this?.context,e=t?.polyglot;if(!e)return;let r=this?.state?.root||t?.state?.root;if(!r)return;let n=e.storageLangKey||$y,s=Or.get(n)||e.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&!(e.translations&&e.translations[s])&&await this.call("loadTranslations",s)}function Pl(t){try{let e=this?.context?.polyglot,n=(this?.state?.root||this?.context?.state?.root)?.lang||e?.defaultLang||"en",o=this?.state;if(!o)return"";let s=t.lastIndexOf(".");if(s===-1)return o[t+n]??"";let i=t.substring(0,s).split("."),a=o;for(let c=0;c<i.length;c++){if(a==null)return"";a=a[i[c]]}return a==null?"":a[t.substring(s+1)+n]??""}catch{return""}}var Il={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Fy.call(t))}};var Hs={polyglot:El,getLocalStateLang:Pl,getActiveLang:Ws,getLang:Ws,setLang:Ol,getLanguages:Al,loadTranslations:Tl,upsertTranslation:Rl};ze();var qs={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}},Gs=t=>parseFloat(t.toFixed(4)),c0=(t,e,r)=>{let{ascent:n,descent:o,lineGap:s,unitsPerEm:i,capHeight:a}=e,c=Math.abs(o),l=n+c+s,f=r!==void 0?r:l/i*t,p=f/t,u=l/i,d=(n-a+s/2)/i-(p-u)/2,h=(c+s/2)/i-(p-u)/2;return{fontSize:`${Gs(t/16)}rem`,lineHeight:`${Gs(f)}px`,capHeightTrim:`${Gs(-d)}em`,baselineTrim:`${Gs(-h)}em`}},l0=(t,e)=>{if(typeof t=="number")return t;let r=e?.designSystem;if(!r)return null;let{typography:n}=r;if(n?.sequence){let s=String(t).toUpperCase(),i=n.sequence[s];if(i)return i.decimal||i.val}let o=parseFloat(t);return isNaN(o)?null:typeof t=="string"&&t.endsWith("rem")?o*(r.typography?.browserDefault||16):o},f0=(t,e)=>{let n=e?.designSystem?.font_family||{};if(t){let s=n[t];if(s?.metrics)return s.metrics;let i=String(t).toLowerCase().replace(/['"]/g,"").trim();if(qs[i])return qs[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(qs[a])return qs[a]}}return null},Dy=(t,e,r,n)=>{if(!t)return;let o=l0(e.fontSize,n);if(!o)return;let s=f0(e.fontFamily,n);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=c0(o,s,i),f={};return e.lineHeight||(f.lineHeight=a),f["::before"]={content:'""',marginBottom:c,display:"table"},f["::after"]={content:'""',marginTop:l,display:"table"},f},Ly={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}};var Rn={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"},Mt=Object.create(null);for(let t in Rn)Mt[Rn[t]]=t;var $l=Object.create(null);for(let t in Rn){let e=Rn[t];if($l[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${$l[e]}"`);$l[e]=t}var Te=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]);function Pn(t){return/^[A-Z]/.test(t)}function In(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function u0(t){return t.trim().split(/\s+/).filter(Boolean)}function My(t){return t.replace(/_/g," ")}function p0(t){if(!t||typeof t!="string")return{};let e={},r=u0(t);for(let n of r){if(n.startsWith("!")){let c=n.slice(1),l=Mt[c]||c;e[l]=!1;continue}let o=n.indexOf(":");if(o===-1){let c=Mt[n]||n;e[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Mt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(My);continue}e[a]=My(i)}return e}function $n(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?$n(r):r});let e={};for(let r in t){let n=t[r];if(Pn(r)){e[r]=Fl(n);continue}let o=Mt[r]||r;if(In(r)&&o===r){e[r]=Fl(n);continue}if(Te.has(o)||Te.has(r)){e[o]=n;continue}e[o]=Fl(n)}return e}function Fl(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?$n(e):e}):typeof t=="object"?$n(t):t}function Fn(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Fn(r):r});let e={};if(typeof t.in=="string"){let r=p0(t.in);for(let n in r)e[n]=r[n]}for(let r in t){if(r==="in")continue;let n=t[r];if(Pn(r)){e[r]=Dl(n);continue}let o=Mt[r]||r;if(In(r)&&o===r){e[r]=Dl(n);continue}if(Te.has(o)||Te.has(r)){e[o]=n;continue}e[o]=Dl(n)}return e}function Dl(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Fn(e):e}):typeof t=="object"?Fn(t):t}function d0(t){let e="",r=0;for(;r<t.length;){if(t[r]==="\\"&&r+1<t.length){let n=t[r+1];if(n===","||n==="_"||n==="\\"){e+=n,r+=2;continue}}t[r]==="_"?e+=" ":e+=t[r],r++}return e}function h0(t){let e=[],r="",n=0;for(;n<t.length;){if(t[n]==="\\"&&n+1<t.length){r+=t[n]+t[n+1],n+=2;continue}if(t[n]===","){e.push(r),r="",n++;continue}r+=t[n],n++}return e.push(r),e}function Ny(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):d0(t)}function Ll(t){if(!t||typeof t!="string")return{};let e={},r=t.trim().split(/\s+/).filter(Boolean);for(let n of r){if(n.startsWith("!")){let l=n.slice(1),f=Mt[l]||l;e[f]=!1;continue}let o=n.indexOf(":");if(o===-1){let l=Mt[n]||n;e[l]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Mt[s]||s,c=h0(i);if(c.length>1){e[a]=c.map(Ny);continue}e[a]=Ny(i)}return e}function Dn(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Dn(r):r});let e={};if(typeof t.in=="string"){let r=Ll(t.in);for(let n in r)e[n]=r[n]}for(let r in t){if(r==="in")continue;let n=t[r];if(Pn(r)){typeof n=="string"?e[r]=Ll(n):e[r]=Ml(n);continue}let o=Mt[r]||r;if(In(r)&&o===r){typeof n=="string"?e[r]=Ll(n):e[r]=Ml(n);continue}if(Te.has(o)||Te.has(r)){e[o]=n;continue}e[o]=Ml(n)}return e}function Ml(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Dn(e):e}):typeof t=="object"?Dn(t):t}var g0={shorten:$n,stringify:Fn,stringifyFurther:Dn};function m0(t,e){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(n=>e(n));let r={};for(let n in t){let o=t[n];r[n]=o&&typeof o=="object"?e(o):o}return r}var y0=["components","pages","snippets"],Ks={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let n=g0[e===!0?"shorten":e];if(n){for(let o of y0)t[o]&&(t[o]=m0(t[o],n));t.app&&typeof t.app=="object"&&(t.app=n(t.app))}}};var b0=0,x0=()=>`${Date.now().toString(36)}-${(b0++).toString(36)}`,H=(t,e,r={})=>({id:x0(),ts:Date.now(),type:t,level:e,...r}),S0=t=>{let e=[],r=t,n=0;for(;r&&n<32;)r.key!=null&&e.unshift(String(r.key)),r=r.parent,n++;return e.join(" > ")},Rr=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:S0(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var Pr=t=>t?.context?.analyze,_0={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"}},w0=(t,{category:e,type:r,level:n})=>o=>{let s=Pr(o);!s||!s.shouldCapture(e)||s.emit(H(r,n,{hook:t,element:Rr(o)}))},jy=t=>(e,r)=>{let n=Pr(e);!n||!n.shouldCapture("state")||n.emit(H("state","debug",{hook:t,element:Rr(e),changedKeys:r?.changedKeys||null}))},Ln={name:"analyze",error(t,e){let r=Pr(t);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=e?.error||e?.err||(e instanceof Error?e:null);r.emit(H("error","error",{hook:e?.hook||"error",element:Rr(t),error:n,message:n?.message||(typeof e?.message=="string"?e.message:null)}))},renderRouter(t){let e=Pr(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(H("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=Pr(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=Pr(t);if(!e||!e.shouldCapture("updates"))return;let r=null;t.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-t.__ref.__analyzeUpdateStart,t.__ref.__analyzeUpdateStart=null),e.emit(H("update","debug",{hook:"update",element:Rr(t),durationMs:r}))},beforeStateUpdate:jy("beforeStateUpdate"),stateUpdate:jy("stateUpdate")};for(let[t,e]of Object.entries(_0))Ln[t]=w0(t,e);O();var Xs={error:0,warn:1,info:2,debug:3,trace:4};var Nl=(t,e)=>{let r=Xs[t],n=Xs[e];return r==null||n==null?!0:r<=n},Ys=t=>Xs[t]!=null?t:"warn";O();var Zs=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var k0=(t,e)=>{for(let r of e)if(r instanceof RegExp){if(r.test(t))return!0}else if(typeof r=="string"&&t.toLowerCase().includes(r.toLowerCase()))return!0;return!1},v0=(t,e)=>{if(e!=="redact"){if(e==="hash"){let r=0,n=String(t);for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},jl=(t,e,r,n)=>{if(n>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>jl(s,e,r,n+1));let o={};for(let s of Object.keys(t))if(k0(s,e)||Zs.test(s)){let i=v0(t[s],r);i!==void 0&&(o[s]=i)}else o[s]=jl(t[s],e,r,n+1);return o},Bl=(t=[],e="mask")=>{let r=Array.isArray(t)?t:[t];return n=>{if(!n)return n;let{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:p,element:u,target:d,...h}=n,g=jl(h,r,e,0);return{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:p,element:u,target:d,...g}}};var By=t=>{let e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<"u"?navigator.userAgent:null,n=t.config.buildHash||null,o=t.config.appId||null;return s=>{if(!s)return s;let i=t.context?.routerOptions?.currentRoute||null,a=k,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:e,app:{id:o,build:n,route:i},meta:{ua:r,viewport:c}}}},Vy=()=>t=>{if(!t)return t;if(t.element&&typeof t.element=="object"){let e=t.element;(e.node||e.parent||e.__ref)&&(t={...t,element:{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,tag:e.tag||null,component:e.component||null}})}return t.error instanceof Error&&(t={...t,error:{name:t.error.name,message:t.error.message,stack:t.error.stack}}),t},zy=(t=1e3,e=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<t)return null;if(r.set(o,i),r.size>e){let a=Math.ceil(e/10),c=0;for(let l of r.keys()){if(c++>=a)break;r.delete(l)}}return n}},Uy=t=>e=>{if(!e)return e;let r=t[e.type];return r==null||r>=1?e:Math.random()>r?null:e},Wy={redact:t=>Bl(t.config.redact||[],t.config.maskStrategy),enrich:t=>By(t),summarize:()=>Vy(),dedupe:t=>zy(t.config.cache?.dedupeWindowMs||1e3),sample:t=>Uy(t.config.sample||{})},C0=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let r=Wy[t];return r?r(e):null}return null},Vl=t=>{let e=t.config,r=Array.isArray(e.transformers)?e.transformers.slice():[],n=r.findIndex(s=>s==="redact");n>=0&&r.splice(n,1);let o=[];e.redact!==!1&&o.push(Wy.redact(t));for(let s of r){let i=C0(s,t);i&&o.push(i)}return s=>{let i=s;for(let a of o){if(i==null)return null;let c=a(i);if(c==null)return null;if(Array.isArray(c)){let l=o.slice(o.indexOf(a)+1),f=[];for(let p of c){let u=p,d=!1;for(let h of l)if(u=h(u),u==null){d=!0;break}!d&&u!=null&&f.push(u)}return f}i=c}return i}};O();O();var zl=typeof k<"u"&&typeof k.document<"u",A0=5e3,E0=50,T0=3,O0=1500,R0=1e3,Hy=t=>t?t.level==="error"||t.type==="error"?"bug":t.type==="network"?"network":t.type==="console"?t.level==="error"||t.level==="warn"?"bug":"log":t.level==="warn"?"bug":t.level==="info"?"log":"verbose":"verbose",P0=t=>{try{return JSON.stringify(t)}catch{return null}},I0=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},$0=()=>{if(!zl)return null;let t=k.location,e=typeof navigator<"u"?navigator:null;return{url:t?.href||null,path:t?.pathname||null,referrer:k.document?.referrer||null,title:k.document?.title||null,ua:e?.userAgent||null,language:e?.language||null,languages:e?.languages||null,timezone:I0(),viewport:k.innerWidth?{w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}:null}},Ul=(t={})=>{let e=t.url,r=typeof t.transport=="function"?t.transport:null;if(!e&&!r)return()=>{};let n=t.apiKey||null,o=t.appKey||t.appId||null,s=t.tenantKey||t.tenant||null,i=t.release||null,a=t.env||null,c=t.sdk||null,l=typeof t.getAuth=="function"?t.getAuth:null,f=typeof t.getContext=="function"?t.getContext:null,p=typeof t.classify=="function"?t.classify:Hy,u=typeof t.beforeSend=="function"?t.beforeSend:null,d=t.batchMs!=null?t.batchMs:A0,h=t.maxBatch||E0,g=t.maxRetries!=null?t.maxRetries:T0,m=t.backoffMs||O0,y=t.queueLimit||R0,b=t.sampleRate!=null?t.sampleRate:1,x=t.sessionId||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),S=[],v=[],T=null,R=null,L=()=>{T||!S.length||(T=setTimeout(U,d))},P=D=>{if(R)return;let q=m*Math.pow(2,Math.max(0,D-1));R=setTimeout(()=>{if(R=null,!v.length)return;let J=v.shift();z(J.envelope,J.attempt)},q)},V=D=>{let q=f?F0(f):null,J={v:1,session:{id:x,sentAt:Date.now()},app:{key:o,release:i,env:a},tenant:s,sdk:c,page:$0(),user:q?.user||null,traits:q?.traits||null,tags:q?.tags||null,events:D};if(u)try{return u(J)||null}catch{return J}return J},z=async(D,q=1)=>{if(D)try{let J=!0;if(r){let dt=await r(D);J=dt!==!1&&dt?.ok!==!1}else J=await D0(e,D,{apiKey:n,getAuth:l});!J&&q<g&&(v.push({envelope:D,attempt:q+1}),P(q+1))}catch{q<g&&(v.push({envelope:D,attempt:q+1}),P(q+1))}},U=(D=!1)=>{if(T&&(clearTimeout(T),T=null),!S.length)return;let q=S;S=[];let J=V(q);if(J){if(D&&zl&&navigator.sendBeacon&&e){let dt=P0(J);if(dt)try{navigator.sendBeacon(e,new k.Blob([dt],{type:"application/json"}));return}catch{}}z(J)}};zl&&(k.addEventListener("pagehide",()=>U(!0),{passive:!0}),k.addEventListener("beforeunload",()=>U(!0),{passive:!0}),k.addEventListener("visibilitychange",()=>{k.document.visibilityState==="hidden"&&U(!0)},{passive:!0}));let M=D=>{if(!D||b<1&&Math.random()>b)return;let q={...D,log_type:p(D)};S.push(q),S.length>y&&(S=S.slice(-y)),S.length>=h?U():L()};return M.flush=()=>U(!1),M.sessionId=x,M},F0=t=>{try{return t()}catch{return null}},D0=async(t,e,{apiKey:r,getAuth:n})=>{let o={"Content-Type":"application/json","X-Analyze-Beacon":"1"};if(r&&(o["X-Analyze-Key"]=r),n)try{let s=await n();s&&(o.Authorization=`Bearer ${s}`)}catch{}try{return(await fetch(t,{method:"POST",headers:o,body:JSON.stringify(e),keepalive:!0,credentials:"omit",mode:"cors"})).ok}catch{return!1}};var L0={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},M0="\x1B[0m",Js=typeof k<"u"&&typeof k.document<"u",Gy=(t={})=>{let e=t.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(Js)i(a,s);else{let c=L0[s.level]||"";i(`${c}${a}${M0}`,s)}}},Ky=(t,e={})=>{let r=e.max||t.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 t.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(o-s+r)%r;for(let l=0;l<s;l++)a[l]=n[(c+l)%r];return a},query:(a={})=>{let c=t.__memory.snapshot(),l=a.sinceMs?Date.now()-a.sinceMs:0;return c.filter(f=>!(!f||a.level&&f.level!==a.level||a.type&&f.type!==a.type||l&&f.ts<l))},clear:()=>{o=0,s=0}},i},Xy=(t={})=>{let e=t.url,r=t.batchMs!=null?t.batchMs:5e3,n=t.maxBatch||50;if(!e)return()=>{};let o=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!o.length)return;let c=JSON.stringify({events:o});o=[];let l=Js?new k.Blob([c],{type:"application/json"}):c;if(Js&&navigator.sendBeacon)try{navigator.sendBeacon(e,l);return}catch{}typeof fetch<"u"&&fetch(e,{method:"POST",headers:{"Content-Type":"application/json","X-Analyze-Beacon":"1"},body:c,keepalive:!0}).catch(()=>{})};Js&&(k.addEventListener("pagehide",i,{passive:!0}),k.addEventListener("beforeunload",i,{passive:!0}));let a=c=>{c&&(o.push(c),o.length>=n?i():s||(s=setTimeout(i,r)))};return a.flush=i,a},qy={console:Gy,memory:Ky,beacon:Xy,remote:Ul},Wl=t=>{let e=Array.isArray(t.config.sinks)?t.config.sinks:["console"],r=[];for(let n of e)if(typeof n=="function")r.push(n);else if(typeof n=="string"){let o=qy[n];if(!o)continue;r.push(n==="memory"?o(t,{}):o({}))}else if(n&&typeof n=="object"&&n.type){let o=qy[n.type];if(!o)continue;r.push(n.type==="memory"?o(t,n):o(n))}return r};O();var N0=typeof k<"u"&&typeof k.document<"u",j0=new Set(["password","hidden"]),Yy=(t,e)=>{let r=0,n=null,o=null;return(...s)=>{let i=Date.now();i-r>=e?(r=i,t(...s)):(o=s,n||(n=setTimeout(()=>{r=Date.now(),n=null,o&&(t(...o),o=null)},e-(i-r))))}},Hl="__analyzeKeyPath",Ir=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[Hl])return e[Hl];let r=[],n=e,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:e.tagName?.toLowerCase()||null};else{let a=(e.tagName||"unknown").toLowerCase(),c=e.id?`#${e.id}`:"",l=e.className&&typeof e.className=="string"?"."+e.className.trim().split(/\s+/).slice(0,2).join("."):"";i={selector:`${a}${c}${l}`,key:null,path:null}}try{e[Hl]=i}catch{}return i},B0=(t,e)=>{if(e==="mask")return"***";if(e!=="redact"){if(e==="hash"){let r=0,n=String(t||"");for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},V0=t=>!!(!t||t.tagName==="INPUT"&&j0.has(t.type)||Zs.test(t.name||"")||Zs.test(t.id||"")||t.dataset?.analyze==="skip"),ql=t=>{if(!N0)return;let e=t.config.capture,r=t.config.throttle,n=t.__teardown,o=(s,i,a,c)=>{s.addEventListener(i,a,c),n.push(()=>s.removeEventListener(i,a,c))};if(e.errors&&(o(k,"error",s=>{t.emit(H("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(k,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;t.emit(H("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),e.pointer){o(k,"click",i=>{t.emit(H("pointer","info",{hook:"click",target:Ir(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:Zy(i)}))},{passive:!0,capture:!0}),o(k,"dblclick",i=>{t.emit(H("pointer","info",{hook:"dblclick",target:Ir(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(k,"contextmenu",i=>{t.emit(H("pointer","info",{hook:"contextmenu",target:Ir(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=Yy(i=>{t.emit(H("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},r.pointermove);o(k,"pointermove",s,{passive:!0})}if(e.keyboard&&o(k,"keydown",s=>{t.emit(H("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:Zy(s),target:Ir(s)}))},{passive:!0,capture:!0}),e.forms){let s=i=>{let a=i.target;if(!a||!a.tagName||!["INPUT","TEXTAREA","SELECT"].includes(a.tagName))return;let c=V0(a),l=a.dataset?.analyze==="track",f=null;l&&!c?f=a.value:t.config.maskFormValues!==!1&&(f=B0(a.value,t.config.maskStrategy)),t.emit(H("forms","info",{hook:i.type,target:Ir(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:f}))};o(k,"input",s,{passive:!0,capture:!0}),o(k,"change",s,{passive:!0,capture:!0}),o(k,"submit",i=>{t.emit(H("forms","info",{hook:"submit",target:Ir(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=Yy(()=>{t.emit(H("scroll","trace",{hook:"scroll",x:k.scrollX,y:k.scrollY}))},r.scroll);o(k,"scroll",s,{passive:!0,capture:!0})}if(e.viewport){let s=po(()=>{t.emit(H("viewport","info",{hook:"resize",w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}))},r.resize);o(k,"resize",s,{passive:!0}),o(k,"orientationchange",()=>{t.emit(H("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(k.document,"visibilitychange",()=>{t.emit(H("viewport","info",{hook:"visibilitychange",hidden:k.document.hidden}))},{passive:!0}),t.emit(H("viewport","info",{hook:"initial",w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}))}if(e.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{t.emit(H("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(z0)}))}catch{}return i.apply(console,a)},n.push(()=>{console[s]=i})}if(e.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let c of a.getEntries())t.emit(H("performance","info",{hook:c.entryType,name:c.name,startTime:c.startTime,duration:c.duration,value:c.value!=null?c.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{}},Zy=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),z0=t=>{if(t==null)return t;if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};O();var U0=typeof k<"u"&&typeof k.document<"u";var Gl=t=>{if(U0&&t.config.capture.network){if(typeof k.fetch=="function"){let e=k.fetch.bind(k),r=function(n,o){if(o?.headers?.["X-Analyze-Beacon"])return e(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 t.emit(H("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),e(n,o).then(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;return t.emit(H("network",c.ok?"info":"warn",{hook:"fetch.success",source:"window.fetch",url:s,method:i,status:c.status,ok:c.ok,durationMs:l})),c}).catch(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;throw t.emit(H("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:c,durationMs:l})),c})};k.fetch=r,t.__teardown.push(()=>{k.fetch=e})}if(typeof k.XMLHttpRequest=="function"){let e=k.XMLHttpRequest,r=e.prototype.open,n=e.prototype.send;e.prototype.open=function(o,s){return this.__analyze={method:String(o).toUpperCase(),url:String(s)},r.apply(this,arguments)},e.prototype.send=function(o){let s=this.__analyze;if(!s)return n.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();t.emit(H("network","info",{hook:"xhr.start",source:"xhr",url:s.url,method:s.method}));let a=()=>{let l=(typeof performance<"u"?performance.now():Date.now())-i,f=this.status>=200&&this.status<400;t.emit(H("network",f?"info":"warn",{hook:"xhr.success",source:"xhr",url:s.url,method:s.method,status:this.status,ok:f,durationMs:l}))},c=()=>{let l=(typeof performance<"u"?performance.now():Date.now())-i;t.emit(H("network","error",{hook:"xhr.error",source:"xhr",url:s.url,method:s.method,status:this.status,durationMs:l}))};return this.addEventListener("loadend",a),this.addEventListener("error",c),n.apply(this,arguments)},t.__teardown.push(()=>{e.prototype.open=r,e.prototype.send=n})}}};var W0={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},H0={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},q0={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},G0={errors:!0,warnings:!0,console:!0,network:!0,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},K0=t=>{let e={...W0,...t};return e.replay&&Object.assign(e,H0),e.telemetry&&Object.assign(e,q0),e.remote&&Object.assign(e,G0),e},X0=64,Y0=()=>{if(typeof k>"u"||!k.location)return null;try{return new URLSearchParams(k.location.search).get("analyze")||null}catch{return null}},Kl=(t={})=>{let e=t===!0?{}:{...t};e.capture=K0(e.capture||{});let r=Y0();(r==="debug"||e.debug)&&(e.level="debug",e.debug=!0,e.capture={...e.capture,lifecycle:!0,state:!0,updates:!0,console:!0}),r==="off"&&(e.enabled=!1),e.level=Ys(e.level||"warn"),e.cache={max:500,dedupeWindowMs:1e3,...e.cache||{}},e.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...e.throttle||{}},e.maskFormValues==null&&(e.maskFormValues=!0),e.maskStrategy||(e.maskStrategy="mask"),Array.isArray(e.sinks)||(e.sinks=["console","memory"]),Array.isArray(e.transformers)||(e.transformers=["enrich","summarize"]);let n={config:e,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},o=()=>{n.__pipeline||(n.__pipeline=Vl(n),n.__sinks=Wl(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&&Nl(s.level,n.config.level)){if(!n.__ready){if(s.level!=="error"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<X0&&n.__preBuffer.push(s);return}o(),Jy(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)Jy(n,a)}try{ql(n)}catch(a){console.error("[analyze] browser attach error:",a)}try{Gl(n)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of n.__onActivate||[])try{a(n)}catch(c){console.error("[analyze] onActivate error:",c)}},n.pause=()=>{n.__paused=!0},n.resume=()=>{n.__paused=!1},n.setLevel=s=>{n.config.level=Ys(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},Jy=(t,e)=>{let r=t.__pipeline(e);if(r==null)return;let n=Array.isArray(r)?r:[r];for(let o of n){if(typeof t.config.onEvent=="function")try{t.config.onEvent(o)}catch{}for(let s of t.__sinks)try{s(o)}catch(i){console.error("[analyze] sink error:",i)}}};var Gt=Object.create(null);Gt.open="0";Gt.close="1";Gt.ping="2";Gt.pong="3";Gt.message="4";Gt.upgrade="5";Gt.noop="6";var Mn=Object.create(null);Object.keys(Gt).forEach(t=>{Mn[Gt[t]]=t});var Nn={type:"error",data:"parser error"};var eb=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",rb=typeof ArrayBuffer=="function",nb=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,jn=({type:t,data:e},r,n)=>eb&&e instanceof Blob?r?n(e):Qy(e,n):rb&&(e instanceof ArrayBuffer||nb(e))?r?n(e):Qy(new Blob([e]),n):n(Gt[t]+(e||"")),Qy=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];e("b"+(n||""))},r.readAsDataURL(t)};function tb(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var Xl;function ob(t,e){if(eb&&t.data instanceof Blob)return t.data.arrayBuffer().then(tb).then(e);if(rb&&(t.data instanceof ArrayBuffer||nb(t.data)))return e(tb(t.data));jn(t,!1,r=>{Xl||(Xl=new TextEncoder),e(Xl.encode(r))})}var sb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Bn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<sb.length;t++)Bn[sb.charCodeAt(t)]=t;var ib=t=>{let e=t.length*.75,r=t.length,n,o=0,s,i,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);let l=new ArrayBuffer(e),f=new Uint8Array(l);for(n=0;n<r;n+=4)s=Bn[t.charCodeAt(n)],i=Bn[t.charCodeAt(n+1)],a=Bn[t.charCodeAt(n+2)],c=Bn[t.charCodeAt(n+3)],f[o++]=s<<2|i>>4,f[o++]=(i&15)<<4|a>>2,f[o++]=(a&3)<<6|c&63;return l};var Z0=typeof ArrayBuffer=="function",Vn=(t,e)=>{if(typeof t!="string")return{type:"message",data:ab(t,e)};let r=t.charAt(0);return r==="b"?{type:"message",data:J0(t.substring(1),e)}:Mn[r]?t.length>1?{type:Mn[r],data:t.substring(1)}:{type:Mn[r]}:Nn},J0=(t,e)=>{if(Z0){let r=ib(t);return ab(r,e)}else return{base64:!0,data:t}},ab=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var cb="",lb=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{jn(s,!1,a=>{n[i]=a,++o===r&&e(n.join(cb))})})},fb=(t,e)=>{let r=t.split(cb),n=[];for(let o=0;o<r.length;o++){let s=Vn(r[o],e);if(n.push(s),s.type==="error")break}return n};function ub(){return new TransformStream({transform(t,e){ob(t,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))}t.data&&typeof t.data!="string"&&(o[0]|=128),e.enqueue(o),e.enqueue(r)})}})}var Yl;function Qs(t){return t.reduce((e,r)=>e+r.length,0)}function ti(t,e){if(t[0].length===e)return t.shift();let r=new Uint8Array(e),n=0;for(let o=0;o<e;o++)r[o]=t[0][n++],n===t[0].length&&(t.shift(),n=0);return t.length&&n<t[0].length&&(t[0]=t[0].slice(n)),r}function pb(t,e){Yl||(Yl=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(Qs(r)<1)break;let c=ti(r,1);s=(c[0]&128)===128,o=c[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(Qs(r)<2)break;let c=ti(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(Qs(r)<8)break;let c=ti(r,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(Nn);break}o=f*Math.pow(2,32)+l.getUint32(4),n=3}else{if(Qs(r)<o)break;let c=ti(r,o);a.enqueue(Vn(s?c:Yl.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(Nn);break}}}})}var Zl=4;function Z(t){if(t)return Q0(t)}function Q0(t){for(var e in Z.prototype)t[e]=Z.prototype[e];return t}Z.prototype.on=Z.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};Z.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};Z.prototype.off=Z.prototype.removeListener=Z.prototype.removeAllListeners=Z.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+t];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===e||n.fn===e){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+t],this};Z.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,e)}return this};Z.prototype.emitReserved=Z.prototype.emit;Z.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};Z.prototype.hasListeners=function(t){return!!this.listeners(t).length};var ue=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),St=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),db="arraybuffer";function ei(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var tk=St.setTimeout,ek=St.clearTimeout;function pe(t,e){e.useNativeTimers?(t.setTimeoutFn=tk.bind(St),t.clearTimeoutFn=ek.bind(St)):(t.setTimeoutFn=St.setTimeout.bind(St),t.clearTimeoutFn=St.clearTimeout.bind(St))}var rk=1.33;function hb(t){return typeof t=="string"?nk(t):Math.ceil((t.byteLength||t.size)*rk)}function nk(t){let e=0,r=0;for(let n=0,o=t.length;n<o;n++)e=t.charCodeAt(n),e<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(n++,r+=4);return r}function ri(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function gb(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function mb(t){let e={},r=t.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}var ni=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type="TransportError"}},de=class extends Z{constructor(e){super(),this.writable=!1,pe(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,r,n){return super.emitReserved("error",new ni(e,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(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let r=Vn(e,this.socket.binaryType);this.onPacket(r)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,r={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_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 r=gb(e);return r.length?"?"+r:""}};var zn=class extends de{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let r=()=>{this.readyState="paused",e()};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(e){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)};fb(e,this.socket.binaryType).forEach(r),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,lb(e,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=ri()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var yb=!1;try{yb=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var bb=yb;function ok(){}var Jl=class extends zn{constructor(e){if(super(e),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,r){let n=this.request({method:"POST",data:e});n.on("success",r),n.on("error",(o,s)=>{this.onError("xhr post error",o,s)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=e}},Oe=class t extends Z{constructor(e,r,n){super(),this.createRequest=e,pe(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 e;let r=ei(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{}(e=this._opts.cookieJar)===null||e===void 0||e.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=t.requestsCount++,t.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=ok,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete t.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Oe.requestsCount=0;Oe.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",xb);else if(typeof addEventListener=="function"){let t="onpagehide"in St?"pagehide":"unload";addEventListener(t,xb,!1)}}function xb(){for(let t in Oe.requests)Oe.requests.hasOwnProperty(t)&&Oe.requests[t].abort()}var sk=(function(){let t=Sb({xdomain:!1});return t&&t.responseType!==null})(),Re=class extends Jl{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=sk&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Oe(Sb,this.uri(),e)}};function Sb(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||bb))return new XMLHttpRequest}catch{}if(!e)try{return new St[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var _b=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",tf=class extends de{get name(){return"websocket"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=_b?{}:ei(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(e,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=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 r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;jn(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&ue(()=>{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",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=ri()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},Ql=St.WebSocket||St.MozWebSocket,Pe=class extends tf{createSocket(e,r,n){return _b?new Ql(e,r,n):r?new Ql(e,r):new Ql(e)}doWrite(e,r){this.ws.send(r)}};var $r=class extends de{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 r=pb(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=ub();o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();let s=()=>{n.read().then(({done:a,value:c})=>{a||(this.onPacket(c),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(e){this.writable=!1;for(let r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;this._writer.write(n).then(()=>{o&&ue(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var ef={websocket:Pe,webtransport:$r,polling:Re};var ik=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ak=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Fr(t){if(t.length>8e3)throw"URI too long";let e=t,r=t.indexOf("["),n=t.indexOf("]");r!=-1&&n!=-1&&(t=t.substring(0,r)+t.substring(r,n).replace(/:/g,";")+t.substring(n,t.length));let o=ik.exec(t||""),s={},i=14;for(;i--;)s[ak[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=e,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=ck(s,s.path),s.queryKey=lk(s,s.query),s}function ck(t,e){let r=/\/{2,9}/g,n=e.replace(r,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&n.splice(0,1),e.slice(-1)=="/"&&n.splice(n.length-1,1),n}function lk(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var rf=typeof addEventListener=="function"&&typeof removeEventListener=="function",oi=[];rf&&addEventListener("offline",()=>{oi.forEach(t=>t())},!1);var Je=class t extends Z{constructor(e,r){if(super(),this.binaryType=db,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(r=e,e=null),e){let n=Fr(e);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=Fr(r.host).host);pe(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=mb(this.opts.query)),rf&&(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"})},oi.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=Zl,r.transport=e,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[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let e=this.opts.rememberUpgrade&&t.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(e);r.open(),this.setTransport(r)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.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",t.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.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=e.data,this._onError(r);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),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 e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.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+=hb(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,ue(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,r,n){return this._sendPacket("message",e,r,n),this}send(e,r,n){return this._sendPacket("message",e,r,n),this}_sendPacket(e,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:e,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),e()},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():e()}):this.upgrading?n():e()),this}_onError(e){if(t.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,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(),rf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=oi.indexOf(this._offlineEventListener);n!==-1&&oi.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};Je.protocol=Zl;var si=class extends Je{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 r=this.createTransport(e),n=!1;Je.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",p=>{if(!n)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Je.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(f(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let u=new Error("probe error");u.transport=r.name,this.emitReserved("upgradeError",u)}}))};function s(){n||(n=!0,f(),r.close(),r=null)}let i=p=>{let u=new Error("probe error: "+p);u.transport=r.name,s(),this.emitReserved("upgradeError",u)};function a(){i("transport closed")}function c(){i("socket closed")}function l(p){r&&p.name!==r.name&&s()}let f=()=>{r.removeListener("open",o),r.removeListener("error",i),r.removeListener("close",a),this.off("close",c),this.off("upgrading",l)};r.once("open",o),r.once("error",i),r.once("close",a),this.once("close",c),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let r=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&r.push(e[n]);return r}},Dr=class extends si{constructor(e,r={}){let n=typeof e=="object"?e:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>ef[o]).filter(o=>!!o)),super(e,n)}};var q$=Dr.protocol;function wb(t,e="",r){let n=t;r=r||typeof location<"u"&&location,t==null&&(t=r.protocol+"//"+r.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=r.protocol+t:t=r.host+t),/^(https?|wss?):\/\//.test(t)||(typeof r<"u"?t=r.protocol+"//"+t:t="https://"+t),n=Fr(t)),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+e,n.href=n.protocol+"://"+s+(r&&r.port===n.port?"":":"+n.port),n}var ff={};$(ff,{Decoder:()=>cf,Encoder:()=>af,PacketType:()=>F,isPacketValid:()=>Rk,protocol:()=>$b});var uk=typeof ArrayBuffer=="function",pk=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,kb=Object.prototype.toString,dk=typeof Blob=="function"||typeof Blob<"u"&&kb.call(Blob)==="[object BlobConstructor]",hk=typeof File=="function"||typeof File<"u"&&kb.call(File)==="[object FileConstructor]";function Wn(t){return uk&&(t instanceof ArrayBuffer||pk(t))||dk&&t instanceof Blob||hk&&t instanceof File}function Un(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(Un(t[r]))return!0;return!1}if(Wn(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Un(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&Un(t[r]))return!0;return!1}function vb(t){let e=[],r=t.data,n=t;return n.data=nf(r,e),n.attachments=e.length,{packet:n,buffers:e}}function nf(t,e){if(!t)return t;if(Wn(t)){let r={_placeholder:!0,num:e.length};return e.push(t),r}else if(Array.isArray(t)){let r=new Array(t.length);for(let n=0;n<t.length;n++)r[n]=nf(t[n],e);return r}else if(typeof t=="object"&&!(t instanceof Date)){let r={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=nf(t[n],e));return r}return t}function Cb(t,e){return t.data=of(t.data,e),delete t.attachments,t}function of(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=of(t[r],e);else if(typeof t=="object")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=of(t[r],e));return t}var Pb=ix(Rb(),1),sf=(0,Pb.default)("socket.io-parser"),Ib=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],$b=5,F;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(F||(F={}));var af=class{constructor(e){this.replacer=e}encode(e){return sf("encoding packet %j",e),(e.type===F.EVENT||e.type===F.ACK)&&Un(e)?this.encodeAsBinary({type:e.type===F.EVENT?F.BINARY_EVENT:F.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===F.BINARY_EVENT||e.type===F.BINARY_ACK)&&(r+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(r+=e.nsp+","),e.id!=null&&(r+=e.id),e.data!=null&&(r+=JSON.stringify(e.data,this.replacer)),sf("encoded %j as %s",e,r),r}encodeAsBinary(e){let r=vb(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},cf=class t extends Z{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e=="function"?{reviver:e}:e)}add(e){let r;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(e);let n=r.type===F.BINARY_EVENT;n||r.type===F.BINARY_ACK?(r.type=n?F.EVENT:F.ACK,this.reconstructor=new lf(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Wn(e)||e.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(e),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: "+e)}decodeString(e){let r=0,n={type:Number(e.charAt(0))};if(F[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===F.BINARY_EVENT||n.type===F.BINARY_ACK){let s=r+1;for(;e.charAt(++r)!=="-"&&r!=e.length;);let i=e.substring(s,r);if(i!=Number(i)||e.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!Fb(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=a}if(e.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(e.charAt(r)===","||r===e.length););n.nsp=e.substring(s,r)}else n.nsp="/";let o=e.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=e.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===e.length)break}n.id=Number(e.substring(s,r+1))}if(e.charAt(++r)){let s=this.tryParse(e.substr(r));if(t.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return sf("decoded %s as %j",e,n),n}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,r){switch(e){case F.CONNECT:return ci(r);case F.DISCONNECT:return r===void 0;case F.CONNECT_ERROR:return typeof r=="string"||ci(r);case F.EVENT:case F.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&Ib.indexOf(r[0])===-1);case F.ACK:case F.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},lf=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 r=Cb(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function Ek(t){return typeof t=="string"}var Fb=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function Tk(t){return t===void 0||Fb(t)}function ci(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ok(t,e){switch(t){case F.CONNECT:return e===void 0||ci(e);case F.DISCONNECT:return e===void 0;case F.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&Ib.indexOf(e[0])===-1);case F.ACK:return Array.isArray(e);case F.CONNECT_ERROR:return typeof e=="string"||ci(e);default:return!1}}function Rk(t){return Ek(t.nsp)&&Tk(t.id)&&Ok(t.type,t.data)}function Rt(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var Pk=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),jr=class extends Z{constructor(e,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=e,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 e=this.io;this.subs=[Rt(e,"open",this.onopen.bind(this)),Rt(e,"packet",this.onpacket.bind(this)),Rt(e,"error",this.onerror.bind(this)),Rt(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,...r){var n,o,s;if(Pk.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(r.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let i={type:F.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let f=this.ids++,p=r.pop();this._registerAckCallback(f,p),i.id=f}let a=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,c=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,r){var n;let o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[e]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&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[e]=i}emitWithAck(e,...r){return new Promise((n,o)=>{let s=(i,a)=>i?o(i):n(a);s.withError=!0,r.push(s),this.emit(e,...r)})}_addToQueue(e){let r;typeof e[e.length-1]=="function"&&(r=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.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(e=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!e||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.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:F.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,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(n=>String(n.id)===e)){let n=this.acks[e];delete this.acks[e],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case F.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 F.EVENT:case F.BINARY_EVENT:this.onevent(e);break;case F.ACK:case F.BINARY_ACK:this.onack(e);break;case F.DISCONNECT:this.ondisconnect();break;case F.CONNECT_ERROR:this.destroy();let n=new Error(e.data.message);n.data=e.data.data,this.emitReserved("connect_error",n);break}}onevent(e){let r=e.data||[];e.id!=null&&r.push(this.ack(e.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.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 r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:F.ACK,id:e,data:o}))}}onack(e){let r=this.acks[e.id];typeof r=="function"&&(delete this.acks[e.id],r.withError&&e.data.unshift(null),r.apply(this,e.data))}onconnect(e,r){this.id=e,this.recovered=r&&this._pid===r,this._pid=r,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:F.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 r=this._anyListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,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 r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let n of r)n.apply(this,e.data)}}};function tr(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}tr.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-r:t+r}return Math.min(t,this.max)|0};tr.prototype.reset=function(){this.attempts=0};tr.prototype.setMin=function(t){this.ms=t};tr.prototype.setMax=function(t){this.max=t};tr.prototype.setJitter=function(t){this.jitter=t};var Br=class extends Z{constructor(e,r){var n;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(r=e,e=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,pe(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 tr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=e;let o=r.parser||ff;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.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 r;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(r=this.backoff)===null||r===void 0||r.setMin(e),this)}randomizationFactor(e){var r;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(r=this.backoff)===null||r===void 0||r.setJitter(e),this)}reconnectionDelayMax(e){var r;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(r=this.backoff)===null||r===void 0||r.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 Dr(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=Rt(r,"open",function(){n.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=Rt(r,"error",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),r.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(o),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(Rt(e,"ping",this.onping.bind(this)),Rt(e,"data",this.ondata.bind(this)),Rt(e,"error",this.onerror.bind(this)),Rt(e,"close",this.onclose.bind(this)),Rt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(r){this.onclose("parse error",r)}}ondecoded(e){ue(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,r){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new jr(this,e,r),this.nsps[e]=n),n}_destroy(e){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(e){let r=this.encoder.encode(e);for(let n=0;n<r.length;n++)this.engine.write(r[n],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,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,r),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 r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(o=>{o?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",o)):e.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}};var Hn={};function Vr(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let r=wb(t,e.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=Hn[o]&&s in Hn[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Br(n,e):(Hn[o]||(Hn[o]=new Br(n,e)),c=Hn[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(Vr,{Manager:Br,Socket:jr,io:Vr,connect:Vr});O();var Ik=new Set(["__proto__","constructor","prototype"]),Db=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(Ik.has(t[e]))return!1;return!0},$k=(t,e)=>{!t||!Db(e)||e.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},t)},Fk=(t,e,r,n=!1)=>{!t||!Db(e)||e.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&n&&(o[s]={}),o[s];o[s]=r}},t)},Lb=(t,e)=>{let r=new Set;if(!Array.isArray(e))return r;for(let[n,o,s]of e)if(!(!Array.isArray(o)||!o.length))switch(r.add(o[0]),n){case"delete":$k(t,o);break;case"update":case"set":Fk(t,o,s,!0);break;default:break}return r};O();var Mb=(t,e,r)=>(n={})=>{let{data:o}=n,{schema:s}=n;o&&(o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?Ae(a):sr(r[i],a):r[i]=a}),s&&(r.schema=s))},Nb=(t,e,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=Lb(r,o);if(s.has("state")&&e.update(r.state),["pages","components","snippets","functions","assets"].some(i=>s.has(i))){let{pathname:i,search:a,hash:c}=r.window.location;t.call("router",i+a+c,t.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&Ae(r.designSystem)};var Dk={success:"green",error:"red",warning:"yellow"},jb=(t,e,r)=>{if(t.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,e.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,e.notifications.content.connected&&e.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},Bb={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:Dk[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,r,n)=>{r.update({animation:"fadeInUp"})},onClick:(e,r,n)=>{delete n.notifications[r.key],r.update({animation:"fadeOutDown"}),n.onClose&&n.onClose(e,r,n)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var Lk=!1,Mk=()=>Lk?"http://localhost:8080":"https://api.symbols.app",Nk=t=>{let e=t&&t.editor&&t.editor.socketUrl||t&&t.settings&&t.settings.socketUrl;return typeof e=="string"&&e?{mode:"collab",baseUrl:e}:t&&t.editor&&t.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:{mode:null,baseUrl:null}},jk=async t=>{try{let e=t||Mk(),r=await k.fetch(`${e}/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(e){console.error("[sync] Failed to fetch service-token",e)}},Ub=(t,e,r,n)=>{t.on("snapshot",Mb(e,r,n)),t.on("ops",Nb(e,r,n)),t.on("clients",o=>{n.editor?.verbose&&jb(o,e,r)}),t.on("disconnect",o=>{n.editor?.verbose&&console.info("[sync] disconnected",o)})},Bk=async(t,e,r,n)=>{let o=await jk(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=Vr(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)")}),Ub(a,t,e,r),a},Vk=(t,e,r)=>{let n=Vr({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),Ub(n,t,e,r),n.on("reload",()=>{typeof k<"u"&&k.location&&k.location.reload()}),n},zk=async(t,e,r)=>{let{mode:n,baseUrl:o}=Nk(r);return n?n==="collab"?Bk(t,e,r,o):n==="runner"?Vk(t,e,r):null:null},Uk={onInit:zk};var Wb=t=>typeof t>"u",Vb=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),zb=t=>t?.editor?.runtime==="runner",Hb=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},qb={name:"sync",beforeCreate(t,e){let r=e&&e.editor;(r&&!Wb(r.liveSync)?r.liveSync:Vb(e)||zb(e))&&(Vb(e)&&!zb(e)&&!e?.key||Hb(t,Uk))}},Gb={name:"notifications",beforeCreate(t,e){if(!e)return;let r=Wb(e.notifications)?null:e.notifications,n=e.editor&&e.editor.verbose===!0;(r===!0||r!==!1&&n)&&Hb(t,Bb)}};O();function Kb(t){return w(t)?t:E(t)?t.find(e=>w(e)):""}function pf(t){if(!t)return;let e=t.__ref.__componentKey,r=t.extends&&Kb(t.extends),n=t.parent&&t.parent.childExtends&&Kb(t.parent.childExtends);return(e||r||n||"").split("_")[0].split(".")[0].split("+")[0]}function li(t){if(!t||!t.__ref)return;let{components:e,pages:r,editor:n}=t.context,o=pf(t);return n&&n.onInitInspect&&!n.onInitInspect(o,t,t.state)?li(t.parent):o&&(e[o]||r[o])?t:li(t.parent)}var Wk=(t,e,r)=>{let n=r.window||window;n.onkeydown=o=>{o.altKey&&o.shiftKey&&t.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},n.onkeyup=o=>{t.state.preventSelect&&(!o.altKey||!o.shiftKey)&&(t.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),t.Inspector.state.update({area:!1}))}},uf={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:Wk,onMousemove:(t,e,r)=>{let n=t.target.ref,o=li(n),s=e.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=pf(o),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:p,height:u}=o.node.getBoundingClientRect(),d={x:l,y:f,width:p,height:u};if(!s.area)return a(d);s.area.x!==d.x&&a(d)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{c(),window.requestAnimationFrame(c)})},onMousedown:(t,e,r)=>{if(!r.debugging)return;let n=t.target.ref,o=li(n);if(!o)return;let s=pf(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),t.preventDefault(),t.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(t,e)=>!(e.area&&e.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:t})=>{let{components:e}=t;if(_(e)){let{Content:r,...n}=e;for(let o in n)Cn[o]||(n[o].__ref||(n[o].__ref={}),n[o].__ref.__componentKey||(n[o].__ref.__componentKey=o))}},onBeforeUpdate:(t,e,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:c,height:l}=n;s=`
74
74
  display: block !important;
75
75
  top: ${a-6}px;
76
76
  left: ${i-6}px;
77
77
  width: ${c+12}px;
78
78
  height: ${l+12}px;
79
- `}return e.node.style=s,e.Span.node.innerText=r.focusKey,!1}}},qb={name:"inspect",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(lf):t.extends?t.extends=[t.extends,lf]:t.extends=[lf]}};var Pk=async(t,e={})=>{let r=e.symbolsConfig,o=r?.owner&&r?.key?`${r.owner}--${r.key}`:r?.key,n=e.key=e.key||o||(_(t)?t:"smblsapp");if(e.define=e.define||To,e.cssPropsRegistry=it,e.window=by(e),e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(u=>typeof u=="string")){let{resolveSharedLibraries:u}=await Promise.resolve().then(()=>(T(),Rd));e.sharedLibraries=await u(e.sharedLibraries)}Oy(e)}let[s,i]=Ay(n,e);e.designSystem=s,e.registry=i,e.cases||(e.cases={}),e.shorthand&&Ks.prepareContext(e);let a=Ey(t,e);e.state=a,jn(a),e.pages=Ty(t,e),e.components=xy(e),e.utils=Sy(e),Ue[e.packageManager]&&(e.dependencies=await wy(e)),e.methods=_y(e),e.routerOptions=ny(t,e),e.defaultExtends=[Is],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope&&S(e.globalScope)&&(e.globalScope=an(e.globalScope));let c=(p,u)=>{let d=u?p[u]:p;if(!S(d))return;let h=Nt(d);try{Object.assign(d,h)}catch(g){if(u)p[u]=h;else throw g}};c(t),c(e,"components"),c(e,"pages"),c(e,"functions"),c(e,"methods"),c(e,"snippets"),c(e,"app"),e.fetch&&e.fetch.__resolved&&delete e.fetch.__resolved,e.db&&e.db.__resolved&&delete e.db.__resolved;let l=p=>e.plugins.some(u=>u.name===p);if(e.polyglot&&!l("polyglot")){e.plugins.push(Il);for(let p in Hs)p in e.functions||(e.functions[p]=Hs[p])}if(l("helmet")||e.plugins.push(ly),e.fetch&&!l("fetch")&&e.plugins.push(ya),e.designSystem?.typography?.useCapsize!==!1&&!l("capsize")&&(e.plugins.push(Fy),e.cssPropsRegistry.useCapsize=$y),e.shorthand&&!l("shorthand")&&e.plugins.push(Ks),e.analyze&&!l("analyze")){let p=e.analyze===!0?{}:e.analyze;e.analyze=ql(p),e.plugins.push(Lo)}return e.sync!==!1&&!l("sync")&&e.plugins.push(Ub),e.inspect&&!l("inspect")&&e.plugins.push(qb),(e.notifications===!0||e.editor&&e.editor.verbose===!0)&&e.notifications!==!1&&!l("notifications")&&e.plugins.push(Wb),e},uf=async(t,e)=>{S(e)||(e={}),he(t)?(t={},e.parent=t):_(t)?(t={},e.key=t):S(t)||(t={});let r=e.window||(typeof window<"u"?window:null),o=r?.__BRENDER__,n=null;if(o){let c=e.document||(typeof document<"u"?document:null);c&&(n=Array.from(c.head.querySelectorAll("style")))}if(await Pk(t,e),e.useReset!==!1){let c=e.document||(typeof document<"u"?document:null);if(c){let l=c.head.querySelector("style[data-smbls]");l||(l=c.createElement("style"),l.setAttribute("data-smbls",""),c.head.appendChild(l));let f=l.sheet;if(f){try{f.insertRule("*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }",0)}catch{}try{f.insertRule("h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }",1)}catch{}}}}if(e.app&&S(e.app))for(let c in e.app)t[c]===void 0&&(t[c]=e.app[c]);t.extends=hy(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await ky({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e);for(let c of e.plugins)if(typeof c.beforeCreate=="function")try{c.beforeCreate(t,e)}catch(l){console.error(`[smbls] plugin "${c.name||"?"}" beforeCreate error:`,l)}let s=e.document;if(!s||!s.createElement)return t;let i=e.parent||s.body;if(o)return Ik(zt,t,i,e,r,n);let a=zt(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return typeof window<"u"&&!e.document&&(window.__smblsApp=a),a},Ik=async(t,e,r,o,n,s)=>{let i=r.ownerDocument||document;s&&s.forEach(l=>{l.parentNode&&l.remove()});let a=[];for(let l of r.childNodes){if(l.nodeType===1){let f=l.tagName.toLowerCase();if(f==="script"||f==="link"||f==="style"||f==="svg"&&l.id)continue}a.push(l)}a.forEach(l=>l.remove()),i.querySelectorAll("[data-br]").forEach(l=>l.removeAttribute("data-br"));let c=t(e,r,o.key,{verbose:o.verbose,context:o,...o.domqlOptions});return $k(n),c},$k=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var pf=(t,e)=>W(t,S(e)?e:{}),Fk=t=>{if(typeof document>"u")return;let e=t.themeRoot||t.document&&t.document.documentElement||document.documentElement;if(!e||typeof e.setAttribute!="function")return;let r=t.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(r=s)}}catch{}let o=t.themeStorageKey;if(r==="auto"&&o&&typeof localStorage<"u")try{let s=localStorage.getItem(o);s&&(r=s)}catch{}let n=r==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():r;e.setAttribute("data-theme",n),t.globalTheme=r,t.themeRoot=e},Dk=()=>{if(typeof document>"u")return null;try{let t=document.querySelector('meta[name="symbols-runtime"]'),e=t&&t.getAttribute("content");return typeof e=="string"&&e?e:null}catch{return null}},Gb=t=>{let e=Dk();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},Kb=(t,e=Ee,r)=>{let o={...Ee,...pf(e,r)};return Gb(o),Fk(o),uf(t,o).then(s=>{if(kl(s,o),s.destroy=()=>js(s),s.onCreate&&s.onCreate(s,s.state,s.context,o),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})},JF=(t,e=Ee,r)=>{let o=Kb(t,e,r),n={...Ee,...pf(e,r)},s=n.key;return cy(o,s,{utils:Eo,...n}),o},QF=async(t,e=Ee,r)=>{let o={...Ee,...pf(e,r)};Gb(o);let n=e.key;await ay(n,o);let s=await uf(t,o);return kl(s,o),s.destroy=()=>js(s),o.onCreate&&await o.onCreate(s,s.state,s.context,o),s},tD=(t={},e=Ee,r)=>Kb({deps:{isUndefined:ut},...t},W({domqlOptions:{onlyResolveExtends:!0}},e),r);_l(pc);export{Eh as ANIMATION_PROPS,VO as ARIA_ROLES,Hh as ATTR_TRANSFORMS,Th as BLOCK_PROPS,Zt as CDN_PROVIDERS,Oa as CONFIG,le as CSS_NATIVE_COLOR_REGEX,it as CSS_PROPS_REGISTRY,Wr as CSS_UNITS,Ts as DEFAULT_CONFIG,mt as DEFAULT_CSS_PROPERTIES_LIST,_s as DELEGATED_EVENTS,dy as DESIGN_SYSTEM_OPTIONS,Bf as DOMQL_EVENTS,Fe as DOMQ_PROPERTIES,fw as DOM_EVENTS,nu as ENV,Se as FACTORY,$h as FLEX_PROPS,Oh as FONT_PROPS,Fh as GRID_PROPS,wc as HTML_ATTRIBUTES,eo as HTML_TAGS,wr as LIFECYCLE_EVENTS,Zr as METHODS,on as METHODS_EXL,Rh as MISC_PROPS,xh as MIXINS,Kt as NODE_ENV,On as OPTIONS,Ue as PACKAGE_MANAGER_TO_CDN,rn as PARSED_DOMQ_PROPERTIES,Ph as POSITION_PROPS,Le as PROPS_METHODS,At as REGISTRY,Cl as ROUTER_OPTIONS,jf as STATE_PROPERTIES,xs as SVG_TAGS,Ih as THEME_PROPS,As as TIMING_PROPS,Zo as TYPES,wa as UNIVERSAL_RESERVED_KEYS,uh as VALUE_TRANSFORMERS,fE as activateConfig,ea as addCaching,ta as addContext,mc as addDelegatedEvent,Iu as addExtend,vt as addExtends,Af as addItemAfterEveryElement,Es as addMethods,tn as addProtoToArray,Zi as addRef,NS as animation,rc as appendSVGSprite,nc as appendSvgIconsSprite,Kh as applyAttrTransforms,ey as applyCSS,tp as applyDependentState,Qa as applyDocument,aa as applyEvent,ca as applyEventUpdate,ks as applyExtends,oh as applyHeadings,Vh as applyInitialState,hr as applyMediaSequenceVars,kn as applyProps,sc as applyReset,Ma as applySequenceGlobalVars,Ge as applySequenceVars,Ya as applySpacingSequence,Wt as applyStateMethods,Ja as applyTimingSequence,Lh as applyTrueProps,qa as applyTypographySequence,xf as arrayContainsOtherArray,Tf as arraysEqual,fr as arrayzeValue,Ie as batch,LS as breakpoints,rs as buildImgSrcset,os as buildSourcesAndImg,ap as cache,_r as cacheNode,Np as call,zp as captureSnapshot,ph as changeGlobalTheme,hS as changeLightness,Ze as checkAttributeByTagName,Gh as checkEventFunctions,Xu as checkForStateTypes,Ka as checkIfBoxSize,ia as checkIfInherits,Pf as checkIfStringIsInArray,WS as class,Wf as clone,hn as cloneAndMergeArrayExtend,pu as cloneFunction,ES as color,be as colorStringToRgbaArray,Co as components,Tu as concatAddExtends,Na as convertSvgToSymbol,wd as copyJavaScriptToClipboard,_d as copyStringToClipboard,Kb as create,JF as createAsync,Xi as createBasedOnType,sx as createComputed,Wd as createConfig,Yw as createDefine,at as createEffect,Ku as createElement,Di as createElementExtends,mn as createExtends,ro as createExtendsFromKeys,ji as createExtendsStack,bs as createHTMLNode,du as createIfConditionFlag,Zu as createInheritedState,un as createKey,Zf as createNestedObject,Qu as createNestedObjectByKeyPath,Ai as createObjectWithoutPrototype,Ji as createParent,Qi as createPath,vn as createProps,Gi as createPropsStack,Gu as createRoot,op as createScope,Si as createScopeStore,ne as createSignal,tD as createSkeleton,fn as createSnapshotId,rw as createState,Mt as createStore,QF as createSync,Ye as css,Vd as cssMediaVars,Bd as cssVars,Nf as customDecodeURIComponent,Mf as customEncodeURIComponent,vf as cutArrayAfterValue,kf as cutArrayBeforeValue,dn as debounce,lu as debounceOnContext,Lf as decodeNewlines,Y as deepClone,Yf as deepContains,Jn as deepDefaults,Nt as deepDestringifyFunctions,Fi as deepExtend,W as deepMerge,ae as deepMergeExtends,nn as deepStringifyFunctions,To as defaultDefine,Lp as defineSetter,an as destringifyGlobalScope,js as destroy,Jp as detectHeightOnInit,eu as detectInfiniteLoop,Sr as detectTag,MS as devices,kr as dispose,Df as encodeNewlines,lr as error,ou as excludeKeysFromObject,G as exec,UO as executeAttr,hO as exetuteClassPerComponent,Ou as extendCachedRegistry,yn as extendStackRegistry,xn as extractArrayExtend,WO as extractConditionalAttrs,va as fetchLibraryData,td as fibonacciNumberByIndex,Of as filterArrays,Rf as filterArraysFast,zO as filterAttributesByTagName,Bi as finalizeExtends,ka as findClosestNumber,gd as findClosestNumberInFactory,Yd as findHeadingLetter,La as findHeadings,sa as findInheritedState,$f as findKeyPosition,oo as flattenExtend,SS as font,kS as fontFace,_S as fontFamily,wS as fontFamilyTypes,Xp as formatDate,Pi as generateHash,ln as generateKey,pd as generateMetaTags,Bt as generateSequence,ZS as generateSequencePosition,fs as generateSprite,Fa as generateSubSequence,Ip as get,A as getActiveConfig,mh as getActiveDocument,Ws as getActiveLang,Jt as getCDNUrl,P_ as getCacheSize,Du as getCapitalCaseKeys,ho as getCdnProviderFromConfig,na as getChildStateInKey,Mn as getChildren,J as getColor,Dd as getColorShade,Wn as getContext,Su as getCookie,Yn as getDB,bo as getDefaultOrFirstKey,Ed as getEmotionStylesheet,$u as getExtendsInElement,gn as getExtendsStack,$i as getExtendsStackRegistry,qe as getFnPrefixAndValue,yS as getFontFace,xo as getFontFaceEach,jd as getFontFaceEachString,Aa as getFontFaceString,Ha as getFontFamily,Md as getFontFormat,Ga as getFontSizeByKey,Sf as getFrequencyInArray,bn as getHashedExtend,Kp as getImportMapScript,tu as getInObjectByPath,Al as getLanguages,Pl as getLocalStateLang,wu as getLocalStorage,gt as getMediaColor,te as getMediaTheme,cu as getNev,zr as getObserver,dd as getPageMetadata,oa as getParentStateInKey,Nn as getPath,Xn as getQuery,Fp as getRef,pr as getRgbTone,Vn as getRoot,Un as getRootContext,zn as getRootData,Bn as getRootState,ra as getRootStateInKey,Da as getSequenceValue,Kd as getSequenceValueBySymbols,we as getSequenceValuePropertyPair,Za as getShadow,cx as getSignals,fe as getSpacingBasedOnRatio,ft as getSpacingByKey,Lu as getSpreadChildren,$a as getSubratio,Ia as getSubratioDifference,Ut as getSystemGlobalTheme,Va as getTheme,Vt as getTimingByKey,ee as getTimingFunction,mf as global,TS as gradient,US as grid,Jr as hasFunction,Qr as hasHandlerPlugin,qf as hasOwnProperty,fS as hexToRgb,Pd as hexToRgbArray,pS as hexToRgba,Fd as hslToRgb,PS as icons,Mi as inheritChildExtends,Li as inheritChildPropsExtends,Cn as inheritParentProps,Ni as inheritRecursiveChildExtends,Ae as init,Iy as initPolyglot,Wu as initProps,st as injectGlobal,wt as is,E as isArray,_i as isBoolean,rt as isCSSVar,Mu as isContextComponent,ru as isCyclic,St as isDOMNode,ki as isDate,_t as isDefined,je as isDevelopment,vi as isEmpty,Gf as isEmptyObject,Ci as isEqualDeep,C as isFunction,ss as isGoogleFontsUrl,Xo as isHtmlElement,au as isLocal,Bp as isMethod,bu as isMobile,he as isNode,bf as isNot,ir as isNotProduction,wi as isNull,se as isNumber,S as isObject,D as isObjectLike,rd as isPhoto,Ne as isProduction,xe as isResolvedColor,Ur as isScalingUnit,iu as isStaging,Ju as isState,dt as isStore,_ as isString,uu as isStringFunction,Ss as isSvgTag,Ei as isTest,su as isTesting,sw as isTracking,ut as isUndefined,Wp as isUniversallyReservedKey,Au as isValidHtmlTag,ys as isValidTag,jw as isWasmLoaded,Gr as joinArrays,Pu as jointStacks,ms as keyframes,Sa as keys,ad as loadCssFile,cd as loadJavascript,nd as loadJavascriptFile,id as loadJavascriptFileEmbedSync,sd as loadJavascriptFileSync,ld as loadRemoteCSS,go as loadRemoteScript,Tl as loadTranslations,Nw as loadWasm,Mp as log,mu as logGroupIf,gu as logIf,Op as lookdown,Rp as lookdownAll,Tp as lookup,or as lowercaseFirstLetter,Kf as makeObjectWithoutPrototype,zf as map,Sn as mapStringsWithContextComponents,ce as matchesComponentNaming,vS as media,fu as memoize,Q as merge,Qn as mergeSharedLibraries,lS as mixTwoColors,dS as mixTwoRgb,Ld as mixTwoRgba,qn as nextElement,mo as normalizeLibraryKey,_e as numToLetterMap,sn as objectToString,wn as objectizeStringProperty,ns as opacify,cn as overwrite,kt as overwriteDeep,sr as overwriteShallow,ep as overwriteState,_a as parse,We as parseColorToken,Dn as parseDeep,Wi as pickupElementFromProps,Ui as pickupPropsFromElement,Hs as polyglotFunctions,Il as polyglotPlugin,nt as popConfig,Gn as previousElement,Uu as propExists,Hi as propertizeElement,zu as propertizeUpdate,lt as pushConfig,ws as registerEvent,ty as reinit,Cs as remove,kd as removeChars,_u as removeCookie,yc as removeDelegatedEvent,En as removeDuplicateProps,Kr as removeDuplicatesInArray,_f as removeFromArray,Xf as removeFromObject,Jf as removeNestedKeyByPath,Qo as removeValueFromArray,Cf as removeValueFromArrayAll,Ef as reorderArrayByValues,rr as replaceLiteralsWithObjectFields,Ff as replaceOctalEscapeSequences,Ct as resolveAsset,ac as resolveColorsInGradient,Wh as resolveFileSource,Qt as resolveFileUrl,to as resolveHandler,Xe as resolvePropValue,xd as resolveSharedLibraries,mS as returnSubThemeOrDefault,Yi as returnValueAsText,Id as rgbArrayToHex,$d as rgbToHSL,uS as rgbToHex,Yt as runPluginHook,rh as runThroughMedia,as as scratchDefaultConfig,hs as scratchSystem,gr as scratchUtils,yf as self,IS as semanticIcons,He as sequence,wo as set,Ud as setActiveConfig,A_ as setActiveDocument,jn as setActiveRootState,KP as setClass,xO as setClassname,mr as setColor,xu as setCookie,_l as setCssEngineHook,Ca as setCustomFont,dr as setCustomFontMedia,__ as setEach,Wa as setFont,ps as setFontFamily,is as setFontImport,yr as setGradient,Ii as setHashedExtend,Nd as setInCustomFontMedia,Qf as setInObjectByPath,Ol as setLang,ku as setLocalStorage,Ua as setMediaTheme,xa as setNodeStyles,nx as setObserver,$p as setProps,An as setPropsPrototype,ds as setSVG,Pa as setScalingVar,br as setShadow,qd as setSubScalingVar,oc as setSvgIcon,za as setTheme,S_ as setValue,JS as setVariables,pc as setWasmEngine,RS as shadow,AS as spacing,Xa as splitSpacedValue,ur as splitTopLevelCommas,fh as splitTransition,Ln as spotByPath,yo as srcsetFor,en as stringIncludesAny,Hf as stringToObject,jS as svg,BS as svgData,wf as swapItemsInArray,Tn as syncProps,VS as templates,OS as theme,FS as timing,Ta as toCamel,ts as toCamelCase,es as toDashCase,Cd as toDescriptionCase,vd as toTitleCase,qp as toggleFullscreen,ch as transformBackgroundImage,ke as transformBorder,lc as transformBorderRadius,ic as transformBoxShadow,Z_ as transformClassname,cc as transformDuration,ah as transformShadow,ot as transformSize,L as transformSizeRatio,ih as transformTextStroke,b_ as transformTransition,Mh as transformersByPrefix,lh as transfromGap,El as translate,Be as triggerEventOn,ip as triggerEventOnUpdate,If as trimStringFromSymbols,Ea as typography,bS as unit,Jo as unstackArrayOfObjects,vs as update,Hu as updateProps,GP as updateVars,Rl as upsertTranslation,It as useCssInProps,nw as useHostState,Y_ as usePropsAsCSS,X_ as useSelectorsAsCSS,Kn as variables,qS as vars,po as verbose,Hn as warn,k as window};
79
+ `}return e.node.style=s,e.Span.node.innerText=r.focusKey,!1}}},Xb={name:"inspect",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(uf):t.extends?t.extends=[t.extends,uf]:t.extends=[uf]}};var Hk=async(t,e={})=>{let r=e.symbolsConfig,n=r?.owner&&r?.key?`${r.owner}--${r.key}`:r?.key,o=e.key=e.key||n||(w(t)?t:"smblsapp");if(e.define=e.define||Tn,e.cssPropsRegistry=ct,e.window=Sy(e),e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(u=>typeof u=="string")){let{resolveSharedLibraries:u}=await Promise.resolve().then(()=>(O(),Id));e.sharedLibraries=await u(e.sharedLibraries)}Py(e)}let[s,i]=Ty(o,e);e.designSystem=s,e.registry=i,e.cases||(e.cases={}),e.shorthand&&Ks.prepareContext(e);let a=Oy(t,e);e.state=a,jo(a),e.pages=Ry(t,e),e.components=_y(e),e.utils=wy(e),Ue[e.packageManager]&&(e.dependencies=await vy(e)),e.methods=ky(e),e.routerOptions=iy(t,e),e.defaultExtends=[Is],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope&&_(e.globalScope)&&(e.globalScope=io(e.globalScope));let c=(p,u)=>{let d=u?p[u]:p;if(!_(d))return;let h=jt(d);try{Object.assign(d,h)}catch(g){if(u)p[u]=h;else throw g}};c(t),c(e,"components"),c(e,"pages"),c(e,"functions"),c(e,"methods"),c(e,"snippets"),c(e,"app"),e.fetch&&e.fetch.__resolved&&delete e.fetch.__resolved,e.db&&e.db.__resolved&&delete e.db.__resolved;let l=p=>e.plugins.some(u=>u.name===p);if(e.polyglot&&!l("polyglot")){e.plugins.push(Il);for(let p in Hs)p in e.functions||(e.functions[p]=Hs[p])}if(l("helmet")||e.plugins.push(uy),e.fetch&&!l("fetch")&&e.plugins.push(ya),e.designSystem?.typography?.useCapsize!==!1&&!l("capsize")&&(e.plugins.push(Ly),e.cssPropsRegistry.useCapsize=Dy),e.shorthand&&!l("shorthand")&&e.plugins.push(Ks),e.analyze&&!l("analyze")){let p=e.analyze===!0?{}:e.analyze;e.analyze=Kl(p),e.plugins.push(Ln)}return e.sync!==!1&&!l("sync")&&e.plugins.push(qb),e.inspect&&!l("inspect")&&e.plugins.push(Xb),(e.notifications===!0||e.editor&&e.editor.verbose===!0)&&e.notifications!==!1&&!l("notifications")&&e.plugins.push(Gb),e},df=async(t,e)=>{_(e)||(e={}),he(t)?(t={},e.parent=t):w(t)?(t={},e.key=t):_(t)||(t={});let r=e.window||(typeof window<"u"?window:null),n=r?.__BRENDER__,o=null;if(n){let c=e.document||(typeof document<"u"?document:null);c&&(o=Array.from(c.head.querySelectorAll("style")))}if(await Hk(t,e),e.useReset!==!1){let c=e.document||(typeof document<"u"?document:null);if(c){let l=c.head.querySelector("style[data-smbls]");l||(l=c.createElement("style"),l.setAttribute("data-smbls",""),c.head.appendChild(l));let f=l.sheet;if(f){try{f.insertRule("*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }",0)}catch{}try{f.insertRule("h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }",1)}catch{}}}}if(e.app&&_(e.app))for(let c in e.app)t[c]===void 0&&(t[c]=e.app[c]);t.extends=my(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await Cy({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e);for(let c of e.plugins)if(typeof c.beforeCreate=="function")try{c.beforeCreate(t,e)}catch(l){console.error(`[smbls] plugin "${c.name||"?"}" beforeCreate error:`,l)}let s=e.document;if(!s||!s.createElement)return t;let i=e.parent||s.body;if(n)return qk(Ut,t,i,e,r,o);let a=Ut(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return typeof window<"u"&&!e.document&&(window.__smblsApp=a),a},qk=async(t,e,r,n,o,s)=>{let i=r.ownerDocument||document;s&&s.forEach(l=>{l.parentNode&&l.remove()});let a=[];for(let l of r.childNodes){if(l.nodeType===1){let f=l.tagName.toLowerCase();if(f==="script"||f==="link"||f==="style"||f==="svg"&&l.id)continue}a.push(l)}a.forEach(l=>l.remove()),i.querySelectorAll("[data-br]").forEach(l=>l.removeAttribute("data-br"));let c=t(e,r,n.key,{verbose:n.verbose,context:n,...n.domqlOptions});return Gk(o),c},Gk=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var hf=(t,e)=>G(t,_(e)?e:{}),Kk=t=>{if(typeof document>"u")return;let e=t.themeRoot||t.document&&t.document.documentElement||document.documentElement;if(!e||typeof e.setAttribute!="function")return;let r=t.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(r=s)}}catch{}let n=t.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;e.setAttribute("data-theme",o),t.globalTheme=r,t.themeRoot=e},Xk=()=>{if(typeof document>"u")return null;try{let t=document.querySelector('meta[name="symbols-runtime"]'),e=t&&t.getAttribute("content");return typeof e=="string"&&e?e:null}catch{return null}},Yb=t=>{let e=Xk();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},Zb=(t,e=Ee,r)=>{let n={...Ee,...hf(e,r)};return Yb(n),Kk(n),df(t,n).then(s=>{if(kl(s,n),s.destroy=()=>js(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})},mD=(t,e=Ee,r)=>{let n=Zb(t,e,r),o={...Ee,...hf(e,r)},s=o.key;return fy(n,s,{utils:En,...o}),n},yD=async(t,e=Ee,r)=>{let n={...Ee,...hf(e,r)};Yb(n);let o=e.key;await ly(o,n);let s=await df(t,n);return kl(s,n),s.destroy=()=>js(s),n.onCreate&&await n.onCreate(s,s.state,s.context,n),s},bD=(t={},e=Ee,r)=>Zb({deps:{isUndefined:ht},...t},G({domqlOptions:{onlyResolveExtends:!0}},e),r);_l(pc);export{Oh as ANIMATION_PROPS,eR as ARIA_ROLES,Gh as ATTR_TRANSFORMS,Rh as BLOCK_PROPS,Zt as CDN_PROVIDERS,Oa as CONFIG,le as CSS_NATIVE_COLOR_REGEX,ct as CSS_PROPS_REGISTRY,Wr as CSS_UNITS,Ts as DEFAULT_CONFIG,xt as DEFAULT_CSS_PROPERTIES_LIST,_s as DELEGATED_EVENTS,gy as DESIGN_SYSTEM_OPTIONS,zf as DOMQL_EVENTS,Fe as DOMQ_PROPERTIES,dw as DOM_EVENTS,iu as ENV,Se as FACTORY,Dh as FLEX_PROPS,Ph as FONT_PROPS,Lh as GRID_PROPS,wc as HTML_ATTRIBUTES,en as HTML_TAGS,wr as LIFECYCLE_EVENTS,Zr as METHODS,no as METHODS_EXL,Ih as MISC_PROPS,_h as MIXINS,Kt as NODE_ENV,Oo as OPTIONS,Ue as PACKAGE_MANAGER_TO_CDN,ro as PARSED_DOMQ_PROPERTIES,$h as POSITION_PROPS,Le as PROPS_METHODS,Ot as REGISTRY,Cl as ROUTER_OPTIONS,Vf as STATE_PROPERTIES,xs as SVG_TAGS,Fh as THEME_PROPS,As as TIMING_PROPS,Zn as TYPES,wa as UNIVERSAL_RESERVED_KEYS,dh as VALUE_TRANSFORMERS,vA as activateConfig,ea as addCaching,ta as addContext,mc as addDelegatedEvent,Fu as addExtend,Et as addExtends,Tf as addItemAfterEveryElement,Es as addMethods,to as addProtoToArray,Zi as addRef,VS as animation,rc as appendSVGSprite,oc as appendSvgIconsSprite,Yh as applyAttrTransforms,ny as applyCSS,rp as applyDependentState,Qa as applyDocument,aa as applyEvent,ca as applyEventUpdate,ks as applyExtends,sh as applyHeadings,Uh as applyInitialState,hr as applyMediaSequenceVars,ko as applyProps,sc as applyReset,Ma as applySequenceGlobalVars,Ge as applySequenceVars,Xa as applySpacingSequence,Ht as applyStateMethods,Ja as applyTimingSequence,Nh as applyTrueProps,qa as applyTypographySequence,_f as arrayContainsOtherArray,Rf as arraysEqual,fr as arrayzeValue,Ie as batch,jS as breakpoints,rs as buildImgSrcset,ns as buildSourcesAndImg,lp as cache,_r as cacheNode,Bp as call,Wp as captureSnapshot,hh as changeGlobalTheme,yS as changeLightness,Ze as checkAttributeByTagName,Xh as checkEventFunctions,Ju as checkForStateTypes,Ka as checkIfBoxSize,ia as checkIfInherits,$f as checkIfStringIsInArray,GS as class,qf as clone,ho as cloneAndMergeArrayExtend,hu as cloneFunction,RS as color,be as colorStringToRgbaArray,Cn as components,Ru as concatAddExtends,Na as convertSvgToSymbol,vd as copyJavaScriptToClipboard,kd as copyStringToClipboard,Zb as create,mD as createAsync,Yi as createBasedOnType,cx as createComputed,qd as createConfig,Jw as createDefine,lt as createEffect,Yu as createElement,Di as createElementExtends,mo as createExtends,rn as createExtendsFromKeys,ji as createExtendsStack,bs as createHTMLNode,gu as createIfConditionFlag,Qu as createInheritedState,fo as createKey,Qf as createNestedObject,ep as createNestedObjectByKeyPath,Ai as createObjectWithoutPrototype,Ji as createParent,Qi as createPath,vo as createProps,Gi as createPropsStack,Xu as createRoot,sp as createScope,Si as createScopeStore,oe as createSignal,bD as createSkeleton,lo as createSnapshotId,sw as createState,Nt as createStore,yD as createSync,Xe as css,Ud as cssMediaVars,zd as cssVars,Bf as customDecodeURIComponent,jf as customEncodeURIComponent,Af as cutArrayAfterValue,Cf as cutArrayBeforeValue,po as debounce,uu as debounceOnContext,Nf as decodeNewlines,Q as deepClone,Zf as deepContains,Jo as deepDefaults,jt as deepDestringifyFunctions,Fi as deepExtend,G as deepMerge,ae as deepMergeExtends,oo as deepStringifyFunctions,Tn as defaultDefine,Np as defineSetter,io as destringifyGlobalScope,js as destroy,td as detectHeightOnInit,nu as detectInfiniteLoop,Sr as detectTag,BS as devices,kr as dispose,Mf as encodeNewlines,lr as error,su as excludeKeysFromObject,Y as exec,nR as executeAttr,TO as exetuteClassPerComponent,Pu as extendCachedRegistry,yo as extendStackRegistry,xo as extractArrayExtend,oR as extractConditionalAttrs,va as fetchLibraryData,rd as fibonacciNumberByIndex,Pf as filterArrays,If as filterArraysFast,rR as filterAttributesByTagName,Bi as finalizeExtends,ka as findClosestNumber,yd as findClosestNumberInFactory,Zd as findHeadingLetter,La as findHeadings,sa as findInheritedState,Df as findKeyPosition,nn as flattenExtend,kS as font,AS as fontFace,vS as fontFamily,CS as fontFamilyTypes,Jp as formatDate,Pi as generateHash,co as generateKey,hd as generateMetaTags,Vt as generateSequence,t_ as generateSequencePosition,fs as generateSprite,Fa as generateSubSequence,Fp as get,A as getActiveConfig,bh as getActiveDocument,Ws as getActiveLang,Jt as getCDNUrl,F_ as getCacheSize,Mu as getCapitalCaseKeys,hn as getCdnProviderFromConfig,oa as getChildStateInKey,Mo as getChildren,tt as getColor,Md as getColorShade,Wo as getContext,wu as getCookie,Xo as getDB,bn as getDefaultOrFirstKey,Od as getEmotionStylesheet,Du as getExtendsInElement,go as getExtendsStack,$i as getExtendsStackRegistry,qe as getFnPrefixAndValue,SS as getFontFace,xn as getFontFaceEach,Vd as getFontFaceEachString,Aa as getFontFaceString,Ha as getFontFamily,jd as getFontFormat,Ga as getFontSizeByKey,wf as getFrequencyInArray,bo as getHashedExtend,Yp as getImportMapScript,ru as getInObjectByPath,Al as getLanguages,Pl as getLocalStateLang,vu as getLocalStorage,bt as getMediaColor,te as getMediaTheme,fu as getNev,zr as getObserver,gd as getPageMetadata,na as getParentStateInKey,No as getPath,Yo as getQuery,Lp as getRef,pr as getRgbTone,Vo as getRoot,Uo as getRootContext,zo as getRootData,Bo as getRootState,ra as getRootStateInKey,Da as getSequenceValue,Yd as getSequenceValueBySymbols,we as getSequenceValuePropertyPair,Za as getShadow,ux as getSignals,fe as getSpacingBasedOnRatio,pt as getSpacingByKey,Nu as getSpreadChildren,$a as getSubratio,Ia as getSubratioDifference,Wt as getSystemGlobalTheme,Va as getTheme,zt as getTimingByKey,ee as getTimingFunction,bf as global,PS as gradient,qS as grid,Jr as hasFunction,Qr as hasHandlerPlugin,Kf as hasOwnProperty,dS as hexToRgb,$d as hexToRgbArray,gS as hexToRgba,Ld as hslToRgb,FS as icons,Mi as inheritChildExtends,Li as inheritChildPropsExtends,Co as inheritParentProps,Ni as inheritRecursiveChildExtends,Ae as init,Fy as initPolyglot,qu as initProps,at as injectGlobal,Ct as is,E as isArray,_i as isBoolean,ot as isCSSVar,ju as isContextComponent,ou as isCyclic,kt as isDOMNode,ki as isDate,vt as isDefined,je as isDevelopment,vi as isEmpty,Xf as isEmptyObject,Ci as isEqualDeep,C as isFunction,ss as isGoogleFontsUrl,Yn as isHtmlElement,lu as isLocal,zp as isMethod,Su as isMobile,he as isNode,Sf as isNot,ir as isNotProduction,wi as isNull,se as isNumber,_ as isObject,N as isObjectLike,od as isPhoto,Ne as isProduction,xe as isResolvedColor,Ur as isScalingUnit,cu as isStaging,tp as isState,mt as isStore,w as isString,du as isStringFunction,Ss as isSvgTag,Ei as isTest,au as isTesting,cw as isTracking,ht as isUndefined,qp as isUniversallyReservedKey,Tu as isValidHtmlTag,ys as isValidTag,zw as isWasmLoaded,Gr as joinArrays,$u as jointStacks,ms as keyframes,Sa as keys,ld as loadCssFile,fd as loadJavascript,id as loadJavascriptFile,cd as loadJavascriptFileEmbedSync,ad as loadJavascriptFileSync,ud as loadRemoteCSS,gn as loadRemoteScript,Tl as loadTranslations,Vw as loadWasm,jp as log,bu as logGroupIf,yu as logIf,Pp as lookdown,Ip as lookdownAll,Rp as lookup,nr as lowercaseFirstLetter,Yf as makeObjectWithoutPrototype,Wf as map,So as mapStringsWithContextComponents,ce as matchesComponentNaming,ES as media,pu as memoize,et as merge,Qo as mergeSharedLibraries,pS as mixTwoColors,mS as mixTwoRgb,Nd as mixTwoRgba,qo as nextElement,mn as normalizeLibraryKey,_e as numToLetterMap,so as objectToString,wo as objectizeStringProperty,os as opacify,ao as overwrite,At as overwriteDeep,sr as overwriteShallow,np as overwriteState,_a as parse,We as parseColorToken,Do as parseDeep,Wi as pickupElementFromProps,Ui as pickupPropsFromElement,Hs as polyglotFunctions,Il as polyglotPlugin,it as popConfig,Go as previousElement,Hu as propExists,Hi as propertizeElement,Wu as propertizeUpdate,ut as pushConfig,ws as registerEvent,ry as reinit,Cs as remove,Cd as removeChars,ku as removeCookie,yc as removeDelegatedEvent,Eo as removeDuplicateProps,Kr as removeDuplicatesInArray,kf as removeFromArray,Jf as removeFromObject,tu as removeNestedKeyByPath,Qn as removeValueFromArray,Ef as removeValueFromArrayAll,Of as reorderArrayByValues,rr as replaceLiteralsWithObjectFields,Lf as replaceOctalEscapeSequences,Tt as resolveAsset,ac as resolveColorsInGradient,qh as resolveFileSource,Qt as resolveFileUrl,tn as resolveHandler,Ye as resolvePropValue,_d as resolveSharedLibraries,xS as returnSubThemeOrDefault,Xi as returnValueAsText,Fd as rgbArrayToHex,Dd as rgbToHSL,hS as rgbToHex,Xt as runPluginHook,oh as runThroughMedia,as as scratchDefaultConfig,hs as scratchSystem,gr as scratchUtils,xf as self,DS as semanticIcons,He as sequence,wn as set,Hd as setActiveConfig,O_ as setActiveDocument,jo as setActiveRootState,cI as setClass,$O as setClassname,mr as setColor,_u as setCookie,_l as setCssEngineHook,Ca as setCustomFont,dr as setCustomFontMedia,v_ as setEach,Wa as setFont,ps as setFontFamily,is as setFontImport,yr as setGradient,Ii as setHashedExtend,Bd as setInCustomFontMedia,eu as setInObjectByPath,Ol as setLang,Cu as setLocalStorage,Ua as setMediaTheme,xa as setNodeStyles,ax as setObserver,Dp as setProps,Ao as setPropsPrototype,ds as setSVG,Pa as setScalingVar,br as setShadow,Kd as setSubScalingVar,nc as setSvgIcon,za as setTheme,k_ as setValue,e_ as setVariables,pc as setWasmEngine,$S as shadow,OS as spacing,Ya as splitSpacedValue,ur as splitTopLevelCommas,ph as splitTransition,Lo as spotByPath,yn as srcsetFor,eo as stringIncludesAny,Gf as stringToObject,zS as svg,US as svgData,vf as swapItemsInArray,To as syncProps,WS as templates,IS as theme,MS as timing,Ta as toCamel,ts as toCamelCase,es as toDashCase,Ed as toDescriptionCase,Ad as toTitleCase,Kp as toggleFullscreen,fh as transformBackgroundImage,ke as transformBorder,lc as transformBorderRadius,ic as transformBoxShadow,tw as transformClassname,cc as transformDuration,lh as transformShadow,st as transformSize,j as transformSizeRatio,ch as transformTextStroke,__ as transformTransition,jh as transformersByPrefix,uh as transfromGap,El as translate,Be as triggerEventOn,cp as triggerEventOnUpdate,Ff as trimStringFromSymbols,Ea as typography,_S as unit,Jn as unstackArrayOfObjects,vs as update,Gu as updateProps,aI as updateVars,Rl as upsertTranslation,Dt as useCssInProps,aw as useHostState,J_ as usePropsAsCSS,Q_ as useSelectorsAsCSS,Ko as variables,XS as vars,dn as verbose,Ho as warn,k as window};