smbls 3.14.751 → 3.14.752
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/smbls.cjs +31 -31
- package/dist/smbls.embed.iife.js +6 -6
- package/dist/smbls.esm.js +31 -31
- package/dist/smbls.iife-string.js +2 -2
- package/dist/smbls.iife.js +31 -31
- package/package.json +3 -3
package/dist/smbls.esm.js
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
var
|
|
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 u=r[f].slice(s+e.length);if(u.includes("{")||u.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}},
|
|
3
|
-
`).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$")
|
|
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(
|
|
5
|
-
`;for(let l of i)j(l)&&l!==null?o+=`${n} ${
|
|
1
|
+
var mw=Object.create;var Nl=Object.defineProperty;var yw=Object.getOwnPropertyDescriptor;var bw=Object.getOwnPropertyNames;var xw=Object.getPrototypeOf,_w=Object.prototype.hasOwnProperty;var L=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(n){throw r=[n],n}};var jl=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},$=(t,e)=>{for(var r in e)Nl(t,r,{get:e[r],enumerable:!0})},Sw=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of bw(e))!_w.call(t,o)&&o!==r&&Nl(t,o,{get:()=>e[o],enumerable:!(n=yw(e,o))||n.enumerable});return t};var ww=(t,e,r)=>(r=t!=null?mw(xw(t)):{},Sw(e||!t||!t.__esModule?Nl(r,"default",{value:t,enumerable:!0}):r,t));var ef,rf,k,K,ko=L(()=>{"use strict";ef=globalThis,rf=globalThis,k=globalThis,K=k.document});var Me,vo,Dt,Co=L(()=>{"use strict";ko();Me=t=>(typeof Node=="object"?t instanceof k.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,vo=t=>(typeof HTMLElement=="object"?t instanceof k.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,Dt=t=>typeof k<"u"&&(k.Node&&t instanceof k.Node||k.Window&&t instanceof k.Window||t===k||K!==void 0&&t===K)});var w,S,we,C,ia,aa,T,ca,j,wt,xt,Ao,Lt,nf,_t=L(()=>{"use strict";Co();w=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,S=t=>typeof t=="string",we=t=>typeof t=="number",C=t=>typeof t=="function",ia=t=>t===!0||t===!1,aa=t=>t===null,T=t=>Array.isArray(t),ca=t=>t instanceof Date,j=t=>t===null?!1:typeof t=="object",wt=t=>t!==void 0,xt=t=>t===void 0,Ao={boolean:ia,array:T,object:w,string:S,date:ca,number:we,null:aa,function:C,objectLike:j,node:Me,htmlElement:vo,defined:wt},Lt=t=>(...e)=>e.some(r=>Ao[r](t)),nf=t=>(...e)=>!e.some(r=>Ao[r](t))});var of,sf,af,cf,ln,Eo,lf,ff,To,uf,df,pf,hf,gf,mf,yf,fn,Oo,un=L(()=>{"use strict";Ne();_t();of=(t,e)=>e.every(r=>t.includes(r)),sf=(t,e)=>{let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r},af=(t,e)=>{if(S(e)&&(e=parseInt(e)),we(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},cf=(t,e,r)=>{e<0||r<0||e>=t.length||r>=t.length||([t[e],t[r]]=[t[r],t[e]])},ln=(...t)=>[].concat(...t),Eo=(t,e=[])=>t.reduce((r,n)=>Y(r,it(n,{exclude:e}),e),{}),lf=(t,e)=>{let r=t.indexOf(e);return r!==-1?t.slice(0,r):t},ff=(t,e)=>{if(!T(t))return;let r=t.indexOf(e);return r!==-1?t.slice(r+1):t},To=(t,e)=>{let r=t.indexOf(e);if(r>-1){let n=[...t];return n.splice(r,1),n}return t},uf=(t,e)=>t.filter(r=>r!==e),df=(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},pf=(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},hf=(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},gf=(t,e)=>t.filter(r=>!e.includes(r)),mf=(t,e)=>{let r=new Set(e);return t.filter(n=>!r.has(n))},yf=(t,e)=>{if(!t)return 0;let r=0;for(let n=0;n<e.length;n++)t.includes(e[n])&&r++;return r},fn=t=>T(t)?[...new Set(t)]:t,Oo=(t,e)=>{for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!1,configurable:!0,writable:!0})}});function Dr(t,e,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!t.includes(o))return t;let s=Rw[n],i=e||this.state||{},a=this;return t.replace(s,(c,l,f,u)=>{let d=f.trim();if(u){let h=a?.context,g=h?.functions?.[u]||h?.utils?.[u]||h?.methods?.[u]||h?.snippets?.[u]||a?.[u];if(g&&typeof g=="function")try{return String(g.call(a,d)??"")}catch{return""}return""}if(l){let h=(l.match(/\.\.\//g)||[]).length,g=i;for(let m=0;m<h;m++){if(!g||!g.parent)return"";g=g.parent}if(d==="parent")return String(g.value??"");let p=Ro(g,d);return String(p??"")}else{let h=Ro(i,d);if(h!=null)return String(h);let g=a?.context?.polyglot;if(g?.translations){let p=i?.root?.lang||i?.lang||a?.context?.state?.lang||g.defaultLang||"en",m=g.translations[p];if(m){let x=Ro(m,d);if(x!=null&&typeof x!="object")return String(x);for(let y in m){let _=m[y];if(_&&typeof _=="object"&&!Array.isArray(_)){let v=Ro(_,d);if(v!=null&&typeof v!="object")return String(v)}}}let b=Ro(g.translations,d);if(b!=null&&typeof b!="object")return String(b)}return""}})}var Po,bf,Rw,Ro,Lr,xf,Pw,_f,Sf,wf,$w,kf,vf,$o=L(()=>{"use strict";Po=(t,e)=>{for(let r of e)if(t.includes(r))return!0;return!1},bf=(t,e)=>{let r=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(r,"")},Rw={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Ro=(t,e)=>e.split(".").reduce((r,n)=>r?.[n],t);Lr=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,xf=(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 u=r[f].slice(s+e.length);if(u.includes("{")||u.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}},Pw=/\\([0-7]{1,3})/g,_f=t=>t.replace(Pw,(e,r)=>String.fromCharCode(parseInt(r,8))),Sf=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),wf=t=>t.replace(/\/\/\/\/\/n/g,`
|
|
3
|
+
`).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),$w=/[^a-zA-Z0-9\s]/g,kf=t=>t.replace($w,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),vf=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var tr,Io,Cf,Fr,er,dn,Do,Af,pn=L(()=>{"use strict";tr=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"]),Io=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),Cf=["ref","parent","__element","__depends","__ref","__children","root"],Fr=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"]),er=new Set(["update","__element"]),dn=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"]),Do=new Set(["node","context","extends","__element","__ref",...dn,...Fr,...er]),Af=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var rm,Mr,ot,Ef,ct,Y,om,Tf,it,Lo,Iw,Fo,Dw,Lw,Fw,ke,Mw,Nw,nm,Jt,jw,Bw,Vw,Mo,Of,Rf,la,Pf,$f,No,Nr,Ft,fa,Uw,If,Df,ua,Lf,Ff,Mf,Nf,jf,Bf,Vf,Ne=L(()=>{"use strict";ko();_t();un();$o();Co();pn();rm="production",Mr=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,ot=(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&&(T(t)||w(t)&&!Dt(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 ot(i,e,r,n)}}return t},Ef=(t,e,r)=>{for(let n in e)t[n]=ot(e[n],r)},ct=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Mr(o)||(n?r.has(o):r.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},Y=(t,e,r=Do)=>om(t,e,r,null),om=(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)||Mr(s)||s==="constructor"||s==="prototype"||(o?r.has(s):r.includes(s)))continue;let i=t[s],a=e[s];if(j(i)&&j(a)){let c=n||[];c.push(t,e),om(i,a,r,c),c.length-=2}else i===void 0&&(t[s]=a)}return t},Tf=(t,e=[])=>{let r=e instanceof Set,n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(Mr(o)||(r?e.has(o):e.includes(o))||(n[o]=t[o]));return n},it=(t,e={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,visited:s=new WeakMap,handleExtends:i=!1}=e;if(!j(t)||Dt(t))return t;if(s.has(t))return s.get(t);let a=r instanceof Set?r:r.length>3?new Set(r):null,c=u=>a?a.has(u):r.includes(u),l=T(t)?[]:{};s.set(t,l);let f=[[t,l]];for(;f.length;){let[u,d]=f.pop();for(let h in u){if(!Object.prototype.hasOwnProperty.call(u,h)||Mr(h)||h==="__proto__"||c(h))continue;let g=u[h];if(!(n&&g===void 0)&&!(o&&g===null)){if(Dt(g)){d[h]=g;continue}if(i&&h==="extends"&&T(g)){d[h]=Eo(g,r);continue}if(C(g)){d[h]=g;continue}if(j(g))if(s.has(g))d[h]=s.get(g);else{let p=T(g)?[]:{};s.set(g,p),d[h]=p,f.push([g,p])}else d[h]=g}}}return l},Lo=(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(w(n))e[r]={},Lo(n,e[r]);else if(T(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];w(i)?(o[s]={},Lo(i,o[s])):C(i)?o[s]=i.toString():o[s]=i}}else e[r]=n}return e},Iw=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),Fo=(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(Iw.has(s[l])){a=!0;break}let c=a?`'${s}'`:s;if(o+=`${n} ${c}: `,T(i)){o+=`[
|
|
5
|
+
`;for(let l of i)j(l)&&l!==null?o+=`${n} ${Fo(l,e+2)},
|
|
6
6
|
`:S(l)?o+=`${n} '${l}',
|
|
7
7
|
`:o+=`${n} ${l},
|
|
8
|
-
`;o+=`${n} ]`}else j(i)?o+=
|
|
8
|
+
`;o+=`${n} ]`}else j(i)?o+=Fo(i,e+1):S(i)?o+=Po(i,[`
|
|
9
9
|
`,"'"])?`\`${i}\``:`'${i}'`:o+=i;o+=`,
|
|
10
|
-
`}return o+=`${n}}`,o}
|
|
10
|
+
`}return o+=`${n}}`,o},Dw=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],Lw=/^["[{]/,Fw=/^(export|import)\s/,ke=t=>{if(!t)return!1;let e=t.trim().replace(/\n\s*/g," ").trim();if(e===""||e==="{}"||e==="[]"||Fw.test(e)||!Dw.some(s=>s.test(e)))return!1;let n=e.charCodeAt(0),o=e.includes("=>");return!(n===123&&!o||n===91||Lw.test(e)&&!o)},Mw=t=>(0,eval)(t),Nw=(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 u=t[s];if(u==="/"&&t[s+1]==="/"){let d=t.indexOf(`
|
|
11
11
|
`,s);s=d===-1?c:d;continue}if(u==="/"&&t[s+1]==="*"){let d=t.indexOf("*/",s+2);s=d===-1?c:d+2;continue}if(u==='"'||u==="'"||u==="`"){let d=u;for(s++;s<c;){if(t[s]==="\\"){s+=2;continue}if(t[s]===d){s++;break}if(d==="`"&&t[s]==="$"&&t[s+1]==="{"){s+=2;let h=1;for(;s<c&&h>0;)t[s]==="{"?h++:t[s]==="}"&&h--,s++;continue}s++}continue}if(u==="{"){i++,s++;continue}if(u==="}"){i--,s++;continue}if(i===1&&l.test(t.slice(s))){let d=s,h=0,g=s;for(;g<c;){let p=t[g];if(p==='"'||p==="'"||p==="`"){let m=p;for(g++;g<c;){if(t[g]==="\\"){g+=2;continue}if(t[g]===m){g++;break}g++}continue}if(p==="("||p==="["||p==="{"){h++,g++;continue}if(p===")"||p==="]"||p==="}"){if(h===0)break;h--,g++;continue}if(h===0&&(p===";"||p===`
|
|
12
|
-
`)){g++;break}g++}o.push([d,g]),s=g;continue}s++}if(!o.length)return null;let f=t;for(let u=o.length-1;u>=0;u--)f=f.slice(0,o[u][0])+f.slice(o[u][1]);return f},
|
|
13
|
-
First 200 chars of source: `+String(t).slice(0,200)),t)}},Jt=(t,e={},r={window:{eval:
|
|
12
|
+
`)){g++;break}g++}o.push([d,g]),s=g;continue}s++}if(!o.length)return null;let f=t;for(let u=o.length-1;u>=0;u--)f=f.slice(0,o[u][0])+f.slice(o[u][1]);return f},nm=(t,e,r)=>{let n=String(t).trimStart();if(/^(export|import)\s/.test(n))return t;try{return r.window.eval(`(${t})`)}catch(o){let s=o&&o.message?o.message:String(o),i=/await is only valid in async/.test(s),a=/Identifier '([^']+)' has already been declared/.exec(s),c=null;if(i){let l=String(t).trim();if(/^function[\s(]/.test(l))try{c=r.window.eval("(async "+l+")")}catch{}}else if(a){let l=String(t),f=a[1];for(let u=0;u<5;u++){let d=Nw(l,f);if(!d||d===l)break;l=d;try{c=r.window.eval("("+l+")");break}catch(h){let g=/Identifier '([^']+)' has already been declared/.exec(h&&h.message||String(h));if(!g||g[1]!==f)break}}}return c||(typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${e} \u2014 value will be left as a string. Reason: `+s+`.
|
|
13
|
+
First 200 chars of source: `+String(t).slice(0,200)),t)}},Jt=(t,e={},r={window:{eval:Mw}})=>{if(!t||typeof t!="object")return e;let n=[[t,e]];for(;n.length;){let[o,s]=n.pop();for(let i in o){if(!Object.prototype.hasOwnProperty.call(o,i))continue;let a=o[i];if(S(a))ke(a)?s[i]=nm(a,`"${i}"`,r):s[i]=a;else if(T(a)){let c=s[i]=[];for(let l=0;l<a.length;l++){let f=a[l];if(S(f))c.push(ke(f)?nm(f,`array index ${l} (prop "${i}")`,r):f);else if(w(f)){let u={};c.push(u),n.push([f,u])}else c.push(f)}}else if(w(a)){let c=s[i]&&typeof s[i]=="object"&&!T(s[i])?s[i]:s[i]={};n.push([a,c])}else s[i]=a}}return e},jw="Set",Bw="Map",Vw=t=>!t||typeof t!="object"?t:t.__type===jw&&Array.isArray(t.values)?new Set(t.values):t.__type===Bw&&Array.isArray(t.entries)?new Map(t.entries):t,Mo=t=>{if(!t||typeof t!="object")return t;let e={},r=[];for(let i of Object.keys(t)){let a=t[i];S(a)&&ke(a)?r.push([i,a]):e[i]=Vw(a)}if(r.length===0)return e;let n=i=>/^[A-Za-z_$][\w$]*$/.test(i),o=r.filter(([i])=>n(i)),s=Object.keys(e).filter(n).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
|
|
14
14
|
`);try{let i=o.map(([l,f])=>`var ${l} = (${f});`).join(`
|
|
15
15
|
`),a="{ "+o.map(([l])=>`${JSON.stringify(l)}: ${l}`).join(", ")+" }",c=k.eval(`(function(__gs__) { ${s}
|
|
16
16
|
${i}
|
|
17
17
|
return ${a}; })`)(e);Object.assign(e,c)}catch{for(let[a,c]of o)try{let l=Object.keys(e).filter(n).map(f=>`var ${f} = __gs__[${JSON.stringify(f)}];`).join(`
|
|
18
18
|
`);e[a]=k.eval(`(function(__gs__) { ${l}
|
|
19
|
-
return (${c}); })`)(e)}catch{try{e[a]=k.eval(`(${c})`)}catch{e[a]=c}}}for(let[i,a]of r)if(!n(i))try{e[i]=k.eval(`(${a})`)}catch{e[i]=a}return e},Tf=(t,e={verbose:!0})=>{try{return t?k.eval("("+t+")"):{}}catch(r){e.verbose&&console.warn(r)}},Of=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),ca=t=>{for(let e in t)return!1;return!0},Rf=t=>w(t)&&ca(t),Pf=()=>Object.create(null),Fo=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&Mr(s)||s==="constructor"||s==="prototype"||e[s]!==void 0&&(t[s]=e[s]);return t},Nr=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Mr(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},Lt=(t,e,r={},n=new WeakMap)=>{if(!j(t)||!j(e)||$t(t)||$t(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&&Mr(a)||a==="constructor"||a==="prototype")continue;let c=t[a],l=e[a];$t(l)?t[a]=l:j(c)&&j(l)?t[a]=Lt(c,l,r,n):l!==void 0&&(t[a]=l)}return t},la=(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)||!la(t[i],e[i],r))return!1}return!0},Bw=new Set(["node","__ref"]),$f=(t,e,r=Bw)=>{if(t===e)return!0;if(!j(t)||!j(e)||$t(t)||$t(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($t(l)||$t(f)){if(l!==f)return!1}else if(j(l)&&j(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},If=(t,e)=>{if(e==null)return t;if(Dt(e)("string","number"))delete t[e];else if(T(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},fa=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]=fa(t[r]));return e},Df=(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},Lf=(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]},Ff=(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},Mf=(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},Nf=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(em==="test"||em==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},jf=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)},Bf=(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 Mo,No,jo,ua=L(()=>{"use strict";Ne();Mo=(function(){let t=0;function e(){return t++,t}return e})(),No=Mo,jo=(t,e,r)=>(ot(r,t)||r||t.key||Mo()).toString()});var le,Vf,rr,da,Uf,zf,Wf,nr,Hf,jr,Ft,qf=L(()=>{"use strict";le="production",Vf=le,rr=(t=le)=>t==="production",da=(t=le)=>t==="testing"||t==="test",Uf=da,zf=(t=le)=>t==="staging",Wf=(t=le)=>t==="local",nr=(t=le)=>t==="development"||t==="dev"||t==="local",Hf=(t,e=le)=>e[t],jr=(t=le)=>!rr(t),Ft=t=>{let e=t&&"env"in t?t.env:typeof process<"u"&&process.env?"production":void 0;if(e&&e!=="production")return!0;let r=t&&"hostname"in t?t.hostname:typeof location<"u"?location.hostname:void 0;return typeof r=="string"&&r?r==="localhost"||r==="127.0.0.1"||r.endsWith(".localhost"):!1}});function Bo(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 Xf(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 Kf,Gf,Vw,Yf,hn,gn,At,mn=L(()=>{"use strict";Kf=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},Gf=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}}},Vw=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Yf=t=>Vw.test(t),hn=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},gn=(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},At=(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 Jf,om=L(()=>{"use strict";_t();Ne();Jf=(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"?ot(n,t)?r.__if=!0:delete r.__if:r.__if=!0}});var Zf,Qf,sm=L(()=>{"use strict";Zf=(t,...e)=>{t&&e.map(r=>console.log(r))},Qf=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function ou(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 su(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 tu,eu,ru,nu,im=L(()=>{"use strict";_t();So();tu=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),eu=(t,e,r=365)=>{if(xt(K)||xt(K.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;K.cookie=`${t}=${e};${o};path=/`},ru=t=>{if(xt(K)||xt(K.cookie))return;let e=`${t}=`,n=decodeURIComponent(K.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""},nu=t=>{xt(K)||xt(K.cookie)||(K.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var yn,am,iu,au=L(()=>{"use strict";yn={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"])},am=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"]),iu=t=>yn.body.has(t)});var cu,cm,bn,zo,Mt,lu,pa,Wo,fu,Ho,ha,ga,qo,ma,xn,Uw,ke,lm,Vo,Ko,uu,Uo,du,pu,ya,ba,xa,_a,Sa,wa,fm,ka=L(()=>{"use strict";un();hu();Ne();_t();cu="production",cm=t=>t.sourcemap!==!1&&cu!=="production",bn=t=>{if(t.includes("+"))return t.split("+").filter(ve);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!ve(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},zo=(t,e,r)=>{let n=[],o=bn(r);o&&(n=[...o]);let s=t.extends;return s&&(n=T(s)?[...n,...s]:[...n,s]),n},Mt=(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},lu=(t,e)=>{if(!t)return e;let{extends:r}=e,n=T(r)?r:[r],o=T(t)?t:[t];return{...e,extends:ln(o,n)}},pa=()=>Math.random().toString(36).substring(2),Wo={},fu={},Ho=t=>Wo[t.__hash],ha=(t,e)=>{let r=pa();return S(t)||(t.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(Wo[r]=e),e},ga=(t,e)=>t.__hash?e.concat(Ho(t)):ha(t,e),qo=(t,e,r,n=new Set,o,s)=>{for(let i of t)T(i)?qo(i,e,r,n,o,s):xn(i,e,r,n,o,void 0,s);return e},ma=(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&&xn(a,e,r,n,o,s,i),e},xn=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(T(t))return qo(t,e,r,n,o,i);let a=s;return S(t)?(a=t,t=Ko(t,r)):i&&w(t)&&i.has(t)&&(a=i.get(t)),n.add(t),t?.extends?ma(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a)),e},Uw=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),ke=(t,e,r,n,o)=>{e=it(e);for(let s in e){if(Uw.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?w(a)&&!T(a)?(r[s]=r[s]||{},lm(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(w(i)&&w(a)){let c=r?r[s]=r[s]||{}:void 0,l=o?.[s];ve(s)?t[s]=ke(i,a,c,n,l):ke(i,a,c,n,l)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(T(i)&&T(a))t[s]=i.concat(a);else if(T(i)&&w(a)){let c=ke({},i);t[s]=ke(c,a)}}}}return t},lm=(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];w(s)&&!T(s)?(t[o]=t[o]||{},lm(t[o],s,r,n)):t[o]=r}}},Vo=(t,e,r)=>t.reduce((n,o,s)=>{let i=it(o),a=r?r[s]:void 0;return ke(n,i,e,a)},{}),Ko=(t,e,r={},n)=>{let o=e?.components||r.components,s=e?.pages||r.pages;if(S(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&&(cu==="test"||cu==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},uu=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),Uo=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return Ho(t)||[];let s=xn(t,[],e,new Set,r,void 0,n);return r?s:ga(t,s)},du=(t,e)=>{if(!t)return e;let r=T(t)?t:[t];return ln(r,e)},pu=t=>{let e=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(ve(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},ya=(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]?Mt([c,...a],t):Mt(t.extends,t)}else Mt(t.extends,t)}else if(typeof t.extends=="string"&&s&&o?.components){let i=`${t.extends}.${s}`;o.components[i]?Mt(i,t):Mt(t.extends,t)}else Mt(t.extends,t);return ba(t,e,r),xa(t,e,r),_a(t,e,r),t.component&&Mt(ot(t.component,t),t),o.defaultExtends&&Mt(o.defaultExtends,t),fn(n.__extends)},ba=(t,e,r={})=>{let{__ref:n}=t;return r.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&Mt(e.childProps.extends,t),n.__extends},xa=(t,e,r={})=>{let{__ref:n}=t,o=r.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!o&&s&&Mt(s,t),n.__extends},_a=(t,e,r={})=>{let{__ref:n}=t,o=e.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key==="__text";return o&&!i&&!s&&Mt(o,t),n.__extends},Sa=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.variant,i=cm(r),a=i?[...n.__extends]:null,c=fn(n.__extends.map((l,f)=>Ko(l,o,r,f===0&&s)));if(i){let l=new WeakMap;for(let d=0;d<c.length;d++){let h=c[d],g=a[d];h&&w(h)&&S(g)&&l.set(h,g)}let f=[],u=Uo(c,o,f,l);n.__extendsStack=u,n.__extendsNames=f}else{let l=Uo(c,o);n.__extendsStack=l}return n.__extendsStack},wa=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(cm(r)){let s={},i=n.__extendsNames||[],a=Vo(o,s,i),c={};ke(t,a,c,void 0,s),n.__sourcemap=c}else{let s=Vo(o);ke(t,s)}return t},fm=(t,e,r={})=>(ya(t,e,r),Sa(t,e,r),wa(t,e,r),t)});function gu(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function mu(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function yu(t,e,r){let{context:n}=e||{},[o]=bn(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var ve,hu=L(()=>{"use strict";ka();_t();ve=t=>{if(!S(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function um(t,e){let{props:r,on:n}=e,o=Lr(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 dm=L(()=>{"use strict";Ro();_t()});function va(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&&hn(this.context))){let g=Lr(n.slice(2));t.on&&(t.on[g]=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=w(a)||C(a),f=w(c)||C(c);if(l||f)continue;let u=n.charAt(0);if(hm.has(u)){t.props[n]=o,delete t[n],r.push(n);continue}let d=bu.test(n)||pm.test(n)||Ww(o),h=tr.has(n);!d&&!h&&(n in t.props||(t.props[n]=o),delete t[n],r.push(n))}return t}function Ca(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&&hn(this.context);if(s&&i){um(n,t),delete t.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(hm.has(a))continue;let c=this.define?.[n],l=this.context?.define?.[n],f=w(c)||C(c),u=w(l)||C(l),d=bu.test(n)||pm.test(n),h=tr.has(n);(d||h||f||u)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function Aa(t=this){let e=[];return va.call(this,t,{cachedKeys:e}),Ca.call(this,t,{cachedKeys:e}),t}function xu(t={}){return t.on||(t.on={}),t.props||(t.props={}),Aa.call(this,t)}function Su(t,e){this.__element.update({props:t},e)}function Zo(t){let e={update:Su.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var bu,pm,hm,zw,Ww,Xo,Go,_u,Jo,Qo,ts,Ea,Yo,wu,ku,vu=L(()=>{"use strict";pn();dm();Ne();_t();Ro();mn();bu=/^[A-Z]/,pm=/^\d+$/,hm=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),zw=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),Ww=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(zw.has(e)||bu.test(e))return!0;return!1},Xo=(t,e,r)=>{let{props:n,__ref:o}=t;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return j(n)?{...n}:(o.__propsStack.push(n),{})};Go=t=>Dt(t)("string","number")?{inheritedString:t}:t,_u=(t,e)=>!t||!e.length?!1:e.includes(t),Jo=(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=Go(i);n.unshift(c)}if(s){let c=Go(s);n.unshift(c)}return n};Qo=t=>{let e=new Set;return t.filter(r=>!r||er.has(r)||e.has(r)?!1:(e.add(r),!0))},ts=(t,e,r)=>(e.props=t.reduce((n,o)=>{if(er.has(o))return n;for(;C(o);)o=ot(o,e);return Y(n,it(o,{exclude:er}))},{}),Zo(e),e.props),Ea=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...Jo(t,e)]),w(r)?o.push(r):r==="inherit"&&e?.props?o.push(e.props):r&&o.push(r),T(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=Qo(o),n.__propsStack},Yo=(t,e)=>{let{__ref:r}=t,n=Ea(t,e);n.length?ts(n,t):(r.__propsStack=[],t.props={})},wu=function(t,e,r){let{__ref:n}=t;if(n.__if)Yo(t,e);else try{Yo(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),t.props={},n.__propsStack=[]}return Zo(t),t},ku=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=Jo(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=Qo(s),n.__propsStack.length&&ts(n.__propsStack,e),e}});var gm,Ta,Oa,Ra,Pa,Cu,$a,Ia,Da,Au,mm=L(()=>{"use strict";ka();ua();ko();vu();au();_t();gm="production",Ta=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.childProps&&e.childProps.tag,s=yn.body.has(r)&&r;return{text:t,tag:n||o||s||"string"}},Oa=(t,e,r)=>{if(t===void 0)return(gm==="test"||gm==="development")&&console.warn(r,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:Dt(t)("string","number")?Ta(t,e,r):C(t)?{props:t}:t},Ra=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},Pa=(t,e,r,n,o)=>{if(!e)return o;if(Me(e)){let s={key:":root",node:e};return o[`${r}_parent`]=s,s}return e},Cu=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===":root";r?.root||(r.root=o?t:n?.root)},$a=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},Ia=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),Da=(t,e,r)=>{let n=Ra(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=zo(t,e,r),n.path=$a(t,e,r),n},Au=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:Oa(t,e,r);if(!i)return;let a=Pa(i,e,r,n,o),c=jo(i,a,r);Da(i,a,c);let l=Xo(i,a,c),f=Ia(i,a,c,n,o),u=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:u}}});var Eu,La,Fa,Ma,Na,Tu,ja,Ou,Ru,Pu,$u,ym=L(()=>{"use strict";un();pn();Ne();_t();Eu=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return Dt(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},La=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},Fa=(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},Ma=(t,e,r={})=>{let n=S(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]},Na=(t,e,r={})=>{let o=t.__ref.__state;if(!ja(t))return;let s=La(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=Fa(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return Ma(o,i,r)},Tu=(t,e)=>{let r=t.__ref,n=Na(t,e);if(n===void 0)return t.state;if(Dt(n)("object","array"))return it(n);if(Dt(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},ja=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&Dt(r)("number","string","boolean"))},Ou=function(t){return j(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},Ru=(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},Pu=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=it(n,Fr),s={[t.key]:o},i=w(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?Eo(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},$u=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){Y(t,e,Fr);return}(o?Nr:Lt)(t,e,Fr)}});var Hw,Iu,bm=L(()=>{"use strict";Hw=(t,e)=>{let r=e;for(;r;){if(r===t)return!0;r=Object.getPrototypeOf(r)}return!1},Iu=(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&&!Hw(t.scope,i)&&Object.setPrototypeOf(t.scope,i)}}});var xm,Ba,or,Va,Du,Lu=L(()=>{"use strict";_t();mn();xm=(t,e)=>{let r="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[r]},Ba=(t,e,r,n,o)=>{if(t=gn(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}},or=(t,e,r)=>{if(!e)throw new Error("Element is required");At(t,e,r);let n=xm(t,e);if(n){let{state:o,context:s}=e;return Ba(n,e,o,s,r)}},Va=(t,e,r,n,o,s)=>{if(t=gn(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}},Du=(t,e,r,n)=>{At(t,r,e,n);let o=xm(t,r);if(o){let{state:s,context:i}=r;return Va(o,e,r,s,i,n)}}});var Fu,es,Mu=L(()=>{"use strict";Fu={},es={}});var Sm={};$(Sm,{restAdapter:()=>_m,setup:()=>Kw});var qw,je,Kw,_m,wm=L(()=>{"use strict";qw=(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()},je=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}},Kw=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return _m(t,e,r,n)},_m=(t,e={},r,n={})=>{let o=r?.token||null,s=f=>{let u={...e,...f};return o&&(u.Authorization=`Bearer ${o}`),u},i=f=>({...s(f),"Content-Type":"application/json"}),a=f=>({...n,...f}),c=(f,u)=>{let d=u||t;if(f&&(f.startsWith("http://")||f.startsWith("https://")))return f;let h=f&&!f.startsWith("/")?"/":"";return`${d}${h}${f||""}`};return{name:"rest",setToken:f=>{o=f},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let f=await je(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 u=await je(c(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(f)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await je(c(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:f,params:u,select:d,limit:h,offset:g,order:p,single:m,headers:b,baseUrl:x})=>{let y={...u};return d&&(y.select=d),h&&(y.limit=h),g&&(y.offset=g),m&&(y.single=!0),p&&(typeof p=="string"?y.order=p:Array.isArray(p)?y.order=p.map(_=>`${_.by}:${_.asc===!1?"desc":"asc"}`).join(","):p.by&&(y.order=`${p.by}:${p.asc===!1?"desc":"asc"}`)),je(qw(x||t,f||"",y),a({headers:s(b)}))},rpc:({from:f,params:u,headers:d,baseUrl:h})=>je(c(`rpc/${f}`,h),a({method:"POST",headers:i(d),body:JSON.stringify(u)})),insert:({from:f,data:u,headers:d,baseUrl:h})=>je(c(f,h),a({method:"POST",headers:i(d),body:JSON.stringify(u)})),update:({from:f,data:u,params:d,method:h,headers:g,baseUrl:p})=>{let m=d?.id||u?.id,b=m?`${f}/${m}`:f;return je(c(b,p),a({method:h||"PATCH",headers:i(g),body:JSON.stringify(u)}))},upsert:({from:f,data:u,params:d,method:h,headers:g,baseUrl:p})=>{let m=d?.id||u?.id,b=m?`${f}/${m}`:f;return je(c(b,p),a({method:h||"PUT",headers:i(g),body:JSON.stringify(u)}))},delete:({from:f,params:u,headers:d,baseUrl:h})=>{let g=u?.id,p=g?`${f}/${g}`:f;return je(c(p,h),a({method:"DELETE",headers:s(d)}))}}}});var vm={};$(vm,{localAdapter:()=>km,setup:()=>Yw});var Ua,Gw,Yw,km,Cm=L(()=>{"use strict";Ua=(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},Gw=(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}},Yw=async({data:t,...e})=>km(t,e),km=(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 u=localStorage.getItem(s+f);r[f]=u?JSON.parse(u):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,u,d,h)=>{let g=n[f];if(g)for(let p of g)p(d,h,{event:u,table:f})},l=Date.now();return{name:"local",store:r,select:async({from:f,params:u,...d})=>{let g=i(f).filter(p=>Ua(p,u));return Gw(g,d)},insert:async({from:f,data:u})=>{let d=i(f),g=(Array.isArray(u)?u:[u]).map(p=>{let m={id:p.id||++l,...p};return d.push(m),m});a(f);for(let p of g)c(f,"INSERT",p,null);return{data:Array.isArray(u)?g:g[0],error:null}},update:async({from:f,data:u,params:d})=>{let h=i(f),g=[];for(let p=0;p<h.length;p++)if(Ua(h[p],d)){let m={...h[p]};Object.assign(h[p],u),g.push(h[p]),c(f,"UPDATE",h[p],m)}return a(f),{data:g,error:null}},upsert:async({from:f,data:u,params:d})=>{let h=i(f),g=Array.isArray(u)?u:[u],p=[];for(let m of g){let b=d||(m.id!==void 0?{id:m.id}:null),x=b?h.findIndex(y=>Ua(y,b)):-1;if(x>-1){let y={...h[x]};Object.assign(h[x],m),p.push(h[x]),c(f,"UPDATE",h[x],y)}else{let y={id:m.id||++l,...m};h.push(y),p.push(y),c(f,"INSERT",y,null)}}return a(f),{data:Array.isArray(u)?p:p[0],error:null}},delete:async({from:f,params:u})=>{let d=i(f),h=[];for(let g=d.length-1;g>=0;g--)Ua(d[g],u)&&(h.push(d[g]),d.splice(g,1),c(f,"DELETE",null,h[h.length-1]));return a(f),{data:h,error:null}},subscribe:({from:f,on:u},d)=>{n[f]||(n[f]=[]);let h=(g,p,m)=>{u&&u!=="*"&&u!==m.event||d(g,p,m)};return n[f].push(h),()=>{let g=n[f].indexOf(h);g>-1&&n[f].splice(g,1)}}}}});var Vr={};$(Vr,{createAdapter:()=>e0,default:()=>u0,executeFetch:()=>ls,fetchPlugin:()=>zu,initAdapterAuth:()=>Ka,parseDuration:()=>os,queryClient:()=>f0,registerAdapter:()=>t0,resolveDb:()=>Om});var Xw,Jw,za,ns,Wa,Bu,Zw,Qw,t0,e0,Om,os,Tt,Rm,rs,r0,cs,ss,is,Ha,Vu,qa,n0,Am,Nu,Pm,$m,_n,Em,o0,Tm,s0,Ga,Im,Dm,Ka,Uu,Zt,fe,as,Br,Ce,sr,i0,a0,c0,ju,l0,ls,f0,zu,u0,ir=L(()=>{"use strict";O();Xw=["select","rpc","insert","update","upsert","delete","subscribe"],Jw={rest:()=>Promise.resolve().then(()=>(wm(),Sm)),local:()=>Promise.resolve().then(()=>(Cm(),vm))},za=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),ns=(()=>{if(typeof globalThis<"u"&&globalThis[za])return globalThis[za];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,za,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[za]}catch{}return t})(),Wa=Symbol.for("@symbo.ls/fetch:PENDING_ADAPTERS"),Bu=(()=>{if(typeof globalThis<"u"&&globalThis[Wa])return globalThis[Wa];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Wa,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Wa]}catch{}return t})(),Zw=5e3,Qw=t=>new Promise(e=>{if(ns[t])return e(ns[t]);let r=Bu[t]||=[],n=!1,o=()=>{n||(n=!0,e(ns[t]||null))};r.push(o),setTimeout(o,Zw)}),t0=(t,e)=>{ns[t]=e;let r=Bu[t];if(r&&r.length){Bu[t]=[];for(let n of r)n()}},e0=t=>{let e={};for(let r of Xw)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},Om=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=ns[n]||Jw[n];if(!o&&(o=await Qw(n),!o))throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);let s=await o();if(!s||typeof s.setup!="function")throw new Error(`Adapter "${n}" loader returned a module without a setup() function. Got keys: [${Object.keys(s||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return s.setup(r)},os=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},Tt=new Map,Rm=new Map,rs=new Map,r0=(t,e,r)=>{if(t.cache?.key)return t.cache.key;let n=s0(t.params),o=r?`${r}:`:"",s=`${t.from}:${t.method}:${o}${JSON.stringify(n||"")}`;return e?`${s}:${e}`:s},cs=t=>Tt.get(t)||null,ss=(t,e,r)=>{let n=Tt.get(t),o={data:e,error:r,time:Date.now(),stale:!1};Tt.set(t,o);let s=Rm.get(t);if(s)for(let i of s)C(i)&&i(o);return o},is=t=>{if(t){let e=Tt.get(t);e&&(e.stale=!0);return}for(let[,e]of Tt)e.stale=!0},Ha=t=>{if(t){Tt.delete(t);return}Tt.clear()},Vu=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)}:S(t)?{staleTime:os(t),gcTime:3e5}:{staleTime:os(t.stale||t.staleTime)||6e4,gcTime:os(t.gc||t.gcTime||t.expire)||3e5,key:t.key},qa=null,n0=()=>{qa||(qa=setInterval(()=>{let t=Date.now();for(let[e,r]of Tt){let n=Rm.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&Tt.delete(e)}},3e4),qa.unref&&qa.unref())};n0();Am=3,Nu=t=>Math.min(1e3*2**t,3e4),Pm=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:Am,delay:Nu}:typeof e=="number"?{count:e,delay:Nu}:{count:e.count??Am,delay:C(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:Nu}},$m=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}},_n={focus:new Set,online:new Set},Em=!1,o0=()=>{if(Em||typeof window>"u")return;Em=!0;let t=()=>{for(let r of _n.focus)r()},e=()=>{for(let r of _n.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},Tm=(t,e)=>{let r=e.__ref;if(t===!0)return{from:r.__state||e.key,method:"select",query:!0,on:"create"};if(S(t))return{from:t,method:"select",query:!0,on:"create"};if(w(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},s0=t=>(!t||C(t),t),Ga=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},Im=(t,e)=>{let n=(t?.state?.root||e?.state?.root)?.__fetchScope;return n?String(n):void 0},Dm=(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},Ka=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)})},Uu=async(t,e)=>{if(C(t.select))return t.auth!==!1&&await Ka(t,e),t;if(t.__resolved)return t.auth!==!1&&await Ka(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=Om(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 Ka(r,e),r):null},Zt=(t,e,...r)=>{let n=C(t[e])?t[e]:null;n&&n.call(t,...r,t,t.state,t.context)},fe=(t,e,r,...n)=>{let o=t&&C(t[r])?t[r]:null;o&&o.call(e,...n,e,e.state,e.context)},as=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},Br=(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})}},Ce=(t,e)=>{let r=t?.__ref;r&&(r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error)},sr=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 Uu(o,r);if(!s||!e.__ref)return;let i=e.__ref,{from:a,method:c,query:l,params:f,cache:u,transform:d,single:h,auth:g,fields:p,as:m,limit:b,offset:x,order:y,headers:_,baseUrl:v,page:E,cursor:I,getNextPageParam:z,getPreviousPageParam:R,infinite:P,placeholderData:G,initialData:bt,select:V,keepPreviousData:Q}=t,N=S(V)?V:void 0;if(l&&C(e.getQuery)){let nt=e.getQuery(s.name||"paths");nt&&(N=nt.select||nt.length&&nt.join(",")||N)}let X=Dm(f,e,r),D=Vu(u),q=Pm(t),dt=Ga(e,r),Ct=Im(e,r),gt=dt?`:${dt}`:"",Xe=Ct?`${Ct}:`:"",U=D?u?.key||`${a}:${c}:${Xe}${JSON.stringify(X||"")}${P?":infinite":""}${E?":p"+JSON.stringify(E):""}${gt}`:null;if(!i.__fetchInitialized&&U&&(i.__fetchInitialized=!0,bt!==void 0)){let nt=C(bt)?bt():bt;ss(U,nt,null)}if((c==="select"||c==="rpc")&&U&&D){let nt=cs(U);if(nt&&!nt.error){let H=Date.now()-nt.time,pt=nt.stale||H>(D.staleTime||0),B=nt.data;if(C(V)&&(B=V(B,e,e.state)),d&&(B=d(B,e,e.state)),Br(e,B,m),!pt){Ce(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(G!==void 0){let H=C(G)?G(e,e.state):G;H!==void 0&&Br(e,H,m)}}if(U&&rs.has(U)&&!n.force){let nt=rs.get(U);try{let H=await Promise.race([nt,new Promise((pt,B)=>setTimeout(()=>B("DEDUP_TIMEOUT"),15e3))]);if(H?.data!==void 0){let pt=H.data;C(V)&&(pt=V(pt,e,e.state)),d&&(pt=d(pt,e,e.state)),Br(e,pt,m),Zt(e,"onFetchComplete",pt),fe(t,e,"onFetchComplete",pt)}}catch{}return}let Je=!cs(U)?.data;Ce(e,{isFetching:!0,isLoading:Je,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Zt(e,"onFetchStart"),fe(t,e,"onFetchStart");let Yt=r?.analyze?.emitNetwork,Ut=Yt?typeof performance<"u"?performance.now():Date.now():0;Yt&&Yt({phase:"start",mode:"query",from:a,method:c,cacheKey:U,lang:dt});let Gg=$m(async()=>{if(g!==!1&&s.auth!==!1&&s.getSession){let B=await s.getSession();if(g===!0&&!B){let Et={message:"Not authenticated"};return Ce(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Et,status:"error",fetchStatus:"idle"}),Zt(e,"onFetchError",Et),fe(t,e,"onFetchError",Et),{data:null,error:Et}}}let nt=s[c];if(!C(nt))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let H={from:a,select:N,params:X,single:h,limit:b,offset:x,order:y,headers:_,baseUrl:v},pt=Ga(e,r);if(pt&&(H.headers={...H.headers,"Accept-Language":pt}),E!==void 0){if(w(E))E.offset!==void 0&&(H.offset=E.offset),E.limit!==void 0&&(H.limit=E.limit),E.cursor!==void 0&&(H.params={...H.params,cursor:E.cursor});else if(typeof E=="number"){let B=t.pageSize||b||20;H.offset=(E-1)*B,H.limit=B}}if(I!==void 0&&(H.params={...H.params,cursor:I}),c==="insert"||c==="update"||c==="upsert"){let B;if(p===!0||t.on==="submit")B=as(e);else if(T(p)){let Et=as(e);B={};for(let Fl of p)B[Fl]=Et[Fl]}else e.state?.parse?B=e.state.parse():w(e.state)&&(B={...e.state});d&&(B=d(B,e,e.state)),H.data=B}if(c==="rpc"){let B=X;if(t.on==="submit"){let Et=as(e);B=t.transformParams?t.transformParams(Et,e,e.state):Et}H.params=B}if(c==="subscribe"){let B=s.subscribe({from:a,params:X,on:t.subscribeOn},(Et,Fl,dE)=>{Br(e,Et,m),Zt(e,"onFetchComplete",Et),fe(t,e,"onFetchComplete",Et)});return i.__unsubscribe=B,{data:null,error:null,subscribed:!0}}return nt(H)},q);U&&rs.set(U,Gg);try{let nt=await Gg;if(nt?.subscribed)return;let{data:H,error:pt}=nt||{};if(pt){U&&ss(U,null,pt),Ce(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:pt,status:"error",fetchStatus:"idle"}),Zt(e,"onFetchError",pt),fe(t,e,"onFetchError",pt),Yt&&Yt({phase:"error",mode:"query",from:a,method:c,cacheKey:U,error:pt.message||pt,durationMs:(typeof performance<"u"?performance.now():Date.now())-Ut});return}if(H!==void 0){if((c==="select"||c==="rpc")&&U){let Et=ss(U,H,null);Et.gcTime=D?.gcTime||3e5}let B=H;P&&T(H)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(H):i.__pages.push(H),B=i.__pages.flat(),z&&(i.__nextPageParam=z(H,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),R&&(i.__prevPageParam=R(H,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),C(V)&&(B=V(B,e,e.state)),d&&(B=d(B,e,e.state)),(!Q||B!==void 0)&&Br(e,B,m),Ce(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Zt(e,"onFetchComplete",B),fe(t,e,"onFetchComplete",B),Yt&&Yt({phase:"success",mode:"query",ok:!0,from:a,method:c,cacheKey:U,durationMs:(typeof performance<"u"?performance.now():Date.now())-Ut})}}catch(nt){Ce(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:nt,status:"error",fetchStatus:"idle"}),Zt(e,"onFetchError",nt),fe(t,e,"onFetchError",nt),Yt&&Yt({phase:"error",mode:"query",from:a,method:c,cacheKey:U,error:nt.message||String(nt),durationMs:(typeof performance<"u"?performance.now():Date.now())-Ut})}finally{U&&rs.delete(U)}},i0=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||sr;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))},a0=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),o0();let o=t.refetchInterval;if(o){let s=typeof o=="number"?o:os(o);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&sr(t,e,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=Ga(e,r),a=Im(e,r),c=r0(t,i,a),l=cs(c),f=Vu(t.cache);(!l||l.stale||Date.now()-l.time>(f?.staleTime||0))&&sr(t,e,r,{force:!0})};_n.focus.add(s),n.__fetchCleanups.push(()=>_n.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>sr(t,e,r,{force:!0});_n.online.add(s),n.__fetchCleanups.push(()=>_n.online.delete(s))}},c0=(t,e,r)=>{if(!e.optimistic)return null;let n=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():w(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&&Br(t,i,o),s},ju=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Br(t,n,e.as),delete r.__optimisticSnapshot)},l0=async(t,e,r)=>{let n=r?.fetch;if(!n)return;let o=await Uu(n,r);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:u,auth:d,headers:h,baseUrl:g,invalidates:p,optimistic:m,onMutate:b,onSuccess:x,onError:y,onSettled:_}=t,v;if(c===!0||u==="submit")v=as(e);else if(T(c)){let R=as(e);v={};for(let P of c)v[P]=R[P]}else e.state?.parse?v=e.state.parse():w(e.state)&&(v={...e.state});l&&(v=l(v,e,e.state)),C(b)&&b(v,e,e.state);let E=m?c0(e,t,v):null;s.__fetching=!0,Ce(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Zt(e,"onFetchStart"),fe(t,e,"onFetchStart");let I=r?.analyze?.emitNetwork,z=I?typeof performance<"u"?performance.now():Date.now():0;I&&I({phase:"start",mode:"mutation",from:a,method:i});try{if(d!==!1&&o.auth!==!1&&o.getSession){let X=await o.getSession();if(d===!0&&!X){E!==void 0&&ju(e,t);let D={message:"Not authenticated"};Zt(e,"onFetchError",D),fe(t,e,"onFetchError",D);return}}let R=o[i];if(!C(R))return;let P={from:a,data:v,headers:h,baseUrl:g};t.params&&(P.params=Dm(t.params,e,r));let G=Ga(e,r);G&&(P.headers={...P.headers,"Accept-Language":G});let bt=Pm(t),V=await $m(()=>R(P),bt),{data:Q,error:N}=V||{};if(N){E!==void 0&&ju(e,t),Ce(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:N,status:"error",fetchStatus:"idle"}),Zt(e,"onFetchError",N),C(y)&&y(N,v,e),C(_)&&_(null,N,v,e),I&&I({phase:"error",mode:"mutation",from:a,method:i,error:N.message||String(N),durationMs:(typeof performance<"u"?performance.now():Date.now())-z});return}if(delete s.__optimisticSnapshot,Q!==void 0){let X=f?{[f]:Q}:Q;e.state?.update&&e.state.update(X,{preventFetch:!0})}if(Ce(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Zt(e,"onFetchComplete",Q),fe(t,e,"onFetchComplete",Q),C(x)&&x(Q,v,e),C(_)&&_(Q,null,v,e),I&&I({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-z}),p){let X=T(p)?p:[p];for(let D of X)if(D===!0||D==="*")for(let[q]of Tt)q.startsWith(a+":")&&is(q);else is(D)}}catch(R){E!==void 0&&ju(e,t),Ce(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:R,status:"error",fetchStatus:"idle"}),Zt(e,"onFetchError",R),fe(t,e,"onFetchError",R),C(y)&&y(R,v,e),C(_)&&_(null,R,v,e),I&&I({phase:"error",mode:"mutation",from:a,method:i,error:R.message||String(R),durationMs:(typeof performance<"u"?performance.now():Date.now())-z})}finally{s.__fetching=!1}},ls=(t,e,r,n)=>{if(!t||!n?.fetch)return;let s=ot(t,e);if(!s)return;let i=T(s)?s.map(c=>Tm(ot(c,e),e)).filter(Boolean):[Tm(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?l0:sr;c.on==="create"?f(c,e,n):Promise.resolve().then(()=>{i0({...c,__runner:f},e,n)}),!l&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&a0(c,e,n)}let a=e.__ref;a.refetch=c=>{for(let l of i)sr(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};sr(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};sr(f,e,n,{direction:"previous",force:!0})}},f0={invalidateQueries:t=>{if(!t){is();return}if(S(t))for(let[e]of Tt)(e.startsWith(t)||e.includes(t))&&is(e);else if(T(t)){let e=t.join(":");for(let[r]of Tt)r.includes(e)&&is(r)}},removeQueries:t=>{if(!t){Ha();return}if(S(t))for(let[e]of Tt)(e.startsWith(t)||e.includes(t))&&Ha(e)},getQueryData:t=>cs(t)?.data??void 0,setQueryData:(t,e)=>{let r=cs(t),n=C(e)?e(r?.data):e;ss(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let n=await Uu(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=ss(o,i.data,null);a.gcTime=Vu(t.cache)?.gcTime||3e5}return i},getCache:()=>Tt,clear:()=>Ha(),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[r]of Tt)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(e)||Ha(r))}},zu={name:"fetch",create(t){let e=t.fetch;e&&(t.parent||rs.clear(),ls(e,t,t.state,t.context))}},u0=ls});function us(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 Hu(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 qu(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 Ku(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 Ya(t={}){let e=this;if(e.node?.style){for(let r in t){let n=t[r],o=e[r];if(w(n)&&o)Ya.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 Fm(t){let e=this;if(or("beforeRemove",e,t)===!1)return e;C(e.node.remove)?e.node.remove():rr()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=Ao(e.parent.__ref.__children,e.key)),or("remove",e,t)}function Gu(t){return this[t]}function Yu(t,e){let r=this;if(t)return r.update(t,e),r}function Xu(t){return t?this.__ref&&this.__ref[t]:this.__ref}function ds(){return this.getRef("__children").map(e=>this[e])}function ps(){return this.getRef().path}function gs(t){let e=null,r=n=>n.__element&&n.root?.isRootState;if(!this)e=Lm();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=Lm()),t?e?.[t]:e}function ms(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function ys(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function bs(t){let e=this.getRoot()?.context;return t?e[t]:e}function xs(t){let e=this.context;return t?e[t]:e}function Xa(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||tr.has(r)&&!Po.has(r)||e.push(r);return e}function Ja(t=[]){let e=this,r={},n=Xa.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,...u}=e[a];r[a]=u}else It(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function fs(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let n=Ja.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=>j(a)?fs.call(a,t,e):a):j(i)&&(n[s]=fs.call(i,t,e))}return n}function Sn(...t){if(ar!=="test"&&ar!=="development")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(n=>console.log(`%c${n}:
|
|
20
|
-
`,"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
|
|
21
|
-
${
|
|
19
|
+
return (${c}); })`)(e)}catch{try{e[a]=k.eval(`(${c})`)}catch{e[a]=c}}}for(let[i,a]of r)if(!n(i))try{e[i]=k.eval(`(${a})`)}catch{e[i]=a}return e},Of=(t,e={verbose:!0})=>{try{return t?k.eval("("+t+")"):{}}catch(r){e.verbose&&console.warn(r)}},Rf=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),la=t=>{for(let e in t)return!1;return!0},Pf=t=>w(t)&&la(t),$f=()=>Object.create(null),No=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&Mr(s)||s==="constructor"||s==="prototype"||e[s]!==void 0&&(t[s]=e[s]);return t},Nr=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Mr(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},Ft=(t,e,r={},n=new WeakMap)=>{if(!j(t)||!j(e)||Dt(t)||Dt(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&&Mr(a)||a==="constructor"||a==="prototype")continue;let c=t[a],l=e[a];Dt(l)?t[a]=l:j(c)&&j(l)?t[a]=Ft(c,l,r,n):l!==void 0&&(t[a]=l)}return t},fa=(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)||!fa(t[i],e[i],r))return!1}return!0},Uw=new Set(["node","__ref"]),If=(t,e,r=Uw)=>{if(t===e)return!0;if(!j(t)||!j(e)||Dt(t)||Dt(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(Dt(l)||Dt(f)){if(l!==f)return!1}else if(j(l)&&j(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},Df=(t,e)=>{if(e==null)return t;if(Lt(e)("string","number"))delete t[e];else if(T(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},ua=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]=ua(t[r]));return e},Lf=(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},Ff=(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]},Mf=(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},Nf=(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},jf=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(rm==="test"||rm==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},Bf=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)},Vf=(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 jo,Bo,Vo,da=L(()=>{"use strict";Ne();jo=(function(){let t=0;function e(){return t++,t}return e})(),Bo=jo,Vo=(t,e,r)=>(ot(r,t)||r||t.key||jo()).toString()});var le,Uf,rr,pa,zf,Wf,Hf,nr,qf,jr,Mt,Kf=L(()=>{"use strict";le="production",Uf=le,rr=(t=le)=>t==="production",pa=(t=le)=>t==="testing"||t==="test",zf=pa,Wf=(t=le)=>t==="staging",Hf=(t=le)=>t==="local",nr=(t=le)=>t==="development"||t==="dev"||t==="local",qf=(t,e=le)=>e[t],jr=(t=le)=>!rr(t),Mt=t=>{let e=t&&"env"in t?t.env:typeof process<"u"&&process.env?"production":void 0;if(e&&e!=="production")return!0;let r=t&&"hostname"in t?t.hostname:typeof location<"u"?location.hostname:void 0;return typeof r=="string"&&r?r==="localhost"||r==="127.0.0.1"||r.endsWith(".localhost"):!1}});function Uo(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 Jf(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 Gf,Yf,zw,Xf,hn,gn,Et,mn=L(()=>{"use strict";Gf=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},Yf=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}}},zw=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Xf=t=>zw.test(t),hn=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},gn=(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},Et=(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 Zf,sm=L(()=>{"use strict";_t();Ne();Zf=(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"?ot(n,t)?r.__if=!0:delete r.__if:r.__if=!0}});var Qf,tu,im=L(()=>{"use strict";Qf=(t,...e)=>{t&&e.map(r=>console.log(r))},tu=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function su(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 iu(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 eu,ru,nu,ou,am=L(()=>{"use strict";_t();ko();eu=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),ru=(t,e,r=365)=>{if(xt(K)||xt(K.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;K.cookie=`${t}=${e};${o};path=/`},nu=t=>{if(xt(K)||xt(K.cookie))return;let e=`${t}=`,n=decodeURIComponent(K.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""},ou=t=>{xt(K)||xt(K.cookie)||(K.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var yn,cm,au,cu=L(()=>{"use strict";yn={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"])},cm=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=>yn.body.has(t)});var lu,lm,bn,Ho,Nt,fu,ha,qo,uu,Ko,ga,ma,Go,ya,xn,Ww,ve,fm,zo,Yo,du,Wo,pu,hu,ba,xa,_a,Sa,wa,ka,um,va=L(()=>{"use strict";un();gu();Ne();_t();lu="production",lm=t=>t.sourcemap!==!1&&lu!=="production",bn=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]},Ho=(t,e,r)=>{let n=[],o=bn(r);o&&(n=[...o]);let s=t.extends;return s&&(n=T(s)?[...n,...s]:[...n,s]),n},Nt=(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},fu=(t,e)=>{if(!t)return e;let{extends:r}=e,n=T(r)?r:[r],o=T(t)?t:[t];return{...e,extends:ln(o,n)}},ha=()=>Math.random().toString(36).substring(2),qo={},uu={},Ko=t=>qo[t.__hash],ga=(t,e)=>{let r=ha();return S(t)||(t.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(qo[r]=e),e},ma=(t,e)=>t.__hash?e.concat(Ko(t)):ga(t,e),Go=(t,e,r,n=new Set,o,s)=>{for(let i of t)T(i)?Go(i,e,r,n,o,s):xn(i,e,r,n,o,void 0,s);return e},ya=(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&&xn(a,e,r,n,o,s,i),e},xn=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(T(t))return Go(t,e,r,n,o,i);let a=s;return S(t)?(a=t,t=Yo(t,r)):i&&w(t)&&i.has(t)&&(a=i.get(t)),n.add(t),t?.extends?ya(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a)),e},Ww=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),ve=(t,e,r,n,o)=>{e=it(e);for(let s in e){if(Ww.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?w(a)&&!T(a)?(r[s]=r[s]||{},fm(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(w(i)&&w(a)){let c=r?r[s]=r[s]||{}:void 0,l=o?.[s];Ce(s)?t[s]=ve(i,a,c,n,l):ve(i,a,c,n,l)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(T(i)&&T(a))t[s]=i.concat(a);else if(T(i)&&w(a)){let c=ve({},i);t[s]=ve(c,a)}}}}return t},fm=(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];w(s)&&!T(s)?(t[o]=t[o]||{},fm(t[o],s,r,n)):t[o]=r}}},zo=(t,e,r)=>t.reduce((n,o,s)=>{let i=it(o),a=r?r[s]:void 0;return ve(n,i,e,a)},{}),Yo=(t,e,r={},n)=>{let o=e?.components||r.components,s=e?.pages||r.pages;if(S(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&&(lu==="test"||lu==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},du=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),Wo=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return Ko(t)||[];let s=xn(t,[],e,new Set,r,void 0,n);return r?s:ma(t,s)},pu=(t,e)=>{if(!t)return e;let r=T(t)?t:[t];return ln(r,e)},hu=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},ba=(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]?Nt([c,...a],t):Nt(t.extends,t)}else Nt(t.extends,t)}else if(typeof t.extends=="string"&&s&&o?.components){let i=`${t.extends}.${s}`;o.components[i]?Nt(i,t):Nt(t.extends,t)}else Nt(t.extends,t);return xa(t,e,r),_a(t,e,r),Sa(t,e,r),t.component&&Nt(ot(t.component,t),t),o.defaultExtends&&Nt(o.defaultExtends,t),fn(n.__extends)},xa=(t,e,r={})=>{let{__ref:n}=t;return r.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&Nt(e.childProps.extends,t),n.__extends},_a=(t,e,r={})=>{let{__ref:n}=t,o=r.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!o&&s&&Nt(s,t),n.__extends},Sa=(t,e,r={})=>{let{__ref:n}=t,o=e.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key==="__text";return o&&!i&&!s&&Nt(o,t),n.__extends},wa=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.variant,i=lm(r),a=i?[...n.__extends]:null,c=fn(n.__extends.map((l,f)=>Yo(l,o,r,f===0&&s)));if(i){let l=new WeakMap;for(let d=0;d<c.length;d++){let h=c[d],g=a[d];h&&w(h)&&S(g)&&l.set(h,g)}let f=[],u=Wo(c,o,f,l);n.__extendsStack=u,n.__extendsNames=f}else{let l=Wo(c,o);n.__extendsStack=l}return n.__extendsStack},ka=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(lm(r)){let s={},i=n.__extendsNames||[],a=zo(o,s,i),c={};ve(t,a,c,void 0,s),n.__sourcemap=c}else{let s=zo(o);ve(t,s)}return t},um=(t,e,r={})=>(ba(t,e,r),wa(t,e,r),ka(t,e,r),t)});function mu(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function yu(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function bu(t,e,r){let{context:n}=e||{},[o]=bn(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var Ce,gu=L(()=>{"use strict";va();_t();Ce=t=>{if(!S(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function dm(t,e){let{props:r,on:n}=e,o=Lr(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 pm=L(()=>{"use strict";$o();_t()});function Ca(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&&hn(this.context))){let g=Lr(n.slice(2));t.on&&(t.on[g]=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=w(a)||C(a),f=w(c)||C(c);if(l||f)continue;let u=n.charAt(0);if(gm.has(u)){t.props[n]=o,delete t[n],r.push(n);continue}let d=xu.test(n)||hm.test(n)||qw(o),h=tr.has(n);!d&&!h&&(n in t.props||(t.props[n]=o),delete t[n],r.push(n))}return t}function Aa(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&&hn(this.context);if(s&&i){dm(n,t),delete t.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(gm.has(a))continue;let c=this.define?.[n],l=this.context?.define?.[n],f=w(c)||C(c),u=w(l)||C(l),d=xu.test(n)||hm.test(n),h=tr.has(n);(d||h||f||u)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function Ea(t=this){let e=[];return Ca.call(this,t,{cachedKeys:e}),Aa.call(this,t,{cachedKeys:e}),t}function _u(t={}){return t.on||(t.on={}),t.props||(t.props={}),Ea.call(this,t)}function wu(t,e){this.__element.update({props:t},e)}function ts(t){let e={update:wu.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var xu,hm,gm,Hw,qw,Zo,Xo,Su,Qo,es,rs,Ta,Jo,ku,vu,Cu=L(()=>{"use strict";pn();pm();Ne();_t();$o();mn();xu=/^[A-Z]/,hm=/^\d+$/,gm=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),Hw=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),qw=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(Hw.has(e)||xu.test(e))return!0;return!1},Zo=(t,e,r)=>{let{props:n,__ref:o}=t;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return j(n)?{...n}:(o.__propsStack.push(n),{})};Xo=t=>Lt(t)("string","number")?{inheritedString:t}:t,Su=(t,e)=>!t||!e.length?!1:e.includes(t),Qo=(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=Xo(i);n.unshift(c)}if(s){let c=Xo(s);n.unshift(c)}return n};es=t=>{let e=new Set;return t.filter(r=>!r||er.has(r)||e.has(r)?!1:(e.add(r),!0))},rs=(t,e,r)=>(e.props=t.reduce((n,o)=>{if(er.has(o))return n;for(;C(o);)o=ot(o,e);return Y(n,it(o,{exclude:er}))},{}),ts(e),e.props),Ta=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...Qo(t,e)]),w(r)?o.push(r):r==="inherit"&&e?.props?o.push(e.props):r&&o.push(r),T(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=es(o),n.__propsStack},Jo=(t,e)=>{let{__ref:r}=t,n=Ta(t,e);n.length?rs(n,t):(r.__propsStack=[],t.props={})},ku=function(t,e,r){let{__ref:n}=t;if(n.__if)Jo(t,e);else try{Jo(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),t.props={},n.__propsStack=[]}return ts(t),t},vu=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=Qo(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=es(s),n.__propsStack.length&&rs(n.__propsStack,e),e}});var mm,Oa,Ra,Pa,$a,Au,Ia,Da,La,Eu,ym=L(()=>{"use strict";va();da();Co();Cu();cu();_t();mm="production",Oa=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.childProps&&e.childProps.tag,s=yn.body.has(r)&&r;return{text:t,tag:n||o||s||"string"}},Ra=(t,e,r)=>{if(t===void 0)return(mm==="test"||mm==="development")&&console.warn(r,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:Lt(t)("string","number")?Oa(t,e,r):C(t)?{props:t}:t},Pa=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},$a=(t,e,r,n,o)=>{if(!e)return o;if(Me(e)){let s={key:":root",node:e};return o[`${r}_parent`]=s,s}return e},Au=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===":root";r?.root||(r.root=o?t:n?.root)},Ia=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},Da=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),La=(t,e,r)=>{let n=Pa(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=Ho(t,e,r),n.path=Ia(t,e,r),n},Eu=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:Ra(t,e,r);if(!i)return;let a=$a(i,e,r,n,o),c=Vo(i,a,r);La(i,a,c);let l=Zo(i,a,c),f=Da(i,a,c,n,o),u=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:u}}});var Tu,Fa,Ma,Na,ja,Ou,Ba,Ru,Pu,$u,Iu,bm=L(()=>{"use strict";un();pn();Ne();_t();Tu=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return Lt(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},Fa=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},Ma=(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},Na=(t,e,r={})=>{let n=S(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]},ja=(t,e,r={})=>{let o=t.__ref.__state;if(!Ba(t))return;let s=Fa(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=Ma(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return Na(o,i,r)},Ou=(t,e)=>{let r=t.__ref,n=ja(t,e);if(n===void 0)return t.state;if(Lt(n)("object","array"))return it(n);if(Lt(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},Ba=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&Lt(r)("number","string","boolean"))},Ru=function(t){return j(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},Pu=(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},$u=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=it(n,Fr),s={[t.key]:o},i=w(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?Oo(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},Iu=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){Y(t,e,Fr);return}(o?Nr:Ft)(t,e,Fr)}});var Kw,Du,xm=L(()=>{"use strict";Kw=(t,e)=>{let r=e;for(;r;){if(r===t)return!0;r=Object.getPrototypeOf(r)}return!1},Du=(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&&!Kw(t.scope,i)&&Object.setPrototypeOf(t.scope,i)}}});var _m,Va,or,Ua,Lu,Fu=L(()=>{"use strict";_t();mn();_m=(t,e)=>{let r="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[r]},Va=(t,e,r,n,o)=>{if(t=gn(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}},or=(t,e,r)=>{if(!e)throw new Error("Element is required");Et(t,e,r);let n=_m(t,e);if(n){let{state:o,context:s}=e;return Va(n,e,o,s,r)}},Ua=(t,e,r,n,o,s)=>{if(t=gn(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}},Lu=(t,e,r,n)=>{Et(t,r,e,n);let o=_m(t,r);if(o){let{state:s,context:i}=r;return Ua(o,e,r,s,i,n)}}});var Mu,ns,Nu=L(()=>{"use strict";Mu={},ns={}});var wm={};$(wm,{restAdapter:()=>Sm,setup:()=>Yw});var Gw,je,Yw,Sm,km=L(()=>{"use strict";Gw=(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()},je=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}},Yw=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return Sm(t,e,r,n)},Sm=(t,e={},r,n={})=>{let o=r?.token||null,s=f=>{let u={...e,...f};return o&&(u.Authorization=`Bearer ${o}`),u},i=f=>({...s(f),"Content-Type":"application/json"}),a=f=>({...n,...f}),c=(f,u)=>{let d=u||t;if(f&&(f.startsWith("http://")||f.startsWith("https://")))return f;let h=f&&!f.startsWith("/")?"/":"";return`${d}${h}${f||""}`};return{name:"rest",setToken:f=>{o=f},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let f=await je(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 u=await je(c(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(f)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await je(c(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:f,params:u,select:d,limit:h,offset:g,order:p,single:m,headers:b,baseUrl:x})=>{let y={...u};return d&&(y.select=d),h&&(y.limit=h),g&&(y.offset=g),m&&(y.single=!0),p&&(typeof p=="string"?y.order=p:Array.isArray(p)?y.order=p.map(_=>`${_.by}:${_.asc===!1?"desc":"asc"}`).join(","):p.by&&(y.order=`${p.by}:${p.asc===!1?"desc":"asc"}`)),je(Gw(x||t,f||"",y),a({headers:s(b)}))},rpc:({from:f,params:u,headers:d,baseUrl:h})=>je(c(`rpc/${f}`,h),a({method:"POST",headers:i(d),body:JSON.stringify(u)})),insert:({from:f,data:u,headers:d,baseUrl:h})=>je(c(f,h),a({method:"POST",headers:i(d),body:JSON.stringify(u)})),update:({from:f,data:u,params:d,method:h,headers:g,baseUrl:p})=>{let m=d?.id||u?.id,b=m?`${f}/${m}`:f;return je(c(b,p),a({method:h||"PATCH",headers:i(g),body:JSON.stringify(u)}))},upsert:({from:f,data:u,params:d,method:h,headers:g,baseUrl:p})=>{let m=d?.id||u?.id,b=m?`${f}/${m}`:f;return je(c(b,p),a({method:h||"PUT",headers:i(g),body:JSON.stringify(u)}))},delete:({from:f,params:u,headers:d,baseUrl:h})=>{let g=u?.id,p=g?`${f}/${g}`:f;return je(c(p,h),a({method:"DELETE",headers:s(d)}))}}}});var Cm={};$(Cm,{localAdapter:()=>vm,setup:()=>Jw});var za,Xw,Jw,vm,Am=L(()=>{"use strict";za=(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},Xw=(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}},Jw=async({data:t,...e})=>vm(t,e),vm=(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 u=localStorage.getItem(s+f);r[f]=u?JSON.parse(u):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,u,d,h)=>{let g=n[f];if(g)for(let p of g)p(d,h,{event:u,table:f})},l=Date.now();return{name:"local",store:r,select:async({from:f,params:u,...d})=>{let g=i(f).filter(p=>za(p,u));return Xw(g,d)},insert:async({from:f,data:u})=>{let d=i(f),g=(Array.isArray(u)?u:[u]).map(p=>{let m={id:p.id||++l,...p};return d.push(m),m});a(f);for(let p of g)c(f,"INSERT",p,null);return{data:Array.isArray(u)?g:g[0],error:null}},update:async({from:f,data:u,params:d})=>{let h=i(f),g=[];for(let p=0;p<h.length;p++)if(za(h[p],d)){let m={...h[p]};Object.assign(h[p],u),g.push(h[p]),c(f,"UPDATE",h[p],m)}return a(f),{data:g,error:null}},upsert:async({from:f,data:u,params:d})=>{let h=i(f),g=Array.isArray(u)?u:[u],p=[];for(let m of g){let b=d||(m.id!==void 0?{id:m.id}:null),x=b?h.findIndex(y=>za(y,b)):-1;if(x>-1){let y={...h[x]};Object.assign(h[x],m),p.push(h[x]),c(f,"UPDATE",h[x],y)}else{let y={id:m.id||++l,...m};h.push(y),p.push(y),c(f,"INSERT",y,null)}}return a(f),{data:Array.isArray(u)?p:p[0],error:null}},delete:async({from:f,params:u})=>{let d=i(f),h=[];for(let g=d.length-1;g>=0;g--)za(d[g],u)&&(h.push(d[g]),d.splice(g,1),c(f,"DELETE",null,h[h.length-1]));return a(f),{data:h,error:null}},subscribe:({from:f,on:u},d)=>{n[f]||(n[f]=[]);let h=(g,p,m)=>{u&&u!=="*"&&u!==m.event||d(g,p,m)};return n[f].push(h),()=>{let g=n[f].indexOf(h);g>-1&&n[f].splice(g,1)}}}}});var Vr={};$(Vr,{createAdapter:()=>n0,default:()=>p0,executeFetch:()=>us,fetchPlugin:()=>Wu,initAdapterAuth:()=>Ga,parseDuration:()=>is,queryClient:()=>d0,registerAdapter:()=>r0,resolveDb:()=>Rm});var Zw,Qw,Wa,ss,Ha,Vu,t0,e0,r0,n0,Rm,is,Ot,Pm,os,o0,fs,as,cs,qa,Uu,Ka,s0,Em,ju,$m,Im,_n,Tm,i0,Om,a0,Ya,Dm,Lm,Ga,zu,Zt,fe,ls,Br,Ae,sr,c0,l0,f0,Bu,u0,us,d0,Wu,p0,ir=L(()=>{"use strict";O();Zw=["select","rpc","insert","update","upsert","delete","subscribe"],Qw={rest:()=>Promise.resolve().then(()=>(km(),wm)),local:()=>Promise.resolve().then(()=>(Am(),Cm))},Wa=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),ss=(()=>{if(typeof globalThis<"u"&&globalThis[Wa])return globalThis[Wa];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Wa,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Wa]}catch{}return t})(),Ha=Symbol.for("@symbo.ls/fetch:PENDING_ADAPTERS"),Vu=(()=>{if(typeof globalThis<"u"&&globalThis[Ha])return globalThis[Ha];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Ha,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Ha]}catch{}return t})(),t0=5e3,e0=t=>new Promise(e=>{if(ss[t])return e(ss[t]);let r=Vu[t]||=[],n=!1,o=()=>{n||(n=!0,e(ss[t]||null))};r.push(o),setTimeout(o,t0)}),r0=(t,e)=>{ss[t]=e;let r=Vu[t];if(r&&r.length){Vu[t]=[];for(let n of r)n()}},n0=t=>{let e={};for(let r of Zw)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},Rm=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=ss[n]||Qw[n];if(!o&&(o=await e0(n),!o))throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);let s=await o();if(!s||typeof s.setup!="function")throw new Error(`Adapter "${n}" loader returned a module without a setup() function. Got keys: [${Object.keys(s||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return s.setup(r)},is=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},Ot=new Map,Pm=new Map,os=new Map,o0=(t,e,r)=>{if(t.cache?.key)return t.cache.key;let n=a0(t.params),o=r?`${r}:`:"",s=`${t.from}:${t.method}:${o}${JSON.stringify(n||"")}`;return e?`${s}:${e}`:s},fs=t=>Ot.get(t)||null,as=(t,e,r)=>{let n=Ot.get(t),o={data:e,error:r,time:Date.now(),stale:!1};Ot.set(t,o);let s=Pm.get(t);if(s)for(let i of s)C(i)&&i(o);return o},cs=t=>{if(t){let e=Ot.get(t);e&&(e.stale=!0);return}for(let[,e]of Ot)e.stale=!0},qa=t=>{if(t){Ot.delete(t);return}Ot.clear()},Uu=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)}:S(t)?{staleTime:is(t),gcTime:3e5}:{staleTime:is(t.stale||t.staleTime)||6e4,gcTime:is(t.gc||t.gcTime||t.expire)||3e5,key:t.key},Ka=null,s0=()=>{Ka||(Ka=setInterval(()=>{let t=Date.now();for(let[e,r]of Ot){let n=Pm.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&Ot.delete(e)}},3e4),Ka.unref&&Ka.unref())};s0();Em=3,ju=t=>Math.min(1e3*2**t,3e4),$m=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:Em,delay:ju}:typeof e=="number"?{count:e,delay:ju}:{count:e.count??Em,delay:C(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:ju}},Im=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}},_n={focus:new Set,online:new Set},Tm=!1,i0=()=>{if(Tm||typeof window>"u")return;Tm=!0;let t=()=>{for(let r of _n.focus)r()},e=()=>{for(let r of _n.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},Om=(t,e)=>{let r=e.__ref;if(t===!0)return{from:r.__state||e.key,method:"select",query:!0,on:"create"};if(S(t))return{from:t,method:"select",query:!0,on:"create"};if(w(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},a0=t=>(!t||C(t),t),Ya=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},Dm=(t,e)=>{let n=(t?.state?.root||e?.state?.root)?.__fetchScope;return n?String(n):void 0},Lm=(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},Ga=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)})},zu=async(t,e)=>{if(C(t.select))return t.auth!==!1&&await Ga(t,e),t;if(t.__resolved)return t.auth!==!1&&await Ga(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=Rm(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 Ga(r,e),r):null},Zt=(t,e,...r)=>{let n=C(t[e])?t[e]:null;n&&n.call(t,...r,t,t.state,t.context)},fe=(t,e,r,...n)=>{let o=t&&C(t[r])?t[r]:null;o&&o.call(e,...n,e,e.state,e.context)},ls=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},Br=(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})}},Ae=(t,e)=>{let r=t?.__ref;r&&(r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error)},sr=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 zu(o,r);if(!s||!e.__ref)return;let i=e.__ref,{from:a,method:c,query:l,params:f,cache:u,transform:d,single:h,auth:g,fields:p,as:m,limit:b,offset:x,order:y,headers:_,baseUrl:v,page:E,cursor:I,getNextPageParam:z,getPreviousPageParam:R,infinite:P,placeholderData:G,initialData:bt,select:V,keepPreviousData:Q}=t,N=S(V)?V:void 0;if(l&&C(e.getQuery)){let nt=e.getQuery(s.name||"paths");nt&&(N=nt.select||nt.length&&nt.join(",")||N)}let X=Lm(f,e,r),D=Uu(u),q=$m(t),dt=Ya(e,r),At=Dm(e,r),gt=dt?`:${dt}`:"",Xe=At?`${At}:`:"",U=D?u?.key||`${a}:${c}:${Xe}${JSON.stringify(X||"")}${P?":infinite":""}${E?":p"+JSON.stringify(E):""}${gt}`:null;if(!i.__fetchInitialized&&U&&(i.__fetchInitialized=!0,bt!==void 0)){let nt=C(bt)?bt():bt;as(U,nt,null)}if((c==="select"||c==="rpc")&&U&&D){let nt=fs(U);if(nt&&!nt.error){let H=Date.now()-nt.time,pt=nt.stale||H>(D.staleTime||0),B=nt.data;if(C(V)&&(B=V(B,e,e.state)),d&&(B=d(B,e,e.state)),Br(e,B,m),!pt){Ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(G!==void 0){let H=C(G)?G(e,e.state):G;H!==void 0&&Br(e,H,m)}}if(U&&os.has(U)&&!n.force){let nt=os.get(U);try{let H=await Promise.race([nt,new Promise((pt,B)=>setTimeout(()=>B("DEDUP_TIMEOUT"),15e3))]);if(H?.data!==void 0){let pt=H.data;C(V)&&(pt=V(pt,e,e.state)),d&&(pt=d(pt,e,e.state)),Br(e,pt,m),Zt(e,"onFetchComplete",pt),fe(t,e,"onFetchComplete",pt)}}catch{}return}let Je=!fs(U)?.data;Ae(e,{isFetching:!0,isLoading:Je,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Zt(e,"onFetchStart"),fe(t,e,"onFetchStart");let Xt=r?.analyze?.emitNetwork,zt=Xt?typeof performance<"u"?performance.now():Date.now():0;Xt&&Xt({phase:"start",mode:"query",from:a,method:c,cacheKey:U,lang:dt});let Yg=Im(async()=>{if(g!==!1&&s.auth!==!1&&s.getSession){let B=await s.getSession();if(g===!0&&!B){let Tt={message:"Not authenticated"};return Ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Tt,status:"error",fetchStatus:"idle"}),Zt(e,"onFetchError",Tt),fe(t,e,"onFetchError",Tt),{data:null,error:Tt}}}let nt=s[c];if(!C(nt))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let H={from:a,select:N,params:X,single:h,limit:b,offset:x,order:y,headers:_,baseUrl:v},pt=Ya(e,r);if(pt&&(H.headers={...H.headers,"Accept-Language":pt}),E!==void 0){if(w(E))E.offset!==void 0&&(H.offset=E.offset),E.limit!==void 0&&(H.limit=E.limit),E.cursor!==void 0&&(H.params={...H.params,cursor:E.cursor});else if(typeof E=="number"){let B=t.pageSize||b||20;H.offset=(E-1)*B,H.limit=B}}if(I!==void 0&&(H.params={...H.params,cursor:I}),c==="insert"||c==="update"||c==="upsert"){let B;if(p===!0||t.on==="submit")B=ls(e);else if(T(p)){let Tt=ls(e);B={};for(let Ml of p)B[Ml]=Tt[Ml]}else e.state?.parse?B=e.state.parse():w(e.state)&&(B={...e.state});d&&(B=d(B,e,e.state)),H.data=B}if(c==="rpc"){let B=X;if(t.on==="submit"){let Tt=ls(e);B=t.transformParams?t.transformParams(Tt,e,e.state):Tt}H.params=B}if(c==="subscribe"){let B=s.subscribe({from:a,params:X,on:t.subscribeOn},(Tt,Ml,hE)=>{Br(e,Tt,m),Zt(e,"onFetchComplete",Tt),fe(t,e,"onFetchComplete",Tt)});return i.__unsubscribe=B,{data:null,error:null,subscribed:!0}}return nt(H)},q);U&&os.set(U,Yg);try{let nt=await Yg;if(nt?.subscribed)return;let{data:H,error:pt}=nt||{};if(pt){U&&as(U,null,pt),Ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:pt,status:"error",fetchStatus:"idle"}),Zt(e,"onFetchError",pt),fe(t,e,"onFetchError",pt),Xt&&Xt({phase:"error",mode:"query",from:a,method:c,cacheKey:U,error:pt.message||pt,durationMs:(typeof performance<"u"?performance.now():Date.now())-zt});return}if(H!==void 0){if((c==="select"||c==="rpc")&&U){let Tt=as(U,H,null);Tt.gcTime=D?.gcTime||3e5}let B=H;P&&T(H)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(H):i.__pages.push(H),B=i.__pages.flat(),z&&(i.__nextPageParam=z(H,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),R&&(i.__prevPageParam=R(H,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),C(V)&&(B=V(B,e,e.state)),d&&(B=d(B,e,e.state)),(!Q||B!==void 0)&&Br(e,B,m),Ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Zt(e,"onFetchComplete",B),fe(t,e,"onFetchComplete",B),Xt&&Xt({phase:"success",mode:"query",ok:!0,from:a,method:c,cacheKey:U,durationMs:(typeof performance<"u"?performance.now():Date.now())-zt})}}catch(nt){Ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:nt,status:"error",fetchStatus:"idle"}),Zt(e,"onFetchError",nt),fe(t,e,"onFetchError",nt),Xt&&Xt({phase:"error",mode:"query",from:a,method:c,cacheKey:U,error:nt.message||String(nt),durationMs:(typeof performance<"u"?performance.now():Date.now())-zt})}finally{U&&os.delete(U)}},c0=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||sr;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))},l0=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),i0();let o=t.refetchInterval;if(o){let s=typeof o=="number"?o:is(o);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&sr(t,e,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=Ya(e,r),a=Dm(e,r),c=o0(t,i,a),l=fs(c),f=Uu(t.cache);(!l||l.stale||Date.now()-l.time>(f?.staleTime||0))&&sr(t,e,r,{force:!0})};_n.focus.add(s),n.__fetchCleanups.push(()=>_n.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>sr(t,e,r,{force:!0});_n.online.add(s),n.__fetchCleanups.push(()=>_n.online.delete(s))}},f0=(t,e,r)=>{if(!e.optimistic)return null;let n=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():w(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&&Br(t,i,o),s},Bu=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Br(t,n,e.as),delete r.__optimisticSnapshot)},u0=async(t,e,r)=>{let n=r?.fetch;if(!n)return;let o=await zu(n,r);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:u,auth:d,headers:h,baseUrl:g,invalidates:p,optimistic:m,onMutate:b,onSuccess:x,onError:y,onSettled:_}=t,v;if(c===!0||u==="submit")v=ls(e);else if(T(c)){let R=ls(e);v={};for(let P of c)v[P]=R[P]}else e.state?.parse?v=e.state.parse():w(e.state)&&(v={...e.state});l&&(v=l(v,e,e.state)),C(b)&&b(v,e,e.state);let E=m?f0(e,t,v):null;s.__fetching=!0,Ae(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Zt(e,"onFetchStart"),fe(t,e,"onFetchStart");let I=r?.analyze?.emitNetwork,z=I?typeof performance<"u"?performance.now():Date.now():0;I&&I({phase:"start",mode:"mutation",from:a,method:i});try{if(d!==!1&&o.auth!==!1&&o.getSession){let X=await o.getSession();if(d===!0&&!X){E!==void 0&&Bu(e,t);let D={message:"Not authenticated"};Zt(e,"onFetchError",D),fe(t,e,"onFetchError",D);return}}let R=o[i];if(!C(R))return;let P={from:a,data:v,headers:h,baseUrl:g};t.params&&(P.params=Lm(t.params,e,r));let G=Ya(e,r);G&&(P.headers={...P.headers,"Accept-Language":G});let bt=$m(t),V=await Im(()=>R(P),bt),{data:Q,error:N}=V||{};if(N){E!==void 0&&Bu(e,t),Ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:N,status:"error",fetchStatus:"idle"}),Zt(e,"onFetchError",N),C(y)&&y(N,v,e),C(_)&&_(null,N,v,e),I&&I({phase:"error",mode:"mutation",from:a,method:i,error:N.message||String(N),durationMs:(typeof performance<"u"?performance.now():Date.now())-z});return}if(delete s.__optimisticSnapshot,Q!==void 0){let X=f?{[f]:Q}:Q;e.state?.update&&e.state.update(X,{preventFetch:!0})}if(Ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Zt(e,"onFetchComplete",Q),fe(t,e,"onFetchComplete",Q),C(x)&&x(Q,v,e),C(_)&&_(Q,null,v,e),I&&I({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-z}),p){let X=T(p)?p:[p];for(let D of X)if(D===!0||D==="*")for(let[q]of Ot)q.startsWith(a+":")&&cs(q);else cs(D)}}catch(R){E!==void 0&&Bu(e,t),Ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:R,status:"error",fetchStatus:"idle"}),Zt(e,"onFetchError",R),fe(t,e,"onFetchError",R),C(y)&&y(R,v,e),C(_)&&_(null,R,v,e),I&&I({phase:"error",mode:"mutation",from:a,method:i,error:R.message||String(R),durationMs:(typeof performance<"u"?performance.now():Date.now())-z})}finally{s.__fetching=!1}},us=(t,e,r,n)=>{if(!t||!n?.fetch)return;let s=ot(t,e);if(!s)return;let i=T(s)?s.map(c=>Om(ot(c,e),e)).filter(Boolean):[Om(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?u0:sr;c.on==="create"?f(c,e,n):Promise.resolve().then(()=>{c0({...c,__runner:f},e,n)}),!l&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&l0(c,e,n)}let a=e.__ref;a.refetch=c=>{for(let l of i)sr(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};sr(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};sr(f,e,n,{direction:"previous",force:!0})}},d0={invalidateQueries:t=>{if(!t){cs();return}if(S(t))for(let[e]of Ot)(e.startsWith(t)||e.includes(t))&&cs(e);else if(T(t)){let e=t.join(":");for(let[r]of Ot)r.includes(e)&&cs(r)}},removeQueries:t=>{if(!t){qa();return}if(S(t))for(let[e]of Ot)(e.startsWith(t)||e.includes(t))&&qa(e)},getQueryData:t=>fs(t)?.data??void 0,setQueryData:(t,e)=>{let r=fs(t),n=C(e)?e(r?.data):e;as(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let n=await zu(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=as(o,i.data,null);a.gcTime=Uu(t.cache)?.gcTime||3e5}return i},getCache:()=>Ot,clear:()=>qa(),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[r]of Ot)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(e)||qa(r))}},Wu={name:"fetch",create(t){let e=t.fetch;e&&(t.parent||os.clear(),us(e,t,t.state,t.context))}},p0=us});function ps(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 qu(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 Ku(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 Gu(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(w(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 Mm(t){let e=this;if(or("beforeRemove",e,t)===!1)return e;C(e.node.remove)?e.node.remove():rr()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=To(e.parent.__ref.__children,e.key)),or("remove",e,t)}function Yu(t){return this[t]}function Xu(t,e){let r=this;if(t)return r.update(t,e),r}function Ju(t){return t?this.__ref&&this.__ref[t]:this.__ref}function hs(){return this.getRef("__children").map(e=>this[e])}function gs(){return this.getRef().path}function ys(t){let e=null,r=n=>n.__element&&n.root?.isRootState;if(!this)e=Fm();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=Fm()),t?e?.[t]:e}function bs(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function xs(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function _s(t){let e=this.getRoot()?.context;return t?e[t]:e}function Ss(t){let e=this.context;return t?e[t]:e}function Ja(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||tr.has(r)&&!Io.has(r)||e.push(r);return e}function Za(t=[]){let e=this,r={},n=Ja.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,...u}=e[a];r[a]=u}else wt(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function ds(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let n=Za.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=>j(a)?ds.call(a,t,e):a):j(i)&&(n[s]=ds.call(i,t,e))}return n}function Sn(...t){if(ar!=="test"&&ar!=="development")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(n=>console.log(`%c${n}:
|
|
20
|
+
`,"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 Qu(...t){(ar==="test"||ar==="development")&&console.log(...t)}function ws(...t){(ar==="test"||ar==="development")&&console.warn(...t)}function Ur(...t){if(ar==="test"||ar==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&Sn.call(this),new Error(...t)}}function ks(){let t=this,{key:e,parent:r}=t,{__children:n}=r.__ref,o=n.indexOf(e),s=n[o+1];return r[s]}function vs(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 Cs(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,it(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 td(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=>{Ur.call(this,s)}),o}catch(o){if(Ur.call(this,o),r?.strictMode)throw o}}async function As(){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(()=>(ir(),Vr));await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(ir(),Vr));await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=Promise.resolve().then(()=>(ir(),Vr)).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(()=>(ir(),Vr));await o(n,t.context)}return n}function Es(t){let e=this,r=t||ns.useStateQuery||e.context?.useStateQuery;if(!r)return null;let n={};if(Hu(e,n),r===!0)return n;let o=_0[r];return o?o(n):n}function ed(t,e){return!!(dn.has(t)||e?.context?.methods?.[t])}var ar,Nm,ms,Fm,Zu,Hu,h0,jm,g0,m0,y0,b0,x0,_0,Bm=L(()=>{"use strict";Fu();pn();_t();Ne();Kf();un();Nu();ar="production";Nm=null,ms=t=>{Nm=t||null},Fm=()=>Nm||null;Zu=(t,e,r,n)=>Object.defineProperty(t,e,{get:r,set:n});Hu=(t,e)=>{let r=t.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&h0(e,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&Hu(c,e)}let s=r.contentElementKey||"content",i=t[s];i&&i.__ref&&Hu(i,e)},h0=(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])}},jm=(t,e=0)=>{let r=" ".repeat(e),n=Object.entries(t);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {
|
|
21
|
+
${jm(i,e+1)}
|
|
22
22
|
${r}}`).join(`
|
|
23
|
-
`):""},
|
|
24
|
-
${
|
|
25
|
-
}`,
|
|
23
|
+
`):""},g0=t=>`{
|
|
24
|
+
${jm(t,1)}
|
|
25
|
+
}`,m0=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},y0=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("&")},b0=(t,e)=>{let r=[],n=[],o=new Set,s=(f,u,d)=>{o.add(u),d&&n.push(`LEFT JOIN ${u} ON ${u}.${d}_id = ${d}.id`);for(let h in f)f[h]===!0?r.push(`${u}.${h}`):s(f[h],h,u)},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?`
|
|
26
26
|
`+n.join(`
|
|
27
27
|
`):"";return`SELECT ${c}
|
|
28
|
-
FROM ${a}${l}`},
|
|
28
|
+
FROM ${a}${l}`},x0=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},_0={graphql:g0,"json-api":m0,odata:y0,sql:b0,paths:x0}});var S0,rd,Vm=L(()=>{"use strict";da();S0={snapshotId:Bo},rd=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=S0.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var Qa,nd,Um=L(()=>{Qa=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),nd=t=>typeof t=="string"&&Qa.has(t)});async function od(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 zm=L(()=>{"use strict"});var Ee,cr,wn,ue,sd,Wm=L(()=>{"use strict";Ee={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e)=>`${Ee.skypack.url}/${t}${e!=="latest"?`@${e}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e)=>`${Ee.esmsh.url}/${t}${e!=="latest"?`@${e}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e)=>`${Ee.unpkg.url}/${t}${e!=="latest"?`@${e}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e)=>`${Ee.jsdelivr.url}/${t}${e!=="latest"?`@${e}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e)=>`${Ee.symbols.url}/${t}${e!=="latest"?`@${e}`:""}/+esm`}},cr={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},wn=(t={})=>{let{packageManager:e}=t;return cr[e]||null},ue=(t,e="latest",r="esmsh")=>(Ee[r]||Ee.esmsh).formatUrl(t,e),sd=(t,e="skypack",r={})=>{let n=t.dependencies||{},o=Object.keys(n);if(!o.length)return"";let s=r.pin||{},i={};for(let f of o){let u=s[f]||n[f]||"latest";i[f]=ue(f,u,e)}let a='<script type="importmap">',c="<\/script>",l=`{
|
|
29
29
|
"imports": ${JSON.stringify(i,null,2)}
|
|
30
|
-
}`;return`${a}${l}${c}`}});var sd,Wm=L(()=>{"use strict";sd=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 id,Hm=L(()=>{"use strict";id=(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 ad,qm=L(()=>{"use strict";ad=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 cd,Km=L(()=>{"use strict";cd=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function kn(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 hd(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 ld,fd,ud,dd,pd,Gm=L(()=>{"use strict";ld=(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)}}),fd=(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)}),ud=(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}`)},dd=(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)}}),pd=(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 k0(t,e){if(!e||typeof e!="object")return t;let r=o=>{if(!w0(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 Qa(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 v0(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,u]of Object.entries(l))typeof u!="string"||!u.includes("{{")||(l[f]=u.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(d,h,g)=>{let p=h.trim();if(g==="polyglot")return a[p]??Qa(a,p)??d;if(g==="getLocalStateLang")return Qa(c,p+s)??d;let m=Qa(c,p);return m!==void 0?m:a[p]??Qa(a,p)??d}));return l}function Ym(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 md(t,e,r,{isProduction:n=!1,channel:o="production"}={}){let s=t.pages?.[e],i=w(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=Ym(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=Ym(f),d={};if(t.integrations?.seo?d={...t.integrations.seo,...u,...c}:Object.keys(u).length?d={...u,...c}:d={...c},!d.title){let p=t.name||t.key;p?n?d.title=p:o==="development"?d.title=`${p} / dev:symbo.ls`:o==="staging"?d.title=`${p} / staging:symbo.ls`:d.title=`${p} / symbo.ls`:d.title="Symbols demo"}d=v0(d,t,r),d.title&&(l.has("title")||!d["og:title"])&&(l.has("og:title")||(d["og:title"]=d.title)),d.description&&(l.has("description")||!d["og:description"])&&(l.has("og:description")||(d["og:description"]=d.description)),d.title&&!d["twitter:title"]&&(d["twitter:title"]=d.title),d.description&&!d["twitter:description"]&&(d["twitter:description"]=d.description);let h=r?.actualPathname||e;if(d["og:url"]||d.url){let p=(d["og:url"]||d.url||"").replace(/\/$/,"");if(p&&h&&h!=="/"){let m=h.startsWith("/")?h:"/"+h;d["og:url"]=p+m}}d=k0(d,t.files);let g=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[p,m]of Object.entries(d))if(typeof m=="string"&&m.includes("{{")){let b=m.replace(/\{\{[^}]*\}\}/g,"").trim();b?d[p]=b:p==="title"?d[p]=g:delete d[p]}return d}var St,_0,vn,S0,tc,gd,w0,Xm=L(()=>{"use strict";_t();St=t=>{if(t==null)return"";let e={"&":"&","<":"<",">":">",'"':""","'":"'"};return t.toString().replace(/[&<>"']/g,r=>e[r])},_0=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}="${St(r)}"`).join(" "),vn=t=>{let e=5381,r=String(t);for(let n=0;n<r.length;n++)e=(e*33^r.charCodeAt(n))>>>0;return e.toString(36)},S0=new Set(["jsonLd","styles","scripts"]),tc=t=>{let e=[];if(Array.isArray(t.jsonLd))for(let r of t.jsonLd){if(r==null)continue;let n=typeof r=="string"?r:JSON.stringify(r),o=String(n).replace(/<\/script/gi,"<\\/script");e.push(`<script type="application/ld+json" data-smbls-jsonld="${vn(n)}">${o}<\/script>`)}if(Array.isArray(t.styles))for(let r of t.styles){if(r==null||!String(r).trim())continue;let n=String(r).replace(/<\/style/gi,"<\\/style");e.push(`<style data-smbls-style="${vn(n)}">${n}</style>`)}if(Array.isArray(t.scripts))for(let r of t.scripts){if(!r)continue;let n=typeof r=="string",o=n?r:r.src;if(!o&&!r.body)continue;let s=[];o&&s.push(`src="${St(o)}"`),n||(r.type&&s.push(`type="${St(r.type)}"`),r.async&&s.push("async"),r.defer&&s.push("defer"),r.integrity&&s.push(`integrity="${St(r.integrity)}"`),r.crossorigin&&s.push(`crossorigin="${St(r.crossorigin)}"`),r.referrerpolicy&&s.push(`referrerpolicy="${St(r.referrerpolicy)}"`),r.nomodule&&s.push("nomodule"));let i=` data-smbls-script="${St(o||vn(r.body||""))}"`;if(!n&&r.body){let a=String(r.body).replace(/<\/script/gi,"<\\/script");e.push(`<script ${s.join(" ")}${i}>${a}<\/script>`)}else e.push(`<script ${s.join(" ")}${i}><\/script>`)}return e},gd=(t,e)=>{e||(t={...t,robots:"noindex"});let r=Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1||S0.has(o))return n;if(o==="title")return n.push(`<title>${St(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${St(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${St(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="${St(f)}">`);else if(typeof f=="object"){let u=_0(f);/rel=/.test(u)?n.push(`<link ${u}>`):n.push(`<link rel="icon" ${u}>`)}}),n;if(o==="alternate")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="object"){let u=Object.entries(f).filter(([d,h])=>h!==void 0).map(([d,h])=>`${d}="${St(h)}"`).join(" ");n.push(`<link rel="alternate" ${u}>`)}}),n;let i=(l,f,u="name")=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")n.push(`<meta ${u}="${St(l)}" content="${St(f)}">`);else if(Array.isArray(f))f.forEach(d=>{if(typeof d=="string"||typeof d=="number"||typeof d=="boolean")n.push(`<meta ${u}="${St(l)}" content="${St(d)}">`);else if(typeof d=="object"){let h=Object.entries(d).filter(([g,p])=>p!==void 0).map(([g,p])=>`${g}="${St(p)}"`).join(" ");n.push(`<meta ${h}>`)}});else if(typeof f=="object"){let d=Object.entries(f).filter(([h,g])=>g!==void 0).map(([h,g])=>`${h}="${St(g)}"`).join(" ");n.push(`<meta ${d}>`)}};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">']);return r.push(...tc(t)),r.join(`
|
|
31
|
-
`)},w0=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http")});var ec,yd,Jm=L(()=>{"use strict";_t();ec=(t,e)=>(T(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),yd=(t,e)=>(t=parseFloat(t),w(e)&&(e=Object.values(e)),ec(t,e))});function Cn(t){let e=String(t||"").trim();if(!e)return{owner:Zm,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=Zm);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function rc(t,e={}){if((e.provider||"kv")==="api")return Qm(t,e);let n=await P0(t,e);return n||Qm(t,e)}async function P0(t,e={}){let r=e.kvBaseUrl||C0,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 Qm(t,e={}){let r=e.apiBaseUrl||A0,{key:n}=Cn(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(h=>{let{key:g}=Cn(h?.key);return g.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`,u=await fetch(f,{method:"GET"});if(!u.ok)return null;let d=await u.json();return d?.data||d||null}catch{return null}}async function ty(t,e={}){if(w(t))return t;if(S(t)){let{full:r}=Cn(t);if(!r)return null;try{let n=await rc(r,e);return n||console.warn(`[smbls] Shared library "${r}" not found`),n}catch(n){return console.warn(`[smbls] Failed to fetch shared library "${r}":`,n.message),null}}return null}async function xd(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async n=>{if(Ts(n)){let o=await ty(O0(n),e);return o?{library:o,ignoreList:n.ignoreList}:null}return ty(n,e)}))).filter(Boolean)}var Zm,C0,A0,As,ey,E0,T0,Es,bd,Ts,O0,R0,Os,ry=L(()=>{"use strict";_t();Zm="system",C0="https://smbls-kv.nika-980.workers.dev",A0="https://api.symbols.app";As=(t,e,r,n)=>{for(let o in e){let s=n?`${n}/${o}`:o;r&&r.has(s)||(o in t?w(t[o])&&w(e[o])&&As(t[o],e[o],r,s):t[o]=e[o])}},ey=(t,e,r)=>{if(!w(t)||!e.size)return t;let n=`${r}/`,o=!1;for(let i of e)if(i.startsWith(n)){o=!0;break}if(!o)return t;let s={};for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let a=`${r}/${i}`;e.has(a)||(s[i]=ey(t[i],e,a))}return s},E0=new Set,T0=t=>t.replace(/\.js$/iu,""),Es=t=>{let e=new Set;if(!Array.isArray(t))return e;for(let r of t){if(!S(r))continue;let n=r.split("/").map(o=>T0(o.trim())).filter(Boolean).join("/");n&&e.add(n)}return e},bd=(t,e={})=>({library:t,ignoreList:Array.isArray(e.ignoreList)?e.ignoreList:[]}),Ts=t=>w(t)&&Array.isArray(t.ignoreList)&&("library"in t||"key"in t||"name"in t),O0=t=>t.library!==void 0?t.library:t.key??t.name,R0=(t,e,r)=>{let n=Es(e.sharedLibIgnore);e.sharePages===!1&&n.add("pages");let o=n.size?new Set([...r,...n]):r;for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&!(s==="sharePages"||s==="sharedLibIgnore")&&!o.has(s))if(w(e[s])&&w(t[s]))if(s==="designSystem")As(t[s],e[s],o,s);else for(let i in e[s])o.has(`${s}/${i}`)||i in t[s]||(t[s][i]=e[s][i]);else s in t||(t[s]=ey(e[s],o,s))},Os=(t,e)=>{if(!(!e||!e.length))for(let r=0;r<e.length;r++){let n=e[r],o=E0;Ts(n)&&(o=Es(n.ignoreList),n=n.library),w(n)&&R0(t,n,o)}}});var _d,Sd,wd,Rs,kd,Ps,vd,zr,ny=L(()=>{"use strict";_t();_d=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},Sd=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)}},wd=t=>t.replace(/[^a-zA-Z0-9_]/g,""),Rs=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,"")),kd=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),Ps=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),vd=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},zr=t=>{if(T(t))return t;if(S(t))return t.split(" ");if(w(t))return Object.values(t);if(Se(t))return[t]}});var Cd,oy=L(()=>{"use strict";Cd=()=>{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 Nt,An,$s,Is,sy=L(()=>{"use strict";Nt=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},An=(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(", ")},$s=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(r=>r.format===t.type);return An(e,{keepOneX:!1})},Is=(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:An(c,{keepOneX:!0})}});let o=r.get(t.type)||[],s=An(o,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}});var nc={};$(nc,{CDN_PROVIDERS:()=>Ae,DOMQL_EVENTS:()=>Cf,DOMQ_PROPERTIES:()=>tr,ENV:()=>Vf,HTML_TAGS:()=>yn,METHODS:()=>dn,METHODS_EXL:()=>$o,NODE_ENV:()=>le,OPTIONS:()=>es,PACKAGE_MANAGER_TO_CDN:()=>cr,PARSED_DOMQ_PROPERTIES:()=>Po,PROPS_METHODS:()=>er,STATE_METHODS:()=>Fr,STATE_PROPERTIES:()=>vf,SVG_TAGS:()=>am,TYPES:()=>vo,UNIVERSAL_RESERVED_KEYS:()=>Za,addCaching:()=>Da,addContext:()=>Ia,addExtend:()=>du,addExtends:()=>Mt,addItemAfterEveryElement:()=>uf,addProtoToArray:()=>Eo,addRef:()=>Ra,applyDependentState:()=>Pu,applyEvent:()=>Ba,applyEventUpdate:()=>Va,applyExtends:()=>fm,applyProps:()=>Yo,arrayContainsOtherArray:()=>nf,arraysEqual:()=>pf,arrayzeValue:()=>zr,buildImgSrcset:()=>$s,buildSourcesAndImg:()=>Is,cache:()=>Fu,call:()=>Qu,captureSnapshot:()=>ed,checkForStateTypes:()=>Eu,checkIfInherits:()=>ja,checkIfStringIsInArray:()=>mf,clone:()=>Ef,cloneAndMergeArrayExtend:()=>Vo,cloneFunction:()=>Xf,concatAddExtends:()=>lu,copyJavaScriptToClipboard:()=>Sd,copyStringToClipboard:()=>_d,createBasedOnType:()=>Oa,createElement:()=>Au,createElementExtends:()=>ya,createExtends:()=>zo,createExtendsFromKeys:()=>bn,createExtendsStack:()=>Sa,createIfConditionFlag:()=>Jf,createInheritedState:()=>Tu,createKey:()=>jo,createNestedObject:()=>Df,createNestedObjectByKeyPath:()=>Ru,createObjectWithoutPrototype:()=>fa,createParent:()=>Pa,createPath:()=>$a,createProps:()=>Xo,createPropsStack:()=>Ea,createRoot:()=>Cu,createScope:()=>Iu,createSnapshotId:()=>No,customDecodeURIComponent:()=>kf,customEncodeURIComponent:()=>wf,cutArrayAfterValue:()=>lf,cutArrayBeforeValue:()=>cf,debounce:()=>Bo,debounceOnContext:()=>Kf,decodeNewlines:()=>Sf,deepClone:()=>it,deepContains:()=>$f,deepDefaults:()=>As,deepDestringifyFunctions:()=>Jt,deepExtend:()=>ma,deepMerge:()=>Y,deepMergeExtends:()=>ke,deepStringifyFunctions:()=>Io,defineSetter:()=>Ju,destringifyGlobalScope:()=>Lo,detectHeightOnInit:()=>id,detectInfiniteLoop:()=>Nf,document:()=>K,encodeNewlines:()=>_f,error:()=>Ur,excludeKeysFromObject:()=>Bf,exec:()=>ot,extendCachedRegistry:()=>fu,extendStackRegistry:()=>Wo,extractArrayExtend:()=>qo,fetchLibraryData:()=>rc,fibonacciNumberByIndex:()=>ad,filterArrays:()=>hf,filterArraysFast:()=>gf,finalizeExtends:()=>wa,findClosestNumber:()=>ec,findClosestNumberInFactory:()=>yd,findInheritedState:()=>Na,findKeyPosition:()=>bf,flattenExtend:()=>xn,formatDate:()=>sd,generateHash:()=>pa,generateHeadArrayTags:()=>tc,generateKey:()=>Mo,generateMetaTags:()=>gd,get:()=>Gu,getCDNUrl:()=>ue,getCapitalCaseKeys:()=>gu,getCdnProviderFromConfig:()=>wn,getChildStateInKey:()=>Ma,getChildren:()=>ds,getContext:()=>xs,getCookie:()=>ru,getDB:()=>vs,getEmotionStylesheet:()=>Cd,getExtendsInElement:()=>pu,getExtendsStack:()=>Uo,getExtendsStackRegistry:()=>ga,getFrequencyInArray:()=>of,getHashedExtend:()=>Ho,getImportMapScript:()=>od,getInObjectByPath:()=>Mf,getLocalStorage:()=>ou,getNev:()=>Hf,getPageMetadata:()=>md,getParentStateInKey:()=>Fa,getPath:()=>ps,getQuery:()=>Cs,getRef:()=>Xu,getRoot:()=>ms,getRootContext:()=>bs,getRootData:()=>ys,getRootState:()=>gs,getRootStateInKey:()=>La,getSpreadChildren:()=>mu,global:()=>tf,hasFunction:()=>we,hasHandlerPlugin:()=>hn,hasOwnProperty:()=>Of,hashContent:()=>vn,inheritChildExtends:()=>xa,inheritChildPropsExtends:()=>ba,inheritParentProps:()=>Jo,inheritRecursiveChildExtends:()=>_a,initProps:()=>wu,is:()=>Dt,isArray:()=>T,isBoolean:()=>sa,isContextComponent:()=>yu,isCyclic:()=>jf,isDOMNode:()=>$t,isDate:()=>aa,isDefined:()=>It,isDevelopment:()=>nr,isEmpty:()=>ca,isEmptyObject:()=>Rf,isEqualDeep:()=>la,isFunction:()=>C,isHtmlElement:()=>wo,isLocal:()=>Wf,isLoudDevRuntime:()=>Ft,isMethod:()=>td,isMobile:()=>tu,isNode:()=>Me,isNot:()=>rf,isNotProduction:()=>jr,isNull:()=>ia,isNumber:()=>Se,isObject:()=>w,isObjectLike:()=>j,isPhoto:()=>cd,isProduction:()=>rr,isStaging:()=>zf,isState:()=>Ou,isString:()=>S,isStringFunction:()=>Yf,isTest:()=>da,isTesting:()=>Uf,isUndefined:()=>xt,isUniversallyReservedKey:()=>rd,isValidHtmlTag:()=>iu,isWrappedLibrary:()=>Ts,joinArrays:()=>ln,jointStacks:()=>uu,keys:()=>Xa,loadCssFile:()=>dd,loadJavascript:()=>pd,loadJavascriptFile:()=>ld,loadJavascriptFileEmbedSync:()=>ud,loadJavascriptFileSync:()=>fd,loadRemoteCSS:()=>hd,loadRemoteScript:()=>kn,log:()=>Zu,logGroupIf:()=>Qf,logIf:()=>Zf,lookdown:()=>qu,lookdownAll:()=>Ku,lookup:()=>Hu,lowercaseFirstLetter:()=>Lr,makeObjectWithoutPrototype:()=>Pf,map:()=>Af,mapStringsWithContextComponents:()=>Ko,matchesComponentNaming:()=>ve,memoize:()=>Gf,merge:()=>ct,mergeSharedLibraries:()=>Os,nextElement:()=>Ss,normalizeIgnoreList:()=>Es,normalizeLibraryKey:()=>Cn,objectToString:()=>Do,objectizeStringProperty:()=>Go,overwrite:()=>Fo,overwriteDeep:()=>Lt,overwriteShallow:()=>Nr,overwriteState:()=>$u,parse:()=>Ja,parseDeep:()=>fs,pickupElementFromProps:()=>Ca,pickupPropsFromElement:()=>va,previousElement:()=>ws,propExists:()=>_u,propertizeElement:()=>Aa,propertizeUpdate:()=>xu,remove:()=>Fm,removeChars:()=>wd,removeCookie:()=>nu,removeDuplicateProps:()=>Qo,removeDuplicatesInArray:()=>fn,removeFromArray:()=>sf,removeFromObject:()=>If,removeNestedKeyByPath:()=>Lf,removeValueFromArray:()=>Ao,removeValueFromArrayAll:()=>ff,reorderArrayByValues:()=>df,replaceLiteralsWithObjectFields:()=>Dr,replaceOctalEscapeSequences:()=>xf,resolveAsset:()=>Nt,resolveHandler:()=>gn,resolveSharedLibraries:()=>xd,returnValueAsText:()=>Ta,runPluginHook:()=>At,self:()=>ef,setActiveRootState:()=>hs,setCookie:()=>eu,setHashedExtend:()=>ha,setInObjectByPath:()=>Ff,setLocalStorage:()=>su,setNodeStyles:()=>Ya,setProps:()=>Yu,setPropsPrototype:()=>Zo,sharedLibrary:()=>bd,spotByPath:()=>us,srcsetFor:()=>An,stringIncludesAny:()=>Oo,stringToObject:()=>Tf,swapItemsInArray:()=>af,syncProps:()=>ts,toCamelCase:()=>Rs,toDashCase:()=>Ps,toDescriptionCase:()=>vd,toTitleCase:()=>kd,toggleFullscreen:()=>nd,triggerEventOn:()=>or,triggerEventOnUpdate:()=>Du,trimStringFromSymbols:()=>yf,unstackArrayOfObjects:()=>Co,update:()=>Su,updateProps:()=>ku,variables:()=>ks,verbose:()=>Sn,warn:()=>_s,window:()=>k});var O=L(()=>{"use strict";ua();qf();_t();Ne();mn();un();ko();om();sm();Ro();So();im();au();hu();vu();ka();mm();ym();pn();bm();jm();Mu();Bm();Lu();Vm();Um();zm();Wm();Hm();qm();Km();Gm();Xm();Jm();ry();ny();oy();sy()});var BS=Nl((PM,jS)=>{var uo=1e3,po=uo*60,ho=po*60,nn=ho*24,EA=nn*7,TA=nn*365.25;jS.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return OA(t);if(r==="number"&&isFinite(t))return e.long?PA(t):RA(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function OA(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*TA;case"weeks":case"week":case"w":return r*EA;case"days":case"day":case"d":return r*nn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ho;case"minutes":case"minute":case"mins":case"min":case"m":return r*po;case"seconds":case"second":case"secs":case"sec":case"s":return r*uo;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function RA(t){var e=Math.abs(t);return e>=nn?Math.round(t/nn)+"d":e>=ho?Math.round(t/ho)+"h":e>=po?Math.round(t/po)+"m":e>=uo?Math.round(t/uo)+"s":t+"ms"}function PA(t){var e=Math.abs(t);return e>=nn?Pl(t,e,nn,"day"):e>=ho?Pl(t,e,ho,"hour"):e>=po?Pl(t,e,po,"minute"):e>=uo?Pl(t,e,uo,"second"):t+" ms"}function Pl(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+" "+n+(o?"s":"")}});var US=Nl(($M,VS)=>{function $A(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=a,r.humanize=BS(),r.destroy=l,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let u=0;for(let d=0;d<f.length;d++)u=(u<<5)-u+f.charCodeAt(d),u|=0;return r.colors[Math.abs(u)%r.colors.length]}r.selectColor=e;function r(f){let u,d=null,h,g;function p(...m){if(!p.enabled)return;let b=p,x=Number(new Date),y=x-(u||x);b.diff=y,b.prev=u,b.curr=x,u=x,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let _=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(E,I)=>{if(E==="%%")return"%";_++;let z=r.formatters[I];if(typeof z=="function"){let R=m[_];E=z.call(b,R),m.splice(_,1),_--}return E}),r.formatArgs.call(b,m),(b.log||r.log).apply(b,m)}return p.namespace=f,p.useColors=r.useColors(),p.color=r.selectColor(f),p.extend=n,p.destroy=r.destroy,Object.defineProperty(p,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(h!==r.namespaces&&(h=r.namespaces,g=r.enabled(f)),g),set:m=>{d=m}}),typeof r.init=="function"&&r.init(p),p}function n(f,u){let d=r(this.namespace+(typeof u>"u"?":":u)+f);return d.log=this.log,d}function o(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let u=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let d of u)d[0]==="-"?r.skips.push(d.slice(1)):r.names.push(d)}function s(f,u){let d=0,h=0,g=-1,p=0;for(;d<f.length;)if(h<u.length&&(u[h]===f[d]||u[h]==="*"))u[h]==="*"?(g=h,p=d,h++):(d++,h++);else if(g!==-1)h=g+1,p++,d=p;else return!1;for(;h<u.length&&u[h]==="*";)h++;return h===u.length}function i(){let f=[...r.names,...r.skips.map(u=>"-"+u)].join(",");return r.enable(""),f}function a(f){for(let u of r.skips)if(s(f,u))return!1;for(let u of r.names)if(s(f,u))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}VS.exports=$A});var zS=Nl((Vt,$l)=>{Vt.formatArgs=DA;Vt.save=LA;Vt.load=FA;Vt.useColors=IA;Vt.storage=MA();Vt.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`."))}})();Vt.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 IA(){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 DA(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+$l.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)}Vt.log=console.debug||console.log||(()=>{});function LA(t){try{t?Vt.storage.setItem("debug",t):Vt.storage.removeItem("debug")}catch{}}function FA(){let t;try{t=Vt.storage.getItem("debug")||Vt.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function MA(){try{return localStorage}catch{}}$l.exports=US()(Vt);var{formatters:NA}=$l.exports;NA.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Kg={};$(Kg,{ANIMATION_PROPS:()=>Op,ARIA_ROLES:()=>vk,ATTR_TRANSFORMS:()=>Cp,BLOCK_PROPS:()=>Rp,CDN_PROVIDERS:()=>Ae,CONFIG:()=>js,CSS_NATIVE_COLOR_REGEX:()=>de,CSS_PROPS_REGISTRY:()=>ut,CSS_UNITS:()=>cn,DEFAULT_CONFIG:()=>Ci,DEFAULT_CSS_PROPERTIES_LIST:()=>yt,DELEGATED_EVENTS:()=>Un,DESIGN_SYSTEM_OPTIONS:()=>eg,DOMQL_EVENTS:()=>Cf,DOMQ_PROPERTIES:()=>tr,DOM_EVENTS:()=>Ly,ENV:()=>Vf,FACTORY:()=>Oe,FLEX_PROPS:()=>Lp,FONT_PROPS:()=>Pp,GRID_PROPS:()=>Fp,HTML_ATTRIBUTES:()=>Nc,HTML_TAGS:()=>yn,LIFECYCLE_EVENTS:()=>br,METHODS:()=>dn,METHODS_EXL:()=>$o,MISC_PROPS:()=>$p,MIXINS:()=>Fc,NODE_ENV:()=>le,OPTIONS:()=>es,PACKAGE_MANAGER_TO_CDN:()=>cr,PARSED_DOMQ_PROPERTIES:()=>Po,POSITION_PROPS:()=>Ip,PROPS_METHODS:()=>er,REGISTRY:()=>Ot,RESERVED_STORE_METHODS:()=>Pr,ROUTER_OPTIONS:()=>sl,STANDARD_SCHEME_QUERIES:()=>kc,STATE_PROPERTIES:()=>vf,STORE_METHOD_NAMES:()=>bo,SVG_TAGS:()=>Bn,THEME_PROPS:()=>Dp,TIMING_PROPS:()=>_i,TYPES:()=>vo,UNIVERSAL_RESERVED_KEYS:()=>Za,VALUE_TRANSFORMERS:()=>$c,__resetStateShadowWarnings:()=>Xl,activateConfig:()=>cy,addCaching:()=>Da,addContext:()=>Ia,addDelegatedEvent:()=>yi,addExtend:()=>du,addExtends:()=>Mt,addItemAfterEveryElement:()=>uf,addMethods:()=>Kn,addProtoToArray:()=>Eo,addRef:()=>Ra,animation:()=>Xd,appendSVGSprite:()=>ci,appendSvgIconsSprite:()=>fi,applyAttrTransforms:()=>Ep,applyCSS:()=>Gh,applyDependentState:()=>Pu,applyDocument:()=>ai,applyEvent:()=>Ba,applyEventUpdate:()=>Va,applyExtends:()=>Wn,applyHeadings:()=>Ac,applyInitialState:()=>Wc,applyMediaSequenceVars:()=>ur,applyProps:()=>Yo,applyReset:()=>ui,applySequenceGlobalVars:()=>qs,applySequenceVars:()=>We,applySpacingSequence:()=>ni,applyStateMethods:()=>Kt,applyTimingSequence:()=>ii,applyTrueProps:()=>Np,applyTypographySequence:()=>ti,arrayContainsOtherArray:()=>nf,arraysEqual:()=>pf,arrayzeValue:()=>zr,batch:()=>De,breakpoints:()=>Gd,buildImgSrcset:()=>$s,buildSourcesAndImg:()=>Is,cache:()=>Fu,cacheNode:()=>yr,call:()=>Qu,callStateMethod:()=>wi,camelToAttr:()=>_r,camelToLowerAttr:()=>Fy,captureSnapshot:()=>ed,changeGlobalTheme:()=>Ic,changeLightness:()=>Pd,checkAttributeByTagName:()=>Sr,checkEventFunctions:()=>Ap,checkForStateTypes:()=>Eu,checkIfBoxSize:()=>ri,checkIfInherits:()=>ja,checkIfStringIsInArray:()=>mf,class:()=>ep,clone:()=>Ef,cloneAndMergeArrayExtend:()=>Vo,cloneFunction:()=>Xf,color:()=>Vd,colorStringToRgbaArray:()=>Ee,components:()=>Zn,concatAddExtends:()=>lu,convertSvgToSymbol:()=>Ks,copyJavaScriptToClipboard:()=>Sd,copyStringToClipboard:()=>_d,create:()=>qg,createAsync:()=>cE,createBasedOnType:()=>Oa,createComputed:()=>Wl,createConfig:()=>xc,createDefine:()=>C_,createEffect:()=>J,createElement:()=>Au,createElementExtends:()=>ya,createExtends:()=>zo,createExtendsFromKeys:()=>bn,createExtendsStack:()=>Sa,createHTMLNode:()=>jn,createIfConditionFlag:()=>Jf,createInheritedState:()=>Tu,createKey:()=>jo,createNestedObject:()=>Df,createNestedObjectByKeyPath:()=>Ru,createObjectWithoutPrototype:()=>fa,createParent:()=>Pa,createPath:()=>$a,createProps:()=>Xo,createPropsStack:()=>Ea,createRoot:()=>Cu,createScope:()=>Iu,createScopeStore:()=>xo,createSignal:()=>Xt,createSkeleton:()=>fE,createSnapshotId:()=>No,createState:()=>zp,createStore:()=>zt,createSync:()=>lE,css:()=>ne,cssMediaVars:()=>yc,cssVars:()=>mc,customDecodeURIComponent:()=>kf,customEncodeURIComponent:()=>wf,cutArrayAfterValue:()=>lf,cutArrayBeforeValue:()=>cf,debounce:()=>Bo,debounceOnContext:()=>Kf,decodeNewlines:()=>Sf,deepClone:()=>it,deepContains:()=>$f,deepDefaults:()=>As,deepDestringifyFunctions:()=>Jt,deepExtend:()=>ma,deepMerge:()=>Y,deepMergeExtends:()=>ke,deepStringifyFunctions:()=>Io,defaultDefine:()=>eo,defineSetter:()=>Ju,destringifyGlobalScope:()=>Lo,destroy:()=>Pi,detectHeightOnInit:()=>id,detectInfiniteLoop:()=>Nf,detectTag:()=>mr,devices:()=>Yd,dispose:()=>wr,encodeNewlines:()=>_f,error:()=>Ur,excludeKeysFromObject:()=>Bf,exec:()=>ot,executeAttr:()=>Tk,exetuteClassPerComponent:()=>Xk,extendCachedRegistry:()=>fu,extendStackRegistry:()=>Wo,extractArrayExtend:()=>qo,extractConditionalAttrs:()=>Pk,fetchLibraryData:()=>rc,fibonacciNumberByIndex:()=>ad,filterArrays:()=>hf,filterArraysFast:()=>gf,filterAttributesByTagName:()=>Ek,finalizeExtends:()=>wa,findClosestNumber:()=>ec,findClosestNumberInFactory:()=>yd,findHeadingLetter:()=>wc,findHeadings:()=>Hs,findInheritedState:()=>Na,findKeyPosition:()=>bf,flattenExtend:()=>xn,font:()=>Ld,fontFace:()=>Nd,fontFamily:()=>Fd,fontFamilyTypes:()=>Md,formatDate:()=>sd,generateHash:()=>pa,generateHeadArrayTags:()=>tc,generateKey:()=>Mo,generateMetaTags:()=>gd,generateSequence:()=>jt,generateSequencePosition:()=>sp,generateSprite:()=>Pn,generateSubSequence:()=>zs,get:()=>Gu,getActiveConfig:()=>A,getActiveDocument:()=>Lc,getActiveLang:()=>no,getCDNUrl:()=>ue,getCacheSize:()=>xp,getCapitalCaseKeys:()=>gu,getCdnProviderFromConfig:()=>wn,getChildStateInKey:()=>Ma,getChildren:()=>ds,getColor:()=>et,getColorShade:()=>cc,getContext:()=>xs,getCookie:()=>ru,getDB:()=>vs,getDefaultOrFirstKey:()=>Wr,getEmotionStylesheet:()=>Cd,getExtendsInElement:()=>pu,getExtendsStack:()=>Uo,getExtendsStackRegistry:()=>ga,getFnPrefixAndValue:()=>ze,getFontFace:()=>Id,getFontFaceEach:()=>Hr,getFontFaceEachString:()=>dc,getFontFaceString:()=>Ls,getFontFamily:()=>Qs,getFontFormat:()=>fc,getFontSizeByKey:()=>ei,getFrequencyInArray:()=>of,getHashedExtend:()=>Ho,getImportMapScript:()=>od,getInObjectByPath:()=>Mf,getLanguages:()=>Di,getLocalStateLang:()=>ji,getLocalStorage:()=>ou,getMediaColor:()=>wt,getMediaTheme:()=>te,getNev:()=>Hf,getObserver:()=>Rr,getPageMetadata:()=>md,getParentStateInKey:()=>Fa,getPath:()=>ps,getQuery:()=>Cs,getRef:()=>Xu,getRgbTone:()=>lr,getRoot:()=>ms,getRootContext:()=>bs,getRootData:()=>ys,getRootState:()=>gs,getRootStateInKey:()=>La,getSequenceValue:()=>Ws,getSequenceValueBySymbols:()=>Sc,getSequenceValuePropertyPair:()=>Pe,getShadow:()=>si,getSignals:()=>Jl,getSpacingBasedOnRatio:()=>pe,getSpacingByKey:()=>mt,getSpreadChildren:()=>mu,getSubratio:()=>Us,getSubratioDifference:()=>Vs,getSystemGlobalTheme:()=>ie,getTheme:()=>Ys,getTimingByKey:()=>Wt,getTimingFunction:()=>ee,global:()=>tf,gradient:()=>Ud,grid:()=>tp,hasFunction:()=>we,hasHandlerPlugin:()=>hn,hasOwnProperty:()=>Of,hashContent:()=>vn,hexToRgb:()=>Ed,hexToRgbArray:()=>oc,hexToRgba:()=>Od,hslToRgb:()=>ac,icons:()=>Hd,inheritChildExtends:()=>xa,inheritChildPropsExtends:()=>ba,inheritParentProps:()=>Jo,inheritRecursiveChildExtends:()=>_a,init:()=>qe,initPolyglot:()=>cl,initProps:()=>wu,injectGlobal:()=>ht,is:()=>Dt,isArray:()=>T,isBoolean:()=>sa,isCSSVar:()=>lt,isContextComponent:()=>yu,isCyclic:()=>jf,isDOMNode:()=>$t,isDate:()=>aa,isDefined:()=>It,isDevelopment:()=>nr,isDomDocument:()=>Le,isEmpty:()=>ca,isEmptyObject:()=>Rf,isEnumeratedTrueFalseAttr:()=>jc,isEqualDeep:()=>la,isFunction:()=>C,isGoogleFontsUrl:()=>Tn,isHostObject:()=>Fe,isHtmlElement:()=>wo,isLocal:()=>Wf,isLoudDevRuntime:()=>Ft,isMethod:()=>td,isMobile:()=>tu,isNode:()=>Me,isNot:()=>rf,isNotProduction:()=>jr,isNull:()=>ia,isNumber:()=>Se,isObject:()=>w,isObjectLike:()=>j,isPhoto:()=>cd,isProduction:()=>rr,isRawUnitValue:()=>_o,isResolvedColor:()=>Te,isScalingUnit:()=>Ir,isStaging:()=>zf,isState:()=>Ou,isStore:()=>at,isString:()=>S,isStringFunction:()=>Yf,isSvgTag:()=>Vn,isTest:()=>da,isTesting:()=>Uf,isTracking:()=>Hp,isUndefined:()=>xt,isUniversallyReservedKey:()=>rd,isValidHtmlTag:()=>iu,isValidTag:()=>Nn,isWasmLoaded:()=>u_,isWrappedLibrary:()=>Ts,isWritableFamilyBucket:()=>Ql,joinArrays:()=>ln,jointStacks:()=>uu,keyframes:()=>Mn,keys:()=>Xa,loadCssFile:()=>dd,loadJavascript:()=>pd,loadJavascriptFile:()=>ld,loadJavascriptFileEmbedSync:()=>ud,loadJavascriptFileSync:()=>fd,loadRemoteCSS:()=>hd,loadRemoteScript:()=>kn,loadTranslations:()=>Fi,loadWasm:()=>f_,log:()=>Zu,logGroupIf:()=>Qf,logIf:()=>Zf,lookdown:()=>qu,lookdownAll:()=>Ku,lookup:()=>Hu,lowercaseFirstLetter:()=>Lr,makeObjectWithoutPrototype:()=>Pf,map:()=>Af,mapStringsWithContextComponents:()=>Ko,matchesComponentNaming:()=>ve,media:()=>jd,memoize:()=>Gf,merge:()=>ct,mergeSharedLibraries:()=>Os,mixTwoColors:()=>Ad,mixTwoRgb:()=>Rd,mixTwoRgba:()=>lc,nextElement:()=>Ss,normalizeIgnoreList:()=>Es,normalizeLibraryKey:()=>Cn,numToLetterMap:()=>Re,objectToString:()=>Do,objectizeStringProperty:()=>Go,opacify:()=>En,overwrite:()=>Fo,overwriteDeep:()=>Lt,overwriteShallow:()=>Nr,overwriteState:()=>$u,parkHostObject:()=>Qe,parse:()=>Ja,parseColorToken:()=>Be,parseDeep:()=>fs,pickupElementFromProps:()=>Ca,pickupPropsFromElement:()=>va,polyglotFunctions:()=>Bi,polyglotPlugin:()=>oo,popConfig:()=>Z,previousElement:()=>ws,propExists:()=>_u,propertizeElement:()=>Aa,propertizeUpdate:()=>xu,pushConfig:()=>tt,refreshContextProto:()=>Uc,registerEvent:()=>zn,reinit:()=>Kh,remove:()=>qn,removeChars:()=>wd,removeCookie:()=>nu,removeDelegatedEvent:()=>bi,removeDuplicateProps:()=>Qo,removeDuplicatesInArray:()=>fn,removeFromArray:()=>sf,removeFromObject:()=>If,removeNestedKeyByPath:()=>Lf,removeValueFromArray:()=>Ao,removeValueFromArrayAll:()=>ff,reorderArrayByValues:()=>df,replaceLiteralsWithObjectFields:()=>Dr,replaceOctalEscapeSequences:()=>xf,resolveAsset:()=>Nt,resolveColorsInGradient:()=>pi,resolveConfigDocument:()=>an,resolveFileSource:()=>vp,resolveFileUrl:()=>Qt,resolveHandler:()=>gn,resolvePropValue:()=>xr,resolveSharedLibraries:()=>xd,returnSubThemeOrDefault:()=>$d,returnValueAsText:()=>Ta,rgbArrayToHex:()=>sc,rgbToHSL:()=>ic,rgbToHex:()=>Td,runPluginHook:()=>At,runThroughMedia:()=>Cc,scratchDefaultConfig:()=>Rn,scratchSystem:()=>Ln,scratchUtils:()=>dr,self:()=>ef,semanticIcons:()=>qd,sequence:()=>Ue,serializeAttrValue:()=>xi,set:()=>qr,setActiveConfig:()=>bc,setActiveDocument:()=>yp,setActiveRootState:()=>hs,setAdaptiveSchemeVar:()=>hr,setClass:()=>Xv,setClassname:()=>Jk,setColor:()=>pr,setCookie:()=>eu,setCssEngineHook:()=>nl,setCustomFont:()=>Ds,setCustomFontMedia:()=>fr,setEach:()=>pp,setFont:()=>Zs,setFontFamily:()=>In,setFontImport:()=>On,setGradient:()=>$n,setHashedExtend:()=>ha,setInCustomFontMedia:()=>uc,setInObjectByPath:()=>Ff,setLang:()=>Mi,setLocalStorage:()=>su,setMediaTheme:()=>Js,setNodeStyles:()=>Ya,setObserver:()=>zl,setProps:()=>Yu,setPropsPrototype:()=>Zo,setSVG:()=>Dn,setScalingVar:()=>Bs,setShadow:()=>gr,setSubScalingVar:()=>_c,setSvgIcon:()=>li,setTheme:()=>Xs,setValue:()=>dp,setVariables:()=>ip,setWasmEngine:()=>mi,shadow:()=>Wd,sharedLibrary:()=>bd,sizes:()=>np,spacing:()=>Bd,splitSpacedValue:()=>oi,splitTopLevelCommas:()=>Ve,splitTransition:()=>Pc,spotByPath:()=>us,srcsetFor:()=>An,stringIncludesAny:()=>Oo,stringToObject:()=>Tf,svg:()=>Jd,svgData:()=>Zd,swapItemsInArray:()=>af,syncProps:()=>ts,templates:()=>Qd,theme:()=>zd,timing:()=>Kd,toCamel:()=>Ns,toCamelCase:()=>Rs,toDashCase:()=>Ps,toDescriptionCase:()=>vd,toTitleCase:()=>kd,toggleFullscreen:()=>nd,transformBackgroundImage:()=>Oc,transformBorder:()=>$e,transformBorderRadius:()=>gi,transformBoxShadow:()=>di,transformClassname:()=>zy,transformDuration:()=>hi,transformShadow:()=>Tc,transformSize:()=>ft,transformSizeRatio:()=>F,transformTextStroke:()=>Ec,transformTransition:()=>up,transformersByPrefix:()=>jp,transfromGap:()=>Rc,translate:()=>Li,triggerEventOn:()=>or,triggerEventOnUpdate:()=>Du,trimStringFromSymbols:()=>yf,typography:()=>Fs,unit:()=>Dd,unstackArrayOfObjects:()=>Co,update:()=>Hn,updateProps:()=>ku,updateVars:()=>Yv,upsertTranslation:()=>Ni,useCssInProps:()=>qt,useHostState:()=>Wp,usePropsAsCSS:()=>Vy,useSelectorsAsCSS:()=>Uy,variables:()=>ks,vars:()=>rp,verbose:()=>Sn,warn:()=>_s,warnStateKeyShadowsMethod:()=>$r,window:()=>k,wrapHoverRule:()=>he});var Zl={};$(Zl,{RESERVED_STORE_METHODS:()=>Pr,STORE_METHOD_NAMES:()=>bo,__resetStateShadowWarnings:()=>Xl,batch:()=>De,createComputed:()=>Wl,createEffect:()=>J,createScopeStore:()=>xo,createSignal:()=>Xt,createStore:()=>zt,getObserver:()=>Rr,getSignals:()=>Jl,isStore:()=>at,setObserver:()=>zl,warnStateKeyShadowsMethod:()=>$r});var Pt=null,ea=0,ra=[],Rr=()=>Pt,zl=t=>{Pt=t},na=0,jl=[];function Xt(t){let e=new Set;function r(){return Pt&&(e.add(Pt),Pt._sources.add(s)),t}function n(i){i!==t&&(t=i,vw(e))}function o(){return t}let s={get:r,set:n,peek:o,_subscribers:e,_type:"signal"};return s}function Wl(t){let e,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){Ul(o);let s=Pt;Pt=o;try{e=t(),r=!1}finally{Pt=s}},_notify(){r=!0,n.size>0&&Zg(n)},get(){return Pt&&(n.add(Pt),Pt._sources.add(o)),r&&o._execute(),e},peek(){return r&&o._execute(),e}};return o._execute(),o}var _e=new Set,Bl=!1;function J(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;Ul(n);let o=Pt;Pt=n;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{Pt=o}},_notify(){n._disposed||(ea>0?ra.push(n):na>0?jl.push(n):Hl(n))},dispose(){n._disposed=!0,Ul(n)}};return n._execute(),n}function De(t){ea++;try{t()}finally{ea--,ea===0&&kw()}}var Vl=!1,Yg=1e3,Sw=8;function Xg(){return typeof performance<"u"?performance.now():Date.now()}function Hl(t){_e.add(t),!Vl&&(Bl||(Bl=!0,queueMicrotask(Jg)))}var sn=[];function ww(){if(_e.size===1){let[t]=_e;_e.clear(),t._disposed||t._execute();return}sn.length=0;for(let t of _e)sn.push(t);_e.clear(),sn.sort((t,e)=>t._depth-e._depth);for(let t=0;t<sn.length;t++){let e=sn[t];e._disposed||e._execute()}sn.length=0}function Jg(t=0){if(Bl=!1,_e.size===0)return;Vl=!0;let e=Xg(),r=!1;try{for(;_e.size>0;){if(++t>Yg){console.error("[smbls] reactive effect cascade exceeded",Yg,"passes in a single flush \u2014 breaking to avoid hanging the thread.","This usually means an effect (or an onUpdate/subscribeTo handler","it calls into) unconditionally writes back a signal it depends on."),_e.clear();break}if(ww(),_e.size>0&&Xg()-e>Sw){r=!0,setTimeout(()=>Jg(t),0);break}}}finally{r||(Vl=!1)}}function kw(){for(let t=0;t<ra.length;t++)Hl(ra[t]);ra.length=0}function Zg(t){na++;try{for(let e of t)e._notify()}finally{if(na--,na===0&&jl.length>0){let e=jl.splice(0);for(let r=0;r<e.length;r++)Hl(e[r])}}}function vw(t){Zg(t)}function Ul(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var Ze=Symbol("store"),oa=Symbol("signals"),bo=["update","parse","clean","keys","values","replace","add","remove","destroy","quietUpdate"],Pr=new Set(bo),Gl=new Set,Qg=(t,e)=>t?t+"."+e:String(e);function $r(t,e){let r=(e||"")+"::"+t;if(Gl.has(r))return;Gl.add(r);let n=e?`state.${e}`:"state",o=`[smbls/state] "${t}" is a reserved store-method name and was written as DATA at ${n}.${t}. The value is preserved and readable \u2014 data wins over the method \u2014 but "${n}.${t}(\u2026)" no longer reaches the store method on this node. Use "${n}.$${t}(\u2026)" for the method, or rename the data key. Reserved: ${bo.join(", ")}.`;typeof console<"u"&&console.warn&&console.warn(o)}function Xl(){Gl.clear()}var ql=t=>!t||typeof t!="object"||Array.isArray(t)||t[Ze]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName,Cw=12,tm=t=>{if(!t||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};function Yl(t,e,r){if(t===e)return!0;if(r>Cw)return!1;if(Array.isArray(t)||Array.isArray(e)){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!Yl(t[n],e[n],r+1))return!1;return!0}if(tm(t)&&tm(e)){let n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let s of n)if(!Object.prototype.hasOwnProperty.call(e,s)||!Yl(t[s],e[s],r+1))return!1;return!0}return!1}function zt(t,e,r,n){r===void 0&&(r=0),n===void 0&&(n="");let o={},s={},i=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let x in t){if(x==="__proto__"||!Object.prototype.hasOwnProperty.call(t,x))continue;Pr.has(x)&&$r(x,n);let y=t[x];r<i&&y&&typeof y=="object"&&!ql(y)?(s[x]=y,o[x]=Xt(zt(y,e,r+1,Qg(n,x)))):(s[x]=y,o[x]=Xt(y))}let a=new Proxy(s,{get(x,y){if(y===Ze)return!0;if(y===oa)return o;if(y==="__raw")return x;if(y==="$update")return c;if(y==="$parse")return f;if(y==="$clean")return u;if(y==="$keys")return d;if(y==="$values")return h;if(y==="$replace")return g;if(y==="$add")return p;if(y==="$remove")return m;if(y==="$destroy")return b;if(y==="$quietUpdate")return l;if(Pr.has(y)&&!Object.prototype.hasOwnProperty.call(o,y))switch(y){case"update":return c;case"parse":return f;case"clean":return u;case"keys":return d;case"values":return h;case"replace":return g;case"add":return p;case"remove":return m;case"destroy":return b;case"quietUpdate":return l}if(y==="__element")return x.__element;if(y==="parent")return x.parent;if(y==="root")return x.root;if(Object.prototype.hasOwnProperty.call(o,y)){let v=o[y].get();if(v!==void 0||!(y!=="root"&&x.root&&x.root!==a))return v}if(x[y]!==void 0)return x[y];let _=typeof y=="string"&&!y.startsWith("__")&&y!=="then"&&y!=="constructor"&&Rr()!=null;if(y!=="root"&&x.root&&x.root!==a){let v=x.root[y];return v===void 0&&_&&!Object.prototype.hasOwnProperty.call(o,y)?(o[y]=Xt(void 0),o[y].get()):v}if(_)return o[y]=Xt(void 0),o[y].get()},set(x,y,_){if(y==="__proto__")return!1;if(y==="__element"||y==="parent"||y==="root")return x[y]=_,!0;Pr.has(y)&&$r(y,n);let v=Qg(n,y);if(Object.prototype.hasOwnProperty.call(o,y))if(_&&typeof _=="object"&&!ql(_)){if(_===x[y])return!0;let E=o[y].peek(),I=E&&E[Ze]?E.$parse():E;if(Yl(_,I,0))return!0;x[y]=_,o[y].set(zt(_,e,r+1,v))}else x[y]=_,o[y].set(_);else x[y]=_,_&&typeof _=="object"&&!ql(_)?o[y]=Xt(zt(_,e,r+1,v)):o[y]=Xt(_);return!0},has(x,y){return typeof y=="string"&&y.charCodeAt(0)===36&&Pr.has(y.slice(1))?!0:y in o||y in x},ownKeys(x){return Object.keys(o)},getOwnPropertyDescriptor(x,y){return y in o?{enumerable:!0,configurable:!0,value:o[y].peek()}:Object.getOwnPropertyDescriptor(x,y)},deleteProperty(x,y){return o[y]&&(o[y].set(void 0),delete o[y]),delete x[y],!0}});function c(x,y){De(()=>{for(let v in x)v!=="__proto__"&&(a[v]=x[v])});let _=s.__element;return _&&_.onUpdate&&!y?.quiet&&_.onUpdate(_,a,_.context),a}function l(x){return c(x,{quiet:!0})}function f(x){if(x||(x=new Set),x.has(a))return"[Circular]";x.add(a);let y={};for(let _ in o){if(_==="parent"||_==="root"||_.startsWith("__"))continue;let v=o[_].peek();v&&v[Ze]?y[_]=v.$parse(x):y[_]=v}return y}function u(){return De(()=>{for(let x in o)delete a[x]}),a}function d(){return Object.keys(o)}function h(){return Object.keys(o).map(x=>o[x].peek())}function g(x){return De(()=>{for(let y in o)y in x||delete a[y];for(let y in x)y!=="__proto__"&&(a[y]=x[y])}),a}function p(x,y){return a[x]=y,a}function m(x){return delete a[x],a}function b(){u(),s.__element=null,s.parent=null}return a}function at(t){return t&&t[Ze]===!0}function Jl(t){return t[oa]}function xo(t,e){let r={},n={};if(t&&typeof t=="object")for(let i in t)n[i]=t[i],r[i]=Xt(t[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=e;for(;a;){let c=a[oa];if(c&&Object.prototype.hasOwnProperty.call(c,i))return c;a=a[Ze]?a[Kl]:null}return null};return new Proxy(n,{get(i,a){return a===Ze?!0:a===oa?r:a===Kl?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]=Xt(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[Ze]?c[Kl]: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 Kl=Symbol("scope.parent");var _p={};$(_p,{css:()=>ne,getActiveDocument:()=>Lc,getCacheSize:()=>xp,injectGlobal:()=>ht,keyframes:()=>Mn,reset:()=>Cy,setActiveDocument:()=>yp,setWasmEngine:()=>mi,wrapHoverRule:()=>he});var hp={};$(hp,{CONFIG:()=>js,CSS_NATIVE_COLOR_REGEX:()=>de,CSS_UNITS:()=>cn,FACTORY:()=>Oe,STANDARD_SCHEME_QUERIES:()=>kc,VALUE_TRANSFORMERS:()=>$c,activateConfig:()=>cy,animation:()=>Xd,appendSVGSprite:()=>ci,appendSvgIconsSprite:()=>fi,applyDocument:()=>ai,applyHeadings:()=>Ac,applyMediaSequenceVars:()=>ur,applyReset:()=>ui,applySequenceGlobalVars:()=>qs,applySequenceVars:()=>We,applySpacingSequence:()=>ni,applyTimingSequence:()=>ii,applyTypographySequence:()=>ti,breakpoints:()=>Gd,changeGlobalTheme:()=>Ic,changeLightness:()=>Pd,checkIfBoxSize:()=>ri,class:()=>ep,color:()=>Vd,colorStringToRgbaArray:()=>Ee,convertSvgToSymbol:()=>Ks,createConfig:()=>xc,cssMediaVars:()=>yc,cssVars:()=>mc,devices:()=>Yd,document:()=>iy,findHeadingLetter:()=>wc,findHeadings:()=>Hs,font:()=>Ld,fontFace:()=>Nd,fontFamily:()=>Fd,fontFamilyTypes:()=>Md,generateSequence:()=>jt,generateSequencePosition:()=>sp,generateSprite:()=>Pn,generateSubSequence:()=>zs,getActiveConfig:()=>A,getColor:()=>et,getColorShade:()=>cc,getDefaultOrFirstKey:()=>Wr,getFnPrefixAndValue:()=>ze,getFontFace:()=>Id,getFontFaceEach:()=>Hr,getFontFaceEachString:()=>dc,getFontFaceString:()=>Ls,getFontFamily:()=>Qs,getFontFormat:()=>fc,getFontSizeByKey:()=>ei,getMediaColor:()=>wt,getMediaTheme:()=>te,getRgbTone:()=>lr,getSequenceValue:()=>Ws,getSequenceValueBySymbols:()=>Sc,getSequenceValuePropertyPair:()=>Pe,getShadow:()=>si,getSpacingBasedOnRatio:()=>pe,getSpacingByKey:()=>mt,getSubratio:()=>Us,getSubratioDifference:()=>Vs,getTheme:()=>Ys,getTimingByKey:()=>Wt,getTimingFunction:()=>ee,gradient:()=>Ud,grid:()=>tp,hexToRgb:()=>Ed,hexToRgbArray:()=>oc,hexToRgba:()=>Od,hslToRgb:()=>ac,icons:()=>Hd,isCSSVar:()=>lt,isDomDocument:()=>Le,isGoogleFontsUrl:()=>Tn,isHostObject:()=>Fe,isRawUnitValue:()=>_o,isResolvedColor:()=>Te,isScalingUnit:()=>Ir,isWritableFamilyBucket:()=>Ql,media:()=>jd,mixTwoColors:()=>Ad,mixTwoRgb:()=>Rd,mixTwoRgba:()=>lc,numToLetterMap:()=>Re,opacify:()=>En,parkHostObject:()=>Qe,parseColorToken:()=>Be,popConfig:()=>Z,pushConfig:()=>tt,reset:()=>ay,resolveColorsInGradient:()=>pi,resolveConfigDocument:()=>an,resolveFileUrl:()=>Qt,returnSubThemeOrDefault:()=>$d,rgbArrayToHex:()=>sc,rgbToHSL:()=>ic,rgbToHex:()=>Td,runThroughMedia:()=>Cc,scratchDefaultConfig:()=>Rn,scratchSystem:()=>Ln,scratchUtils:()=>dr,semanticIcons:()=>qd,sequence:()=>Ue,set:()=>qr,setActiveConfig:()=>bc,setAdaptiveSchemeVar:()=>hr,setColor:()=>pr,setCustomFont:()=>Ds,setCustomFontMedia:()=>fr,setEach:()=>pp,setFont:()=>Zs,setFontFamily:()=>In,setFontImport:()=>On,setGradient:()=>$n,setInCustomFontMedia:()=>uc,setMediaTheme:()=>Js,setSVG:()=>Dn,setScalingVar:()=>Bs,setShadow:()=>gr,setSubScalingVar:()=>_c,setSvgIcon:()=>li,setTheme:()=>Xs,setValue:()=>dp,setVariables:()=>ip,shadow:()=>Wd,sizes:()=>np,spacing:()=>Bd,splitSpacedValue:()=>oi,splitTopLevelCommas:()=>Ve,splitTransition:()=>Pc,svg:()=>Jd,svgData:()=>Zd,templates:()=>Qd,theme:()=>zd,timing:()=>Kd,toCamel:()=>Ns,transformBackgroundImage:()=>Oc,transformBorder:()=>$e,transformBorderRadius:()=>gi,transformBoxShadow:()=>di,transformDuration:()=>hi,transformShadow:()=>Tc,transformSize:()=>ft,transformSizeRatio:()=>F,transformTextStroke:()=>Ec,transformTransition:()=>up,transfromGap:()=>Rc,typography:()=>Fs,unit:()=>Dd,vars:()=>rp});var dr={};$(dr,{CSS_NATIVE_COLOR_REGEX:()=>de,CSS_UNITS:()=>cn,applyMediaSequenceVars:()=>ur,applySequenceGlobalVars:()=>qs,applySequenceVars:()=>We,changeLightness:()=>Pd,colorStringToRgbaArray:()=>Ee,convertSvgToSymbol:()=>Ks,findHeadingLetter:()=>wc,findHeadings:()=>Hs,generateSequence:()=>jt,generateSequencePosition:()=>sp,generateSprite:()=>Pn,generateSubSequence:()=>zs,getColorShade:()=>cc,getDefaultOrFirstKey:()=>Wr,getFnPrefixAndValue:()=>ze,getFontFace:()=>Id,getFontFaceEach:()=>Hr,getFontFaceEachString:()=>dc,getFontFaceString:()=>Ls,getFontFormat:()=>fc,getRgbTone:()=>lr,getSequenceValue:()=>Ws,getSequenceValueBySymbols:()=>Sc,getSequenceValuePropertyPair:()=>Pe,getSubratio:()=>Us,getSubratioDifference:()=>Vs,hexToRgb:()=>Ed,hexToRgbArray:()=>oc,hexToRgba:()=>Od,hslToRgb:()=>ac,isCSSVar:()=>lt,isDomDocument:()=>Le,isGoogleFontsUrl:()=>Tn,isHostObject:()=>Fe,isRawUnitValue:()=>_o,isResolvedColor:()=>Te,isScalingUnit:()=>Ir,isWritableFamilyBucket:()=>Ql,mixTwoColors:()=>Ad,mixTwoRgb:()=>Rd,mixTwoRgba:()=>lc,numToLetterMap:()=>Re,opacify:()=>En,parkHostObject:()=>Qe,parseColorToken:()=>Be,resolveConfigDocument:()=>an,resolveFileUrl:()=>Qt,returnSubThemeOrDefault:()=>$d,rgbArrayToHex:()=>sc,rgbToHSL:()=>ic,rgbToHex:()=>Td,setCustomFont:()=>Ds,setCustomFontMedia:()=>fr,setFontImport:()=>On,setInCustomFontMedia:()=>uc,setScalingVar:()=>Bs,setSubScalingVar:()=>_c,setVariables:()=>ip,splitTopLevelCommas:()=>Ve});var Le=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0),Fe=t=>{if(t===null||typeof t!="object")return!1;let e=Object.prototype.toString.call(t);return!!(e!=="[object Object]"&&e!=="[object Array]"||typeof t.nodeType=="number"||t.defaultView||t.window===t||t.self===t)},Ql=t=>t!==null&&typeof t=="object"&&!Fe(t),Qe=(t,e,r)=>{if(!t)return;if(Le(r)){t.__domDocument||(t.__domDocument=r);return}let n=`__host_${e}`;t[n]||(t[n]=r)},an=t=>t?Le(t.__domDocument)?t.__domDocument:Le(t.document)?t.document:null:null;var Ir=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",cn=["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"],Aw=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Ew=new RegExp(`^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:${cn.filter(t=>t!=="auto").map(Aw).join("|")})$`),_o=t=>Ew.test(String(t).trim());O();var Ee=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&&K&&k){let e=K.body.appendChild(K.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){K.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return K.body.removeChild(e),[0,0,0,0];t=k.getComputedStyle(e).color,K.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]},Ad=(t,e,r=.5)=>(t=Ee(t),e=Ee(e),lc(t,e,r)),Ed=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},oc=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},Td=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),sc=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),Od=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},Rd=(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})`},Pd=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},ic=(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]},ac=(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)],cc=(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)},lc=(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})`},En=(t,e)=>{let r=Ee(t);if(!r){jr()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},lt=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,de=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,$0=/^([a-zA-Z]\w*(?:-[a-zA-Z]\w*)*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Be=t=>{if(!S(t))return null;if(de.test(t))return{passthrough:t};if(lt(t))return{cssVar:t};let e=t.match($0);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}},Te=t=>S(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),Ve=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},lr=(t,e)=>{S(t)&&t.includes("rgb")&&(t=Ee(t).join(", ")),S(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),Se(e)&&(e+="");let r=sc(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=cc(r,parseFloat(e));return oc(o).join(", ")}else{let[o,s,i]=t,[a,c]=ic(o/255,s/255,i/255),l=Math.max(0,Math.min(100,parseFloat(e)))/100;return ac(a,c,l).map(u=>Math.round(Math.max(0,Math.min(1,u))*255)).join(", ")}};var $d=(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},Wr=(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},fc=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},Tn=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),On=t=>`@import url('${t}');`,uc=t=>`@font-face { ${t} }`,Ds=(t,e,r,n={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=fc(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
|
|
30
|
+
}`;return`${a}${l}${c}`}});var id,Hm=L(()=>{"use strict";id=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 ad,qm=L(()=>{"use strict";ad=(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 cd,Km=L(()=>{"use strict";cd=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 ld,Gm=L(()=>{"use strict";ld=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function kn(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 gd(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 fd,ud,dd,pd,hd,Ym=L(()=>{"use strict";fd=(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)}}),ud=(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)}),dd=(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}`)},pd=(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)}}),hd=(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 C0(t,e){if(!e||typeof e!="object")return t;let r=o=>{if(!v0(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 tc(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 A0(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,u]of Object.entries(l))typeof u!="string"||!u.includes("{{")||(l[f]=u.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(d,h,g)=>{let p=h.trim();if(g==="polyglot")return a[p]??tc(a,p)??d;if(g==="getLocalStateLang")return tc(c,p+s)??d;let m=tc(c,p);return m!==void 0?m:a[p]??tc(a,p)??d}));return l}function Xm(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 yd(t,e,r,{isProduction:n=!1,channel:o="production"}={}){let s=t.pages?.[e],i=w(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=Xm(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=Xm(f),d={};if(t.integrations?.seo?d={...t.integrations.seo,...u,...c}:Object.keys(u).length?d={...u,...c}:d={...c},!d.title){let p=t.name||t.key;p?n?d.title=p:o==="development"?d.title=`${p} / dev:symbo.ls`:o==="staging"?d.title=`${p} / staging:symbo.ls`:d.title=`${p} / symbo.ls`:d.title="Symbols demo"}d=A0(d,t,r),d.title&&(l.has("title")||!d["og:title"])&&(l.has("og:title")||(d["og:title"]=d.title)),d.description&&(l.has("description")||!d["og:description"])&&(l.has("og:description")||(d["og:description"]=d.description)),d.title&&!d["twitter:title"]&&(d["twitter:title"]=d.title),d.description&&!d["twitter:description"]&&(d["twitter:description"]=d.description);let h=r?.actualPathname||e;if(d["og:url"]||d.url){let p=(d["og:url"]||d.url||"").replace(/\/$/,"");if(p&&h&&h!=="/"){let m=h.startsWith("/")?h:"/"+h;d["og:url"]=p+m}}d=C0(d,t.files);let g=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[p,m]of Object.entries(d))if(typeof m=="string"&&m.includes("{{")){let b=m.replace(/\{\{[^}]*\}\}/g,"").trim();b?d[p]=b:p==="title"?d[p]=g:delete d[p]}return d}var St,w0,vn,k0,ec,md,v0,Jm=L(()=>{"use strict";_t();St=t=>{if(t==null)return"";let e={"&":"&","<":"<",">":">",'"':""","'":"'"};return t.toString().replace(/[&<>"']/g,r=>e[r])},w0=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}="${St(r)}"`).join(" "),vn=t=>{let e=5381,r=String(t);for(let n=0;n<r.length;n++)e=(e*33^r.charCodeAt(n))>>>0;return e.toString(36)},k0=new Set(["jsonLd","styles","scripts"]),ec=t=>{let e=[];if(Array.isArray(t.jsonLd))for(let r of t.jsonLd){if(r==null)continue;let n=typeof r=="string"?r:JSON.stringify(r),o=String(n).replace(/<\/script/gi,"<\\/script");e.push(`<script type="application/ld+json" data-smbls-jsonld="${vn(n)}">${o}<\/script>`)}if(Array.isArray(t.styles))for(let r of t.styles){if(r==null||!String(r).trim())continue;let n=String(r).replace(/<\/style/gi,"<\\/style");e.push(`<style data-smbls-style="${vn(n)}">${n}</style>`)}if(Array.isArray(t.scripts))for(let r of t.scripts){if(!r)continue;let n=typeof r=="string",o=n?r:r.src;if(!o&&!r.body)continue;let s=[];o&&s.push(`src="${St(o)}"`),n||(r.type&&s.push(`type="${St(r.type)}"`),r.async&&s.push("async"),r.defer&&s.push("defer"),r.integrity&&s.push(`integrity="${St(r.integrity)}"`),r.crossorigin&&s.push(`crossorigin="${St(r.crossorigin)}"`),r.referrerpolicy&&s.push(`referrerpolicy="${St(r.referrerpolicy)}"`),r.nomodule&&s.push("nomodule"));let i=` data-smbls-script="${St(o||vn(r.body||""))}"`;if(!n&&r.body){let a=String(r.body).replace(/<\/script/gi,"<\\/script");e.push(`<script ${s.join(" ")}${i}>${a}<\/script>`)}else e.push(`<script ${s.join(" ")}${i}><\/script>`)}return e},md=(t,e)=>{e||(t={...t,robots:"noindex"});let r=Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1||k0.has(o))return n;if(o==="title")return n.push(`<title>${St(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${St(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${St(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="${St(f)}">`);else if(typeof f=="object"){let u=w0(f);/rel=/.test(u)?n.push(`<link ${u}>`):n.push(`<link rel="icon" ${u}>`)}}),n;if(o==="alternate")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="object"){let u=Object.entries(f).filter(([d,h])=>h!==void 0).map(([d,h])=>`${d}="${St(h)}"`).join(" ");n.push(`<link rel="alternate" ${u}>`)}}),n;let i=(l,f,u="name")=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")n.push(`<meta ${u}="${St(l)}" content="${St(f)}">`);else if(Array.isArray(f))f.forEach(d=>{if(typeof d=="string"||typeof d=="number"||typeof d=="boolean")n.push(`<meta ${u}="${St(l)}" content="${St(d)}">`);else if(typeof d=="object"){let h=Object.entries(d).filter(([g,p])=>p!==void 0).map(([g,p])=>`${g}="${St(p)}"`).join(" ");n.push(`<meta ${h}>`)}});else if(typeof f=="object"){let d=Object.entries(f).filter(([h,g])=>g!==void 0).map(([h,g])=>`${h}="${St(g)}"`).join(" ");n.push(`<meta ${d}>`)}};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">']);return r.push(...ec(t)),r.join(`
|
|
31
|
+
`)},v0=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http")});var rc,bd,Zm=L(()=>{"use strict";_t();rc=(t,e)=>(T(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),bd=(t,e)=>(t=parseFloat(t),w(e)&&(e=Object.values(e)),rc(t,e))});function Cn(t){let e=String(t||"").trim();if(!e)return{owner:Qm,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=Qm);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function nc(t,e={}){if((e.provider||"kv")==="api")return ty(t,e);let n=await I0(t,e);return n||ty(t,e)}async function I0(t,e={}){let r=e.kvBaseUrl||E0,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 ty(t,e={}){let r=e.apiBaseUrl||T0,{key:n}=Cn(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(h=>{let{key:g}=Cn(h?.key);return g.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`,u=await fetch(f,{method:"GET"});if(!u.ok)return null;let d=await u.json();return d?.data||d||null}catch{return null}}async function ey(t,e={}){if(w(t))return t;if(S(t)){let{full:r}=Cn(t);if(!r)return null;try{let n=await nc(r,e);return n||console.warn(`[smbls] Shared library "${r}" not found`),n}catch(n){return console.warn(`[smbls] Failed to fetch shared library "${r}":`,n.message),null}}return null}async function _d(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async n=>{if(Rs(n)){let o=await ey(P0(n),e);return o?{library:o,ignoreList:n.ignoreList}:null}return ey(n,e)}))).filter(Boolean)}var Qm,E0,T0,Ts,ry,O0,R0,Os,xd,Rs,P0,$0,Ps,ny=L(()=>{"use strict";_t();Qm="system",E0="https://smbls-kv.nika-980.workers.dev",T0="https://api.symbols.app";Ts=(t,e,r,n)=>{for(let o in e){let s=n?`${n}/${o}`:o;r&&r.has(s)||(o in t?w(t[o])&&w(e[o])&&Ts(t[o],e[o],r,s):t[o]=e[o])}},ry=(t,e,r)=>{if(!w(t)||!e.size)return t;let n=`${r}/`,o=!1;for(let i of e)if(i.startsWith(n)){o=!0;break}if(!o)return t;let s={};for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let a=`${r}/${i}`;e.has(a)||(s[i]=ry(t[i],e,a))}return s},O0=new Set,R0=t=>t.replace(/\.js$/iu,""),Os=t=>{let e=new Set;if(!Array.isArray(t))return e;for(let r of t){if(!S(r))continue;let n=r.split("/").map(o=>R0(o.trim())).filter(Boolean).join("/");n&&e.add(n)}return e},xd=(t,e={})=>({library:t,ignoreList:Array.isArray(e.ignoreList)?e.ignoreList:[]}),Rs=t=>w(t)&&Array.isArray(t.ignoreList)&&("library"in t||"key"in t||"name"in t),P0=t=>t.library!==void 0?t.library:t.key??t.name,$0=(t,e,r)=>{let n=Os(e.sharedLibIgnore);e.sharePages===!1&&n.add("pages");let o=n.size?new Set([...r,...n]):r;for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&!(s==="sharePages"||s==="sharedLibIgnore")&&!o.has(s))if(w(e[s])&&w(t[s]))if(s==="designSystem")Ts(t[s],e[s],o,s);else for(let i in e[s])o.has(`${s}/${i}`)||i in t[s]||(t[s][i]=e[s][i]);else s in t||(t[s]=ry(e[s],o,s))},Ps=(t,e)=>{if(!(!e||!e.length))for(let r=0;r<e.length;r++){let n=e[r],o=O0;Rs(n)&&(o=Os(n.ignoreList),n=n.library),w(n)&&$0(t,n,o)}}});var Sd,wd,kd,$s,vd,Is,Cd,zr,oy=L(()=>{"use strict";_t();Sd=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,""),$s=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()),Is=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)},zr=t=>{if(T(t))return t;if(S(t))return t.split(" ");if(w(t))return Object.values(t);if(we(t))return[t]}});var Ad,sy=L(()=>{"use strict";Ad=()=>{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 jt,An,Ds,Ls,iy=L(()=>{"use strict";jt=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},An=(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(", ")},Ds=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(r=>r.format===t.type);return An(e,{keepOneX:!1})},Ls=(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:An(c,{keepOneX:!0})}});let o=r.get(t.type)||[],s=An(o,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}});var oc={};$(oc,{CDN_PROVIDERS:()=>Ee,DOMQL_EVENTS:()=>Af,DOMQ_PROPERTIES:()=>tr,ENV:()=>Uf,HTML_TAGS:()=>yn,METHODS:()=>dn,METHODS_EXL:()=>Do,NODE_ENV:()=>le,OPTIONS:()=>ns,PACKAGE_MANAGER_TO_CDN:()=>cr,PARSED_DOMQ_PROPERTIES:()=>Io,PROPS_METHODS:()=>er,STATE_METHODS:()=>Fr,STATE_PROPERTIES:()=>Cf,SVG_TAGS:()=>cm,TYPES:()=>Ao,UNIVERSAL_RESERVED_KEYS:()=>Qa,addCaching:()=>La,addContext:()=>Da,addExtend:()=>pu,addExtends:()=>Nt,addItemAfterEveryElement:()=>df,addProtoToArray:()=>Oo,addRef:()=>Pa,applyDependentState:()=>$u,applyEvent:()=>Va,applyEventUpdate:()=>Ua,applyExtends:()=>um,applyProps:()=>Jo,arrayContainsOtherArray:()=>of,arraysEqual:()=>hf,arrayzeValue:()=>zr,buildImgSrcset:()=>Ds,buildSourcesAndImg:()=>Ls,cache:()=>Mu,call:()=>td,captureSnapshot:()=>rd,checkForStateTypes:()=>Tu,checkIfInherits:()=>Ba,checkIfStringIsInArray:()=>yf,clone:()=>Tf,cloneAndMergeArrayExtend:()=>zo,cloneFunction:()=>Jf,concatAddExtends:()=>fu,copyJavaScriptToClipboard:()=>wd,copyStringToClipboard:()=>Sd,createBasedOnType:()=>Ra,createElement:()=>Eu,createElementExtends:()=>ba,createExtends:()=>Ho,createExtendsFromKeys:()=>bn,createExtendsStack:()=>wa,createIfConditionFlag:()=>Zf,createInheritedState:()=>Ou,createKey:()=>Vo,createNestedObject:()=>Lf,createNestedObjectByKeyPath:()=>Pu,createObjectWithoutPrototype:()=>ua,createParent:()=>$a,createPath:()=>Ia,createProps:()=>Zo,createPropsStack:()=>Ta,createRoot:()=>Au,createScope:()=>Du,createSnapshotId:()=>Bo,customDecodeURIComponent:()=>vf,customEncodeURIComponent:()=>kf,cutArrayAfterValue:()=>ff,cutArrayBeforeValue:()=>lf,debounce:()=>Uo,debounceOnContext:()=>Gf,decodeNewlines:()=>wf,deepClone:()=>it,deepContains:()=>If,deepDefaults:()=>Ts,deepDestringifyFunctions:()=>Jt,deepExtend:()=>ya,deepMerge:()=>Y,deepMergeExtends:()=>ve,deepStringifyFunctions:()=>Lo,defineSetter:()=>Zu,destringifyGlobalScope:()=>Mo,detectHeightOnInit:()=>ad,detectInfiniteLoop:()=>jf,document:()=>K,encodeNewlines:()=>Sf,error:()=>Ur,excludeKeysFromObject:()=>Vf,exec:()=>ot,extendCachedRegistry:()=>uu,extendStackRegistry:()=>qo,extractArrayExtend:()=>Go,fetchLibraryData:()=>nc,fibonacciNumberByIndex:()=>cd,filterArrays:()=>gf,filterArraysFast:()=>mf,finalizeExtends:()=>ka,findClosestNumber:()=>rc,findClosestNumberInFactory:()=>bd,findInheritedState:()=>ja,findKeyPosition:()=>xf,flattenExtend:()=>xn,formatDate:()=>id,generateHash:()=>ha,generateHeadArrayTags:()=>ec,generateKey:()=>jo,generateMetaTags:()=>md,get:()=>Yu,getCDNUrl:()=>ue,getCapitalCaseKeys:()=>mu,getCdnProviderFromConfig:()=>wn,getChildStateInKey:()=>Na,getChildren:()=>hs,getContext:()=>Ss,getCookie:()=>nu,getDB:()=>As,getEmotionStylesheet:()=>Ad,getExtendsInElement:()=>hu,getExtendsStack:()=>Wo,getExtendsStackRegistry:()=>ma,getFrequencyInArray:()=>sf,getHashedExtend:()=>Ko,getImportMapScript:()=>sd,getInObjectByPath:()=>Nf,getLocalStorage:()=>su,getNev:()=>qf,getPageMetadata:()=>yd,getParentStateInKey:()=>Ma,getPath:()=>gs,getQuery:()=>Es,getRef:()=>Ju,getRoot:()=>bs,getRootContext:()=>_s,getRootData:()=>xs,getRootState:()=>ys,getRootStateInKey:()=>Fa,getSpreadChildren:()=>yu,global:()=>ef,hasFunction:()=>ke,hasHandlerPlugin:()=>hn,hasOwnProperty:()=>Rf,hashContent:()=>vn,inheritChildExtends:()=>_a,inheritChildPropsExtends:()=>xa,inheritParentProps:()=>Qo,inheritRecursiveChildExtends:()=>Sa,initProps:()=>ku,is:()=>Lt,isArray:()=>T,isBoolean:()=>ia,isContextComponent:()=>bu,isCyclic:()=>Bf,isDOMNode:()=>Dt,isDate:()=>ca,isDefined:()=>wt,isDevelopment:()=>nr,isEmpty:()=>la,isEmptyObject:()=>Pf,isEqualDeep:()=>fa,isFunction:()=>C,isHtmlElement:()=>vo,isLocal:()=>Hf,isLoudDevRuntime:()=>Mt,isMethod:()=>ed,isMobile:()=>eu,isNode:()=>Me,isNot:()=>nf,isNotProduction:()=>jr,isNull:()=>aa,isNumber:()=>we,isObject:()=>w,isObjectLike:()=>j,isPhoto:()=>ld,isProduction:()=>rr,isStaging:()=>Wf,isState:()=>Ru,isString:()=>S,isStringFunction:()=>Xf,isTest:()=>pa,isTesting:()=>zf,isUndefined:()=>xt,isUniversallyReservedKey:()=>nd,isValidHtmlTag:()=>au,isWrappedLibrary:()=>Rs,joinArrays:()=>ln,jointStacks:()=>du,keys:()=>Ja,loadCssFile:()=>pd,loadJavascript:()=>hd,loadJavascriptFile:()=>fd,loadJavascriptFileEmbedSync:()=>dd,loadJavascriptFileSync:()=>ud,loadRemoteCSS:()=>gd,loadRemoteScript:()=>kn,log:()=>Qu,logGroupIf:()=>tu,logIf:()=>Qf,lookdown:()=>Ku,lookdownAll:()=>Gu,lookup:()=>qu,lowercaseFirstLetter:()=>Lr,makeObjectWithoutPrototype:()=>$f,map:()=>Ef,mapStringsWithContextComponents:()=>Yo,matchesComponentNaming:()=>Ce,memoize:()=>Yf,merge:()=>ct,mergeSharedLibraries:()=>Ps,nextElement:()=>ks,normalizeIgnoreList:()=>Os,normalizeLibraryKey:()=>Cn,objectToString:()=>Fo,objectizeStringProperty:()=>Xo,overwrite:()=>No,overwriteDeep:()=>Ft,overwriteShallow:()=>Nr,overwriteState:()=>Iu,parse:()=>Za,parseDeep:()=>ds,pickupElementFromProps:()=>Aa,pickupPropsFromElement:()=>Ca,previousElement:()=>vs,propExists:()=>Su,propertizeElement:()=>Ea,propertizeUpdate:()=>_u,remove:()=>Mm,removeChars:()=>kd,removeCookie:()=>ou,removeDuplicateProps:()=>es,removeDuplicatesInArray:()=>fn,removeFromArray:()=>af,removeFromObject:()=>Df,removeNestedKeyByPath:()=>Ff,removeValueFromArray:()=>To,removeValueFromArrayAll:()=>uf,reorderArrayByValues:()=>pf,replaceLiteralsWithObjectFields:()=>Dr,replaceOctalEscapeSequences:()=>_f,resolveAsset:()=>jt,resolveHandler:()=>gn,resolveSharedLibraries:()=>_d,returnValueAsText:()=>Oa,runPluginHook:()=>Et,self:()=>rf,setActiveRootState:()=>ms,setCookie:()=>ru,setHashedExtend:()=>ga,setInObjectByPath:()=>Mf,setLocalStorage:()=>iu,setNodeStyles:()=>Xa,setProps:()=>Xu,setPropsPrototype:()=>ts,sharedLibrary:()=>xd,spotByPath:()=>ps,srcsetFor:()=>An,stringIncludesAny:()=>Po,stringToObject:()=>Of,swapItemsInArray:()=>cf,syncProps:()=>rs,toCamelCase:()=>$s,toDashCase:()=>Is,toDescriptionCase:()=>Cd,toTitleCase:()=>vd,toggleFullscreen:()=>od,triggerEventOn:()=>or,triggerEventOnUpdate:()=>Lu,trimStringFromSymbols:()=>bf,unstackArrayOfObjects:()=>Eo,update:()=>wu,updateProps:()=>vu,variables:()=>Cs,verbose:()=>Sn,warn:()=>ws,window:()=>k});var O=L(()=>{"use strict";da();Kf();_t();Ne();mn();un();Co();sm();im();$o();ko();am();cu();gu();Cu();va();ym();bm();pn();xm();Bm();Nu();Vm();Fu();Um();zm();Wm();Hm();qm();Km();Gm();Ym();Jm();Zm();ny();oy();sy();iy()});var US=jl((DM,VS)=>{var ho=1e3,go=ho*60,mo=go*60,nn=mo*24,OA=nn*7,RA=nn*365.25;VS.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return PA(t);if(r==="number"&&isFinite(t))return e.long?IA(t):$A(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function PA(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*RA;case"weeks":case"week":case"w":return r*OA;case"days":case"day":case"d":return r*nn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*mo;case"minutes":case"minute":case"mins":case"min":case"m":return r*go;case"seconds":case"second":case"secs":case"sec":case"s":return r*ho;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function $A(t){var e=Math.abs(t);return e>=nn?Math.round(t/nn)+"d":e>=mo?Math.round(t/mo)+"h":e>=go?Math.round(t/go)+"m":e>=ho?Math.round(t/ho)+"s":t+"ms"}function IA(t){var e=Math.abs(t);return e>=nn?$l(t,e,nn,"day"):e>=mo?$l(t,e,mo,"hour"):e>=go?$l(t,e,go,"minute"):e>=ho?$l(t,e,ho,"second"):t+" ms"}function $l(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+" "+n+(o?"s":"")}});var WS=jl((LM,zS)=>{function DA(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=a,r.humanize=US(),r.destroy=l,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let u=0;for(let d=0;d<f.length;d++)u=(u<<5)-u+f.charCodeAt(d),u|=0;return r.colors[Math.abs(u)%r.colors.length]}r.selectColor=e;function r(f){let u,d=null,h,g;function p(...m){if(!p.enabled)return;let b=p,x=Number(new Date),y=x-(u||x);b.diff=y,b.prev=u,b.curr=x,u=x,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let _=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(E,I)=>{if(E==="%%")return"%";_++;let z=r.formatters[I];if(typeof z=="function"){let R=m[_];E=z.call(b,R),m.splice(_,1),_--}return E}),r.formatArgs.call(b,m),(b.log||r.log).apply(b,m)}return p.namespace=f,p.useColors=r.useColors(),p.color=r.selectColor(f),p.extend=n,p.destroy=r.destroy,Object.defineProperty(p,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(h!==r.namespaces&&(h=r.namespaces,g=r.enabled(f)),g),set:m=>{d=m}}),typeof r.init=="function"&&r.init(p),p}function n(f,u){let d=r(this.namespace+(typeof u>"u"?":":u)+f);return d.log=this.log,d}function o(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let u=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let d of u)d[0]==="-"?r.skips.push(d.slice(1)):r.names.push(d)}function s(f,u){let d=0,h=0,g=-1,p=0;for(;d<f.length;)if(h<u.length&&(u[h]===f[d]||u[h]==="*"))u[h]==="*"?(g=h,p=d,h++):(d++,h++);else if(g!==-1)h=g+1,p++,d=p;else return!1;for(;h<u.length&&u[h]==="*";)h++;return h===u.length}function i(){let f=[...r.names,...r.skips.map(u=>"-"+u)].join(",");return r.enable(""),f}function a(f){for(let u of r.skips)if(s(f,u))return!1;for(let u of r.names)if(s(f,u))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}zS.exports=DA});var HS=jl((Ut,Il)=>{Ut.formatArgs=FA;Ut.save=MA;Ut.load=NA;Ut.useColors=LA;Ut.storage=jA();Ut.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`."))}})();Ut.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 LA(){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 FA(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Il.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)}Ut.log=console.debug||console.log||(()=>{});function MA(t){try{t?Ut.storage.setItem("debug",t):Ut.storage.removeItem("debug")}catch{}}function NA(){let t;try{t=Ut.storage.getItem("debug")||Ut.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function jA(){try{return localStorage}catch{}}Il.exports=WS()(Ut);var{formatters:BA}=Il.exports;BA.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Gg={};$(Gg,{ANIMATION_PROPS:()=>Rp,ARIA_ROLES:()=>Ak,ATTR_TRANSFORMS:()=>Ap,BLOCK_PROPS:()=>Pp,CDN_PROVIDERS:()=>Ee,CONFIG:()=>Pn,CSS_NATIVE_COLOR_REGEX:()=>de,CSS_PROPS_REGISTRY:()=>ut,CSS_UNITS:()=>cn,DEFAULT_CONFIG:()=>Ai,DEFAULT_CSS_PROPERTIES_LIST:()=>yt,DELEGATED_EVENTS:()=>Wn,DESIGN_SYSTEM_OPTIONS:()=>rg,DOMQL_EVENTS:()=>Af,DOMQ_PROPERTIES:()=>tr,DOM_EVENTS:()=>My,ENV:()=>Uf,FACTORY:()=>pe,FLEX_PROPS:()=>Fp,FONT_PROPS:()=>$p,GRID_PROPS:()=>Mp,HTML_ATTRIBUTES:()=>jc,HTML_TAGS:()=>yn,LIFECYCLE_EVENTS:()=>br,METHODS:()=>dn,METHODS_EXL:()=>Do,MISC_PROPS:()=>Ip,MIXINS:()=>Mc,NODE_ENV:()=>le,OPTIONS:()=>ns,PACKAGE_MANAGER_TO_CDN:()=>cr,PARSED_DOMQ_PROPERTIES:()=>Io,POSITION_PROPS:()=>Dp,PROPS_METHODS:()=>er,REGISTRY:()=>Rt,RESERVED_STORE_METHODS:()=>Pr,ROUTER_OPTIONS:()=>il,STANDARD_SCHEME_QUERIES:()=>vc,STATE_PROPERTIES:()=>Cf,STORE_METHOD_NAMES:()=>_o,SVG_TAGS:()=>Un,THEME_PROPS:()=>Lp,TIMING_PROPS:()=>Si,TYPES:()=>Ao,UNIVERSAL_RESERVED_KEYS:()=>Qa,VALUE_TRANSFORMERS:()=>Ic,__resetStateShadowWarnings:()=>Jl,activateConfig:()=>fy,addCaching:()=>La,addContext:()=>Da,addDelegatedEvent:()=>bi,addExtend:()=>pu,addExtends:()=>Nt,addItemAfterEveryElement:()=>df,addMethods:()=>Yn,addProtoToArray:()=>Oo,addRef:()=>Pa,animation:()=>Jd,appendSVGSprite:()=>li,appendSvgIconsSprite:()=>ui,applyAttrTransforms:()=>Tp,applyCSS:()=>Yh,applyDependentState:()=>$u,applyDocument:()=>ci,applyEvent:()=>Va,applyEventUpdate:()=>Ua,applyExtends:()=>qn,applyHeadings:()=>Ec,applyInitialState:()=>Hc,applyMediaSequenceVars:()=>ur,applyProps:()=>Jo,applyReset:()=>di,applySequenceGlobalVars:()=>Ks,applySequenceVars:()=>We,applySpacingSequence:()=>oi,applyStateMethods:()=>Gt,applyTimingSequence:()=>ai,applyTrueProps:()=>jp,applyTypographySequence:()=>ei,arrayContainsOtherArray:()=>of,arraysEqual:()=>hf,arrayzeValue:()=>zr,batch:()=>De,breakpoints:()=>Yd,buildImgSrcset:()=>Ds,buildSourcesAndImg:()=>Ls,cache:()=>Mu,cacheNode:()=>yr,call:()=>td,callStateMethod:()=>ki,camelToAttr:()=>_r,camelToLowerAttr:()=>Ny,captureSnapshot:()=>rd,changeGlobalTheme:()=>Dc,changeLightness:()=>$d,checkAttributeByTagName:()=>Sr,checkEventFunctions:()=>Ep,checkForStateTypes:()=>Tu,checkIfBoxSize:()=>ni,checkIfInherits:()=>Ba,checkIfStringIsInArray:()=>yf,class:()=>rp,clone:()=>Tf,cloneAndMergeArrayExtend:()=>zo,cloneFunction:()=>Jf,color:()=>Ud,colorStringToRgbaArray:()=>Te,components:()=>to,concatAddExtends:()=>fu,convertSvgToSymbol:()=>Gs,copyJavaScriptToClipboard:()=>wd,copyStringToClipboard:()=>Sd,create:()=>Kg,createAsync:()=>fE,createBasedOnType:()=>Ra,createComputed:()=>Hl,createConfig:()=>_c,createDefine:()=>E_,createEffect:()=>J,createElement:()=>Eu,createElementExtends:()=>ba,createExtends:()=>Ho,createExtendsFromKeys:()=>bn,createExtendsStack:()=>wa,createHTMLNode:()=>Vn,createIfConditionFlag:()=>Zf,createInheritedState:()=>Ou,createKey:()=>Vo,createNestedObject:()=>Lf,createNestedObjectByKeyPath:()=>Pu,createObjectWithoutPrototype:()=>ua,createParent:()=>$a,createPath:()=>Ia,createProps:()=>Zo,createPropsStack:()=>Ta,createRoot:()=>Au,createScope:()=>Du,createScopeStore:()=>So,createSignal:()=>It,createSkeleton:()=>dE,createSnapshotId:()=>Bo,createState:()=>Wp,createStore:()=>Wt,createSync:()=>uE,css:()=>ne,cssMediaVars:()=>bc,cssVars:()=>yc,customDecodeURIComponent:()=>vf,customEncodeURIComponent:()=>kf,cutArrayAfterValue:()=>ff,cutArrayBeforeValue:()=>lf,debounce:()=>Uo,debounceOnContext:()=>Gf,decodeNewlines:()=>wf,deepClone:()=>it,deepContains:()=>If,deepDefaults:()=>Ts,deepDestringifyFunctions:()=>Jt,deepExtend:()=>ya,deepMerge:()=>Y,deepMergeExtends:()=>ve,deepStringifyFunctions:()=>Lo,defaultDefine:()=>no,defineSetter:()=>Zu,defineThemeSignal:()=>$n,destringifyGlobalScope:()=>Mo,destroy:()=>$i,detectHeightOnInit:()=>ad,detectInfiniteLoop:()=>jf,detectTag:()=>mr,devices:()=>Xd,dispose:()=>wr,encodeNewlines:()=>Sf,error:()=>Ur,excludeKeysFromObject:()=>Vf,exec:()=>ot,executeAttr:()=>Rk,exetuteClassPerComponent:()=>Zk,extendCachedRegistry:()=>uu,extendStackRegistry:()=>qo,extractArrayExtend:()=>Go,extractConditionalAttrs:()=>Ik,fetchLibraryData:()=>nc,fibonacciNumberByIndex:()=>cd,filterArrays:()=>gf,filterArraysFast:()=>mf,filterAttributesByTagName:()=>Ok,finalizeExtends:()=>ka,findClosestNumber:()=>rc,findClosestNumberInFactory:()=>bd,findHeadingLetter:()=>kc,findHeadings:()=>qs,findInheritedState:()=>ja,findKeyPosition:()=>xf,flattenExtend:()=>xn,font:()=>Fd,fontFace:()=>jd,fontFamily:()=>Md,fontFamilyTypes:()=>Nd,formatDate:()=>id,generateHash:()=>ha,generateHeadArrayTags:()=>ec,generateKey:()=>jo,generateMetaTags:()=>md,generateSequence:()=>Bt,generateSequencePosition:()=>ip,generateSprite:()=>In,generateSubSequence:()=>Ws,get:()=>Yu,getActiveConfig:()=>A,getActiveDocument:()=>Fc,getActiveLang:()=>so,getCDNUrl:()=>ue,getCacheSize:()=>_p,getCapitalCaseKeys:()=>mu,getCdnProviderFromConfig:()=>wn,getChildStateInKey:()=>Na,getChildren:()=>hs,getColor:()=>et,getColorShade:()=>lc,getContext:()=>Ss,getCookie:()=>nu,getDB:()=>As,getDefaultOrFirstKey:()=>Wr,getEmotionStylesheet:()=>Ad,getExtendsInElement:()=>hu,getExtendsStack:()=>Wo,getExtendsStackRegistry:()=>ma,getFnPrefixAndValue:()=>ze,getFontFace:()=>Dd,getFontFaceEach:()=>Hr,getFontFaceEachString:()=>pc,getFontFaceString:()=>Ms,getFontFamily:()=>ti,getFontFormat:()=>uc,getFontSizeByKey:()=>ri,getFrequencyInArray:()=>sf,getHashedExtend:()=>Ko,getImportMapScript:()=>sd,getInObjectByPath:()=>Nf,getLanguages:()=>Li,getLocalStateLang:()=>Bi,getLocalStorage:()=>su,getMediaColor:()=>kt,getMediaTheme:()=>te,getNev:()=>qf,getObserver:()=>Rr,getPageMetadata:()=>yd,getParentStateInKey:()=>Ma,getPath:()=>gs,getQuery:()=>Es,getRef:()=>Ju,getRgbTone:()=>lr,getRoot:()=>bs,getRootContext:()=>_s,getRootData:()=>xs,getRootState:()=>ys,getRootStateInKey:()=>Fa,getSequenceValue:()=>Hs,getSequenceValueBySymbols:()=>wc,getSequenceValuePropertyPair:()=>Pe,getShadow:()=>ii,getSignals:()=>Zl,getSpacingBasedOnRatio:()=>he,getSpacingByKey:()=>mt,getSpreadChildren:()=>yu,getSubratio:()=>zs,getSubratioDifference:()=>Us,getSystemGlobalTheme:()=>ie,getTheme:()=>Xs,getThemeSignal:()=>ly,getTimingByKey:()=>Ht,getTimingFunction:()=>ee,global:()=>ef,gradient:()=>zd,grid:()=>ep,hasFunction:()=>ke,hasHandlerPlugin:()=>hn,hasOwnProperty:()=>Rf,hashContent:()=>vn,hexToRgb:()=>Td,hexToRgbArray:()=>sc,hexToRgba:()=>Rd,hslToRgb:()=>cc,icons:()=>qd,inheritChildExtends:()=>_a,inheritChildPropsExtends:()=>xa,inheritParentProps:()=>Qo,inheritRecursiveChildExtends:()=>Sa,init:()=>qe,initPolyglot:()=>ll,initProps:()=>ku,injectGlobal:()=>ht,is:()=>Lt,isArray:()=>T,isBoolean:()=>ia,isCSSVar:()=>lt,isContextComponent:()=>bu,isCyclic:()=>Bf,isDOMNode:()=>Dt,isDate:()=>ca,isDefined:()=>wt,isDevelopment:()=>nr,isDomDocument:()=>Le,isEmpty:()=>la,isEmptyObject:()=>Pf,isEnumeratedTrueFalseAttr:()=>Bc,isEqualDeep:()=>fa,isFunction:()=>C,isGoogleFontsUrl:()=>Tn,isHostObject:()=>Fe,isHtmlElement:()=>vo,isLocal:()=>Hf,isLoudDevRuntime:()=>Mt,isMethod:()=>ed,isMobile:()=>eu,isNode:()=>Me,isNot:()=>nf,isNotProduction:()=>jr,isNull:()=>aa,isNumber:()=>we,isObject:()=>w,isObjectLike:()=>j,isPhoto:()=>ld,isProduction:()=>rr,isRawUnitValue:()=>wo,isResolvedColor:()=>Oe,isScalingUnit:()=>Ir,isStaging:()=>Wf,isState:()=>Ru,isStore:()=>at,isString:()=>S,isStringFunction:()=>Xf,isSvgTag:()=>zn,isTest:()=>pa,isTesting:()=>zf,isTracking:()=>qp,isUndefined:()=>xt,isUniversallyReservedKey:()=>nd,isValidHtmlTag:()=>au,isValidTag:()=>Bn,isWasmLoaded:()=>p_,isWrappedLibrary:()=>Rs,isWritableFamilyBucket:()=>tf,joinArrays:()=>ln,jointStacks:()=>du,keyframes:()=>jn,keys:()=>Ja,loadCssFile:()=>pd,loadJavascript:()=>hd,loadJavascriptFile:()=>fd,loadJavascriptFileEmbedSync:()=>dd,loadJavascriptFileSync:()=>ud,loadRemoteCSS:()=>gd,loadRemoteScript:()=>kn,loadTranslations:()=>Mi,loadWasm:()=>d_,log:()=>Qu,logGroupIf:()=>tu,logIf:()=>Qf,lookdown:()=>Ku,lookdownAll:()=>Gu,lookup:()=>qu,lowercaseFirstLetter:()=>Lr,makeObjectWithoutPrototype:()=>$f,map:()=>Ef,mapStringsWithContextComponents:()=>Yo,matchesComponentNaming:()=>Ce,media:()=>Bd,memoize:()=>Yf,merge:()=>ct,mergeSharedLibraries:()=>Ps,mixTwoColors:()=>Ed,mixTwoRgb:()=>Pd,mixTwoRgba:()=>fc,nextElement:()=>ks,normalizeIgnoreList:()=>Os,normalizeLibraryKey:()=>Cn,numToLetterMap:()=>Re,objectToString:()=>Fo,objectizeStringProperty:()=>Xo,opacify:()=>En,overwrite:()=>No,overwriteDeep:()=>Ft,overwriteShallow:()=>Nr,overwriteState:()=>Iu,parkHostObject:()=>Qe,parse:()=>Za,parseColorToken:()=>Be,parseDeep:()=>ds,pickupElementFromProps:()=>Aa,pickupPropsFromElement:()=>Ca,polyglotFunctions:()=>Vi,polyglotPlugin:()=>io,popConfig:()=>Z,previousElement:()=>vs,propExists:()=>Su,propertizeElement:()=>Ea,propertizeUpdate:()=>_u,pushConfig:()=>tt,refreshContextProto:()=>zc,registerEvent:()=>Hn,reinit:()=>Gh,remove:()=>Gn,removeChars:()=>kd,removeCookie:()=>ou,removeDelegatedEvent:()=>xi,removeDuplicateProps:()=>es,removeDuplicatesInArray:()=>fn,removeFromArray:()=>af,removeFromObject:()=>Df,removeNestedKeyByPath:()=>Ff,removeValueFromArray:()=>To,removeValueFromArrayAll:()=>uf,reorderArrayByValues:()=>pf,replaceLiteralsWithObjectFields:()=>Dr,replaceOctalEscapeSequences:()=>_f,resolveAsset:()=>jt,resolveColorsInGradient:()=>hi,resolveConfigDocument:()=>an,resolveFileSource:()=>Cp,resolveFileUrl:()=>Qt,resolveHandler:()=>gn,resolvePropValue:()=>xr,resolveSharedLibraries:()=>_d,returnSubThemeOrDefault:()=>Id,returnValueAsText:()=>Oa,rgbArrayToHex:()=>ic,rgbToHSL:()=>ac,rgbToHex:()=>Od,runPluginHook:()=>Et,runThroughMedia:()=>Ac,scratchDefaultConfig:()=>Rn,scratchSystem:()=>Mn,scratchUtils:()=>dr,self:()=>rf,semanticIcons:()=>Kd,sequence:()=>Ue,serializeAttrValue:()=>_i,set:()=>qr,setActiveConfig:()=>xc,setActiveDocument:()=>bp,setActiveRootState:()=>ms,setAdaptiveSchemeVar:()=>hr,setClass:()=>Zv,setClassname:()=>Qk,setColor:()=>pr,setCookie:()=>ru,setCssEngineHook:()=>ol,setCustomFont:()=>Fs,setCustomFontMedia:()=>fr,setEach:()=>hp,setFont:()=>Qs,setFontFamily:()=>Ln,setFontImport:()=>On,setGradient:()=>Dn,setHashedExtend:()=>ga,setInCustomFontMedia:()=>dc,setInObjectByPath:()=>Mf,setLang:()=>Ni,setLocalStorage:()=>iu,setMediaTheme:()=>Zs,setNodeStyles:()=>Xa,setObserver:()=>Wl,setProps:()=>Xu,setPropsPrototype:()=>ts,setSVG:()=>Fn,setScalingVar:()=>Vs,setShadow:()=>gr,setSubScalingVar:()=>Sc,setSvgIcon:()=>fi,setTheme:()=>Js,setValue:()=>pp,setVariables:()=>ap,setWasmEngine:()=>yi,shadow:()=>Hd,sharedLibrary:()=>xd,sizes:()=>op,spacing:()=>Vd,splitSpacedValue:()=>si,splitTopLevelCommas:()=>Ve,splitTransition:()=>$c,spotByPath:()=>ps,srcsetFor:()=>An,stringIncludesAny:()=>Po,stringToObject:()=>Of,svg:()=>Zd,svgData:()=>Qd,swapItemsInArray:()=>cf,syncProps:()=>rs,templates:()=>tp,theme:()=>Wd,timing:()=>Gd,toCamel:()=>Bs,toCamelCase:()=>$s,toDashCase:()=>Is,toDescriptionCase:()=>Cd,toTitleCase:()=>vd,toggleFullscreen:()=>od,transformBackgroundImage:()=>Rc,transformBorder:()=>$e,transformBorderRadius:()=>mi,transformBoxShadow:()=>pi,transformClassname:()=>Hy,transformDuration:()=>gi,transformShadow:()=>Oc,transformSize:()=>ft,transformSizeRatio:()=>F,transformTextStroke:()=>Tc,transformTransition:()=>dp,transformersByPrefix:()=>Bp,transfromGap:()=>Pc,translate:()=>Fi,triggerEventOn:()=>or,triggerEventOnUpdate:()=>Lu,trimStringFromSymbols:()=>bf,typography:()=>Ns,unit:()=>Ld,unstackArrayOfObjects:()=>Eo,update:()=>Kn,updateProps:()=>vu,updateVars:()=>Jv,upsertTranslation:()=>ji,useCssInProps:()=>Kt,useHostState:()=>Hp,usePropsAsCSS:()=>zy,useSelectorsAsCSS:()=>Wy,variables:()=>Cs,vars:()=>np,verbose:()=>Sn,warn:()=>ws,warnStateKeyShadowsMethod:()=>$r,window:()=>k,wrapHoverRule:()=>ge});var Ql={};$(Ql,{RESERVED_STORE_METHODS:()=>Pr,STORE_METHOD_NAMES:()=>_o,__resetStateShadowWarnings:()=>Jl,batch:()=>De,createComputed:()=>Hl,createEffect:()=>J,createScopeStore:()=>So,createSignal:()=>It,createStore:()=>Wt,getObserver:()=>Rr,getSignals:()=>Zl,isStore:()=>at,setObserver:()=>Wl,warnStateKeyShadowsMethod:()=>$r});var $t=null,ra=0,na=[],Rr=()=>$t,Wl=t=>{$t=t},oa=0,Bl=[];function It(t){let e=new Set;function r(){return $t&&(e.add($t),$t._sources.add(s)),t}function n(i){i!==t&&(t=i,Aw(e))}function o(){return t}let s={get:r,set:n,peek:o,_subscribers:e,_type:"signal"};return s}function Hl(t){let e,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){zl(o);let s=$t;$t=o;try{e=t(),r=!1}finally{$t=s}},_notify(){r=!0,n.size>0&&Qg(n)},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 Se=new Set,Vl=!1;function J(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;zl(n);let o=$t;$t=n;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{$t=o}},_notify(){n._disposed||(ra>0?na.push(n):oa>0?Bl.push(n):ql(n))},dispose(){n._disposed=!0,zl(n)}};return n._execute(),n}function De(t){ra++;try{t()}finally{ra--,ra===0&&Cw()}}var Ul=!1,Xg=1e3,kw=8;function Jg(){return typeof performance<"u"?performance.now():Date.now()}function ql(t){Se.add(t),!Ul&&(Vl||(Vl=!0,queueMicrotask(Zg)))}var sn=[];function vw(){if(Se.size===1){let[t]=Se;Se.clear(),t._disposed||t._execute();return}sn.length=0;for(let t of Se)sn.push(t);Se.clear(),sn.sort((t,e)=>t._depth-e._depth);for(let t=0;t<sn.length;t++){let e=sn[t];e._disposed||e._execute()}sn.length=0}function Zg(t=0){if(Vl=!1,Se.size===0)return;Ul=!0;let e=Jg(),r=!1;try{for(;Se.size>0;){if(++t>Xg){console.error("[smbls] reactive effect cascade exceeded",Xg,"passes in a single flush \u2014 breaking to avoid hanging the thread.","This usually means an effect (or an onUpdate/subscribeTo handler","it calls into) unconditionally writes back a signal it depends on."),Se.clear();break}if(vw(),Se.size>0&&Jg()-e>kw){r=!0,setTimeout(()=>Zg(t),0);break}}}finally{r||(Ul=!1)}}function Cw(){for(let t=0;t<na.length;t++)ql(na[t]);na.length=0}function Qg(t){oa++;try{for(let e of t)e._notify()}finally{if(oa--,oa===0&&Bl.length>0){let e=Bl.splice(0);for(let r=0;r<e.length;r++)ql(e[r])}}}function Aw(t){Qg(t)}function zl(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var Ze=Symbol("store"),sa=Symbol("signals"),_o=["update","parse","clean","keys","values","replace","add","remove","destroy","quietUpdate"],Pr=new Set(_o),Yl=new Set,tm=(t,e)=>t?t+"."+e:String(e);function $r(t,e){let r=(e||"")+"::"+t;if(Yl.has(r))return;Yl.add(r);let n=e?`state.${e}`:"state",o=`[smbls/state] "${t}" is a reserved store-method name and was written as DATA at ${n}.${t}. The value is preserved and readable \u2014 data wins over the method \u2014 but "${n}.${t}(\u2026)" no longer reaches the store method on this node. Use "${n}.$${t}(\u2026)" for the method, or rename the data key. Reserved: ${_o.join(", ")}.`;typeof console<"u"&&console.warn&&console.warn(o)}function Jl(){Yl.clear()}var Kl=t=>!t||typeof t!="object"||Array.isArray(t)||t[Ze]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName,Ew=12,em=t=>{if(!t||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};function Xl(t,e,r){if(t===e)return!0;if(r>Ew)return!1;if(Array.isArray(t)||Array.isArray(e)){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!Xl(t[n],e[n],r+1))return!1;return!0}if(em(t)&&em(e)){let n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let s of n)if(!Object.prototype.hasOwnProperty.call(e,s)||!Xl(t[s],e[s],r+1))return!1;return!0}return!1}function Wt(t,e,r,n){r===void 0&&(r=0),n===void 0&&(n="");let o={},s={},i=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let x in t){if(x==="__proto__"||!Object.prototype.hasOwnProperty.call(t,x))continue;Pr.has(x)&&$r(x,n);let y=t[x];r<i&&y&&typeof y=="object"&&!Kl(y)?(s[x]=y,o[x]=It(Wt(y,e,r+1,tm(n,x)))):(s[x]=y,o[x]=It(y))}let a=new Proxy(s,{get(x,y){if(y===Ze)return!0;if(y===sa)return o;if(y==="__raw")return x;if(y==="$update")return c;if(y==="$parse")return f;if(y==="$clean")return u;if(y==="$keys")return d;if(y==="$values")return h;if(y==="$replace")return g;if(y==="$add")return p;if(y==="$remove")return m;if(y==="$destroy")return b;if(y==="$quietUpdate")return l;if(Pr.has(y)&&!Object.prototype.hasOwnProperty.call(o,y))switch(y){case"update":return c;case"parse":return f;case"clean":return u;case"keys":return d;case"values":return h;case"replace":return g;case"add":return p;case"remove":return m;case"destroy":return b;case"quietUpdate":return l}if(y==="__element")return x.__element;if(y==="parent")return x.parent;if(y==="root")return x.root;if(Object.prototype.hasOwnProperty.call(o,y)){let v=o[y].get();if(v!==void 0||!(y!=="root"&&x.root&&x.root!==a))return v}if(x[y]!==void 0)return x[y];let _=typeof y=="string"&&!y.startsWith("__")&&y!=="then"&&y!=="constructor"&&Rr()!=null;if(y!=="root"&&x.root&&x.root!==a){let v=x.root[y];return v===void 0&&_&&!Object.prototype.hasOwnProperty.call(o,y)?(o[y]=It(void 0),o[y].get()):v}if(_)return o[y]=It(void 0),o[y].get()},set(x,y,_){if(y==="__proto__")return!1;if(y==="__element"||y==="parent"||y==="root")return x[y]=_,!0;Pr.has(y)&&$r(y,n);let v=tm(n,y);if(Object.prototype.hasOwnProperty.call(o,y))if(_&&typeof _=="object"&&!Kl(_)){if(_===x[y])return!0;let E=o[y].peek(),I=E&&E[Ze]?E.$parse():E;if(Xl(_,I,0))return!0;x[y]=_,o[y].set(Wt(_,e,r+1,v))}else x[y]=_,o[y].set(_);else x[y]=_,_&&typeof _=="object"&&!Kl(_)?o[y]=It(Wt(_,e,r+1,v)):o[y]=It(_);return!0},has(x,y){return typeof y=="string"&&y.charCodeAt(0)===36&&Pr.has(y.slice(1))?!0:y in o||y in x},ownKeys(x){return Object.keys(o)},getOwnPropertyDescriptor(x,y){return y in o?{enumerable:!0,configurable:!0,value:o[y].peek()}:Object.getOwnPropertyDescriptor(x,y)},deleteProperty(x,y){return o[y]&&(o[y].set(void 0),delete o[y]),delete x[y],!0}});function c(x,y){De(()=>{for(let v in x)v!=="__proto__"&&(a[v]=x[v])});let _=s.__element;return _&&_.onUpdate&&!y?.quiet&&_.onUpdate(_,a,_.context),a}function l(x){return c(x,{quiet:!0})}function f(x){if(x||(x=new Set),x.has(a))return"[Circular]";x.add(a);let y={};for(let _ in o){if(_==="parent"||_==="root"||_.startsWith("__"))continue;let v=o[_].peek();v&&v[Ze]?y[_]=v.$parse(x):y[_]=v}return y}function u(){return De(()=>{for(let x in o)delete a[x]}),a}function d(){return Object.keys(o)}function h(){return Object.keys(o).map(x=>o[x].peek())}function g(x){return De(()=>{for(let y in o)y in x||delete a[y];for(let y in x)y!=="__proto__"&&(a[y]=x[y])}),a}function p(x,y){return a[x]=y,a}function m(x){return delete a[x],a}function b(){u(),s.__element=null,s.parent=null}return a}function at(t){return t&&t[Ze]===!0}function Zl(t){return t[sa]}function So(t,e){let r={},n={};if(t&&typeof t=="object")for(let i in t)n[i]=t[i],r[i]=It(t[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=e;for(;a;){let c=a[sa];if(c&&Object.prototype.hasOwnProperty.call(c,i))return c;a=a[Ze]?a[Gl]:null}return null};return new Proxy(n,{get(i,a){return a===Ze?!0:a===sa?r:a===Gl?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]=It(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[Ze]?c[Gl]: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 Gl=Symbol("scope.parent");var Sp={};$(Sp,{css:()=>ne,getActiveDocument:()=>Fc,getCacheSize:()=>_p,injectGlobal:()=>ht,keyframes:()=>jn,reset:()=>Ey,setActiveDocument:()=>bp,setWasmEngine:()=>yi,wrapHoverRule:()=>ge});var gp={};$(gp,{CONFIG:()=>Pn,CSS_NATIVE_COLOR_REGEX:()=>de,CSS_UNITS:()=>cn,FACTORY:()=>pe,STANDARD_SCHEME_QUERIES:()=>vc,VALUE_TRANSFORMERS:()=>Ic,activateConfig:()=>fy,animation:()=>Jd,appendSVGSprite:()=>li,appendSvgIconsSprite:()=>ui,applyDocument:()=>ci,applyHeadings:()=>Ec,applyMediaSequenceVars:()=>ur,applyReset:()=>di,applySequenceGlobalVars:()=>Ks,applySequenceVars:()=>We,applySpacingSequence:()=>oi,applyTimingSequence:()=>ai,applyTypographySequence:()=>ei,breakpoints:()=>Yd,changeGlobalTheme:()=>Dc,changeLightness:()=>$d,checkIfBoxSize:()=>ni,class:()=>rp,color:()=>Ud,colorStringToRgbaArray:()=>Te,convertSvgToSymbol:()=>Gs,createConfig:()=>_c,cssMediaVars:()=>bc,cssVars:()=>yc,defineThemeSignal:()=>$n,devices:()=>Xd,document:()=>ay,findHeadingLetter:()=>kc,findHeadings:()=>qs,font:()=>Fd,fontFace:()=>jd,fontFamily:()=>Md,fontFamilyTypes:()=>Nd,generateSequence:()=>Bt,generateSequencePosition:()=>ip,generateSprite:()=>In,generateSubSequence:()=>Ws,getActiveConfig:()=>A,getColor:()=>et,getColorShade:()=>lc,getDefaultOrFirstKey:()=>Wr,getFnPrefixAndValue:()=>ze,getFontFace:()=>Dd,getFontFaceEach:()=>Hr,getFontFaceEachString:()=>pc,getFontFaceString:()=>Ms,getFontFamily:()=>ti,getFontFormat:()=>uc,getFontSizeByKey:()=>ri,getMediaColor:()=>kt,getMediaTheme:()=>te,getRgbTone:()=>lr,getSequenceValue:()=>Hs,getSequenceValueBySymbols:()=>wc,getSequenceValuePropertyPair:()=>Pe,getShadow:()=>ii,getSpacingBasedOnRatio:()=>he,getSpacingByKey:()=>mt,getSubratio:()=>zs,getSubratioDifference:()=>Us,getTheme:()=>Xs,getThemeSignal:()=>ly,getTimingByKey:()=>Ht,getTimingFunction:()=>ee,gradient:()=>zd,grid:()=>ep,hexToRgb:()=>Td,hexToRgbArray:()=>sc,hexToRgba:()=>Rd,hslToRgb:()=>cc,icons:()=>qd,isCSSVar:()=>lt,isDomDocument:()=>Le,isGoogleFontsUrl:()=>Tn,isHostObject:()=>Fe,isRawUnitValue:()=>wo,isResolvedColor:()=>Oe,isScalingUnit:()=>Ir,isWritableFamilyBucket:()=>tf,media:()=>Bd,mixTwoColors:()=>Ed,mixTwoRgb:()=>Pd,mixTwoRgba:()=>fc,numToLetterMap:()=>Re,opacify:()=>En,parkHostObject:()=>Qe,parseColorToken:()=>Be,popConfig:()=>Z,pushConfig:()=>tt,reset:()=>cy,resolveColorsInGradient:()=>hi,resolveConfigDocument:()=>an,resolveFileUrl:()=>Qt,returnSubThemeOrDefault:()=>Id,rgbArrayToHex:()=>ic,rgbToHSL:()=>ac,rgbToHex:()=>Od,runThroughMedia:()=>Ac,scratchDefaultConfig:()=>Rn,scratchSystem:()=>Mn,scratchUtils:()=>dr,semanticIcons:()=>Kd,sequence:()=>Ue,set:()=>qr,setActiveConfig:()=>xc,setAdaptiveSchemeVar:()=>hr,setColor:()=>pr,setCustomFont:()=>Fs,setCustomFontMedia:()=>fr,setEach:()=>hp,setFont:()=>Qs,setFontFamily:()=>Ln,setFontImport:()=>On,setGradient:()=>Dn,setInCustomFontMedia:()=>dc,setMediaTheme:()=>Zs,setSVG:()=>Fn,setScalingVar:()=>Vs,setShadow:()=>gr,setSubScalingVar:()=>Sc,setSvgIcon:()=>fi,setTheme:()=>Js,setValue:()=>pp,setVariables:()=>ap,shadow:()=>Hd,sizes:()=>op,spacing:()=>Vd,splitSpacedValue:()=>si,splitTopLevelCommas:()=>Ve,splitTransition:()=>$c,svg:()=>Zd,svgData:()=>Qd,templates:()=>tp,theme:()=>Wd,timing:()=>Gd,toCamel:()=>Bs,transformBackgroundImage:()=>Rc,transformBorder:()=>$e,transformBorderRadius:()=>mi,transformBoxShadow:()=>pi,transformDuration:()=>gi,transformShadow:()=>Oc,transformSize:()=>ft,transformSizeRatio:()=>F,transformTextStroke:()=>Tc,transformTransition:()=>dp,transfromGap:()=>Pc,typography:()=>Ns,unit:()=>Ld,vars:()=>np});var dr={};$(dr,{CSS_NATIVE_COLOR_REGEX:()=>de,CSS_UNITS:()=>cn,applyMediaSequenceVars:()=>ur,applySequenceGlobalVars:()=>Ks,applySequenceVars:()=>We,changeLightness:()=>$d,colorStringToRgbaArray:()=>Te,convertSvgToSymbol:()=>Gs,findHeadingLetter:()=>kc,findHeadings:()=>qs,generateSequence:()=>Bt,generateSequencePosition:()=>ip,generateSprite:()=>In,generateSubSequence:()=>Ws,getColorShade:()=>lc,getDefaultOrFirstKey:()=>Wr,getFnPrefixAndValue:()=>ze,getFontFace:()=>Dd,getFontFaceEach:()=>Hr,getFontFaceEachString:()=>pc,getFontFaceString:()=>Ms,getFontFormat:()=>uc,getRgbTone:()=>lr,getSequenceValue:()=>Hs,getSequenceValueBySymbols:()=>wc,getSequenceValuePropertyPair:()=>Pe,getSubratio:()=>zs,getSubratioDifference:()=>Us,hexToRgb:()=>Td,hexToRgbArray:()=>sc,hexToRgba:()=>Rd,hslToRgb:()=>cc,isCSSVar:()=>lt,isDomDocument:()=>Le,isGoogleFontsUrl:()=>Tn,isHostObject:()=>Fe,isRawUnitValue:()=>wo,isResolvedColor:()=>Oe,isScalingUnit:()=>Ir,isWritableFamilyBucket:()=>tf,mixTwoColors:()=>Ed,mixTwoRgb:()=>Pd,mixTwoRgba:()=>fc,numToLetterMap:()=>Re,opacify:()=>En,parkHostObject:()=>Qe,parseColorToken:()=>Be,resolveConfigDocument:()=>an,resolveFileUrl:()=>Qt,returnSubThemeOrDefault:()=>Id,rgbArrayToHex:()=>ic,rgbToHSL:()=>ac,rgbToHex:()=>Od,setCustomFont:()=>Fs,setCustomFontMedia:()=>fr,setFontImport:()=>On,setInCustomFontMedia:()=>dc,setScalingVar:()=>Vs,setSubScalingVar:()=>Sc,setVariables:()=>ap,splitTopLevelCommas:()=>Ve});var Le=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0),Fe=t=>{if(t===null||typeof t!="object")return!1;let e=Object.prototype.toString.call(t);return!!(e!=="[object Object]"&&e!=="[object Array]"||typeof t.nodeType=="number"||t.defaultView||t.window===t||t.self===t)},tf=t=>t!==null&&typeof t=="object"&&!Fe(t),Qe=(t,e,r)=>{if(!t)return;if(Le(r)){t.__domDocument||(t.__domDocument=r);return}let n=`__host_${e}`;t[n]||(t[n]=r)},an=t=>t?Le(t.__domDocument)?t.__domDocument:Le(t.document)?t.document:null:null;var Ir=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",cn=["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"],Tw=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Ow=new RegExp(`^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:${cn.filter(t=>t!=="auto").map(Tw).join("|")})$`),wo=t=>Ow.test(String(t).trim());O();var Te=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&&K&&k){let e=K.body.appendChild(K.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){K.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return K.body.removeChild(e),[0,0,0,0];t=k.getComputedStyle(e).color,K.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]},Ed=(t,e,r=.5)=>(t=Te(t),e=Te(e),fc(t,e,r)),Td=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},sc=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},Od=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),ic=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),Rd=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},Pd=(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})`},$d=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},ac=(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]},cc=(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)],lc=(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)},fc=(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})`},En=(t,e)=>{let r=Te(t);if(!r){jr()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},lt=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,de=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,D0=/^([a-zA-Z]\w*(?:-[a-zA-Z]\w*)*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Be=t=>{if(!S(t))return null;if(de.test(t))return{passthrough:t};if(lt(t))return{cssVar:t};let e=t.match(D0);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}},Oe=t=>S(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),Ve=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},lr=(t,e)=>{S(t)&&t.includes("rgb")&&(t=Te(t).join(", ")),S(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),we(e)&&(e+="");let r=ic(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=lc(r,parseFloat(e));return sc(o).join(", ")}else{let[o,s,i]=t,[a,c]=ac(o/255,s/255,i/255),l=Math.max(0,Math.min(100,parseFloat(e)))/100;return cc(a,c,l).map(u=>Math.round(Math.max(0,Math.min(1,u))*255)).join(", ")}};var Id=(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},Wr=(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},uc=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},Tn=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),On=t=>`@import url('${t}');`,dc=t=>`@font-face { ${t} }`,Fs=(t,e,r,n={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=uc(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
|
|
32
32
|
`);return`
|
|
33
33
|
font-family: '${t}';
|
|
34
34
|
font-style: ${n.fontStyle||"normal"};${r?`
|
|
35
35
|
font-weight: ${r};`:""}${n.fontStretch?`
|
|
36
36
|
font-stretch: ${n.fontStretch};`:""}${n.fontDisplay?`
|
|
37
37
|
font-display: ${n.fontDisplay};`:""}
|
|
38
|
-
src: ${i};`},fr=(t,e,r,n)=>`@font-face {${
|
|
39
|
-
}`,Hr=(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(u=>Qt(u,r)||u):Qt(s,r)||s;return Ds(t,f,i,{fontStyle:a,fontDisplay:c,fontStretch:l})}),Id=t=>Object.keys(t).map(r=>Hr(r,t[r].value)),dc=(t,e,r)=>{if(e&&e.isVariable){let s=Qt(e.url,r)||e.url;return Tn(s)?On(s):fr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return Hr(t,e,r).map(uc);let o=Array.isArray(e.url)?e.url.map(s=>Qt(s,r)||s):Qt(e.url,r)||e.url;return fr(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})},Ls=(t,e)=>Object.keys(t).map(n=>dc(n,t[n].value,e));O();O();O();O();var Rn={};$(Rn,{animation:()=>Xd,breakpoints:()=>Gd,class:()=>ep,color:()=>Vd,devices:()=>Yd,document:()=>iy,font:()=>Ld,fontFace:()=>Nd,fontFamily:()=>Fd,fontFamilyTypes:()=>Md,gradient:()=>Ud,grid:()=>tp,icons:()=>Hd,media:()=>jd,reset:()=>ay,semanticIcons:()=>qd,sequence:()=>Ue,shadow:()=>Wd,sizes:()=>np,spacing:()=>Bd,svg:()=>Jd,svgData:()=>Zd,templates:()=>Qd,theme:()=>zd,timing:()=>Kd,typography:()=>Fs,unit:()=>Dd,vars:()=>rp});var Ue={"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 Dd={default:"em"};var I0={browserDefault:16,base:16,type:"font-size",ratio:Ue["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},Fs=I0;var Ld={};var Fd={},Md={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},Nd={};var jd={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var D0={base:Fs.base,type:"spacing",ratio:Ue.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},Bd=D0;var Vd={},Ud={};var zd={};var Wd={};var Hd={},qd={};var L0={default:150,base:150,type:"timing",ratio:Ue["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},Kd=L0;var iy={};var Gd={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},Yd={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 Xd={};var Jd={},Zd={};var Qd={};var F0={},tp=F0;var ep={};var ay={},rp={},np={};var mc={},yc={},pc=Rn,hc={},Ns=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase());for(let t in pc){let e=t.toLowerCase();hc[e]=pc[t];let r=Ns(e);r!==e&&(hc[r]=pc[t]),e!==t&&(hc[t]=pc[t])}var js={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:mc,cssMediaVars:yc,CSS_VARS:mc,CSS_MEDIA_VARS:yc,_scratchConfig:!0,...hc},gc=it(js),Oe={active:"0",0:js},cy=t=>(It(t)&&(Oe.active=t),Oe[t||Oe.active]),Ms=[],tt=t=>{t&&t._scratchConfig&&Ms.push(t)},Z=()=>{Ms.pop()},A=t=>Ms.length?Ms[Ms.length-1]:Oe[t||Oe.active]||js,bc=t=>{if(w(t))return Oe.active="1",Oe[1]=Y(t,it(gc)),t},M0=["useReset","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig"],N0=["useVariable","globalTheme","verbose"],j0=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],B0=t=>{for(let e of j0){let r;for(let n of e){let o=t[n];w(o)&&(r=r?Y(o,r):o)}if(r)for(let n of e)w(t[n])&&(t[n]=r)}},xc=(t,e,{cleanBase:r=!1}={})=>{let n=r?null:A(),o=it(!r&&n&&n._scratchConfig?n:gc);for(let i of M0)delete o[i];for(let i of N0)Object.prototype.hasOwnProperty.call(gc,i)?o[i]=gc[i]:delete o[i];let s=Y(e||{},o);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,B0(s),t&&(Oe[t]=s),s};var Re={"-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"},op=(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=ly.has(e.unit)?"rem":e.unit;e.vars[n]=s+c},ze=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},ly=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Bs=(t,e)=>{let{base:r,type:n,unit:o}=e,s=ly.has(o)?"rem":o,i=(Ir(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=Re[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=Re[t+1],u=Math.abs(t),d=Math.pow(fy,2*u),h=Re[u];return h?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${h}) / ${d.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},_c=(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}))`},Vs=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},Us=(t,e)=>Vs(t,e).map(r=>r/t),zs=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[u,d,h]=Vs(o,s);l>16?f=[u,d,h]:f=[u,h],f.forEach((g,p)=>{let m=~~(g/n*1e3)/1e3,b=i+(p+1),x=a+(p+1)/10,y=_c(p+1,f,i,e),_={key:r+(p+1),variable:b,value:g,scaling:m,scalingVariable:y,index:x};op(_,e)})},fy=1.618,V0=(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(fy,2*n);return Math.max(o,s)},jt=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,u=Re[f],d=V0(f,r,n),h=~~(d/r*100)/100,g=c+u,p=Bs(f,t),m={key:u,variable:g,value:d,base:r,scaling:h,scalingVariable:p,ratio:n,index:f};op(m,t),s&&zs(m,t)}return t},sp=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=S(e)?e:Re[e],a=S(e)?Object.entries(Re).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,h="--"+(t.varPrefix?t.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,g=Bs(a,t),p={key:i,variable:h,value:l,base:n,scaling:f,scalingVariable:g,ratio:o,index:a};return op(p,c),s&&zs(p,c),c},Ws=(t="A",e)=>{let r=A(),{unit:n}=r;if(S(t)&<(t))return`var(${t})`;if(S(t)&&/^(?:env|var|calc|min|max|clamp)\(/.test(t.trim()))return t;if(S(t)){let y=r.sizes;if(y){let _=y[t]||y[t.toLowerCase()];if(_!==void 0)return t.slice(0,1)==="-"?`calc(${_} * -1)`:_}}let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(_o(t)||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let d=`--${e.varPrefix?e.varPrefix+"-":""}${Ps(e.type.replace(".","-"))}-`,h=t.toUpperCase(),g=h.slice(0,1)==="-"?"-":"",p=g?h.slice(1):h,m="";p.includes("_")&&(m="_"+p.split("_")[1].toLowerCase(),p=p.split("_")[0]);let b=y=>a.test(y)?`var(${d}${y}${m})`:y;if(p.includes("+")){let[y,_]=p.split("+"),v=`${b(y)} + ${b(_)}`;return g?`calc((${v}) * -1)`:`calc(${v})`}else if(p.includes("*")){let[y,_]=p.split("*"),v=`${b(y)} * ${b(_)}`;return g?`calc((${v}) * -1)`:`calc(${v})`}else if(p.includes("-")){let[y,_]=p.split("-"),v=`${b(y)} - ${b(_)}`;return g?`calc((${v}) * -1)`:`calc(${v})`}if(!o[p]&&p.length===2&&(r.verbose&&console.warn(p,"- value is not found because `subSequence` is set to false"),p=p.slice(0,1)),i||r.useVariable){let y=`var(${d}${p}${m})`;return g?`calc(${y} * -1)`:y}let x=o?o[p]:null;if(!x){if(console.warn("can't find",o,p),Ft())throw new Error(`[smbls] Unresolvable design-system token "${t}"`+(e.type?` for sequence "${e.type}"`:"")+" \u2014 not a registered `sizes` name and not a valid spacing/typography/timing sequence letter. The CSS property using it would silently be dropped in production. Register the token in `designSystem/sizes.js` (or the relevant sequence family) or fix the typo.");return}return s==="ms"||s==="s"?g+x.val+s:g+x.scaling+s},Sc=(t,e)=>{if(!["+","-","*","/",","].filter(s=>t.includes(s+" ")).length)return t;let n=/(\s+-\s+|\s*[+*/,]\s*)/;return t.split(n).map(s=>{let i=s.trim();return!i||["+","-","*","/",","].includes(i)?s:Ws(i,e)}).join("")},Pe=(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("(")){if(/^(?:env|var)\(/.test(t.trim()))return{[e]:t};let s=ze(t);n=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=Sc(t,r):t=Ws(t,r),{[e]:n?`${n}(${t})`:t}},wc=(t,e)=>Re[t-e],Hs=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=wc(e,o);return r[s]})};O();var ip=(t,e)=>{let r=A(),{cssVars:n}=r;j(t.value)||(n[t.var]=t.value)},qs=(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 u=`${f}-ratio`;t[u]=a;let[d,h,g]=Us(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${h/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${g/a})`},uy=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),We=(t,e={})=>{let r=A(),{unit:n,timing:o,cssVars:s}=r,i=t.unit||n.default,a=uy.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||qs(s,t,e);for(let u in l){let d=l[u],h=(t.type===o.type?l[u].val:f[u])+a;if(!c){s[d.variable+"_default"]=h,s[d.variable]=d.scalingVariable;continue}e.useDefault===!1?s[d.variable]=h:(s[d.variable+"_default"]=h,s[d.variable]=`var(${d.variable+"_default"})`)}},ur=(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=uy.has(l)?"rem":l,{mediaRegenerate:u}=t,{sequence:d,scales:h}=c,g=s[a];if(!g&&n.verbose&&console.warn("Can't find media query ",g),!u){let p=i[`@media ${g}`];p||(p=i[`@media ${g}`]={}),qs(p,c,r);let m=t.unit||o.default;if(f!==m&&d)for(let b in d){let x=d[b],y=h[b]+f;p[x.variable+"_default"]=y,p[x.variable]=y}return}for(let p in d){let m=d[p],b=(Ir(f)?h[p]:d[p].val)+f;!g&&n.verbose&&console.warn("Can't find query ",g);let x=i[`@media ${g}`];x||(x=i[`@media ${g}`]={}),x[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=b}};O();var py=jr(),Pn=t=>{let e=A(),r="";for(let n in t)e.__svgCache[n]||(e.__svgCache[n]=!0,r+=t[n]);return r},U0=t=>{let e=t&&(t.default||t);if(!S(e))return py&&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},{}):{}},z0=(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},dy=new Set,Ks=(t,e)=>{let r=e&&e.default?e.default:e;if(!S(r))return py&&!dy.has(t)&&(dy.add(t),console.warn("convertSvgToSymbol:",t,"is not a string")),"";e=r;let n=e.match(/^<symbol\b[^>]*\bid="([^"]*)"/);if(n){let u=n[1];return u===t?e:e.replace(`id="${u}"`,`id="${t}"`)}let o=U0(e),{width:s,height:i}=o,a=o.viewBox||`0 0 ${s||24} ${i||24}`,f=z0(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${a}"`);return f=f.replace(/width="[^"]*"/,""),f=f.replace(/height="[^"]*"/,""),f=f.replace("</svg","</symbol"),f=q0(f),f},W0="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",H0=new RegExp(`<(${W0})\\b([^>]*?)\\s*/>`,"g"),q0=t=>t.replace(H0,"<$1$2></$1>");var Ln={};$(Ln,{STANDARD_SCHEME_QUERIES:()=>kc,appendSVGSprite:()=>ci,appendSvgIconsSprite:()=>fi,applyDocument:()=>ai,applyHeadings:()=>Ac,applyReset:()=>ui,applySpacingSequence:()=>ni,applyTimingSequence:()=>ii,applyTypographySequence:()=>ti,checkIfBoxSize:()=>ri,getColor:()=>et,getFontFamily:()=>Qs,getFontSizeByKey:()=>ei,getMediaColor:()=>wt,getMediaTheme:()=>te,getShadow:()=>si,getSpacingBasedOnRatio:()=>pe,getSpacingByKey:()=>mt,getTheme:()=>Ys,getTimingByKey:()=>Wt,getTimingFunction:()=>ee,runThroughMedia:()=>Cc,setAdaptiveSchemeVar:()=>hr,setColor:()=>pr,setFont:()=>Zs,setFontFamily:()=>In,setGradient:()=>$n,setMediaTheme:()=>Js,setSVG:()=>Dn,setShadow:()=>gr,setSvgIcon:()=>li,setTheme:()=>Xs,splitSpacedValue:()=>oi});O();var kc={light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"},et=(t,e,r)=>{let n=r||A();if(!S(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(lt(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(T(t))[o,s,i]=t;else{let u=Be(t);if(!u){let{color:d,gradient:h}=n,g=h[t]||d[t];return g?(e&&g[e]&&(g=g[e]),n.useVariable?`var(${g.var})`:g.value):t}if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;o=u.name,s=u.alpha,i=u.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;if(e)if(l[e]!==void 0)l=l[e];else if(T(l)){let u=e.charCodeAt(0)===64?e.slice(1):e;u==="dark"?l=l[1]!==void 0?l[1]:l[0]:(u!=="light"&&n.verbose&&console.warn(t," - array-form color tokens only support light/dark; falling back to the light slot for scheme",e),l=l[0])}else n.verbose&&console.warn(t," - does not have ",e);if(S(l))return et(l,null,r);let f=l.rgb;if(!f){let u=n.useVariable?`var(${l.var})`:l.value;if(s&&u){let d=Math.round(parseFloat(s)*100);return`color-mix(in srgb, ${u} ${d}%, transparent)`}return u}return i&&!l[i]&&(f=lr(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})`},wt=(t,e,r)=>{let n=r||A();if(e||(e=n.globalTheme==="auto"?null:n.globalTheme),!S(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(lt(t))return`var(${t})`;let o,s,i;if(T(t))o=t[0];else{let u=Be(t);if(u){if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;o=u.name,s=u.alpha,i=u.tone}else o=t}let{color:a,gradient:c}=n,l=a[o]||c[o],f=w(l);if(f&&l.value)return et(t,`@${e}`,r);if(f){if(n.useVariable&&l.var)return s||i?et(t,null,r):`var(${l.var})`;if(e)return et(t,`@${e}`,r);{let u={};for(let d in l){if(d.charCodeAt(0)!==64)continue;let h=d.slice(1),g=n.media&&n.media[h]||kc[h];if(!g)continue;let p="@media "+(g==="print"?`${g}`:`screen and ${g}`);u[p]=et(t,d,r)}return u}}else return n.verbose&&console.warn("Can't find color",t),t},hr=(t,e,r,n)=>{let s=`--${n.varPrefix?n.varPrefix+"-":""}${e}-${r}`,i,a={};for(let c in t){if(c.charCodeAt(0)!==64)continue;let l=c.slice(1),f=t[c],u=f&&(f.value||f);!u||typeof u!="string"||(a[l]=u,(l==="light"||i===void 0)&&(i=u))}if(i!==void 0){n.cssVars[s]=i,n.cssMediaVars||(n.cssMediaVars={});for(let c in a){let l=`[data-theme="${c}"]`;if(n.cssMediaVars[l]||(n.cssMediaVars[l]={}),n.cssMediaVars[l][s]=a[c],c==="light"||c==="dark"){let f=`@media (prefers-color-scheme: ${c})`;n.cssMediaVars[f]||(n.cssMediaVars[f]={}),n.cssMediaVars[f][s]=a[c]}}return t.var=s,s}},pr=(t,e,r)=>{let n=A();if(w(t)&&t.value!==void 0&&(t.rgb!==void 0||t.var!==void 0))return t;if(S(t)&<(t)){let p=t.slice(2);if(t=et(p),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let m=p.split(" "),b=n.color[m[0]];if(b&&!b.value&&!b.rgb&&(S(b)||T(b)||w(b))&&(n.color[m[0]]=pr(b,m[0]),b=n.color[m[0]]),b&&b.value){let x=b.rgb,y=m[1]!==void 0?m[1]:"1",_=m[2];_&&(x=lr(x,_)),t=`rgba(${x}, ${y})`}else{let x=m[2],y=m[1]!==void 0?m[1]:"1";if(x)try{let _=Ee(m[0]);_&&_.length>=3?t=`rgba(${lr(_.slice(0,3).join(", "),x)}, ${y})`:t=m[0]}catch{t=m[0]}else t=m[0]}}}if(T(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),w(t)){let p={};for(let m in t)m!=="var"&&(p[m]=pr(t[m],e,m.slice(0,1)==="@"?m.slice(1):m));return n.useVariable&&hr(p,"color",e,n),p}let s=`--${n.varPrefix?n.varPrefix+"-":""}color-${e}`+(r?`-${r}`:""),i=t.value||t;if(S(i)&&!i.includes("(")&&!i.startsWith("#")){let p=Be(i);if(p&&p.name&&!p.passthrough&&!p.cssVar){let m=n.color[p.name];m&&!m.value&&!m.rgb&&(S(m)||T(m)||w(m))&&(n.color[p.name]=pr(m,p.name));let b=n.color[p.name];if(b&&b.rgb){let x=b.rgb;p.tone&&(x=lr(x,p.tone));let y=p.alpha?parseFloat(p.alpha):1;i=`rgba(${x}, ${y})`}}}let a=Ee(i),[c,l,f,u=1]=a,d=parseFloat(u.toFixed(2)),h=`${c}, ${l}, ${f}`,g=`rgba(${h}, ${d})`;return n.useVariable&&(n.cssVars[s]=g),{var:s,rgb:h,alpha:d,value:g}},$n=(t,e,r)=>{let n=A();if(w(t)&&t.value!==void 0&&t.var!==void 0)return t;if(S(t)&<(t)&&(t=et(t.slice(2))),T(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),w(t)){let i={};for(let a in t)a!=="var"&&(i[a]=$n(t[a],e,a.slice(0,1)==="@"?a.slice(1):a));return n.useVariable&&hr(i,"gradient",e,n),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 K0=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"]),hy=["color","Color","background","Background","fill","Fill","stroke","Stroke"],G0=t=>{for(let e=0;e<hy.length;e++)if(t.includes(hy[e]))return!0;return!1},vc=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?et(t[a]):t[a]}),e},Gs=t=>(t.value||(t.value=vc(t)),t.value),Ys=(t,e)=>{let r=A();if(r.useVariable)return te(t,e);let n=r.theme;if(S(t)){let[o,s]=t.split(" "),i=n[o];if(i){if(!s&&!e)return Gs(i);t=[o,s||e]}}if(j(t)&&t[1]){let o=t[0],s=t[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return Gs(a[s]);if(i&&i[s])return Gs(i[s]);if(c&&c[s])return Gs(c[s])}else if(w(t))return vc(t)},Y0=(t,e,r)=>{if(w(e))t.variants.inverse.value=vc(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},X0=(t,e,r,n)=>{let o=Ys(r);n[`&:${e}`]=o,w(r)&&!r.value&&(r.value=o)},J0=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return X0(t,o,s,e),t}),t):void 0},Z0=(t,e,r,n)=>{let o=Ys(r);n[`@media (prefers-color-scheme: ${e})`]=o,w(r)&&!r.value&&(r.value=o)},Q0=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&Z0(t,o,s,e),o==="inverse"&&Y0(t,s,e),t}),t):void 0},tk=(t,e)=>{let r=A(),{helpers:n}=t;return n?(Object.keys(n).map(s=>{let i=n[s];return S(i)?n[s]=r.theme[i]:Gs(n[s]),t}),t):void 0},Xs=(t,e)=>{let r=A();if(r.useVariable)return Js(t,e);let{state:n,media:o,helpers:s}=t,i=vc(t,e),c=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}`;return J0(t,i),Q0(t,i),tk(t,i),{var:c,value:i,state:n,media:o,helpers:s}};var ap=(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===":")&&G0(l))for(let u in t){if(c.has(u))continue;let d=t[u]?.[l];if(d===void 0)continue;let h=et(d,`@${u}`);h!==void 0&&S(h)&&/^[a-z][a-zA-Z]+$/.test(h)&&!K0.has(h)&&c.add(u)}}for(let l of a){let f=l.slice(0,1),u=Object.values(t).some(d=>j(d?.[l]));if(f==="."&&u){let d=l.slice(1),h={};for(let g in t)j(t[g]?.[l])&&(h[g]=t[g][l]);i[l]=ap(h,`${e}-${d}`,r)}else if(f===":"&&u){let d=l.replace(/^:+/,""),h={};for(let g in t)j(t[g]?.[l])&&(h[g]=t[g][l]);i[l]=ap(h,`${e}-${d}`,r)}else if(f!=="@"&&f!=="."&&f!==":"){let h=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}-${l}`,g=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,p;for(let m in t){if(c.has(m))continue;let b=t[m]?.[l];if(b===void 0)continue;let x=et(b,`@${m}`);if(x===void 0)continue;(g&&m===g||!g&&(m==="light"||p===void 0))&&(p=x);let y=`[data-theme="${m}"]`;if(o[y]||(o[y]={}),o[y][h]=x,m==="dark"||m==="light"){let _=`@media (prefers-color-scheme: ${m})`;o[_]||(o[_]={}),o[_][h]=x}}p!==void 0&&(n[h]=p),i[l]=`var(${h})`,i[`.${l}`]={[l]:i[l]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},Js=(t,e,r,n)=>{let o=A(),{cssVars:s}=o,i={value:t},a=!r&&!n;if(j(t)){if(a&&o.useVariable){let c={};for(let l in t)l.startsWith("@")&&j(t[l])&&(c[l.slice(1)]=t[l]);if(Object.keys(c).length){let l=ap(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 u=l==="@"&&c;i[c]=Js(f,e,c,n||u)}else if(!a){let u=et(f,n),d=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],h=d.length?"-"+d.join("-"):"",p=`--${o.varPrefix?o.varPrefix+"-":""}theme-${e}${h}-${c}`;o.useVariable?(o.useThemeSuffixedVars&&(s[p]=u),i[c]=`var(${p})`):i[c]=u,i[`.${c}`]={[c]:i[c]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(S(t)&<(t)){let l=o.theme[t.slice(2)];return te(l,n)}return i},cp=t=>{let e=A(),r={};for(let n in t){let o=n.slice(0,1);if(j(t[n])){if(o==="@")continue;o===":"?r[`&${n}`]=cp(t[n]):o==="."&&(r[`&${n}`]=cp(t[n]))}else r[n]=t[n]}return r},my=(t,e)=>{let r=e.shift();return t[r]?my(t[r],e):t},gy=(t,e)=>T(e)?my(t,e):S(e)&&t[e]?t[e]:t;var te=(t,e)=>{let r=A();if(S(t)&<(t)&&(t=te(t.slice(2))),!t||!S(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[n,...o]=T(t)?t:t.split(" "),s=r.theme[n];return s&&o.length?s=gy(s,o):s&&e&&(s=gy(s,e)),cp(s)};O();O();var Zs=(t,e)=>{let r=A(),n=`--font-${e}`;if(!t||T(t)&&!t[0])return;let o;if(t.isVariable){let s=Qt(t.url,r.files)||t.url;Tn(s)?o=On(s):o=fr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])o=Hr(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=fr(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})}return{var:n,value:t,fontFace:o}},Qs=(t,e)=>{let r=A(),{fontFamily:n}=r;return Wr(e||n,t)},In=(t,e)=>{let r=A(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=t;t.isDefault&&(!t.isSystemFallback||!n.default)&&(n.default=e),w(s)&&(s=zr(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};O();var Cc=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:u,range:d,subSequence:h,h1Matches:g,unit:p}=t;ct(i,{type:l,base:f,ratio:u,range:d,subSequence:h,h1Matches:g,unit:p});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),b=i.unit||p,x=!i.unit&&m.has(p)?"rem":b,y=n[c],_="@media "+(y==="print"?`${y}`:`screen and ${y}`);if(r.templates[_]={fontSize:i.base/r.browserDefault+x},!a){ct(i,{sequence:{},scales:{},vars:{}}),jt(i),ur(t,o);continue}ct(i,{sequence:{},scales:{},templates:{},vars:{}}),jt(i),ur(t,o)}},Ac=t=>{let e=A();if(t.h1Matches){let r=t.unit,n=Hs(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}}}},ti=()=>{let t=A(),{typography:e}=t;jt(e),Ac(e),We(e),Cc(e)},ei=t=>{let e=A(),{typography:r}=e;return Pe(t,"fontSize",r)};O();O();var ek=t=>{let r=A().spacing||{},n=parseFloat(t.spacingRatio),o={...r,ratio:Number.isFinite(n)?n:r.ratio,sequence:{},scales:{}};return jt(o),o},rk=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;ct(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),jt(r),ur(t,e)}},ri=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),n=e.includes("border")||e.includes("outline");return r&&!n},ni=()=>{let t=A(),{spacing:e}=t;jt(e),We(e),rk(e)},nk=t=>{let e=A(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:jt(t)},mt=(t,e="padding",r,n)=>{let o=nk(r);if(S(t)){if(!n&&/^(?:env|var)\(/.test(t.trim()))return{[e]:t};if(!n&&t.includes("(")){let i=ze(t);n=i[0],t=i[1]}}let s=n?[t]:zr(t);if(T(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)=>Pe(s[f],e+l+i,o,n);return a[s.length].map((l,f)=>c(l,f))}return Pe(t,e,o,n)}},pe=(t,e,r,n)=>{let o=A(),{spacing:s}=o,i=r||t[e];if(!n&&S(i)&&/^(?:env|var)\(/.test(i.trim()))return{[e]:i};if(!n&&S(i)&&i.includes("(")){let a=ze(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=ek(t);return mt(i,e,a,n)}return mt(i,e,s,n)},oi=t=>{let e=r=>{let n=["+","-","*","/"].includes(r),o=cn.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 gr=(t,e,r,n)=>{let o=A();if(T(t)){let a={"@light":gr(t[0],e,"light"),"@dark":gr(t[1],e,"dark")};return o.useVariable&&hr(a,"shadow",e,o),a}if(w(t)){let a={};for(let c in t)a[c]=gr(t[c],e,c.startsWith("@")?c.slice(1):c);return o.useVariable&&hr(a,"shadow",e,o),a}S(t)&&!de.test(t)&&(t=Ve(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=et(c);if(Te(l))return l;if(/^\d/.test(c)||c==="0"||c.includes("px")||c.slice(-2)==="em"||c==="inset"||c==="none")return c;let f=mt(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}},si=(t,e)=>{let r=A();if(e||(e=r.globalTheme==="auto"?null:r.globalTheme),!S(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(lt(t))return`var(${t})`;let[n]=T(t)?t:t.split(" "),s=r.shadow[n],i=w(s);if(!s)return r.verbose&&console.warn("Can't find color ",n),t;if(e){let a=s["@"+e]||s[e];if(a)return a.value!==void 0?a.value:a;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){if(c.charCodeAt(0)!==64)continue;let l=r.media[c.slice(1)];if(!l)continue;let f="@media "+(l==="print"?`${l}`:`screen and ${l}`),u=s[c],d=u&&(u.value!==void 0?u.value:u);d!==void 0&&(a[f]=d)}return a}return r.verbose&&console.warn("Can't find color",t),t};O();var ii=()=>{let t=A(),{timing:e}=t;jt(e),We(e)},ee=t=>{let e=A(),{timing:r}=e;return r[t]||r[Rs(t)]||t},Wt=(t,e="timing")=>{let r=A(),{timing:n}=r;return Pe(t,e,n)};O();var ai=()=>{let t=A(),{fontFamily:e,theme:r,typography:n}=t,o=t.document;return Fe(o)?(Qe(t,"document",o),o=t.document={}):o||(o=t.document={}),ct(o,{theme:r.document,fontFamily:Wr(e),fontSize:n.base,lineHeight:n.lineHeight})};O();var fp={document:K},Dn=(t,e)=>{let r=A();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?Ks(e,t):t},ci=(t,e=fp)=>{let r=A(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=t[o];by(n,e)},li=(t,e)=>{let r=A();return r.useIconSprite&&!r.semanticIcons?.[e]?Dn(t,e):t},fi=(t,e=fp)=>{let r=A(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=t[o];by(n,e)},lp=(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},ok=(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},yy=(t,e,r)=>{for(;e.firstChild;){let n=e.firstChild;r.appendChild(t.importNode(n,!0)),n.remove()}},by=(t,e=fp)=>{let r=A(),n=e.document||K;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),Pn(t);let o=n.querySelector("#svgSprite"),s=Pn(t),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=ok(n,s);if(o)if(a)yy(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let c=lp(n,{isRoot:!1});c.innerHTML=s,o.append(...c.children)}else if(a){let c=lp(n);c&&c.nodeType&&(yy(n,a,c),n.body.prepend(c))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let c=lp(n);c&&c.nodeType&&(c.innerHTML=s,n.body.prepend(c))}};O();var ui=(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&&Lt(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 u=f.unit,d=f.base||n.base,h=f.browserDefault||n.browserDefault,g=l.slice(1),p=c[g];if(!p)continue;let m="@media "+(p==="print"?p:"screen and "+p);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=d/h+u}}return Y(ct(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.unit?"1"+e.unit.default: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 sk=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),ik=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),ak=t=>sk.has(t),$e=t=>{let e=t+"";if(de.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(lt(o))return`var(${o})`;if(ak(o)||/^\d/.test(o)||o==="0")return o;let s=et(o);if(Te(s))return s;let i=mt(o,"border");return i&&i.border?i.border:o}).join(" ")},Ec=t=>de.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(lt(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=et(e);return Te(r)?r:e}).join(" "),Tc=(t,e)=>si(t,e),di=(t,e)=>de.test(t)?t:Ve(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(lt(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=et(n);if(Te(o)){let i=wt(n,e);return w(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=mt(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),pi=(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=Ve(o).map(c=>(c=c.trim(),c.split(/\s+/).map(f=>{if(!f||/^\d/.test(f)||f==="0"||ik.has(f)||f==="transparent"||de.test(f))return f;let u=et(f);return Te(u)?u:f}).join(" ")));return n+a.join(", ")+s},Oc=(t,e)=>{let r=A();return Ve(t).map(n=>{let o=n.trim();if(lt(o))return`var(${o})`;if(/^var\(/.test(o)||o.includes("url"))return o;if(r.gradient?.[o]){let s=wt(o,e);if(S(s))return s;if(w(s)){for(let i in s)if(S(s[i]))return s[i]}return o}return o.includes("gradient")?pi(o,e):o.includes("/")||o.startsWith("http")||o.includes(".")&&!Be(o)?`url(${o})`:o}).join(", ")},Rc=t=>S(t)&&t.split(" ").map(e=>mt(e,"gap").gap).join(" "),up=t=>{let e=t.split(" ");return e.length?e.map(r=>lt(r)?`var(${r})`:r.length<3||r.includes("ms")?Wt(r).timing||r:ee(r)?ee(r):r).join(" "):t},hi=(t,e,r)=>{if(S(t))return t.split(",").map(n=>Wt(n).timing||n).join(",")},Pc=t=>{let e=t.split(",");if(e.length)return e.map(up).join(",")};function ft(t,e,r={},n={}){let o=ot.call(this,e||r[t]);if(o==null)return;let s;if(S(o)){if(/^(?:env|var)\(/.test(o.trim()))return{[t]:o};if(o.includes("(")){let c=ze(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=ri(t);!i&&a&&!n.ratio&&(o=oi(o))}return n.ratio?pe(r,t,o,s):mt(o,t,void 0,s)}var F=(t,e=null,r)=>ft(t,e,r,{ratio:!0}),gi=(t,e,r)=>{if(S(t))return{borderRadius:t.split(" ").map((n,o)=>pe(e,r,n)[r]).join(" ")}};O();var ck=(t,e)=>{let r=A(),{cssVars:n}=r,o=e.startsWith("--")?e:`--${e}`;return n[o]=t,t},Ht=t=>t,$c={color:pr,gradient:$n,font:Zs,fontFamily:In,fontfamily:In,theme:Xs,icons:li,semanticIcons:Ht,semanticicons:Ht,svg:Dn,svgData:Ht,typography:Ht,shadow:gr,spacing:Ht,media:Ht,grid:Ht,class:Ht,timing:Ht,reset:Ht,unit:Ht,animation:Ht,vars:ck,sizes:Ht},lk=(t,e,r,n)=>{Qe(t,r,e);let o={};for(let s of n)t[s]===e&&(t[s]=o);return t.verbose&&console.warn("[scratch] design-system family",r,"resolved to a host object; parked it and allocated a plain bucket"),o},dp=(t,e,r)=>{let n=A(),o=Ns(t),s=o.toLowerCase(),i=n[o]||n[s]||n[t],a=Fe(i)?lk(n,i,s,[o,s,t]):i,c=$c[o]||$c[s];if(c)try{let l=c(e,r);return a&&(a[r]=l),a}catch(l){n.verbose&&console.warn("Error setting",s,"value",e,r,l)}if(!c){let l=a||(n[s]={});return l[r]=e,l}n.verbose&&console.warn("Can not find",s,"method in scratch")},pp=(t,e)=>{let r=A(),n=t.toLowerCase();return Fe(e)?(Qe(r,n,e),r.verbose&&console.warn("[scratch] ignoring host object passed as the",n,"design-system family"),r[n]||r[t]):(Object.keys(e).sort((s,i)=>{let a=w(e[s])||T(e[s])?1:0,c=w(e[i])||T(e[i])?1:0;return a-c}).forEach(s=>{try{return dp(n,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",e[s],s,i)}}),r[n]||r[t])},Ic=(t,e)=>{let r=e||A();r.globalTheme=t;let o=an(r)||(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=u=>{a.setAttribute("data-theme",u.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 u=0;u<f.length;u++)if(f[u].selectorText===a){for(let d in r.cssVars)f[u].style.setProperty(d,r.cssVars[d]);return r}}catch{}}return r},fk={},qr=(t,e=fk)=>{let r=e.config||A(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:u,useDocumentTheme:d,useDefaultConfig:h,semanticIcons:g,hoverMedia:p,files:m,assets:b,...x}=t;e.newConfig&&(r=bc(e.newConfig)),Le(x.document)&&(r.__domDocument=x.document,delete x.document),Le(r.document)&&(r.__domDocument||(r.__domDocument=r.document),r.document={}),m!==void 0&&(r.files=m),b!==void 0&&(r.assets=b),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),d!==void 0&&(r.useDocumentTheme=d),f!==void 0&&(r.globalTheme=f),u!==void 0&&(r.themeRoot=u),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),h!==void 0&&(r.useDefaultConfig=h),g!==void 0&&(r.semanticIcons=g),p!==void 0&&(r.hoverMedia=p),r.verbose&&console.log(r);let _=an(r)||(typeof document<"u"?document:null),v=_&&_.defaultView||(typeof window<"u"?window:null),E=_&&(r.themeRoot||_.documentElement);if(E&&typeof E.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")E.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?E.style.colorScheme=r.globalTheme:E.style.colorScheme="light dark";else if(v&&v.matchMedia){let G=V=>{E.setAttribute("data-theme",V.matches?"dark":"light")},bt=v.matchMedia("(prefers-color-scheme: dark)");if(G(bt),E.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=G;try{bt.addEventListener("change",G)}catch{bt.addListener(G)}}}else E.setAttribute("data-theme","light"),E.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let I=Object.keys(x).filter(P=>!P.startsWith("__")),z=new Set(I);if(I.forEach(P=>{let G=P.toLowerCase();G!==P&&z.has(G)&&Y(x[G],x[P])}),I.map(P=>{let G=P.toLowerCase();if(!(G!==P&&z.has(G)))return pp(P,x[P])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),x.typography)try{ti()}catch(P){r.verbose&&console.warn("Error applying typography sequence",P)}if(x.spacing)try{ni()}catch(P){r.verbose&&console.warn("Error applying spacing sequence",P)}if(x.timing)try{ii()}catch(P){r.verbose&&console.warn("Error applying timing sequence",P)}ai();let R=ui();return R&&(r.reset=R),r};var Kr=new Map,ky=null,mp=null,uk=null;function mi(t){t.batchAtomicCss&&(mp=t.batchAtomicCss),t.compoundCssClass&&(uk=t.compoundCssClass)}var dk=new Set,xy=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0);function yp(t){try{let e=A();e&&(e.__domDocument=t)}catch{}t&&dk.add(t)}function Lc(){try{let t=A();if(t){if(xy(t.__domDocument))return t.__domDocument;if(xy(t.document))return t.document}}catch{}return typeof document<"u"?document:null}var pk={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 Gr(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function Dc(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 hk(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Dc(e)}var gk={"backdrop-filter":"-webkit-backdrop-filter","user-select":"-webkit-user-select"};function Fn(t,e){let r=gk[t];return r?`${t}:${e};${r}:${e};`:`${t}:${e};`}var mk="@media (hover: hover)",yk=/(?:^|[^\\]):hover(?![\w-])/;function bp(){try{let t=A();if(t&&t.hoverMedia===!1)return!1}catch{}return!0}function he(t,e,r){return r===!1||!yk.test(e)||r===void 0&&!bp()?t:`${mk}{${t}}`}function _y(t,e,r){let n=(r?r+"":"")+t+":"+e,o=Kr.get(n),s=o?null:Gr(t);if(!o){let c=pk[t]||Dc(t),l=hk(e);o=r?`_${r}_${c}-${l}`:`_${c}-${l}`,Kr.set(n,o)}if(typeof e=="string"&&(e.indexOf("}")!==-1||e.indexOf("{")!==-1))return o;let i=s||Gr(t),a=`.${o}{${Fn(i,e)}}`;return re(a),o}var Sy=new WeakMap;function re(t,e){let r=vy(e);if(!r)return;let n=Sy.get(r);if(n||(n=new Set,Sy.set(r,n)),!n.has(t)){n.add(t);try{r.insertRule(t,r.cssRules.length)}catch{}}}var wy=new WeakMap;function vy(t){let e=t||Lc();if(!e||!e.head)return null;let r=wy.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 wy.set(e,o),ky=o,o}var bk=8;function ne(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]):mp?(n||(n=[]),n.push(c,String(l)),o++):s.push(_y(c,String(l),r)))}if(n&&o>=bk){let c=n.join("\0"),l=mp(c),f=l.indexOf("\0"),u=l.substring(0,f),d=l.substring(f+1);if(d){let h=d.split(`
|
|
40
|
-
`);for(let g=0;g<h.length;g++)h[g]&&re(h[g])}s.push(u)}else if(n)for(let c=0;c<n.length;c+=2)s.push(_y(n[c],n[c+1],r));let a=[];for(let c=0;c<i.length;c++)a.push(xk(i[c][0],i[c][1],r));return s.concat(a).join(" ").trim()}var gp=new Map;function xk(t,e,r){let n=JSON.stringify(e),o=t.indexOf(":hover")!==-1||n.indexOf(":hover")!==-1,s=o&&bp(),i=(r?r+"":"")+t+n+(o&&!s?"rawhover":""),a=Kr.get(i);if(a){let p=gp.get(a);if(p)for(let m=0;m<p.length;m++)re(p[m]);return a}a=r?`_${r}_c${Dc(i)}`:`_c${Dc(i)}`;let c="",l=[],f=p=>typeof p=="string"&&(p.indexOf("{")!==-1||p.indexOf("}")!==-1),u=(p,m)=>{let b="";for(let x in m){let y=m[x];if(y!=null)if(typeof y=="object")u([...p,x],y);else{if(f(y))continue;b+=Fn(Gr(x),y)}}b&&(p.length===0?c+=b:l.push({chain:p,body:b}))};u([],e);let d=p=>{if(!p.length)return`.${a}`;let m=p[0].split(",").map(b=>b.trim()).map(b=>b.includes("&")?b.replace(/&/g,`.${a}`):b.startsWith(":")?`.${a}${b}`:`.${a} ${b}`);for(let b=1;b<p.length;b++){let x=p[b].split(",").map(_=>_.trim()),y=[];for(let _ of m)for(let v of x)v.includes("&")?y.push(v.replace(/&/g,_)):v.startsWith(":")?y.push(_+v):y.push(_+" "+v);m=y}return m.join(", ")},h=[];if(t.startsWith("@media")||t.startsWith("@supports")){if(c){let p=`${t}{.${a}{${c}}}`;h.push(p),re(p)}for(let p of l){let m=d(p.chain),b=he(`${t}{${m}{${p.body}}}`,m,s);h.push(b),re(b)}return gp.set(a,h),Kr.set(i,a),a}let g=d([t]);if(c){let p=he(`${g}{${c}}`,g,s);h.push(p),re(p)}for(let p of l){let m=d([t,...p.chain]),b=he(`${m}{${p.body}}`,m,s);h.push(b),re(b)}return gp.set(a,h),Kr.set(i,a),a}function ht(t){if(vy(),typeof t=="string"){re(t);return}let e=bp(),r=Object.keys(t),n=o=>{let s=o.match(/max-width:\s*(\d+)/);return s?parseInt(s[1]):0};r.sort((o,s)=>{let i=o.startsWith("@media"),a=s.startsWith("@media");return!i&&!a?0:i?a?n(s)-n(o):1:-1});for(let o of r){let s=t[o];if(o.startsWith("@media")||o.startsWith("@supports"))for(let i in s){let a=s[i];if(typeof a=="object"&&a!==null){let c="";for(let l in a){let f=l.startsWith("--")?l:Gr(l);c+=Fn(f,a[l])}re(he(`${o}{${i}{${c}}}`,i,e))}else{let c=i.startsWith("--")?i:Gr(i);re(`${o}{${Fn(c,a)}}`)}}else{let i="",a=!1;for(let c in s){let l=s[c];if(typeof l=="object"&&l!==null)a=!0;else{let f=c.startsWith("--")?c:Gr(c);i+=Fn(f,l)}}if(i&&re(he(`${o}{${i}}`,o,e)),a){let c=[],l=[];for(let f in s)typeof s[f]=="object"&&s[f]!==null&&(f.startsWith("@media")||f.startsWith("@supports")?c.push(f):l.push(f));c.sort((f,u)=>{let d=h=>{let g=h.match(/max-width:\s*(\d+)/);return g?parseInt(g[1]):0};return d(u)-d(f)});for(let f of l)ht({[`${o} ${f}`]:s[f]});for(let f of c)ht({[f]:{[o]:s[f]}})}}}}function Mn(t,e){let r="";for(let n in e){let o="";for(let s in e[n])o+=Fn(Gr(s),e[n][s]);r+=`${n}{${o}}`}return re(`@keyframes ${t}{${r}}`),t}function Cy(){Kr.clear(),ky=null}function xp(){return Kr.size}O();var oh={};$(oh,{DELEGATED_EVENTS:()=>Un,LIFECYCLE_EVENTS:()=>br,MIXINS:()=>Fc,NON_BUBBLING_EVENTS:()=>Mc,REGISTRY:()=>Ot,SVG_TAGS:()=>Bn,addDelegatedEvent:()=>yi,addMethods:()=>Kn,applyExtends:()=>Wn,cacheNode:()=>yr,create:()=>oe,createHTMLNode:()=>jn,detectTag:()=>mr,dispose:()=>wr,flushMounts:()=>qc,isSvgTag:()=>Vn,isValidTag:()=>Nn,refreshContextProto:()=>Uc,registerEvent:()=>zn,remove:()=>qn,removeDelegatedEvent:()=>bi,update:()=>Hn});var Sp="http://www.w3.org/2000/svg",Bn=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"]),_k=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 Nn(t){return _k.has(t)||Bn.has(t)}function Vn(t){return Bn.has(t)}function mr(t){let{tag:e,key:r}=t;if(typeof e=="function")try{e=e(t,t.state,t.context)}catch(s){e=void 0,typeof console<"u"&&console.error&&console.error(`[smbls] \`tag:\` factory threw on "${r||"<anon>"}" \u2014 falling back to key-based tag detection:`,s?.message||s)}if(e===!0&&(e=r),typeof e=="string"&&Nn(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","th","tr","td","thead","tbody","tfoot","caption","col","colgroup"]),o=r.toLowerCase();return o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),Nn(o)&&!n.has(o)?o:"div"}var Ay={};function jn(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(Vn(t)){let n=e?.parent;if(t==="svg"||n?.node?.namespaceURI===Sp)return r.createElementNS(Sp,t);if(t!=="svg")return r.createElement("div")}return r.createElement(t)}function yr(t){let e=t.tag=mr(t),n=Vn(e)&&(e==="svg"||t.parent?.node?.namespaceURI===Sp)?"svg:"+e:e,o=t?.context?.document||globalThis.document,s=Ay[n];if(s||(s=Ay[n]=jn(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?jn(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}var Ot=new Set(["extends","children","content","childrenAs","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","subscribeTo","autoGrow","__name","__ref","__hash","__text","parent","node"]),Fc={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},br=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","mounted","contentUpdate","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","beforeRemove","remove"]),Mc=new Set(["load","error","abort","scroll","canplay","canplaythrough","ended","pause","play","playing","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","durationchange","loadeddata","loadedmetadata","progress","emptied","resize"]),Ey=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),Un=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","wheel","contextmenu","drag","dragstart","dragend","dragenter","dragleave","dragover","drop"]);var wp=new WeakMap,Sk={passive:!0},wk={passive:!0,capture:!0},kp=(t,e)=>Ey.has(t)?e?wk:Sk:e||!1;function Oy(t){let e=wp.get(t);return e||(e={handlers:new Map,installed:new Set},wp.set(t,e)),e}function kk(t,e){let r=Oy(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}},kp(t,n))}function yi(t,e,r,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let o=Oy(n);kk(t,n),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,r)}function bi(t,e,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let n=wp.get(r);if(!n)return;let o=n.handlers.get(t);o&&o.delete(e)}function Ty(t){return Un.has(t)&&!br.has(t)}function zn(t,e,r){let{node:n,context:o}=e;if(!n)return;let s=o?.designSystem,i=c=>{s&&tt(s);try{let l=r.call(e,c,e,e.state,o);if(l&&typeof l.then=="function"){l.catch(f=>{e.error=f,console.error("[DOMQL] Async event error:",f)}).finally(()=>{s&&Z()});return}}catch(l){if(e.error=l,console.error("[DOMQL] Event error:",l),o?.strictMode)throw l}s&&Z()},a=Mc.has(t);if(!a&&Ty(t)){let c=o?.rootNode||n.ownerDocument?.documentElement;yi(t,n,i,c)}else n.addEventListener(t,i,kp(t,!1));e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(!a&&Ty(t)){let c=o?.rootNode||n.ownerDocument?.documentElement;bi(t,n,c)}else n.removeEventListener(t,i,kp(t,!1))})}function Ry(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 Wn(t,e,r){let n=Ry(e);if(!n.length)return;let s=(t.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=Py(n[i],s);a&&a!==e&&$y(t,a,r,new Set([e]))}}function Py(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 $y(t,e,r,n=new Set){if(n.has(e))return;n.add(e);let o=Ry(e);if(o.length){let i=(t.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let c=Py(o[a],i);c&&$y(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]=Iy(t[s],i):t[s]=i}}function Iy(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]=Iy(o,s):r[n]=s}return r}mn();O();var vk=["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"],Nc={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"]},Ly=["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"],_r=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()):Fy(t),Ck=new Set(["tabIndex","readOnly","maxLength","minLength","autoComplete","autoFocus","autoPlay","contentEditable","spellCheck","colSpan","rowSpan","srcSet","crossOrigin","accessKey","inputMode","enterKeyHint","formAction","noValidate"]),Fy=t=>Ck.has(t)?t.toLowerCase():null,Ak=new Set(["draggable","contenteditable","spellcheck","autocorrect"]),jc=t=>typeof t=="string"&&(Ak.has(t)||t.startsWith("aria-")),xi=(t,e)=>e!==!0&&e!==!1?e:jc(t)?e?"true":"false":e===!0?"":e,Sr=(t,e)=>e.startsWith("aria-")||e.startsWith("data-")||_r(e)||Nc.default.includes(e)?!0:Object.prototype.hasOwnProperty.call(Nc,t)?Nc[t].includes(e):!1,Ap=t=>{if(!S(t))return!1;let e=t.toLowerCase();return Ly.includes(e)},Ek=(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])It(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(It(e[o][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());n["data-"+c]=e[o][a]}continue}let s=Sr(t,o),i=Ap(o);if(It(e[o])&&(s||i)){let a=_r(o)||o;n[a]=e[o]}}return n},Tk=(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},xr=(t,e)=>{let r=t.call("exec",e,t);if(r)return S(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},vp=(t,e)=>{let r=(t.preSrc||"")+(xr(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},Cp={src:t=>vp(t,t.src),href:t=>xr(t,t.href),action:t=>xr(t,t.action),poster:t=>vp(t,t.poster),data:t=>xr(t,t.data)},Ep=t=>{let e=t.tag||"div",r={};for(let n in Cp)if(t[n]!==void 0&&Sr(e,n)){let o=Cp[n](t);o!==void 0&&(r[n]=o)}return r},Dy=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},Ok=(t,e,r)=>{if(t==="$"){let o=Dy(e,r);return o===void 0&&(o=!!r[e]),o}let n=r[e]===!0||r.state[e];if(!n){let o=Dy(e,r);o!==void 0&&(n=o)}return t==="."?!!n:!n},Rk=new Set(["$",".","!"]),Pk=(t,e,r)=>{let n={},o=(s,i,a,c)=>{let l=i;n[s]=f=>{if(Ok(a,c,f))return C(l)?l(f):l}};for(let s in t){let i=s.charAt(0);if(!Rk.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 h in a[l])o("aria-"+h,a[l][h],i,c);continue}if(l==="data"&&a[l]&&typeof a[l]=="object"){for(let h in a[l]){let g=h.replace(/([A-Z])/g,p=>"-"+p.toLowerCase());o("data-"+g,a[l][h],i,c)}continue}let f=Sr(e,l),u=Ap(l);if(!f&&!u)continue;let d=_r(l)||l;o(d,a[l],i,c)}}return n};function Hn(t={},e={}){let r=this,n=r.__ref;if(!n)return;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;let o=!t||Object.keys(t).length===0;if(De(()=>{if(t.state&&at(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 s in t.style){let i=t.style[s];if(i==null)continue;let a=s.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),c=String(i).replace(/\s*!important\s*$/,"");r.node.style.setProperty(a,c,"important")}r.style||(r.style={}),Object.assign(r.style,t.style)}if(t.attr&&r.node?.setAttribute){for(let s in t.attr){let i=t.attr[s];i==null||i===!1?r.node.removeAttribute(s):typeof i!="function"&&typeof i!="object"&&r.node.setAttribute(s,xi(s,i))}r.attr||(r.attr={}),Object.assign(r.attr,t.attr)}if(t.data&&r.node?.dataset){for(let s in t.data)r.node.dataset[s]=t.data[s];r.data||(r.data={}),Object.assign(r.data,t.data)}for(let s in t){if(Ot.has(s)||s==="state")continue;let i=t[s],a=r[s];if(a&&a.__ref&&typeof a.update=="function")a.update(i,e);else if(typeof i=="object"&&i!==null){let c=s.charCodeAt(0);c>=65&&c<=90&&oe(i,r,s,e)}else s!=="text"&&s!=="html"&&s!=="style"&&s!=="attr"&&s!=="data"&&(r[s]=i)}}),r.node&&o&&n.__effects&&n.__effects.length)for(let s=0;s<n.__effects.length;s++){let i=n.__effects[s];i&&!i._disposed&&!i._isSubscribeToEffect&&typeof i._execute=="function"&&i._execute()}else if(r.node&&n.__conditionalRunners)for(let s of n.__conditionalRunners)s();return At("update",r),!e.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,e),r}function wr(t){if(!t)return;let e=t.__ref;if(!e)return;try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(n){console.error("[smbls] onBeforeRemove error:",n)}if(e.__effects){for(let n=0;n<e.__effects.length;n++)e.__effects[n].dispose();e.__effects.length=0}if(e.__eventCleanup){for(let n=0;n<e.__eventCleanup.length;n++)e.__eventCleanup[n]();e.__eventCleanup.length=0}if(e.__children){for(let n=0;n<e.__children.length;n++){let o=e.__children[n],s=t[o];s&&s.__ref&&wr(s)}e.__children.length=0}t.node?.parentNode?t.node.remove():t.tag==="fragment"&&e.__fragmentAnchor?.parentNode&&e.__fragmentAnchor.remove();let r=t.state?.$destroy||t.state?.destroy;if(typeof r=="function"&&t.state.__element===t&&r.call(t.state),t.parent?.__ref?.__children){let n=t.parent.__ref.__children.indexOf(t.key);n!==-1&&t.parent.__ref.__children.splice(n,1),delete t.parent[t.key]}try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(n){console.error("[smbls] onRemove error:",n)}t.node=null,t.parent=null,t.__ref=null}function qn(){wr(this)}O();O();O();var $k=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],Ik=["none","forwards","backwards","both"],Dk=["normal","reverse","alternate","alternate-reverse"],Lk=["running","paused"],Fk=t=>/^[\d.]+m?s$/.test(t),Mk=0,My=new Map,Tp=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{};if(w(t)){let o=JSON.stringify(t),s=My.get(o);if(s)return s;let i=`smbls-anim-${Mk++}`,a=Mn(i,t);return My.set(o,a),a}let n=r&&r[t];return w(n)?Mn(t,n):t},Nk=(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 u of n)r&&r[u]?o=u:Fk(u)?s.push(u):$k.includes(u)||u.startsWith("cubic-bezier")||u.startsWith("steps(")?i=u:u==="infinite"||/^\d+$/.test(u)?a=u==="infinite"?u:Number(u):Dk.includes(u)?c=u:Ik.includes(u)?l=u:Lk.includes(u)?f=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:l,playState:f}},Op={animation:(t,e)=>{if(S(t)&&t.includes(" ")){let r=Nk(t,e);return{animationName:Tp(r.name||t,e),animationDuration:r.durations[0]||Wt(e.animationDuration||"A").timing,animationDelay:r.durations[1]||Wt(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:Tp(t,e),animationDuration:Wt(e.animationDuration||"A").timing,animationDelay:Wt(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:Tp(t,e)}),animationDuration:t=>({animationDuration:Wt(t).timing}),animationDelay:t=>({animationDelay:Wt(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 Rp={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>F("height",t,e),width:(t,e)=>F("width",t,e),boxSizing:t=>xt(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ft("height",e),...ft("width",r||e)}},inlineSize:(t,e)=>F("inlineSize",t,e),blockSize:(t,e)=>F("blockSize",t,e),minWidth:(t,e)=>F("minWidth",t,e),maxWidth:(t,e)=>F("maxWidth",t,e),widthRange:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ft("minWidth",e),...ft("maxWidth",r||e)}},minHeight:(t,e)=>F("minHeight",t,e),maxHeight:(t,e)=>F("maxHeight",t,e),heightRange:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ft("minHeight",e),...ft("maxHeight",r||e)}},size:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...F("inlineSize",e),...F("blockSize",r||e)}},minBlockSize:(t,e)=>F("minBlockSize",t,e),minInlineSize:(t,e)=>F("minInlineSize",t,e),maxBlockSize:(t,e)=>F("maxBlockSize",t,e),maxInlineSize:(t,e)=>F("maxInlineSize",t,e),minSize:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ft("minInlineSize",e),...ft("minBlockSize",r||e)}},maxSize:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ft("maxInlineSize",e),...ft("maxBlockSize",r||e)}},borderWidth:(t,e)=>F("borderWidth",t,e),borderTopWidth:(t,e)=>F("borderTopWidth",t,e),borderRightWidth:(t,e)=>F("borderRightWidth",t,e),borderBottomWidth:(t,e)=>F("borderBottomWidth",t,e),borderLeftWidth:(t,e)=>F("borderLeftWidth",t,e),padding:(t,e)=>F("padding",t,e),scrollPadding:(t,e)=>F("scrollPadding",t,e),paddingInline:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ft("paddingInlineStart",e),...ft("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ft("paddingBlockStart",e),...ft("paddingBlockEnd",r||e)}},paddingTop:(t,e)=>F("paddingBlockStart",t,e),paddingBottom:(t,e)=>F("paddingBlockEnd",t,e),paddingLeft:(t,e)=>F("paddingInlineStart",t,e),paddingRight:(t,e)=>F("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>F("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>F("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>F("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>F("paddingInlineEnd",t,e),margin:(t,e)=>F("margin",t,e),marginInline:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ft("marginInlineStart",e),...ft("marginInlineEnd",r||e)}},marginBlock:(t,e)=>{if(!S(e.marginBlock))return;let[r,n]=e.marginBlock.split(" ");return{...ft("marginBlockStart",r),...ft("marginBlockEnd",n||r)}},marginTop:(t,e)=>F("marginBlockStart",t,e),marginBottom:(t,e)=>F("marginBlockEnd",t,e),marginLeft:(t,e)=>F("marginInlineStart",t,e),marginRight:(t,e)=>F("marginInlineEnd",t,e),marginInlineStart:(t,e)=>F("marginInlineStart",t,e),marginInlineEnd:(t,e)=>F("marginInlineEnd",t,e),marginBlockStart:(t,e)=>F("marginBlockStart",t,e),marginBlockEnd:(t,e)=>F("marginBlockEnd",t,e),gap:t=>({gap:Rc(t)}),columnGap:(t,e)=>pe(e,"columnGap",t),rowGap:(t,e)=>pe(e,"rowGap",t),flexWrap:t=>({display:"flex",flexWrap:t}),flexFlow:(t,e)=>{let r=e.reverse;if(!S(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(!S(t))return;let[e,r]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:r}},round:(t,e)=>gi(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>gi(t??e.round,e,"borderRadius")};var Pp={fontSize:t=>ei(t)||t,fontFamily:t=>({fontFamily:Qs(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t}),lineClamp:t=>{if(t!=null)return t==="none"?{WebkitLineClamp:"none",lineClamp:"none"}:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:String(t),lineClamp:String(t),overflow:"hidden"}}};var $p={overflow:t=>({overflow:t}),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 Ip={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:t.split(" ").map(r=>mt(r,"k").k).join(" ")}},left:t=>mt(t,"left"),top:t=>mt(t,"top"),right:t=>mt(t,"right"),bottom:t=>mt(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>mt(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=>mt(r,"k").k);return{left:e[0],right:e[1]||e[0]}}};O();var ie=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},se=(t,e)=>{if(e==null||e==="")return;if(!w(e))return{[t]:e};let r={},n=!1;for(let o in e){let s=e[o];s==null||s===""||w(s)||(r[o]={[t]:s},n=!0)}return n?r:void 0},Dp={theme:(t,e)=>{if(t)return e.themeModifier?te(t,`@${e.themeModifier}`):te(t)},color:(t,e)=>{let r=ie(e);if(t)return se("color",wt(t,r))},background:(t,e)=>{let r=ie(e);if(t)return S(t)&&t.includes("gradient")&&t.includes("(")?{background:pi(t,r)}:se("background",wt(t,r))},backgroundColor:(t,e)=>{let r=ie(e);if(t)return se("backgroundColor",wt(t,r))},backgroundImage:(t,e,r,n)=>{let o=ie(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 se("backgroundImage",Oc(t,o))},textStroke:t=>({WebkitTextStroke:Ec(t)}),outline:t=>({outline:$e(t)}),outlineOffset:(t,e)=>F("outlineOffset",t,e),border:t=>({border:$e(t)}),borderColor:(t,e)=>{let r=ie(e);if(t)return se("borderColor",wt(t,r))},borderTopColor:(t,e)=>{let r=ie(e);if(t)return se("borderTopColor",wt(t,r))},borderBottomColor:(t,e)=>{let r=ie(e);if(t)return se("borderBottomColor",wt(t,r))},borderLeftColor:(t,e)=>{let r=ie(e);if(t)return se("borderLeftColor",wt(t,r))},borderRightColor:(t,e)=>{let r=ie(e);if(t)return se("borderRightColor",wt(t,r))},borderLeft:t=>({borderLeft:$e(t)}),borderTop:t=>({borderTop:$e(t)}),borderRight:t=>({borderRight:$e(t)}),borderBottom:t=>({borderBottom:$e(t)}),shadow:(t,e)=>{let r=ie(e);if(t)return se("boxShadow",Tc(t,r))},boxShadow:(t,e)=>{if(!S(t))return;let[r,n]=t.split("!importan"),o=ie(e),s=n?" !important":"",i=di(r.trim(),o);return S(i)?{boxShadow:i+s}:se("boxShadow",i)},textShadow:(t,{context:e})=>se("textShadow",di(t,e.designSystem.globalTheme)),columnRule:t=>({columnRule:$e(t)})};var _i={transition:t=>({transition:Pc(t)}),transitionDuration:t=>({transitionDuration:hi(t)}),transitionDelay:t=>({transitionDelay:hi(t)}),transitionTimingFunction:t=>({transitionTimingFunction:ee(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};O();var Lp={flow:(t,e)=>{let r=e.reverse;if(!S(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 Fp={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 ut={...Op,...Rp,...Pp,...$p,...Ip,...Dp,..._i,...Lp,...Fp};var yt=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","overscrollBehavior","overscrollBehaviorX","overscrollBehaviorY","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","scrollbarGutter","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","touchAction","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 jk=/^-?[A-Z][0-9]?$/,Bk=/^[a-z][0-9]?$/,Ny=/var\(\s*(--[A-Za-z0-9-]+)/g,Vk=t=>{let e=new Set,r=new Set;if(!t||typeof t!="object")return{knownLetters:e,knownVars:r};for(let n in t){let o=t[n];if(!(!o||typeof o!="object")){if(o.sequence&&typeof o.sequence=="object")for(let s in o.sequence)e.add(s);if(o.vars&&typeof o.vars=="object")for(let s in o.vars)r.add(s)}}return{knownLetters:e,knownVars:r}},Uk=(t,e)=>{if(!e.size)return[];let r=t.split(/[(),\s]+/).filter(Boolean),n=new Set;for(let o of r){if(!jk.test(o))continue;let s=o.charCodeAt(0)===45?o.slice(1):o;e.has(s)&&n.add(o)}return[...n]},zk=(t,e)=>{if(!e.size)return[];let r=[];Ny.lastIndex=0;let n;for(;n=Ny.exec(t);){let o=n[1];if(e.has(o))continue;let s=o.lastIndexOf("-");if(s===-1)continue;let i=o.slice(s+1);if(!Bk.test(i))continue;let a=o.slice(0,s+1)+i.toUpperCase();a!==o&&e.has(a)&&r.push({varName:o,corrected:a})}return r},Bc=new Set,jy=(t,e,r)=>{if(!Ft()||!S(e)||!e)return;let n;try{n=A()}catch{return}let{knownLetters:o,knownVars:s}=Vk(n);if(!o.size&&!s.size)return;let i=Uk(e,o),a=zk(e,s);if(!i.length&&!a.length)return;let c=r?.__ref?.path?r.__ref.path.join("."):r?.key||"?";for(let l of i){let f=`${c}::${t}::bare::${l}::${e}`;Bc.has(f)||(Bc.add(f),console.warn(`[smbls/css-in-props] "${t}" on <${c}> looks like it contains an un-wrapped design-system token ("${l}") \u2014 "${t}" has no registered resolver, so its value is forwarded to the browser untouched. A bare letter token there is invalid CSS, so the browser drops the ENTIRE "${t}" declaration (not just this argument). Wrap it in var(--<family>-${l.replace("-","")}) (or calc(-1 * var(--<family>-${l.replace("-","")})) for a negative). Value: "${e}"`))}for(let{varName:l,corrected:f}of a){let u=`${c}::${t}::case::${l}::${e}`;Bc.has(u)||(Bc.add(u),console.warn(`[smbls/css-in-props] "${t}" on <${c}> references ${l}, which the active design system never emits. CSS custom-property names are case-sensitive \u2014 the real variable is ${f}, so this reference silently never resolves. Value: "${e}"`))}};O();var Wk=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,Hk=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=t.slice(1),s=n.designSystem.media[o],i=qt(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(Wk),c=a?a[1]||a[2]:o,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let f=n.designSystem?.scopeSelector||":root",u=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${u} &`]:i}}return l},By=(t,e,r)=>({[t]:qt(e,r)}),Si=(t,e,r)=>{let n=`&${t}`,o=qt(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(u=>`${u} ${l}`).join(", ");c[f]=i[l]}return c}}return{[n]:o}},Mp=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},qk=(t,e,r)=>{let n=t.slice(1),o=Mp(n,r);if(o===void 0&&(o=!!r[n]),!!o)return qt(e,r)},Kk=(t,e,r)=>({[t]:e}),Gk=(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=Mp(n,r);s!==void 0&&(o=s)}if(o)return qt(e,r)},Yk=(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=Mp(n,r);s!==void 0&&(o=s)}if(!o)return qt(e,r)},Np=(t,e)=>qt(t,e),jp={"@":Hk,":":Si,"[":Si,"*":Si,"+":Si,"~":Si,"&":By,">":By,$:qk,"-":Kk,".":Gk,"!":Yk};var Vc=rr(),Vy=(t,e,r)=>{let n=e?.context?.designSystem;n&&tt(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,u=l.reduce((d,h)=>ct(d,f[h]),{});o.designSystemClass=u}}else if(a==="true"){let l=ot(c,e);ct(o,Np(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),!Vc&&w(o[a])&&(o[a].label=a)}else if(ut[a]){let l=ot(c,e);T(l)&&(l=l.reduce((u,d)=>ct(u,d),{}));let f=ut[a](l,e,e.state,e.context);T(f)&&(f=f.reduce((u,d)=>ct(u,d),{})),f&&i(a,f),!Vc&&w(o[a])&&(o[a].label=a)}else if(yt.has(a)){let l=ot(c,e);typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),Vc||jy(a,l,e),i(a,{[a]:l}),!Vc&&w(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{n&&Z()}},Uy=(t,e)=>{let r={};for(let n in t){let o=jp[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"?Lt(r[i],s[i]):r[i]=s[i])}}return r},qt=(t,e,r={unpack:!0})=>{let[n,o]=Vy(t,e,r),s=Uy(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return Fo(n,s);n._selectors=s}return n},Xk=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};O();var zy=t=>{if(w(t))return qt(t,t)},Jk=(t,e)=>{let r=zy(t);return typeof e=="function"?e(r):ne(r)};O();function Vp(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})}var Wy=new Set;function Zk(t,e,r){let n=String(e);if(Wy.has(n))return;Wy.add(n);let o=t?.__ref?.path,s=Array.isArray(o)&&o.length?o.join("."):t?.key!=null?String(t.key):"(unknown element)",i=r!=null?`resolves to a non-function (${typeof r}) \u2014 it cannot be called`:"is not registered in context.methods, context.functions, or context.utils, and is not an element method",a=`[smbls] el.call('${n}') at <${s}>: "${n}" ${i}. Returning undefined (unchanged behavior) \u2014 check the name for typos or register the function on the project. Warned once per name; repeat misses are silent.`;Vp(t,"error",[a]),console.error(a)}function Qk(...t){return Vp(this,"warn",t),_s.apply(this,t)}function tv(...t){return Vp(this,"error",t),Ur.apply(this,t)}var Hy={update:Hn,remove:qn,getDB:vs,getQuery:Cs,getRootData:ys,getChildren:ds,getPath:ps,nextElement:Ss,previousElement:ws,verbose:Sn,warn:Qk,error:tv,variables:ks,spotByPath:us,set(t,e){let r=this.__ref;if(r){if(r.__setLocked){r.__setQueued={content:t,options:e};return}r.__setLocked=!0}try{if(this.removeContent(),t!=null){let n=this.context?.__create;n&&n(t,this,"content",e)}this.__ref&&(this.__ref.contentManaged=!0)}finally{if(r){r.__setLocked=!1;let n=r.__setQueued;n&&(r.__setQueued=null,this.set(n.content,n.options))}}},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:ms,getRootState:gs,getRootContext:bs,getContext:xs,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);Ft()&&Zk(this,t,n)},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)}},Bp=new WeakMap;function ev(t){if(!t)return Hy;let e=Bp.get(t);if(e)return e;e=Object.create(Hy);let r=t.methods;if(r)for(let n in r)e[n]=r[n];return Bp.set(t,e),e}function Kn(t){let e=ev(t.context);Object.setPrototypeOf(t,e)}function Uc(t){if(!t)return!1;let e=Bp.get(t);if(!e)return!1;let r=t.methods;if(!r)return!1;for(let n in r)e[n]=r[n];return!0}O();mn();var qp={};$(qp,{STATE_METHODS:()=>qy,applyInitialState:()=>Wc,applyStateMethods:()=>Kt,callStateMethod:()=>wi,createState:()=>zp,isTracking:()=>Hp,useHostState:()=>Wp});var qy=new Set(["update","parse","clean","destroy","create","add","toggle","remove","set","replace","setByPath","setPathCollection","removeByPath","removePathCollection","getByPath","reset","apply","applyReplace","applyFunction","quietUpdate","quietReplace","rootUpdate","parentUpdate","keys","values","__element","__children","parent","root"]),zc=(t,e,r)=>{Object.defineProperty(t,e,{value:r,enumerable:!1,configurable:!0,writable:!0})},ge=(t,e,r,{onlyIfAbsent:n}={})=>{zc(t,"$"+e,r),!(n&&Object.prototype.hasOwnProperty.call(t,e))&&zc(t,e,r)},wi=(t,e,...r)=>{if(!t)return;let n=t["$"+e];if(typeof n=="function")return n.apply(t,r);let o=t[e];if(typeof o=="function")return o.apply(t,r)},Kt=(t,e)=>{if(at(e)){let o=e.__raw||e;ge(o,"toggle",function(s,i={}){e[s]=!e[s]},{onlyIfAbsent:!0}),ge(o,"set",function(s,i={}){return e.$clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.$update(s,i),e},{onlyIfAbsent:!0}),ge(o,"setByPath",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}),ge(o,"getByPath",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}),ge(o,"removeByPath",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}),ge(o,"reset",function(s={}){let i=e.$parse();return e.$set(i,s)}),ge(o,"apply",function(s,i={}){if(typeof s=="function"){let a=s(e);return e.$update(a,i)}}),ge(o,"applyFunction",function(s,i={}){if(typeof s=="function")return s(e),e.$update(e.$parse(),i)}),ge(o,"rootUpdate",function(s,i={}){let a=e;for(;a?.parent&&at(a.parent);)a=a.parent;return wi(a,"update",s,i)}),ge(o,"parentUpdate",function(s,i={}){if(e.parent)return wi(e.parent,"update",s,i)}),ge(o,"quietReplace",function(s,i={}){return e.$replace(s,{quiet:!0,...i})}),Object.getOwnPropertyDescriptor(o,"root")||Object.defineProperty(o,"root",{get:function(){let s=e,i=at(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,at(s)&&(i=s);return i||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)if(zc(e,"$"+o,n[o]),typeof e[o]!="function"){if(Object.prototype.hasOwnProperty.call(e,o)){$r(o,"");continue}zc(e,o,n[o])}};var zp=function(t,e,r){return t.state=Wc(t,e,r),t.state},Wc=function(t,e,r){let{__ref:n}=t,o=t.state;if(o==null||o===!1){let s=e?.state||{};return Kt(t,s),s}if(typeof o=="string")return n&&(n.__state=o),n.__stateType="string",rv(o,t,e);if(typeof o=="number"||typeof o=="boolean"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=zt({value:o});return s.__element=t,e?.state&&(s.parent=e.state),Kt(t,s),s}if(typeof o=="function"&&(o=o(t,e?.state)||{}),typeof o=="object"&&!at(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let s=zt({...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)),Kt(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,r),s}return at(o)?(o.__element=t,o):e?.state||{}};function Up(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 rv(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?Up(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?Up(o,s):o??{}}let n=Up(r.state,t);if(n&&typeof n=="object"&&!at(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 Wp=(t,e)=>{if(!t)return Gy;let r=ov(t,e);return!r||!r.state?Gy:iv(r.state)},Hp=()=>Rr()!=null,nv=128;function ov(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<nv&&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 sv={get(t,e){return t[e]}},Ky=new WeakMap,iv=t=>{let e=Ky.get(t);return e||(e=new Proxy(t,sv),Ky.set(t,e)),e},Gy=new Proxy(Object.create(null),{get(){},has(){return!1}});var av=1,Hc=[],Xp=!1;function cv(){Xp||(Xp=!0,typeof requestAnimationFrame=="function"?requestAnimationFrame(qc):setTimeout(qc,0))}function qc(){if(Xp=!1,!Hc.length)return;let t=Hc.splice(0,Hc.length);for(let e=0;e<t.length;e++){let r=t[e];!r.node||!r.node.isConnected||He("Mounted",r,r.__ref?.__mountOptions||{})}}function Qy(t,e){typeof t.onMounted=="function"&&(t.__ref.__mountOptions=e,Hc.push(t),cv())}function Yy(t,e){if(typeof t.onContentUpdate!="function")return;t.context?.plugins?.length&&At("contentUpdate",t,e);let r=t.context?.designSystem;r&&tt(r);try{t.onContentUpdate(t,t.state,t.context,e)}catch(n){if(t.context?.plugins?.length&&At("error",t,{hook:"onContentUpdate",error:n})||console.error('[DOMQL] Lifecycle "onContentUpdate" error:',n),t.context?.strictMode)throw n}finally{r&&Z()}}function Yn(t){return t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90}function lv(t){return t.charAt(2).toLowerCase()+t.slice(3)}function fv(t){return t.toLowerCase()}function Jp(t){let e=t.charCodeAt(0);return e===58||e===64||e===38}function vi(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]=vi(o,s):r[n]=s}return r}function oe(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||`_${av++}`,s.parent=e||null,s.context=t.context||e?.context||n.context||{},s.context.__create||(s.context.__create=oe);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 p=r.indexOf("_");if(p>0){let m=r.substring(0,p),b=s.context?.components;b&&(b[m]||b["smbls."+m])?t={...t,extends:m}:b&&Ft()&&/^[A-Z]\w*_\d+$/.test(r)&&console.warn(`[smbls] auto-extend: key "${r}" looks like a multi-instance (${m}_N) but neither "${m}" nor "smbls.${m}" is registered in context.components \u2014 element will render as a plain <div>. Register the base component or rename the key.`)}}Wn(s,t,n);let a=new Set(["childProps","attr","style","scope","data"]),c=s.props&&typeof s.props=="object"?s.props:null;for(let p in t){if(p==="parent"||p==="node"||p==="__ref"||p==="extends"||p==="context"||p==="props")continue;let m=t[p],b=s[p],x=b&&m&&typeof b=="object"&&typeof m=="object"&&!Array.isArray(b)&&!Array.isArray(m)&&typeof b!="function"&&typeof m!="function";x&&p.charCodeAt(0)>=65&&p.charCodeAt(0)<=90?s[p]=vi(b,m):x&&a.has(p)?s[p]={...b,...m}:x&&Jp(p)?s[p]=vi(b,m):s[p]=m}function l(p){for(let m in p){let b=p[m],x=s[m],y=x&&b&&typeof x=="object"&&typeof b=="object"&&!Array.isArray(x)&&!Array.isArray(b)&&typeof x!="function"&&typeof b!="function";y&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?s[m]=vi(x,b):y&&a.has(m)?s[m]={...x,...b}:y&&Jp(m)?s[m]=vi(x,b):s[m]=b}}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,u=e?.scope,d=s.context&&typeof s.context.globalScope=="object"&&s.context.globalScope||null,h=u||d||null;if(t.scope!==void 0||f){let p={};f&&Object.assign(p,f),t.scope!==void 0&&Object.assign(p,t.scope),s.scope=xo(p,h)}else h&&(s.scope=h);if(t.if!==void 0&&(s.if=t.if),Kn(s),uv(s,e,t),s.if!=null){let p;if(typeof s.if=="function")try{p=s.if(s,s.state,s.context)}catch(m){if(p=!1,i.__ifError=m,typeof console<"u"&&console.warn){let b=s.key||s.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${b} \u2014 treating as false:`,m?.message||m)}}else p=s.if;i.__if=!!p}if(i.__if)typeof s.if=="function"&&(i.__ifInitialized=!0);else return e&&(e[s.key]=s),typeof s.if=="function"&&rb(s,i,s.if),s;s.tag||(s.tag=mr(s)),He("Init",s,n);let g=s.node=yr(s);if(!g)return s;if(s.tag==="fragment"){let m=(s.context?.document||globalThis.document).createComment("");g.appendChild(m),i.__fragmentAnchor=m}He("AttachNode",s,n),g.setAttribute&&s.key&&g.setAttribute("data-key",s.key),e&&(e[s.key]=s,e.__ref?.__children&&(e.__ref.__children.includes(s.key)||e.__ref.__children.push(s.key))),g.setAttribute&&s.context?.scopeSelector&&s.context.scopeSelector!==":root"&&s.context.key&&s.key===s.context.key&&g.setAttribute("data-smbls-app",s.context.key),s.id&&g.setAttribute&&(g.id=s.id),ib(s,n),eb(s),Zp(s),ob(s),Cv(s);try{ab(s,n)}catch(p){if(typeof console<"u"&&console.error){let m=s.__ref?.path?.join(".")||s.key||"<root>";console.error(`[smbls] createChildren failed at ${m}:`,p?.message||p,p?.stack?`
|
|
38
|
+
src: ${i};`},fr=(t,e,r,n)=>`@font-face {${Fs(t,e,r,n)}
|
|
39
|
+
}`,Hr=(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(u=>Qt(u,r)||u):Qt(s,r)||s;return Fs(t,f,i,{fontStyle:a,fontDisplay:c,fontStretch:l})}),Dd=t=>Object.keys(t).map(r=>Hr(r,t[r].value)),pc=(t,e,r)=>{if(e&&e.isVariable){let s=Qt(e.url,r)||e.url;return Tn(s)?On(s):fr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return Hr(t,e,r).map(dc);let o=Array.isArray(e.url)?e.url.map(s=>Qt(s,r)||s):Qt(e.url,r)||e.url;return fr(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})},Ms=(t,e)=>Object.keys(t).map(n=>pc(n,t[n].value,e));O();O();O();O();var Rn={};$(Rn,{animation:()=>Jd,breakpoints:()=>Yd,class:()=>rp,color:()=>Ud,devices:()=>Xd,document:()=>ay,font:()=>Fd,fontFace:()=>jd,fontFamily:()=>Md,fontFamilyTypes:()=>Nd,gradient:()=>zd,grid:()=>ep,icons:()=>qd,media:()=>Bd,reset:()=>cy,semanticIcons:()=>Kd,sequence:()=>Ue,shadow:()=>Hd,sizes:()=>op,spacing:()=>Vd,svg:()=>Zd,svgData:()=>Qd,templates:()=>tp,theme:()=>Wd,timing:()=>Gd,typography:()=>Ns,unit:()=>Ld,vars:()=>np});var Ue={"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 Ld={default:"em"};var L0={browserDefault:16,base:16,type:"font-size",ratio:Ue["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},Ns=L0;var Fd={};var Md={},Nd={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},jd={};var Bd={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var F0={base:Ns.base,type:"spacing",ratio:Ue.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},Vd=F0;var Ud={},zd={};var Wd={};var Hd={};var qd={},Kd={};var M0={default:150,base:150,type:"timing",ratio:Ue["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},Gd=M0;var ay={};var Yd={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},Xd={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 Jd={};var Zd={},Qd={};var tp={};var N0={},ep=N0;var rp={};var cy={},np={},op={};var yc={},bc={},hc=Rn,gc={},Bs=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase());for(let t in hc){let e=t.toLowerCase();gc[e]=hc[t];let r=Bs(e);r!==e&&(gc[r]=hc[t]),e!==t&&(gc[t]=hc[t])}var Pn={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:yc,cssMediaVars:bc,CSS_VARS:yc,CSS_MEDIA_VARS:bc,_scratchConfig:!0,...gc},$n=(t,e)=>{if(!t)return null;if(t.__globalThemeSignal)return wt(e)&&t.__globalThemeSignal.set(e),t.__globalThemeSignal;let r=wt(e)?e:t.globalTheme,n=It(wt(r)?r:"auto");return Object.defineProperty(t,"globalTheme",{get(){return n.get()},set(o){n.set(o)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"__globalThemeSignal",{value:n,enumerable:!1,configurable:!0,writable:!0}),n},ly=t=>t?$n(t):null;$n(Pn);var mc=it(Pn),pe={active:"0",0:Pn},fy=t=>(wt(t)&&(pe.active=t),pe[t||pe.active]),js=[],tt=t=>{t&&t._scratchConfig&&js.push(t)},Z=()=>{js.pop()},A=t=>js.length?js[js.length-1]:pe[t||pe.active]||Pn,xc=t=>{if(w(t))return pe.active="1",pe[1]=Y(t,it(mc)),$n(pe[1]),t},j0=["useReset","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig"],B0=["useVariable","globalTheme","verbose"],V0=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],U0=t=>{for(let e of V0){let r;for(let n of e){let o=t[n];w(o)&&(r=r?Y(o,r):o)}if(r)for(let n of e)w(t[n])&&(t[n]=r)}},_c=(t,e,{cleanBase:r=!1}={})=>{let n=r?null:A(),o=it(!r&&n&&n._scratchConfig?n:mc);for(let i of j0)delete o[i];for(let i of B0)Object.prototype.hasOwnProperty.call(mc,i)?o[i]=mc[i]:delete o[i];let s=Y(e||{},o);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,U0(s),$n(s),t&&(pe[t]=s),s};var Re={"-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"},sp=(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=uy.has(e.unit)?"rem":e.unit;e.vars[n]=s+c},ze=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},uy=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Vs=(t,e)=>{let{base:r,type:n,unit:o}=e,s=uy.has(o)?"rem":o,i=(Ir(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=Re[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=Re[t+1],u=Math.abs(t),d=Math.pow(dy,2*u),h=Re[u];return h?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${h}) / ${d.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},Sc=(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}))`},Us=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},zs=(t,e)=>Us(t,e).map(r=>r/t),Ws=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[u,d,h]=Us(o,s);l>16?f=[u,d,h]:f=[u,h],f.forEach((g,p)=>{let m=~~(g/n*1e3)/1e3,b=i+(p+1),x=a+(p+1)/10,y=Sc(p+1,f,i,e),_={key:r+(p+1),variable:b,value:g,scaling:m,scalingVariable:y,index:x};sp(_,e)})},dy=1.618,z0=(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(dy,2*n);return Math.max(o,s)},Bt=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,u=Re[f],d=z0(f,r,n),h=~~(d/r*100)/100,g=c+u,p=Vs(f,t),m={key:u,variable:g,value:d,base:r,scaling:h,scalingVariable:p,ratio:n,index:f};sp(m,t),s&&Ws(m,t)}return t},ip=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=S(e)?e:Re[e],a=S(e)?Object.entries(Re).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,h="--"+(t.varPrefix?t.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,g=Vs(a,t),p={key:i,variable:h,value:l,base:n,scaling:f,scalingVariable:g,ratio:o,index:a};return sp(p,c),s&&Ws(p,c),c},Hs=(t="A",e)=>{let r=A(),{unit:n}=r;if(S(t)&<(t))return`var(${t})`;if(S(t)&&/^(?:env|var|calc|min|max|clamp)\(/.test(t.trim()))return t;if(S(t)){let y=r.sizes;if(y){let _=y[t]||y[t.toLowerCase()];if(_!==void 0)return t.slice(0,1)==="-"?`calc(${_} * -1)`:_}}let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(wo(t)||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let d=`--${e.varPrefix?e.varPrefix+"-":""}${Is(e.type.replace(".","-"))}-`,h=t.toUpperCase(),g=h.slice(0,1)==="-"?"-":"",p=g?h.slice(1):h,m="";p.includes("_")&&(m="_"+p.split("_")[1].toLowerCase(),p=p.split("_")[0]);let b=y=>a.test(y)?`var(${d}${y}${m})`:y;if(p.includes("+")){let[y,_]=p.split("+"),v=`${b(y)} + ${b(_)}`;return g?`calc((${v}) * -1)`:`calc(${v})`}else if(p.includes("*")){let[y,_]=p.split("*"),v=`${b(y)} * ${b(_)}`;return g?`calc((${v}) * -1)`:`calc(${v})`}else if(p.includes("-")){let[y,_]=p.split("-"),v=`${b(y)} - ${b(_)}`;return g?`calc((${v}) * -1)`:`calc(${v})`}if(!o[p]&&p.length===2&&(r.verbose&&console.warn(p,"- value is not found because `subSequence` is set to false"),p=p.slice(0,1)),i||r.useVariable){let y=`var(${d}${p}${m})`;return g?`calc(${y} * -1)`:y}let x=o?o[p]:null;if(!x){if(console.warn("can't find",o,p),Mt())throw new Error(`[smbls] Unresolvable design-system token "${t}"`+(e.type?` for sequence "${e.type}"`:"")+" \u2014 not a registered `sizes` name and not a valid spacing/typography/timing sequence letter. The CSS property using it would silently be dropped in production. Register the token in `designSystem/sizes.js` (or the relevant sequence family) or fix the typo.");return}return s==="ms"||s==="s"?g+x.val+s:g+x.scaling+s},wc=(t,e)=>{if(!["+","-","*","/",","].filter(s=>t.includes(s+" ")).length)return t;let n=/(\s+-\s+|\s*[+*/,]\s*)/;return t.split(n).map(s=>{let i=s.trim();return!i||["+","-","*","/",","].includes(i)?s:Hs(i,e)}).join("")},Pe=(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("(")){if(/^(?:env|var)\(/.test(t.trim()))return{[e]:t};let s=ze(t);n=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=wc(t,r):t=Hs(t,r),{[e]:n?`${n}(${t})`:t}},kc=(t,e)=>Re[t-e],qs=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=kc(e,o);return r[s]})};O();var ap=(t,e)=>{let r=A(),{cssVars:n}=r;j(t.value)||(n[t.var]=t.value)},Ks=(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 u=`${f}-ratio`;t[u]=a;let[d,h,g]=zs(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${h/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${g/a})`},py=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),We=(t,e={})=>{let r=A(),{unit:n,timing:o,cssVars:s}=r,i=t.unit||n.default,a=py.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||Ks(s,t,e);for(let u in l){let d=l[u],h=(t.type===o.type?l[u].val:f[u])+a;if(!c){s[d.variable+"_default"]=h,s[d.variable]=d.scalingVariable;continue}e.useDefault===!1?s[d.variable]=h:(s[d.variable+"_default"]=h,s[d.variable]=`var(${d.variable+"_default"})`)}},ur=(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=py.has(l)?"rem":l,{mediaRegenerate:u}=t,{sequence:d,scales:h}=c,g=s[a];if(!g&&n.verbose&&console.warn("Can't find media query ",g),!u){let p=i[`@media ${g}`];p||(p=i[`@media ${g}`]={}),Ks(p,c,r);let m=t.unit||o.default;if(f!==m&&d)for(let b in d){let x=d[b],y=h[b]+f;p[x.variable+"_default"]=y,p[x.variable]=y}return}for(let p in d){let m=d[p],b=(Ir(f)?h[p]:d[p].val)+f;!g&&n.verbose&&console.warn("Can't find query ",g);let x=i[`@media ${g}`];x||(x=i[`@media ${g}`]={}),x[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=b}};O();var gy=jr(),In=t=>{let e=A(),r="";for(let n in t)e.__svgCache[n]||(e.__svgCache[n]=!0,r+=t[n]);return r},W0=t=>{let e=t&&(t.default||t);if(!S(e))return gy&&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},{}):{}},H0=(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},hy=new Set,Gs=(t,e)=>{let r=e&&e.default?e.default:e;if(!S(r))return gy&&!hy.has(t)&&(hy.add(t),console.warn("convertSvgToSymbol:",t,"is not a string")),"";e=r;let n=e.match(/^<symbol\b[^>]*\bid="([^"]*)"/);if(n){let u=n[1];return u===t?e:e.replace(`id="${u}"`,`id="${t}"`)}let o=W0(e),{width:s,height:i}=o,a=o.viewBox||`0 0 ${s||24} ${i||24}`,f=H0(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${a}"`);return f=f.replace(/width="[^"]*"/,""),f=f.replace(/height="[^"]*"/,""),f=f.replace("</svg","</symbol"),f=G0(f),f},q0="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",K0=new RegExp(`<(${q0})\\b([^>]*?)\\s*/>`,"g"),G0=t=>t.replace(K0,"<$1$2></$1>");var Mn={};$(Mn,{STANDARD_SCHEME_QUERIES:()=>vc,appendSVGSprite:()=>li,appendSvgIconsSprite:()=>ui,applyDocument:()=>ci,applyHeadings:()=>Ec,applyReset:()=>di,applySpacingSequence:()=>oi,applyTimingSequence:()=>ai,applyTypographySequence:()=>ei,checkIfBoxSize:()=>ni,getColor:()=>et,getFontFamily:()=>ti,getFontSizeByKey:()=>ri,getMediaColor:()=>kt,getMediaTheme:()=>te,getShadow:()=>ii,getSpacingBasedOnRatio:()=>he,getSpacingByKey:()=>mt,getTheme:()=>Xs,getTimingByKey:()=>Ht,getTimingFunction:()=>ee,runThroughMedia:()=>Ac,setAdaptiveSchemeVar:()=>hr,setColor:()=>pr,setFont:()=>Qs,setFontFamily:()=>Ln,setGradient:()=>Dn,setMediaTheme:()=>Zs,setSVG:()=>Fn,setShadow:()=>gr,setSvgIcon:()=>fi,setTheme:()=>Js,splitSpacedValue:()=>si});O();var vc={light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"},et=(t,e,r)=>{let n=r||A();if(!S(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(lt(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(T(t))[o,s,i]=t;else{let u=Be(t);if(!u){let{color:d,gradient:h}=n,g=h[t]||d[t];return g?(e&&g[e]&&(g=g[e]),n.useVariable?`var(${g.var})`:g.value):t}if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;o=u.name,s=u.alpha,i=u.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;if(e)if(l[e]!==void 0)l=l[e];else if(T(l)){let u=e.charCodeAt(0)===64?e.slice(1):e;u==="dark"?l=l[1]!==void 0?l[1]:l[0]:(u!=="light"&&n.verbose&&console.warn(t," - array-form color tokens only support light/dark; falling back to the light slot for scheme",e),l=l[0])}else n.verbose&&console.warn(t," - does not have ",e);if(S(l))return et(l,null,r);let f=l.rgb;if(!f){let u=n.useVariable?`var(${l.var})`:l.value;if(s&&u){let d=Math.round(parseFloat(s)*100);return`color-mix(in srgb, ${u} ${d}%, transparent)`}return u}return i&&!l[i]&&(f=lr(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})`},kt=(t,e,r)=>{let n=r||A();if(e||(e=n.globalTheme==="auto"?null:n.globalTheme),!S(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(lt(t))return`var(${t})`;let o,s,i;if(T(t))o=t[0];else{let u=Be(t);if(u){if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;o=u.name,s=u.alpha,i=u.tone}else o=t}let{color:a,gradient:c}=n,l=a[o]||c[o],f=w(l);if(f&&l.value)return et(t,`@${e}`,r);if(f){if(n.useVariable&&l.var)return s||i?et(t,null,r):`var(${l.var})`;if(e)return et(t,`@${e}`,r);{let u={};for(let d in l){if(d.charCodeAt(0)!==64)continue;let h=d.slice(1),g=n.media&&n.media[h]||vc[h];if(!g)continue;let p="@media "+(g==="print"?`${g}`:`screen and ${g}`);u[p]=et(t,d,r)}return u}}else return n.verbose&&console.warn("Can't find color",t),t},hr=(t,e,r,n)=>{let s=`--${n.varPrefix?n.varPrefix+"-":""}${e}-${r}`,i,a={};for(let c in t){if(c.charCodeAt(0)!==64)continue;let l=c.slice(1),f=t[c],u=f&&(f.value||f);!u||typeof u!="string"||(a[l]=u,(l==="light"||i===void 0)&&(i=u))}if(i!==void 0){n.cssVars[s]=i,n.cssMediaVars||(n.cssMediaVars={});for(let c in a){let l=`[data-theme="${c}"]`;if(n.cssMediaVars[l]||(n.cssMediaVars[l]={}),n.cssMediaVars[l][s]=a[c],c==="light"||c==="dark"){let f=`@media (prefers-color-scheme: ${c})`;n.cssMediaVars[f]||(n.cssMediaVars[f]={}),n.cssMediaVars[f][s]=a[c]}}return t.var=s,s}},pr=(t,e,r)=>{let n=A();if(w(t)&&t.value!==void 0&&(t.rgb!==void 0||t.var!==void 0))return t;if(S(t)&<(t)){let p=t.slice(2);if(t=et(p),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let m=p.split(" "),b=n.color[m[0]];if(b&&!b.value&&!b.rgb&&(S(b)||T(b)||w(b))&&(n.color[m[0]]=pr(b,m[0]),b=n.color[m[0]]),b&&b.value){let x=b.rgb,y=m[1]!==void 0?m[1]:"1",_=m[2];_&&(x=lr(x,_)),t=`rgba(${x}, ${y})`}else{let x=m[2],y=m[1]!==void 0?m[1]:"1";if(x)try{let _=Te(m[0]);_&&_.length>=3?t=`rgba(${lr(_.slice(0,3).join(", "),x)}, ${y})`:t=m[0]}catch{t=m[0]}else t=m[0]}}}if(T(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),w(t)){let p={};for(let m in t)m!=="var"&&(p[m]=pr(t[m],e,m.slice(0,1)==="@"?m.slice(1):m));return n.useVariable&&hr(p,"color",e,n),p}let s=`--${n.varPrefix?n.varPrefix+"-":""}color-${e}`+(r?`-${r}`:""),i=t.value||t;if(S(i)&&!i.includes("(")&&!i.startsWith("#")){let p=Be(i);if(p&&p.name&&!p.passthrough&&!p.cssVar){let m=n.color[p.name];m&&!m.value&&!m.rgb&&(S(m)||T(m)||w(m))&&(n.color[p.name]=pr(m,p.name));let b=n.color[p.name];if(b&&b.rgb){let x=b.rgb;p.tone&&(x=lr(x,p.tone));let y=p.alpha?parseFloat(p.alpha):1;i=`rgba(${x}, ${y})`}}}let a=Te(i),[c,l,f,u=1]=a,d=parseFloat(u.toFixed(2)),h=`${c}, ${l}, ${f}`,g=`rgba(${h}, ${d})`;return n.useVariable&&(n.cssVars[s]=g),{var:s,rgb:h,alpha:d,value:g}},Dn=(t,e,r)=>{let n=A();if(w(t)&&t.value!==void 0&&t.var!==void 0)return t;if(S(t)&<(t)&&(t=et(t.slice(2))),T(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),w(t)){let i={};for(let a in t)a!=="var"&&(i[a]=Dn(t[a],e,a.slice(0,1)==="@"?a.slice(1):a));return n.useVariable&&hr(i,"gradient",e,n),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 Y0=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"]),my=["color","Color","background","Background","fill","Fill","stroke","Stroke"],X0=t=>{for(let e=0;e<my.length;e++)if(t.includes(my[e]))return!0;return!1},Cc=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?et(t[a]):t[a]}),e},Ys=t=>(t.value||(t.value=Cc(t)),t.value),Xs=(t,e)=>{let r=A();if(r.useVariable)return te(t,e);let n=r.theme;if(S(t)){let[o,s]=t.split(" "),i=n[o];if(i){if(!s&&!e)return Ys(i);t=[o,s||e]}}if(j(t)&&t[1]){let o=t[0],s=t[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return Ys(a[s]);if(i&&i[s])return Ys(i[s]);if(c&&c[s])return Ys(c[s])}else if(w(t))return Cc(t)},J0=(t,e,r)=>{if(w(e))t.variants.inverse.value=Cc(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},Z0=(t,e,r,n)=>{let o=Xs(r);n[`&:${e}`]=o,w(r)&&!r.value&&(r.value=o)},Q0=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return Z0(t,o,s,e),t}),t):void 0},tk=(t,e,r,n)=>{let o=Xs(r);n[`@media (prefers-color-scheme: ${e})`]=o,w(r)&&!r.value&&(r.value=o)},ek=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&tk(t,o,s,e),o==="inverse"&&J0(t,s,e),t}),t):void 0},rk=(t,e)=>{let r=A(),{helpers:n}=t;return n?(Object.keys(n).map(s=>{let i=n[s];return S(i)?n[s]=r.theme[i]:Ys(n[s]),t}),t):void 0},Js=(t,e)=>{let r=A();if(r.useVariable)return Zs(t,e);let{state:n,media:o,helpers:s}=t,i=Cc(t,e),c=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}`;return Q0(t,i),ek(t,i),rk(t,i),{var:c,value:i,state:n,media:o,helpers:s}};var cp=(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===":")&&X0(l))for(let u in t){if(c.has(u))continue;let d=t[u]?.[l];if(d===void 0)continue;let h=et(d,`@${u}`);h!==void 0&&S(h)&&/^[a-z][a-zA-Z]+$/.test(h)&&!Y0.has(h)&&c.add(u)}}for(let l of a){let f=l.slice(0,1),u=Object.values(t).some(d=>j(d?.[l]));if(f==="."&&u){let d=l.slice(1),h={};for(let g in t)j(t[g]?.[l])&&(h[g]=t[g][l]);i[l]=cp(h,`${e}-${d}`,r)}else if(f===":"&&u){let d=l.replace(/^:+/,""),h={};for(let g in t)j(t[g]?.[l])&&(h[g]=t[g][l]);i[l]=cp(h,`${e}-${d}`,r)}else if(f!=="@"&&f!=="."&&f!==":"){let h=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}-${l}`,g=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,p;for(let m in t){if(c.has(m))continue;let b=t[m]?.[l];if(b===void 0)continue;let x=et(b,`@${m}`);if(x===void 0)continue;(g&&m===g||!g&&(m==="light"||p===void 0))&&(p=x);let y=`[data-theme="${m}"]`;if(o[y]||(o[y]={}),o[y][h]=x,m==="dark"||m==="light"){let _=`@media (prefers-color-scheme: ${m})`;o[_]||(o[_]={}),o[_][h]=x}}p!==void 0&&(n[h]=p),i[l]=`var(${h})`,i[`.${l}`]={[l]:i[l]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},Zs=(t,e,r,n)=>{let o=A(),{cssVars:s}=o,i={value:t},a=!r&&!n;if(j(t)){if(a&&o.useVariable){let c={};for(let l in t)l.startsWith("@")&&j(t[l])&&(c[l.slice(1)]=t[l]);if(Object.keys(c).length){let l=cp(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 u=l==="@"&&c;i[c]=Zs(f,e,c,n||u)}else if(!a){let u=et(f,n),d=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],h=d.length?"-"+d.join("-"):"",p=`--${o.varPrefix?o.varPrefix+"-":""}theme-${e}${h}-${c}`;o.useVariable?(o.useThemeSuffixedVars&&(s[p]=u),i[c]=`var(${p})`):i[c]=u,i[`.${c}`]={[c]:i[c]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(S(t)&<(t)){let l=o.theme[t.slice(2)];return te(l,n)}return i},lp=t=>{let e=A(),r={};for(let n in t){let o=n.slice(0,1);if(j(t[n])){if(o==="@")continue;o===":"?r[`&${n}`]=lp(t[n]):o==="."&&(r[`&${n}`]=lp(t[n]))}else r[n]=t[n]}return r},by=(t,e)=>{let r=e.shift();return t[r]?by(t[r],e):t},yy=(t,e)=>T(e)?by(t,e):S(e)&&t[e]?t[e]:t;var te=(t,e)=>{let r=A();if(S(t)&<(t)&&(t=te(t.slice(2))),!t||!S(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[n,...o]=T(t)?t:t.split(" "),s=r.theme[n];return s&&o.length?s=yy(s,o):s&&e&&(s=yy(s,e)),lp(s)};O();O();var Qs=(t,e)=>{let r=A(),n=`--font-${e}`;if(!t||T(t)&&!t[0])return;let o;if(t.isVariable){let s=Qt(t.url,r.files)||t.url;Tn(s)?o=On(s):o=fr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])o=Hr(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=fr(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})}return{var:n,value:t,fontFace:o}},ti=(t,e)=>{let r=A(),{fontFamily:n}=r;return Wr(e||n,t)},Ln=(t,e)=>{let r=A(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=t;t.isDefault&&(!t.isSystemFallback||!n.default)&&(n.default=e),w(s)&&(s=zr(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};O();var Ac=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:u,range:d,subSequence:h,h1Matches:g,unit:p}=t;ct(i,{type:l,base:f,ratio:u,range:d,subSequence:h,h1Matches:g,unit:p});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),b=i.unit||p,x=!i.unit&&m.has(p)?"rem":b,y=n[c],_="@media "+(y==="print"?`${y}`:`screen and ${y}`);if(r.templates[_]={fontSize:i.base/r.browserDefault+x},!a){ct(i,{sequence:{},scales:{},vars:{}}),Bt(i),ur(t,o);continue}ct(i,{sequence:{},scales:{},templates:{},vars:{}}),Bt(i),ur(t,o)}},Ec=t=>{let e=A();if(t.h1Matches){let r=t.unit,n=qs(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}}}},ei=()=>{let t=A(),{typography:e}=t;Bt(e),Ec(e),We(e),Ac(e)},ri=t=>{let e=A(),{typography:r}=e;return Pe(t,"fontSize",r)};O();O();var nk=t=>{let r=A().spacing||{},n=parseFloat(t.spacingRatio),o={...r,ratio:Number.isFinite(n)?n:r.ratio,sequence:{},scales:{}};return Bt(o),o},ok=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;ct(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),Bt(r),ur(t,e)}},ni=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),n=e.includes("border")||e.includes("outline");return r&&!n},oi=()=>{let t=A(),{spacing:e}=t;Bt(e),We(e),ok(e)},sk=t=>{let e=A(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:Bt(t)},mt=(t,e="padding",r,n)=>{let o=sk(r);if(S(t)){if(!n&&/^(?:env|var)\(/.test(t.trim()))return{[e]:t};if(!n&&t.includes("(")){let i=ze(t);n=i[0],t=i[1]}}let s=n?[t]:zr(t);if(T(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)=>Pe(s[f],e+l+i,o,n);return a[s.length].map((l,f)=>c(l,f))}return Pe(t,e,o,n)}},he=(t,e,r,n)=>{let o=A(),{spacing:s}=o,i=r||t[e];if(!n&&S(i)&&/^(?:env|var)\(/.test(i.trim()))return{[e]:i};if(!n&&S(i)&&i.includes("(")){let a=ze(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=nk(t);return mt(i,e,a,n)}return mt(i,e,s,n)},si=t=>{let e=r=>{let n=["+","-","*","/"].includes(r),o=cn.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 gr=(t,e,r,n)=>{let o=A();if(T(t)){let a={"@light":gr(t[0],e,"light"),"@dark":gr(t[1],e,"dark")};return o.useVariable&&hr(a,"shadow",e,o),a}if(w(t)){let a={};for(let c in t)a[c]=gr(t[c],e,c.startsWith("@")?c.slice(1):c);return o.useVariable&&hr(a,"shadow",e,o),a}S(t)&&!de.test(t)&&(t=Ve(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=et(c);if(Oe(l))return l;if(/^\d/.test(c)||c==="0"||c.includes("px")||c.slice(-2)==="em"||c==="inset"||c==="none")return c;let f=mt(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}},ii=(t,e)=>{let r=A();if(e||(e=r.globalTheme==="auto"?null:r.globalTheme),!S(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(lt(t))return`var(${t})`;let[n]=T(t)?t:t.split(" "),s=r.shadow[n],i=w(s);if(!s)return r.verbose&&console.warn("Can't find color ",n),t;if(e){let a=s["@"+e]||s[e];if(a)return a.value!==void 0?a.value:a;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){if(c.charCodeAt(0)!==64)continue;let l=r.media[c.slice(1)];if(!l)continue;let f="@media "+(l==="print"?`${l}`:`screen and ${l}`),u=s[c],d=u&&(u.value!==void 0?u.value:u);d!==void 0&&(a[f]=d)}return a}return r.verbose&&console.warn("Can't find color",t),t};O();var ai=()=>{let t=A(),{timing:e}=t;Bt(e),We(e)},ee=t=>{let e=A(),{timing:r}=e;return r[t]||r[$s(t)]||t},Ht=(t,e="timing")=>{let r=A(),{timing:n}=r;return Pe(t,e,n)};O();var ci=()=>{let t=A(),{fontFamily:e,theme:r,typography:n}=t,o=t.document;return Fe(o)?(Qe(t,"document",o),o=t.document={}):o||(o=t.document={}),ct(o,{theme:r.document,fontFamily:Wr(e),fontSize:n.base,lineHeight:n.lineHeight})};O();var up={document:K},Fn=(t,e)=>{let r=A();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?Gs(e,t):t},li=(t,e=up)=>{let r=A(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=t[o];_y(n,e)},fi=(t,e)=>{let r=A();return r.useIconSprite&&!r.semanticIcons?.[e]?Fn(t,e):t},ui=(t,e=up)=>{let r=A(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=t[o];_y(n,e)},fp=(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},ik=(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},xy=(t,e,r)=>{for(;e.firstChild;){let n=e.firstChild;r.appendChild(t.importNode(n,!0)),n.remove()}},_y=(t,e=up)=>{let r=A(),n=e.document||K;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),In(t);let o=n.querySelector("#svgSprite"),s=In(t),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=ik(n,s);if(o)if(a)xy(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let c=fp(n,{isRoot:!1});c.innerHTML=s,o.append(...c.children)}else if(a){let c=fp(n);c&&c.nodeType&&(xy(n,a,c),n.body.prepend(c))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let c=fp(n);c&&c.nodeType&&(c.innerHTML=s,n.body.prepend(c))}};O();var di=(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&&Ft(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 u=f.unit,d=f.base||n.base,h=f.browserDefault||n.browserDefault,g=l.slice(1),p=c[g];if(!p)continue;let m="@media "+(p==="print"?p:"screen and "+p);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=d/h+u}}return Y(ct(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.unit?"1"+e.unit.default: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 ak=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),ck=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),lk=t=>ak.has(t),$e=t=>{let e=t+"";if(de.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(lt(o))return`var(${o})`;if(lk(o)||/^\d/.test(o)||o==="0")return o;let s=et(o);if(Oe(s))return s;let i=mt(o,"border");return i&&i.border?i.border:o}).join(" ")},Tc=t=>de.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(lt(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=et(e);return Oe(r)?r:e}).join(" "),Oc=(t,e)=>ii(t,e),pi=(t,e)=>de.test(t)?t:Ve(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(lt(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=et(n);if(Oe(o)){let i=kt(n,e);return w(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=mt(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),hi=(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=Ve(o).map(c=>(c=c.trim(),c.split(/\s+/).map(f=>{if(!f||/^\d/.test(f)||f==="0"||ck.has(f)||f==="transparent"||de.test(f))return f;let u=et(f);return Oe(u)?u:f}).join(" ")));return n+a.join(", ")+s},Rc=(t,e)=>{let r=A();return Ve(t).map(n=>{let o=n.trim();if(lt(o))return`var(${o})`;if(/^var\(/.test(o)||o.includes("url"))return o;if(r.gradient?.[o]){let s=kt(o,e);if(S(s))return s;if(w(s)){for(let i in s)if(S(s[i]))return s[i]}return o}return o.includes("gradient")?hi(o,e):o.includes("/")||o.startsWith("http")||o.includes(".")&&!Be(o)?`url(${o})`:o}).join(", ")},Pc=t=>S(t)&&t.split(" ").map(e=>mt(e,"gap").gap).join(" "),dp=t=>{let e=t.split(" ");return e.length?e.map(r=>lt(r)?`var(${r})`:r.length<3||r.includes("ms")?Ht(r).timing||r:ee(r)?ee(r):r).join(" "):t},gi=(t,e,r)=>{if(S(t))return t.split(",").map(n=>Ht(n).timing||n).join(",")},$c=t=>{let e=t.split(",");if(e.length)return e.map(dp).join(",")};function ft(t,e,r={},n={}){let o=ot.call(this,e||r[t]);if(o==null)return;let s;if(S(o)){if(/^(?:env|var)\(/.test(o.trim()))return{[t]:o};if(o.includes("(")){let c=ze(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=ni(t);!i&&a&&!n.ratio&&(o=si(o))}return n.ratio?he(r,t,o,s):mt(o,t,void 0,s)}var F=(t,e=null,r)=>ft(t,e,r,{ratio:!0}),mi=(t,e,r)=>{if(S(t))return{borderRadius:t.split(" ").map((n,o)=>he(e,r,n)[r]).join(" ")}};O();var fk=(t,e)=>{let r=A(),{cssVars:n}=r,o=e.startsWith("--")?e:`--${e}`;return n[o]=t,t},qt=t=>t,Ic={color:pr,gradient:Dn,font:Qs,fontFamily:Ln,fontfamily:Ln,theme:Js,icons:fi,semanticIcons:qt,semanticicons:qt,svg:Fn,svgData:qt,typography:qt,shadow:gr,spacing:qt,media:qt,grid:qt,class:qt,timing:qt,reset:qt,unit:qt,animation:qt,vars:fk,sizes:qt},uk=(t,e,r,n)=>{Qe(t,r,e);let o={};for(let s of n)t[s]===e&&(t[s]=o);return t.verbose&&console.warn("[scratch] design-system family",r,"resolved to a host object; parked it and allocated a plain bucket"),o},pp=(t,e,r)=>{let n=A(),o=Bs(t),s=o.toLowerCase(),i=n[o]||n[s]||n[t],a=Fe(i)?uk(n,i,s,[o,s,t]):i,c=Ic[o]||Ic[s];if(c)try{let l=c(e,r);return a&&(a[r]=l),a}catch(l){n.verbose&&console.warn("Error setting",s,"value",e,r,l)}if(!c){let l=a||(n[s]={});return l[r]=e,l}n.verbose&&console.warn("Can not find",s,"method in scratch")},hp=(t,e)=>{let r=A(),n=t.toLowerCase();return Fe(e)?(Qe(r,n,e),r.verbose&&console.warn("[scratch] ignoring host object passed as the",n,"design-system family"),r[n]||r[t]):(Object.keys(e).sort((s,i)=>{let a=w(e[s])||T(e[s])?1:0,c=w(e[i])||T(e[i])?1:0;return a-c}).forEach(s=>{try{return pp(n,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",e[s],s,i)}}),r[n]||r[t])},Dc=(t,e)=>{let r=e||A();r.globalTheme=t;let o=an(r)||(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=u=>{a.setAttribute("data-theme",u.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 u=0;u<f.length;u++)if(f[u].selectorText===a){for(let d in r.cssVars)f[u].style.setProperty(d,r.cssVars[d]);return r}}catch{}}return r},dk={},qr=(t,e=dk)=>{let r=e.config||A(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:u,useDocumentTheme:d,useDefaultConfig:h,semanticIcons:g,hoverMedia:p,files:m,assets:b,...x}=t;e.newConfig&&(r=xc(e.newConfig)),Le(x.document)&&(r.__domDocument=x.document,delete x.document),Le(r.document)&&(r.__domDocument||(r.__domDocument=r.document),r.document={}),m!==void 0&&(r.files=m),b!==void 0&&(r.assets=b),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),d!==void 0&&(r.useDocumentTheme=d),f!==void 0&&(r.globalTheme=f),u!==void 0&&(r.themeRoot=u),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),h!==void 0&&(r.useDefaultConfig=h),g!==void 0&&(r.semanticIcons=g),p!==void 0&&(r.hoverMedia=p),r.verbose&&console.log(r);let _=an(r)||(typeof document<"u"?document:null),v=_&&_.defaultView||(typeof window<"u"?window:null),E=_&&(r.themeRoot||_.documentElement);if(E&&typeof E.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")E.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?E.style.colorScheme=r.globalTheme:E.style.colorScheme="light dark";else if(v&&v.matchMedia){let G=V=>{E.setAttribute("data-theme",V.matches?"dark":"light")},bt=v.matchMedia("(prefers-color-scheme: dark)");if(G(bt),E.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=G;try{bt.addEventListener("change",G)}catch{bt.addListener(G)}}}else E.setAttribute("data-theme","light"),E.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let I=Object.keys(x).filter(P=>!P.startsWith("__")),z=new Set(I);if(I.forEach(P=>{let G=P.toLowerCase();G!==P&&z.has(G)&&Y(x[G],x[P])}),I.map(P=>{let G=P.toLowerCase();if(!(G!==P&&z.has(G)))return hp(P,x[P])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),x.typography)try{ei()}catch(P){r.verbose&&console.warn("Error applying typography sequence",P)}if(x.spacing)try{oi()}catch(P){r.verbose&&console.warn("Error applying spacing sequence",P)}if(x.timing)try{ai()}catch(P){r.verbose&&console.warn("Error applying timing sequence",P)}ci();let R=di();return R&&(r.reset=R),r};var Kr=new Map,Cy=null,yp=null,pk=null;function yi(t){t.batchAtomicCss&&(yp=t.batchAtomicCss),t.compoundCssClass&&(pk=t.compoundCssClass)}var hk=new Set,Sy=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0);function bp(t){try{let e=A();e&&(e.__domDocument=t)}catch{}t&&hk.add(t)}function Fc(){try{let t=A();if(t){if(Sy(t.__domDocument))return t.__domDocument;if(Sy(t.document))return t.document}}catch{}return typeof document<"u"?document:null}var gk={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 Gr(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function Lc(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 mk(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Lc(e)}var yk={"backdrop-filter":"-webkit-backdrop-filter","user-select":"-webkit-user-select"};function Nn(t,e){let r=yk[t];return r?`${t}:${e};${r}:${e};`:`${t}:${e};`}var bk="@media (hover: hover)",xk=/(?:^|[^\\]):hover(?![\w-])/;function xp(){try{let t=A();if(t&&t.hoverMedia===!1)return!1}catch{}return!0}function ge(t,e,r){return r===!1||!xk.test(e)||r===void 0&&!xp()?t:`${bk}{${t}}`}function wy(t,e,r){let n=(r?r+"":"")+t+":"+e,o=Kr.get(n),s=o?null:Gr(t);if(!o){let c=gk[t]||Lc(t),l=mk(e);o=r?`_${r}_${c}-${l}`:`_${c}-${l}`,Kr.set(n,o)}if(typeof e=="string"&&(e.indexOf("}")!==-1||e.indexOf("{")!==-1))return o;let i=s||Gr(t),a=`.${o}{${Nn(i,e)}}`;return re(a),o}var ky=new WeakMap;function re(t,e){let r=Ay(e);if(!r)return;let n=ky.get(r);if(n||(n=new Set,ky.set(r,n)),!n.has(t)){n.add(t);try{r.insertRule(t,r.cssRules.length)}catch{}}}var vy=new WeakMap;function Ay(t){let e=t||Fc();if(!e||!e.head)return null;let r=vy.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 vy.set(e,o),Cy=o,o}var _k=8;function ne(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]):yp?(n||(n=[]),n.push(c,String(l)),o++):s.push(wy(c,String(l),r)))}if(n&&o>=_k){let c=n.join("\0"),l=yp(c),f=l.indexOf("\0"),u=l.substring(0,f),d=l.substring(f+1);if(d){let h=d.split(`
|
|
40
|
+
`);for(let g=0;g<h.length;g++)h[g]&&re(h[g])}s.push(u)}else if(n)for(let c=0;c<n.length;c+=2)s.push(wy(n[c],n[c+1],r));let a=[];for(let c=0;c<i.length;c++)a.push(Sk(i[c][0],i[c][1],r));return s.concat(a).join(" ").trim()}var mp=new Map;function Sk(t,e,r){let n=JSON.stringify(e),o=t.indexOf(":hover")!==-1||n.indexOf(":hover")!==-1,s=o&&xp(),i=(r?r+"":"")+t+n+(o&&!s?"rawhover":""),a=Kr.get(i);if(a){let p=mp.get(a);if(p)for(let m=0;m<p.length;m++)re(p[m]);return a}a=r?`_${r}_c${Lc(i)}`:`_c${Lc(i)}`;let c="",l=[],f=p=>typeof p=="string"&&(p.indexOf("{")!==-1||p.indexOf("}")!==-1),u=(p,m)=>{let b="";for(let x in m){let y=m[x];if(y!=null)if(typeof y=="object")u([...p,x],y);else{if(f(y))continue;b+=Nn(Gr(x),y)}}b&&(p.length===0?c+=b:l.push({chain:p,body:b}))};u([],e);let d=p=>{if(!p.length)return`.${a}`;let m=p[0].split(",").map(b=>b.trim()).map(b=>b.includes("&")?b.replace(/&/g,`.${a}`):b.startsWith(":")?`.${a}${b}`:`.${a} ${b}`);for(let b=1;b<p.length;b++){let x=p[b].split(",").map(_=>_.trim()),y=[];for(let _ of m)for(let v of x)v.includes("&")?y.push(v.replace(/&/g,_)):v.startsWith(":")?y.push(_+v):y.push(_+" "+v);m=y}return m.join(", ")},h=[];if(t.startsWith("@media")||t.startsWith("@supports")){if(c){let p=`${t}{.${a}{${c}}}`;h.push(p),re(p)}for(let p of l){let m=d(p.chain),b=ge(`${t}{${m}{${p.body}}}`,m,s);h.push(b),re(b)}return mp.set(a,h),Kr.set(i,a),a}let g=d([t]);if(c){let p=ge(`${g}{${c}}`,g,s);h.push(p),re(p)}for(let p of l){let m=d([t,...p.chain]),b=ge(`${m}{${p.body}}`,m,s);h.push(b),re(b)}return mp.set(a,h),Kr.set(i,a),a}function ht(t){if(Ay(),typeof t=="string"){re(t);return}let e=xp(),r=Object.keys(t),n=o=>{let s=o.match(/max-width:\s*(\d+)/);return s?parseInt(s[1]):0};r.sort((o,s)=>{let i=o.startsWith("@media"),a=s.startsWith("@media");return!i&&!a?0:i?a?n(s)-n(o):1:-1});for(let o of r){let s=t[o];if(o.startsWith("@media")||o.startsWith("@supports"))for(let i in s){let a=s[i];if(typeof a=="object"&&a!==null){let c="";for(let l in a){let f=l.startsWith("--")?l:Gr(l);c+=Nn(f,a[l])}re(ge(`${o}{${i}{${c}}}`,i,e))}else{let c=i.startsWith("--")?i:Gr(i);re(`${o}{${Nn(c,a)}}`)}}else{let i="",a=!1;for(let c in s){let l=s[c];if(typeof l=="object"&&l!==null)a=!0;else{let f=c.startsWith("--")?c:Gr(c);i+=Nn(f,l)}}if(i&&re(ge(`${o}{${i}}`,o,e)),a){let c=[],l=[];for(let f in s)typeof s[f]=="object"&&s[f]!==null&&(f.startsWith("@media")||f.startsWith("@supports")?c.push(f):l.push(f));c.sort((f,u)=>{let d=h=>{let g=h.match(/max-width:\s*(\d+)/);return g?parseInt(g[1]):0};return d(u)-d(f)});for(let f of l)ht({[`${o} ${f}`]:s[f]});for(let f of c)ht({[f]:{[o]:s[f]}})}}}}function jn(t,e){let r="";for(let n in e){let o="";for(let s in e[n])o+=Nn(Gr(s),e[n][s]);r+=`${n}{${o}}`}return re(`@keyframes ${t}{${r}}`),t}function Ey(){Kr.clear(),Cy=null}function _p(){return Kr.size}O();var sh={};$(sh,{DELEGATED_EVENTS:()=>Wn,LIFECYCLE_EVENTS:()=>br,MIXINS:()=>Mc,NON_BUBBLING_EVENTS:()=>Nc,REGISTRY:()=>Rt,SVG_TAGS:()=>Un,addDelegatedEvent:()=>bi,addMethods:()=>Yn,applyExtends:()=>qn,cacheNode:()=>yr,create:()=>oe,createHTMLNode:()=>Vn,detectTag:()=>mr,dispose:()=>wr,flushMounts:()=>Kc,isSvgTag:()=>zn,isValidTag:()=>Bn,refreshContextProto:()=>zc,registerEvent:()=>Hn,remove:()=>Gn,removeDelegatedEvent:()=>xi,update:()=>Kn});var wp="http://www.w3.org/2000/svg",Un=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"]),wk=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 Bn(t){return wk.has(t)||Un.has(t)}function zn(t){return Un.has(t)}function mr(t){let{tag:e,key:r}=t;if(typeof e=="function")try{e=e(t,t.state,t.context)}catch(s){e=void 0,typeof console<"u"&&console.error&&console.error(`[smbls] \`tag:\` factory threw on "${r||"<anon>"}" \u2014 falling back to key-based tag detection:`,s?.message||s)}if(e===!0&&(e=r),typeof e=="string"&&Bn(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","th","tr","td","thead","tbody","tfoot","caption","col","colgroup"]),o=r.toLowerCase();return o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),Bn(o)&&!n.has(o)?o:"div"}var Ty={};function Vn(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(zn(t)){let n=e?.parent;if(t==="svg"||n?.node?.namespaceURI===wp)return r.createElementNS(wp,t);if(t!=="svg")return r.createElement("div")}return r.createElement(t)}function yr(t){let e=t.tag=mr(t),n=zn(e)&&(e==="svg"||t.parent?.node?.namespaceURI===wp)?"svg:"+e:e,o=t?.context?.document||globalThis.document,s=Ty[n];if(s||(s=Ty[n]=Vn(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?Vn(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}var Rt=new Set(["extends","children","content","childrenAs","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","subscribeTo","autoGrow","__name","__ref","__hash","__text","parent","node"]),Mc={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},br=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","mounted","contentUpdate","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","beforeRemove","remove"]),Nc=new Set(["load","error","abort","scroll","canplay","canplaythrough","ended","pause","play","playing","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","durationchange","loadeddata","loadedmetadata","progress","emptied","resize"]),Oy=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),Wn=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","wheel","contextmenu","drag","dragstart","dragend","dragenter","dragleave","dragover","drop"]);var kp=new WeakMap,kk={passive:!0},vk={passive:!0,capture:!0},vp=(t,e)=>Oy.has(t)?e?vk:kk:e||!1;function Py(t){let e=kp.get(t);return e||(e={handlers:new Map,installed:new Set},kp.set(t,e)),e}function Ck(t,e){let r=Py(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}},vp(t,n))}function bi(t,e,r,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let o=Py(n);Ck(t,n),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,r)}function xi(t,e,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let n=kp.get(r);if(!n)return;let o=n.handlers.get(t);o&&o.delete(e)}function Ry(t){return Wn.has(t)&&!br.has(t)}function Hn(t,e,r){let{node:n,context:o}=e;if(!n)return;let s=o?.designSystem,i=c=>{s&&tt(s);try{let l=r.call(e,c,e,e.state,o);if(l&&typeof l.then=="function"){l.catch(f=>{e.error=f,console.error("[DOMQL] Async event error:",f)}).finally(()=>{s&&Z()});return}}catch(l){if(e.error=l,console.error("[DOMQL] Event error:",l),o?.strictMode)throw l}s&&Z()},a=Nc.has(t);if(!a&&Ry(t)){let c=o?.rootNode||n.ownerDocument?.documentElement;bi(t,n,i,c)}else n.addEventListener(t,i,vp(t,!1));e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(!a&&Ry(t)){let c=o?.rootNode||n.ownerDocument?.documentElement;xi(t,n,c)}else n.removeEventListener(t,i,vp(t,!1))})}function $y(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 qn(t,e,r){let n=$y(e);if(!n.length)return;let s=(t.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=Iy(n[i],s);a&&a!==e&&Dy(t,a,r,new Set([e]))}}function Iy(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 Dy(t,e,r,n=new Set){if(n.has(e))return;n.add(e);let o=$y(e);if(o.length){let i=(t.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let c=Iy(o[a],i);c&&Dy(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]=Ly(t[s],i):t[s]=i}}function Ly(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]=Ly(o,s):r[n]=s}return r}mn();O();var Ak=["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"],jc={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"]},My=["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"],_r=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()):Ny(t),Ek=new Set(["tabIndex","readOnly","maxLength","minLength","autoComplete","autoFocus","autoPlay","contentEditable","spellCheck","colSpan","rowSpan","srcSet","crossOrigin","accessKey","inputMode","enterKeyHint","formAction","noValidate"]),Ny=t=>Ek.has(t)?t.toLowerCase():null,Tk=new Set(["draggable","contenteditable","spellcheck","autocorrect"]),Bc=t=>typeof t=="string"&&(Tk.has(t)||t.startsWith("aria-")),_i=(t,e)=>e!==!0&&e!==!1?e:Bc(t)?e?"true":"false":e===!0?"":e,Sr=(t,e)=>e.startsWith("aria-")||e.startsWith("data-")||_r(e)||jc.default.includes(e)?!0:Object.prototype.hasOwnProperty.call(jc,t)?jc[t].includes(e):!1,Ep=t=>{if(!S(t))return!1;let e=t.toLowerCase();return My.includes(e)},Ok=(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])wt(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(wt(e[o][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());n["data-"+c]=e[o][a]}continue}let s=Sr(t,o),i=Ep(o);if(wt(e[o])&&(s||i)){let a=_r(o)||o;n[a]=e[o]}}return n},Rk=(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},xr=(t,e)=>{let r=t.call("exec",e,t);if(r)return S(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},Cp=(t,e)=>{let r=(t.preSrc||"")+(xr(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},Ap={src:t=>Cp(t,t.src),href:t=>xr(t,t.href),action:t=>xr(t,t.action),poster:t=>Cp(t,t.poster),data:t=>xr(t,t.data)},Tp=t=>{let e=t.tag||"div",r={};for(let n in Ap)if(t[n]!==void 0&&Sr(e,n)){let o=Ap[n](t);o!==void 0&&(r[n]=o)}return r},Fy=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},Pk=(t,e,r)=>{if(t==="$"){let o=Fy(e,r);return o===void 0&&(o=!!r[e]),o}let n=r[e]===!0||r.state[e];if(!n){let o=Fy(e,r);o!==void 0&&(n=o)}return t==="."?!!n:!n},$k=new Set(["$",".","!"]),Ik=(t,e,r)=>{let n={},o=(s,i,a,c)=>{let l=i;n[s]=f=>{if(Pk(a,c,f))return C(l)?l(f):l}};for(let s in t){let i=s.charAt(0);if(!$k.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 h in a[l])o("aria-"+h,a[l][h],i,c);continue}if(l==="data"&&a[l]&&typeof a[l]=="object"){for(let h in a[l]){let g=h.replace(/([A-Z])/g,p=>"-"+p.toLowerCase());o("data-"+g,a[l][h],i,c)}continue}let f=Sr(e,l),u=Ep(l);if(!f&&!u)continue;let d=_r(l)||l;o(d,a[l],i,c)}}return n};function Kn(t={},e={}){let r=this,n=r.__ref;if(!n)return;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;let o=!t||Object.keys(t).length===0;if(De(()=>{if(t.state&&at(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 s in t.style){let i=t.style[s];if(i==null)continue;let a=s.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),c=String(i).replace(/\s*!important\s*$/,"");r.node.style.setProperty(a,c,"important")}r.style||(r.style={}),Object.assign(r.style,t.style)}if(t.attr&&r.node?.setAttribute){for(let s in t.attr){let i=t.attr[s];i==null||i===!1?r.node.removeAttribute(s):typeof i!="function"&&typeof i!="object"&&r.node.setAttribute(s,_i(s,i))}r.attr||(r.attr={}),Object.assign(r.attr,t.attr)}if(t.data&&r.node?.dataset){for(let s in t.data)r.node.dataset[s]=t.data[s];r.data||(r.data={}),Object.assign(r.data,t.data)}for(let s in t){if(Rt.has(s)||s==="state")continue;let i=t[s],a=r[s];if(a&&a.__ref&&typeof a.update=="function")a.update(i,e);else if(typeof i=="object"&&i!==null){let c=s.charCodeAt(0);c>=65&&c<=90&&oe(i,r,s,e)}else s!=="text"&&s!=="html"&&s!=="style"&&s!=="attr"&&s!=="data"&&(r[s]=i)}}),r.node&&o&&n.__effects&&n.__effects.length)for(let s=0;s<n.__effects.length;s++){let i=n.__effects[s];i&&!i._disposed&&!i._isSubscribeToEffect&&typeof i._execute=="function"&&i._execute()}else if(r.node&&n.__conditionalRunners)for(let s of n.__conditionalRunners)s();return Et("update",r),!e.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,e),r}function wr(t){if(!t)return;let e=t.__ref;if(!e)return;try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(n){console.error("[smbls] onBeforeRemove error:",n)}if(e.__effects){for(let n=0;n<e.__effects.length;n++)e.__effects[n].dispose();e.__effects.length=0}if(e.__eventCleanup){for(let n=0;n<e.__eventCleanup.length;n++)e.__eventCleanup[n]();e.__eventCleanup.length=0}if(e.__children){for(let n=0;n<e.__children.length;n++){let o=e.__children[n],s=t[o];s&&s.__ref&&wr(s)}e.__children.length=0}t.node?.parentNode?t.node.remove():t.tag==="fragment"&&e.__fragmentAnchor?.parentNode&&e.__fragmentAnchor.remove();let r=t.state?.$destroy||t.state?.destroy;if(typeof r=="function"&&t.state.__element===t&&r.call(t.state),t.parent?.__ref?.__children){let n=t.parent.__ref.__children.indexOf(t.key);n!==-1&&t.parent.__ref.__children.splice(n,1),delete t.parent[t.key]}try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(n){console.error("[smbls] onRemove error:",n)}t.node=null,t.parent=null,t.__ref=null}function Gn(){wr(this)}O();O();O();var Dk=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],Lk=["none","forwards","backwards","both"],Fk=["normal","reverse","alternate","alternate-reverse"],Mk=["running","paused"],Nk=t=>/^[\d.]+m?s$/.test(t),jk=0,jy=new Map,Op=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{};if(w(t)){let o=JSON.stringify(t),s=jy.get(o);if(s)return s;let i=`smbls-anim-${jk++}`,a=jn(i,t);return jy.set(o,a),a}let n=r&&r[t];return w(n)?jn(t,n):t},Bk=(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 u of n)r&&r[u]?o=u:Nk(u)?s.push(u):Dk.includes(u)||u.startsWith("cubic-bezier")||u.startsWith("steps(")?i=u:u==="infinite"||/^\d+$/.test(u)?a=u==="infinite"?u:Number(u):Fk.includes(u)?c=u:Lk.includes(u)?l=u:Mk.includes(u)?f=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:l,playState:f}},Rp={animation:(t,e)=>{if(S(t)&&t.includes(" ")){let r=Bk(t,e);return{animationName:Op(r.name||t,e),animationDuration:r.durations[0]||Ht(e.animationDuration||"A").timing,animationDelay:r.durations[1]||Ht(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:Op(t,e),animationDuration:Ht(e.animationDuration||"A").timing,animationDelay:Ht(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:Op(t,e)}),animationDuration:t=>({animationDuration:Ht(t).timing}),animationDelay:t=>({animationDelay:Ht(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 Pp={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>F("height",t,e),width:(t,e)=>F("width",t,e),boxSizing:t=>xt(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ft("height",e),...ft("width",r||e)}},inlineSize:(t,e)=>F("inlineSize",t,e),blockSize:(t,e)=>F("blockSize",t,e),minWidth:(t,e)=>F("minWidth",t,e),maxWidth:(t,e)=>F("maxWidth",t,e),widthRange:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ft("minWidth",e),...ft("maxWidth",r||e)}},minHeight:(t,e)=>F("minHeight",t,e),maxHeight:(t,e)=>F("maxHeight",t,e),heightRange:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ft("minHeight",e),...ft("maxHeight",r||e)}},size:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...F("inlineSize",e),...F("blockSize",r||e)}},minBlockSize:(t,e)=>F("minBlockSize",t,e),minInlineSize:(t,e)=>F("minInlineSize",t,e),maxBlockSize:(t,e)=>F("maxBlockSize",t,e),maxInlineSize:(t,e)=>F("maxInlineSize",t,e),minSize:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ft("minInlineSize",e),...ft("minBlockSize",r||e)}},maxSize:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ft("maxInlineSize",e),...ft("maxBlockSize",r||e)}},borderWidth:(t,e)=>F("borderWidth",t,e),borderTopWidth:(t,e)=>F("borderTopWidth",t,e),borderRightWidth:(t,e)=>F("borderRightWidth",t,e),borderBottomWidth:(t,e)=>F("borderBottomWidth",t,e),borderLeftWidth:(t,e)=>F("borderLeftWidth",t,e),padding:(t,e)=>F("padding",t,e),scrollPadding:(t,e)=>F("scrollPadding",t,e),paddingInline:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ft("paddingInlineStart",e),...ft("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ft("paddingBlockStart",e),...ft("paddingBlockEnd",r||e)}},paddingTop:(t,e)=>F("paddingBlockStart",t,e),paddingBottom:(t,e)=>F("paddingBlockEnd",t,e),paddingLeft:(t,e)=>F("paddingInlineStart",t,e),paddingRight:(t,e)=>F("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>F("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>F("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>F("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>F("paddingInlineEnd",t,e),margin:(t,e)=>F("margin",t,e),marginInline:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ft("marginInlineStart",e),...ft("marginInlineEnd",r||e)}},marginBlock:(t,e)=>{if(!S(e.marginBlock))return;let[r,n]=e.marginBlock.split(" ");return{...ft("marginBlockStart",r),...ft("marginBlockEnd",n||r)}},marginTop:(t,e)=>F("marginBlockStart",t,e),marginBottom:(t,e)=>F("marginBlockEnd",t,e),marginLeft:(t,e)=>F("marginInlineStart",t,e),marginRight:(t,e)=>F("marginInlineEnd",t,e),marginInlineStart:(t,e)=>F("marginInlineStart",t,e),marginInlineEnd:(t,e)=>F("marginInlineEnd",t,e),marginBlockStart:(t,e)=>F("marginBlockStart",t,e),marginBlockEnd:(t,e)=>F("marginBlockEnd",t,e),gap:t=>({gap:Pc(t)}),columnGap:(t,e)=>he(e,"columnGap",t),rowGap:(t,e)=>he(e,"rowGap",t),flexWrap:t=>({display:"flex",flexWrap:t}),flexFlow:(t,e)=>{let r=e.reverse;if(!S(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(!S(t))return;let[e,r]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:r}},round:(t,e)=>mi(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>mi(t??e.round,e,"borderRadius")};var $p={fontSize:t=>ri(t)||t,fontFamily:t=>({fontFamily:ti(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t}),lineClamp:t=>{if(t!=null)return t==="none"?{WebkitLineClamp:"none",lineClamp:"none"}:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:String(t),lineClamp:String(t),overflow:"hidden"}}};var Ip={overflow:t=>({overflow:t}),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 Dp={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:t.split(" ").map(r=>mt(r,"k").k).join(" ")}},left:t=>mt(t,"left"),top:t=>mt(t,"top"),right:t=>mt(t,"right"),bottom:t=>mt(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>mt(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=>mt(r,"k").k);return{left:e[0],right:e[1]||e[0]}}};O();var ie=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},se=(t,e)=>{if(e==null||e==="")return;if(!w(e))return{[t]:e};let r={},n=!1;for(let o in e){let s=e[o];s==null||s===""||w(s)||(r[o]={[t]:s},n=!0)}return n?r:void 0},Lp={theme:(t,e)=>{if(t)return e.themeModifier?te(t,`@${e.themeModifier}`):te(t)},color:(t,e)=>{let r=ie(e);if(t)return se("color",kt(t,r))},background:(t,e)=>{let r=ie(e);if(t)return S(t)&&t.includes("gradient")&&t.includes("(")?{background:hi(t,r)}:se("background",kt(t,r))},backgroundColor:(t,e)=>{let r=ie(e);if(t)return se("backgroundColor",kt(t,r))},backgroundImage:(t,e,r,n)=>{let o=ie(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 se("backgroundImage",Rc(t,o))},textStroke:t=>({WebkitTextStroke:Tc(t)}),outline:t=>({outline:$e(t)}),outlineOffset:(t,e)=>F("outlineOffset",t,e),border:t=>({border:$e(t)}),borderColor:(t,e)=>{let r=ie(e);if(t)return se("borderColor",kt(t,r))},borderTopColor:(t,e)=>{let r=ie(e);if(t)return se("borderTopColor",kt(t,r))},borderBottomColor:(t,e)=>{let r=ie(e);if(t)return se("borderBottomColor",kt(t,r))},borderLeftColor:(t,e)=>{let r=ie(e);if(t)return se("borderLeftColor",kt(t,r))},borderRightColor:(t,e)=>{let r=ie(e);if(t)return se("borderRightColor",kt(t,r))},borderLeft:t=>({borderLeft:$e(t)}),borderTop:t=>({borderTop:$e(t)}),borderRight:t=>({borderRight:$e(t)}),borderBottom:t=>({borderBottom:$e(t)}),shadow:(t,e)=>{let r=ie(e);if(t)return se("boxShadow",Oc(t,r))},boxShadow:(t,e)=>{if(!S(t))return;let[r,n]=t.split("!importan"),o=ie(e),s=n?" !important":"",i=pi(r.trim(),o);return S(i)?{boxShadow:i+s}:se("boxShadow",i)},textShadow:(t,{context:e})=>se("textShadow",pi(t,e.designSystem.globalTheme)),columnRule:t=>({columnRule:$e(t)})};var Si={transition:t=>({transition:$c(t)}),transitionDuration:t=>({transitionDuration:gi(t)}),transitionDelay:t=>({transitionDelay:gi(t)}),transitionTimingFunction:t=>({transitionTimingFunction:ee(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};O();var Fp={flow:(t,e)=>{let r=e.reverse;if(!S(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 Mp={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 ut={...Rp,...Pp,...$p,...Ip,...Dp,...Lp,...Si,...Fp,...Mp};var yt=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","overscrollBehavior","overscrollBehaviorX","overscrollBehaviorY","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","scrollbarGutter","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","touchAction","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 Vk=/^-?[A-Z][0-9]?$/,Uk=/^[a-z][0-9]?$/,By=/var\(\s*(--[A-Za-z0-9-]+)/g,zk=t=>{let e=new Set,r=new Set;if(!t||typeof t!="object")return{knownLetters:e,knownVars:r};for(let n in t){let o=t[n];if(!(!o||typeof o!="object")){if(o.sequence&&typeof o.sequence=="object")for(let s in o.sequence)e.add(s);if(o.vars&&typeof o.vars=="object")for(let s in o.vars)r.add(s)}}return{knownLetters:e,knownVars:r}},Wk=(t,e)=>{if(!e.size)return[];let r=t.split(/[(),\s]+/).filter(Boolean),n=new Set;for(let o of r){if(!Vk.test(o))continue;let s=o.charCodeAt(0)===45?o.slice(1):o;e.has(s)&&n.add(o)}return[...n]},Hk=(t,e)=>{if(!e.size)return[];let r=[];By.lastIndex=0;let n;for(;n=By.exec(t);){let o=n[1];if(e.has(o))continue;let s=o.lastIndexOf("-");if(s===-1)continue;let i=o.slice(s+1);if(!Uk.test(i))continue;let a=o.slice(0,s+1)+i.toUpperCase();a!==o&&e.has(a)&&r.push({varName:o,corrected:a})}return r},Vc=new Set,Vy=(t,e,r)=>{if(!Mt()||!S(e)||!e)return;let n;try{n=A()}catch{return}let{knownLetters:o,knownVars:s}=zk(n);if(!o.size&&!s.size)return;let i=Wk(e,o),a=Hk(e,s);if(!i.length&&!a.length)return;let c=r?.__ref?.path?r.__ref.path.join("."):r?.key||"?";for(let l of i){let f=`${c}::${t}::bare::${l}::${e}`;Vc.has(f)||(Vc.add(f),console.warn(`[smbls/css-in-props] "${t}" on <${c}> looks like it contains an un-wrapped design-system token ("${l}") \u2014 "${t}" has no registered resolver, so its value is forwarded to the browser untouched. A bare letter token there is invalid CSS, so the browser drops the ENTIRE "${t}" declaration (not just this argument). Wrap it in var(--<family>-${l.replace("-","")}) (or calc(-1 * var(--<family>-${l.replace("-","")})) for a negative). Value: "${e}"`))}for(let{varName:l,corrected:f}of a){let u=`${c}::${t}::case::${l}::${e}`;Vc.has(u)||(Vc.add(u),console.warn(`[smbls/css-in-props] "${t}" on <${c}> references ${l}, which the active design system never emits. CSS custom-property names are case-sensitive \u2014 the real variable is ${f}, so this reference silently never resolves. Value: "${e}"`))}};O();var qk=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,Kk=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=t.slice(1),s=n.designSystem.media[o],i=Kt(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(qk),c=a?a[1]||a[2]:o,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let f=n.designSystem?.scopeSelector||":root",u=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${u} &`]:i}}return l},Uy=(t,e,r)=>({[t]:Kt(e,r)}),wi=(t,e,r)=>{let n=`&${t}`,o=Kt(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(u=>`${u} ${l}`).join(", ");c[f]=i[l]}return c}}return{[n]:o}},Np=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},Gk=(t,e,r)=>{let n=t.slice(1),o=Np(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Kt(e,r)},Yk=(t,e,r)=>({[t]:e}),Xk=(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=Np(n,r);s!==void 0&&(o=s)}if(o)return Kt(e,r)},Jk=(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=Np(n,r);s!==void 0&&(o=s)}if(!o)return Kt(e,r)},jp=(t,e)=>Kt(t,e),Bp={"@":Kk,":":wi,"[":wi,"*":wi,"+":wi,"~":wi,"&":Uy,">":Uy,$:Gk,"-":Yk,".":Xk,"!":Jk};var Uc=rr(),zy=(t,e,r)=>{let n=e?.context?.designSystem;n&&tt(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,u=l.reduce((d,h)=>ct(d,f[h]),{});o.designSystemClass=u}}else if(a==="true"){let l=ot(c,e);ct(o,jp(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),!Uc&&w(o[a])&&(o[a].label=a)}else if(ut[a]){let l=ot(c,e);T(l)&&(l=l.reduce((u,d)=>ct(u,d),{}));let f=ut[a](l,e,e.state,e.context);T(f)&&(f=f.reduce((u,d)=>ct(u,d),{})),f&&i(a,f),!Uc&&w(o[a])&&(o[a].label=a)}else if(yt.has(a)){let l=ot(c,e);typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),Uc||Vy(a,l,e),i(a,{[a]:l}),!Uc&&w(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{n&&Z()}},Wy=(t,e)=>{let r={};for(let n in t){let o=Bp[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"?Ft(r[i],s[i]):r[i]=s[i])}}return r},Kt=(t,e,r={unpack:!0})=>{let[n,o]=zy(t,e,r),s=Wy(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return No(n,s);n._selectors=s}return n},Zk=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};O();var Hy=t=>{if(w(t))return Kt(t,t)},Qk=(t,e)=>{let r=Hy(t);return typeof e=="function"?e(r):ne(r)};O();function Up(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})}var qy=new Set;function tv(t,e,r){let n=String(e);if(qy.has(n))return;qy.add(n);let o=t?.__ref?.path,s=Array.isArray(o)&&o.length?o.join("."):t?.key!=null?String(t.key):"(unknown element)",i=r!=null?`resolves to a non-function (${typeof r}) \u2014 it cannot be called`:"is not registered in context.methods, context.functions, or context.utils, and is not an element method",a=`[smbls] el.call('${n}') at <${s}>: "${n}" ${i}. Returning undefined (unchanged behavior) \u2014 check the name for typos or register the function on the project. Warned once per name; repeat misses are silent.`;Up(t,"error",[a]),console.error(a)}function ev(...t){return Up(this,"warn",t),ws.apply(this,t)}function rv(...t){return Up(this,"error",t),Ur.apply(this,t)}var Ky={update:Kn,remove:Gn,getDB:As,getQuery:Es,getRootData:xs,getChildren:hs,getPath:gs,nextElement:ks,previousElement:vs,verbose:Sn,warn:ev,error:rv,variables:Cs,spotByPath:ps,set(t,e){let r=this.__ref;if(r){if(r.__setLocked){r.__setQueued={content:t,options:e};return}r.__setLocked=!0}try{if(this.removeContent(),t!=null){let n=this.context?.__create;n&&n(t,this,"content",e)}this.__ref&&(this.__ref.contentManaged=!0)}finally{if(r){r.__setLocked=!1;let n=r.__setQueued;n&&(r.__setQueued=null,this.set(n.content,n.options))}}},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:bs,getRootState:ys,getRootContext:_s,getContext:Ss,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);Mt()&&tv(this,t,n)},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)}},Vp=new WeakMap;function nv(t){if(!t)return Ky;let e=Vp.get(t);if(e)return e;e=Object.create(Ky);let r=t.methods;if(r)for(let n in r)e[n]=r[n];return Vp.set(t,e),e}function Yn(t){let e=nv(t.context);Object.setPrototypeOf(t,e)}function zc(t){if(!t)return!1;let e=Vp.get(t);if(!e)return!1;let r=t.methods;if(!r)return!1;for(let n in r)e[n]=r[n];return!0}O();mn();var Kp={};$(Kp,{STATE_METHODS:()=>Gy,applyInitialState:()=>Hc,applyStateMethods:()=>Gt,callStateMethod:()=>ki,createState:()=>Wp,isTracking:()=>qp,useHostState:()=>Hp});var Gy=new Set(["update","parse","clean","destroy","create","add","toggle","remove","set","replace","setByPath","setPathCollection","removeByPath","removePathCollection","getByPath","reset","apply","applyReplace","applyFunction","quietUpdate","quietReplace","rootUpdate","parentUpdate","keys","values","__element","__children","parent","root"]),Wc=(t,e,r)=>{Object.defineProperty(t,e,{value:r,enumerable:!1,configurable:!0,writable:!0})},me=(t,e,r,{onlyIfAbsent:n}={})=>{Wc(t,"$"+e,r),!(n&&Object.prototype.hasOwnProperty.call(t,e))&&Wc(t,e,r)},ki=(t,e,...r)=>{if(!t)return;let n=t["$"+e];if(typeof n=="function")return n.apply(t,r);let o=t[e];if(typeof o=="function")return o.apply(t,r)},Gt=(t,e)=>{if(at(e)){let o=e.__raw||e;me(o,"toggle",function(s,i={}){e[s]=!e[s]},{onlyIfAbsent:!0}),me(o,"set",function(s,i={}){return e.$clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.$update(s,i),e},{onlyIfAbsent:!0}),me(o,"setByPath",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}),me(o,"getByPath",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}),me(o,"removeByPath",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}),me(o,"reset",function(s={}){let i=e.$parse();return e.$set(i,s)}),me(o,"apply",function(s,i={}){if(typeof s=="function"){let a=s(e);return e.$update(a,i)}}),me(o,"applyFunction",function(s,i={}){if(typeof s=="function")return s(e),e.$update(e.$parse(),i)}),me(o,"rootUpdate",function(s,i={}){let a=e;for(;a?.parent&&at(a.parent);)a=a.parent;return ki(a,"update",s,i)}),me(o,"parentUpdate",function(s,i={}){if(e.parent)return ki(e.parent,"update",s,i)}),me(o,"quietReplace",function(s,i={}){return e.$replace(s,{quiet:!0,...i})}),Object.getOwnPropertyDescriptor(o,"root")||Object.defineProperty(o,"root",{get:function(){let s=e,i=at(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,at(s)&&(i=s);return i||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)if(Wc(e,"$"+o,n[o]),typeof e[o]!="function"){if(Object.prototype.hasOwnProperty.call(e,o)){$r(o,"");continue}Wc(e,o,n[o])}};var Wp=function(t,e,r){return t.state=Hc(t,e,r),t.state},Hc=function(t,e,r){let{__ref:n}=t,o=t.state;if(o==null||o===!1){let s=e?.state||{};return Gt(t,s),s}if(typeof o=="string")return n&&(n.__state=o),n.__stateType="string",ov(o,t,e);if(typeof o=="number"||typeof o=="boolean"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=Wt({value:o});return s.__element=t,e?.state&&(s.parent=e.state),Gt(t,s),s}if(typeof o=="function"&&(o=o(t,e?.state)||{}),typeof o=="object"&&!at(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let s=Wt({...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)),Gt(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,r),s}return at(o)?(o.__element=t,o):e?.state||{}};function zp(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 ov(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?zp(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?zp(o,s):o??{}}let n=zp(r.state,t);if(n&&typeof n=="object"&&!at(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 Hp=(t,e)=>{if(!t)return Xy;let r=iv(t,e);return!r||!r.state?Xy:cv(r.state)},qp=()=>Rr()!=null,sv=128;function iv(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<sv&&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 av={get(t,e){return t[e]}},Yy=new WeakMap,cv=t=>{let e=Yy.get(t);return e||(e=new Proxy(t,av),Yy.set(t,e)),e},Xy=new Proxy(Object.create(null),{get(){},has(){return!1}});var lv=1,qc=[],Jp=!1;function fv(){Jp||(Jp=!0,typeof requestAnimationFrame=="function"?requestAnimationFrame(Kc):setTimeout(Kc,0))}function Kc(){if(Jp=!1,!qc.length)return;let t=qc.splice(0,qc.length);for(let e=0;e<t.length;e++){let r=t[e];!r.node||!r.node.isConnected||He("Mounted",r,r.__ref?.__mountOptions||{})}}function eb(t,e){typeof t.onMounted=="function"&&(t.__ref.__mountOptions=e,qc.push(t),fv())}function Jy(t,e){if(typeof t.onContentUpdate!="function")return;t.context?.plugins?.length&&Et("contentUpdate",t,e);let r=t.context?.designSystem;r&&tt(r);try{t.onContentUpdate(t,t.state,t.context,e)}catch(n){if(t.context?.plugins?.length&&Et("error",t,{hook:"onContentUpdate",error:n})||console.error('[DOMQL] Lifecycle "onContentUpdate" error:',n),t.context?.strictMode)throw n}finally{r&&Z()}}function Jn(t){return t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90}function uv(t){return t.charAt(2).toLowerCase()+t.slice(3)}function dv(t){return t.toLowerCase()}function Zp(t){let e=t.charCodeAt(0);return e===58||e===64||e===38}function Ci(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]=Ci(o,s):r[n]=s}return r}function oe(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||`_${lv++}`,s.parent=e||null,s.context=t.context||e?.context||n.context||{},s.context.__create||(s.context.__create=oe);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 p=r.indexOf("_");if(p>0){let m=r.substring(0,p),b=s.context?.components;b&&(b[m]||b["smbls."+m])?t={...t,extends:m}:b&&Mt()&&/^[A-Z]\w*_\d+$/.test(r)&&console.warn(`[smbls] auto-extend: key "${r}" looks like a multi-instance (${m}_N) but neither "${m}" nor "smbls.${m}" is registered in context.components \u2014 element will render as a plain <div>. Register the base component or rename the key.`)}}qn(s,t,n);let a=new Set(["childProps","attr","style","scope","data"]),c=s.props&&typeof s.props=="object"?s.props:null;for(let p in t){if(p==="parent"||p==="node"||p==="__ref"||p==="extends"||p==="context"||p==="props")continue;let m=t[p],b=s[p],x=b&&m&&typeof b=="object"&&typeof m=="object"&&!Array.isArray(b)&&!Array.isArray(m)&&typeof b!="function"&&typeof m!="function";x&&p.charCodeAt(0)>=65&&p.charCodeAt(0)<=90?s[p]=Ci(b,m):x&&a.has(p)?s[p]={...b,...m}:x&&Zp(p)?s[p]=Ci(b,m):s[p]=m}function l(p){for(let m in p){let b=p[m],x=s[m],y=x&&b&&typeof x=="object"&&typeof b=="object"&&!Array.isArray(x)&&!Array.isArray(b)&&typeof x!="function"&&typeof b!="function";y&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?s[m]=Ci(x,b):y&&a.has(m)?s[m]={...x,...b}:y&&Zp(m)?s[m]=Ci(x,b):s[m]=b}}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,u=e?.scope,d=s.context&&typeof s.context.globalScope=="object"&&s.context.globalScope||null,h=u||d||null;if(t.scope!==void 0||f){let p={};f&&Object.assign(p,f),t.scope!==void 0&&Object.assign(p,t.scope),s.scope=So(p,h)}else h&&(s.scope=h);if(t.if!==void 0&&(s.if=t.if),Yn(s),pv(s,e,t),s.if!=null){let p;if(typeof s.if=="function")try{p=s.if(s,s.state,s.context)}catch(m){if(p=!1,i.__ifError=m,typeof console<"u"&&console.warn){let b=s.key||s.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${b} \u2014 treating as false:`,m?.message||m)}}else p=s.if;i.__if=!!p}if(i.__if)typeof s.if=="function"&&(i.__ifInitialized=!0);else return e&&(e[s.key]=s),typeof s.if=="function"&&ob(s,i,s.if),s;s.tag||(s.tag=mr(s)),He("Init",s,n);let g=s.node=yr(s);if(!g)return s;if(s.tag==="fragment"){let m=(s.context?.document||globalThis.document).createComment("");g.appendChild(m),i.__fragmentAnchor=m}He("AttachNode",s,n),g.setAttribute&&s.key&&g.setAttribute("data-key",s.key),e&&(e[s.key]=s,e.__ref?.__children&&(e.__ref.__children.includes(s.key)||e.__ref.__children.push(s.key))),g.setAttribute&&s.context?.scopeSelector&&s.context.scopeSelector!==":root"&&s.context.key&&s.key===s.context.key&&g.setAttribute("data-smbls-app",s.context.key),s.id&&g.setAttribute&&(g.id=s.id),cb(s,n),nb(s),Qp(s),ib(s),Ev(s);try{lb(s,n)}catch(p){if(typeof console<"u"&&console.error){let m=s.__ref?.path?.join(".")||s.key||"<root>";console.error(`[smbls] createChildren failed at ${m}:`,p?.message||p,p?.stack?`
|
|
41
41
|
`+p.stack.split(`
|
|
42
42
|
`).slice(0,6).join(`
|
|
43
|
-
`):"")}}if(eh(s,!0),cb(s,e,o),typeof s.html=="function"&&s.node&&!s.node.innerHTML){let p=s.context?.designSystem;p&&tt(p);try{let m=s.html(s,s.state,s.context);m!=null&&typeof m!="function"&&(s.node.innerHTML=m)}catch{}finally{p&&Z()}}if(He("Create",s,n),He("Complete",s,n),He("Render",s,n),He("RenderRouter",s,n),Qy(s,n),typeof s.onFrame=="function"){let p=s.onFrame,m=s.context?.designSystem,b=()=>{if(s.node){if(s.node.isConnected){m&&tt(m);try{p(s,s.state,s.context)}catch(x){console.error("[DOMQL] onFrame error:",x)}finally{m&&Z()}}requestAnimationFrame(b)}};requestAnimationFrame(b)}return s}function uv(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&&!at(t.state)?t.state:void 0;if(i==null){if(e?.state)t.state=e.state,Kt(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",u=l.translations[f];if(u&&typeof u=="object")for(let h in u)c[h]===void 0&&(c[h]=u[h]);let d=new Set(l.languages||[]);for(let h in l.translations)!d.has(h)&&c[h]===void 0&&(c[h]=l.translations[h])}t.state=at(c)?c:zt(c),t.state.__element=t,t.state.root=t.state,Kt(t,t.state)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),Kt(t,t.state);return}if(typeof i=="string"){if(t.state=tb(i,e),t.state&&typeof t.state=="object"&&!at(t.state)){let a=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:a,enumerable:!1,configurable:!0,writable:!0})}Kt(t,t.state);return}if(typeof i=="function"){let a=i(t,e?.state);t.state=at(a)?a:zt(a||{})}else at(i)?t.state=i:t.state=zt({...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,Kt(t,t.state)}function Kp(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 tb(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")){let o=t.slice(3);return o?Kp(e.state,o):e.state??{}}if(t.startsWith("~/")){let o=e.state?.root||e.state,s=t.slice(2);return s?Kp(o,s):o??{}}if(e.state?.[t]!==void 0)return e.state[t];let r=Kp(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{}}var dv=new Set(["s","state","ctx","context"]);function pv(t){try{let r=Function.prototype.toString.call(t).match(/^[^(]*\(([^)]*)\)/);return r?r[1].split(",").map(n=>n.trim().split("=")[0].trim()).filter(Boolean):[]}catch{return[]}}function hv(t){if(typeof t!="function"||t.length!==2)return!1;let e=pv(t);if(e.length<2)return!1;let r=e[1].replace(/[{}[\]]/g,"").trim();return r.length>0&&!dv.has(r)}function gv(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||Yn(a)||ut[a]||yt&&yt.has(a)||Sr(r,a)||(Ft()&&hv(t[a])&&console.warn(`[smbls] custom prop "${a}"${t.key?` on key "${t.key}"`:""} is a function \u2014 it will be auto-invoked on read and its RETURN VALUE stored, not preserved as a callable reference. If you meant to stash a callback, use el.call('${a}', \u2026) instead of reading el.${a}(\u2026) directly (see RULES.md Rule 8).`),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&&tt(n);try{return c(t,t.state,t.context)}catch{return}finally{n&&Z()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function mv(t,e){if(!(!Array.isArray(e)||e.length===0))for(let r=0;r<e.length;r++){let n=e[r];try{typeof n=="function"?n(t,t.state,t.context):typeof n=="string"&&t.state?.[n]}catch{}}}function Bt(t,e,r){return!Array.isArray(e)||e.length===0?r:function(...n){return mv(t,e),r.apply(this,n)}}function ki(t,e){if(!(!t||Array.isArray(t)||typeof t!="object"))return t[e]}function eb(t,e){let r=t.__ref,n=!!(e&&e.skipIfEffect);if(gv(t),typeof t.text=="function"){let s=t.text,i=Bt(t,t.textDeps,s),a=J(()=>{if(!r.contentManaged)try{let c=i(t,t.state,t.context);t.node&&c!=null&&typeof c!="function"&&typeof c!="object"&&(typeof c=="string"&&c.includes("{{")&&(c=Dr.call(t,c,t.state)),t.tag==="string"?t.node.nodeValue=c:t.node.textContent=c)}catch{}},{depth:r.path.length});r.__effects.push(a),r.__exec.text=s}else if(typeof t.text=="string"&&t.text.includes("{{")){let s=t.text,i=J(()=>{if(r.contentManaged)return;let a=Dr.call(t,s,t.state);a!=null&&(t.text=a),t.node&&(t.tag==="string"?t.node.nodeValue=a??"":t.node.textContent=a??"")},{depth:r.path.length});r.__effects.push(i),r.__exec.text=s}for(let s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&typeof t[s]=="function"&&!Ot.has(s)&&!Yn(s)&&!r.__exec[s]){if(ut[s]){let i=t[s],a=Bt(t,t[s+"Deps"],i),c=s,l,f=J(()=>{let u=t.context?.designSystem;u&&tt(u);try{let d=a(t,t.state,t.context),h=ut[c](d,t,t.state,t.context);if(h&&t.node){let g=Qp(h);(g===null||g!==l)&&(l=g,Gn(t.node,h))}else t.node&&(c==="show"||c==="hide")&&(l=void 0,t.node.style.display="")}finally{u&&Z()}},{depth:r.path.length});r.__effects.push(f),r.__exec[s]=i}else if(yt&&yt.has(s)){let i=t[s],a=Bt(t,t[s+"Deps"],i),c=s,l,f=J(()=>{let u=t.context?.designSystem;u&&tt(u);try{let d=a(t,t.state,t.context);if(t.node)if(d!=null){let h=c+":"+String(d);h!==l&&(l=h,Gn(t.node,{[c]:d}))}else l=void 0,t.node.style[c]=""}finally{u&&Z()}},{depth:r.path.length});r.__effects.push(f),r.__exec[s]=i}}if(typeof t.html=="function"){let s=t.html,i=Bt(t,t.htmlDeps,s),a=J(()=>{let c=t.context?.designSystem;c&&tt(c);try{let l=i(t,t.state,t.context);t.node&&l!=null&&typeof l!="function"&&(t.node.innerHTML=l)}finally{c&&Z()}},{depth:r.path.length});r.__effects.push(a),r.__exec.html=s}if(typeof t.value=="function"){let s=t.value,i=Bt(t,t.valueDeps,s),a=J(()=>{try{let c=i(t,t.state,t.context);if(!t.node||!("value"in t.node))return;let l=c==null?"":String(c);if(t.node.value===l)return;let f=typeof document<"u"&&document.activeElement===t.node,u=f&&typeof t.node.selectionStart=="number"?t.node.selectionStart:null,d=f&&typeof t.node.selectionEnd=="number"?t.node.selectionEnd:null;if(t.node.value=l,f&&u!=null&&d!=null)try{t.node.setSelectionRange(u,d)}catch{}}catch{}},{depth:r.path.length});r.__effects.push(a),r.__exec.value=s}if(typeof t.style=="function"){let s=t.style,i=Bt(t,t.styleDeps,s),a,c=J(()=>{let l=i(t,t.state,t.context),f=Qp(l);(f===null||f!==a)&&(a=f,Gn(t.node,l))},{depth:r.path.length});r.__effects.push(c),r.__exec.style=s}else if(t.style&&typeof t.style=="object")for(let s in t.style){let i=t.style[s];if(typeof i!="function")continue;let a=Bt(t,ki(t.styleDeps,s),i),c,l=J(()=>{try{let f=a(t,t.state,t.context);if(t.node){let u=s+":"+String(f);u!==c&&(c=u,Gn(t.node,{[s]:f}))}}catch{}},{depth:r.path.length});r.__effects.push(l)}if(t.attr&&typeof t.attr=="object"){for(let s in t.attr)if(typeof t.attr[s]=="function"){let i=Bt(t,ki(t.attrDeps,s),t.attr[s]),a=s,c=J(()=>{try{let l=i(t,t.state,t.context);t.node?.setAttribute&&(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)}}if(t.aria&&typeof t.aria=="object")for(let s in t.aria){if(typeof t.aria[s]!="function")continue;let i=Bt(t,ki(t.ariaDeps,s),t.aria[s]),a="aria-"+s.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),c=J(()=>{try{let l=i(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)}if(t.data&&typeof t.data=="object")for(let s in t.data){if(typeof t.data[s]!="function")continue;let i=Bt(t,ki(t.dataDeps,s),t.data[s]),c="data-"+s.replace(/[A-Z]/g,f=>"-"+f.toLowerCase()),l=J(()=>{try{let f=i(t,t.state,t.context);if(!t.node?.setAttribute)return;f==null||f===!1?t.node.removeAttribute(c):typeof f!="function"&&typeof f!="object"&&t.node.setAttribute(c,f===!0?"":f)}catch{}},{depth:r.path.length});r.__effects.push(l)}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 s in o){if(typeof o[s]!="function")continue;let i=Bt(t,ki(t.classDeps,s),o[s]),a=J(()=>{try{let c=i(t,t.state,t.context);if(!t.node?.classList)return;typeof c=="string"?t.node.classList.add(c):c?t.node.classList.add(s):t.node.classList.remove(s)}catch{}},{depth:r.path.length});r.__effects.push(a)}!n&&typeof t.if=="function"&&rb(t,r,t.if);for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||Ot.has(s)||typeof t[s]!="function")continue;let i=s.charCodeAt(0);if(i>=65&&i<=90||Yn(s))continue;let a=t[s];r.__exec[s]=a;let c=t.tag||"div";if(Sr(c,s)&&!ut[s]&&!(yt&&yt.has(s))){let l=_r(s)||s,f=Bt(t,t[s+"Deps"],a),u=J(()=>{try{let d=f(t,t.state,t.context);t.node?.setAttribute&&(d==null||d===!1?t.node.removeAttribute(l):typeof d!="function"&&typeof d!="object"&&(l==="src"&&"src"in t.node?t.node.src=d:t.node.setAttribute(l,d===!0?"":d)))}catch{}},{depth:r.path.length});r.__effects.push(u)}}if(xv(t),wv(t),typeof t.onStateUpdate=="function"&&Array.isArray(t.stateDeps)){let s=t.onStateUpdate,i=t.stateDeps,a=!1,c=[],l=J(()=>{let f=[];for(let g=0;g<i.length;g++){let p=i[g];try{f[g]=typeof p=="function"?p(t,t.state,t.context):t.state?.[p]}catch{f[g]=void 0}}if(!a){a=!0,c=f;return}let u=f.length!==c.length;for(let g=0;!u&&g<f.length;g++)f[g]!==c[g]&&(u=!0);let d=c;if(c=f,!u)return;let h=t.context?.designSystem;h&&tt(h);try{s(t,t.state,t.context,{prev:d,next:f})}catch(g){if(t.context?.plugins?.length&&At("error",t,{hook:"onStateUpdate",error:g})||console.error('[DOMQL] Lifecycle "onStateUpdate" error:',g),t.context?.strictMode)throw g}finally{h&&Z()}},{depth:r.path.length});r.__effects.push(l)}Sv(t)}function Xy(t){let e=t.parent,r=e?.node;if(!r||!t.node){cb(t,t.parent);return}let n=null,o=Object.keys(e),s=o.indexOf(t.key);for(let i=s+1;i<o.length;i++){let a=e[o[i]];if(a?.node?.parentNode===r){n=a.node;break}}n?r.insertBefore(t.node,n):r.appendChild(t.node)}function rb(t,e,r){let n=Bt(t,t.ifDeps,r),o=J(()=>{let s;try{s=n(t,t.state,t.context)}catch(a){if(s=!1,e.__ifError=a,typeof console<"u"&&console.warn){let c=t.key||t.tag||"?";console.warn(`[smbls] \`if:\` reactive effect threw on ${c} \u2014 treating as false:`,a?.message||a)}return}let i=e.__if;if(e.__if=!!s,i&&!e.__if&&t.node)t.node.remove();else if(!i&&e.__if)if(e.__ifInitialized)t.node||(t.node=yr(t)),t.node&&(t.node.ref=t),Xy(t),Zp(t);else{if(e.__ifInitialized=!0,t.tag||(t.tag=mr(t)),He("Init",t,{}),t.node||(t.node=yr(t)),!t.node)return;if(t.parent?.__ref?.__children&&!t.parent.__ref.__children.includes(t.key)&&t.parent.__ref.__children.push(t.key),t.tag==="fragment"&&!e.__fragmentAnchor){let c=(t.context?.document||globalThis.document).createComment("");t.node.appendChild(c),e.__fragmentAnchor=c}He("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),ib(t,{}),eb(t,{skipIfEffect:!0}),Zp(t),ob(t),ab(t,{}),Xy(t),Qy(t,{})}},{depth:e.path.length});e.__effects.push(o)}function Zp(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),vv(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"&&Gn(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 Qp(t){if(t==null||typeof t!="object")return"s:"+String(t);try{return"o:"+JSON.stringify(t)}catch{return null}}function Gn(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&&bv(t,r)}var yv=0;function bv(t,e){let r=`_ds${yv++}`;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 u=f.trim();return u.includes(a)?u:a+u}).join(", "),l=e[i];if(typeof l=="object"){let f="",u="";for(let d in l){let h=l[d];if(typeof h=="object"){let g=d.includes("&")?c.split(", ").map(m=>d.replace(/&/g,m)).join(", "):c.split(", ").map(m=>`${m} ${d}`).join(", "),p="";for(let m in h)p+=`${m.replace(/[A-Z]/g,b=>"-"+b.toLowerCase())}: ${h[m]};`;u+=he(`${g} { ${p} }`,g)+`
|
|
44
|
-
`}else f+=`${d.replace(/[A-Z]/g,g=>"-"+g.toLowerCase())}: ${h};`}f&&(s+=
|
|
45
|
-
`),u&&(s+=u)}}s&&(o.textContent+=s)}function xv(t){let e=t.subscribeTo;if(typeof e=="function")try{e=e(t,t.state,t.context)}catch{e=null}if(!Array.isArray(e)||e.length===0)return;let r=t.__ref;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o!="string"||o.length===0)continue;let s=o.split("."),i=s[0],a=s.slice(1),c={value:!1},l=J(()=>{let f=t.state&&(at(t.state)?t.state.root:null);if(!f||!at(f))return;let u=f;u=u[i];for(let h=0;h<a.length&&!(u==null||typeof u!="object");h++)if(at(u))u=u[a[h]];else break;if(!c.value)return;let d=!1;if(typeof t.onBeforeUpdate=="function"){let h=t.context?.designSystem;h&&tt(h);try{t.onBeforeUpdate(t,t.state,t.context,{updateBySubscription:!0})===!1&&(d=!0)}catch(g){t.context?.plugins?.length&&At("error",t,{hook:"onBeforeUpdate",error:g})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",g)}finally{h&&Z()}}if(!d&&t.node&&r.__effects)for(let h=0;h<r.__effects.length;h++){let g=r.__effects[h];g&&g!==l&&!g._disposed&&!g._isSubscribeToEffect&&typeof g._execute=="function"&&g._execute()}if(!d&&typeof t.onUpdate=="function"){let h=t.context?.designSystem;h&&tt(h);try{t.onUpdate(t,t.state,t.context)}catch(g){t.context?.plugins?.length&&At("error",t,{hook:"onUpdate",error:g})||console.error("[DOMQL] subscribeTo onUpdate error:",g)}finally{h&&Z()}}},{depth:r.path.length});c.value=!0,l._isSubscribeToEffect=!0,r.__effects.push(l)}}function rh(t,e){return t.charCodeAt(0)===64&&t.length>1&&!t.startsWith("@media")&&!t.startsWith("@keyframes")&&!t.startsWith("@supports")&&(t==="@dark"||t==="@light"||!e.context?.designSystem?.media?.[t.slice(1)])}var Jy=new Set;function _v(t,e){let r=e?.__ref?.path?e.__ref.path.join("."):e?.key||"?",n=r+"::"+t;Jy.has(n)||(Jy.add(n),console.warn(`[smbls/css] "${t}" at ${r} is a CHILD-COMPONENT key nested inside a pseudo/selector block (":hover", "@dark", etc.) \u2014 that is never a valid CSS selector fragment. The rule is DROPPED (not shipped as a dead/never-matching selector). To reveal a child on a parent state, target the child's OWN class from the parent selector instead, e.g. move the declaration onto the child element itself, or use a sibling-selector combinator in a top-level style block.`))}function Xn(t,e,r){let n={},o=new Set,s=(i,a,c)=>{let l=c?new Set(Object.keys(n)):null;if(ut[i]){let f=ut[i](a,e,e.state,e.context);if(f){let u=Array.isArray(f)?f:[f];for(let d of u)d&&Object.assign(n,d)}}else n[i]=a;if(c)for(let f in n)l.has(f)||o.add(f)};for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let a=t[i];if(typeof a=="function"&&(a=a(e,e.state,e.context)),a==null||typeof a=="function")continue;if(typeof a=="object"&&!Array.isArray(a)){if(i==="style"){for(let u in a){let d=a[u];if(typeof d=="function"&&(d=d(e,e.state,e.context)),d==null||typeof d=="function")continue;let h=typeof e[u]=="function"&&(ut[u]||yt&&yt.has(u));s(u,d,h)}continue}if(rh(i,e)){let u=Xn(a,e,!0);Object.keys(u).length&&(n[`[data-theme="${i.slice(1)}"] &`]=u);continue}if(/^[A-Z][A-Za-z0-9]*$/.test(i)){Ft()&&_v(i,e);continue}let l=i;if(i.charCodeAt(0)===64&&!i.startsWith("@media")&&!i.startsWith("@keyframes")){let u=e.context?.designSystem?.media?.[i.slice(1)];u&&(l=`@media ${u}`)}let f=Xn(a,e,!1);Object.keys(f).length&&(n[l]=f);continue}let c=typeof e[i]=="function"&&(ut[i]||yt&&yt.has(i));s(i,a,c)}if(r)for(let i in n)o.add(i);for(let i of o){let a=n[i];typeof a=="string"&&!a.includes("!important")&&(n[i]=a+" !important")}return n}function nh(t,e){if(e===void 0&&(e=0),e>8)return!1;if(typeof t=="function")return!0;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&nh(t[r],e+1))return!0}return!1}function nb(t,e,r){if(!e||typeof e!="object"||Array.isArray(e))return null;if(rh(t,r)){let s=Xn(e,r,!0);return Object.keys(s).length?{cssProp:`[data-theme="${t.slice(1)}"] &`,block:s}:null}let n=t;if(t.charAt(0)==="@"&&!t.startsWith("@media")&&!t.startsWith("@keyframes")){let s=r.context?.designSystem?.media?.[t.slice(1)];s&&(n=`@media ${s}`)}let o=Xn(e,r,!1);return Object.keys(o).length?{cssProp:n,block:o}:null}function Sv(t){let e=t.__ref;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||!Jp(r))continue;let n=t[r];if(!n||typeof n!="object"||Array.isArray(n)||!nh(n))continue;let o=null,s,i=J(()=>{if(!t.node)return;let a=t.context?.designSystem;a&&tt(a);let c,l=!1;try{let f=nb(r,n,t),u=f?Qp(f.block)+"::"+f.cssProp:null;if(u!==null&&u===s)l=!0;else if(s=u,f){let d=ne({[f.cssProp]:f.block},null,t.context?.cssPrefix);c=d?d.split(" ").filter(Boolean):null}else c=null}finally{a&&Z()}if(!(l||!t.node.classList)){if(o)for(let f of o)t.node.classList.remove(f);if(c&&c.length)for(let f of c)t.node.classList.add(f);o=c}},{depth:e.path.length});e.__effects.push(i)}}function wv(t){let e=t.__ref;e.__conditionalRunners=[];let r=new Map;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let o=n.charAt(0);if(o!=="."&&o!=="!")continue;let s=n.slice(1);if(!s)continue;if(/[:@\s>~+[\]]/.test(s)){if(typeof console<"u"&&console.warn){let u=s.split(/[:@\s>~+[\]]/)[0];console.warn(`[smbls] conditional \`${n}\` on ${t.key||"?"} will never match \u2014 the whole string after \`${o}\` is read as one prop name. Nest the selector inside instead: \`${o}${u}: { '${s.slice(u.length)}': {...} }\`.`)}continue}let i=t[n];if(!i||typeof i!="object")continue;let a=o==="!",c={lastMatch:!1,appliedKeys:null,appliedClasses:null},l=()=>{let u,d=t[s];if(d===void 0){let p=!!t.state&&s in t.state,m=t.state?t.state[s]:void 0;if(p||m!==void 0)u=m;else{let b=t.context?.cases?.[s];if(b===void 0)return;try{u=typeof b=="function"?b.call(t,t):b}catch(x){u=!1,e.__conditionalError=x,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${n}\` case fn threw on ${t.key||"?"} \u2014 treating as false:`,x?.message||x)}}}else if(typeof d=="function")try{u=d(t,t.state,t.context)}catch(p){u=!1,e.__conditionalError=p,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${n}\` predicate threw on ${t.key||"?"} \u2014 treating as false:`,p?.message||p)}else u=d;let h=a?!u:!!u;if(!t.node||h===c.lastMatch)return;c.lastMatch=h;let g=t.context?.designSystem;g&&tt(g);try{if(h){let p={},m={},b=!1;for(let y in i){if(!Object.prototype.hasOwnProperty.call(i,y))continue;let _=i[y],v=y.charAt(0);if((v===":"||v==="@"||v==="&")&&_&&typeof _=="object"&&!Array.isArray(_)){if(rh(y,t)){let I=Xn(_,t,!0);Object.keys(I).length&&(m[`[data-theme="${y.slice(1)}"] &`]=I,b=!0)}else{let I=y;if(v==="@"&&!y.startsWith("@media")&&!y.startsWith("@keyframes")){let R=t.context?.designSystem?.media?.[y.slice(1)];R&&(I=`@media ${R}`)}let z=Xn(_,t,!1);Object.keys(z).length&&(m[I]=z,b=!0)}continue}let E=typeof _=="function"?_(t,t.state,t.context):_;if(E!=null)if(ut[y]){let I=ut[y](E,t,t.state,t.context);if(I){let z=Array.isArray(I)?I:[I];for(let R of z)R&&Object.assign(p,R)}}else yt&&yt.has(y)&&(p[y]=E)}let x=Object.keys(p);if(x.length){Gn(t.node,p);for(let y of x)r.set(y,n);c.appliedKeys=x}else c.appliedKeys=null;if(b){let y=ne(m,null,t.context?.cssPrefix),_=y?y.split(" ").filter(Boolean):[];if(_.length&&t.node.classList){for(let v of _)t.node.classList.add(v);c.appliedClasses=_}else c.appliedClasses=null}else if(c.appliedClasses){for(let y of c.appliedClasses)t.node.classList.remove(y);c.appliedClasses=null}}else{if(c.appliedKeys){for(let p of c.appliedKeys)r.get(p)===n&&(t.node.style[p]="",r.delete(p));c.appliedKeys=null}if(c.appliedClasses){for(let p of c.appliedClasses)t.node.classList.remove(p);c.appliedClasses=null}}}finally{g&&Z()}};e.__conditionalRunners.push(l);let f=J(l,{depth:e.path.length});e.__effects.push(f)}}var Gp=new WeakSet;function kv(t){let e=t.ownerDocument;!e||Gp.has(e)||(Gp.add(e),queueMicrotask(()=>{Gp.delete(e);let r=e.body||e.documentElement;r&&r.offsetWidth}))}var Yp=new WeakSet,Zy=!1;function vv(t){let{node:e}=t;if(!e)return;if(Zy||(Zy=!0,ne({display:"none"})),Yp.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}Yp.add(t);let r=t.context?.designSystem;r&&tt(r);try{let n={},o=!1;if(Object.prototype.hasOwnProperty.call(t,"theme")&&typeof t.theme!="function"&&ut.theme){let s=ut.theme(t.theme,t,t.state,t.context);if(s){if(Array.isArray(s))for(let i of s)i&&Object.assign(n,i);else Object.assign(n,s);o=!0}}for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||typeof t[s]=="function"||Ot.has(s)||s==="theme")continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!Yn(s)){if(ut[s]){let a=t[s],c=ut[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(yt&&yt.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)==="&"||s.charAt(0)==="@"||s.charAt(0)===":"){let a=t[s];if(a&&typeof a=="object"&&!Array.isArray(a)){if(nh(a))continue;let c=nb(s,a,t);c&&(n[c.cssProp]=c.block,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=ne(n,null,t.context?.cssPrefix);if(s&&e.classList){let a=s.split(" ").filter(Boolean),c=!1;for(let l of a)e.classList.add(l),c||(l.charCodeAt(0)===95&&l.charCodeAt(1)===99||l.charCodeAt(0)===95&&l.indexOf("_c",1)!==-1)&&(c=!0);c&&kv(e)}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&&Z(),Yp.delete(t)}}function ob(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=Ep(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)&&!Yn(o)&&!(ut[o]||yt&&yt.has(o))&&Sr(n,o)){let i=t[o];if(i==null||(typeof i=="string"&&i.includes("{{")&&(i=Dr(i,t,t.state,t.context),t[o]=i),i==null||typeof i=="function"||typeof i=="object")||i===!1&&!jc(_r(o)||o))continue;let a=_r(o)||o;e.setAttribute(a,xi(a,i))}}}function Cv(t){if(!t.autoGrow)return;let e=t.node;if(!e||e.tagName!=="TEXTAREA")return;let r=t.autoGrow,n=r&&typeof r=="object"&&r.max?String(r.max):null;n&&(e.style.maxHeight=n);let o=()=>{e.style.height="auto",e.style.height=e.scrollHeight+"px"};o(),e.addEventListener("input",o),t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{try{e.removeEventListener("input",o)}catch{}})}var sb=new Set(["onSwipe","onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown"]);function ib(t,e){for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||!Yn(r)||sb.has(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=lv(r);br.has(o)||zn(fv(o),t,n)}Av(t)}function Av(t){let e=t.node;if(!e||!e.addEventListener)return;let r={},n=!1;for(let d of sb){let h=t[d];typeof h=="function"&&(r[d]=h,n=!0)}if(!n)return;let o=typeof t.swipeThreshold=="number"?t.swipeThreshold:40,s=typeof t.swipeMaxDuration=="number"?t.swipeMaxDuration:600,i=0,a=0,c=0,l=!1,f=d=>{let h=d.touches&&d.touches[0]||d.changedTouches&&d.changedTouches[0];h&&(i=h.clientX,a=h.clientY,c=Date.now(),l=!0)},u=d=>{if(!l)return;l=!1;let h=d.changedTouches&&d.changedTouches[0]||d.touches&&d.touches[0];if(!h)return;let g=h.clientX-i,p=h.clientY-a,m=Date.now()-c;if(m>s)return;let b=Math.abs(g),x=Math.abs(p);if(Math.max(b,x)<o)return;let y;if(b>x*1.2)y=g<0?"left":"right";else if(x>b*1.2)y=p<0?"up":"down";else return;let _="onSwipe"+y.charAt(0).toUpperCase()+y.slice(1),v=r[_],E=r.onSwipe;v&&v.call(t,d,t,t.state,t.context),E&&E.call(t,{direction:y,dx:g,dy:p,dt:m,event:d},t,t.state,t.context)};e.addEventListener("touchstart",f,{passive:!0}),e.addEventListener("touchend",u,{passive:!0}),t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{try{e.removeEventListener("touchstart",f)}catch{}try{e.removeEventListener("touchend",u)}catch{}})}function Kc(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]=Kc(o,s):r[n]=s}return r}function th(t,e,r){if(!e||!t.node)return;let n=t.childExtends;if(Array.isArray(e)){let o=t.tag==="fragment",s=t.context?.document||globalThis.document,i=o?null:s?.createDocumentFragment();if(!o&&!i)return;let a=t.childProps,c=t.childrenAs;for(let l=0;l<e.length;l++){let f=e[l],u=f;(typeof f=="string"||typeof f=="number")&&(f={text:f});let d=a;if(typeof a=="function")try{d=a(t,f)}catch{d=null}if(c==="state"){let p=u;(typeof u=="string"||typeof u=="number")&&(p={value:u,text:u}),f=d?{...d,state:p}:{state:p}}else d&&(f=Kc(d,f));if(n&&!f.ignoreChildExtends)if(f.extends){let p=Array.isArray(f.extends)?f.extends:[f.extends],m=Array.isArray(n)?n:[n];f={...f,extends:[...m,...p]}}else f={...f,extends:n};let h=f?.key||u&&typeof u=="object"&&u.key||`${l}`,g;try{g=oe(f,t,h,r)}catch(p){if(typeof console<"u"&&console.error){let m=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${h}" failed to construct at ${m} (initial render, skipping this row):`,p?.message||p)}continue}!o&&g?.node&&i.appendChild(g.node)}return o||t.node.appendChild(i),!0}if(typeof e=="string"){let o=tb(e,t);if(Array.isArray(o))return th(t,o,r)}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=Kc(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={...s,extends:n};oe(s,t,o,r)}}}function eh(t,e){let r=t.node;if(!r||r.tagName!=="SELECT")return;let n=r.options;if(!n||!n.length)return;let o=t.__ref,s=o&&o.__exec&&o.__exec.value,i=typeof s=="function",a=t.value!=null&&typeof t.value!="function";if(i||a){let f;if(i)try{f=s(t,t.state,t.context)}catch{return}else f=t.value;let u=f==null?"":String(f);r.value!==u&&(r.value=u);return}let c=e||!(o&&o.__selectSynced);if(o&&(o.__selectSynced=!0),!c)return;let l=-1;for(let f=0;f<n.length;f++)n[f].defaultSelected&&(l=f);l>=0&&r.selectedIndex!==l&&(r.selectedIndex=l)}function ab(t,e){let{children:r,content:n}=t,o=t.childExtends;if(typeof r=="function"){let a=r;try{r=a(t,t.state,t.context)}catch(d){if(r=void 0,typeof console<"u"&&console.error){let h=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] \`children:\` factory threw at ${h} (initial run, treating as empty):`,d?.message||d)}}t.children=r;let c=t.__ref,l=!1,f=Bt(t,t.childrenDeps,a),u=J(()=>{let d=l;l=!0;let h;try{h=f(t,t.state,t.context)}catch(v){if(typeof console<"u"&&console.error){let E=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] \`children:\` factory threw at ${E}${d?"":" (initial tracking run)"}:`,v?.message||v)}return}if(!d||h===t.children)return;t.children=h;let g=typeof t.onContentUpdate=="function",p=g?[]:null,m=g?[]:null,b=g?[]:null;if(Array.isArray(h)&&t.childrenAs==="state"){let v=t.childProps,E=[],I=new Map;for(let N=0;N<h.length;N++){let X=h[N],D=v;if(typeof v=="function")try{D=v(t,X)}catch{D=null}let q=D&&D.key||X&&X.key||`${N}`;E.push(q),I.set(q,{rawChild:X,childProps:D})}let z=new Set(E),R=c.__children.slice();for(let N of R)if(!z.has(N)){let X=t[N];X?.remove&&X.remove(),delete t[N],m&&m.push(N)}let P=t.childExtends,G=t.tag==="fragment",bt=t.context?.document||globalThis.document,V=G?null:bt?.createDocumentFragment(),Q=new Set;for(let N of E){let X=I.get(N),D=X.rawChild,q=t[N];if(q&&q.state){if(D&&typeof D=="object"){let U=q.state,Je=U.$replace||U.replace,Yt=U.$update||U.update;if(typeof Je=="function")Je.call(U,D);else if(typeof Yt=="function"){for(let Ut in U)if(!(Ut==="__element"||Ut==="root"||Ut==="parent"||Ut==="update")&&!Object.prototype.hasOwnProperty.call(D,Ut))try{U[Ut]=void 0}catch{}Yt.call(U,D)}else for(let Ut in D)U[Ut]=D[Ut]}b&&b.push(N);continue}let dt=D;(typeof D=="string"||typeof D=="number")&&(dt={value:D,text:D});let Ct=X.childProps,gt=Ct?{...Ct,state:dt}:{state:dt};if(P&&!gt.ignoreChildExtends)if(gt.extends){let U=Array.isArray(gt.extends)?gt.extends:[gt.extends],Je=Array.isArray(P)?P:[P];gt={...gt,extends:[...Je,...U]}}else gt={...gt,extends:P};let Xe;try{Xe=oe(gt,t,N,e)}catch(U){if(typeof console<"u"&&console.error){let Je=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${N}" failed to construct at ${Je} (reconcile, skipping this row):`,U?.message||U)}Q.add(N);continue}!G&&Xe?.node&&V&&V.appendChild(Xe.node),p&&p.push(N)}if(!G&&V&&V.childNodes.length&&t.node&&t.node.appendChild(V),!G&&t.node){let N=null;for(let X of E){let D=t[X]?.node;if(!D)continue;let q=N?N.nextSibling:t.node.firstChild;D!==q&&t.node.insertBefore(D,q),N=D}}c.__children=Q.size?E.filter(N=>!Q.has(N)):E,g&&(p.length||m.length)&&Yy(t,{added:p,removed:m,kept:b}),eh(t,!1);return}let _=g?[...c.__children]:null;for(let v of[...c.__children]){let E=t[v];E?.remove&&E.remove(),delete t[v]}c.__children=[],th(t,h,e),eh(t,!1),g&&Yy(t,{added:[...c.__children],removed:_,kept:[]})},{depth:c.path.length});c.__effects.push(u)}let s=th(t,r||n,e);if((r||n)&&!s)return;let i=t.context?.components||{};{let a=Object.keys(t);for(let c=0;c<a.length;c++){let l=a[c];if(!l.endsWith("Extends")||typeof t[l]!="string")continue;let f=l.slice(0,-7);if(!f||f.charCodeAt(0)<65||f.charCodeAt(0)>90)continue;let u={extends:t[l]};delete t[l];for(let d=c+1;d<a.length;d++){let h=a[d],g=h.charCodeAt(0);if(g>=65&&g<=90||Ot.has(h)||typeof t[h]=="function"&&(h.startsWith("on")||h.startsWith(".")))break;let p=t[h];p!==void 0&&(u[h]=p,delete t[h])}t[f]&&typeof t[f]=="object"?t[f]={...u,...t[f]}:t[f]=u}}for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a)||Ot.has(a)||typeof t[a]!="object"||t[a]===null)continue;let c=a.charCodeAt(0);if(c<65||c>90)continue;let l=t[a];if(!l.__ref){if(!l.extends&&!l.extend){let f=i[a]||i[`smbls.${a}`];f&&(l={...l,extends:f})}if(t.childProps&&(l=Kc(t.childProps,l)),o&&!l.ignoreChildExtends)if(l.extends){let f=Array.isArray(l.extends)?l.extends:[l.extends],u=Array.isArray(o)?o:[o];l={...l,extends:[...u,...f]}}else l={...l,extends:o};oe(l,t,a,e)}}}function cb(t,e,r){let{node:n}=t;if(!n)return;n.ref=t;let o=e?.tag==="fragment"?e.__ref?.__fragmentAnchor:null;if(o){let i=o.parentNode;if(i){if(r?.position==="before"&&r.node)i.insertBefore(n,r.node);else if(r?.position==="after"&&r.node){let a=r.node.nextSibling;i.insertBefore(n,a||o)}else i.insertBefore(n,o);return}}let s=e?.node||(e?.nodeType?e:null);if(s)if(r?.position==="before"&&r.node)s.insertBefore(n,r.node);else if(r?.position==="after"&&r.node){let i=r.node.nextSibling;i?s.insertBefore(n,i):s.appendChild(n)}else s.appendChild(n)}function He(t,e,r){let n=t.charAt(0).toLowerCase()+t.slice(1);e.context?.plugins?.length&&At(n,e,r);let o="on"+t,s=e[o];if(typeof s=="function"){let i=t==="Render"||t==="RenderRouter";if(i){if(e.__ref.__inRender)return!0;e.__ref.__inRender=!0}let a=e.context?.designSystem;a&&tt(a);try{if(s(e,e.state,e.context,r)===!1)return!1}catch(c){if(e.context?.plugins?.length&&At("error",e,{hook:o,error:c})||console.error(`[DOMQL] Lifecycle "${o}" error:`,c),e.context?.strictMode)throw c}finally{a&&Z(),i&&(e.__ref.__inRender=!1)}}return!0}var lb={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"]},fb={"gradient-blue-light":`linear-gradient(to right,
|
|
43
|
+
`):"")}}if(rh(s,!0),fb(s,e,o),typeof s.html=="function"&&s.node&&!s.node.innerHTML){let p=s.context?.designSystem;p&&tt(p);try{let m=s.html(s,s.state,s.context);m!=null&&typeof m!="function"&&(s.node.innerHTML=m)}catch{}finally{p&&Z()}}if(He("Create",s,n),He("Complete",s,n),He("Render",s,n),He("RenderRouter",s,n),eb(s,n),typeof s.onFrame=="function"){let p=s.onFrame,m=s.context?.designSystem,b=()=>{if(s.node){if(s.node.isConnected){m&&tt(m);try{p(s,s.state,s.context)}catch(x){console.error("[DOMQL] onFrame error:",x)}finally{m&&Z()}}requestAnimationFrame(b)}};requestAnimationFrame(b)}return s}function pv(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&&!at(t.state)?t.state:void 0;if(i==null){if(e?.state)t.state=e.state,Gt(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",u=l.translations[f];if(u&&typeof u=="object")for(let h in u)c[h]===void 0&&(c[h]=u[h]);let d=new Set(l.languages||[]);for(let h in l.translations)!d.has(h)&&c[h]===void 0&&(c[h]=l.translations[h])}t.state=at(c)?c:Wt(c),t.state.__element=t,t.state.root=t.state,Gt(t,t.state)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),Gt(t,t.state);return}if(typeof i=="string"){if(t.state=rb(i,e),t.state&&typeof t.state=="object"&&!at(t.state)){let a=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:a,enumerable:!1,configurable:!0,writable:!0})}Gt(t,t.state);return}if(typeof i=="function"){let a=i(t,e?.state);t.state=at(a)?a:Wt(a||{})}else at(i)?t.state=i:t.state=Wt({...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,Gt(t,t.state)}function Gp(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 rb(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")){let o=t.slice(3);return o?Gp(e.state,o):e.state??{}}if(t.startsWith("~/")){let o=e.state?.root||e.state,s=t.slice(2);return s?Gp(o,s):o??{}}if(e.state?.[t]!==void 0)return e.state[t];let r=Gp(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{}}var hv=new Set(["s","state","ctx","context"]);function gv(t){try{let r=Function.prototype.toString.call(t).match(/^[^(]*\(([^)]*)\)/);return r?r[1].split(",").map(n=>n.trim().split("=")[0].trim()).filter(Boolean):[]}catch{return[]}}function mv(t){if(typeof t!="function"||t.length!==2)return!1;let e=gv(t);if(e.length<2)return!1;let r=e[1].replace(/[{}[\]]/g,"").trim();return r.length>0&&!hv.has(r)}function yv(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"||Rt.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||Jn(a)||ut[a]||yt&&yt.has(a)||Sr(r,a)||(Mt()&&mv(t[a])&&console.warn(`[smbls] custom prop "${a}"${t.key?` on key "${t.key}"`:""} is a function \u2014 it will be auto-invoked on read and its RETURN VALUE stored, not preserved as a callable reference. If you meant to stash a callback, use el.call('${a}', \u2026) instead of reading el.${a}(\u2026) directly (see RULES.md Rule 8).`),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&&tt(n);try{return c(t,t.state,t.context)}catch{return}finally{n&&Z()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function bv(t,e){if(!(!Array.isArray(e)||e.length===0))for(let r=0;r<e.length;r++){let n=e[r];try{typeof n=="function"?n(t,t.state,t.context):typeof n=="string"&&t.state?.[n]}catch{}}}function Vt(t,e,r){return!Array.isArray(e)||e.length===0?r:function(...n){return bv(t,e),r.apply(this,n)}}function vi(t,e){if(!(!t||Array.isArray(t)||typeof t!="object"))return t[e]}function nb(t,e){let r=t.__ref,n=!!(e&&e.skipIfEffect);if(yv(t),typeof t.text=="function"){let s=t.text,i=Vt(t,t.textDeps,s),a=J(()=>{if(!r.contentManaged)try{let c=i(t,t.state,t.context);t.node&&c!=null&&typeof c!="function"&&typeof c!="object"&&(typeof c=="string"&&c.includes("{{")&&(c=Dr.call(t,c,t.state)),t.tag==="string"?t.node.nodeValue=c:t.node.textContent=c)}catch{}},{depth:r.path.length});r.__effects.push(a),r.__exec.text=s}else if(typeof t.text=="string"&&t.text.includes("{{")){let s=t.text,i=J(()=>{if(r.contentManaged)return;let a=Dr.call(t,s,t.state);a!=null&&(t.text=a),t.node&&(t.tag==="string"?t.node.nodeValue=a??"":t.node.textContent=a??"")},{depth:r.path.length});r.__effects.push(i),r.__exec.text=s}for(let s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&typeof t[s]=="function"&&!Rt.has(s)&&!Jn(s)&&!r.__exec[s]){if(ut[s]){let i=t[s],a=Vt(t,t[s+"Deps"],i),c=s,l,f=J(()=>{let u=t.context?.designSystem;u&&tt(u);try{let d=a(t,t.state,t.context),h=ut[c](d,t,t.state,t.context);if(h&&t.node){let g=th(h);(g===null||g!==l)&&(l=g,Xn(t.node,h))}else t.node&&(c==="show"||c==="hide")&&(l=void 0,t.node.style.display="")}finally{u&&Z()}},{depth:r.path.length});r.__effects.push(f),r.__exec[s]=i}else if(yt&&yt.has(s)){let i=t[s],a=Vt(t,t[s+"Deps"],i),c=s,l,f=J(()=>{let u=t.context?.designSystem;u&&tt(u);try{let d=a(t,t.state,t.context);if(t.node)if(d!=null){let h=c+":"+String(d);h!==l&&(l=h,Xn(t.node,{[c]:d}))}else l=void 0,t.node.style[c]=""}finally{u&&Z()}},{depth:r.path.length});r.__effects.push(f),r.__exec[s]=i}}if(typeof t.html=="function"){let s=t.html,i=Vt(t,t.htmlDeps,s),a=J(()=>{let c=t.context?.designSystem;c&&tt(c);try{let l=i(t,t.state,t.context);t.node&&l!=null&&typeof l!="function"&&(t.node.innerHTML=l)}finally{c&&Z()}},{depth:r.path.length});r.__effects.push(a),r.__exec.html=s}if(typeof t.value=="function"){let s=t.value,i=Vt(t,t.valueDeps,s),a=J(()=>{try{let c=i(t,t.state,t.context);if(!t.node||!("value"in t.node))return;let l=c==null?"":String(c);if(t.node.value===l)return;let f=typeof document<"u"&&document.activeElement===t.node,u=f&&typeof t.node.selectionStart=="number"?t.node.selectionStart:null,d=f&&typeof t.node.selectionEnd=="number"?t.node.selectionEnd:null;if(t.node.value=l,f&&u!=null&&d!=null)try{t.node.setSelectionRange(u,d)}catch{}}catch{}},{depth:r.path.length});r.__effects.push(a),r.__exec.value=s}if(typeof t.style=="function"){let s=t.style,i=Vt(t,t.styleDeps,s),a,c=J(()=>{let l=i(t,t.state,t.context),f=th(l);(f===null||f!==a)&&(a=f,Xn(t.node,l))},{depth:r.path.length});r.__effects.push(c),r.__exec.style=s}else if(t.style&&typeof t.style=="object")for(let s in t.style){let i=t.style[s];if(typeof i!="function")continue;let a=Vt(t,vi(t.styleDeps,s),i),c,l=J(()=>{try{let f=a(t,t.state,t.context);if(t.node){let u=s+":"+String(f);u!==c&&(c=u,Xn(t.node,{[s]:f}))}}catch{}},{depth:r.path.length});r.__effects.push(l)}if(t.attr&&typeof t.attr=="object"){for(let s in t.attr)if(typeof t.attr[s]=="function"){let i=Vt(t,vi(t.attrDeps,s),t.attr[s]),a=s,c=J(()=>{try{let l=i(t,t.state,t.context);t.node?.setAttribute&&(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)}}if(t.aria&&typeof t.aria=="object")for(let s in t.aria){if(typeof t.aria[s]!="function")continue;let i=Vt(t,vi(t.ariaDeps,s),t.aria[s]),a="aria-"+s.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),c=J(()=>{try{let l=i(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)}if(t.data&&typeof t.data=="object")for(let s in t.data){if(typeof t.data[s]!="function")continue;let i=Vt(t,vi(t.dataDeps,s),t.data[s]),c="data-"+s.replace(/[A-Z]/g,f=>"-"+f.toLowerCase()),l=J(()=>{try{let f=i(t,t.state,t.context);if(!t.node?.setAttribute)return;f==null||f===!1?t.node.removeAttribute(c):typeof f!="function"&&typeof f!="object"&&t.node.setAttribute(c,f===!0?"":f)}catch{}},{depth:r.path.length});r.__effects.push(l)}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 s in o){if(typeof o[s]!="function")continue;let i=Vt(t,vi(t.classDeps,s),o[s]),a=J(()=>{try{let c=i(t,t.state,t.context);if(!t.node?.classList)return;typeof c=="string"?t.node.classList.add(c):c?t.node.classList.add(s):t.node.classList.remove(s)}catch{}},{depth:r.path.length});r.__effects.push(a)}!n&&typeof t.if=="function"&&ob(t,r,t.if);for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||Rt.has(s)||typeof t[s]!="function")continue;let i=s.charCodeAt(0);if(i>=65&&i<=90||Jn(s))continue;let a=t[s];r.__exec[s]=a;let c=t.tag||"div";if(Sr(c,s)&&!ut[s]&&!(yt&&yt.has(s))){let l=_r(s)||s,f=Vt(t,t[s+"Deps"],a),u=J(()=>{try{let d=f(t,t.state,t.context);t.node?.setAttribute&&(d==null||d===!1?t.node.removeAttribute(l):typeof d!="function"&&typeof d!="object"&&(l==="src"&&"src"in t.node?t.node.src=d:t.node.setAttribute(l,d===!0?"":d)))}catch{}},{depth:r.path.length});r.__effects.push(u)}}if(Sv(t),vv(t),typeof t.onStateUpdate=="function"&&Array.isArray(t.stateDeps)){let s=t.onStateUpdate,i=t.stateDeps,a=!1,c=[],l=J(()=>{let f=[];for(let g=0;g<i.length;g++){let p=i[g];try{f[g]=typeof p=="function"?p(t,t.state,t.context):t.state?.[p]}catch{f[g]=void 0}}if(!a){a=!0,c=f;return}let u=f.length!==c.length;for(let g=0;!u&&g<f.length;g++)f[g]!==c[g]&&(u=!0);let d=c;if(c=f,!u)return;let h=t.context?.designSystem;h&&tt(h);try{s(t,t.state,t.context,{prev:d,next:f})}catch(g){if(t.context?.plugins?.length&&Et("error",t,{hook:"onStateUpdate",error:g})||console.error('[DOMQL] Lifecycle "onStateUpdate" error:',g),t.context?.strictMode)throw g}finally{h&&Z()}},{depth:r.path.length});r.__effects.push(l)}kv(t)}function Zy(t){let e=t.parent,r=e?.node;if(!r||!t.node){fb(t,t.parent);return}let n=null,o=Object.keys(e),s=o.indexOf(t.key);for(let i=s+1;i<o.length;i++){let a=e[o[i]];if(a?.node?.parentNode===r){n=a.node;break}}n?r.insertBefore(t.node,n):r.appendChild(t.node)}function ob(t,e,r){let n=Vt(t,t.ifDeps,r),o=J(()=>{let s;try{s=n(t,t.state,t.context)}catch(a){if(s=!1,e.__ifError=a,typeof console<"u"&&console.warn){let c=t.key||t.tag||"?";console.warn(`[smbls] \`if:\` reactive effect threw on ${c} \u2014 treating as false:`,a?.message||a)}return}let i=e.__if;if(e.__if=!!s,i&&!e.__if&&t.node)t.node.remove();else if(!i&&e.__if)if(e.__ifInitialized)t.node||(t.node=yr(t)),t.node&&(t.node.ref=t),Zy(t),Qp(t);else{if(e.__ifInitialized=!0,t.tag||(t.tag=mr(t)),He("Init",t,{}),t.node||(t.node=yr(t)),!t.node)return;if(t.parent?.__ref?.__children&&!t.parent.__ref.__children.includes(t.key)&&t.parent.__ref.__children.push(t.key),t.tag==="fragment"&&!e.__fragmentAnchor){let c=(t.context?.document||globalThis.document).createComment("");t.node.appendChild(c),e.__fragmentAnchor=c}He("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),cb(t,{}),nb(t,{skipIfEffect:!0}),Qp(t),ib(t),lb(t,{}),Zy(t),eb(t,{})}},{depth:e.path.length});e.__effects.push(o)}function Qp(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),Av(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"&&Xn(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 th(t){if(t==null||typeof t!="object")return"s:"+String(t);try{return"o:"+JSON.stringify(t)}catch{return null}}function Xn(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&&_v(t,r)}var xv=0;function _v(t,e){let r=`_ds${xv++}`;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 u=f.trim();return u.includes(a)?u:a+u}).join(", "),l=e[i];if(typeof l=="object"){let f="",u="";for(let d in l){let h=l[d];if(typeof h=="object"){let g=d.includes("&")?c.split(", ").map(m=>d.replace(/&/g,m)).join(", "):c.split(", ").map(m=>`${m} ${d}`).join(", "),p="";for(let m in h)p+=`${m.replace(/[A-Z]/g,b=>"-"+b.toLowerCase())}: ${h[m]};`;u+=ge(`${g} { ${p} }`,g)+`
|
|
44
|
+
`}else f+=`${d.replace(/[A-Z]/g,g=>"-"+g.toLowerCase())}: ${h};`}f&&(s+=ge(`${c} { ${f} }`,c)+`
|
|
45
|
+
`),u&&(s+=u)}}s&&(o.textContent+=s)}function Sv(t){let e=t.subscribeTo;if(typeof e=="function")try{e=e(t,t.state,t.context)}catch{e=null}if(!Array.isArray(e)||e.length===0)return;let r=t.__ref;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o!="string"||o.length===0)continue;let s=o.split("."),i=s[0],a=s.slice(1),c={value:!1},l=J(()=>{let f=t.state&&(at(t.state)?t.state.root:null);if(!f||!at(f))return;let u=f;u=u[i];for(let h=0;h<a.length&&!(u==null||typeof u!="object");h++)if(at(u))u=u[a[h]];else break;if(!c.value)return;let d=!1;if(typeof t.onBeforeUpdate=="function"){let h=t.context?.designSystem;h&&tt(h);try{t.onBeforeUpdate(t,t.state,t.context,{updateBySubscription:!0})===!1&&(d=!0)}catch(g){t.context?.plugins?.length&&Et("error",t,{hook:"onBeforeUpdate",error:g})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",g)}finally{h&&Z()}}if(!d&&t.node&&r.__effects)for(let h=0;h<r.__effects.length;h++){let g=r.__effects[h];g&&g!==l&&!g._disposed&&!g._isSubscribeToEffect&&typeof g._execute=="function"&&g._execute()}if(!d&&typeof t.onUpdate=="function"){let h=t.context?.designSystem;h&&tt(h);try{t.onUpdate(t,t.state,t.context)}catch(g){t.context?.plugins?.length&&Et("error",t,{hook:"onUpdate",error:g})||console.error("[DOMQL] subscribeTo onUpdate error:",g)}finally{h&&Z()}}},{depth:r.path.length});c.value=!0,l._isSubscribeToEffect=!0,r.__effects.push(l)}}function nh(t,e){return t.charCodeAt(0)===64&&t.length>1&&!t.startsWith("@media")&&!t.startsWith("@keyframes")&&!t.startsWith("@supports")&&(t==="@dark"||t==="@light"||!e.context?.designSystem?.media?.[t.slice(1)])}var Qy=new Set;function wv(t,e){let r=e?.__ref?.path?e.__ref.path.join("."):e?.key||"?",n=r+"::"+t;Qy.has(n)||(Qy.add(n),console.warn(`[smbls/css] "${t}" at ${r} is a CHILD-COMPONENT key nested inside a pseudo/selector block (":hover", "@dark", etc.) \u2014 that is never a valid CSS selector fragment. The rule is DROPPED (not shipped as a dead/never-matching selector). To reveal a child on a parent state, target the child's OWN class from the parent selector instead, e.g. move the declaration onto the child element itself, or use a sibling-selector combinator in a top-level style block.`))}function Zn(t,e,r){let n={},o=new Set,s=(i,a,c)=>{let l=c?new Set(Object.keys(n)):null;if(ut[i]){let f=ut[i](a,e,e.state,e.context);if(f){let u=Array.isArray(f)?f:[f];for(let d of u)d&&Object.assign(n,d)}}else n[i]=a;if(c)for(let f in n)l.has(f)||o.add(f)};for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let a=t[i];if(typeof a=="function"&&(a=a(e,e.state,e.context)),a==null||typeof a=="function")continue;if(typeof a=="object"&&!Array.isArray(a)){if(i==="style"){for(let u in a){let d=a[u];if(typeof d=="function"&&(d=d(e,e.state,e.context)),d==null||typeof d=="function")continue;let h=typeof e[u]=="function"&&(ut[u]||yt&&yt.has(u));s(u,d,h)}continue}if(nh(i,e)){let u=Zn(a,e,!0);Object.keys(u).length&&(n[`[data-theme="${i.slice(1)}"] &`]=u);continue}if(/^[A-Z][A-Za-z0-9]*$/.test(i)){Mt()&&wv(i,e);continue}let l=i;if(i.charCodeAt(0)===64&&!i.startsWith("@media")&&!i.startsWith("@keyframes")){let u=e.context?.designSystem?.media?.[i.slice(1)];u&&(l=`@media ${u}`)}let f=Zn(a,e,!1);Object.keys(f).length&&(n[l]=f);continue}let c=typeof e[i]=="function"&&(ut[i]||yt&&yt.has(i));s(i,a,c)}if(r)for(let i in n)o.add(i);for(let i of o){let a=n[i];typeof a=="string"&&!a.includes("!important")&&(n[i]=a+" !important")}return n}function oh(t,e){if(e===void 0&&(e=0),e>8)return!1;if(typeof t=="function")return!0;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&oh(t[r],e+1))return!0}return!1}function sb(t,e,r){if(!e||typeof e!="object"||Array.isArray(e))return null;if(nh(t,r)){let s=Zn(e,r,!0);return Object.keys(s).length?{cssProp:`[data-theme="${t.slice(1)}"] &`,block:s}:null}let n=t;if(t.charAt(0)==="@"&&!t.startsWith("@media")&&!t.startsWith("@keyframes")){let s=r.context?.designSystem?.media?.[t.slice(1)];s&&(n=`@media ${s}`)}let o=Zn(e,r,!1);return Object.keys(o).length?{cssProp:n,block:o}:null}function kv(t){let e=t.__ref;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||!Zp(r))continue;let n=t[r];if(!n||typeof n!="object"||Array.isArray(n)||!oh(n))continue;let o=null,s,i=J(()=>{if(!t.node)return;let a=t.context?.designSystem;a&&tt(a);let c,l=!1;try{let f=sb(r,n,t),u=f?th(f.block)+"::"+f.cssProp:null;if(u!==null&&u===s)l=!0;else if(s=u,f){let d=ne({[f.cssProp]:f.block},null,t.context?.cssPrefix);c=d?d.split(" ").filter(Boolean):null}else c=null}finally{a&&Z()}if(!(l||!t.node.classList)){if(o)for(let f of o)t.node.classList.remove(f);if(c&&c.length)for(let f of c)t.node.classList.add(f);o=c}},{depth:e.path.length});e.__effects.push(i)}}function vv(t){let e=t.__ref;e.__conditionalRunners=[];let r=new Map;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let o=n.charAt(0);if(o!=="."&&o!=="!")continue;let s=n.slice(1);if(!s)continue;if(/[:@\s>~+[\]]/.test(s)){if(typeof console<"u"&&console.warn){let u=s.split(/[:@\s>~+[\]]/)[0];console.warn(`[smbls] conditional \`${n}\` on ${t.key||"?"} will never match \u2014 the whole string after \`${o}\` is read as one prop name. Nest the selector inside instead: \`${o}${u}: { '${s.slice(u.length)}': {...} }\`.`)}continue}let i=t[n];if(!i||typeof i!="object")continue;let a=o==="!",c={lastMatch:!1,appliedKeys:null,appliedClasses:null},l=()=>{let u,d=t[s];if(d===void 0){let p=!!t.state&&s in t.state,m=t.state?t.state[s]:void 0;if(p||m!==void 0)u=m;else{let b=t.context?.cases?.[s];if(b===void 0)return;try{u=typeof b=="function"?b.call(t,t):b}catch(x){u=!1,e.__conditionalError=x,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${n}\` case fn threw on ${t.key||"?"} \u2014 treating as false:`,x?.message||x)}}}else if(typeof d=="function")try{u=d(t,t.state,t.context)}catch(p){u=!1,e.__conditionalError=p,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${n}\` predicate threw on ${t.key||"?"} \u2014 treating as false:`,p?.message||p)}else u=d;let h=a?!u:!!u;if(!t.node||h===c.lastMatch)return;c.lastMatch=h;let g=t.context?.designSystem;g&&tt(g);try{if(h){let p={},m={},b=!1;for(let y in i){if(!Object.prototype.hasOwnProperty.call(i,y))continue;let _=i[y],v=y.charAt(0);if((v===":"||v==="@"||v==="&")&&_&&typeof _=="object"&&!Array.isArray(_)){if(nh(y,t)){let I=Zn(_,t,!0);Object.keys(I).length&&(m[`[data-theme="${y.slice(1)}"] &`]=I,b=!0)}else{let I=y;if(v==="@"&&!y.startsWith("@media")&&!y.startsWith("@keyframes")){let R=t.context?.designSystem?.media?.[y.slice(1)];R&&(I=`@media ${R}`)}let z=Zn(_,t,!1);Object.keys(z).length&&(m[I]=z,b=!0)}continue}let E=typeof _=="function"?_(t,t.state,t.context):_;if(E!=null)if(ut[y]){let I=ut[y](E,t,t.state,t.context);if(I){let z=Array.isArray(I)?I:[I];for(let R of z)R&&Object.assign(p,R)}}else yt&&yt.has(y)&&(p[y]=E)}let x=Object.keys(p);if(x.length){Xn(t.node,p);for(let y of x)r.set(y,n);c.appliedKeys=x}else c.appliedKeys=null;if(b){let y=ne(m,null,t.context?.cssPrefix),_=y?y.split(" ").filter(Boolean):[];if(_.length&&t.node.classList){for(let v of _)t.node.classList.add(v);c.appliedClasses=_}else c.appliedClasses=null}else if(c.appliedClasses){for(let y of c.appliedClasses)t.node.classList.remove(y);c.appliedClasses=null}}else{if(c.appliedKeys){for(let p of c.appliedKeys)r.get(p)===n&&(t.node.style[p]="",r.delete(p));c.appliedKeys=null}if(c.appliedClasses){for(let p of c.appliedClasses)t.node.classList.remove(p);c.appliedClasses=null}}}finally{g&&Z()}};e.__conditionalRunners.push(l);let f=J(l,{depth:e.path.length});e.__effects.push(f)}}var Yp=new WeakSet;function Cv(t){let e=t.ownerDocument;!e||Yp.has(e)||(Yp.add(e),queueMicrotask(()=>{Yp.delete(e);let r=e.body||e.documentElement;r&&r.offsetWidth}))}var Xp=new WeakSet,tb=!1;function Av(t){let{node:e}=t;if(!e)return;if(tb||(tb=!0,ne({display:"none"})),Xp.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}Xp.add(t);let r=t.context?.designSystem;r&&tt(r);try{let n={},o=!1;if(Object.prototype.hasOwnProperty.call(t,"theme")&&typeof t.theme!="function"&&ut.theme){let s=ut.theme(t.theme,t,t.state,t.context);if(s){if(Array.isArray(s))for(let i of s)i&&Object.assign(n,i);else Object.assign(n,s);o=!0}}for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||typeof t[s]=="function"||Rt.has(s)||s==="theme")continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!Jn(s)){if(ut[s]){let a=t[s],c=ut[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(yt&&yt.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)==="&"||s.charAt(0)==="@"||s.charAt(0)===":"){let a=t[s];if(a&&typeof a=="object"&&!Array.isArray(a)){if(oh(a))continue;let c=sb(s,a,t);c&&(n[c.cssProp]=c.block,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=ne(n,null,t.context?.cssPrefix);if(s&&e.classList){let a=s.split(" ").filter(Boolean),c=!1;for(let l of a)e.classList.add(l),c||(l.charCodeAt(0)===95&&l.charCodeAt(1)===99||l.charCodeAt(0)===95&&l.indexOf("_c",1)!==-1)&&(c=!0);c&&Cv(e)}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&&Z(),Xp.delete(t)}}function ib(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=Tp(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"||Rt.has(o)||o==="on"||r[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!Jn(o)&&!(ut[o]||yt&&yt.has(o))&&Sr(n,o)){let i=t[o];if(i==null||(typeof i=="string"&&i.includes("{{")&&(i=Dr(i,t,t.state,t.context),t[o]=i),i==null||typeof i=="function"||typeof i=="object")||i===!1&&!Bc(_r(o)||o))continue;let a=_r(o)||o;e.setAttribute(a,_i(a,i))}}}function Ev(t){if(!t.autoGrow)return;let e=t.node;if(!e||e.tagName!=="TEXTAREA")return;let r=t.autoGrow,n=r&&typeof r=="object"&&r.max?String(r.max):null;n&&(e.style.maxHeight=n);let o=()=>{e.style.height="auto",e.style.height=e.scrollHeight+"px"};o(),e.addEventListener("input",o),t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{try{e.removeEventListener("input",o)}catch{}})}var ab=new Set(["onSwipe","onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown"]);function cb(t,e){for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||!Jn(r)||ab.has(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=uv(r);br.has(o)||Hn(dv(o),t,n)}Tv(t)}function Tv(t){let e=t.node;if(!e||!e.addEventListener)return;let r={},n=!1;for(let d of ab){let h=t[d];typeof h=="function"&&(r[d]=h,n=!0)}if(!n)return;let o=typeof t.swipeThreshold=="number"?t.swipeThreshold:40,s=typeof t.swipeMaxDuration=="number"?t.swipeMaxDuration:600,i=0,a=0,c=0,l=!1,f=d=>{let h=d.touches&&d.touches[0]||d.changedTouches&&d.changedTouches[0];h&&(i=h.clientX,a=h.clientY,c=Date.now(),l=!0)},u=d=>{if(!l)return;l=!1;let h=d.changedTouches&&d.changedTouches[0]||d.touches&&d.touches[0];if(!h)return;let g=h.clientX-i,p=h.clientY-a,m=Date.now()-c;if(m>s)return;let b=Math.abs(g),x=Math.abs(p);if(Math.max(b,x)<o)return;let y;if(b>x*1.2)y=g<0?"left":"right";else if(x>b*1.2)y=p<0?"up":"down";else return;let _="onSwipe"+y.charAt(0).toUpperCase()+y.slice(1),v=r[_],E=r.onSwipe;v&&v.call(t,d,t,t.state,t.context),E&&E.call(t,{direction:y,dx:g,dy:p,dt:m,event:d},t,t.state,t.context)};e.addEventListener("touchstart",f,{passive:!0}),e.addEventListener("touchend",u,{passive:!0}),t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{try{e.removeEventListener("touchstart",f)}catch{}try{e.removeEventListener("touchend",u)}catch{}})}function Gc(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]=Gc(o,s):r[n]=s}return r}function eh(t,e,r){if(!e||!t.node)return;let n=t.childExtends;if(Array.isArray(e)){let o=t.tag==="fragment",s=t.context?.document||globalThis.document,i=o?null:s?.createDocumentFragment();if(!o&&!i)return;let a=t.childProps,c=t.childrenAs;for(let l=0;l<e.length;l++){let f=e[l],u=f;(typeof f=="string"||typeof f=="number")&&(f={text:f});let d=a;if(typeof a=="function")try{d=a(t,f)}catch{d=null}if(c==="state"){let p=u;(typeof u=="string"||typeof u=="number")&&(p={value:u,text:u}),f=d?{...d,state:p}:{state:p}}else d&&(f=Gc(d,f));if(n&&!f.ignoreChildExtends)if(f.extends){let p=Array.isArray(f.extends)?f.extends:[f.extends],m=Array.isArray(n)?n:[n];f={...f,extends:[...m,...p]}}else f={...f,extends:n};let h=f?.key||u&&typeof u=="object"&&u.key||`${l}`,g;try{g=oe(f,t,h,r)}catch(p){if(typeof console<"u"&&console.error){let m=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${h}" failed to construct at ${m} (initial render, skipping this row):`,p?.message||p)}continue}!o&&g?.node&&i.appendChild(g.node)}return o||t.node.appendChild(i),!0}if(typeof e=="string"){let o=rb(e,t);if(Array.isArray(o))return eh(t,o,r)}if(typeof e=="object")for(let o in e){if(Rt.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=Gc(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={...s,extends:n};oe(s,t,o,r)}}}function rh(t,e){let r=t.node;if(!r||r.tagName!=="SELECT")return;let n=r.options;if(!n||!n.length)return;let o=t.__ref,s=o&&o.__exec&&o.__exec.value,i=typeof s=="function",a=t.value!=null&&typeof t.value!="function";if(i||a){let f;if(i)try{f=s(t,t.state,t.context)}catch{return}else f=t.value;let u=f==null?"":String(f);r.value!==u&&(r.value=u);return}let c=e||!(o&&o.__selectSynced);if(o&&(o.__selectSynced=!0),!c)return;let l=-1;for(let f=0;f<n.length;f++)n[f].defaultSelected&&(l=f);l>=0&&r.selectedIndex!==l&&(r.selectedIndex=l)}function lb(t,e){let{children:r,content:n}=t,o=t.childExtends;if(typeof r=="function"){let a=r;try{r=a(t,t.state,t.context)}catch(d){if(r=void 0,typeof console<"u"&&console.error){let h=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] \`children:\` factory threw at ${h} (initial run, treating as empty):`,d?.message||d)}}t.children=r;let c=t.__ref,l=!1,f=Vt(t,t.childrenDeps,a),u=J(()=>{let d=l;l=!0;let h;try{h=f(t,t.state,t.context)}catch(v){if(typeof console<"u"&&console.error){let E=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] \`children:\` factory threw at ${E}${d?"":" (initial tracking run)"}:`,v?.message||v)}return}if(!d||h===t.children)return;t.children=h;let g=typeof t.onContentUpdate=="function",p=g?[]:null,m=g?[]:null,b=g?[]:null;if(Array.isArray(h)&&t.childrenAs==="state"){let v=t.childProps,E=[],I=new Map;for(let N=0;N<h.length;N++){let X=h[N],D=v;if(typeof v=="function")try{D=v(t,X)}catch{D=null}let q=D&&D.key||X&&X.key||`${N}`;E.push(q),I.set(q,{rawChild:X,childProps:D})}let z=new Set(E),R=c.__children.slice();for(let N of R)if(!z.has(N)){let X=t[N];X?.remove&&X.remove(),delete t[N],m&&m.push(N)}let P=t.childExtends,G=t.tag==="fragment",bt=t.context?.document||globalThis.document,V=G?null:bt?.createDocumentFragment(),Q=new Set;for(let N of E){let X=I.get(N),D=X.rawChild,q=t[N];if(q&&q.state){if(D&&typeof D=="object"){let U=q.state,Je=U.$replace||U.replace,Xt=U.$update||U.update;if(typeof Je=="function")Je.call(U,D);else if(typeof Xt=="function"){for(let zt in U)if(!(zt==="__element"||zt==="root"||zt==="parent"||zt==="update")&&!Object.prototype.hasOwnProperty.call(D,zt))try{U[zt]=void 0}catch{}Xt.call(U,D)}else for(let zt in D)U[zt]=D[zt]}b&&b.push(N);continue}let dt=D;(typeof D=="string"||typeof D=="number")&&(dt={value:D,text:D});let At=X.childProps,gt=At?{...At,state:dt}:{state:dt};if(P&&!gt.ignoreChildExtends)if(gt.extends){let U=Array.isArray(gt.extends)?gt.extends:[gt.extends],Je=Array.isArray(P)?P:[P];gt={...gt,extends:[...Je,...U]}}else gt={...gt,extends:P};let Xe;try{Xe=oe(gt,t,N,e)}catch(U){if(typeof console<"u"&&console.error){let Je=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${N}" failed to construct at ${Je} (reconcile, skipping this row):`,U?.message||U)}Q.add(N);continue}!G&&Xe?.node&&V&&V.appendChild(Xe.node),p&&p.push(N)}if(!G&&V&&V.childNodes.length&&t.node&&t.node.appendChild(V),!G&&t.node){let N=null;for(let X of E){let D=t[X]?.node;if(!D)continue;let q=N?N.nextSibling:t.node.firstChild;D!==q&&t.node.insertBefore(D,q),N=D}}c.__children=Q.size?E.filter(N=>!Q.has(N)):E,g&&(p.length||m.length)&&Jy(t,{added:p,removed:m,kept:b}),rh(t,!1);return}let _=g?[...c.__children]:null;for(let v of[...c.__children]){let E=t[v];E?.remove&&E.remove(),delete t[v]}c.__children=[],eh(t,h,e),rh(t,!1),g&&Jy(t,{added:[...c.__children],removed:_,kept:[]})},{depth:c.path.length});c.__effects.push(u)}let s=eh(t,r||n,e);if((r||n)&&!s)return;let i=t.context?.components||{};{let a=Object.keys(t);for(let c=0;c<a.length;c++){let l=a[c];if(!l.endsWith("Extends")||typeof t[l]!="string")continue;let f=l.slice(0,-7);if(!f||f.charCodeAt(0)<65||f.charCodeAt(0)>90)continue;let u={extends:t[l]};delete t[l];for(let d=c+1;d<a.length;d++){let h=a[d],g=h.charCodeAt(0);if(g>=65&&g<=90||Rt.has(h)||typeof t[h]=="function"&&(h.startsWith("on")||h.startsWith(".")))break;let p=t[h];p!==void 0&&(u[h]=p,delete t[h])}t[f]&&typeof t[f]=="object"?t[f]={...u,...t[f]}:t[f]=u}}for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a)||Rt.has(a)||typeof t[a]!="object"||t[a]===null)continue;let c=a.charCodeAt(0);if(c<65||c>90)continue;let l=t[a];if(!l.__ref){if(!l.extends&&!l.extend){let f=i[a]||i[`smbls.${a}`];f&&(l={...l,extends:f})}if(t.childProps&&(l=Gc(t.childProps,l)),o&&!l.ignoreChildExtends)if(l.extends){let f=Array.isArray(l.extends)?l.extends:[l.extends],u=Array.isArray(o)?o:[o];l={...l,extends:[...u,...f]}}else l={...l,extends:o};oe(l,t,a,e)}}}function fb(t,e,r){let{node:n}=t;if(!n)return;n.ref=t;let o=e?.tag==="fragment"?e.__ref?.__fragmentAnchor:null;if(o){let i=o.parentNode;if(i){if(r?.position==="before"&&r.node)i.insertBefore(n,r.node);else if(r?.position==="after"&&r.node){let a=r.node.nextSibling;i.insertBefore(n,a||o)}else i.insertBefore(n,o);return}}let s=e?.node||(e?.nodeType?e:null);if(s)if(r?.position==="before"&&r.node)s.insertBefore(n,r.node);else if(r?.position==="after"&&r.node){let i=r.node.nextSibling;i?s.insertBefore(n,i):s.appendChild(n)}else s.appendChild(n)}function He(t,e,r){let n=t.charAt(0).toLowerCase()+t.slice(1);e.context?.plugins?.length&&Et(n,e,r);let o="on"+t,s=e[o];if(typeof s=="function"){let i=t==="Render"||t==="RenderRouter";if(i){if(e.__ref.__inRender)return!0;e.__ref.__inRender=!0}let a=e.context?.designSystem;a&&tt(a);try{if(s(e,e.state,e.context,r)===!1)return!1}catch(c){if(e.context?.plugins?.length&&Et("error",e,{hook:o,error:c})||console.error(`[DOMQL] Lifecycle "${o}" error:`,c),e.context?.strictMode)throw c}finally{a&&Z(),i&&(e.__ref.__inRender=!1)}}return!0}var ub={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"]},db={"gradient-blue-light":`linear-gradient(to right,
|
|
46
46
|
rgba(4, 116, 242, 1),
|
|
47
47
|
rgba(0, 48, 103, 1)
|
|
48
48
|
)`,"gradient-blue-dark":`linear-gradient(to right,
|
|
@@ -68,16 +68,16 @@ FROM ${a}${l}`},y0=t=>{let e=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;
|
|
|
68
68
|
#1E54F0 36%,
|
|
69
69
|
#8B4CCA 69%,
|
|
70
70
|
#C66894 100%
|
|
71
|
-
)`};var Ev={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"}}}},Tv={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},Ov={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"}}},ub={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...Ev,...Tv,...Ov,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var db={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var pb={ratio:1.618,subSequence:!0};var hb={SourceSans:[{url:""}]},gb={system:{isDefault:!0,isSystemFallback:!0,value:["system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"','"Liberation Sans"'],type:"sans-serif"}};var mb={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 yb={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 bb={base:150,ratio:1.333,unit:"ms",subSequence:!0};var xb={radiusControl:"12px",radiusCard:"17px",radiusSheet:"24px",radiusPill:"999px",controlH:"44px",controlHCompact:"36px"};var Ci={version:"0.0.1",color:lb,gradient:fb,theme:ub,typography:db,spacing:pb,font:hb,fontFamily:gb,timing:bb,icons:mb,media:yb,sizes:xb,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var Zn={};$(Zn,{A:()=>Ix,AssetPicture:()=>Mb,Audio:()=>Bb,Avatar:()=>Gx,B:()=>sx,Block:()=>_b,Box:()=>Jc,Br:()=>lx,Button:()=>Fx,ButtonSet:()=>Bx,COMPONENTS:()=>Yr,Caption:()=>Xb,Checkbox:()=>xx,CheckboxHgroup:()=>_x,Circle:()=>Db,CircleButton:()=>Nx,Clickable:()=>Pb,Data:()=>ax,Dialog:()=>Ux,DialogFooter:()=>Wx,DialogHeader:()=>zx,Dropdown:()=>Xx,DropdownList:()=>Jx,DropdownParent:()=>Zx,DropdownParentFocus:()=>Qx,DropdownSiblingFocus:()=>t_,FileIcon:()=>Ox,Flex:()=>wb,Focusable:()=>$b,FocusableComponent:()=>Ib,Footnote:()=>ox,Form:()=>Tb,Grid:()=>vb,Gutter:()=>Ab,H1:()=>zb,H2:()=>Wb,H3:()=>Hb,H4:()=>qb,H5:()=>Kb,H6:()=>Gb,Headline:()=>rx,Hgroup:()=>hx,HgroupButton:()=>mx,HgroupRows:()=>gx,Hoverable:()=>Rb,Hr:()=>cx,I:()=>ix,Icon:()=>Ex,IconButton:()=>Vx,IconText:()=>Tx,Iframe:()=>Ob,Img:()=>Eb,Inline:()=>Sb,InlineFlex:()=>kb,InlineGrid:()=>Cb,Input:()=>yx,Italic:()=>tx,KangorooButton:()=>jx,Li:()=>fx,Link:()=>Ih,Notification:()=>e_,NumberInput:()=>bx,Ol:()=>dx,P:()=>Yb,Picture:()=>Fb,Radio:()=>Sx,RadioHgroup:()=>wx,Range:()=>Yx,RouteLink:()=>Dx,RouterLink:()=>Dh,SHAPES:()=>Yc,Select:()=>Lx,Shape:()=>fh,Span:()=>Ub,SquareButton:()=>Mx,Strong:()=>Jb,Subhead:()=>nx,Svg:()=>Nb,Text:()=>Vb,Textarea:()=>Cx,TextareaWithButton:()=>Ax,Theme:()=>Lb,Title:()=>ex,Toggle:()=>kx,ToggleHgroup:()=>vx,Tooltip:()=>Hx,TooltipHidden:()=>qx,TooltipParent:()=>Kx,U:()=>Zb,Ul:()=>ux,Underline:()=>Qb,Video:()=>jb,depth:()=>Xc,getSystemGlobalTheme:()=>Ai});var sh={};$(sh,{Block:()=>_b,Flex:()=>wb,Grid:()=>vb,Gutter:()=>Ab,Inline:()=>Sb,InlineFlex:()=>kb,InlineGrid:()=>Cb});var _b={display:"block"},Sb={display:"inline"},wb={display:"flex"},kb={display:"inline-flex"},vb={display:"grid"},Cb={display:"inline-grid"},Ab={boxSize:"C1"};var ih={};$(ih,{Img:()=>Eb});O();var Eb={tag:"img",attr:{title:t=>t.title||t.alt,alt:t=>t.alt!=null?t.alt:t.title||"",src:t=>{let e=Nt(t);return e&&e.src||t.src},srcset:t=>{let e=Nt(t);return(e?$s(e):"")||t.srcset}}};var ah={};$(ah,{Form:()=>Tb});var Tb={tag:"form"};var ch={};$(ch,{Iframe:()=>Ob});var Ob={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var lh={};$(lh,{Clickable:()=>Pb,Focusable:()=>$b,FocusableComponent:()=>Ib,Hoverable:()=>Rb});var Rv={appearance:"none",cursor:"pointer",fontFamily:"inherit"},Rb={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}}},Pb={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},$b={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:t=>t.tabIndex}},Ib={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:Rv};var ph={};$(ph,{Picture:()=>Fb});var dh={};$(dh,{Theme:()=>Lb,getSystemGlobalTheme:()=>Ai});var uh={};$(uh,{Circle:()=>Db,SHAPES:()=>Yc,Shape:()=>fh,default:()=>Pv,depth:()=>Xc});O();var ae=A(),Xc={4:{boxShadow:`rgba(0,0,0,.10) 0 2${ae.unit.default} 4${ae.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${ae.unit.default} 6${ae.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${ae.unit.default} 10${ae.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${ae.unit.default} 16${ae.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${ae.unit.default} 26${ae.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${ae.unit.default} 42${ae.unit.default}`}},Jn=t=>et(t.shapeDirectionColor)||et(t.borderColor)||et(t.backgroundColor)||et(t.background),Gc=t=>{let e=_i.transition(t.transition,t);return e&&e.transition},Yc={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:Jn(t),transition:Gc(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:Jn(t),transition:Gc(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:Jn(t),transition:Gc(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:Gc(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Jn(t)} 25%, transparent 25%), linear-gradient(315deg, ${Jn(t)} 25%, transparent 25%)`},"&:after":{background:Jn(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)"}}}},fh={deps:{exec:ot,getSpacingBasedOnRatio:pe,getMediaColor:wt},classlist:{shape:t=>t.deps.exec(Yc[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Yc[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}}},Db={round:"100%"},Pv=fh;O();var Ai=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n==="auto"?null:n},Lb={deps:{depth:Xc},classlist:{depth:t=>!xt(t.depth)&&t.deps.depth[t.depth]}};var Fb={deps:{getSystemGlobalTheme:Ai},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Ai},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 hh={};$(hh,{AssetPicture:()=>Mb});O();var Mb={tag:"picture",children:t=>{let e=Nt(t);if(e)return Is(e,t.alt)}};var gh={};$(gh,{Svg:()=>Nb});var Nb={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=d=>`<use xlink:href="#${d}" />`,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 u=0;for(let d=0;d<i.length;d++)u=(u<<5)-u+i.charCodeAt(d)|0;return f=o[l]=`svg-${(u>>>0).toString(36)}`,n.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var mh={};$(mh,{Video:()=>jb});O();var jb={tag:"video",controls:!0,attr:{src:t=>{let e=Nt(t);return e&&e.src||t.src}},children:t=>{let e=Nt(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 yh={};$(yh,{Audio:()=>Bb});O();var Bb={tag:"audio",controls:!0,attr:{src:t=>{let e=Nt(t);return e&&e.src||t.src}},children:t=>{let e=Nt(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 bh={};$(bh,{B:()=>sx,Caption:()=>Xb,Data:()=>ax,Footnote:()=>ox,H1:()=>zb,H2:()=>Wb,H3:()=>Hb,H4:()=>qb,H5:()=>Kb,H6:()=>Gb,Headline:()=>rx,I:()=>ix,Italic:()=>tx,P:()=>Yb,Span:()=>Ub,Strong:()=>Jb,Subhead:()=>nx,Text:()=>Vb,Title:()=>ex,U:()=>Zb,Underline:()=>Qb});var Vb={},Ub={tag:"span"},zb={tag:"h1"},Wb={tag:"h2"},Hb={tag:"h3"},qb={tag:"h4"},Kb={tag:"h5"},Gb={tag:"h6"},Yb={tag:"p"},Xb={tag:"caption"},Jb={tag:"strong",fontWeight:"700"},Zb={tag:"u"},Qb={tag:"u"},tx={tag:"i"},ex={},rx={tag:"h6",fontSize:"B",fontWeight:500},nx={tag:"span",fontSize:"Z1"},ox={tag:"span",fontSize:"Z"},sx={tag:"b"},ix={tag:"i"},ax={tag:"data"};var xh={};$(xh,{Box:()=>Jc,Br:()=>lx,Hr:()=>cx,Li:()=>fx,Ol:()=>dx,Ul:()=>ux});var $v=t=>{if(!t.context)return;let{props:e,__ref:r}=t,n=qt(e,t,{unpack:!1});r.__class=n},Jc={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:$v},cx={tag:"hr",margin:"C1 0"},lx={tag:"br"},fx={tag:"li"},ux={tag:"ul",childExtends:{extends:"Li"}},dx={tag:"ol",childExtends:{extends:"Li"}};var _h={};$(_h,{Hgroup:()=>hx,HgroupButton:()=>mx,HgroupRows:()=>gx});var px=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},hx={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:px,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:px,margin:"0",color:"paragraph"}},gx={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},mx={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Sh={};$(Sh,{Input:()=>yx});var yx={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 wh={};$(wh,{NumberInput:()=>bx});var bx={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 kh={};$(kh,{Checkbox:()=>xx,CheckboxHgroup:()=>_x});var xx={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",position:"absolute",opacity:"0",width:"1px",height:"1px",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},":focus-visible + div":{outline:"solid X blue.3",outlineOffset:"Z"},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"}}},_x={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var vh={};$(vh,{Radio:()=>Sx,RadioHgroup:()=>wx});var Sx={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}},wx={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Ch={};$(Ch,{Toggle:()=>kx,ToggleHgroup:()=>vx});var kx={extends:"Checkbox",Input:{role:"switch",":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}},vx={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Ah={};$(Ah,{Textarea:()=>Cx,TextareaWithButton:()=>Ax});var Cx={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"}},Ax={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 Eh={};$(Eh,{FileIcon:()=>Ox,Icon:()=>Ex,IconText:()=>Tx});var Ex={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=g=>{let p=g[".isActive"];if(p)return g.call("exec",p.name||p.icon)},l=(g,p,m)=>{let{semanticIcons:b}=m&&m.designSystem,{toCamelCase:x}=m&&m.utils,y=f(g,p),v=x(y).split(/([a-z])([A-Z])/g),E=v[1]?v[0]:y.split(".")[0].split(" ")[0],I=b&&b[E];if(I){let z=y.includes(".")?"sfsymbols."+y.split(".").slice(1).join("."):"sfsymbols";return y=I[z]||I[y.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${y}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},f=(g,p)=>{let{key:m}=g,b=g.call("exec",g.name||g.icon||m,g);return g.call("isString",b)&&b.includes("{{")&&(b=g.call("replaceLiteralsWithObjectFields",b)),g.call("isString",b)?b:m},u=t.src,h=J(()=>{let g=f(t,e);if(g.includes(" ")){let R=g.split(" ");g=R[0]+R.slice(1).map(P=>P.charAt(0).toUpperCase()+P.slice(1)).join("")}let p=a(g),m=p.split(/([a-z])([A-Z])/g),b=l(t,e,r);if(b){Object.assign(t,b);return}let x;t.isActive&&(x=c(t));let y=n[".isActive"];n&&n.isActive&&y&&y.icon&&(x=t.call("exec",y.icon||y.Icon.name||y.Icon.icon,t)),t.call("isString",x)&&x.includes("{{")&&(x=t.call("replaceLiteralsWithObjectFields",x));let _;o[x]&&(_=x),o[p]?_=p:o[m[0]+m[1]]?_=m[0]+m[1]:o[m[0]]?_=m[0]:i&&t.warn("Can't find icon:",g,_);let v=o[_],E=n&&n.src||u,I=s&&_,z=v||E||o.noIcon;if(!(t.spriteId===I&&t.src===z&&t.node&&t.node.innerHTML)&&(t.spriteId=I,t.src=z,typeof t.html=="function"&&t.node)){let R=t.context&&t.context.designSystem;R&&tt(R);try{let P=t.html(t,t.state,t.context);P!=null&&typeof P!="function"&&(t.node.innerHTML=P)}finally{R&&Z()}}},{depth:t.__ref&&t.__ref.path&&t.__ref.path.length||0});t.__ref&&(t.__ref.__effects||(t.__ref.__effects=[]),t.__ref.__effects.push(h))},attr:{viewBox:"0 0 24 24","aria-hidden":t=>t.ariaLabel||t.role==="img"?null:"true",focusable:"false"}},Tx={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},Ox={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Lh={};$(Lh,{A:()=>Ix,Link:()=>Ih,RouteLink:()=>Dx,RouterLink:()=>Dh});var Ei={};$(Ei,{default:()=>Mv,getActiveRoute:()=>$h,lastLevel:()=>Qc,lastPathname:()=>Zc,matchRoute:()=>Oh,parseQuery:()=>Rh,parseRoutePattern:()=>Th,router:()=>Ie,runGuards:()=>Ph});O();var Px=/^:(.+)/,$x=/^\*$/,Rx=new Map,Th=t=>{let e=Rx.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(Px);a?n.push({index:i,name:a[1]}):$x.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return Rx.set(t,s),s},Oh=(t,e,r=0)=>{let o=t.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||"");if(!e)return{key:null,content:null,params:{},routePath:s};let i=null,a=-1,c={};for(let l in e){if(l==="/*")continue;let f=Th(l),u=Iv(o,f);u>a&&(a=u,i=l,c=Dv(o,f))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},Iv=(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(Px.test(r[i]))o+=1;else if($x.test(r[i]))o+=.5;else return-1;return o},Dv=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},Rh=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},Ph=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},$h=(t=0,e)=>{e||(e=typeof k<"u"?k.location.pathname:"/");let n=e.split("/")[t+1];if(n)return`/${n}`},Zc,Qc=0,Lv=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,Fv={level:Qc,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,get scrollNode(){return typeof K<"u"&&(K.scrollingElement||K.documentElement)||null},scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},Ie=async(t,e,r={},n={})=>{let o=e||void 0,s=o?.context?.window||k,i=o?.context?.document||K,a={...Fv,...o.context.routerOptions,...n};Qc=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=Lv(t);let u=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,d=new u(f+t),{pathname:h,search:g,hash:p}=d,m=Rh(g),b=o.node,x=p&&p!==s.location.hash.slice(1),y=h!==Zc;Zc=h;let _,v,E,I;if(a.useParamsMatching){let R=Oh(h,o.routes,a.level);_=R.key,v=R.routePath,E=R.content,I=R.params}else{_=$h(a.level,h),v=_;let R=o.routes;E=R?R[_||"/"]||R["/*"]:null,I={}}let z=a.scrollToNode?b:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!E){a.onNotFound?a.onNotFound({pathname:h,route:_,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",h,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let R={pathname:h,route:_,params:I,query:m,hash:p,element:o,state:r},P=await Ph(a.guards,R);if(P===!1)return;if(typeof P=="string")return Ie(P,e,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,h+(g||"")+(p||""))}catch{}if(y||!x){let R={route:_,routePath:v,hash:p,debugging:!1};Object.keys(I).length&&(R.params=I),Object.keys(m).length&&(R.query=m),a.updateState&&o.state.update(R,{preventContentUpdate:!0}),l&&a.removeOldElement&&o[l].remove();let P=o.__ref?.origin?.content,G={};if(P)for(let V in P){let Q=P[V];V==="__ref"||V==="props"||V==="node"||V==="parent"||V==="key"||(typeof Q=="string"||typeof Q=="number"||typeof Q=="boolean"||typeof Q=="object"&&Q!==null&&!Q.node&&!Q.__ref)&&(G[V]=Q)}let bt={...G,...typeof E=="object"?E:{extends:E}};a.useFragment&&(bt.tag="fragment");try{if(typeof o?.set!="function")return;o.set(bt,{contentElementKey:l})}catch(V){console.error("[smbls/router] failed to render route content",h,V)}}if(a.scrollToTop&&z?.scrollTo&&z.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&E[l]?.node?.scrollTo&&E[l].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),p){let R=i.getElementById(p);if(R&&z?.scrollTo){let P=R.getBoundingClientRect().top+b.scrollTop-(a.scrollToOffset||0);z.scrollTo({...a.scrollToOptions||{},top:P,left:0})}}or("routeChanged",o,a)},Mv=Ie;var Nv=(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:u}=n,d=e.__ref.root,h=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!h){t.preventDefault();try{let g=d;if(u&&u.customRouterElement){let p=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),m=d;for(let b of p){if(!m||!m[b]){m=null;break}m=m[b]}m&&(g=m,d.routes&&(g.routes=d.routes))}(f.router||l.router||c.router||Ie)(a,g,{},{scrollToOptions:{behavior:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(g){console.warn(g)}}},Ih={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>xr(t,t.href)||xr(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:Nv},Ix={extends:"Link"},Dh={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:u}=n,d=e.__ref.root,h=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!h){t.preventDefault();try{let g=d;if(u&&u.customRouterElement){let p=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),m=d;for(let b of p){if(!m||!m[b]){m=null;break}m=m[b]}m&&(g=m,d.routes&&(g.routes=d.routes))}(f.router||l.router||c.router||Ie)(a,g,{},{scrollToOptions:{behavior:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(g){console.warn(g)}}}},Dx={extends:[Ih,Dh]};var Fh={};$(Fh,{Select:()=>Lx});var Lx={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 Mh={};$(Mh,{Button:()=>Fx,ButtonSet:()=>Bx,CircleButton:()=>Nx,IconButton:()=>Vx,KangorooButton:()=>jx,SquareButton:()=>Mx});var Fx={extends:["IconText","FocusableComponent"],tag:"button",minHeight:"controlH",fontSize:"Z2",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"0 A",fontWeight:"700",fontFamily:"inherit",round:"radiusPill",disabled:t=>t.call("exec",t.disabled)},Mx={extends:"Button",fontSize:"A",width:"A",minHeight:"auto",padding:"Z",aspectRatio:"1 / 1",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},Nx={extends:"SquareButton",round:"C"},jx={extends:"Button",childExtends:"IconText"},Bx={tag:"nav",display:"flex",childExtends:"SquareButton"},Vx={extends:["SquareButton","ClickableItem"],round:"Z"};var Nh={};$(Nh,{Dialog:()=>Ux,DialogFooter:()=>Wx,DialogHeader:()=>zx});var Ux={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},zx={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},Wx={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 jh={};$(jh,{Tooltip:()=>Hx,TooltipHidden:()=>qx,TooltipParent:()=>Kx});O();var Hx={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=>It(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)}},qx={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)}},Kx={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 Bh={};$(Bh,{Avatar:()=>Gx});var jv=t=>{let r=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="32" fill="#71718A"/><text x="32" y="42" font-family="system-ui,sans-serif" font-size="28" font-weight="700" text-anchor="middle" fill="#fff">${String(t||"").trim().charAt(0).toUpperCase()||"?"}</text></svg>`;return"data:image/svg+xml;utf8,"+encodeURIComponent(r)},Gx={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"}`,onError:(t,e)=>{if(!e.node||e.node.__avatarFallbackApplied)return;e.node.__avatarFallbackApplied=!0;let r=e.node.getAttribute("alt")||(e.key!=="no-avatar"?e.key:"");e.node.src=jv(r)},attr:{alt:t=>t.alt!=null?t.alt:t.text?t.call("exec",t.text,t):t.key&&t.key!=="no-avatar"?t.key:""}};var Vh={};$(Vh,{Range:()=>Yx});var Yx={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:En("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:En("#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 Uh={};$(Uh,{Dropdown:()=>Xx,DropdownList:()=>Jx,DropdownParent:()=>Zx,DropdownParentFocus:()=>Qx,DropdownSiblingFocus:()=>t_});var Xx={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"},Jx={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"}}},Zx={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Qx={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()}}},t_={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 zh={};$(zh,{Notification:()=>e_});var e_={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 Yr=Object.assign({},sh,ih,ah,ch,lh,ph,hh,gh,uh,mh,yh,dh,bh,xh,_h,Sh,wh,kh,vh,Ch,Ah,Eh,Lh,Fh,Mh,Nh,jh,Bh,Vh,Uh,zh);function tl(t){if(t==null)return 0;if(typeof t!="object")return r_(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let n=0;n<t.length;n++)e=(e^tl(t[n]))*16777619;return e>>>0}let r=Object.keys(t).sort();for(let n=0;n<r.length;n++)e=(e^r_(r[n]))*16777619,e=(e^tl(t[r[n]]))*16777619;return e>>>0}function r_(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e}function el(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(!el(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)||!el(t[s],e[s]))return!1}return!0}function Wh(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=Wh(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 Hh(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])?Hh(t[n],o,r):t[n]=o}return t}function kr(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 Qn(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function Ti(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():kr(e)}function n_(t){return t.split(`
|
|
71
|
+
)`};var Ov={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"}}}},Rv={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},Pv={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"}}},pb={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...Ov,...Rv,...Pv,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var hb={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var gb={ratio:1.618,subSequence:!0};var mb={SourceSans:[{url:""}]},yb={system:{isDefault:!0,isSystemFallback:!0,value:["system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"','"Liberation Sans"'],type:"sans-serif"}};var bb={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 xb={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 _b={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Sb={radiusControl:"12px",radiusCard:"17px",radiusSheet:"24px",radiusPill:"999px",controlH:"44px",controlHCompact:"36px"};var Ai={version:"0.0.1",color:ub,gradient:db,theme:pb,typography:hb,spacing:gb,font:mb,fontFamily:yb,timing:_b,icons:bb,media:xb,sizes:Sb,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var to={};$(to,{A:()=>Lx,AssetPicture:()=>jb,Audio:()=>Ub,Avatar:()=>Xx,B:()=>ax,Block:()=>wb,Box:()=>Zc,Br:()=>ux,Button:()=>Nx,ButtonSet:()=>Ux,COMPONENTS:()=>Yr,Caption:()=>Zb,Checkbox:()=>Sx,CheckboxHgroup:()=>wx,Circle:()=>Fb,CircleButton:()=>Bx,Clickable:()=>Ib,Data:()=>lx,Dialog:()=>Wx,DialogFooter:()=>qx,DialogHeader:()=>Hx,Dropdown:()=>Zx,DropdownList:()=>Qx,DropdownParent:()=>t_,DropdownParentFocus:()=>e_,DropdownSiblingFocus:()=>r_,FileIcon:()=>Px,Flex:()=>vb,Focusable:()=>Db,FocusableComponent:()=>Lb,Footnote:()=>ix,Form:()=>Rb,Grid:()=>Ab,Gutter:()=>Tb,H1:()=>Hb,H2:()=>qb,H3:()=>Kb,H4:()=>Gb,H5:()=>Yb,H6:()=>Xb,Headline:()=>ox,Hgroup:()=>mx,HgroupButton:()=>bx,HgroupRows:()=>yx,Hoverable:()=>$b,Hr:()=>fx,I:()=>cx,Icon:()=>Ox,IconButton:()=>zx,IconText:()=>Rx,Iframe:()=>Pb,Img:()=>Ob,Inline:()=>kb,InlineFlex:()=>Cb,InlineGrid:()=>Eb,Input:()=>xx,Italic:()=>rx,KangorooButton:()=>Vx,Li:()=>dx,Link:()=>Dh,Notification:()=>n_,NumberInput:()=>_x,Ol:()=>hx,P:()=>Jb,Picture:()=>Nb,Radio:()=>kx,RadioHgroup:()=>vx,Range:()=>Jx,RouteLink:()=>Fx,RouterLink:()=>Lh,SHAPES:()=>Xc,Select:()=>Mx,Shape:()=>uh,Span:()=>Wb,SquareButton:()=>jx,Strong:()=>Qb,Subhead:()=>sx,Svg:()=>Bb,Text:()=>zb,Textarea:()=>Ex,TextareaWithButton:()=>Tx,Theme:()=>Mb,Title:()=>nx,Toggle:()=>Cx,ToggleHgroup:()=>Ax,Tooltip:()=>Kx,TooltipHidden:()=>Gx,TooltipParent:()=>Yx,U:()=>tx,Ul:()=>px,Underline:()=>ex,Video:()=>Vb,depth:()=>Jc,getSystemGlobalTheme:()=>Ei});var ih={};$(ih,{Block:()=>wb,Flex:()=>vb,Grid:()=>Ab,Gutter:()=>Tb,Inline:()=>kb,InlineFlex:()=>Cb,InlineGrid:()=>Eb});var wb={display:"block"},kb={display:"inline"},vb={display:"flex"},Cb={display:"inline-flex"},Ab={display:"grid"},Eb={display:"inline-grid"},Tb={boxSize:"C1"};var ah={};$(ah,{Img:()=>Ob});O();var Ob={tag:"img",attr:{title:t=>t.title||t.alt,alt:t=>t.alt!=null?t.alt:t.title||"",src:t=>{let e=jt(t);return e&&e.src||t.src},srcset:t=>{let e=jt(t);return(e?Ds(e):"")||t.srcset}}};var ch={};$(ch,{Form:()=>Rb});var Rb={tag:"form"};var lh={};$(lh,{Iframe:()=>Pb});var Pb={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var fh={};$(fh,{Clickable:()=>Ib,Focusable:()=>Db,FocusableComponent:()=>Lb,Hoverable:()=>$b});var $v={appearance:"none",cursor:"pointer",fontFamily:"inherit"},$b={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},Ib={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},Db={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:t=>t.tabIndex}},Lb={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:$v};var hh={};$(hh,{Picture:()=>Nb});var ph={};$(ph,{Theme:()=>Mb,getSystemGlobalTheme:()=>Ei});var dh={};$(dh,{Circle:()=>Fb,SHAPES:()=>Xc,Shape:()=>uh,default:()=>Iv,depth:()=>Jc});O();var ae=A(),Jc={4:{boxShadow:`rgba(0,0,0,.10) 0 2${ae.unit.default} 4${ae.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${ae.unit.default} 6${ae.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${ae.unit.default} 10${ae.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${ae.unit.default} 16${ae.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${ae.unit.default} 26${ae.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${ae.unit.default} 42${ae.unit.default}`}},Qn=t=>et(t.shapeDirectionColor)||et(t.borderColor)||et(t.backgroundColor)||et(t.background),Yc=t=>{let e=Si.transition(t.transition,t);return e&&e.transition},Xc={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:Qn(t),transition:Yc(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:Qn(t),transition:Yc(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:Qn(t),transition:Yc(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:Yc(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Qn(t)} 25%, transparent 25%), linear-gradient(315deg, ${Qn(t)} 25%, transparent 25%)`},"&:after":{background:Qn(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)"}}}},uh={deps:{exec:ot,getSpacingBasedOnRatio:he,getMediaColor:kt},classlist:{shape:t=>t.deps.exec(Xc[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Xc[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}}},Fb={round:"100%"},Iv=uh;O();var Ei=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n==="auto"?null:n},Mb={deps:{depth:Jc},classlist:{depth:t=>!xt(t.depth)&&t.deps.depth[t.depth]}};var Nb={deps:{getSystemGlobalTheme:Ei},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Ei},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 gh={};$(gh,{AssetPicture:()=>jb});O();var jb={tag:"picture",children:t=>{let e=jt(t);if(e)return Ls(e,t.alt)}};var mh={};$(mh,{Svg:()=>Bb});var Bb={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=d=>`<use xlink:href="#${d}" />`,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 u=0;for(let d=0;d<i.length;d++)u=(u<<5)-u+i.charCodeAt(d)|0;return f=o[l]=`svg-${(u>>>0).toString(36)}`,n.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var yh={};$(yh,{Video:()=>Vb});O();var Vb={tag:"video",controls:!0,attr:{src:t=>{let e=jt(t);return e&&e.src||t.src}},children:t=>{let e=jt(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 bh={};$(bh,{Audio:()=>Ub});O();var Ub={tag:"audio",controls:!0,attr:{src:t=>{let e=jt(t);return e&&e.src||t.src}},children:t=>{let e=jt(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 xh={};$(xh,{B:()=>ax,Caption:()=>Zb,Data:()=>lx,Footnote:()=>ix,H1:()=>Hb,H2:()=>qb,H3:()=>Kb,H4:()=>Gb,H5:()=>Yb,H6:()=>Xb,Headline:()=>ox,I:()=>cx,Italic:()=>rx,P:()=>Jb,Span:()=>Wb,Strong:()=>Qb,Subhead:()=>sx,Text:()=>zb,Title:()=>nx,U:()=>tx,Underline:()=>ex});var zb={},Wb={tag:"span"},Hb={tag:"h1"},qb={tag:"h2"},Kb={tag:"h3"},Gb={tag:"h4"},Yb={tag:"h5"},Xb={tag:"h6"},Jb={tag:"p"},Zb={tag:"caption"},Qb={tag:"strong",fontWeight:"700"},tx={tag:"u"},ex={tag:"u"},rx={tag:"i"},nx={},ox={tag:"h6",fontSize:"B",fontWeight:500},sx={tag:"span",fontSize:"Z1"},ix={tag:"span",fontSize:"Z"},ax={tag:"b"},cx={tag:"i"},lx={tag:"data"};var _h={};$(_h,{Box:()=>Zc,Br:()=>ux,Hr:()=>fx,Li:()=>dx,Ol:()=>hx,Ul:()=>px});var Dv=t=>{if(!t.context)return;let{props:e,__ref:r}=t,n=Kt(e,t,{unpack:!1});r.__class=n},Zc={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:Dv},fx={tag:"hr",margin:"C1 0"},ux={tag:"br"},dx={tag:"li"},px={tag:"ul",childExtends:{extends:"Li"}},hx={tag:"ol",childExtends:{extends:"Li"}};var Sh={};$(Sh,{Hgroup:()=>mx,HgroupButton:()=>bx,HgroupRows:()=>yx});var gx=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},mx={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:gx,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:gx,margin:"0",color:"paragraph"}},yx={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},bx={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var wh={};$(wh,{Input:()=>xx});var xx={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 kh={};$(kh,{NumberInput:()=>_x});var _x={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 vh={};$(vh,{Checkbox:()=>Sx,CheckboxHgroup:()=>wx});var Sx={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",position:"absolute",opacity:"0",width:"1px",height:"1px",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},":focus-visible + div":{outline:"solid X blue.3",outlineOffset:"Z"},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"}}},wx={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Ch={};$(Ch,{Radio:()=>kx,RadioHgroup:()=>vx});var kx={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}},vx={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Ah={};$(Ah,{Toggle:()=>Cx,ToggleHgroup:()=>Ax});var Cx={extends:"Checkbox",Input:{role:"switch",":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}},Ax={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Eh={};$(Eh,{Textarea:()=>Ex,TextareaWithButton:()=>Tx});var Ex={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"}},Tx={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 Th={};$(Th,{FileIcon:()=>Px,Icon:()=>Ox,IconText:()=>Rx});var Ox={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=g=>{let p=g[".isActive"];if(p)return g.call("exec",p.name||p.icon)},l=(g,p,m)=>{let{semanticIcons:b}=m&&m.designSystem,{toCamelCase:x}=m&&m.utils,y=f(g,p),v=x(y).split(/([a-z])([A-Z])/g),E=v[1]?v[0]:y.split(".")[0].split(" ")[0],I=b&&b[E];if(I){let z=y.includes(".")?"sfsymbols."+y.split(".").slice(1).join("."):"sfsymbols";return y=I[z]||I[y.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${y}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},f=(g,p)=>{let{key:m}=g,b=g.call("exec",g.name||g.icon||m,g);return g.call("isString",b)&&b.includes("{{")&&(b=g.call("replaceLiteralsWithObjectFields",b)),g.call("isString",b)?b:m},u=t.src,h=J(()=>{let g=f(t,e);if(g.includes(" ")){let R=g.split(" ");g=R[0]+R.slice(1).map(P=>P.charAt(0).toUpperCase()+P.slice(1)).join("")}let p=a(g),m=p.split(/([a-z])([A-Z])/g),b=l(t,e,r);if(b){Object.assign(t,b);return}let x;t.isActive&&(x=c(t));let y=n[".isActive"];n&&n.isActive&&y&&y.icon&&(x=t.call("exec",y.icon||y.Icon.name||y.Icon.icon,t)),t.call("isString",x)&&x.includes("{{")&&(x=t.call("replaceLiteralsWithObjectFields",x));let _;o[x]&&(_=x),o[p]?_=p:o[m[0]+m[1]]?_=m[0]+m[1]:o[m[0]]?_=m[0]:i&&t.warn("Can't find icon:",g,_);let v=o[_],E=n&&n.src||u,I=s&&_,z=v||E||o.noIcon;if(!(t.spriteId===I&&t.src===z&&t.node&&t.node.innerHTML)&&(t.spriteId=I,t.src=z,typeof t.html=="function"&&t.node)){let R=t.context&&t.context.designSystem;R&&tt(R);try{let P=t.html(t,t.state,t.context);P!=null&&typeof P!="function"&&(t.node.innerHTML=P)}finally{R&&Z()}}},{depth:t.__ref&&t.__ref.path&&t.__ref.path.length||0});t.__ref&&(t.__ref.__effects||(t.__ref.__effects=[]),t.__ref.__effects.push(h))},attr:{viewBox:"0 0 24 24","aria-hidden":t=>t.ariaLabel||t.role==="img"?null:"true",focusable:"false"}},Rx={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},Px={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Fh={};$(Fh,{A:()=>Lx,Link:()=>Dh,RouteLink:()=>Fx,RouterLink:()=>Lh});var Ti={};$(Ti,{default:()=>jv,getActiveRoute:()=>Ih,lastLevel:()=>tl,lastPathname:()=>Qc,matchRoute:()=>Rh,parseQuery:()=>Ph,parseRoutePattern:()=>Oh,router:()=>Ie,runGuards:()=>$h});O();var Ix=/^:(.+)/,Dx=/^\*$/,$x=new Map,Oh=t=>{let e=$x.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(Ix);a?n.push({index:i,name:a[1]}):Dx.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return $x.set(t,s),s},Rh=(t,e,r=0)=>{let o=t.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||"");if(!e)return{key:null,content:null,params:{},routePath:s};let i=null,a=-1,c={};for(let l in e){if(l==="/*")continue;let f=Oh(l),u=Lv(o,f);u>a&&(a=u,i=l,c=Fv(o,f))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},Lv=(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(Ix.test(r[i]))o+=1;else if(Dx.test(r[i]))o+=.5;else return-1;return o},Fv=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},Ph=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},$h=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},Ih=(t=0,e)=>{e||(e=typeof k<"u"?k.location.pathname:"/");let n=e.split("/")[t+1];if(n)return`/${n}`},Qc,tl=0,Mv=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,Nv={level:tl,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,get scrollNode(){return typeof K<"u"&&(K.scrollingElement||K.documentElement)||null},scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},Ie=async(t,e,r={},n={})=>{let o=e||void 0,s=o?.context?.window||k,i=o?.context?.document||K,a={...Nv,...o.context.routerOptions,...n};tl=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=Mv(t);let u=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,d=new u(f+t),{pathname:h,search:g,hash:p}=d,m=Ph(g),b=o.node,x=p&&p!==s.location.hash.slice(1),y=h!==Qc;Qc=h;let _,v,E,I;if(a.useParamsMatching){let R=Rh(h,o.routes,a.level);_=R.key,v=R.routePath,E=R.content,I=R.params}else{_=Ih(a.level,h),v=_;let R=o.routes;E=R?R[_||"/"]||R["/*"]:null,I={}}let z=a.scrollToNode?b:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!E){a.onNotFound?a.onNotFound({pathname:h,route:_,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",h,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let R={pathname:h,route:_,params:I,query:m,hash:p,element:o,state:r},P=await $h(a.guards,R);if(P===!1)return;if(typeof P=="string")return Ie(P,e,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,h+(g||"")+(p||""))}catch{}if(y||!x){let R={route:_,routePath:v,hash:p,debugging:!1};Object.keys(I).length&&(R.params=I),Object.keys(m).length&&(R.query=m),a.updateState&&o.state.update(R,{preventContentUpdate:!0}),l&&a.removeOldElement&&o[l].remove();let P=o.__ref?.origin?.content,G={};if(P)for(let V in P){let Q=P[V];V==="__ref"||V==="props"||V==="node"||V==="parent"||V==="key"||(typeof Q=="string"||typeof Q=="number"||typeof Q=="boolean"||typeof Q=="object"&&Q!==null&&!Q.node&&!Q.__ref)&&(G[V]=Q)}let bt={...G,...typeof E=="object"?E:{extends:E}};a.useFragment&&(bt.tag="fragment");try{if(typeof o?.set!="function")return;o.set(bt,{contentElementKey:l})}catch(V){console.error("[smbls/router] failed to render route content",h,V)}}if(a.scrollToTop&&z?.scrollTo&&z.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&E[l]?.node?.scrollTo&&E[l].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),p){let R=i.getElementById(p);if(R&&z?.scrollTo){let P=R.getBoundingClientRect().top+b.scrollTop-(a.scrollToOffset||0);z.scrollTo({...a.scrollToOptions||{},top:P,left:0})}}or("routeChanged",o,a)},jv=Ie;var Bv=(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:u}=n,d=e.__ref.root,h=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!h){t.preventDefault();try{let g=d;if(u&&u.customRouterElement){let p=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),m=d;for(let b of p){if(!m||!m[b]){m=null;break}m=m[b]}m&&(g=m,d.routes&&(g.routes=d.routes))}(f.router||l.router||c.router||Ie)(a,g,{},{scrollToOptions:{behavior:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(g){console.warn(g)}}},Dh={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>xr(t,t.href)||xr(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:Bv},Lx={extends:"Link"},Lh={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:u}=n,d=e.__ref.root,h=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!h){t.preventDefault();try{let g=d;if(u&&u.customRouterElement){let p=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),m=d;for(let b of p){if(!m||!m[b]){m=null;break}m=m[b]}m&&(g=m,d.routes&&(g.routes=d.routes))}(f.router||l.router||c.router||Ie)(a,g,{},{scrollToOptions:{behavior:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(g){console.warn(g)}}}},Fx={extends:[Dh,Lh]};var Mh={};$(Mh,{Select:()=>Mx});var Mx={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 Nh={};$(Nh,{Button:()=>Nx,ButtonSet:()=>Ux,CircleButton:()=>Bx,IconButton:()=>zx,KangorooButton:()=>Vx,SquareButton:()=>jx});var Nx={extends:["IconText","FocusableComponent"],tag:"button",minHeight:"controlH",fontSize:"Z2",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"0 A",fontWeight:"700",fontFamily:"inherit",round:"radiusPill",disabled:t=>t.call("exec",t.disabled)},jx={extends:"Button",fontSize:"A",width:"A",minHeight:"auto",padding:"Z",aspectRatio:"1 / 1",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},Bx={extends:"SquareButton",round:"C"},Vx={extends:"Button",childExtends:"IconText"},Ux={tag:"nav",display:"flex",childExtends:"SquareButton"},zx={extends:["SquareButton","ClickableItem"],round:"Z"};var jh={};$(jh,{Dialog:()=>Wx,DialogFooter:()=>qx,DialogHeader:()=>Hx});var Wx={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Hx={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},qx={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 Bh={};$(Bh,{Tooltip:()=>Kx,TooltipHidden:()=>Gx,TooltipParent:()=>Yx});O();var Kx={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=>wt(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)}},Gx={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)}},Yx={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 Vh={};$(Vh,{Avatar:()=>Xx});var Vv=t=>{let r=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="32" fill="#71718A"/><text x="32" y="42" font-family="system-ui,sans-serif" font-size="28" font-weight="700" text-anchor="middle" fill="#fff">${String(t||"").trim().charAt(0).toUpperCase()||"?"}</text></svg>`;return"data:image/svg+xml;utf8,"+encodeURIComponent(r)},Xx={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"}`,onError:(t,e)=>{if(!e.node||e.node.__avatarFallbackApplied)return;e.node.__avatarFallbackApplied=!0;let r=e.node.getAttribute("alt")||(e.key!=="no-avatar"?e.key:"");e.node.src=Vv(r)},attr:{alt:t=>t.alt!=null?t.alt:t.text?t.call("exec",t.text,t):t.key&&t.key!=="no-avatar"?t.key:""}};var Uh={};$(Uh,{Range:()=>Jx});var Jx={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:En("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:En("#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 zh={};$(zh,{Dropdown:()=>Zx,DropdownList:()=>Qx,DropdownParent:()=>t_,DropdownParentFocus:()=>e_,DropdownSiblingFocus:()=>r_});var Zx={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"},Qx={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"}}},t_={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},e_={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()}}},r_={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 Wh={};$(Wh,{Notification:()=>n_});var n_={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 Yr=Object.assign({},ih,ah,ch,lh,fh,hh,gh,mh,dh,yh,bh,ph,xh,_h,Sh,wh,kh,vh,Ch,Ah,Eh,Th,Fh,Mh,Nh,jh,Bh,Vh,Uh,zh,Wh);function el(t){if(t==null)return 0;if(typeof t!="object")return o_(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let n=0;n<t.length;n++)e=(e^el(t[n]))*16777619;return e>>>0}let r=Object.keys(t).sort();for(let n=0;n<r.length;n++)e=(e^o_(r[n]))*16777619,e=(e^el(t[r[n]]))*16777619;return e>>>0}function o_(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e}function rl(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(!rl(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)||!rl(t[s],e[s]))return!1}return!0}function Hh(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=Hh(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 qh(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])?qh(t[n],o,r):t[n]=o}return t}function kr(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 eo(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function Oi(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():kr(e)}function s_(t){return t.split(`
|
|
72
72
|
`).map(kr).join(`
|
|
73
|
-
`)}var
|
|
74
|
-
${c}`}var
|
|
75
|
-
`)}function
|
|
76
|
-
${a}`}var qh=null;function nl(t){qh=t}var me={structuralHash:tl,deepEqual:el,mergeStructural:Wh,overwriteDeep:Hh,shortHash:kr,toKebab:Qn,sanitizeValue:Ti,batchShortHash:n_,atomicCssClass:s_,batchAtomicCss:a_,compoundCssClass:c_},l_=!1,rl=null;function f_(t){return rl||(rl=import(t||"@symbo.ls/wasm/pkg").then(e=>(e.structuralHash&&(me.structuralHash=e.structuralHash),e.deepEqual&&(me.deepEqual=e.deepEqual),e.mergeStructural&&(me.mergeStructural=e.mergeStructural),e.overwriteDeep&&(me.overwriteDeep=e.overwriteDeep),e.shortHash&&(me.shortHash=e.shortHash),e.toKebab&&(me.toKebab=e.toKebab),e.sanitizeValue&&(me.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(me.batchShortHash=e.batchShortHash),e.atomicCssClass&&(me.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(me.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(me.compoundCssClass=e.compoundCssClass),l_=!0,qh&&e.batchAtomicCss&&qh({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),rl)}function u_(){return l_}O();var Oi={};$(Oi,{CDN_PROVIDERS:()=>Ae,DOMQL_EVENTS:()=>Cf,DOMQ_PROPERTIES:()=>tr,ENV:()=>Vf,HTML_TAGS:()=>yn,METHODS:()=>dn,METHODS_EXL:()=>$o,NODE_ENV:()=>le,OPTIONS:()=>es,PACKAGE_MANAGER_TO_CDN:()=>cr,PARSED_DOMQ_PROPERTIES:()=>Po,PROPS_METHODS:()=>er,STATE_METHODS:()=>Fr,STATE_PROPERTIES:()=>vf,SVG_TAGS:()=>am,TYPES:()=>vo,UNIVERSAL_RESERVED_KEYS:()=>Za,addCaching:()=>Da,addContext:()=>Ia,addExtend:()=>du,addExtends:()=>Mt,addItemAfterEveryElement:()=>uf,addProtoToArray:()=>Eo,addRef:()=>Ra,applyCSS:()=>Gh,applyDependentState:()=>Pu,applyEvent:()=>Ba,applyEventUpdate:()=>Va,applyExtends:()=>fm,applyProps:()=>Yo,arrayContainsOtherArray:()=>nf,arraysEqual:()=>pf,arrayzeValue:()=>zr,buildImgSrcset:()=>$s,buildSourcesAndImg:()=>Is,cache:()=>Fu,call:()=>Qu,captureSnapshot:()=>ed,checkForStateTypes:()=>Eu,checkIfInherits:()=>ja,checkIfStringIsInArray:()=>mf,clone:()=>Ef,cloneAndMergeArrayExtend:()=>Vo,cloneFunction:()=>Xf,concatAddExtends:()=>lu,copyJavaScriptToClipboard:()=>Sd,copyStringToClipboard:()=>_d,createBasedOnType:()=>Oa,createElement:()=>Au,createElementExtends:()=>ya,createExtends:()=>zo,createExtendsFromKeys:()=>bn,createExtendsStack:()=>Sa,createIfConditionFlag:()=>Jf,createInheritedState:()=>Tu,createKey:()=>jo,createNestedObject:()=>Df,createNestedObjectByKeyPath:()=>Ru,createObjectWithoutPrototype:()=>fa,createParent:()=>Pa,createPath:()=>$a,createProps:()=>Xo,createPropsStack:()=>Ea,createRoot:()=>Cu,createScope:()=>Iu,createSnapshotId:()=>No,customDecodeURIComponent:()=>kf,customEncodeURIComponent:()=>wf,cutArrayAfterValue:()=>lf,cutArrayBeforeValue:()=>cf,debounce:()=>Bo,debounceOnContext:()=>Kf,decodeNewlines:()=>Sf,deepClone:()=>it,deepContains:()=>$f,deepDefaults:()=>As,deepDestringifyFunctions:()=>Jt,deepExtend:()=>ma,deepMerge:()=>Y,deepMergeExtends:()=>ke,deepStringifyFunctions:()=>Io,defineSetter:()=>Ju,destringifyGlobalScope:()=>Lo,detectHeightOnInit:()=>id,detectInfiniteLoop:()=>Nf,document:()=>K,encodeNewlines:()=>_f,error:()=>Ur,excludeKeysFromObject:()=>Bf,exec:()=>ot,extendCachedRegistry:()=>fu,extendStackRegistry:()=>Wo,extractArrayExtend:()=>qo,fetchLibraryData:()=>rc,fibonacciNumberByIndex:()=>ad,filterArrays:()=>hf,filterArraysFast:()=>gf,finalizeExtends:()=>wa,findClosestNumber:()=>ec,findClosestNumberInFactory:()=>yd,findInheritedState:()=>Na,findKeyPosition:()=>bf,flattenExtend:()=>xn,formatDate:()=>sd,generateHash:()=>pa,generateHeadArrayTags:()=>tc,generateKey:()=>Mo,generateMetaTags:()=>gd,get:()=>Gu,getActiveRoute:()=>$h,getCDNUrl:()=>ue,getCapitalCaseKeys:()=>gu,getCdnProviderFromConfig:()=>wn,getChildStateInKey:()=>Ma,getChildren:()=>ds,getContext:()=>xs,getCookie:()=>ru,getDB:()=>vs,getEmotionStylesheet:()=>Cd,getExtendsInElement:()=>pu,getExtendsStack:()=>Uo,getExtendsStackRegistry:()=>ga,getFrequencyInArray:()=>of,getHashedExtend:()=>Ho,getImportMapScript:()=>od,getInObjectByPath:()=>Mf,getLocalStorage:()=>ou,getNev:()=>Hf,getPageMetadata:()=>md,getParentStateInKey:()=>Fa,getPath:()=>ps,getQuery:()=>Cs,getRef:()=>Xu,getRoot:()=>ms,getRootContext:()=>bs,getRootData:()=>ys,getRootState:()=>gs,getRootStateInKey:()=>La,getSpreadChildren:()=>mu,global:()=>tf,hasFunction:()=>we,hasHandlerPlugin:()=>hn,hasOwnProperty:()=>Of,hashContent:()=>vn,inheritChildExtends:()=>xa,inheritChildPropsExtends:()=>ba,inheritParentProps:()=>Jo,inheritRecursiveChildExtends:()=>_a,init:()=>qe,initProps:()=>wu,is:()=>Dt,isArray:()=>T,isBoolean:()=>sa,isContextComponent:()=>yu,isCyclic:()=>jf,isDOMNode:()=>$t,isDate:()=>aa,isDefined:()=>It,isDevelopment:()=>nr,isEmpty:()=>ca,isEmptyObject:()=>Rf,isEqualDeep:()=>la,isFunction:()=>C,isHtmlElement:()=>wo,isLocal:()=>Wf,isLoudDevRuntime:()=>Ft,isMethod:()=>td,isMobile:()=>tu,isNode:()=>Me,isNot:()=>rf,isNotProduction:()=>jr,isNull:()=>ia,isNumber:()=>Se,isObject:()=>w,isObjectLike:()=>j,isPhoto:()=>cd,isProduction:()=>rr,isStaging:()=>zf,isState:()=>Ou,isString:()=>S,isStringFunction:()=>Yf,isTest:()=>da,isTesting:()=>Uf,isUndefined:()=>xt,isUniversallyReservedKey:()=>rd,isValidHtmlTag:()=>iu,isWrappedLibrary:()=>Ts,joinArrays:()=>ln,jointStacks:()=>uu,keys:()=>Xa,lastLevel:()=>Qc,lastPathname:()=>Zc,loadCssFile:()=>dd,loadJavascript:()=>pd,loadJavascriptFile:()=>ld,loadJavascriptFileEmbedSync:()=>ud,loadJavascriptFileSync:()=>fd,loadRemoteCSS:()=>hd,loadRemoteScript:()=>kn,log:()=>Zu,logGroupIf:()=>Qf,logIf:()=>Zf,lookdown:()=>qu,lookdownAll:()=>Ku,lookup:()=>Hu,lowercaseFirstLetter:()=>Lr,makeObjectWithoutPrototype:()=>Pf,map:()=>Af,mapStringsWithContextComponents:()=>Ko,matchRoute:()=>Oh,matchesComponentNaming:()=>ve,memoize:()=>Gf,merge:()=>ct,mergeSharedLibraries:()=>Os,nextElement:()=>Ss,normalizeIgnoreList:()=>Es,normalizeLibraryKey:()=>Cn,objectToString:()=>Do,objectizeStringProperty:()=>Go,overwrite:()=>Fo,overwriteDeep:()=>Lt,overwriteShallow:()=>Nr,overwriteState:()=>$u,parse:()=>Ja,parseDeep:()=>fs,parseQuery:()=>Rh,parseRoutePattern:()=>Th,pickupElementFromProps:()=>Ca,pickupPropsFromElement:()=>va,previousElement:()=>ws,propExists:()=>_u,propertizeElement:()=>Aa,propertizeUpdate:()=>xu,reinit:()=>Kh,remove:()=>Fm,removeChars:()=>wd,removeCookie:()=>nu,removeDuplicateProps:()=>Qo,removeDuplicatesInArray:()=>fn,removeFromArray:()=>sf,removeFromObject:()=>If,removeNestedKeyByPath:()=>Lf,removeValueFromArray:()=>Ao,removeValueFromArrayAll:()=>ff,reorderArrayByValues:()=>df,replaceLiteralsWithObjectFields:()=>Dr,replaceOctalEscapeSequences:()=>xf,resolveAsset:()=>Nt,resolveHandler:()=>gn,resolveSharedLibraries:()=>xd,returnValueAsText:()=>Ta,router:()=>Ie,runGuards:()=>Ph,runPluginHook:()=>At,scratchSystem:()=>Ln,scratchUtils:()=>dr,self:()=>ef,set:()=>qr,setActiveRootState:()=>hs,setCookie:()=>eu,setHashedExtend:()=>ha,setInObjectByPath:()=>Ff,setLocalStorage:()=>su,setNodeStyles:()=>Ya,setProps:()=>Yu,setPropsPrototype:()=>Zo,sharedLibrary:()=>bd,spotByPath:()=>us,srcsetFor:()=>An,stringIncludesAny:()=>Oo,stringToObject:()=>Tf,swapItemsInArray:()=>af,syncProps:()=>ts,toCamelCase:()=>Rs,toDashCase:()=>Ps,toDescriptionCase:()=>vd,toTitleCase:()=>kd,toggleFullscreen:()=>nd,triggerEventOn:()=>or,triggerEventOnUpdate:()=>Du,trimStringFromSymbols:()=>yf,unstackArrayOfObjects:()=>Co,update:()=>Su,updateProps:()=>ku,variables:()=>ks,verbose:()=>Sn,warn:()=>_s,window:()=>k});O();O();var Kv=A(),d_=(t=Kv,e)=>{let r=w(e.localFile)?e.localFile:{},n=it(r.designSystem||{});return Y(t,n)},Gv={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},qe=(t,e=Gv)=>{let r=d_(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=qr({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=Ls(i.font,i.files),c=i.useReset,l=i.useVariable,f=i.useFontImport,u=i.useSvgSprite,d=t.svg,h=i.useIconSprite,g=t.icons;if(f&&ht(a),l&&(ht({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let b in i.CSS_MEDIA_VARS)b.startsWith("@media")?m[b]={[o]:i.CSS_MEDIA_VARS[b]}:m[b]=i.CSS_MEDIA_VARS[b];ht(m)}c&&ht(i.reset);let p=i.animation;if(p){let m={};for(let b in p)m[`@keyframes ${b}`]=p[b];ht(m)}return(d||u)&&ci(i.svg,{document:e.document}),(g||h)&&fi(i.icons,{document:e.document}),i},ol={},Kh=(t,e=ol)=>{let r=d_(t||{},e),n=e.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=qr({verbose:!1,...r});if(!e.preventInject){if(ht({[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];ht(i)}ht(s.reset)}return s},Gh=(t,e=ol)=>{ht(t)},Yv=(t,e=ol)=>{let r=e.scopeSelector||":root",n=r===":root"?":root:not([data-theme])":`${r}:not([data-theme])`;if(ht({[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];ht(o)}};var Xv=(t,e=ol)=>{};O();var p_=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,Yh={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},Ri=(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},h_=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=Yh:e.router=ct(e.router||{},Yh);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=p_(c);let u=c+l+f,d=s;if(r.customRouterElement){let h=Ri(s,r.customRouterElement);h&&(d=h,s.routes&&(d.routes=s.routes))}d.routes&&await Ie(u,d,{},{initialRender:!0,pushState:!1})},o=!xt(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.onRenderRouter=n),Jv(e,r),r},Xh=(t,e)=>{if(e.router===!1)return;let r=e.router||Yh;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:Ie,o=e.window||k,s=async i=>{let{pathname:a,search:c,hash:l}=o.location;a=p_(a);let f=a+c+l,u=t;if(r.customRouterElement){let d=Ri(t,r.customRouterElement);d&&(u=d,t.routes&&(u.routes=t.routes))}await u.call("router",f,u,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};o.addEventListener("popstate",s),e.__teardowns=e.__teardowns||[],e.__teardowns.push(()=>o.removeEventListener("popstate",s))},Jv=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return Y(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};O();var Jh=k&&k.location?k.location.host.includes("dev."):nr(),g_=Jh?"http://localhost:8080/get":"https://api.symbols.app/get",Zv={endpoint:g_},m_=async(t,e=Zv)=>{let r=e.endpoint||g_,n=e.serviceRoute?T(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)}},Qv=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await m_(t,r),o=Jh||e.isDevelopment?Jt(n):Jt(n.releases[0]);r.serviceRoute?T(r.serviceRoute)?r.serviceRoute.forEach(s=>{Lt(e[s],o[s.toLowerCase()])}):Lt(e[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{Lt(e[s],o[s.toLowerCase()])})}return e},tC=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await m_(t,n),s=Jh||e.isDevelopment?Jt(o):Jt(o.releases[0]);r(s)}},y_=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await Qv(t,e)}catch(r){console.error(r)}},b_=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&tC(e,r,n||(o=>{let s=o.designSystem;w(s)&&r.utils.init(s),w(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};var Pi=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{wr(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};var tg={};$(tg,{Helmet:()=>S_,applyMetadata:()=>to,default:()=>iC,extractMetadata:()=>nC,generateHeadHtml:()=>sC,helmetPlugin:()=>Qh,resolveMetadata:()=>vr});O();var eC={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"}},rC=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}"]`},x_=t=>Jt({v:t}).v,__=(t,e,r,n)=>{try{return ot(t,e,r)}catch(o){console.warn(`[helmet] metadata factory for "${n}" threw; treating as unset:`,o&&o.message||o);return}},vr=(t,e,r)=>{if(!t)return{};let n=t;S(n)&&we(n)&&(n=x_(n));let o=C(n)?__(n,e,r,"metadata"):w(n)?{...n}:{};if(!w(o))return{};for(let s in o){let i=o[s];S(i)&&we(i)&&(i=x_(i)),C(i)?i=__(i,e,r,s):S(i)&&we(i)&&(i=void 0),S(i)&&i.includes("{{")&&e?.call&&(i=e.call("replaceLiteralsWithObjectFields",i,r)),o[s]=i}return o},nC=(t,e="/",r,n)=>{let s=(t.pages||{})[e],i={};if(t.integrations?.seo&&(i={...t.integrations.seo}),t.app?.metadata){let c=vr(t.app.metadata,r,n);i={...i,...c}}let a=new Set;if(s){let c=s.metadata||s.helmet||{},l=vr(c,r,n);for(let f in l)a.add(f);i={...i,...l},!i.title&&s.state?.title&&(i.title=s.state.title,a.add("title")),!i.description&&s.state?.description&&(i.description=s.state.description,a.add("description"))}if(i.title||(i.title=t.name||"Symbols"),i.title&&(a.has("title")||!i["og:title"])&&(a.has("og:title")||(i["og:title"]=i.title)),i.description&&(a.has("description")||!i["og:description"])&&(a.has("og:description")||(i["og:description"]=i.description)),i.title&&!i["twitter:title"]&&(i["twitter:title"]=i.title),i.description&&!i["twitter:description"]&&(i["twitter:description"]=i.description),i["og:url"]||i.url){let c=(i["og:url"]||i.url||"").replace(/\/$/,"");if(c&&e&&e!=="/"){let l=e.startsWith("/")?e:"/"+e;i["og:url"]=c+l}}if(t.files)for(let c in i){let l=i[c];if(typeof l=="string"&&l.length>0&&!l.startsWith("/")&&!l.startsWith("http")){let f=t.files[l];f?.src&&(i[c]=f.src)}}return i},oC=(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},$i=t=>{let e=5381,r=String(t);for(let n=0;n<r.length;n++)e=(e*33^r.charCodeAt(n))>>>0;return e.toString(36)},Zh=(t,e,r,n)=>{let o=t.head||t.querySelector("head");if(!o)return;let s=new Map;for(let a of o.querySelectorAll(`[${e}]`))s.set(a.getAttribute(e),a);let i=new Set;for(let a of r)i.add(a);for(let[a,c]of s)i.has(a)||c.remove();for(let a of r){if(s.has(a))continue;let c=n(a);c&&(c.setAttribute(e,a),o.appendChild(c))}},to=(t,e)=>{if(!(!w(t)||!e)){for(let r in t){let n=t[r];if(n==null||r==="jsonLd"||r==="styles"||r==="scripts")continue;let o=eC[r];if(!o)continue;let s=rC(o),i=e.querySelector(s)||oC(o,e);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}if(Array.isArray(t.jsonLd)){let n=t.jsonLd.filter(s=>s!=null).map(s=>S(s)?s:JSON.stringify(s)),o=n.map($i);Zh(e,"data-smbls-jsonld",o,s=>{let i=o.indexOf(s),a=e.createElement("script");return a.setAttribute("type","application/ld+json"),a.textContent=n[i],a})}if(Array.isArray(t.styles)){let r=t.styles.filter(o=>o!=null&&String(o).trim()),n=r.map($i);Zh(e,"data-smbls-style",n,o=>{let s=n.indexOf(o),i=e.createElement("style");return i.textContent=String(r[s]),i})}if(Array.isArray(t.scripts)){let r=t.scripts.filter(o=>o&&(S(o)?o.trim():o.src)),n=r.map(o=>S(o)?o:String(o.src));Zh(e,"data-smbls-script",n,o=>{let s=n.indexOf(o),i=r[s],a=e.createElement("script");return S(i)?a.setAttribute("src",i):(i.src&&a.setAttribute("src",i.src),i.type&&a.setAttribute("type",i.type),i.async&&(a.async=!0),i.defer&&(a.defer=!0),i.integrity&&a.setAttribute("integrity",i.integrity),i.crossorigin&&a.setAttribute("crossorigin",i.crossorigin),i.referrerpolicy&&a.setAttribute("referrerpolicy",i.referrerpolicy),i.nomodule&&(a.noModule=!0),i.body&&(a.textContent=String(i.body))),a})}}},rt=t=>{if(t==null)return"";let e={"&":"&","<":"<",">":">",'"':""","'":"'"};return t.toString().replace(/[&<>"']/g,r=>e[r])},sC=t=>{let e=['<meta charset="UTF-8">'],r=new Set(["charset","jsonLd","styles","scripts"]),n=!1;for(let[o,s]of Object.entries(t)){if(!s&&s!==0&&s!==!1||r.has(o)||typeof s=="function")continue;if(o==="title"){e.push(`<title>${rt(s)}</title>`);continue}if(o==="viewport"){n||(e.push(`<meta name="viewport" content="${rt(s)}">`),n=!0);continue}if(o==="canonical"){e.push(`<link rel="canonical" href="${rt(s)}">`);continue}if(o==="icon"||o==="favicon"){let f=rt(s),u=f.endsWith(".svg")?' type="image/svg+xml"':f.endsWith(".png")?' type="image/png"':"";e.push(`<link rel="icon" href="${f}"${u}>`);continue}if(o==="favicons"&&Array.isArray(s)){s.forEach(f=>{if(typeof f=="object"){let u=Object.entries(f).map(([d,h])=>`${d}="${rt(h)}"`).join(" ");e.push(`<link rel="icon" ${u}>`)}else typeof f=="string"&&e.push(`<link rel="icon" href="${rt(f)}">`)});continue}if(o==="alternate"&&Array.isArray(s)){s.forEach(f=>{if(typeof f=="object"){let u=Object.entries(f).map(([d,h])=>`${d}="${rt(h)}"`).join(" ");e.push(`<link rel="alternate" ${u}>`)}});continue}let i=["og:","article:","product:","fb:","profile:","book:","business:","music:","video:"],a=["twitter:","DC:","DCTERMS:"],c=i.some(f=>o.startsWith(f)),l=a.some(f=>o.startsWith(f));if(o.startsWith("http-equiv:")){let f=o.replace("http-equiv:","");e.push(`<meta http-equiv="${rt(f)}" content="${rt(s)}">`)}else if(o.startsWith("itemprop:")){let f=o.replace("itemprop:","");e.push(`<meta itemprop="${rt(f)}" content="${rt(s)}">`)}else c?Array.isArray(s)?s.forEach(f=>e.push(`<meta property="${rt(o)}" content="${rt(f)}">`)):e.push(`<meta property="${rt(o)}" content="${rt(s)}">`):l?e.push(`<meta name="${rt(o)}" content="${rt(s)}">`):Array.isArray(s)?s.forEach(f=>e.push(`<meta name="${rt(o)}" content="${rt(f)}">`)):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&e.push(`<meta name="${rt(o)}" content="${rt(s)}">`)}if(n||e.splice(1,0,'<meta name="viewport" content="width=device-width, initial-scale=1">'),Array.isArray(t.jsonLd))for(let o of t.jsonLd){if(o==null)continue;let s=typeof o=="string"?o:JSON.stringify(o),i=String(s).replace(/<\/script/gi,"<\\/script");e.push(`<script type="application/ld+json" data-smbls-jsonld="${$i(s)}">${i}<\/script>`)}if(Array.isArray(t.styles))for(let o of t.styles){if(o==null||!String(o).trim())continue;let s=String(o).replace(/<\/style/gi,"<\\/style");e.push(`<style data-smbls-style="${$i(s)}">${s}</style>`)}if(Array.isArray(t.scripts))for(let o of t.scripts){if(!o)continue;let s=typeof o=="string",i=s?o:o.src;if(!i&&!(o&&o.body))continue;let a=[];i&&a.push(`src="${rt(i)}"`),s||(o.type&&a.push(`type="${rt(o.type)}"`),o.async&&a.push("async"),o.defer&&a.push("defer"),o.integrity&&a.push(`integrity="${rt(o.integrity)}"`),o.crossorigin&&a.push(`crossorigin="${rt(o.crossorigin)}"`),o.referrerpolicy&&a.push(`referrerpolicy="${rt(o.referrerpolicy)}"`),o.nomodule&&a.push("nomodule"));let c=` data-smbls-script="${rt(i||$i(o.body||""))}"`;if(!s&&o.body){let l=String(o.body).replace(/<\/script/gi,"<\\/script");e.push(`<script ${a.join(" ")}${c}>${l}<\/script>`)}else e.push(`<script ${a.join(" ")}${c}><\/script>`)}return e.join(`
|
|
77
|
-
`)},S_={define:{metadata:(t,e,r)=>{let n=e.context?.document||typeof document<"u"&&document;if(!n)return;let o=J(()=>{let s=vr(t,e,e.state);to(s,n);let i=e.state?.root;w(i)&&(i.$helmet=s)});e.__ref?.__effects&&e.__ref.__effects.push(o)}}},Qh={name:"helmet",create(t){if(!t.metadata)return;let e=t.context?.document||typeof document<"u"&&document;if(!e)return;let r=J(()=>{let n=t.metadata;if(!n)return;let o=vr(n,t,t.state);to(o,e)});t.__ref?.__effects&&t.__ref.__effects.push(r)},update(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=vr(e,t,t.state);to(n,r)}},iC=S_;ir();var w_=(t,e,r,n)=>{t&&ls(t,e,r,n)},k_=(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<"u"&&document;if(!n)return;let o=vr(t,e,r);to(o,n)},v_=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},eo={routes:t=>t,metadata:k_,fetch:w_,$router:v_},C_=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=k_),t.fetch!==!1&&(e.fetch=w_),t.router!==!1&&(e.$router=v_),e};var eg={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},sl={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},il={...eg,router:sl},aC={state:{},pages:{},components:{},router:sl,define:eo},Cr=aC;O();O();var A_=(t,e)=>j(t.extends)?t.extends:[];O();var O_=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&&!globalThis.__smblsRouterUrlWarned&&(globalThis.__smblsRouterUrlWarned=!0,console.warn("[smbls/router] context.window lacks URL, falling back to globalThis \u2014 passed-in window may be a stub (warned once; applies to every embed app this session)")),t.window=e):t.window=n||e,t.window},E_=(t="smbls")=>{let e={};for(let r in Yr)Object.prototype.hasOwnProperty.call(Yr,r)&&(ve(r)?e[`smbls.${r}`]=Yr[r]:e[r]=Yr[r]);return e},R_=t=>t.components?{...E_(),...t.components}:E_(),P_=t=>({...Oi,...Ei,...dr,...t.utils,...t.snippets,...t.functions}),$_=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),cC=/^node:|^@symbo-ls\//,I_=t=>typeof t=="string"&&cC.test(t),lC=/[<>…]/,fC=t=>typeof t=="string"&&lC.test(t),uC=t=>typeof globalThis<"u"&&globalThis.__SMBLS_PKGS__&&globalThis.__SMBLS_PKGS__[t]||null,T_={},D_=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=cr[s]||wn(i)||"esmsh"),!t)return null;let a=!1;for(let u in t){a=!0;break}if(!a)return null;let c=nr()&&n?`?${Math.random()}`:"",l=async(u,d)=>{let h=ue(u,d,o)+c;try{await Promise.race([kn(h,{document:r,type:"module"}),new Promise((g,p)=>setTimeout(()=>p(new Error(`Timeout loading ${u}`)),1e4))])}catch(g){if(console.error(`Failed to load ${u} from ${o}:`,g),o!=="symbols")try{let p=ue(u,d,"symbols")+c;await Promise.race([kn(p,{document:r,type:"module"}),new Promise((m,b)=>setTimeout(()=>b(new Error(`Timeout fallback ${u}`)),2e4))]),console.log(`Successfully loaded ${u} from fallback (symbols.ls)`)}catch(p){console.error(`Failed to load ${u} from fallback:`,p)}}},f=[];for(let u in t){let d=t[u];if(!(e&&e[u])&&!T_[u]&&(T_[u]=!0,!I_(u))){if(fC(u)){console.warn(`[smbls] dependency "${u}" looks like an un-interpolated template placeholder, not a real package specifier \u2014 skipping the CDN fetch (this is a bug upstream of the dependency loader, not a network failure).`);continue}uC(u)||f.push(l(u,d))}}return f.length&&await Promise.allSettled(f),t},L_=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||wn(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,u=i.window||window;if(!u.packages[a]&&I_(a))return await u.require(a,c);if(!u.packages[a]){let d=nr()?`?${Math.random()}`:"";if(l&&l[a]){let h=l[a],g=ue(a,h,c)+d;try{await i.utils.loadRemoteScript(g,{window:u,document:f})}catch(p){if(console.error(`Failed to load ${a} from ${c}:`,p),c!=="symbols"){let m=ue(a,h,"symbols")+d;await i.utils.loadRemoteScript(m,{window:u,document:f})}}}else{let h=ue(a,"latest",c)+d;try{await i.utils.loadRemoteScript(h,{window:u,document:f})}catch(g){if(console.error(`Failed to load ${a} from ${c}:`,g),c!=="symbols"){let p=ue(a,"latest","symbols")+d;await i.utils.loadRemoteScript(p,{window:u,document:f})}}u.packages[a]="loadedOnDeman"}}return await u.require(a,c)};r.packages?r.packages=ct(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)},dC=/\s+/g,F_=(t,e)=>typeof t=="function"?t(e,e?.state,e?.context):t,pC=(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+=` ${F_(o,e)}`)}return r},hC=(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=pC(t,e));let o=t.replace(dC," ").trim();if(r&&typeof r.setAttribute=="function")r.setAttribute("class",o);else if(r)try{r.className=o}catch{}return o},gC=()=>(t,e,r)=>{let n=F_(t,e);if(t){let{__ref:o}=e;o.__class.style=n}M_()(e.classlist,e,e.state,!0)},M_=()=>(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=ne(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];e.node&&hC(i,e,e.node)}},mC=()=>({style:gC(),classlist:M_()}),yC=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],rg=new WeakSet,ng=!1,bC=t=>!!t&&typeof t=="object",N_=(t,e)=>{let r=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,n=e.initOptions||{},o=e.registry||mC(),s=e.designSystem?Y(it(e.designSystem),Ci):it(Ci),i={};for(let m of yC)e[m]!==void 0&&(i[m]=e[m]);let a,c=bC(r),f=c&&rg.has(r)&&!e.skipDesignSystemInit,u=!f&&!ng,d=f?`[data-smbls-app="${t}"]`:":root";e.scopeSelector=d;let h=d===":root"?":root:not([data-theme])":`${d}:not([data-theme])`;if(e.skipDesignSystemInit){if(a=A(t)||A(),a&&(a.__domDocument=r),a?.CSS_VARS){tt(a);try{if(ht({[d]:a.CSS_VARS}),a.CSS_MEDIA_VARS){let m={};for(let b in a.CSS_MEDIA_VARS)b.startsWith("@media")?m[b]={[h]:a.CSS_MEDIA_VARS[b]}:m[b]=a.CSS_MEDIA_VARS[b];ht(m)}}finally{Z()}}}else if(u){let m=A();m&&(m.__domDocument=r),a=qe(s,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:d,...il,...i,...n}),a&&a!==m&&(a.__domDocument=r),c&&rg.add(r),ng=!0}else{let m=xc(t,s,{cleanBase:!0});for(let b in i)m[b]=i[b];if(m.__domDocument=r,f){let b=t.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);e.cssPrefix=b,m.varPrefix=b}tt(m);try{a=qe(m,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:d,...il,...i,...n})}finally{Z()}c&&rg.add(r),ng=!0}let g=a?.CONFIG||a,p=g?.font;if(p){tt(g);try{for(let m in p){let b=p[m];if(!b?.fontFace)continue;let x=Array.isArray(b.fontFace)?b.fontFace:[b.fontFace];for(let y of x)typeof y=="string"&&y.includes("font-family")&&ht(`@font-face { ${y} }`)}}finally{Z()}}return[a,o]},j_=(t,e)=>{let r={};e.state&&Y(r,e.state),t&&t.state&&Y(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,it(r)},B_=(t,e)=>{w(t.routes)&&w(e.pages)&&ct(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},V_=t=>{Os(t,t.sharedLibraries)};var og={};$(og,{default:()=>SC,getActiveLang:()=>no,getLanguages:()=>Di,getLocalStateLang:()=>ji,initPolyglot:()=>cl,loadTranslations:()=>Fi,polyglotPlugin:()=>oo,setLang:()=>Mi,translate:()=>Li,upsertTranslation:()=>Ni});O();var z_="smbls_lang",xC="smbls_t_",_C="smbls_tv_",ro={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)}}},Ii={};function no(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||e?.defaultLang||"en"}function Di(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var al=(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},U_=(t,e,r)=>{let n=e.lastIndexOf(".");if(n===-1)return t[e+"_"+r];let o=al(t,e.substring(0,n));if(o!=null)return o[e.substring(n+1)+"_"+r]};function Li(t,e){if(!t)return"";let r=this?.context,n=r?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let l=U_(s,t,o);if(l!==void 0)return l}if(n?.translations){let l=n.translations[o];if(l){let f=al(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=al(l,t);if(f!==void 0)return f}}let c=n?.defaultLang||"en";if(s){let l=U_(s,t,c);if(l!==void 0)return l}if(n?.translations){let l=n.translations[c];if(l){let f=al(l,t);if(f!==void 0)return f}}return t}async function Fi(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!r||!n)return;let o=r.storagePrefix||xC,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):_C);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!n.translations?.[t]){let c=ro.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(Ii[i])return Ii[i];let a=this;return Ii[i]=(async()=>{try{let c=r.fetch,l=parseInt(ro.get(s+t),10)||0,f,u,d;if(C(c)){let g=await c(t,l,a);if(!g||g.changed===!1)return;f=g.translations||g.data||g,u=g.version||0,d=!0}else if(w(c)){let g=a.getDB||(()=>e.fetch),p=C(g)?await g.call(a):e.fetch;if(!p)return;let m=c.rpc||c.from||"get_translations_if_changed",b={p_lang:t,p_cached_version:l,...c.params||{}},x=await p.rpc({from:m,params:b});if(x.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,x.error;let y=x.data;if(!y||!y.changed)return;f=y.translations||{},u=y.version||0,d=!0}else return;if(!d||!f)return;ro.set(o+t,JSON.stringify(f)),u&&ro.set(s+t,String(u));let h={translations:{...n.translations||{}}};h.translations[t]=f,n.update&&n.update(h)}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 Ii[i]}})(),Ii[i]}async function Mi(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||z_;ro.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 u=f.__ref?.__exec?.text;if(typeof u=="string"&&u.includes("{{"))try{let d=f.call("replaceLiteralsWithObjectFields",u,f.state);d!=null&&l.textContent!==d&&(l.textContent=d)}catch{}}}}async function Ni(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&&w(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 cl(){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||z_,s=ro.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 ji(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 oo={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,cl.call(t))}},SC=oo;var Bi={polyglot:Li,getLocalStateLang:ji,getActiveLang:no,getLang:no,setLang:Mi,getLanguages:Di,loadTranslations:Fi,upsertTranslation:Ni};ir();var ig={};$(ig,{SYSTEM_METRICS:()=>Vi,capsizeHandler:()=>sg,capsizePlugin:()=>fl,computeCapsize:()=>W_,default:()=>wC,resolveFontSizePx:()=>H_,resolveMetrics:()=>q_});var Vi={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}},ll=t=>parseFloat(t.toFixed(4)),W_=(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,u=f/t,d=l/i,h=(n-a+s/2)/i-(u-d)/2,g=(c+s/2)/i-(u-d)/2;return{fontSize:`${ll(t/16)}rem`,lineHeight:`${ll(f)}px`,capHeightTrim:`${ll(-h)}em`,baselineTrim:`${ll(-g)}em`}},H_=(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},q_=(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(Vi[i])return Vi[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(Vi[a])return Vi[a]}}return null},sg=(t,e,r,n)=>{if(!t)return;let o=H_(e.fontSize,n);if(!o)return;let s=q_(e.fontFamily,n);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=W_(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},fl={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}},wC=fl;var pg={};$(pg,{PRESERVE_VALUE_KEYS:()=>vt,SKIP_INLINE_KEYS:()=>Ar,abbrToProp:()=>kt,decode:()=>J_,encode:()=>G_,expand:()=>Jr,isComponentKey:()=>ye,isSelectorKey:()=>be,parse:()=>Zr,parseFurther:()=>tn,propToAbbr:()=>ce,shorten:()=>Ui,shorthandPlugin:()=>zi,stringify:()=>Xr,stringifyFurther:()=>Qr});var ce={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"},kt=Object.create(null);for(let t in ce)kt[ce[t]]=t;var ag=Object.create(null);for(let t in ce){let e=ce[t];if(ag[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${ag[e]}"`);ag[e]=t}var vt=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]),Ar=new Set(["text","tx","html","htm","content","cnt","placeholder","phd","src","href","hrf"]);function ye(t){return/^[A-Z]/.test(t)}function be(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function G_(t){if(!t||typeof t!="object")return"";let e=[];for(let r in t){let n=t[r];if(typeof n=="function"||n!==null&&typeof n=="object"&&!Array.isArray(n)||n===void 0)continue;let o=ce[r]||r;if(n===!0)e.push(o);else if(n===!1)e.push("!"+o);else if(Array.isArray(n)){let s=n.map(i=>ul(i));e.push(o+":"+s.join(","))}else e.push(o+":"+ul(n))}return e.join(" ")}function ul(t){return String(t).replace(/ /g,"_")}function Ui(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Ui(r):r});let e={};for(let r in t){let n=t[r];if(ye(r)){e[r]=cg(n);continue}if(be(r)){e[r]=cg(n);continue}let o=ce[r]||r;if(vt.has(r)||vt.has(o)){e[o]=n;continue}e[o]=cg(n)}return e}function cg(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ui(e):e}):typeof t=="object"?Ui(t):t}function Xr(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Xr(n):n});let e={},r=[];for(let n in t){let o=t[n];if(ye(n)){e[n]=K_(o);continue}if(be(n)){e[n]=K_(o);continue}let s=ce[n]||n;if(vt.has(n)||vt.has(s)){e[s]=o;continue}if(typeof o=="function"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(Ar.has(n)||Ar.has(s)){e[s]=o;continue}if(Array.isArray(o)){if(o.some(function(a){return a!==null&&typeof a=="object"})){e[s]=o.map(function(a){return a!==null&&typeof a=="object"?Xr(a):a});continue}if(o.length<=1){e[s]=o;continue}r.push(s+":"+o.map(ul).join(","));continue}if(typeof o=="object"){e[s]=Xr(o);continue}o===!0?r.push(s):o===!1?r.push("!"+s):typeof o=="number"||typeof o=="string"&&(o.includes(",")||o.includes("_"))?e[s]=o:r.push(s+":"+ul(o))}return r.length&&(e.in=r.join(" ")),e}function K_(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Xr(e):e}):typeof t=="object"?Xr(t):t}function J_(t){if(!t||typeof t!="string")return{};let e={},r=Z_(t);for(let n of r){if(n.startsWith("!")){let c=n.slice(1),l=kt[c]||c;e[l]=!1;continue}let o=n.indexOf(":");if(o===-1){let c=kt[n]||n;e[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=kt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(Y_);continue}e[a]=Y_(i)}return e}function Z_(t){return t.trim().split(/\s+/).filter(Boolean)}function Y_(t){let e=t.replace(/_/g," ");return/^-?\d+(\.\d+)?$/.test(e)?Number(e):e}function X_(t){return t.replace(/_/g," ")}function kC(t){if(!t||typeof t!="string")return{};let e={},r=Z_(t);for(let n of r){if(n.startsWith("!")){let c=n.slice(1),l=kt[c]||c;e[l]=!1;continue}let o=n.indexOf(":");if(o===-1){let c=kt[n]||n;e[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=kt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(X_);continue}e[a]=X_(i)}return e}function Jr(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Jr(r):r});let e={};for(let r in t){let n=t[r];if(ye(r)){e[r]=lg(n);continue}let o=kt[r]||r;if(be(r)&&o===r){e[r]=lg(n);continue}if(vt.has(o)||vt.has(r)){e[o]=n;continue}e[o]=lg(n)}return e}function lg(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Jr(e):e}):typeof t=="object"?Jr(t):t}function Zr(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Zr(r):r});let e={};if(typeof t.in=="string"){let r=kC(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(ye(r)){e[r]=fg(n);continue}let o=kt[r]||r;if(be(r)&&o===r){e[r]=fg(n);continue}if(vt.has(o)||vt.has(r)){e[o]=n;continue}e[o]=fg(n)}return e}function fg(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Zr(e):e}):typeof t=="object"?Zr(t):t}function Q_(t){return String(t).replace(/\\/g,"\\\\").replace(/_/g,"\\_").replace(/,/g,"\\,").replace(/ /g,"_")}function vC(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 CC(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 tS(t){if(t==null||typeof t!="object"||Array.isArray(t))return!1;let e=Object.keys(t);return e.length===1&&e[0]==="in"&&typeof t.in=="string"}function Qr(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Qr(n):n});let e={},r=[];for(let n in t){let o=t[n];if(ye(n)){let i=eS(o);e[n]=tS(i)?i.in:i;continue}if(be(n)){let i=eS(o);e[n]=tS(i)?i.in:i;continue}let s=ce[n]||n;if(vt.has(n)||vt.has(s)){e[s]=o;continue}if(typeof o=="function"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(Ar.has(n)||Ar.has(s)){e[s]=o;continue}if(Array.isArray(o)){if(o.some(function(a){return a!==null&&typeof a=="object"})){e[s]=o.map(function(a){return a!==null&&typeof a=="object"?Qr(a):a});continue}if(o.length<=1){e[s]=o;continue}r.push(s+":"+o.map(Q_).join(","));continue}if(typeof o=="object"){e[s]=Qr(o);continue}if(o===!0){r.push(s);continue}if(o===!1){r.push("!"+s);continue}if(typeof o=="number"){r.push(s+":#"+o);continue}r.push(s+":"+Q_(o))}return r.length&&(e.in=r.join(" ")),e}function eS(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Qr(e):e}):typeof t=="object"?Qr(t):t}function rS(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):vC(t)}function ug(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=kt[l]||l;e[f]=!1;continue}let o=n.indexOf(":");if(o===-1){let l=kt[n]||n;e[l]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=kt[s]||s,c=CC(i);if(c.length>1){e[a]=c.map(rS);continue}e[a]=rS(i)}return e}function tn(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?tn(r):r});let e={};if(typeof t.in=="string"){let r=ug(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(ye(r)){typeof n=="string"?e[r]=ug(n):e[r]=dg(n);continue}let o=kt[r]||r;if(be(r)&&o===r){typeof n=="string"?e[r]=ug(n):e[r]=dg(n);continue}if(vt.has(o)||vt.has(r)){e[o]=n;continue}e[o]=dg(n)}return e}function dg(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?tn(e):e}):typeof t=="object"?tn(t):t}var AC={shorten:Jr,stringify:Zr,stringifyFurther:tn};function EC(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 TC=["components","pages","snippets"],zi={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let n=AC[e===!0?"shorten":e];if(n){for(let o of TC)t[o]&&(t[o]=EC(t[o],n));t.app&&typeof t.app=="object"&&(t.app=n(t.app))}}};var vg={};$(vg,{LEVELS:()=>Wi,analyzePlugin:()=>io,attachBrowserListeners:()=>_l,attachNetworkListeners:()=>Sl,classifyEvent:()=>xg,createAnalyzeState:()=>wl,createBeaconSink:()=>wg,createConsoleSink:()=>_g,createDedupe:()=>yg,createEnrich:()=>gg,createMemorySink:()=>Sg,createPipeline:()=>gl,createRedact:()=>hl,createRemoteSink:()=>yl,createSample:()=>bg,createSummarize:()=>mg,default:()=>io,emitFetchEvent:()=>fS,makeEvent:()=>W,meetsLevel:()=>dl,normalizeLevel:()=>Hi,resolveSinks:()=>xl,summarizeElement:()=>en});var OC=0,RC=()=>`${Date.now().toString(36)}-${(OC++).toString(36)}`,W=(t,e,r={})=>({id:RC(),ts:Date.now(),type:t,level:e,...r}),PC=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(" > ")},en=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:PC(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var so=t=>t?.context?.analyze,$C={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"}},IC=(t,{category:e,type:r,level:n})=>o=>{let s=so(o);!s||!s.shouldCapture(e)||s.emit(W(r,n,{hook:t,element:en(o)}))},nS=t=>(e,r)=>{let n=so(e);!n||!n.shouldCapture("state")||n.emit(W("state","debug",{hook:t,element:en(e),changedKeys:r?.changedKeys||null}))},io={name:"analyze",error(t,e){let r=so(t);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=e?.error||e?.err||(e instanceof Error?e:null);r.emit(W("error","error",{hook:e?.hook||"error",element:en(t),error:n,message:n?.message||(typeof e?.message=="string"?e.message:null)}))},renderRouter(t){let e=so(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(W("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=so(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=so(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(W("update","debug",{hook:"update",element:en(t),durationMs:r}))},beforeStateUpdate:nS("beforeStateUpdate"),stateUpdate:nS("stateUpdate")};for(let[t,e]of Object.entries($C))io[t]=IC(t,e);O();var Wi={error:0,warn:1,info:2,debug:3,trace:4};var dl=(t,e)=>{let r=Wi[t],n=Wi[e];return r==null||n==null?!0:r<=n},Hi=t=>Wi[t]!=null?t:"warn";O();var pl=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var DC=(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},LC=(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"***"}},hg=(t,e,r,n)=>{if(n>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>hg(s,e,r,n+1));let o={};for(let s of Object.keys(t))if(DC(s,e)||pl.test(s)){let a=LC(t[s],r);a!==void 0&&(o[s]=a)}else o[s]=hg(t[s],e,r,n+1);return o},hl=(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:u,element:d,target:h,...g}=n,p=hg(g,r,e,0);return{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:h,...p}}};var gg=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}}}},mg=()=>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},yg=(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}},bg=t=>e=>{if(!e)return e;let r=t[e.type];return r==null||r>=1?e:Math.random()>r?null:e},oS={redact:t=>hl(t.config.redact||[],t.config.maskStrategy),enrich:t=>gg(t),summarize:()=>mg(),dedupe:t=>yg(t.config.cache?.dedupeWindowMs||1e3),sample:t=>bg(t.config.sample||{})},FC=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let r=oS[t];return r?r(e):null}return null},gl=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(oS.redact(t));for(let s of r){let i=FC(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 u of c){let d=u,h=!1;for(let g of l)if(d=g(d),d==null){h=!0;break}!h&&d!=null&&f.push(d)}return f}i=c}return i}};O();O();var ml=typeof k<"u"&&typeof k.document<"u",MC=5e3,NC=50,jC=3,BC=1500,VC=1e3,xg=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",UC=t=>{try{return JSON.stringify(t)}catch{return null}},zC=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},WC=t=>{if(!t)return null;let e=String(t),r;return(r=e.match(/Edg\/([\d.]+)/))?{name:"Edge",version:r[1]}:(r=e.match(/OPR\/([\d.]+)/))?{name:"Opera",version:r[1]}:(r=e.match(/Firefox\/([\d.]+)/))?{name:"Firefox",version:r[1]}:/Chrome\/([\d.]+)/.test(e)&&/Safari\//.test(e)?(r=e.match(/Chrome\/([\d.]+)/),{name:"Chrome",version:r[1]}):(r=e.match(/Version\/([\d.]+).*Safari/))?{name:"Safari",version:r[1]}:{name:null,version:null}},HC=()=>{if(!ml)return null;try{let t=k.document?.documentElement?.getAttribute("data-theme")||null,e=typeof k.matchMedia=="function"?k.matchMedia("(prefers-color-scheme: dark)").matches:null;return{active:t||(e?"dark":e===!1?"light":null),forced:t||null,prefers:e==null?null:e?"dark":"light"}}catch{return null}},qC=()=>{if(!ml)return null;let t=k.location,e=typeof navigator<"u"?navigator:null,r=typeof screen<"u"?screen:null;return{url:t?.href||null,path:t?.pathname||null,referrer:k.document?.referrer||null,title:k.document?.title||null,ua:e?.userAgent||null,browser:WC(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:zC(),viewport:k.innerWidth?{w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}:null,screen:r?{w:r.width||null,h:r.height||null,availW:r.availWidth||null,availH:r.availHeight||null,colorDepth:r.colorDepth||null,orientation:r.orientation?.type||null}:null,theme:HC()}},yl=(t={})=>{let e=t.url,r=typeof t.transport=="function"?t.transport:null,n=typeof t.syncTransport=="function"?t.syncTransport:null;if(!e&&!r)return()=>{};let o=t.apiKey||null,s=t.appKey||t.appId||null,i=t.tenantKey||t.tenant||null,a=t.release||null,c=t.env||null,l=t.sdk||null,f=typeof t.getAuth=="function"?t.getAuth:null,u=typeof t.getContext=="function"?t.getContext:null,d=typeof t.classify=="function"?t.classify:xg,h=typeof t.beforeSend=="function"?t.beforeSend:null,g=t.batchMs!=null?t.batchMs:MC,p=t.maxBatch||NC,m=t.maxRetries!=null?t.maxRetries:jC,b=t.backoffMs||BC,x=t.queueLimit||VC,y=t.sampleRate!=null?t.sampleRate:1,_=t.sessionId||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),v=[],E=[],I=null,z=null,R=()=>{I||!v.length||(I=setTimeout(V,g))},P=D=>{if(z)return;let q=b*Math.pow(2,Math.max(0,D-1));z=setTimeout(()=>{if(z=null,!E.length)return;let dt=E.shift();bt(dt.envelope,dt.attempt)},q)},G=(D,q=!1)=>{let dt=u?sS(u):null,Ct={id:_,sentAt:Date.now()};q&&(Ct.endedAt=Date.now());let gt={v:1,session:Ct,app:{key:s,release:a,env:c},tenant:i,sdk:l,page:qC(),user:dt?.user||null,traits:dt?.traits||null,tags:dt?.tags||null,events:D};if(h)try{return h(gt)||null}catch{return gt}return gt},bt=async(D,q=1)=>{if(D)try{let dt=!0;if(r){let Ct=await r(D);dt=Ct!==!1&&Ct?.ok!==!1}else dt=await KC(e,D,{apiKey:o,getAuth:f});!dt&&q<m&&(E.push({envelope:D,attempt:q+1}),P(q+1))}catch{q<m&&(E.push({envelope:D,attempt:q+1}),P(q+1))}},V=(D=!1,q=!1)=>{if(I&&(clearTimeout(I),I=null),!v.length&&!q)return;let dt=v;v=[];let Ct=G(dt,q);if(Ct){if(D&&ml){if(typeof n=="function"&&sS(()=>n(Ct)))return;if(navigator.sendBeacon&&e){let gt=UC(Ct);if(gt)try{navigator.sendBeacon(e,new k.Blob([gt],{type:"application/json"}));return}catch{}}}bt(Ct)}},Q=!1,N=()=>{Q||(Q=!0,V(!0,!0))};ml&&(k.addEventListener("pagehide",N,{passive:!0}),k.addEventListener("beforeunload",N,{passive:!0}),k.addEventListener("visibilitychange",()=>{k.document.visibilityState==="hidden"&&V(!0)},{passive:!0}));let X=D=>{if(!D||y<1&&Math.random()>y)return;Q&&(Q=!1);let q={...D,log_type:d(D)};v.push(q),v.length>x&&(v=v.slice(-x)),v.length>=p?V():R()};return X.flush=()=>V(!1),X.endSession=N,X.sessionId=_,X},sS=t=>{try{return t()}catch{return null}},KC=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 GC={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},YC="\x1B[0m",bl=typeof k<"u"&&typeof k.document<"u",_g=(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(bl)i(a,s);else{let c=GC[s.level]||"";i(`${c}${a}${YC}`,s)}}},Sg=(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},wg=(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=bl?new k.Blob([c],{type:"application/json"}):c;if(bl&&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(()=>{})};bl&&(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},iS={console:_g,memory:Sg,beacon:wg,remote:yl},xl=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=iS[n];if(!o)continue;r.push(n==="memory"?o(t,{}):o({}))}else if(n&&typeof n=="object"&&n.type){let o=iS[n.type];if(!o)continue;r.push(n.type==="memory"?o(t,n):o(n))}return r};O();var XC=typeof k<"u"&&typeof k.document<"u",JC=new Set(["password","hidden"]),aS=(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))))}},kg="__analyzeKeyPath",ao=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[kg])return e[kg];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[kg]=i}catch{}return i},ZC=(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"***"}},QC=t=>!!(!t||t.tagName==="INPUT"&&JC.has(t.type)||pl.test(t.name||"")||pl.test(t.id||"")||t.dataset?.analyze==="skip"),_l=t=>{if(!XC)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(W("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(W("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),e.pointer){o(k,"click",i=>{t.emit(W("pointer","info",{hook:"click",target:ao(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:cS(i)}))},{passive:!0,capture:!0}),o(k,"dblclick",i=>{t.emit(W("pointer","info",{hook:"dblclick",target:ao(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(k,"contextmenu",i=>{t.emit(W("pointer","info",{hook:"contextmenu",target:ao(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=aS(i=>{t.emit(W("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(W("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:cS(s),target:ao(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=QC(a),f=a.dataset?.analyze==="track",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=ZC(a.value,t.config.maskStrategy)),t.emit(W("forms","info",{hook:i.type,target:ao(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};o(k,"input",s,{passive:!0,capture:!0}),o(k,"change",s,{passive:!0,capture:!0}),o(k,"submit",i=>{t.emit(W("forms","info",{hook:"submit",target:ao(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=aS(()=>{t.emit(W("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=Bo(()=>{t.emit(W("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(W("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(k.document,"visibilitychange",()=>{t.emit(W("viewport","info",{hook:"visibilitychange",hidden:k.document.hidden}))},{passive:!0}),t.emit(W("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(W("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(lS)}))}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(W("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{}},cS=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),tA=t=>{let e={name:t.name||"Error",message:typeof t.message=="string"?t.message:String(t),stack:typeof t.stack=="string"?t.stack:null};return t.cause!==void 0&&(e.cause=lS(t.cause)),e},lS=t=>{if(t==null)return t;if(t instanceof Error)return tA(t);if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};O();var eA=typeof k<"u"&&typeof k.document<"u",fS=(t,e)=>{let r=t?.analyze;if(!r||!r.shouldCapture("network"))return;let n=e.phase==="error"?"error":"info";r.emit(W("network",n,{hook:`fetch.${e.phase}`,source:"symbo-fetch",...e}))},Sl=t=>{if(eA&&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(W("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(W("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(W("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(W("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(W("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(W("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 rA={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},nA={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},oA={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},sA={errors:!0,warnings:!0,console:!0,network:!0,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},iA=t=>{let e={...rA,...t};return e.replay&&Object.assign(e,nA),e.telemetry&&Object.assign(e,oA),e.remote&&Object.assign(e,sA),e},aA=64,cA=()=>{if(typeof k>"u"||!k.location)return null;try{let e=new URLSearchParams(k.location.search).get("analyze");return e||null}catch{return null}},wl=(t={})=>{let e=t===!0?{}:{...t};e.capture=iA(e.capture||{});let r=cA();(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=Hi(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=gl(n),n.__sinks=xl(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&&dl(s.level,n.config.level)){if(!n.__ready){if(s.level!=="error"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<aA&&n.__preBuffer.push(s);return}o(),uS(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)uS(n,a)}try{_l(n)}catch(a){console.error("[analyze] browser attach error:",a)}try{Sl(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=Hi(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},uS=(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 xe=Object.create(null);xe.open="0";xe.close="1";xe.ping="2";xe.pong="3";xe.message="4";xe.upgrade="5";xe.noop="6";var qi=Object.create(null);Object.keys(xe).forEach(t=>{qi[xe[t]]=t});var Ki={type:"error",data:"parser error"};var hS=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",gS=typeof ArrayBuffer=="function",mS=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Gi=({type:t,data:e},r,n)=>hS&&e instanceof Blob?r?n(e):dS(e,n):gS&&(e instanceof ArrayBuffer||mS(e))?r?n(e):dS(new Blob([e]),n):n(xe[t]+(e||"")),dS=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];e("b"+(n||""))},r.readAsDataURL(t)};function pS(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var Cg;function yS(t,e){if(hS&&t.data instanceof Blob)return t.data.arrayBuffer().then(pS).then(e);if(gS&&(t.data instanceof ArrayBuffer||mS(t.data)))return e(pS(t.data));Gi(t,!1,r=>{Cg||(Cg=new TextEncoder),e(Cg.encode(r))})}var bS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<bS.length;t++)Yi[bS.charCodeAt(t)]=t;var xS=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=Yi[t.charCodeAt(n)],i=Yi[t.charCodeAt(n+1)],a=Yi[t.charCodeAt(n+2)],c=Yi[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 lA=typeof ArrayBuffer=="function",Xi=(t,e)=>{if(typeof t!="string")return{type:"message",data:_S(t,e)};let r=t.charAt(0);return r==="b"?{type:"message",data:fA(t.substring(1),e)}:qi[r]?t.length>1?{type:qi[r],data:t.substring(1)}:{type:qi[r]}:Ki},fA=(t,e)=>{if(lA){let r=xS(t);return _S(r,e)}else return{base64:!0,data:t}},_S=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var SS="",wS=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{Gi(s,!1,a=>{n[i]=a,++o===r&&e(n.join(SS))})})},kS=(t,e)=>{let r=t.split(SS),n=[];for(let o=0;o<r.length;o++){let s=Xi(r[o],e);if(n.push(s),s.type==="error")break}return n};function vS(){return new TransformStream({transform(t,e){yS(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 Ag;function kl(t){return t.reduce((e,r)=>e+r.length,0)}function vl(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 CS(t,e){Ag||(Ag=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(kl(r)<1)break;let c=vl(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(kl(r)<2)break;let c=vl(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(kl(r)<8)break;let c=vl(r,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(Ki);break}o=f*Math.pow(2,32)+l.getUint32(4),n=3}else{if(kl(r)<o)break;let c=vl(r,o);a.enqueue(Xi(s?c:Ag.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(Ki);break}}}})}var Eg=4;function st(t){if(t)return uA(t)}function uA(t){for(var e in st.prototype)t[e]=st.prototype[e];return t}st.prototype.on=st.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};st.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};st.prototype.off=st.prototype.removeListener=st.prototype.removeAllListeners=st.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};st.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};st.prototype.emitReserved=st.prototype.emit;st.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};st.prototype.hasListeners=function(t){return!!this.listeners(t).length};var Ke=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),Rt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),AS="arraybuffer";function Cl(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var dA=Rt.setTimeout,pA=Rt.clearTimeout;function Ge(t,e){e.useNativeTimers?(t.setTimeoutFn=dA.bind(Rt),t.clearTimeoutFn=pA.bind(Rt)):(t.setTimeoutFn=Rt.setTimeout.bind(Rt),t.clearTimeoutFn=Rt.clearTimeout.bind(Rt))}var hA=1.33;function ES(t){return typeof t=="string"?gA(t):Math.ceil((t.byteLength||t.size)*hA)}function gA(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 Al(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function TS(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function OS(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 El=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type="TransportError"}},Ye=class extends st{constructor(e){super(),this.writable=!1,Ge(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 El(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=Xi(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=TS(e);return r.length?"?"+r:""}};var Ji=class extends Ye{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)};kS(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,wS(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]=Al()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var RS=!1;try{RS=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var PS=RS;function mA(){}var Tg=class extends Ji{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}},Er=class t extends st{constructor(e,r,n){super(),this.createRequest=e,Ge(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=Cl(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=mA,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()}};Er.requestsCount=0;Er.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",$S);else if(typeof addEventListener=="function"){let t="onpagehide"in Rt?"pagehide":"unload";addEventListener(t,$S,!1)}}function $S(){for(let t in Er.requests)Er.requests.hasOwnProperty(t)&&Er.requests[t].abort()}var yA=(function(){let t=IS({xdomain:!1});return t&&t.responseType!==null})(),Tr=class extends Tg{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=yA&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Er(IS,this.uri(),e)}};function IS(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||PS))return new XMLHttpRequest}catch{}if(!e)try{return new Rt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var DS=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Rg=class extends Ye{get name(){return"websocket"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=DS?{}:Cl(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;Gi(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&Ke(()=>{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]=Al()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},Og=Rt.WebSocket||Rt.MozWebSocket,Or=class extends Rg{createSocket(e,r,n){return DS?new Og(e,r,n):r?new Og(e,r):new Og(e)}doWrite(e,r){this.ws.send(r)}};var co=class extends Ye{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=CS(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=vS();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&&Ke(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var Pg={websocket:Or,webtransport:co,polling:Tr};var bA=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,xA=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function lo(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=bA.exec(t||""),s={},i=14;for(;i--;)s[xA[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=_A(s,s.path),s.queryKey=SA(s,s.query),s}function _A(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 SA(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var $g=typeof addEventListener=="function"&&typeof removeEventListener=="function",Tl=[];$g&&addEventListener("offline",()=>{Tl.forEach(t=>t())},!1);var rn=class t extends st{constructor(e,r){if(super(),this.binaryType=AS,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=lo(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=lo(r.host).host);Ge(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=OS(this.opts.query)),$g&&(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"})},Tl.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=Eg,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+=ES(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,Ke(()=>{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(),$g&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Tl.indexOf(this._offlineEventListener);n!==-1&&Tl.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};rn.protocol=Eg;var Ol=class extends rn{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;rn.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",u=>{if(!n)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;rn.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 d=new Error("probe error");d.transport=r.name,this.emitReserved("upgradeError",d)}}))};function s(){n||(n=!0,f(),r.close(),r=null)}let i=u=>{let d=new Error("probe error: "+u);d.transport=r.name,s(),this.emitReserved("upgradeError",d)};function a(){i("transport closed")}function c(){i("socket closed")}function l(u){r&&u.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}},fo=class extends Ol{constructor(e,r={}){let n=typeof e=="object",o=n?{...e}:{...r};(!o.transports||o.transports&&typeof o.transports[0]=="string")&&(o.transports=(o.transports||["polling","websocket","webtransport"]).map(s=>Pg[s]).filter(s=>!!s)),super(n?o:e,o)}};var dM=fo.protocol;function LS(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=lo(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 Ng={};$(Ng,{Decoder:()=>Fg,Encoder:()=>Lg,PacketType:()=>M,isPacketValid:()=>UA,protocol:()=>qS});var kA=typeof ArrayBuffer=="function",vA=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,FS=Object.prototype.toString,CA=typeof Blob=="function"||typeof Blob<"u"&&FS.call(Blob)==="[object BlobConstructor]",AA=typeof File=="function"||typeof File<"u"&&FS.call(File)==="[object FileConstructor]";function Qi(t){return kA&&(t instanceof ArrayBuffer||vA(t))||CA&&t instanceof Blob||AA&&t instanceof File}function Zi(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(Zi(t[r]))return!0;return!1}if(Qi(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Zi(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&Zi(t[r]))return!0;return!1}function MS(t){let e=[],r=t.data,n=t;return n.data=Rl(r,e),n.attachments=e.length,{packet:n,buffers:e}}function Rl(t,e,r){if(!t)return t;if(Qi(t)){let n={_placeholder:!0,num:e.length};return e.push(t),n}else if(Array.isArray(t)){let n=new Array(t.length);for(let o=0;o<t.length;o++)n[o]=Rl(t[o],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){if(t.toJSON&&typeof t.toJSON=="function"&&!r)return Rl(t.toJSON(),e,!0);let n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=Rl(t[o],e));return n}return t}function NS(t,e){return t.data=Ig(t.data,e),delete t.attachments,t}function Ig(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]=Ig(t[r],e);else if(typeof t=="object")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=Ig(t[r],e));return t}var WS=_w(zS(),1),Dg=(0,WS.default)("socket.io-parser"),HS=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],qS=5,M;(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"})(M||(M={}));var Lg=class{constructor(e){this.replacer=e}encode(e){return Dg("encoding packet %j",e),(e.type===M.EVENT||e.type===M.ACK)&&Zi(e)?this.encodeAsBinary({type:e.type===M.EVENT?M.BINARY_EVENT:M.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===M.BINARY_EVENT||e.type===M.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)),Dg("encoded %j as %s",e,r),r}encodeAsBinary(e){let r=MS(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},Fg=class t extends st{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===M.BINARY_EVENT;n||r.type===M.BINARY_ACK?(r.type=n?M.EVENT:M.ACK,this.reconstructor=new Mg(r)):super.emitReserved("decoded",r)}else if(Qi(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(M[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===M.BINARY_EVENT||n.type===M.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(!KS(a)||a<1)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 Dg("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 M.CONNECT:return Il(r);case M.DISCONNECT:return r===void 0;case M.CONNECT_ERROR:return typeof r=="string"||Il(r);case M.EVENT:case M.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&HS.indexOf(r[0])===-1);case M.ACK:case M.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Mg=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=NS(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function jA(t){return typeof t=="string"}var KS=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function BA(t){return t===void 0||KS(t)}function Il(t){return Object.prototype.toString.call(t)==="[object Object]"}function VA(t,e){switch(t){case M.CONNECT:return e===void 0||Il(e);case M.DISCONNECT:return e===void 0;case M.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&HS.indexOf(e[0])===-1);case M.ACK:return Array.isArray(e);case M.CONNECT_ERROR:return typeof e=="string"||Il(e);default:return!1}}function UA(t){return jA(t.nsp)&&BA(t.id)&&VA(t.type,t.data)}function Gt(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var zA=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),go=class extends st{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=[Gt(e,"open",this.onopen.bind(this)),Gt(e,"packet",this.onpacket.bind(this)),Gt(e,"error",this.onerror.bind(this)),Gt(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(zA.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:M.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let f=this.ids++,u=r.pop();this._registerAckCallback(f,u),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:M.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 M.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 M.EVENT:case M.BINARY_EVENT:this.onevent(e);break;case M.ACK:case M.BINARY_ACK:this.onack(e);break;case M.DISCONNECT:this.ondisconnect();break;case M.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:M.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:M.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 on(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}on.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};on.prototype.reset=function(){this.attempts=0};on.prototype.setMin=function(t){this.ms=t};on.prototype.setMax=function(t){this.max=t};on.prototype.setJitter=function(t){this.jitter=t};var mo=class extends st{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,Ge(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new on({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=e;let o=r.parser||Ng;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 fo(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=Gt(r,"open",function(){n.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=Gt(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(Gt(e,"ping",this.onping.bind(this)),Gt(e,"data",this.ondata.bind(this)),Gt(e,"error",this.onerror.bind(this)),Gt(e,"close",this.onclose.bind(this)),Gt(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){Ke(()=>{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 go(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 ta={};function yo(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let r=LS(t,e.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=ta[o]&&s in ta[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new mo(n,e):(ta[o]||(ta[o]=new mo(n,e)),c=ta[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(yo,{Manager:mo,Socket:go,io:yo,connect:yo});O();var GS=new Set(["__proto__","constructor","prototype"]),YS=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(GS.has(t[e]))return!1;return!0},WA=(t,e)=>{!t||!YS(e)||e.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},t)},HA=(t,e,r,n=!1)=>{!t||!YS(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)},jg=(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":WA(t,o);break;case"update":case"set":HA(t,o,s,!0);break;default:break}return r},XS=(t,e)=>{!t||!e||typeof e!="object"||(t.__rawDesignSystem=JSON.parse(JSON.stringify(e)))},JS=(t,e)=>{for(let r in e){if(GS.has(r))continue;let n=e[r],o=t[r];if(n&&typeof n=="object"&&!Array.isArray(n)){if(!o||typeof o!="object"||Array.isArray(o)){r in t||(t[r]=JSON.parse(JSON.stringify(n)));continue}JS(o,n)}else r in t||(t[r]=n)}},Bg=(t,e)=>{if(!t||!t.__rawDesignSystem)return null;if(Array.isArray(e)&&e.length){let o={designSystem:t.__rawDesignSystem};jg(o,e)}let r=JSON.parse(JSON.stringify(t.__rawDesignSystem)),n=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[];for(let o of n){let s=o&&o.designSystem;s&&typeof s=="object"&&JS(r,s)}return r};O();var ZS=(t,e,r)=>{let n=!1;return(o={})=>{let{data:s}=o,{schema:i}=o;s&&(s=t.call("deepDestringifyFunctions",s,Array.isArray(s)?[]:{}),Object.entries(s).forEach(([a,c])=>{if(r[a]&&typeof r[a]=="object")if(a==="designSystem"){if(XS(r,c),n){let l=Bg(r);l&&qe(l)}}else Nr(r[a],c);else r[a]=c}),n=!0,i&&(r.schema=i))}},QS=(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=o.filter(c=>Array.isArray(c)&&Array.isArray(c[1])&&c[1][0]==="designSystem"),i=s.length?o.filter(c=>!s.includes(c)):o,a=jg(r,i);if(s.length&&a.add("designSystem"),a.has("state")&&e.update(r.state),["pages","components","snippets","functions","assets"].some(c=>a.has(c))){let{pathname:c,search:l,hash:f}=r.window.location;t.call("router",c+l+f,t.__ref.root,{},{scrollToTop:!1})}if(a.has("designSystem")){let c=Bg(r,s);qe(c||r.designSystem)}};var qA={success:"green",error:"red",warning:"yellow"},tw=(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)}},ew={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:qA[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 KA=!1,GA=()=>KA?"http://localhost:8080":"https://api.symbols.app",YA=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}},XA=async t=>{try{let e=t||GA(),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)}},ow=(t,e,r,n)=>{t.on("snapshot",ZS(e,r,n)),t.on("ops",QS(e,r,n)),t.on("clients",o=>{n.editor?.verbose&&tw(o,e,r)}),t.on("disconnect",o=>{n.editor?.verbose&&console.info("[sync] disconnected",o)})},JA=async(t,e,r,n)=>{let o=await XA(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=yo(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)")}),ow(a,t,e,r),a},ZA=(t,e,r)=>{let n=yo({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),ow(n,t,e,r),n.on("reload",()=>{typeof k<"u"&&k.location&&k.location.reload()}),n},QA=async(t,e,r)=>{let{mode:n,baseUrl:o}=YA(r);return n?n==="collab"?JA(t,e,r,o):n==="runner"?ZA(t,e,r):null:null},tE={onInit:QA};var sw=t=>typeof t>"u",rw=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),nw=t=>t?.editor?.runtime==="runner",iw=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},aw={name:"sync",beforeCreate(t,e){let r=e&&e.editor;(r&&!sw(r.liveSync)?r.liveSync:rw(e)||nw(e))&&(rw(e)&&!nw(e)&&!e?.key||iw(t,tE))}},cw={name:"notifications",beforeCreate(t,e){if(!e)return;let r=sw(e.notifications)?null:e.notifications,n=e.editor&&e.editor.verbose===!0;(r===!0||r!==!1&&n)&&iw(t,ew)}};var zg={};$(zg,{Inspect:()=>Dl,inspectPlugin:()=>Ug});O();function lw(t){return S(t)?t:T(t)?t.find(e=>S(e)):""}function Vg(t){if(!t)return;let e=t.__ref.__componentKey,r=t.extends&&lw(t.extends),n=t.parent&&t.parent.childExtends&&lw(t.parent.childExtends);return(e||r||n||"").split("_")[0].split(".")[0].split("+")[0]}function Ll(t){if(!t||!t.__ref)return;let{components:e,pages:r,editor:n}=t.context,o=Vg(t);return n&&n.onInitInspect&&!n.onInitInspect(o,t,t.state)?Ll(t.parent):o&&(e[o]||r[o])?t:Ll(t.parent)}var eE=(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}))}},Dl={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:eE,onMousemove:(t,e,r)=>{let n=t.target.ref,o=Ll(n),s=e.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=Vg(o),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:u,height:d}=o.node.getBoundingClientRect(),h={x:l,y:f,width:u,height:d};if(!s.area)return a(h);s.area.x!==h.x&&a(h)}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=Ll(n);if(!o)return;let s=Vg(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(w(e)){let{Content:r,...n}=e;for(let o in n)Zn[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=`
|
|
73
|
+
`)}var i_={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 a_(t,e){let r=i_[t]||kr(t),n=Oi(e),o=`_${r}-${n}`,s=eo(t),i=Hv[s],a=i?`${s}: ${e};${i}: ${e}`:`${s}: ${e}`,c=`.${o}{${a}}`;return`${o}
|
|
74
|
+
${c}`}var Hv={"backdrop-filter":"-webkit-backdrop-filter","user-select":"-webkit-user-select"},qv="@media (hover: hover)",Kv=/(?:^|[^\\]):hover(?![\w-])/,c_=t=>typeof t=="string"&&(t.indexOf("{")!==-1||t.indexOf("}")!==-1);function l_(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||c_(i))continue;let a=i_[s]||kr(s),c=Oi(i),l=`_${a}-${c}`,f=eo(s);r.push(l),n.push(`.${l}{${f}:${i}}`)}return r.join(" ")+"\0"+n.join(`
|
|
75
|
+
`)}function f_(t,e,r){let n=t+e,o=`_c${kr(n)}`,s=e.split("\0"),i="";for(let l=0;l+1<s.length;l+=2){let f=s[l],u=s[l+1];u&&(c_(u)||(i+=`${eo(f)}:${u};`))}let a,c;if(t.startsWith("@media"))c=`.${o}`,a=`${t}{${c}{${i}}}`;else if(t.startsWith(":")||t.startsWith("&")){let l=t.startsWith("&")?t.slice(1):t;c=`.${o}${l}`,a=`${c}{${i}}`}else t.includes("&")?(c=t.replace("&",`.${o}`),a=`${c}{${i}}`):(c=`.${o} ${t}`,a=`${c}{${i}}`);return r!==!1&&Kv.test(c)&&(a=`${qv}{${a}}`),`${o}
|
|
76
|
+
${a}`}var Kh=null;function ol(t){Kh=t}var ye={structuralHash:el,deepEqual:rl,mergeStructural:Hh,overwriteDeep:qh,shortHash:kr,toKebab:eo,sanitizeValue:Oi,batchShortHash:s_,atomicCssClass:a_,batchAtomicCss:l_,compoundCssClass:f_},u_=!1,nl=null;function d_(t){return nl||(nl=import(t||"@symbo.ls/wasm/pkg").then(e=>(e.structuralHash&&(ye.structuralHash=e.structuralHash),e.deepEqual&&(ye.deepEqual=e.deepEqual),e.mergeStructural&&(ye.mergeStructural=e.mergeStructural),e.overwriteDeep&&(ye.overwriteDeep=e.overwriteDeep),e.shortHash&&(ye.shortHash=e.shortHash),e.toKebab&&(ye.toKebab=e.toKebab),e.sanitizeValue&&(ye.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(ye.batchShortHash=e.batchShortHash),e.atomicCssClass&&(ye.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(ye.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(ye.compoundCssClass=e.compoundCssClass),u_=!0,Kh&&e.batchAtomicCss&&Kh({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),nl)}function p_(){return u_}O();var Ri={};$(Ri,{CDN_PROVIDERS:()=>Ee,DOMQL_EVENTS:()=>Af,DOMQ_PROPERTIES:()=>tr,ENV:()=>Uf,HTML_TAGS:()=>yn,METHODS:()=>dn,METHODS_EXL:()=>Do,NODE_ENV:()=>le,OPTIONS:()=>ns,PACKAGE_MANAGER_TO_CDN:()=>cr,PARSED_DOMQ_PROPERTIES:()=>Io,PROPS_METHODS:()=>er,STATE_METHODS:()=>Fr,STATE_PROPERTIES:()=>Cf,SVG_TAGS:()=>cm,TYPES:()=>Ao,UNIVERSAL_RESERVED_KEYS:()=>Qa,addCaching:()=>La,addContext:()=>Da,addExtend:()=>pu,addExtends:()=>Nt,addItemAfterEveryElement:()=>df,addProtoToArray:()=>Oo,addRef:()=>Pa,applyCSS:()=>Yh,applyDependentState:()=>$u,applyEvent:()=>Va,applyEventUpdate:()=>Ua,applyExtends:()=>um,applyProps:()=>Jo,arrayContainsOtherArray:()=>of,arraysEqual:()=>hf,arrayzeValue:()=>zr,buildImgSrcset:()=>Ds,buildSourcesAndImg:()=>Ls,cache:()=>Mu,call:()=>td,captureSnapshot:()=>rd,checkForStateTypes:()=>Tu,checkIfInherits:()=>Ba,checkIfStringIsInArray:()=>yf,clone:()=>Tf,cloneAndMergeArrayExtend:()=>zo,cloneFunction:()=>Jf,concatAddExtends:()=>fu,copyJavaScriptToClipboard:()=>wd,copyStringToClipboard:()=>Sd,createBasedOnType:()=>Ra,createElement:()=>Eu,createElementExtends:()=>ba,createExtends:()=>Ho,createExtendsFromKeys:()=>bn,createExtendsStack:()=>wa,createIfConditionFlag:()=>Zf,createInheritedState:()=>Ou,createKey:()=>Vo,createNestedObject:()=>Lf,createNestedObjectByKeyPath:()=>Pu,createObjectWithoutPrototype:()=>ua,createParent:()=>$a,createPath:()=>Ia,createProps:()=>Zo,createPropsStack:()=>Ta,createRoot:()=>Au,createScope:()=>Du,createSnapshotId:()=>Bo,customDecodeURIComponent:()=>vf,customEncodeURIComponent:()=>kf,cutArrayAfterValue:()=>ff,cutArrayBeforeValue:()=>lf,debounce:()=>Uo,debounceOnContext:()=>Gf,decodeNewlines:()=>wf,deepClone:()=>it,deepContains:()=>If,deepDefaults:()=>Ts,deepDestringifyFunctions:()=>Jt,deepExtend:()=>ya,deepMerge:()=>Y,deepMergeExtends:()=>ve,deepStringifyFunctions:()=>Lo,defineSetter:()=>Zu,destringifyGlobalScope:()=>Mo,detectHeightOnInit:()=>ad,detectInfiniteLoop:()=>jf,document:()=>K,encodeNewlines:()=>Sf,error:()=>Ur,excludeKeysFromObject:()=>Vf,exec:()=>ot,extendCachedRegistry:()=>uu,extendStackRegistry:()=>qo,extractArrayExtend:()=>Go,fetchLibraryData:()=>nc,fibonacciNumberByIndex:()=>cd,filterArrays:()=>gf,filterArraysFast:()=>mf,finalizeExtends:()=>ka,findClosestNumber:()=>rc,findClosestNumberInFactory:()=>bd,findInheritedState:()=>ja,findKeyPosition:()=>xf,flattenExtend:()=>xn,formatDate:()=>id,generateHash:()=>ha,generateHeadArrayTags:()=>ec,generateKey:()=>jo,generateMetaTags:()=>md,get:()=>Yu,getActiveRoute:()=>Ih,getCDNUrl:()=>ue,getCapitalCaseKeys:()=>mu,getCdnProviderFromConfig:()=>wn,getChildStateInKey:()=>Na,getChildren:()=>hs,getContext:()=>Ss,getCookie:()=>nu,getDB:()=>As,getEmotionStylesheet:()=>Ad,getExtendsInElement:()=>hu,getExtendsStack:()=>Wo,getExtendsStackRegistry:()=>ma,getFrequencyInArray:()=>sf,getHashedExtend:()=>Ko,getImportMapScript:()=>sd,getInObjectByPath:()=>Nf,getLocalStorage:()=>su,getNev:()=>qf,getPageMetadata:()=>yd,getParentStateInKey:()=>Ma,getPath:()=>gs,getQuery:()=>Es,getRef:()=>Ju,getRoot:()=>bs,getRootContext:()=>_s,getRootData:()=>xs,getRootState:()=>ys,getRootStateInKey:()=>Fa,getSpreadChildren:()=>yu,global:()=>ef,hasFunction:()=>ke,hasHandlerPlugin:()=>hn,hasOwnProperty:()=>Rf,hashContent:()=>vn,inheritChildExtends:()=>_a,inheritChildPropsExtends:()=>xa,inheritParentProps:()=>Qo,inheritRecursiveChildExtends:()=>Sa,init:()=>qe,initProps:()=>ku,is:()=>Lt,isArray:()=>T,isBoolean:()=>ia,isContextComponent:()=>bu,isCyclic:()=>Bf,isDOMNode:()=>Dt,isDate:()=>ca,isDefined:()=>wt,isDevelopment:()=>nr,isEmpty:()=>la,isEmptyObject:()=>Pf,isEqualDeep:()=>fa,isFunction:()=>C,isHtmlElement:()=>vo,isLocal:()=>Hf,isLoudDevRuntime:()=>Mt,isMethod:()=>ed,isMobile:()=>eu,isNode:()=>Me,isNot:()=>nf,isNotProduction:()=>jr,isNull:()=>aa,isNumber:()=>we,isObject:()=>w,isObjectLike:()=>j,isPhoto:()=>ld,isProduction:()=>rr,isStaging:()=>Wf,isState:()=>Ru,isString:()=>S,isStringFunction:()=>Xf,isTest:()=>pa,isTesting:()=>zf,isUndefined:()=>xt,isUniversallyReservedKey:()=>nd,isValidHtmlTag:()=>au,isWrappedLibrary:()=>Rs,joinArrays:()=>ln,jointStacks:()=>du,keys:()=>Ja,lastLevel:()=>tl,lastPathname:()=>Qc,loadCssFile:()=>pd,loadJavascript:()=>hd,loadJavascriptFile:()=>fd,loadJavascriptFileEmbedSync:()=>dd,loadJavascriptFileSync:()=>ud,loadRemoteCSS:()=>gd,loadRemoteScript:()=>kn,log:()=>Qu,logGroupIf:()=>tu,logIf:()=>Qf,lookdown:()=>Ku,lookdownAll:()=>Gu,lookup:()=>qu,lowercaseFirstLetter:()=>Lr,makeObjectWithoutPrototype:()=>$f,map:()=>Ef,mapStringsWithContextComponents:()=>Yo,matchRoute:()=>Rh,matchesComponentNaming:()=>Ce,memoize:()=>Yf,merge:()=>ct,mergeSharedLibraries:()=>Ps,nextElement:()=>ks,normalizeIgnoreList:()=>Os,normalizeLibraryKey:()=>Cn,objectToString:()=>Fo,objectizeStringProperty:()=>Xo,overwrite:()=>No,overwriteDeep:()=>Ft,overwriteShallow:()=>Nr,overwriteState:()=>Iu,parse:()=>Za,parseDeep:()=>ds,parseQuery:()=>Ph,parseRoutePattern:()=>Oh,pickupElementFromProps:()=>Aa,pickupPropsFromElement:()=>Ca,previousElement:()=>vs,propExists:()=>Su,propertizeElement:()=>Ea,propertizeUpdate:()=>_u,reinit:()=>Gh,remove:()=>Mm,removeChars:()=>kd,removeCookie:()=>ou,removeDuplicateProps:()=>es,removeDuplicatesInArray:()=>fn,removeFromArray:()=>af,removeFromObject:()=>Df,removeNestedKeyByPath:()=>Ff,removeValueFromArray:()=>To,removeValueFromArrayAll:()=>uf,reorderArrayByValues:()=>pf,replaceLiteralsWithObjectFields:()=>Dr,replaceOctalEscapeSequences:()=>_f,resolveAsset:()=>jt,resolveHandler:()=>gn,resolveSharedLibraries:()=>_d,returnValueAsText:()=>Oa,router:()=>Ie,runGuards:()=>$h,runPluginHook:()=>Et,scratchSystem:()=>Mn,scratchUtils:()=>dr,self:()=>rf,set:()=>qr,setActiveRootState:()=>ms,setCookie:()=>ru,setHashedExtend:()=>ga,setInObjectByPath:()=>Mf,setLocalStorage:()=>iu,setNodeStyles:()=>Xa,setProps:()=>Xu,setPropsPrototype:()=>ts,sharedLibrary:()=>xd,spotByPath:()=>ps,srcsetFor:()=>An,stringIncludesAny:()=>Po,stringToObject:()=>Of,swapItemsInArray:()=>cf,syncProps:()=>rs,toCamelCase:()=>$s,toDashCase:()=>Is,toDescriptionCase:()=>Cd,toTitleCase:()=>vd,toggleFullscreen:()=>od,triggerEventOn:()=>or,triggerEventOnUpdate:()=>Lu,trimStringFromSymbols:()=>bf,unstackArrayOfObjects:()=>Eo,update:()=>wu,updateProps:()=>vu,variables:()=>Cs,verbose:()=>Sn,warn:()=>ws,window:()=>k});O();O();var Yv=A(),h_=(t=Yv,e)=>{let r=w(e.localFile)?e.localFile:{},n=it(r.designSystem||{});return Y(t,n)},Xv={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},qe=(t,e=Xv)=>{let r=h_(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=qr({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=Ms(i.font,i.files),c=i.useReset,l=i.useVariable,f=i.useFontImport,u=i.useSvgSprite,d=t.svg,h=i.useIconSprite,g=t.icons;if(f&&ht(a),l&&(ht({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let b in i.CSS_MEDIA_VARS)b.startsWith("@media")?m[b]={[o]:i.CSS_MEDIA_VARS[b]}:m[b]=i.CSS_MEDIA_VARS[b];ht(m)}c&&ht(i.reset);let p=i.animation;if(p){let m={};for(let b in p)m[`@keyframes ${b}`]=p[b];ht(m)}return(d||u)&&li(i.svg,{document:e.document}),(g||h)&&ui(i.icons,{document:e.document}),i},sl={},Gh=(t,e=sl)=>{let r=h_(t||{},e),n=e.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=qr({verbose:!1,...r});if(!e.preventInject){if(ht({[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];ht(i)}ht(s.reset)}return s},Yh=(t,e=sl)=>{ht(t)},Jv=(t,e=sl)=>{let r=e.scopeSelector||":root",n=r===":root"?":root:not([data-theme])":`${r}:not([data-theme])`;if(ht({[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];ht(o)}};var Zv=(t,e=sl)=>{};O();var g_=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,Xh={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},Pi=(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},m_=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=Xh:e.router=ct(e.router||{},Xh);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=g_(c);let u=c+l+f,d=s;if(r.customRouterElement){let h=Pi(s,r.customRouterElement);h&&(d=h,s.routes&&(d.routes=s.routes))}d.routes&&await Ie(u,d,{},{initialRender:!0,pushState:!1})},o=!xt(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.onRenderRouter=n),Qv(e,r),r},Jh=(t,e)=>{if(e.router===!1)return;let r=e.router||Xh;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:Ie,o=e.window||k,s=async i=>{let{pathname:a,search:c,hash:l}=o.location;a=g_(a);let f=a+c+l,u=t;if(r.customRouterElement){let d=Pi(t,r.customRouterElement);d&&(u=d,t.routes&&(u.routes=t.routes))}await u.call("router",f,u,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};o.addEventListener("popstate",s),e.__teardowns=e.__teardowns||[],e.__teardowns.push(()=>o.removeEventListener("popstate",s))},Qv=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return Y(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};O();var Zh=k&&k.location?k.location.host.includes("dev."):nr(),y_=Zh?"http://localhost:8080/get":"https://api.symbols.app/get",tC={endpoint:y_},b_=async(t,e=tC)=>{let r=e.endpoint||y_,n=e.serviceRoute?T(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)}},eC=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await b_(t,r),o=Zh||e.isDevelopment?Jt(n):Jt(n.releases[0]);r.serviceRoute?T(r.serviceRoute)?r.serviceRoute.forEach(s=>{Ft(e[s],o[s.toLowerCase()])}):Ft(e[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{Ft(e[s],o[s.toLowerCase()])})}return e},rC=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await b_(t,n),s=Zh||e.isDevelopment?Jt(o):Jt(o.releases[0]);r(s)}},x_=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await eC(t,e)}catch(r){console.error(r)}},__=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&rC(e,r,n||(o=>{let s=o.designSystem;w(s)&&r.utils.init(s),w(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};var $i=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{wr(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};var eg={};$(eg,{Helmet:()=>k_,applyMetadata:()=>ro,default:()=>cC,extractMetadata:()=>sC,generateHeadHtml:()=>aC,helmetPlugin:()=>tg,resolveMetadata:()=>vr});O();var nC={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"}},oC=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}"]`},S_=t=>Jt({v:t}).v,w_=(t,e,r,n)=>{try{return ot(t,e,r)}catch(o){console.warn(`[helmet] metadata factory for "${n}" threw; treating as unset:`,o&&o.message||o);return}},vr=(t,e,r)=>{if(!t)return{};let n=t;S(n)&&ke(n)&&(n=S_(n));let o=C(n)?w_(n,e,r,"metadata"):w(n)?{...n}:{};if(!w(o))return{};for(let s in o){let i=o[s];S(i)&&ke(i)&&(i=S_(i)),C(i)?i=w_(i,e,r,s):S(i)&&ke(i)&&(i=void 0),S(i)&&i.includes("{{")&&e?.call&&(i=e.call("replaceLiteralsWithObjectFields",i,r)),o[s]=i}return o},sC=(t,e="/",r,n)=>{let s=(t.pages||{})[e],i={};if(t.integrations?.seo&&(i={...t.integrations.seo}),t.app?.metadata){let c=vr(t.app.metadata,r,n);i={...i,...c}}let a=new Set;if(s){let c=s.metadata||s.helmet||{},l=vr(c,r,n);for(let f in l)a.add(f);i={...i,...l},!i.title&&s.state?.title&&(i.title=s.state.title,a.add("title")),!i.description&&s.state?.description&&(i.description=s.state.description,a.add("description"))}if(i.title||(i.title=t.name||"Symbols"),i.title&&(a.has("title")||!i["og:title"])&&(a.has("og:title")||(i["og:title"]=i.title)),i.description&&(a.has("description")||!i["og:description"])&&(a.has("og:description")||(i["og:description"]=i.description)),i.title&&!i["twitter:title"]&&(i["twitter:title"]=i.title),i.description&&!i["twitter:description"]&&(i["twitter:description"]=i.description),i["og:url"]||i.url){let c=(i["og:url"]||i.url||"").replace(/\/$/,"");if(c&&e&&e!=="/"){let l=e.startsWith("/")?e:"/"+e;i["og:url"]=c+l}}if(t.files)for(let c in i){let l=i[c];if(typeof l=="string"&&l.length>0&&!l.startsWith("/")&&!l.startsWith("http")){let f=t.files[l];f?.src&&(i[c]=f.src)}}return i},iC=(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},Ii=t=>{let e=5381,r=String(t);for(let n=0;n<r.length;n++)e=(e*33^r.charCodeAt(n))>>>0;return e.toString(36)},Qh=(t,e,r,n)=>{let o=t.head||t.querySelector("head");if(!o)return;let s=new Map;for(let a of o.querySelectorAll(`[${e}]`))s.set(a.getAttribute(e),a);let i=new Set;for(let a of r)i.add(a);for(let[a,c]of s)i.has(a)||c.remove();for(let a of r){if(s.has(a))continue;let c=n(a);c&&(c.setAttribute(e,a),o.appendChild(c))}},ro=(t,e)=>{if(!(!w(t)||!e)){for(let r in t){let n=t[r];if(n==null||r==="jsonLd"||r==="styles"||r==="scripts")continue;let o=nC[r];if(!o)continue;let s=oC(o),i=e.querySelector(s)||iC(o,e);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}if(Array.isArray(t.jsonLd)){let n=t.jsonLd.filter(s=>s!=null).map(s=>S(s)?s:JSON.stringify(s)),o=n.map(Ii);Qh(e,"data-smbls-jsonld",o,s=>{let i=o.indexOf(s),a=e.createElement("script");return a.setAttribute("type","application/ld+json"),a.textContent=n[i],a})}if(Array.isArray(t.styles)){let r=t.styles.filter(o=>o!=null&&String(o).trim()),n=r.map(Ii);Qh(e,"data-smbls-style",n,o=>{let s=n.indexOf(o),i=e.createElement("style");return i.textContent=String(r[s]),i})}if(Array.isArray(t.scripts)){let r=t.scripts.filter(o=>o&&(S(o)?o.trim():o.src)),n=r.map(o=>S(o)?o:String(o.src));Qh(e,"data-smbls-script",n,o=>{let s=n.indexOf(o),i=r[s],a=e.createElement("script");return S(i)?a.setAttribute("src",i):(i.src&&a.setAttribute("src",i.src),i.type&&a.setAttribute("type",i.type),i.async&&(a.async=!0),i.defer&&(a.defer=!0),i.integrity&&a.setAttribute("integrity",i.integrity),i.crossorigin&&a.setAttribute("crossorigin",i.crossorigin),i.referrerpolicy&&a.setAttribute("referrerpolicy",i.referrerpolicy),i.nomodule&&(a.noModule=!0),i.body&&(a.textContent=String(i.body))),a})}}},rt=t=>{if(t==null)return"";let e={"&":"&","<":"<",">":">",'"':""","'":"'"};return t.toString().replace(/[&<>"']/g,r=>e[r])},aC=t=>{let e=['<meta charset="UTF-8">'],r=new Set(["charset","jsonLd","styles","scripts"]),n=!1;for(let[o,s]of Object.entries(t)){if(!s&&s!==0&&s!==!1||r.has(o)||typeof s=="function")continue;if(o==="title"){e.push(`<title>${rt(s)}</title>`);continue}if(o==="viewport"){n||(e.push(`<meta name="viewport" content="${rt(s)}">`),n=!0);continue}if(o==="canonical"){e.push(`<link rel="canonical" href="${rt(s)}">`);continue}if(o==="icon"||o==="favicon"){let f=rt(s),u=f.endsWith(".svg")?' type="image/svg+xml"':f.endsWith(".png")?' type="image/png"':"";e.push(`<link rel="icon" href="${f}"${u}>`);continue}if(o==="favicons"&&Array.isArray(s)){s.forEach(f=>{if(typeof f=="object"){let u=Object.entries(f).map(([d,h])=>`${d}="${rt(h)}"`).join(" ");e.push(`<link rel="icon" ${u}>`)}else typeof f=="string"&&e.push(`<link rel="icon" href="${rt(f)}">`)});continue}if(o==="alternate"&&Array.isArray(s)){s.forEach(f=>{if(typeof f=="object"){let u=Object.entries(f).map(([d,h])=>`${d}="${rt(h)}"`).join(" ");e.push(`<link rel="alternate" ${u}>`)}});continue}let i=["og:","article:","product:","fb:","profile:","book:","business:","music:","video:"],a=["twitter:","DC:","DCTERMS:"],c=i.some(f=>o.startsWith(f)),l=a.some(f=>o.startsWith(f));if(o.startsWith("http-equiv:")){let f=o.replace("http-equiv:","");e.push(`<meta http-equiv="${rt(f)}" content="${rt(s)}">`)}else if(o.startsWith("itemprop:")){let f=o.replace("itemprop:","");e.push(`<meta itemprop="${rt(f)}" content="${rt(s)}">`)}else c?Array.isArray(s)?s.forEach(f=>e.push(`<meta property="${rt(o)}" content="${rt(f)}">`)):e.push(`<meta property="${rt(o)}" content="${rt(s)}">`):l?e.push(`<meta name="${rt(o)}" content="${rt(s)}">`):Array.isArray(s)?s.forEach(f=>e.push(`<meta name="${rt(o)}" content="${rt(f)}">`)):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&e.push(`<meta name="${rt(o)}" content="${rt(s)}">`)}if(n||e.splice(1,0,'<meta name="viewport" content="width=device-width, initial-scale=1">'),Array.isArray(t.jsonLd))for(let o of t.jsonLd){if(o==null)continue;let s=typeof o=="string"?o:JSON.stringify(o),i=String(s).replace(/<\/script/gi,"<\\/script");e.push(`<script type="application/ld+json" data-smbls-jsonld="${Ii(s)}">${i}<\/script>`)}if(Array.isArray(t.styles))for(let o of t.styles){if(o==null||!String(o).trim())continue;let s=String(o).replace(/<\/style/gi,"<\\/style");e.push(`<style data-smbls-style="${Ii(s)}">${s}</style>`)}if(Array.isArray(t.scripts))for(let o of t.scripts){if(!o)continue;let s=typeof o=="string",i=s?o:o.src;if(!i&&!(o&&o.body))continue;let a=[];i&&a.push(`src="${rt(i)}"`),s||(o.type&&a.push(`type="${rt(o.type)}"`),o.async&&a.push("async"),o.defer&&a.push("defer"),o.integrity&&a.push(`integrity="${rt(o.integrity)}"`),o.crossorigin&&a.push(`crossorigin="${rt(o.crossorigin)}"`),o.referrerpolicy&&a.push(`referrerpolicy="${rt(o.referrerpolicy)}"`),o.nomodule&&a.push("nomodule"));let c=` data-smbls-script="${rt(i||Ii(o.body||""))}"`;if(!s&&o.body){let l=String(o.body).replace(/<\/script/gi,"<\\/script");e.push(`<script ${a.join(" ")}${c}>${l}<\/script>`)}else e.push(`<script ${a.join(" ")}${c}><\/script>`)}return e.join(`
|
|
77
|
+
`)},k_={define:{metadata:(t,e,r)=>{let n=e.context?.document||typeof document<"u"&&document;if(!n)return;let o=J(()=>{let s=vr(t,e,e.state);ro(s,n);let i=e.state?.root;w(i)&&(i.$helmet=s)});e.__ref?.__effects&&e.__ref.__effects.push(o)}}},tg={name:"helmet",create(t){if(!t.metadata)return;let e=t.context?.document||typeof document<"u"&&document;if(!e)return;let r=J(()=>{let n=t.metadata;if(!n)return;let o=vr(n,t,t.state);ro(o,e)});t.__ref?.__effects&&t.__ref.__effects.push(r)},update(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=vr(e,t,t.state);ro(n,r)}},cC=k_;ir();var v_=(t,e,r,n)=>{t&&us(t,e,r,n)},C_=(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<"u"&&document;if(!n)return;let o=vr(t,e,r);ro(o,n)},A_=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},no={routes:t=>t,metadata:C_,fetch:v_,$router:A_},E_=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=C_),t.fetch!==!1&&(e.fetch=v_),t.router!==!1&&(e.$router=A_),e};var rg={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},il={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},al={...rg,router:il},lC={state:{},pages:{},components:{},router:il,define:no},Cr=lC;O();O();var T_=(t,e)=>j(t.extends)?t.extends:[];O();var P_=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&&!globalThis.__smblsRouterUrlWarned&&(globalThis.__smblsRouterUrlWarned=!0,console.warn("[smbls/router] context.window lacks URL, falling back to globalThis \u2014 passed-in window may be a stub (warned once; applies to every embed app this session)")),t.window=e):t.window=n||e,t.window},O_=(t="smbls")=>{let e={};for(let r in Yr)Object.prototype.hasOwnProperty.call(Yr,r)&&(Ce(r)?e[`smbls.${r}`]=Yr[r]:e[r]=Yr[r]);return e},$_=t=>t.components?{...O_(),...t.components}:O_(),I_=t=>({...Ri,...Ti,...dr,...t.utils,...t.snippets,...t.functions}),D_=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),fC=/^node:|^@symbo-ls\//,L_=t=>typeof t=="string"&&fC.test(t),uC=/[<>…]/,dC=t=>typeof t=="string"&&uC.test(t),pC=t=>typeof globalThis<"u"&&globalThis.__SMBLS_PKGS__&&globalThis.__SMBLS_PKGS__[t]||null,R_={},F_=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=cr[s]||wn(i)||"esmsh"),!t)return null;let a=!1;for(let u in t){a=!0;break}if(!a)return null;let c=nr()&&n?`?${Math.random()}`:"",l=async(u,d)=>{let h=ue(u,d,o)+c;try{await Promise.race([kn(h,{document:r,type:"module"}),new Promise((g,p)=>setTimeout(()=>p(new Error(`Timeout loading ${u}`)),1e4))])}catch(g){if(console.error(`Failed to load ${u} from ${o}:`,g),o!=="symbols")try{let p=ue(u,d,"symbols")+c;await Promise.race([kn(p,{document:r,type:"module"}),new Promise((m,b)=>setTimeout(()=>b(new Error(`Timeout fallback ${u}`)),2e4))]),console.log(`Successfully loaded ${u} from fallback (symbols.ls)`)}catch(p){console.error(`Failed to load ${u} from fallback:`,p)}}},f=[];for(let u in t){let d=t[u];if(!(e&&e[u])&&!R_[u]&&(R_[u]=!0,!L_(u))){if(dC(u)){console.warn(`[smbls] dependency "${u}" looks like an un-interpolated template placeholder, not a real package specifier \u2014 skipping the CDN fetch (this is a bug upstream of the dependency loader, not a network failure).`);continue}pC(u)||f.push(l(u,d))}}return f.length&&await Promise.allSettled(f),t},M_=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||wn(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,u=i.window||window;if(!u.packages[a]&&L_(a))return await u.require(a,c);if(!u.packages[a]){let d=nr()?`?${Math.random()}`:"";if(l&&l[a]){let h=l[a],g=ue(a,h,c)+d;try{await i.utils.loadRemoteScript(g,{window:u,document:f})}catch(p){if(console.error(`Failed to load ${a} from ${c}:`,p),c!=="symbols"){let m=ue(a,h,"symbols")+d;await i.utils.loadRemoteScript(m,{window:u,document:f})}}}else{let h=ue(a,"latest",c)+d;try{await i.utils.loadRemoteScript(h,{window:u,document:f})}catch(g){if(console.error(`Failed to load ${a} from ${c}:`,g),c!=="symbols"){let p=ue(a,"latest","symbols")+d;await i.utils.loadRemoteScript(p,{window:u,document:f})}}u.packages[a]="loadedOnDeman"}}return await u.require(a,c)};r.packages?r.packages=ct(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)},hC=/\s+/g,N_=(t,e)=>typeof t=="function"?t(e,e?.state,e?.context):t,gC=(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+=` ${N_(o,e)}`)}return r},mC=(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=gC(t,e));let o=t.replace(hC," ").trim();if(r&&typeof r.setAttribute=="function")r.setAttribute("class",o);else if(r)try{r.className=o}catch{}return o},yC=()=>(t,e,r)=>{let n=N_(t,e);if(t){let{__ref:o}=e;o.__class.style=n}j_()(e.classlist,e,e.state,!0)},j_=()=>(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=ne(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];e.node&&mC(i,e,e.node)}},bC=()=>({style:yC(),classlist:j_()}),xC=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],ng=new WeakSet,og=!1,_C=t=>!!t&&typeof t=="object",B_=(t,e)=>{let r=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,n=e.initOptions||{},o=e.registry||bC(),s=e.designSystem?Y(it(e.designSystem),Ai):it(Ai),i={};for(let m of xC)e[m]!==void 0&&(i[m]=e[m]);let a,c=_C(r),f=c&&ng.has(r)&&!e.skipDesignSystemInit,u=!f&&!og,d=f?`[data-smbls-app="${t}"]`:":root";e.scopeSelector=d;let h=d===":root"?":root:not([data-theme])":`${d}:not([data-theme])`;if(e.skipDesignSystemInit){if(a=A(t)||A(),a&&(a.__domDocument=r),a?.CSS_VARS){tt(a);try{if(ht({[d]:a.CSS_VARS}),a.CSS_MEDIA_VARS){let m={};for(let b in a.CSS_MEDIA_VARS)b.startsWith("@media")?m[b]={[h]:a.CSS_MEDIA_VARS[b]}:m[b]=a.CSS_MEDIA_VARS[b];ht(m)}}finally{Z()}}}else if(u){let m=A();m&&(m.__domDocument=r),a=qe(s,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:d,...al,...i,...n}),a&&a!==m&&(a.__domDocument=r),c&&ng.add(r),og=!0}else{let m=_c(t,s,{cleanBase:!0});for(let b in i)m[b]=i[b];if(m.__domDocument=r,f){let b=t.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);e.cssPrefix=b,m.varPrefix=b}tt(m);try{a=qe(m,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:d,...al,...i,...n})}finally{Z()}c&&ng.add(r),og=!0}let g=a?.CONFIG||a,p=g?.font;if(p){tt(g);try{for(let m in p){let b=p[m];if(!b?.fontFace)continue;let x=Array.isArray(b.fontFace)?b.fontFace:[b.fontFace];for(let y of x)typeof y=="string"&&y.includes("font-family")&&ht(`@font-face { ${y} }`)}}finally{Z()}}return[a,o]},V_=(t,e)=>{let r={};e.state&&Y(r,e.state),t&&t.state&&Y(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,it(r)},U_=(t,e)=>{w(t.routes)&&w(e.pages)&&ct(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},z_=t=>{Ps(t,t.sharedLibraries)};var sg={};$(sg,{default:()=>kC,getActiveLang:()=>so,getLanguages:()=>Li,getLocalStateLang:()=>Bi,initPolyglot:()=>ll,loadTranslations:()=>Mi,polyglotPlugin:()=>io,setLang:()=>Ni,translate:()=>Fi,upsertTranslation:()=>ji});O();var H_="smbls_lang",SC="smbls_t_",wC="smbls_tv_",oo={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)}}},Di={};function so(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||e?.defaultLang||"en"}function Li(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var cl=(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},W_=(t,e,r)=>{let n=e.lastIndexOf(".");if(n===-1)return t[e+"_"+r];let o=cl(t,e.substring(0,n));if(o!=null)return o[e.substring(n+1)+"_"+r]};function Fi(t,e){if(!t)return"";let r=this?.context,n=r?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let l=W_(s,t,o);if(l!==void 0)return l}if(n?.translations){let l=n.translations[o];if(l){let f=cl(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=cl(l,t);if(f!==void 0)return f}}let c=n?.defaultLang||"en";if(s){let l=W_(s,t,c);if(l!==void 0)return l}if(n?.translations){let l=n.translations[c];if(l){let f=cl(l,t);if(f!==void 0)return f}}return t}async function Mi(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!r||!n)return;let o=r.storagePrefix||SC,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):wC);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!n.translations?.[t]){let c=oo.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(Di[i])return Di[i];let a=this;return Di[i]=(async()=>{try{let c=r.fetch,l=parseInt(oo.get(s+t),10)||0,f,u,d;if(C(c)){let g=await c(t,l,a);if(!g||g.changed===!1)return;f=g.translations||g.data||g,u=g.version||0,d=!0}else if(w(c)){let g=a.getDB||(()=>e.fetch),p=C(g)?await g.call(a):e.fetch;if(!p)return;let m=c.rpc||c.from||"get_translations_if_changed",b={p_lang:t,p_cached_version:l,...c.params||{}},x=await p.rpc({from:m,params:b});if(x.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,x.error;let y=x.data;if(!y||!y.changed)return;f=y.translations||{},u=y.version||0,d=!0}else return;if(!d||!f)return;oo.set(o+t,JSON.stringify(f)),u&&oo.set(s+t,String(u));let h={translations:{...n.translations||{}}};h.translations[t]=f,n.update&&n.update(h)}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 Di[i]}})(),Di[i]}async function Ni(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||H_;oo.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 u=f.__ref?.__exec?.text;if(typeof u=="string"&&u.includes("{{"))try{let d=f.call("replaceLiteralsWithObjectFields",u,f.state);d!=null&&l.textContent!==d&&(l.textContent=d)}catch{}}}}async function ji(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&&w(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 ll(){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||H_,s=oo.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 Bi(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 io={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,ll.call(t))}},kC=io;var Vi={polyglot:Fi,getLocalStateLang:Bi,getActiveLang:so,getLang:so,setLang:Ni,getLanguages:Li,loadTranslations:Mi,upsertTranslation:ji};ir();var ag={};$(ag,{SYSTEM_METRICS:()=>Ui,capsizeHandler:()=>ig,capsizePlugin:()=>ul,computeCapsize:()=>q_,default:()=>vC,resolveFontSizePx:()=>K_,resolveMetrics:()=>G_});var Ui={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}},fl=t=>parseFloat(t.toFixed(4)),q_=(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,u=f/t,d=l/i,h=(n-a+s/2)/i-(u-d)/2,g=(c+s/2)/i-(u-d)/2;return{fontSize:`${fl(t/16)}rem`,lineHeight:`${fl(f)}px`,capHeightTrim:`${fl(-h)}em`,baselineTrim:`${fl(-g)}em`}},K_=(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},G_=(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(Ui[i])return Ui[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(Ui[a])return Ui[a]}}return null},ig=(t,e,r,n)=>{if(!t)return;let o=K_(e.fontSize,n);if(!o)return;let s=G_(e.fontFamily,n);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=q_(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},ul={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}},vC=ul;var hg={};$(hg,{PRESERVE_VALUE_KEYS:()=>Ct,SKIP_INLINE_KEYS:()=>Ar,abbrToProp:()=>vt,decode:()=>Q_,encode:()=>X_,expand:()=>Jr,isComponentKey:()=>be,isSelectorKey:()=>xe,parse:()=>Zr,parseFurther:()=>tn,propToAbbr:()=>ce,shorten:()=>zi,shorthandPlugin:()=>Wi,stringify:()=>Xr,stringifyFurther:()=>Qr});var ce={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"},vt=Object.create(null);for(let t in ce)vt[ce[t]]=t;var cg=Object.create(null);for(let t in ce){let e=ce[t];if(cg[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${cg[e]}"`);cg[e]=t}var Ct=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]),Ar=new Set(["text","tx","html","htm","content","cnt","placeholder","phd","src","href","hrf"]);function be(t){return/^[A-Z]/.test(t)}function xe(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function X_(t){if(!t||typeof t!="object")return"";let e=[];for(let r in t){let n=t[r];if(typeof n=="function"||n!==null&&typeof n=="object"&&!Array.isArray(n)||n===void 0)continue;let o=ce[r]||r;if(n===!0)e.push(o);else if(n===!1)e.push("!"+o);else if(Array.isArray(n)){let s=n.map(i=>dl(i));e.push(o+":"+s.join(","))}else e.push(o+":"+dl(n))}return e.join(" ")}function dl(t){return String(t).replace(/ /g,"_")}function zi(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?zi(r):r});let e={};for(let r in t){let n=t[r];if(be(r)){e[r]=lg(n);continue}if(xe(r)){e[r]=lg(n);continue}let o=ce[r]||r;if(Ct.has(r)||Ct.has(o)){e[o]=n;continue}e[o]=lg(n)}return e}function lg(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?zi(e):e}):typeof t=="object"?zi(t):t}function Xr(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Xr(n):n});let e={},r=[];for(let n in t){let o=t[n];if(be(n)){e[n]=Y_(o);continue}if(xe(n)){e[n]=Y_(o);continue}let s=ce[n]||n;if(Ct.has(n)||Ct.has(s)){e[s]=o;continue}if(typeof o=="function"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(Ar.has(n)||Ar.has(s)){e[s]=o;continue}if(Array.isArray(o)){if(o.some(function(a){return a!==null&&typeof a=="object"})){e[s]=o.map(function(a){return a!==null&&typeof a=="object"?Xr(a):a});continue}if(o.length<=1){e[s]=o;continue}r.push(s+":"+o.map(dl).join(","));continue}if(typeof o=="object"){e[s]=Xr(o);continue}o===!0?r.push(s):o===!1?r.push("!"+s):typeof o=="number"||typeof o=="string"&&(o.includes(",")||o.includes("_"))?e[s]=o:r.push(s+":"+dl(o))}return r.length&&(e.in=r.join(" ")),e}function Y_(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Xr(e):e}):typeof t=="object"?Xr(t):t}function Q_(t){if(!t||typeof t!="string")return{};let e={},r=tS(t);for(let n of r){if(n.startsWith("!")){let c=n.slice(1),l=vt[c]||c;e[l]=!1;continue}let o=n.indexOf(":");if(o===-1){let c=vt[n]||n;e[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=vt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(J_);continue}e[a]=J_(i)}return e}function tS(t){return t.trim().split(/\s+/).filter(Boolean)}function J_(t){let e=t.replace(/_/g," ");return/^-?\d+(\.\d+)?$/.test(e)?Number(e):e}function Z_(t){return t.replace(/_/g," ")}function CC(t){if(!t||typeof t!="string")return{};let e={},r=tS(t);for(let n of r){if(n.startsWith("!")){let c=n.slice(1),l=vt[c]||c;e[l]=!1;continue}let o=n.indexOf(":");if(o===-1){let c=vt[n]||n;e[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=vt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(Z_);continue}e[a]=Z_(i)}return e}function Jr(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Jr(r):r});let e={};for(let r in t){let n=t[r];if(be(r)){e[r]=fg(n);continue}let o=vt[r]||r;if(xe(r)&&o===r){e[r]=fg(n);continue}if(Ct.has(o)||Ct.has(r)){e[o]=n;continue}e[o]=fg(n)}return e}function fg(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Jr(e):e}):typeof t=="object"?Jr(t):t}function Zr(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Zr(r):r});let e={};if(typeof t.in=="string"){let r=CC(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(be(r)){e[r]=ug(n);continue}let o=vt[r]||r;if(xe(r)&&o===r){e[r]=ug(n);continue}if(Ct.has(o)||Ct.has(r)){e[o]=n;continue}e[o]=ug(n)}return e}function ug(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Zr(e):e}):typeof t=="object"?Zr(t):t}function eS(t){return String(t).replace(/\\/g,"\\\\").replace(/_/g,"\\_").replace(/,/g,"\\,").replace(/ /g,"_")}function AC(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 EC(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 rS(t){if(t==null||typeof t!="object"||Array.isArray(t))return!1;let e=Object.keys(t);return e.length===1&&e[0]==="in"&&typeof t.in=="string"}function Qr(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Qr(n):n});let e={},r=[];for(let n in t){let o=t[n];if(be(n)){let i=nS(o);e[n]=rS(i)?i.in:i;continue}if(xe(n)){let i=nS(o);e[n]=rS(i)?i.in:i;continue}let s=ce[n]||n;if(Ct.has(n)||Ct.has(s)){e[s]=o;continue}if(typeof o=="function"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(Ar.has(n)||Ar.has(s)){e[s]=o;continue}if(Array.isArray(o)){if(o.some(function(a){return a!==null&&typeof a=="object"})){e[s]=o.map(function(a){return a!==null&&typeof a=="object"?Qr(a):a});continue}if(o.length<=1){e[s]=o;continue}r.push(s+":"+o.map(eS).join(","));continue}if(typeof o=="object"){e[s]=Qr(o);continue}if(o===!0){r.push(s);continue}if(o===!1){r.push("!"+s);continue}if(typeof o=="number"){r.push(s+":#"+o);continue}r.push(s+":"+eS(o))}return r.length&&(e.in=r.join(" ")),e}function nS(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Qr(e):e}):typeof t=="object"?Qr(t):t}function oS(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):AC(t)}function dg(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=vt[l]||l;e[f]=!1;continue}let o=n.indexOf(":");if(o===-1){let l=vt[n]||n;e[l]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=vt[s]||s,c=EC(i);if(c.length>1){e[a]=c.map(oS);continue}e[a]=oS(i)}return e}function tn(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?tn(r):r});let e={};if(typeof t.in=="string"){let r=dg(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(be(r)){typeof n=="string"?e[r]=dg(n):e[r]=pg(n);continue}let o=vt[r]||r;if(xe(r)&&o===r){typeof n=="string"?e[r]=dg(n):e[r]=pg(n);continue}if(Ct.has(o)||Ct.has(r)){e[o]=n;continue}e[o]=pg(n)}return e}function pg(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?tn(e):e}):typeof t=="object"?tn(t):t}var TC={shorten:Jr,stringify:Zr,stringifyFurther:tn};function OC(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 RC=["components","pages","snippets"],Wi={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let n=TC[e===!0?"shorten":e];if(n){for(let o of RC)t[o]&&(t[o]=OC(t[o],n));t.app&&typeof t.app=="object"&&(t.app=n(t.app))}}};var Cg={};$(Cg,{LEVELS:()=>Hi,analyzePlugin:()=>co,attachBrowserListeners:()=>Sl,attachNetworkListeners:()=>wl,classifyEvent:()=>_g,createAnalyzeState:()=>kl,createBeaconSink:()=>kg,createConsoleSink:()=>Sg,createDedupe:()=>bg,createEnrich:()=>mg,createMemorySink:()=>wg,createPipeline:()=>ml,createRedact:()=>gl,createRemoteSink:()=>bl,createSample:()=>xg,createSummarize:()=>yg,default:()=>co,emitFetchEvent:()=>dS,makeEvent:()=>W,meetsLevel:()=>pl,normalizeLevel:()=>qi,resolveSinks:()=>_l,summarizeElement:()=>en});var PC=0,$C=()=>`${Date.now().toString(36)}-${(PC++).toString(36)}`,W=(t,e,r={})=>({id:$C(),ts:Date.now(),type:t,level:e,...r}),IC=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(" > ")},en=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:IC(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var ao=t=>t?.context?.analyze,DC={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"}},LC=(t,{category:e,type:r,level:n})=>o=>{let s=ao(o);!s||!s.shouldCapture(e)||s.emit(W(r,n,{hook:t,element:en(o)}))},sS=t=>(e,r)=>{let n=ao(e);!n||!n.shouldCapture("state")||n.emit(W("state","debug",{hook:t,element:en(e),changedKeys:r?.changedKeys||null}))},co={name:"analyze",error(t,e){let r=ao(t);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=e?.error||e?.err||(e instanceof Error?e:null);r.emit(W("error","error",{hook:e?.hook||"error",element:en(t),error:n,message:n?.message||(typeof e?.message=="string"?e.message:null)}))},renderRouter(t){let e=ao(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(W("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=ao(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=ao(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(W("update","debug",{hook:"update",element:en(t),durationMs:r}))},beforeStateUpdate:sS("beforeStateUpdate"),stateUpdate:sS("stateUpdate")};for(let[t,e]of Object.entries(DC))co[t]=LC(t,e);O();var Hi={error:0,warn:1,info:2,debug:3,trace:4};var pl=(t,e)=>{let r=Hi[t],n=Hi[e];return r==null||n==null?!0:r<=n},qi=t=>Hi[t]!=null?t:"warn";O();var hl=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var FC=(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},MC=(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"***"}},gg=(t,e,r,n)=>{if(n>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>gg(s,e,r,n+1));let o={};for(let s of Object.keys(t))if(FC(s,e)||hl.test(s)){let a=MC(t[s],r);a!==void 0&&(o[s]=a)}else o[s]=gg(t[s],e,r,n+1);return o},gl=(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:u,element:d,target:h,...g}=n,p=gg(g,r,e,0);return{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:h,...p}}};var mg=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}}}},yg=()=>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},bg=(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}},xg=t=>e=>{if(!e)return e;let r=t[e.type];return r==null||r>=1?e:Math.random()>r?null:e},iS={redact:t=>gl(t.config.redact||[],t.config.maskStrategy),enrich:t=>mg(t),summarize:()=>yg(),dedupe:t=>bg(t.config.cache?.dedupeWindowMs||1e3),sample:t=>xg(t.config.sample||{})},NC=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let r=iS[t];return r?r(e):null}return null},ml=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(iS.redact(t));for(let s of r){let i=NC(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 u of c){let d=u,h=!1;for(let g of l)if(d=g(d),d==null){h=!0;break}!h&&d!=null&&f.push(d)}return f}i=c}return i}};O();O();var yl=typeof k<"u"&&typeof k.document<"u",jC=5e3,BC=50,VC=3,UC=1500,zC=1e3,_g=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",WC=t=>{try{return JSON.stringify(t)}catch{return null}},HC=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},qC=t=>{if(!t)return null;let e=String(t),r;return(r=e.match(/Edg\/([\d.]+)/))?{name:"Edge",version:r[1]}:(r=e.match(/OPR\/([\d.]+)/))?{name:"Opera",version:r[1]}:(r=e.match(/Firefox\/([\d.]+)/))?{name:"Firefox",version:r[1]}:/Chrome\/([\d.]+)/.test(e)&&/Safari\//.test(e)?(r=e.match(/Chrome\/([\d.]+)/),{name:"Chrome",version:r[1]}):(r=e.match(/Version\/([\d.]+).*Safari/))?{name:"Safari",version:r[1]}:{name:null,version:null}},KC=()=>{if(!yl)return null;try{let t=k.document?.documentElement?.getAttribute("data-theme")||null,e=typeof k.matchMedia=="function"?k.matchMedia("(prefers-color-scheme: dark)").matches:null;return{active:t||(e?"dark":e===!1?"light":null),forced:t||null,prefers:e==null?null:e?"dark":"light"}}catch{return null}},GC=()=>{if(!yl)return null;let t=k.location,e=typeof navigator<"u"?navigator:null,r=typeof screen<"u"?screen:null;return{url:t?.href||null,path:t?.pathname||null,referrer:k.document?.referrer||null,title:k.document?.title||null,ua:e?.userAgent||null,browser:qC(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:HC(),viewport:k.innerWidth?{w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}:null,screen:r?{w:r.width||null,h:r.height||null,availW:r.availWidth||null,availH:r.availHeight||null,colorDepth:r.colorDepth||null,orientation:r.orientation?.type||null}:null,theme:KC()}},bl=(t={})=>{let e=t.url,r=typeof t.transport=="function"?t.transport:null,n=typeof t.syncTransport=="function"?t.syncTransport:null;if(!e&&!r)return()=>{};let o=t.apiKey||null,s=t.appKey||t.appId||null,i=t.tenantKey||t.tenant||null,a=t.release||null,c=t.env||null,l=t.sdk||null,f=typeof t.getAuth=="function"?t.getAuth:null,u=typeof t.getContext=="function"?t.getContext:null,d=typeof t.classify=="function"?t.classify:_g,h=typeof t.beforeSend=="function"?t.beforeSend:null,g=t.batchMs!=null?t.batchMs:jC,p=t.maxBatch||BC,m=t.maxRetries!=null?t.maxRetries:VC,b=t.backoffMs||UC,x=t.queueLimit||zC,y=t.sampleRate!=null?t.sampleRate:1,_=t.sessionId||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),v=[],E=[],I=null,z=null,R=()=>{I||!v.length||(I=setTimeout(V,g))},P=D=>{if(z)return;let q=b*Math.pow(2,Math.max(0,D-1));z=setTimeout(()=>{if(z=null,!E.length)return;let dt=E.shift();bt(dt.envelope,dt.attempt)},q)},G=(D,q=!1)=>{let dt=u?aS(u):null,At={id:_,sentAt:Date.now()};q&&(At.endedAt=Date.now());let gt={v:1,session:At,app:{key:s,release:a,env:c},tenant:i,sdk:l,page:GC(),user:dt?.user||null,traits:dt?.traits||null,tags:dt?.tags||null,events:D};if(h)try{return h(gt)||null}catch{return gt}return gt},bt=async(D,q=1)=>{if(D)try{let dt=!0;if(r){let At=await r(D);dt=At!==!1&&At?.ok!==!1}else dt=await YC(e,D,{apiKey:o,getAuth:f});!dt&&q<m&&(E.push({envelope:D,attempt:q+1}),P(q+1))}catch{q<m&&(E.push({envelope:D,attempt:q+1}),P(q+1))}},V=(D=!1,q=!1)=>{if(I&&(clearTimeout(I),I=null),!v.length&&!q)return;let dt=v;v=[];let At=G(dt,q);if(At){if(D&&yl){if(typeof n=="function"&&aS(()=>n(At)))return;if(navigator.sendBeacon&&e){let gt=WC(At);if(gt)try{navigator.sendBeacon(e,new k.Blob([gt],{type:"application/json"}));return}catch{}}}bt(At)}},Q=!1,N=()=>{Q||(Q=!0,V(!0,!0))};yl&&(k.addEventListener("pagehide",N,{passive:!0}),k.addEventListener("beforeunload",N,{passive:!0}),k.addEventListener("visibilitychange",()=>{k.document.visibilityState==="hidden"&&V(!0)},{passive:!0}));let X=D=>{if(!D||y<1&&Math.random()>y)return;Q&&(Q=!1);let q={...D,log_type:d(D)};v.push(q),v.length>x&&(v=v.slice(-x)),v.length>=p?V():R()};return X.flush=()=>V(!1),X.endSession=N,X.sessionId=_,X},aS=t=>{try{return t()}catch{return null}},YC=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 XC={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},JC="\x1B[0m",xl=typeof k<"u"&&typeof k.document<"u",Sg=(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(xl)i(a,s);else{let c=XC[s.level]||"";i(`${c}${a}${JC}`,s)}}},wg=(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},kg=(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=xl?new k.Blob([c],{type:"application/json"}):c;if(xl&&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(()=>{})};xl&&(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},cS={console:Sg,memory:wg,beacon:kg,remote:bl},_l=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=cS[n];if(!o)continue;r.push(n==="memory"?o(t,{}):o({}))}else if(n&&typeof n=="object"&&n.type){let o=cS[n.type];if(!o)continue;r.push(n.type==="memory"?o(t,n):o(n))}return r};O();var ZC=typeof k<"u"&&typeof k.document<"u",QC=new Set(["password","hidden"]),lS=(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))))}},vg="__analyzeKeyPath",lo=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[vg])return e[vg];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[vg]=i}catch{}return i},tA=(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"***"}},eA=t=>!!(!t||t.tagName==="INPUT"&&QC.has(t.type)||hl.test(t.name||"")||hl.test(t.id||"")||t.dataset?.analyze==="skip"),Sl=t=>{if(!ZC)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(W("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(W("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),e.pointer){o(k,"click",i=>{t.emit(W("pointer","info",{hook:"click",target:lo(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:fS(i)}))},{passive:!0,capture:!0}),o(k,"dblclick",i=>{t.emit(W("pointer","info",{hook:"dblclick",target:lo(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(k,"contextmenu",i=>{t.emit(W("pointer","info",{hook:"contextmenu",target:lo(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=lS(i=>{t.emit(W("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(W("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:fS(s),target:lo(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=eA(a),f=a.dataset?.analyze==="track",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=tA(a.value,t.config.maskStrategy)),t.emit(W("forms","info",{hook:i.type,target:lo(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};o(k,"input",s,{passive:!0,capture:!0}),o(k,"change",s,{passive:!0,capture:!0}),o(k,"submit",i=>{t.emit(W("forms","info",{hook:"submit",target:lo(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=lS(()=>{t.emit(W("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=Uo(()=>{t.emit(W("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(W("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(k.document,"visibilitychange",()=>{t.emit(W("viewport","info",{hook:"visibilitychange",hidden:k.document.hidden}))},{passive:!0}),t.emit(W("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(W("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(uS)}))}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(W("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{}},fS=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),rA=t=>{let e={name:t.name||"Error",message:typeof t.message=="string"?t.message:String(t),stack:typeof t.stack=="string"?t.stack:null};return t.cause!==void 0&&(e.cause=uS(t.cause)),e},uS=t=>{if(t==null)return t;if(t instanceof Error)return rA(t);if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};O();var nA=typeof k<"u"&&typeof k.document<"u",dS=(t,e)=>{let r=t?.analyze;if(!r||!r.shouldCapture("network"))return;let n=e.phase==="error"?"error":"info";r.emit(W("network",n,{hook:`fetch.${e.phase}`,source:"symbo-fetch",...e}))},wl=t=>{if(nA&&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(W("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(W("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(W("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(W("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(W("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(W("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 oA={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},sA={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},iA={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},aA={errors:!0,warnings:!0,console:!0,network:!0,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},cA=t=>{let e={...oA,...t};return e.replay&&Object.assign(e,sA),e.telemetry&&Object.assign(e,iA),e.remote&&Object.assign(e,aA),e},lA=64,fA=()=>{if(typeof k>"u"||!k.location)return null;try{let e=new URLSearchParams(k.location.search).get("analyze");return e||null}catch{return null}},kl=(t={})=>{let e=t===!0?{}:{...t};e.capture=cA(e.capture||{});let r=fA();(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=qi(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=ml(n),n.__sinks=_l(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&&pl(s.level,n.config.level)){if(!n.__ready){if(s.level!=="error"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<lA&&n.__preBuffer.push(s);return}o(),pS(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)pS(n,a)}try{Sl(n)}catch(a){console.error("[analyze] browser attach error:",a)}try{wl(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=qi(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},pS=(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 _e=Object.create(null);_e.open="0";_e.close="1";_e.ping="2";_e.pong="3";_e.message="4";_e.upgrade="5";_e.noop="6";var Ki=Object.create(null);Object.keys(_e).forEach(t=>{Ki[_e[t]]=t});var Gi={type:"error",data:"parser error"};var mS=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",yS=typeof ArrayBuffer=="function",bS=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Yi=({type:t,data:e},r,n)=>mS&&e instanceof Blob?r?n(e):hS(e,n):yS&&(e instanceof ArrayBuffer||bS(e))?r?n(e):hS(new Blob([e]),n):n(_e[t]+(e||"")),hS=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];e("b"+(n||""))},r.readAsDataURL(t)};function gS(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var Ag;function xS(t,e){if(mS&&t.data instanceof Blob)return t.data.arrayBuffer().then(gS).then(e);if(yS&&(t.data instanceof ArrayBuffer||bS(t.data)))return e(gS(t.data));Yi(t,!1,r=>{Ag||(Ag=new TextEncoder),e(Ag.encode(r))})}var _S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<_S.length;t++)Xi[_S.charCodeAt(t)]=t;var SS=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=Xi[t.charCodeAt(n)],i=Xi[t.charCodeAt(n+1)],a=Xi[t.charCodeAt(n+2)],c=Xi[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 uA=typeof ArrayBuffer=="function",Ji=(t,e)=>{if(typeof t!="string")return{type:"message",data:wS(t,e)};let r=t.charAt(0);return r==="b"?{type:"message",data:dA(t.substring(1),e)}:Ki[r]?t.length>1?{type:Ki[r],data:t.substring(1)}:{type:Ki[r]}:Gi},dA=(t,e)=>{if(uA){let r=SS(t);return wS(r,e)}else return{base64:!0,data:t}},wS=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var kS="",vS=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{Yi(s,!1,a=>{n[i]=a,++o===r&&e(n.join(kS))})})},CS=(t,e)=>{let r=t.split(kS),n=[];for(let o=0;o<r.length;o++){let s=Ji(r[o],e);if(n.push(s),s.type==="error")break}return n};function AS(){return new TransformStream({transform(t,e){xS(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 Eg;function vl(t){return t.reduce((e,r)=>e+r.length,0)}function Cl(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 ES(t,e){Eg||(Eg=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(vl(r)<1)break;let c=Cl(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(vl(r)<2)break;let c=Cl(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(vl(r)<8)break;let c=Cl(r,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(Gi);break}o=f*Math.pow(2,32)+l.getUint32(4),n=3}else{if(vl(r)<o)break;let c=Cl(r,o);a.enqueue(Ji(s?c:Eg.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(Gi);break}}}})}var Tg=4;function st(t){if(t)return pA(t)}function pA(t){for(var e in st.prototype)t[e]=st.prototype[e];return t}st.prototype.on=st.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};st.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};st.prototype.off=st.prototype.removeListener=st.prototype.removeAllListeners=st.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};st.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};st.prototype.emitReserved=st.prototype.emit;st.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};st.prototype.hasListeners=function(t){return!!this.listeners(t).length};var Ke=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),Pt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),TS="arraybuffer";function Al(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var hA=Pt.setTimeout,gA=Pt.clearTimeout;function Ge(t,e){e.useNativeTimers?(t.setTimeoutFn=hA.bind(Pt),t.clearTimeoutFn=gA.bind(Pt)):(t.setTimeoutFn=Pt.setTimeout.bind(Pt),t.clearTimeoutFn=Pt.clearTimeout.bind(Pt))}var mA=1.33;function OS(t){return typeof t=="string"?yA(t):Math.ceil((t.byteLength||t.size)*mA)}function yA(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 El(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function RS(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function PS(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 Tl=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type="TransportError"}},Ye=class extends st{constructor(e){super(),this.writable=!1,Ge(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 Tl(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=Ji(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=RS(e);return r.length?"?"+r:""}};var Zi=class extends Ye{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)};CS(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,vS(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]=El()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var $S=!1;try{$S=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var IS=$S;function bA(){}var Og=class extends Zi{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}},Er=class t extends st{constructor(e,r,n){super(),this.createRequest=e,Ge(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=Al(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=bA,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()}};Er.requestsCount=0;Er.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",DS);else if(typeof addEventListener=="function"){let t="onpagehide"in Pt?"pagehide":"unload";addEventListener(t,DS,!1)}}function DS(){for(let t in Er.requests)Er.requests.hasOwnProperty(t)&&Er.requests[t].abort()}var xA=(function(){let t=LS({xdomain:!1});return t&&t.responseType!==null})(),Tr=class extends Og{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=xA&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Er(LS,this.uri(),e)}};function LS(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||IS))return new XMLHttpRequest}catch{}if(!e)try{return new Pt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var FS=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Pg=class extends Ye{get name(){return"websocket"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=FS?{}:Al(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;Yi(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&Ke(()=>{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]=El()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},Rg=Pt.WebSocket||Pt.MozWebSocket,Or=class extends Pg{createSocket(e,r,n){return FS?new Rg(e,r,n):r?new Rg(e,r):new Rg(e)}doWrite(e,r){this.ws.send(r)}};var fo=class extends Ye{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=ES(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=AS();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&&Ke(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var $g={websocket:Or,webtransport:fo,polling:Tr};var _A=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,SA=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function uo(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=_A.exec(t||""),s={},i=14;for(;i--;)s[SA[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=wA(s,s.path),s.queryKey=kA(s,s.query),s}function wA(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 kA(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Ig=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ol=[];Ig&&addEventListener("offline",()=>{Ol.forEach(t=>t())},!1);var rn=class t extends st{constructor(e,r){if(super(),this.binaryType=TS,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=uo(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=uo(r.host).host);Ge(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=PS(this.opts.query)),Ig&&(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"})},Ol.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=Tg,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+=OS(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,Ke(()=>{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(),Ig&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Ol.indexOf(this._offlineEventListener);n!==-1&&Ol.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};rn.protocol=Tg;var Rl=class extends rn{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;rn.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",u=>{if(!n)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;rn.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 d=new Error("probe error");d.transport=r.name,this.emitReserved("upgradeError",d)}}))};function s(){n||(n=!0,f(),r.close(),r=null)}let i=u=>{let d=new Error("probe error: "+u);d.transport=r.name,s(),this.emitReserved("upgradeError",d)};function a(){i("transport closed")}function c(){i("socket closed")}function l(u){r&&u.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}},po=class extends Rl{constructor(e,r={}){let n=typeof e=="object",o=n?{...e}:{...r};(!o.transports||o.transports&&typeof o.transports[0]=="string")&&(o.transports=(o.transports||["polling","websocket","webtransport"]).map(s=>$g[s]).filter(s=>!!s)),super(n?o:e,o)}};var gM=po.protocol;function MS(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=uo(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 jg={};$(jg,{Decoder:()=>Mg,Encoder:()=>Fg,PacketType:()=>M,isPacketValid:()=>WA,protocol:()=>GS});var CA=typeof ArrayBuffer=="function",AA=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,NS=Object.prototype.toString,EA=typeof Blob=="function"||typeof Blob<"u"&&NS.call(Blob)==="[object BlobConstructor]",TA=typeof File=="function"||typeof File<"u"&&NS.call(File)==="[object FileConstructor]";function ta(t){return CA&&(t instanceof ArrayBuffer||AA(t))||EA&&t instanceof Blob||TA&&t instanceof File}function Qi(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(Qi(t[r]))return!0;return!1}if(ta(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Qi(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&Qi(t[r]))return!0;return!1}function jS(t){let e=[],r=t.data,n=t;return n.data=Pl(r,e),n.attachments=e.length,{packet:n,buffers:e}}function Pl(t,e,r){if(!t)return t;if(ta(t)){let n={_placeholder:!0,num:e.length};return e.push(t),n}else if(Array.isArray(t)){let n=new Array(t.length);for(let o=0;o<t.length;o++)n[o]=Pl(t[o],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){if(t.toJSON&&typeof t.toJSON=="function"&&!r)return Pl(t.toJSON(),e,!0);let n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=Pl(t[o],e));return n}return t}function BS(t,e){return t.data=Dg(t.data,e),delete t.attachments,t}function Dg(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]=Dg(t[r],e);else if(typeof t=="object")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=Dg(t[r],e));return t}var qS=ww(HS(),1),Lg=(0,qS.default)("socket.io-parser"),KS=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],GS=5,M;(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"})(M||(M={}));var Fg=class{constructor(e){this.replacer=e}encode(e){return Lg("encoding packet %j",e),(e.type===M.EVENT||e.type===M.ACK)&&Qi(e)?this.encodeAsBinary({type:e.type===M.EVENT?M.BINARY_EVENT:M.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===M.BINARY_EVENT||e.type===M.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)),Lg("encoded %j as %s",e,r),r}encodeAsBinary(e){let r=jS(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},Mg=class t extends st{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===M.BINARY_EVENT;n||r.type===M.BINARY_ACK?(r.type=n?M.EVENT:M.ACK,this.reconstructor=new Ng(r)):super.emitReserved("decoded",r)}else if(ta(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(M[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===M.BINARY_EVENT||n.type===M.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(!YS(a)||a<1)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 Lg("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 M.CONNECT:return Dl(r);case M.DISCONNECT:return r===void 0;case M.CONNECT_ERROR:return typeof r=="string"||Dl(r);case M.EVENT:case M.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&KS.indexOf(r[0])===-1);case M.ACK:case M.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Ng=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=BS(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function VA(t){return typeof t=="string"}var YS=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function UA(t){return t===void 0||YS(t)}function Dl(t){return Object.prototype.toString.call(t)==="[object Object]"}function zA(t,e){switch(t){case M.CONNECT:return e===void 0||Dl(e);case M.DISCONNECT:return e===void 0;case M.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&KS.indexOf(e[0])===-1);case M.ACK:return Array.isArray(e);case M.CONNECT_ERROR:return typeof e=="string"||Dl(e);default:return!1}}function WA(t){return VA(t.nsp)&&UA(t.id)&&zA(t.type,t.data)}function Yt(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var HA=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),yo=class extends st{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=[Yt(e,"open",this.onopen.bind(this)),Yt(e,"packet",this.onpacket.bind(this)),Yt(e,"error",this.onerror.bind(this)),Yt(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(HA.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:M.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let f=this.ids++,u=r.pop();this._registerAckCallback(f,u),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:M.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 M.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 M.EVENT:case M.BINARY_EVENT:this.onevent(e);break;case M.ACK:case M.BINARY_ACK:this.onack(e);break;case M.DISCONNECT:this.ondisconnect();break;case M.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:M.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:M.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 on(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}on.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};on.prototype.reset=function(){this.attempts=0};on.prototype.setMin=function(t){this.ms=t};on.prototype.setMax=function(t){this.max=t};on.prototype.setJitter=function(t){this.jitter=t};var bo=class extends st{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,Ge(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new on({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=e;let o=r.parser||jg;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 po(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=Yt(r,"open",function(){n.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=Yt(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(Yt(e,"ping",this.onping.bind(this)),Yt(e,"data",this.ondata.bind(this)),Yt(e,"error",this.onerror.bind(this)),Yt(e,"close",this.onclose.bind(this)),Yt(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){Ke(()=>{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 yo(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 ea={};function xo(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let r=MS(t,e.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=ea[o]&&s in ea[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new bo(n,e):(ea[o]||(ea[o]=new bo(n,e)),c=ea[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(xo,{Manager:bo,Socket:yo,io:xo,connect:xo});O();var XS=new Set(["__proto__","constructor","prototype"]),JS=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(XS.has(t[e]))return!1;return!0},qA=(t,e)=>{!t||!JS(e)||e.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},t)},KA=(t,e,r,n=!1)=>{!t||!JS(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)},Bg=(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":qA(t,o);break;case"update":case"set":KA(t,o,s,!0);break;default:break}return r},ZS=(t,e)=>{!t||!e||typeof e!="object"||(t.__rawDesignSystem=JSON.parse(JSON.stringify(e)))},QS=(t,e)=>{for(let r in e){if(XS.has(r))continue;let n=e[r],o=t[r];if(n&&typeof n=="object"&&!Array.isArray(n)){if(!o||typeof o!="object"||Array.isArray(o)){r in t||(t[r]=JSON.parse(JSON.stringify(n)));continue}QS(o,n)}else r in t||(t[r]=n)}},Vg=(t,e)=>{if(!t||!t.__rawDesignSystem)return null;if(Array.isArray(e)&&e.length){let o={designSystem:t.__rawDesignSystem};Bg(o,e)}let r=JSON.parse(JSON.stringify(t.__rawDesignSystem)),n=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[];for(let o of n){let s=o&&o.designSystem;s&&typeof s=="object"&&QS(r,s)}return r};O();var tw=(t,e,r)=>{let n=!1;return(o={})=>{let{data:s}=o,{schema:i}=o;s&&(s=t.call("deepDestringifyFunctions",s,Array.isArray(s)?[]:{}),Object.entries(s).forEach(([a,c])=>{if(r[a]&&typeof r[a]=="object")if(a==="designSystem"){if(ZS(r,c),n){let l=Vg(r);l&&qe(l)}}else Nr(r[a],c);else r[a]=c}),n=!0,i&&(r.schema=i))}},ew=(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=o.filter(c=>Array.isArray(c)&&Array.isArray(c[1])&&c[1][0]==="designSystem"),i=s.length?o.filter(c=>!s.includes(c)):o,a=Bg(r,i);if(s.length&&a.add("designSystem"),a.has("state")&&e.update(r.state),["pages","components","snippets","functions","assets"].some(c=>a.has(c))){let{pathname:c,search:l,hash:f}=r.window.location;t.call("router",c+l+f,t.__ref.root,{},{scrollToTop:!1})}if(a.has("designSystem")){let c=Vg(r,s);qe(c||r.designSystem)}};var GA={success:"green",error:"red",warning:"yellow"},rw=(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)}},nw={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:GA[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 YA=!1,XA=()=>YA?"http://localhost:8080":"https://api.symbols.app",JA=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}},ZA=async t=>{try{let e=t||XA(),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)}},iw=(t,e,r,n)=>{t.on("snapshot",tw(e,r,n)),t.on("ops",ew(e,r,n)),t.on("clients",o=>{n.editor?.verbose&&rw(o,e,r)}),t.on("disconnect",o=>{n.editor?.verbose&&console.info("[sync] disconnected",o)})},QA=async(t,e,r,n)=>{let o=await ZA(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=xo(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)")}),iw(a,t,e,r),a},tE=(t,e,r)=>{let n=xo({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),iw(n,t,e,r),n.on("reload",()=>{typeof k<"u"&&k.location&&k.location.reload()}),n},eE=async(t,e,r)=>{let{mode:n,baseUrl:o}=JA(r);return n?n==="collab"?QA(t,e,r,o):n==="runner"?tE(t,e,r):null:null},rE={onInit:eE};var aw=t=>typeof t>"u",ow=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),sw=t=>t?.editor?.runtime==="runner",cw=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},lw={name:"sync",beforeCreate(t,e){let r=e&&e.editor;(r&&!aw(r.liveSync)?r.liveSync:ow(e)||sw(e))&&(ow(e)&&!sw(e)&&!e?.key||cw(t,rE))}},fw={name:"notifications",beforeCreate(t,e){if(!e)return;let r=aw(e.notifications)?null:e.notifications,n=e.editor&&e.editor.verbose===!0;(r===!0||r!==!1&&n)&&cw(t,nw)}};var Wg={};$(Wg,{Inspect:()=>Ll,inspectPlugin:()=>zg});O();function uw(t){return S(t)?t:T(t)?t.find(e=>S(e)):""}function Ug(t){if(!t)return;let e=t.__ref.__componentKey,r=t.extends&&uw(t.extends),n=t.parent&&t.parent.childExtends&&uw(t.parent.childExtends);return(e||r||n||"").split("_")[0].split(".")[0].split("+")[0]}function Fl(t){if(!t||!t.__ref)return;let{components:e,pages:r,editor:n}=t.context,o=Ug(t);return n&&n.onInitInspect&&!n.onInitInspect(o,t,t.state)?Fl(t.parent):o&&(e[o]||r[o])?t:Fl(t.parent)}var nE=(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}))}},Ll={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:nE,onMousemove:(t,e,r)=>{let n=t.target.ref,o=Fl(n),s=e.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=Ug(o),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:u,height:d}=o.node.getBoundingClientRect(),h={x:l,y:f,width:u,height:d};if(!s.area)return a(h);s.area.x!==h.x&&a(h)}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=Fl(n);if(!o)return;let s=Ug(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(w(e)){let{Content:r,...n}=e;for(let o in n)to[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=`
|
|
78
78
|
display: block !important;
|
|
79
79
|
top: ${a-6}px;
|
|
80
80
|
left: ${i-6}px;
|
|
81
81
|
width: ${c+12}px;
|
|
82
82
|
height: ${l+12}px;
|
|
83
|
-
`}return e.node.style=s,e.Span.node.innerText=r.focusKey,!1}}},Ug={name:"inspect",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(Dl):t.extends?t.extends=[t.extends,Dl]:t.extends=[Dl]}};var fw=t=>!!(t&&typeof t=="object"&&t.__isStub===!0),rE=(t,e)=>{let r=e?.sharedLibraries,n=Array.isArray(r)?r.map(s=>typeof s=="string"?s:s?.key||s?.name):r&&typeof r=="object"?Object.keys(r):null,o=0;return t.map(s=>{if(!fw(s))return s;let i=o++;if(typeof s.__libraryKey=="string"&&s.__libraryKey)return s.__libraryKey;if(n&&n[i])return n[i];if(typeof s.__stubId=="string"){let a=s.__stubId.match(/^@symbo[-.]ls\/([^/]+)/);if(a)return a[1]}return null}).filter(Boolean)},nE=async(t,e={})=>{let r=e.symbolsConfig,n=r?.owner&&r?.key?`${r.owner}--${r.key}`:r?.key,o=e.key=e.key||n||(S(t)?t:"smblsapp");if(e.define=e.define||eo,e.cssPropsRegistry=ut,e.window=O_(e),e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(h=>typeof h=="string"||fw(h))){e.sharedLibraries=rE(e.sharedLibraries,e.symbolsConfig);let{resolveSharedLibraries:h}=await Promise.resolve().then(()=>(O(),nc));e.sharedLibraries=await h(e.sharedLibraries)}V_(e)}let[s,i]=N_(o,e);e.designSystem=s,e.registry=i,e.cases||(e.cases={}),e.shorthand&&zi.prepareContext(e);let a=j_(t,e);e.state=a,hs(a),e.pages=B_(t,e),e.components=R_(e),e.utils=P_(e),cr[e.packageManager]&&(e.dependencies=await D_(e)),e.methods=$_(e),e.routerOptions=h_(t,e),e.defaultExtends=[Jc],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope&&w(e.globalScope)&&(e.globalScope=Lo(e.globalScope));let c=(d,h)=>{let g=h?d[h]:d;if(!w(g))return;let p=Jt(g);try{Object.assign(g,p)}catch(m){if(h)d[h]=p;else throw m}};c(t),c(e,"components"),c(e,"pages"),c(e,"functions"),c(e,"methods"),c(e,"snippets"),c(e,"app");let l=d=>d&&typeof d.select=="function";e.fetch?.__resolved&&!l(e.fetch.__resolved)&&delete e.fetch.__resolved,e.db?.__resolved&&!l(e.db.__resolved)&&delete e.db.__resolved;let f=d=>e.plugins.some(h=>h.name===d);if(e.polyglot&&!f("polyglot")){e.plugins.push(oo);for(let d in Bi)d in e.functions||(e.functions[d]=Bi[d])}if(f("helmet")||e.plugins.push(Qh),e.fetch&&!f("fetch")&&e.plugins.push(zu),e.designSystem?.typography?.useCapsize!==!1&&!f("capsize")&&(e.plugins.push(fl),e.cssPropsRegistry.useCapsize=sg),e.shorthand&&!f("shorthand")&&e.plugins.push(zi),e.analyze&&!f("analyze")){let d=e.analyze===!0?{}:e.analyze;e.analyze=wl(d),e.plugins.push(io)}return e.sync!==!1&&!f("sync")&&e.plugins.push(aw),e.inspect&&!f("inspect")&&e.plugins.push(Ug),(e.notifications===!0||e.editor&&e.editor.verbose===!0)&&e.notifications!==!1&&!f("notifications")&&e.plugins.push(cw),e},Wg=async(t,e)=>{w(e)||(e={}),Me(t)?(t={},e.parent=t):S(t)?(t={},e.key=t):w(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 nE(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&&w(e.app))for(let c in e.app)t[c]===void 0&&(t[c]=e.app[c]);t.extends=A_(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await L_({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 oE(oe,t,i,e,r,o);let a=oe(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return typeof window<"u"&&!e.document&&(window.__smblsApp=a),a},oE=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 sE(o),c},sE=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var Hg=(t,e)=>Y(t,w(e)?e:{}),iE=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},aE=()=>{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}},uw=t=>{let e=aE();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},qg=(t,e=Cr,r)=>{let n={...Cr,...Hg(e,r)};return uw(n),iE(n),Wg(t,n).then(s=>{if(Xh(s,n),s.destroy=()=>Pi(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Ri(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},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})},cE=(t,e=Cr,r)=>{let n=qg(t,e,r),o={...Cr,...Hg(e,r)},s=o.key;return b_(n,s,{utils:Oi,...o}),n},lE=async(t,e=Cr,r)=>{let n={...Cr,...Hg(e,r)};uw(n);let o=e.key;await y_(o,n);let s=await Wg(t,n);return Xh(s,n),s.destroy=()=>Pi(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Ri(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},n.onCreate&&await n.onCreate(s,s.state,s.context,n),s},fE=(t={},e=Cr,r)=>qg({deps:{isUndefined:xt},...t},Y({domqlOptions:{onlyResolveExtends:!0}},e),r);O();ir();var dw={"@symbo.ls/signal":Zl,"@symbo.ls/scratch":hp,"@symbo.ls/element":oh,"@symbo.ls/css":_p,"@symbo.ls/utils":nc,"@symbo.ls/state":qp,"@symbo.ls/router":Ei,"@symbo.ls/polyglot":og,"@symbo.ls/helmet":tg,"@symbo.ls/fetch":Vr,"@symbo.ls/capsize":ig,"@symbo.ls/shorthand":pg,"@symbo.ls/analyze":vg,"@symbo.ls/inspect":zg},pw=(t,e)=>{let r=t||(typeof globalThis<"u"?globalThis:{}),n=r.__SMBLS_PKGS__||(r.__SMBLS_PKGS__={});for(let o in dw)n[o]||(n[o]=dw[o]);if(e)for(let o in e)n[o]||(n[o]=e[o]);return n};nl(mi);pw(void 0,{smbls:Kg});export{Op as ANIMATION_PROPS,vk as ARIA_ROLES,Cp as ATTR_TRANSFORMS,Rp as BLOCK_PROPS,Ae as CDN_PROVIDERS,js as CONFIG,de as CSS_NATIVE_COLOR_REGEX,ut as CSS_PROPS_REGISTRY,cn as CSS_UNITS,Ci as DEFAULT_CONFIG,yt as DEFAULT_CSS_PROPERTIES_LIST,Un as DELEGATED_EVENTS,eg as DESIGN_SYSTEM_OPTIONS,Cf as DOMQL_EVENTS,tr as DOMQ_PROPERTIES,Ly as DOM_EVENTS,Vf as ENV,Oe as FACTORY,Lp as FLEX_PROPS,Pp as FONT_PROPS,Fp as GRID_PROPS,Nc as HTML_ATTRIBUTES,yn as HTML_TAGS,br as LIFECYCLE_EVENTS,dn as METHODS,$o as METHODS_EXL,$p as MISC_PROPS,Fc as MIXINS,le as NODE_ENV,es as OPTIONS,cr as PACKAGE_MANAGER_TO_CDN,Po as PARSED_DOMQ_PROPERTIES,Ip as POSITION_PROPS,er as PROPS_METHODS,Ot as REGISTRY,Pr as RESERVED_STORE_METHODS,sl as ROUTER_OPTIONS,kc as STANDARD_SCHEME_QUERIES,vf as STATE_PROPERTIES,bo as STORE_METHOD_NAMES,Bn as SVG_TAGS,Dp as THEME_PROPS,_i as TIMING_PROPS,vo as TYPES,Za as UNIVERSAL_RESERVED_KEYS,$c as VALUE_TRANSFORMERS,Xl as __resetStateShadowWarnings,cy as activateConfig,Da as addCaching,Ia as addContext,yi as addDelegatedEvent,du as addExtend,Mt as addExtends,uf as addItemAfterEveryElement,Kn as addMethods,Eo as addProtoToArray,Ra as addRef,Xd as animation,ci as appendSVGSprite,fi as appendSvgIconsSprite,Ep as applyAttrTransforms,Gh as applyCSS,Pu as applyDependentState,ai as applyDocument,Ba as applyEvent,Va as applyEventUpdate,Wn as applyExtends,Ac as applyHeadings,Wc as applyInitialState,ur as applyMediaSequenceVars,Yo as applyProps,ui as applyReset,qs as applySequenceGlobalVars,We as applySequenceVars,ni as applySpacingSequence,Kt as applyStateMethods,ii as applyTimingSequence,Np as applyTrueProps,ti as applyTypographySequence,nf as arrayContainsOtherArray,pf as arraysEqual,zr as arrayzeValue,De as batch,Gd as breakpoints,$s as buildImgSrcset,Is as buildSourcesAndImg,Fu as cache,yr as cacheNode,Qu as call,wi as callStateMethod,_r as camelToAttr,Fy as camelToLowerAttr,ed as captureSnapshot,Ic as changeGlobalTheme,Pd as changeLightness,Sr as checkAttributeByTagName,Ap as checkEventFunctions,Eu as checkForStateTypes,ri as checkIfBoxSize,ja as checkIfInherits,mf as checkIfStringIsInArray,ep as class,Ef as clone,Vo as cloneAndMergeArrayExtend,Xf as cloneFunction,Vd as color,Ee as colorStringToRgbaArray,Zn as components,lu as concatAddExtends,Ks as convertSvgToSymbol,Sd as copyJavaScriptToClipboard,_d as copyStringToClipboard,qg as create,cE as createAsync,Oa as createBasedOnType,Wl as createComputed,xc as createConfig,C_ as createDefine,J as createEffect,Au as createElement,ya as createElementExtends,zo as createExtends,bn as createExtendsFromKeys,Sa as createExtendsStack,jn as createHTMLNode,Jf as createIfConditionFlag,Tu as createInheritedState,jo as createKey,Df as createNestedObject,Ru as createNestedObjectByKeyPath,fa as createObjectWithoutPrototype,Pa as createParent,$a as createPath,Xo as createProps,Ea as createPropsStack,Cu as createRoot,Iu as createScope,xo as createScopeStore,Xt as createSignal,fE as createSkeleton,No as createSnapshotId,zp as createState,zt as createStore,lE as createSync,ne as css,yc as cssMediaVars,mc as cssVars,kf as customDecodeURIComponent,wf as customEncodeURIComponent,lf as cutArrayAfterValue,cf as cutArrayBeforeValue,Bo as debounce,Kf as debounceOnContext,Sf as decodeNewlines,it as deepClone,$f as deepContains,As as deepDefaults,Jt as deepDestringifyFunctions,ma as deepExtend,Y as deepMerge,ke as deepMergeExtends,Io as deepStringifyFunctions,eo as defaultDefine,Ju as defineSetter,Lo as destringifyGlobalScope,Pi as destroy,id as detectHeightOnInit,Nf as detectInfiniteLoop,mr as detectTag,Yd as devices,wr as dispose,_f as encodeNewlines,Ur as error,Bf as excludeKeysFromObject,ot as exec,Tk as executeAttr,Xk as exetuteClassPerComponent,fu as extendCachedRegistry,Wo as extendStackRegistry,qo as extractArrayExtend,Pk as extractConditionalAttrs,rc as fetchLibraryData,ad as fibonacciNumberByIndex,hf as filterArrays,gf as filterArraysFast,Ek as filterAttributesByTagName,wa as finalizeExtends,ec as findClosestNumber,yd as findClosestNumberInFactory,wc as findHeadingLetter,Hs as findHeadings,Na as findInheritedState,bf as findKeyPosition,xn as flattenExtend,Ld as font,Nd as fontFace,Fd as fontFamily,Md as fontFamilyTypes,sd as formatDate,pa as generateHash,tc as generateHeadArrayTags,Mo as generateKey,gd as generateMetaTags,jt as generateSequence,sp as generateSequencePosition,Pn as generateSprite,zs as generateSubSequence,Gu as get,A as getActiveConfig,Lc as getActiveDocument,no as getActiveLang,ue as getCDNUrl,xp as getCacheSize,gu as getCapitalCaseKeys,wn as getCdnProviderFromConfig,Ma as getChildStateInKey,ds as getChildren,et as getColor,cc as getColorShade,xs as getContext,ru as getCookie,vs as getDB,Wr as getDefaultOrFirstKey,Cd as getEmotionStylesheet,pu as getExtendsInElement,Uo as getExtendsStack,ga as getExtendsStackRegistry,ze as getFnPrefixAndValue,Id as getFontFace,Hr as getFontFaceEach,dc as getFontFaceEachString,Ls as getFontFaceString,Qs as getFontFamily,fc as getFontFormat,ei as getFontSizeByKey,of as getFrequencyInArray,Ho as getHashedExtend,od as getImportMapScript,Mf as getInObjectByPath,Di as getLanguages,ji as getLocalStateLang,ou as getLocalStorage,wt as getMediaColor,te as getMediaTheme,Hf as getNev,Rr as getObserver,md as getPageMetadata,Fa as getParentStateInKey,ps as getPath,Cs as getQuery,Xu as getRef,lr as getRgbTone,ms as getRoot,bs as getRootContext,ys as getRootData,gs as getRootState,La as getRootStateInKey,Ws as getSequenceValue,Sc as getSequenceValueBySymbols,Pe as getSequenceValuePropertyPair,si as getShadow,Jl as getSignals,pe as getSpacingBasedOnRatio,mt as getSpacingByKey,mu as getSpreadChildren,Us as getSubratio,Vs as getSubratioDifference,ie as getSystemGlobalTheme,Ys as getTheme,Wt as getTimingByKey,ee as getTimingFunction,tf as global,Ud as gradient,tp as grid,we as hasFunction,hn as hasHandlerPlugin,Of as hasOwnProperty,vn as hashContent,Ed as hexToRgb,oc as hexToRgbArray,Od as hexToRgba,ac as hslToRgb,Hd as icons,xa as inheritChildExtends,ba as inheritChildPropsExtends,Jo as inheritParentProps,_a as inheritRecursiveChildExtends,qe as init,cl as initPolyglot,wu as initProps,ht as injectGlobal,Dt as is,T as isArray,sa as isBoolean,lt as isCSSVar,yu as isContextComponent,jf as isCyclic,$t as isDOMNode,aa as isDate,It as isDefined,nr as isDevelopment,Le as isDomDocument,ca as isEmpty,Rf as isEmptyObject,jc as isEnumeratedTrueFalseAttr,la as isEqualDeep,C as isFunction,Tn as isGoogleFontsUrl,Fe as isHostObject,wo as isHtmlElement,Wf as isLocal,Ft as isLoudDevRuntime,td as isMethod,tu as isMobile,Me as isNode,rf as isNot,jr as isNotProduction,ia as isNull,Se as isNumber,w as isObject,j as isObjectLike,cd as isPhoto,rr as isProduction,_o as isRawUnitValue,Te as isResolvedColor,Ir as isScalingUnit,zf as isStaging,Ou as isState,at as isStore,S as isString,Yf as isStringFunction,Vn as isSvgTag,da as isTest,Uf as isTesting,Hp as isTracking,xt as isUndefined,rd as isUniversallyReservedKey,iu as isValidHtmlTag,Nn as isValidTag,u_ as isWasmLoaded,Ts as isWrappedLibrary,Ql as isWritableFamilyBucket,ln as joinArrays,uu as jointStacks,Mn as keyframes,Xa as keys,dd as loadCssFile,pd as loadJavascript,ld as loadJavascriptFile,ud as loadJavascriptFileEmbedSync,fd as loadJavascriptFileSync,hd as loadRemoteCSS,kn as loadRemoteScript,Fi as loadTranslations,f_ as loadWasm,Zu as log,Qf as logGroupIf,Zf as logIf,qu as lookdown,Ku as lookdownAll,Hu as lookup,Lr as lowercaseFirstLetter,Pf as makeObjectWithoutPrototype,Af as map,Ko as mapStringsWithContextComponents,ve as matchesComponentNaming,jd as media,Gf as memoize,ct as merge,Os as mergeSharedLibraries,Ad as mixTwoColors,Rd as mixTwoRgb,lc as mixTwoRgba,Ss as nextElement,Es as normalizeIgnoreList,Cn as normalizeLibraryKey,Re as numToLetterMap,Do as objectToString,Go as objectizeStringProperty,En as opacify,Fo as overwrite,Lt as overwriteDeep,Nr as overwriteShallow,$u as overwriteState,Qe as parkHostObject,Ja as parse,Be as parseColorToken,fs as parseDeep,Ca as pickupElementFromProps,va as pickupPropsFromElement,Bi as polyglotFunctions,oo as polyglotPlugin,Z as popConfig,ws as previousElement,_u as propExists,Aa as propertizeElement,xu as propertizeUpdate,tt as pushConfig,Uc as refreshContextProto,zn as registerEvent,Kh as reinit,qn as remove,wd as removeChars,nu as removeCookie,bi as removeDelegatedEvent,Qo as removeDuplicateProps,fn as removeDuplicatesInArray,sf as removeFromArray,If as removeFromObject,Lf as removeNestedKeyByPath,Ao as removeValueFromArray,ff as removeValueFromArrayAll,df as reorderArrayByValues,Dr as replaceLiteralsWithObjectFields,xf as replaceOctalEscapeSequences,Nt as resolveAsset,pi as resolveColorsInGradient,an as resolveConfigDocument,vp as resolveFileSource,Qt as resolveFileUrl,gn as resolveHandler,xr as resolvePropValue,xd as resolveSharedLibraries,$d as returnSubThemeOrDefault,Ta as returnValueAsText,sc as rgbArrayToHex,ic as rgbToHSL,Td as rgbToHex,At as runPluginHook,Cc as runThroughMedia,Rn as scratchDefaultConfig,Ln as scratchSystem,dr as scratchUtils,ef as self,qd as semanticIcons,Ue as sequence,xi as serializeAttrValue,qr as set,bc as setActiveConfig,yp as setActiveDocument,hs as setActiveRootState,hr as setAdaptiveSchemeVar,Xv as setClass,Jk as setClassname,pr as setColor,eu as setCookie,nl as setCssEngineHook,Ds as setCustomFont,fr as setCustomFontMedia,pp as setEach,Zs as setFont,In as setFontFamily,On as setFontImport,$n as setGradient,ha as setHashedExtend,uc as setInCustomFontMedia,Ff as setInObjectByPath,Mi as setLang,su as setLocalStorage,Js as setMediaTheme,Ya as setNodeStyles,zl as setObserver,Yu as setProps,Zo as setPropsPrototype,Dn as setSVG,Bs as setScalingVar,gr as setShadow,_c as setSubScalingVar,li as setSvgIcon,Xs as setTheme,dp as setValue,ip as setVariables,mi as setWasmEngine,Wd as shadow,bd as sharedLibrary,np as sizes,Bd as spacing,oi as splitSpacedValue,Ve as splitTopLevelCommas,Pc as splitTransition,us as spotByPath,An as srcsetFor,Oo as stringIncludesAny,Tf as stringToObject,Jd as svg,Zd as svgData,af as swapItemsInArray,ts as syncProps,Qd as templates,zd as theme,Kd as timing,Ns as toCamel,Rs as toCamelCase,Ps as toDashCase,vd as toDescriptionCase,kd as toTitleCase,nd as toggleFullscreen,Oc as transformBackgroundImage,$e as transformBorder,gi as transformBorderRadius,di as transformBoxShadow,zy as transformClassname,hi as transformDuration,Tc as transformShadow,ft as transformSize,F as transformSizeRatio,Ec as transformTextStroke,up as transformTransition,jp as transformersByPrefix,Rc as transfromGap,Li as translate,or as triggerEventOn,Du as triggerEventOnUpdate,yf as trimStringFromSymbols,Fs as typography,Dd as unit,Co as unstackArrayOfObjects,Hn as update,ku as updateProps,Yv as updateVars,Ni as upsertTranslation,qt as useCssInProps,Wp as useHostState,Vy as usePropsAsCSS,Uy as useSelectorsAsCSS,ks as variables,rp as vars,Sn as verbose,_s as warn,$r as warnStateKeyShadowsMethod,k as window,he as wrapHoverRule};
|
|
83
|
+
`}return e.node.style=s,e.Span.node.innerText=r.focusKey,!1}}},zg={name:"inspect",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(Ll):t.extends?t.extends=[t.extends,Ll]:t.extends=[Ll]}};var dw=t=>!!(t&&typeof t=="object"&&t.__isStub===!0),oE=(t,e)=>{let r=e?.sharedLibraries,n=Array.isArray(r)?r.map(s=>typeof s=="string"?s:s?.key||s?.name):r&&typeof r=="object"?Object.keys(r):null,o=0;return t.map(s=>{if(!dw(s))return s;let i=o++;if(typeof s.__libraryKey=="string"&&s.__libraryKey)return s.__libraryKey;if(n&&n[i])return n[i];if(typeof s.__stubId=="string"){let a=s.__stubId.match(/^@symbo[-.]ls\/([^/]+)/);if(a)return a[1]}return null}).filter(Boolean)},sE=async(t,e={})=>{let r=e.symbolsConfig,n=r?.owner&&r?.key?`${r.owner}--${r.key}`:r?.key,o=e.key=e.key||n||(S(t)?t:"smblsapp");if(e.define=e.define||no,e.cssPropsRegistry=ut,e.window=P_(e),e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(h=>typeof h=="string"||dw(h))){e.sharedLibraries=oE(e.sharedLibraries,e.symbolsConfig);let{resolveSharedLibraries:h}=await Promise.resolve().then(()=>(O(),oc));e.sharedLibraries=await h(e.sharedLibraries)}z_(e)}let[s,i]=B_(o,e);e.designSystem=s,e.registry=i,e.cases||(e.cases={}),e.shorthand&&Wi.prepareContext(e);let a=V_(t,e);e.state=a,ms(a),e.pages=U_(t,e),e.components=$_(e),e.utils=I_(e),cr[e.packageManager]&&(e.dependencies=await F_(e)),e.methods=D_(e),e.routerOptions=m_(t,e),e.defaultExtends=[Zc],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope&&w(e.globalScope)&&(e.globalScope=Mo(e.globalScope));let c=(d,h)=>{let g=h?d[h]:d;if(!w(g))return;let p=Jt(g);try{Object.assign(g,p)}catch(m){if(h)d[h]=p;else throw m}};c(t),c(e,"components"),c(e,"pages"),c(e,"functions"),c(e,"methods"),c(e,"snippets"),c(e,"app");let l=d=>d&&typeof d.select=="function";e.fetch?.__resolved&&!l(e.fetch.__resolved)&&delete e.fetch.__resolved,e.db?.__resolved&&!l(e.db.__resolved)&&delete e.db.__resolved;let f=d=>e.plugins.some(h=>h.name===d);if(e.polyglot&&!f("polyglot")){e.plugins.push(io);for(let d in Vi)d in e.functions||(e.functions[d]=Vi[d])}if(f("helmet")||e.plugins.push(tg),e.fetch&&!f("fetch")&&e.plugins.push(Wu),e.designSystem?.typography?.useCapsize!==!1&&!f("capsize")&&(e.plugins.push(ul),e.cssPropsRegistry.useCapsize=ig),e.shorthand&&!f("shorthand")&&e.plugins.push(Wi),e.analyze&&!f("analyze")){let d=e.analyze===!0?{}:e.analyze;e.analyze=kl(d),e.plugins.push(co)}return e.sync!==!1&&!f("sync")&&e.plugins.push(lw),e.inspect&&!f("inspect")&&e.plugins.push(zg),(e.notifications===!0||e.editor&&e.editor.verbose===!0)&&e.notifications!==!1&&!f("notifications")&&e.plugins.push(fw),e},Hg=async(t,e)=>{w(e)||(e={}),Me(t)?(t={},e.parent=t):S(t)?(t={},e.key=t):w(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 sE(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&&w(e.app))for(let c in e.app)t[c]===void 0&&(t[c]=e.app[c]);t.extends=T_(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await M_({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 iE(oe,t,i,e,r,o);let a=oe(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return typeof window<"u"&&!e.document&&(window.__smblsApp=a),a},iE=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 aE(o),c},aE=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var qg=(t,e)=>Y(t,w(e)?e:{}),cE=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},lE=()=>{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}},pw=t=>{let e=lE();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},Kg=(t,e=Cr,r)=>{let n={...Cr,...qg(e,r)};return pw(n),cE(n),Hg(t,n).then(s=>{if(Jh(s,n),s.destroy=()=>$i(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Pi(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},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})},fE=(t,e=Cr,r)=>{let n=Kg(t,e,r),o={...Cr,...qg(e,r)},s=o.key;return __(n,s,{utils:Ri,...o}),n},uE=async(t,e=Cr,r)=>{let n={...Cr,...qg(e,r)};pw(n);let o=e.key;await x_(o,n);let s=await Hg(t,n);return Jh(s,n),s.destroy=()=>$i(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Pi(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},n.onCreate&&await n.onCreate(s,s.state,s.context,n),s},dE=(t={},e=Cr,r)=>Kg({deps:{isUndefined:xt},...t},Y({domqlOptions:{onlyResolveExtends:!0}},e),r);O();ir();var hw={"@symbo.ls/signal":Ql,"@symbo.ls/scratch":gp,"@symbo.ls/element":sh,"@symbo.ls/css":Sp,"@symbo.ls/utils":oc,"@symbo.ls/state":Kp,"@symbo.ls/router":Ti,"@symbo.ls/polyglot":sg,"@symbo.ls/helmet":eg,"@symbo.ls/fetch":Vr,"@symbo.ls/capsize":ag,"@symbo.ls/shorthand":hg,"@symbo.ls/analyze":Cg,"@symbo.ls/inspect":Wg},gw=(t,e)=>{let r=t||(typeof globalThis<"u"?globalThis:{}),n=r.__SMBLS_PKGS__||(r.__SMBLS_PKGS__={});for(let o in hw)n[o]||(n[o]=hw[o]);if(e)for(let o in e)n[o]||(n[o]=e[o]);return n};ol(yi);gw(void 0,{smbls:Gg});export{Rp as ANIMATION_PROPS,Ak as ARIA_ROLES,Ap as ATTR_TRANSFORMS,Pp as BLOCK_PROPS,Ee as CDN_PROVIDERS,Pn as CONFIG,de as CSS_NATIVE_COLOR_REGEX,ut as CSS_PROPS_REGISTRY,cn as CSS_UNITS,Ai as DEFAULT_CONFIG,yt as DEFAULT_CSS_PROPERTIES_LIST,Wn as DELEGATED_EVENTS,rg as DESIGN_SYSTEM_OPTIONS,Af as DOMQL_EVENTS,tr as DOMQ_PROPERTIES,My as DOM_EVENTS,Uf as ENV,pe as FACTORY,Fp as FLEX_PROPS,$p as FONT_PROPS,Mp as GRID_PROPS,jc as HTML_ATTRIBUTES,yn as HTML_TAGS,br as LIFECYCLE_EVENTS,dn as METHODS,Do as METHODS_EXL,Ip as MISC_PROPS,Mc as MIXINS,le as NODE_ENV,ns as OPTIONS,cr as PACKAGE_MANAGER_TO_CDN,Io as PARSED_DOMQ_PROPERTIES,Dp as POSITION_PROPS,er as PROPS_METHODS,Rt as REGISTRY,Pr as RESERVED_STORE_METHODS,il as ROUTER_OPTIONS,vc as STANDARD_SCHEME_QUERIES,Cf as STATE_PROPERTIES,_o as STORE_METHOD_NAMES,Un as SVG_TAGS,Lp as THEME_PROPS,Si as TIMING_PROPS,Ao as TYPES,Qa as UNIVERSAL_RESERVED_KEYS,Ic as VALUE_TRANSFORMERS,Jl as __resetStateShadowWarnings,fy as activateConfig,La as addCaching,Da as addContext,bi as addDelegatedEvent,pu as addExtend,Nt as addExtends,df as addItemAfterEveryElement,Yn as addMethods,Oo as addProtoToArray,Pa as addRef,Jd as animation,li as appendSVGSprite,ui as appendSvgIconsSprite,Tp as applyAttrTransforms,Yh as applyCSS,$u as applyDependentState,ci as applyDocument,Va as applyEvent,Ua as applyEventUpdate,qn as applyExtends,Ec as applyHeadings,Hc as applyInitialState,ur as applyMediaSequenceVars,Jo as applyProps,di as applyReset,Ks as applySequenceGlobalVars,We as applySequenceVars,oi as applySpacingSequence,Gt as applyStateMethods,ai as applyTimingSequence,jp as applyTrueProps,ei as applyTypographySequence,of as arrayContainsOtherArray,hf as arraysEqual,zr as arrayzeValue,De as batch,Yd as breakpoints,Ds as buildImgSrcset,Ls as buildSourcesAndImg,Mu as cache,yr as cacheNode,td as call,ki as callStateMethod,_r as camelToAttr,Ny as camelToLowerAttr,rd as captureSnapshot,Dc as changeGlobalTheme,$d as changeLightness,Sr as checkAttributeByTagName,Ep as checkEventFunctions,Tu as checkForStateTypes,ni as checkIfBoxSize,Ba as checkIfInherits,yf as checkIfStringIsInArray,rp as class,Tf as clone,zo as cloneAndMergeArrayExtend,Jf as cloneFunction,Ud as color,Te as colorStringToRgbaArray,to as components,fu as concatAddExtends,Gs as convertSvgToSymbol,wd as copyJavaScriptToClipboard,Sd as copyStringToClipboard,Kg as create,fE as createAsync,Ra as createBasedOnType,Hl as createComputed,_c as createConfig,E_ as createDefine,J as createEffect,Eu as createElement,ba as createElementExtends,Ho as createExtends,bn as createExtendsFromKeys,wa as createExtendsStack,Vn as createHTMLNode,Zf as createIfConditionFlag,Ou as createInheritedState,Vo as createKey,Lf as createNestedObject,Pu as createNestedObjectByKeyPath,ua as createObjectWithoutPrototype,$a as createParent,Ia as createPath,Zo as createProps,Ta as createPropsStack,Au as createRoot,Du as createScope,So as createScopeStore,It as createSignal,dE as createSkeleton,Bo as createSnapshotId,Wp as createState,Wt as createStore,uE as createSync,ne as css,bc as cssMediaVars,yc as cssVars,vf as customDecodeURIComponent,kf as customEncodeURIComponent,ff as cutArrayAfterValue,lf as cutArrayBeforeValue,Uo as debounce,Gf as debounceOnContext,wf as decodeNewlines,it as deepClone,If as deepContains,Ts as deepDefaults,Jt as deepDestringifyFunctions,ya as deepExtend,Y as deepMerge,ve as deepMergeExtends,Lo as deepStringifyFunctions,no as defaultDefine,Zu as defineSetter,$n as defineThemeSignal,Mo as destringifyGlobalScope,$i as destroy,ad as detectHeightOnInit,jf as detectInfiniteLoop,mr as detectTag,Xd as devices,wr as dispose,Sf as encodeNewlines,Ur as error,Vf as excludeKeysFromObject,ot as exec,Rk as executeAttr,Zk as exetuteClassPerComponent,uu as extendCachedRegistry,qo as extendStackRegistry,Go as extractArrayExtend,Ik as extractConditionalAttrs,nc as fetchLibraryData,cd as fibonacciNumberByIndex,gf as filterArrays,mf as filterArraysFast,Ok as filterAttributesByTagName,ka as finalizeExtends,rc as findClosestNumber,bd as findClosestNumberInFactory,kc as findHeadingLetter,qs as findHeadings,ja as findInheritedState,xf as findKeyPosition,xn as flattenExtend,Fd as font,jd as fontFace,Md as fontFamily,Nd as fontFamilyTypes,id as formatDate,ha as generateHash,ec as generateHeadArrayTags,jo as generateKey,md as generateMetaTags,Bt as generateSequence,ip as generateSequencePosition,In as generateSprite,Ws as generateSubSequence,Yu as get,A as getActiveConfig,Fc as getActiveDocument,so as getActiveLang,ue as getCDNUrl,_p as getCacheSize,mu as getCapitalCaseKeys,wn as getCdnProviderFromConfig,Na as getChildStateInKey,hs as getChildren,et as getColor,lc as getColorShade,Ss as getContext,nu as getCookie,As as getDB,Wr as getDefaultOrFirstKey,Ad as getEmotionStylesheet,hu as getExtendsInElement,Wo as getExtendsStack,ma as getExtendsStackRegistry,ze as getFnPrefixAndValue,Dd as getFontFace,Hr as getFontFaceEach,pc as getFontFaceEachString,Ms as getFontFaceString,ti as getFontFamily,uc as getFontFormat,ri as getFontSizeByKey,sf as getFrequencyInArray,Ko as getHashedExtend,sd as getImportMapScript,Nf as getInObjectByPath,Li as getLanguages,Bi as getLocalStateLang,su as getLocalStorage,kt as getMediaColor,te as getMediaTheme,qf as getNev,Rr as getObserver,yd as getPageMetadata,Ma as getParentStateInKey,gs as getPath,Es as getQuery,Ju as getRef,lr as getRgbTone,bs as getRoot,_s as getRootContext,xs as getRootData,ys as getRootState,Fa as getRootStateInKey,Hs as getSequenceValue,wc as getSequenceValueBySymbols,Pe as getSequenceValuePropertyPair,ii as getShadow,Zl as getSignals,he as getSpacingBasedOnRatio,mt as getSpacingByKey,yu as getSpreadChildren,zs as getSubratio,Us as getSubratioDifference,ie as getSystemGlobalTheme,Xs as getTheme,ly as getThemeSignal,Ht as getTimingByKey,ee as getTimingFunction,ef as global,zd as gradient,ep as grid,ke as hasFunction,hn as hasHandlerPlugin,Rf as hasOwnProperty,vn as hashContent,Td as hexToRgb,sc as hexToRgbArray,Rd as hexToRgba,cc as hslToRgb,qd as icons,_a as inheritChildExtends,xa as inheritChildPropsExtends,Qo as inheritParentProps,Sa as inheritRecursiveChildExtends,qe as init,ll as initPolyglot,ku as initProps,ht as injectGlobal,Lt as is,T as isArray,ia as isBoolean,lt as isCSSVar,bu as isContextComponent,Bf as isCyclic,Dt as isDOMNode,ca as isDate,wt as isDefined,nr as isDevelopment,Le as isDomDocument,la as isEmpty,Pf as isEmptyObject,Bc as isEnumeratedTrueFalseAttr,fa as isEqualDeep,C as isFunction,Tn as isGoogleFontsUrl,Fe as isHostObject,vo as isHtmlElement,Hf as isLocal,Mt as isLoudDevRuntime,ed as isMethod,eu as isMobile,Me as isNode,nf as isNot,jr as isNotProduction,aa as isNull,we as isNumber,w as isObject,j as isObjectLike,ld as isPhoto,rr as isProduction,wo as isRawUnitValue,Oe as isResolvedColor,Ir as isScalingUnit,Wf as isStaging,Ru as isState,at as isStore,S as isString,Xf as isStringFunction,zn as isSvgTag,pa as isTest,zf as isTesting,qp as isTracking,xt as isUndefined,nd as isUniversallyReservedKey,au as isValidHtmlTag,Bn as isValidTag,p_ as isWasmLoaded,Rs as isWrappedLibrary,tf as isWritableFamilyBucket,ln as joinArrays,du as jointStacks,jn as keyframes,Ja as keys,pd as loadCssFile,hd as loadJavascript,fd as loadJavascriptFile,dd as loadJavascriptFileEmbedSync,ud as loadJavascriptFileSync,gd as loadRemoteCSS,kn as loadRemoteScript,Mi as loadTranslations,d_ as loadWasm,Qu as log,tu as logGroupIf,Qf as logIf,Ku as lookdown,Gu as lookdownAll,qu as lookup,Lr as lowercaseFirstLetter,$f as makeObjectWithoutPrototype,Ef as map,Yo as mapStringsWithContextComponents,Ce as matchesComponentNaming,Bd as media,Yf as memoize,ct as merge,Ps as mergeSharedLibraries,Ed as mixTwoColors,Pd as mixTwoRgb,fc as mixTwoRgba,ks as nextElement,Os as normalizeIgnoreList,Cn as normalizeLibraryKey,Re as numToLetterMap,Fo as objectToString,Xo as objectizeStringProperty,En as opacify,No as overwrite,Ft as overwriteDeep,Nr as overwriteShallow,Iu as overwriteState,Qe as parkHostObject,Za as parse,Be as parseColorToken,ds as parseDeep,Aa as pickupElementFromProps,Ca as pickupPropsFromElement,Vi as polyglotFunctions,io as polyglotPlugin,Z as popConfig,vs as previousElement,Su as propExists,Ea as propertizeElement,_u as propertizeUpdate,tt as pushConfig,zc as refreshContextProto,Hn as registerEvent,Gh as reinit,Gn as remove,kd as removeChars,ou as removeCookie,xi as removeDelegatedEvent,es as removeDuplicateProps,fn as removeDuplicatesInArray,af as removeFromArray,Df as removeFromObject,Ff as removeNestedKeyByPath,To as removeValueFromArray,uf as removeValueFromArrayAll,pf as reorderArrayByValues,Dr as replaceLiteralsWithObjectFields,_f as replaceOctalEscapeSequences,jt as resolveAsset,hi as resolveColorsInGradient,an as resolveConfigDocument,Cp as resolveFileSource,Qt as resolveFileUrl,gn as resolveHandler,xr as resolvePropValue,_d as resolveSharedLibraries,Id as returnSubThemeOrDefault,Oa as returnValueAsText,ic as rgbArrayToHex,ac as rgbToHSL,Od as rgbToHex,Et as runPluginHook,Ac as runThroughMedia,Rn as scratchDefaultConfig,Mn as scratchSystem,dr as scratchUtils,rf as self,Kd as semanticIcons,Ue as sequence,_i as serializeAttrValue,qr as set,xc as setActiveConfig,bp as setActiveDocument,ms as setActiveRootState,hr as setAdaptiveSchemeVar,Zv as setClass,Qk as setClassname,pr as setColor,ru as setCookie,ol as setCssEngineHook,Fs as setCustomFont,fr as setCustomFontMedia,hp as setEach,Qs as setFont,Ln as setFontFamily,On as setFontImport,Dn as setGradient,ga as setHashedExtend,dc as setInCustomFontMedia,Mf as setInObjectByPath,Ni as setLang,iu as setLocalStorage,Zs as setMediaTheme,Xa as setNodeStyles,Wl as setObserver,Xu as setProps,ts as setPropsPrototype,Fn as setSVG,Vs as setScalingVar,gr as setShadow,Sc as setSubScalingVar,fi as setSvgIcon,Js as setTheme,pp as setValue,ap as setVariables,yi as setWasmEngine,Hd as shadow,xd as sharedLibrary,op as sizes,Vd as spacing,si as splitSpacedValue,Ve as splitTopLevelCommas,$c as splitTransition,ps as spotByPath,An as srcsetFor,Po as stringIncludesAny,Of as stringToObject,Zd as svg,Qd as svgData,cf as swapItemsInArray,rs as syncProps,tp as templates,Wd as theme,Gd as timing,Bs as toCamel,$s as toCamelCase,Is as toDashCase,Cd as toDescriptionCase,vd as toTitleCase,od as toggleFullscreen,Rc as transformBackgroundImage,$e as transformBorder,mi as transformBorderRadius,pi as transformBoxShadow,Hy as transformClassname,gi as transformDuration,Oc as transformShadow,ft as transformSize,F as transformSizeRatio,Tc as transformTextStroke,dp as transformTransition,Bp as transformersByPrefix,Pc as transfromGap,Fi as translate,or as triggerEventOn,Lu as triggerEventOnUpdate,bf as trimStringFromSymbols,Ns as typography,Ld as unit,Eo as unstackArrayOfObjects,Kn as update,vu as updateProps,Jv as updateVars,ji as upsertTranslation,Kt as useCssInProps,Hp as useHostState,zy as usePropsAsCSS,Wy as useSelectorsAsCSS,Cs as variables,np as vars,Sn as verbose,ws as warn,$r as warnStateKeyShadowsMethod,k as window,ge as wrapHoverRule};
|