smbls 3.7.3 → 3.7.4

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.
@@ -1,14 +1,14 @@
1
- var id=Object.defineProperty;var G=(t,e)=>()=>(t&&(e=t(t=0)),e);var Mt=(t,e)=>{for(var r in e)id(t,r,{get:e[r],enumerable:!0})};var ad,cd,F,L,Pr=G(()=>{ad=globalThis,cd=globalThis,F=globalThis,L=F.document});var Ce,Xo,Bt,Nr=G(()=>{Pr();Ce=t=>(typeof Node=="object"?t instanceof F.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,Xo=t=>(typeof HTMLElement=="object"?t instanceof F.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,Bt=t=>typeof F<"u"&&(F.Node&&t instanceof F.Node||F.Window&&t instanceof F.Window||t===F||t===document)});var g,b,ct,y,Rn,vc,S,Cc,N,Ot,K,Qo,At,Dr,xt=G(()=>{Nr();g=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,b=t=>typeof t=="string",ct=t=>typeof t=="number",y=t=>typeof t=="function",Rn=t=>t===!0||t===!1,vc=t=>t===null,S=t=>Array.isArray(t),Cc=t=>t instanceof Date,N=t=>t===null?!1:typeof t=="object",Ot=t=>t!==void 0,K=t=>t===void 0,Qo={boolean:Rn,array:S,object:g,string:b,date:Cc,number:ct,null:vc,function:y,objectLike:N,node:Ce,htmlElement:Xo,defined:Ot},At=t=>(...e)=>e.some(r=>Qo[r](t)),Dr=t=>(...e)=>!e.some(r=>Qo[r](t))});var ld,fd,Jo,ud,In,Zo,pd,dd,ts,hd,md,gd,yd,bd,xd,Sd,Pn,Fr,ze=G(()=>{ae();xt();ld=(t,e)=>e.every(r=>t.includes(r)),fd=(t,e)=>{let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r},Jo=(t,e)=>{if(b(e)&&(e=parseInt(e)),ct(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},ud=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]},In=(...t)=>[].concat(...t),Zo=(t,e=[])=>t.reduce((r,n)=>U(r,z(n,{exclude:e}),e),{}),pd=(t,e)=>{let r=t.indexOf(e);return r!==-1?t.slice(0,r):t},dd=(t,e)=>{if(!S(t))return;let r=t.indexOf(e);return r!==-1?t.slice(r+1):t},ts=(t,e)=>{let r=t.indexOf(e);if(r>-1){let n=[...t];return n.splice(r,1),n}return t},hd=(t,e)=>t.filter(r=>r!==e),md=(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},gd=(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},yd=(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},bd=(t,e)=>t.filter(r=>!e.includes(r)),xd=(t,e)=>{let r=new Set(e);return t.filter(n=>!r.has(n))},Sd=(t,e)=>{if(!t)return 0;let r=0;for(let n=0;n<e.length;n++)t.includes(e[n])&&r++;return r},Pn=t=>S(t)?[...new Set(t)]:t,Fr=(t,e)=>{for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!1,configurable:!0,writable:!0})}});function vd(t,e,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!t.includes(o))return t;let s=wd[n],i=e||this.state||{},a=this;return t.replace(s,(c,f,l,u)=>{let p=l.trim();if(u){let d=a?.context?.functions?.[u];if(d){let h=es(i,p);return String(d.call(a,h!==void 0?h:p)??"")}return""}if(f){let d=(f.match(/\.\.\//g)||[]).length,h=i;for(let x=0;x<d;x++){if(!h||!h.parent)return"";h=h.parent}if(p==="parent")return String(h.value??"");let m=es(h,p);return String(m??"")}else{let d=es(i,p);return String(d??"")}})}var rs,_d,wd,es,ce,Cd,Ed,kd,Od,Ad,Td,Rd,Id,$r=G(()=>{rs=(t,e)=>{for(let r of e)if(t.includes(r))return!0;return!1},_d=(t,e)=>{let r=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(r,"")},wd={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},es=(t,e)=>e.split(".").reduce((r,n)=>r?.[n],t);ce=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,Cd=(t,e)=>{let r=t.split(`
1
+ var id=Object.defineProperty;var G=(t,e)=>()=>(t&&(e=t(t=0)),e);var Mt=(t,e)=>{for(var r in e)id(t,r,{get:e[r],enumerable:!0})};var ad,cd,F,L,Pr=G(()=>{ad=globalThis,cd=globalThis,F=globalThis,L=F.document});var Ce,Qo,Bt,Nr=G(()=>{Pr();Ce=t=>(typeof Node=="object"?t instanceof F.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,Qo=t=>(typeof HTMLElement=="object"?t instanceof F.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,Bt=t=>typeof F<"u"&&(F.Node&&t instanceof F.Node||F.Window&&t instanceof F.Window||t===F||t===document)});var g,y,ct,b,In,vc,S,Cc,N,Ot,K,Jo,At,Dr,xt=G(()=>{Nr();g=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,y=t=>typeof t=="string",ct=t=>typeof t=="number",b=t=>typeof t=="function",In=t=>t===!0||t===!1,vc=t=>t===null,S=t=>Array.isArray(t),Cc=t=>t instanceof Date,N=t=>t===null?!1:typeof t=="object",Ot=t=>t!==void 0,K=t=>t===void 0,Jo={boolean:In,array:S,object:g,string:y,date:Cc,number:ct,null:vc,function:b,objectLike:N,node:Ce,htmlElement:Qo,defined:Ot},At=t=>(...e)=>e.some(r=>Jo[r](t)),Dr=t=>(...e)=>!e.some(r=>Jo[r](t))});var ld,fd,Zo,ud,Pn,ts,pd,dd,es,hd,md,gd,yd,bd,xd,Sd,Nn,Fr,ze=G(()=>{ae();xt();ld=(t,e)=>e.every(r=>t.includes(r)),fd=(t,e)=>{let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r},Zo=(t,e)=>{if(y(e)&&(e=parseInt(e)),ct(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},ud=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]},Pn=(...t)=>[].concat(...t),ts=(t,e=[])=>t.reduce((r,n)=>U(r,z(n,{exclude:e}),e),{}),pd=(t,e)=>{let r=t.indexOf(e);return r!==-1?t.slice(0,r):t},dd=(t,e)=>{if(!S(t))return;let r=t.indexOf(e);return r!==-1?t.slice(r+1):t},es=(t,e)=>{let r=t.indexOf(e);if(r>-1){let n=[...t];return n.splice(r,1),n}return t},hd=(t,e)=>t.filter(r=>r!==e),md=(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},gd=(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},yd=(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},bd=(t,e)=>t.filter(r=>!e.includes(r)),xd=(t,e)=>{let r=new Set(e);return t.filter(n=>!r.has(n))},Sd=(t,e)=>{if(!t)return 0;let r=0;for(let n=0;n<e.length;n++)t.includes(e[n])&&r++;return r},Nn=t=>S(t)?[...new Set(t)]:t,Fr=(t,e)=>{for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!1,configurable:!0,writable:!0})}});function vd(t,e,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!t.includes(o))return t;let s=wd[n],i=e||this.state||{},a=this;return t.replace(s,(c,f,l,u)=>{let p=l.trim();if(u){let d=a?.context?.functions?.[u];if(d){let h=rs(i,p);return String(d.call(a,h!==void 0?h:p)??"")}return""}if(f){let d=(f.match(/\.\.\//g)||[]).length,h=i;for(let x=0;x<d;x++){if(!h||!h.parent)return"";h=h.parent}if(p==="parent")return String(h.value??"");let m=rs(h,p);return String(m??"")}else{let d=rs(i,p);return String(d??"")}})}var ns,_d,wd,rs,ce,Cd,Ed,kd,Od,Ad,Td,Rd,Id,$r=G(()=>{ns=(t,e)=>{for(let r of e)if(t.includes(r))return!0;return!1},_d=(t,e)=>{let r=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(r,"")},wd={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},rs=(t,e)=>e.split(".").reduce((r,n)=>r?.[n],t);ce=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,Cd=(t,e)=>{let r=t.split(`
2
2
  `),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,f=!1;for(let l=0;l<r.length;l++)if(a.test(r[l])&&!f){if(f=!0,n=l+1,s=r[l].indexOf(e)+1,r[l].includes("{}")){o=n,i=r[l].indexOf("{}")+3;break}let u=r[l].slice(s+e.length);if(u.includes("{")||u.includes("["))c=1;else{o=l+1,i=r[l].length+1;break}}else if(f&&(c+=(r[l].match(/{/g)||[]).length,c+=(r[l].match(/\[/g)||[]).length,c-=(r[l].match(/}/g)||[]).length,c-=(r[l].match(/]/g)||[]).length,c===0)){o=l+1,i=r[l].lastIndexOf("}")!==-1?r[l].lastIndexOf("}")+2:r[l].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},Ed=/\\([0-7]{1,3})/g,kd=t=>t.replace(Ed,(e,r)=>String.fromCharCode(parseInt(r,8))),Od=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),Ad=t=>t.replace(/\/\/\/\/\/n/g,`
3
- `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),Td=/[^a-zA-Z0-9\s]/g,Rd=t=>t.replace(Td,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),Id=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var He,ns,Pd,Tt,qe,Nn,os,ss,We=G(()=>{He=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"]),ns=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),Pd=["ref","parent","__element","__depends","__ref","__children","root"],Tt=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"]),qe=new Set(["update","__element"]),Nn=new Set(["set","reset","update","remove","updateContent","removeContent","lookup","lookdown","lookdownAll","getRef","getPath","setNodeStyles","spotByPath","keys","parse","setProps","parseDeep","variables","if","log","verbose","warn","error","call","nextElement","previousElement","getRootState","getRoot","getRootData","getRootContext","getContext","getQuery","getDB","getChildren"]),os=new Set(["node","context","extends","__element","__ref",...Nn,...Tt,...qe]),ss=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var Ec,Ee,O,Nd,Y,U,Dd,z,is,Fd,as,$d,Ld,cs,le,Md,Bd,kc,Ud,Vd,fe,Lr,it,Oc,jd,ls,fs,Ac,us,ps,ds,hs,ms,zd,Hd,ae=G(()=>{Pr();xt();ze();$r();Nr();We();Ec=process.env.NODE_ENV,Ee=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,O=(t,e,r,n)=>{if(y(t)){if(!e)return;let o=t.call(e,e,r||e.state,n||e.context);if(o&&typeof o.then=="function"){let s;return o.then(i=>{s=i}),s}return o}return t},Nd=(t,e,r)=>{for(let n in e)t[n]=O(e[n],r)},Y=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Ee(o)||(n?r.has(o):r.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},U=(t,e,r=os)=>{let n=r instanceof Set;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||Ee(o)||(n?r.has(o):r.includes(o)))continue;let s=t[o],i=e[o];N(s)&&N(i)?U(s,i,r):s===void 0&&(t[o]=i)}return t},Dd=(t,e=[])=>{let r=e instanceof Set,n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(Ee(o)||(r?e.has(o):e.includes(o))||(n[o]=t[o]));return n},z=(t,e={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,window:s,visited:i=new WeakMap,handleExtends:a=!1}=e,c=s||F||globalThis;if(!N(t)||Bt(t))return t;if(i.has(t))return i.get(t);let l=S(t)?[]:{};i.set(t,l);let u=r instanceof Set?r:r.length>3?new Set(r):null;for(let p in t){if(!Object.prototype.hasOwnProperty.call(t,p)||Ee(p)||p==="__proto__"||(u?u.has(p):r.includes(p)))continue;let d=t[p];if(!(n&&d===void 0)&&!(o&&d===null)){if(Bt(d)){l[p]=d;continue}if(a&&p==="extends"&&S(d)){l[p]=Zo(d,r);continue}if(y(d)&&e.window){l[p]=c.eval("("+d.toString()+")");continue}N(d)?l[p]=z(d,{...e,visited:i}):l[p]=d}}return l},is=(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(y(n))e[r]=n.toString();else if(g(n))e[r]={},is(n,e[r]);else if(S(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];g(i)?(o[s]={},is(i,o[s])):y(i)?o[s]=i.toString():o[s]=i}}else e[r]=n}return e},Fd=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),as=(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=`{
3
+ `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),Td=/[^a-zA-Z0-9\s]/g,Rd=t=>t.replace(Td,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),Id=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var He,os,Pd,Tt,qe,Dn,ss,is,We=G(()=>{He=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"]),os=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),Pd=["ref","parent","__element","__depends","__ref","__children","root"],Tt=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"]),qe=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"]),ss=new Set(["node","context","extends","__element","__ref",...Dn,...Tt,...qe]),is=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var Ec,Ee,O,Nd,Y,U,Dd,z,as,Fd,cs,$d,Ld,ls,le,Md,Bd,kc,Ud,Vd,fe,Lr,it,Oc,jd,fs,us,Ac,ps,ds,hs,ms,gs,zd,Hd,ae=G(()=>{Pr();xt();ze();$r();Nr();We();Ec=process.env.NODE_ENV,Ee=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,O=(t,e,r,n)=>{if(b(t)){if(!e)return;let o=t.call(e,e,r||e.state,n||e.context);if(o&&typeof o.then=="function"){let s;return o.then(i=>{s=i}),s}return o}return t},Nd=(t,e,r)=>{for(let n in e)t[n]=O(e[n],r)},Y=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Ee(o)||(n?r.has(o):r.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},U=(t,e,r=ss)=>{let n=r instanceof Set;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||Ee(o)||(n?r.has(o):r.includes(o)))continue;let s=t[o],i=e[o];N(s)&&N(i)?U(s,i,r):s===void 0&&(t[o]=i)}return t},Dd=(t,e=[])=>{let r=e instanceof Set,n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(Ee(o)||(r?e.has(o):e.includes(o))||(n[o]=t[o]));return n},z=(t,e={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,window:s,visited:i=new WeakMap,handleExtends:a=!1}=e,c=s||F||globalThis;if(!N(t)||Bt(t))return t;if(i.has(t))return i.get(t);let l=S(t)?[]:{};i.set(t,l);let u=r instanceof Set?r:r.length>3?new Set(r):null;for(let p in t){if(!Object.prototype.hasOwnProperty.call(t,p)||Ee(p)||p==="__proto__"||(u?u.has(p):r.includes(p)))continue;let d=t[p];if(!(n&&d===void 0)&&!(o&&d===null)){if(Bt(d)){l[p]=d;continue}if(a&&p==="extends"&&S(d)){l[p]=ts(d,r);continue}if(b(d)&&e.window){l[p]=c.eval("("+d.toString()+")");continue}N(d)?l[p]=z(d,{...e,visited:i}):l[p]=d}}return l},as=(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(b(n))e[r]=n.toString();else if(g(n))e[r]={},as(n,e[r]);else if(S(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];g(i)?(o[s]={},as(i,o[s])):b(i)?o[s]=i.toString():o[s]=i}}else e[r]=n}return e},Fd=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),cs=(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
4
  `;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=!1;for(let f=0;f<s.length;f++)if(Fd.has(s[f])){a=!0;break}let c=a?`'${s}'`:s;if(o+=`${n} ${c}: `,S(i)){o+=`[
5
- `;for(let f of i)N(f)&&f!==null?o+=`${n} ${as(f,e+2)},
6
- `:b(f)?o+=`${n} '${f}',
5
+ `;for(let f of i)N(f)&&f!==null?o+=`${n} ${cs(f,e+2)},
6
+ `:y(f)?o+=`${n} '${f}',
7
7
  `:o+=`${n} ${f},
8
- `;o+=`${n} ]`}else N(i)?o+=as(i,e+1):b(i)?o+=rs(i,[`
8
+ `;o+=`${n} ]`}else N(i)?o+=cs(i,e+1):y(i)?o+=ns(i,[`
9
9
  `,"'"])?`\`${i}\``:`'${i}'`:o+=i;o+=`,
10
- `}return o+=`${n}}`,o},$d=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],Ld=/^["[{]/,cs=t=>{if(!t)return!1;let e=t.trim().replace(/\n\s*/g," ").trim();if(e===""||e==="{}"||e==="[]"||!$d.some(s=>s.test(e)))return!1;let n=e.charCodeAt(0),o=e.includes("=>");return!(n===123&&!o||n===91||Ld.test(e)&&!o)},le=(t,e={})=>{for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=t[r];if(b(n))if(cs(n))try{e[r]=F.eval(`(${n})`)}catch(o){o&&(e[r]=n)}else e[r]=n;else if(S(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];if(b(i))if(cs(i))try{o.push(F.eval(`(${i})`))}catch(a){a&&o.push(i)}else o.push(i);else g(i)?o.push(le(i)):o.push(i)}}else g(n)?e[r]=le(n,e[r]):e[r]=n}return e},Md=(t,e={verbose:!0})=>{try{return t?F.eval("("+t+")"):{}}catch(r){e.verbose&&console.warn(r)}},Bd=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),kc=t=>{for(let e in t)return!1;return!0},Ud=t=>g(t)&&kc(t),Vd=()=>Object.create(null),fe=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&Ee(s)||e[s]!==void 0&&(t[s]=e[s]);return t},Lr=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Ee(o)||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},it=(t,e,r={},n=new WeakMap)=>{if(!N(t)||!N(e)||Bt(t)||Bt(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&&Ee(a))continue;let c=t[a],f=e[a];Bt(f)?t[a]=f:N(c)&&N(f)?t[a]=it(c,f,r,n):f!==void 0&&(t[a]=f)}return t},Oc=(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)||!Oc(t[i],e[i],r))return!1}return!0},jd=new Set(["node","__ref"]),ls=(t,e,r=jd)=>{if(t===e)return!0;if(!N(t)||!N(e)||Bt(t)||Bt(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 f=a[c],l=i[c];if(Bt(f)||Bt(l)){if(f!==l)return!1}else if(N(f)&&N(l)){if(!s(l,f))return!1}else if(f!==l)return!1}return!0}return s(t,e)},fs=(t,e)=>{if(e==null)return t;if(At(e)("string","number"))delete t[e];else if(S(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},Ac=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]=Ac(t[r]));return e},us=(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},ps=(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]},ds=(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},hs=(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},ms=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(Ec==="test"||Ec==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},zd=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)},Hd=(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 gs,ys,bs,Dn=G(()=>{ae();gs=(function(){let t=0;function e(){return t++,t}return e})(),ys=gs,bs=(t,e,r)=>(O(r,t)||r||t.key||gs()).toString()});var Qt,qd,Ge,Tc,Wd,Gd,Kd,Jt,Yd,Mr,xs=G(()=>{Qt=process.env.NODE_ENV,qd=Qt,Ge=(t=Qt)=>t==="production",Tc=(t=Qt)=>t==="testing"||t==="test",Wd=Tc,Gd=(t=Qt)=>t==="staging",Kd=(t=Qt)=>t==="local",Jt=(t=Qt)=>t==="development"||t==="dev"||t==="local",Yd=(t,e=Qt)=>e[t],Mr=(t=Qt)=>!Ge(t)});function Xd(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 eh(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 Qd,Jd,Zd,th,Ke,Ye,Fn,$n=G(()=>{Qd=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},Jd=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}}},Zd=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,th=t=>Zd.test(t),Ke=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},Ye=(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},Fn=(t,e,...r)=>{let n=e?.context?.plugins;if(n)for(let o of n)typeof o[t]=="function"&&o[t](e,...r)}});var Br,Rc=G(()=>{xt();Br=(t,e)=>{let{__ref:r}=t;y(t.if)&&!t.if(t,t.state,t.context)?delete r.__if:r.__if=!0}});var rh,nh,Ic=G(()=>{rh=(t,...e)=>{t&&e.map(r=>console.log(r))},nh=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function ch(t){if(!window.localStorage)return;let e=window.localStorage.getItem(t);if(e!==null)try{return JSON.parse(e)}catch{return}}function lh(t,e){if(!window.localStorage||e===void 0||e===null)return;let r=typeof e=="object"?JSON.stringify(e):e;window.localStorage.setItem(t,r)}var oh,sh,ih,ah,Pc=G(()=>{xt();Pr();oh=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),sh=(t,e,r=365)=>{if(K(L)||K(L.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;L.cookie=`${t}=${e};${o};path=/`},ih=t=>{if(K(L)||K(L.cookie))return;let e=`${t}=`,n=decodeURIComponent(L.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""},ah=t=>{K(L)||K(L.cookie)||(L.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var Ln,Xe,ke,Ss=G(()=>{Ln={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"])},Xe=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"]),ke=t=>Ln.body.has(t)});var _s,Nc,Mn,Cs,Rt,Es,Dc,ks,fh,Os,Fc,$c,As,Lc,Bn,uh,ue,Mc,ws,Ts,ph,vs,dh,hh,Bc,Uc,Vc,jc,zc,Hc,Rs,Un=G(()=>{ze();Is();ae();xt();_s=process.env.NODE_ENV,Nc=t=>t.sourcemap!==!1&&_s!=="production",Mn=t=>{if(t.includes("+"))return t.split("+").filter(It);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!It(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},Cs=(t,e,r)=>{let n=[],o=Mn(r);o&&(n=[...o]);let s=t.extends;return s&&(n=S(s)?[...n,...s]:[...n,s]),n},Rt=(t,e)=>{let{__ref:r}=e,{__extends:n}=r;if(!t)return n;let o=e.props?.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},Es=(t,e)=>{if(!t)return e;let{extends:r}=e,n=S(r)?r:[r],o=S(t)?t:[t];return{...e,extends:In(o,n)}},Dc=()=>Math.random().toString(36).substring(2),ks={},fh={},Os=t=>ks[t.__hash],Fc=(t,e)=>{let r=Dc();return b(t)||(t.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(ks[r]=e),e},$c=(t,e)=>t.__hash?e.concat(Os(t)):Fc(t,e),As=(t,e,r,n=new Set,o,s)=>{for(let i of t)S(i)?As(i,e,r,n,o,s):Bn(i,e,r,n,o,void 0,s);return e},Lc=(t,e,r,n=new Set,o,s,i)=>{let a=t.extends||t.extend,c={...t};delete c.extends,delete c.extend;let f=!1;for(let l in c){f=!0;break}return f&&(e.push(c),o&&o.push(s)),a&&Bn(a,e,r,n,o,s,i),e},Bn=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(S(t))return As(t,e,r,n,o,i);let a=s;return b(t)?(a=t,t=Ts(t,r)):i&&g(t)&&i.has(t)&&(a=i.get(t)),n.add(t),t?.extends||t?.extend?Lc(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a)),e},uh=new Set(["parent","node","__ref","__proto__","extend","childExtend","childExtendRecursive"]),ue=(t,e,r,n,o)=>{e=z(e);for(let s in e){if(uh.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?g(a)&&!S(a)?(r[s]=r[s]||{},Mc(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(g(i)&&g(a)){let c=r?r[s]=r[s]||{}:void 0,f=o?.[s];It(s)?t[s]=ue(i,a,c,n,f):ue(i,a,c,n,f)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(S(i)&&S(a))t[s]=i.concat(a);else if(S(i)&&g(a)){let c=ue({},i);t[s]=ue(c,a)}}}}return t},Mc=(t,e,r)=>{for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n)||n==="__proto__"||n==="constructor"||n==="prototype")continue;let o=e[n];g(o)&&!S(o)?(t[n]=t[n]||{},Mc(t[n],o,r)):t[n]=r}},ws=(t,e,r)=>t.reduce((n,o,s)=>{let i=z(o),a=r?r[s]:void 0;return ue(n,i,e,a)},{}),Ts=(t,e,r={},n)=>{let o=e?.components||r.components,s=e?.pages||r.pages;if(b(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&&(_s==="test"||_s==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},ph=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),vs=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return Os(t)||[];let s=Bn(t,[],e,new Set,r,void 0,n);return r?s:$c(t,s)},dh=(t,e)=>{if(!t)return e;let r=S(t)?t:[t];return In(r,e)},hh=t=>{let e=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(It(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},Bc=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.props?.variant;if(t.extend&&!t.extends&&(t.extends=t.extend),delete t.extend,!t.extends&&t.props?.extends&&(t.extends=t.props.extends),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]?Rt([c,...a],t):Rt(t.extends,t)}else Rt(t.extends,t)}else if(typeof t.extends=="string"&&s&&o?.components){let i=`${t.extends}.${s}`;o.components[i]?Rt(i,t):Rt(t.extends,t)}else Rt(t.extends,t);return Uc(t,e,r),Vc(t,e,r),jc(t,e,r),t.component&&Rt(O(t.component,t),t),o.defaultExtends&&Rt(o.defaultExtends,t),Pn(n.__extends)},Uc=(t,e,r={})=>{let{props:n,__ref:o}=t;return r.ignoreChildExtends||n?.ignoreChildExtends||e.props?.childProps?.extends&&Rt(e.props?.childProps.extends,t),o.__extends},Vc=(t,e,r={})=>{let{props:n,__ref:o}=t,s=r.ignoreChildExtends||n?.ignoreChildExtends,i=e.childExtends||e.childExtend;return!s&&i&&Rt(i,t),o.__extends},jc=(t,e,r={})=>{let{props:n,__ref:o}=t,s=e.childExtendsRecursive||e.childExtendRecursive,i=r.ignoreChildExtendsRecursive||n?.ignoreChildExtendsRecursive,a=t.key==="__text";return s&&!a&&!i&&Rt(s,t),o.__extends},zc=(t,e,r={})=>{let{props:n,__ref:o}=t,s=t.context||e.context,i=t.variant||n?.variant,a=Nc(r),c=a?[...o.__extends]:null,f=Pn(o.__extends.map((l,u)=>Ts(l,s,r,u===0&&i)));if(a){let l=new WeakMap;for(let d=0;d<f.length;d++){let h=f[d],m=c[d];h&&g(h)&&b(m)&&l.set(h,m)}let u=[],p=vs(f,s,u,l);o.__extendsStack=p,o.__extendsNames=u}else{let l=vs(f,s);o.__extendsStack=l}return o.__extendsStack},Hc=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(Nc(r)){let s={},i=n.__extendsNames||[],a=ws(o,s,i),c={};ue(t,a,c,void 0,s),n.__sourcemap=c}else{let s=ws(o);ue(t,s)}return t},Rs=(t,e,r={})=>(Bc(t,e,r),zc(t,e,r),Hc(t,e,r),t)});function mh(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function gh(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function Ps(t,e,r){let{context:n}=e||{},[o]=Mn(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var It,Is=G(()=>{Un();xt();It=t=>{if(!b(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function qc(t,e){let{props:r,on:n}=e,o=ce(t.split("on")[1]),s=n[o],i=r[t];y(s)?n[o]=(...a)=>{if(s(...a)!==!1&&y(i))return i(...a)}:n[o]=i}var Wc=G(()=>{$r();xt()});function Yc(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()&&(y(o)||o!=null&&Ke(this.context))){let h=ce(n.slice(2));t.on&&(t.on[h]=o),delete t[n];continue}if(n==="childProps"){t.props[n]=o,delete t[n],r.push(n);continue}let a=this.define?.[n],c=this.context?.define?.[n],f=g(a)||y(a),l=g(c)||y(c);if(f||l)continue;let u=n.charAt(0);if(Kc.has(u)){t.props[n]=o,delete t[n],r.push(n);continue}let p=Fs.test(n)||Gc.test(n)||bh(o),d=He.has(n);!p&&!d&&(t.props[n]=o,delete t[n],r.push(n))}return t}function Ur(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=y(o)||o!=null&&Ke(this.context);if(s&&i){qc(n,t),delete t.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(Kc.has(a))continue;let c=this.define?.[n],f=this.context?.define?.[n],l=g(c)||y(c),u=g(f)||y(f),p=Fs.test(n)||Gc.test(n),d=He.has(n);(p||d||l||u)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function Vn(t=this){let e=[];return Yc.call(this,t,{cachedKeys:e}),Ur.call(this,t,{cachedKeys:e}),t}function Ls(t={}){return t.on||(t.on={}),t.props||(t.props={}),Vn.call(this,t)}function Xc(t,e){this.__element.update({props:t},e)}function Bs(t){let e={update:Xc.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var Fs,Gc,Kc,yh,bh,$s,Ns,xh,Ms,Us,Vs,Qc,Ds,jn,js,zs=G(()=>{We();Wc();ae();xt();$r();$n();Fs=/^[A-Z]/,Gc=/^\d+$/,Kc=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),yh=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),bh=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(yh.has(e)||Fs.test(e))return!0;return!1},$s=(t,e,r)=>{let{props:n,__ref:o}=t;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return N(n)?{...n}:(o.__propsStack.push(n),{})};Ns=t=>At(t)("string","number")?{inheritedString:t}:t,xh=(t,e)=>!t||!e.length?!1:e.includes(t),Ms=(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=Ns(i);n.unshift(c)}if(s){let c=Ns(s);n.unshift(c)}return n};Us=t=>{let e=new Set;return t.filter(r=>!r||qe.has(r)||e.has(r)?!1:(e.add(r),!0))},Vs=(t,e,r)=>(e.props=t.reduce((n,o)=>{if(qe.has(o))return n;for(;y(o);)o=O(o,e);return U(n,z(o,{exclude:qe}))},{}),Bs(e),e.props),Qc=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...Ms(t,e)]),g(r)?o.push(r):r==="inherit"&&e?.props?o.push(e.props):r&&o.push(r),S(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=Us(o),n.__propsStack},Ds=(t,e)=>{let{__ref:r}=t,n=Qc(t,e);n.length?Vs(n,t):(r.__propsStack=[],t.props={})},jn=function(t,e,r){let{__ref:n}=t;if(n.__if)Ds(t,e);else try{Ds(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),t.props={},n.__propsStack=[]}return Bs(t),t},js=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=Ms(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=Us(s),n.__propsStack.length&&Vs(n.__propsStack,e),e}});var Jc,Zc,tl,el,rl,Hs,nl,ol,sl,qs,il=G(()=>{Un();Dn();Nr();zs();Ss();xt();Jc=process.env.NODE_ENV,Zc=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.props.childProps&&e.props.childProps.tag,s=Ln.body.has(r)&&r;return{text:t,tag:n||o||s||"string"}},tl=(t,e,r)=>{if(t===void 0)return(Jc==="test"||Jc==="development")&&console.warn(r,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:At(t)("string","number")?Zc(t,e,r):y(t)?{props:t}:t},el=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},rl=(t,e,r,n,o)=>{if(!e)return o;if(Ce(e)){let s={key:":root",node:e};return o[`${r}_parent`]=s,s}return e},Hs=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===":root";r?.root||(r.root=o?t:n?.root)},nl=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},ol=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),sl=(t,e,r)=>{let n=el(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=Cs(t,e,r),n.path=nl(t,e,r),n},qs=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:tl(t,e,r);if(!i)return;let a=rl(i,e,r,n,o),c=bs(i,a,r);sl(i,a,c);let f=$s(i,a,c),l=ol(i,a,c,n,o),u=i.on||{};return{...i,key:c,props:f,parent:a,context:l,on:u}}});var Ws,Qe,Je,Ze,tr,Gs,er,zn,Ks,Ys,Xs,al=G(()=>{ze();We();ae();xt();Ws=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return At(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},Qe=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},Je=(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},Ze=(t,e,r={})=>{let n=b(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]},tr=(t,e,r={})=>{let o=t.__ref.__state;if(!er(t))return;let s=Qe(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=Je(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return Ze(o,i,r)},Gs=(t,e)=>{let r=t.__ref,n=tr(t,e);if(n===void 0)return t.state;if(At(n)("object","array"))return z(n);if(At(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},er=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&At(r)("number","string","boolean"))},zn=function(t){return N(t)?!!(t.update&&t.parse&&t.clean&&t.create&&t.parent&&t.destroy&&t.rootUpdate&&t.parentUpdate&&t.keys&&t.values&&t.toggle&&t.replace&&t.quietUpdate&&t.quietReplace&&t.add&&t.apply&&t.applyReplace&&t.setByPath&&t.setPathCollection&&t.removeByPath&&t.removePathCollection&&t.getByPath&&t.applyFunction&&t.__element&&t.__children):!1},Ks=(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},Ys=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=z(n,Tt),s={[t.key]:o},i=g(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?Fr(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},Xs=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){U(t,e,Tt);return}(o?Lr:it)(t,e,Tt)}});var Hn,cl=G(()=>{Hn=(t,e)=>{let{__ref:r}=t;t.scope||(t.scope=e.scope||r.root?.scope||{})}});var ll,Vr,W,Qs,vt,Js=G(()=>{xt();$n();ll=(t,e)=>{let r=e.on?.[t];if(r)return r;let n=e.props;if(!n)return;let o="on"+t.charAt(0).toUpperCase()+t.slice(1);return n[o]},Vr=(t,e,r,n,o)=>{if(t=Ye(t,e),!!y(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,console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(e.error=s,console.error("[DOMQL] Event handler error:",s),e.context?.strictMode)throw s}},W=(t,e,r)=>{if(!e)throw new Error("Element is required");Fn(t,e,r);let n=ll(t,e);if(n){let{state:o,context:s}=e;return Vr(n,e,o,s,r)}},Qs=(t,e,r,n,o,s)=>{if(t=Ye(t,r),!!y(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}},vt=(t,e,r,n)=>{Fn(t,r,e,n);let o=ll(t,r);if(o){let{state:s,context:i}=r;return Qs(o,e,r,s,i,n)}}});var Sh,ut,Zs=G(()=>{Sh={},ut={}});var ul={};Mt(ul,{setup:()=>_h,supabaseAdapter:()=>fl});var _h,ti,wh,fl,pl=G(()=>{"use strict";_h=async({url:t,key:e,projectId:r,createClient:n,...o})=>{let s=t||r&&`https://${r}.supabase.co`;if(!s||!e)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");return n||(n=(await import("@supabase/supabase-js")).createClient),fl(n(s,e,o))},ti=(t,e)=>{if(!e)return t;for(let r in e){let n=e[r];if(n===null)t=t.is(r,null);else if(Array.isArray(n))t=t.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?t=t.gt(r,n[o]):o==="gte"?t=t.gte(r,n[o]):o==="lt"?t=t.lt(r,n[o]):o==="lte"?t=t.lte(r,n[o]):o==="neq"?t=t.neq(r,n[o]):o==="like"?t=t.like(r,n[o]):o==="ilike"?t=t.ilike(r,n[o]):o==="in"?t=t.in(r,n[o]):o==="is"?t=t.is(r,n[o]):o==="contains"?t=t.contains(r,n[o]):o==="containedBy"?t=t.containedBy(r,n[o]):o==="textSearch"&&(t=t.textSearch(r,n[o]));else t=t.eq(r,n)}return t},wh=(t,{limit:e,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s=="string"?s:s.by;t=t.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;t=t.order(s,{ascending:n.asc!==!1})}return e&&(t=t.limit(e)),r&&(t=t.range(r,r+(e||20)-1)),o&&(t=t.single()),t},fl=t=>({name:"supabase",client:t,getSession:async()=>{let{data:e}=await t.auth.getSession();return e?.session||null},getUser:async()=>{let{data:e}=await t.auth.getUser();return e?.user||null},signIn:e=>e.provider?t.auth.signInWithOAuth({provider:e.provider}):e.token?t.auth.signInWithIdToken(e):t.auth.signInWithPassword(e),signUp:e=>t.auth.signUp(e),signOut:()=>t.auth.signOut(),onAuthStateChange:e=>{let{data:{subscription:r}}=t.auth.onAuthStateChange((n,o)=>e(n,o));return()=>r.unsubscribe()},select:async({from:e,select:r,params:n,...o})=>{let s=t.from(e).select(r||"*");return s=ti(s,n),s=wh(s,o),s},rpc:({from:e,params:r})=>t.rpc(e,r),insert:({from:e,data:r,select:n})=>t.from(e).insert(r).select(n||"*"),update:({from:e,data:r,params:n,select:o})=>{let s=t.from(e).update(r);return s=ti(s,n),s.select(o||"*")},upsert:({from:e,data:r,select:n})=>t.from(e).upsert(r).select(n||"*"),delete:({from:e,params:r})=>{let n=t.from(e).delete();return n=ti(n,r),n},subscribe:({from:e,params:r,on:n},o)=>{let s=n||"*",i=t.channel(`db-${e}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:e,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>t.removeChannel(i)},upload:({bucket:e,path:r,file:n,options:o})=>t.storage.from(e).upload(r,n,o),download:({bucket:e,path:r})=>t.storage.from(e).download(r),getPublicUrl:({bucket:e,path:r})=>t.storage.from(e).getPublicUrl(r)})});var hl={};Mt(hl,{restAdapter:()=>dl,setup:()=>Ch});var vh,pe,Ch,dl,ml=G(()=>{"use strict";vh=(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()},pe=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}},Ch=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return dl(t,e,r,n)},dl=(t,e={},r,n={})=>{let o=r?.token||null,s=l=>{let u={...e,...l};return o&&(u.Authorization=`Bearer ${o}`),u},i=l=>({...s(l),"Content-Type":"application/json"}),a=l=>({...n,...l}),c=(l,u)=>{let p=u||t;if(l&&(l.startsWith("http://")||l.startsWith("https://")))return l;let d=l&&!l.startsWith("/")?"/":"";return`${p}${d}${l||""}`};return{name:"rest",setToken:l=>{o=l},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let l=await pe(c(r.sessionUrl,r.baseUrl),a({headers:s()}));return l.error?null:l.data},signIn:async l=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let u=await pe(c(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(l)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await pe(c(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:l,params:u,select:p,limit:d,offset:h,order:m,single:x,headers:_,baseUrl:w})=>{let C={...u};return p&&(C.select=p),d&&(C.limit=d),h&&(C.offset=h),x&&(C.single=!0),m&&(typeof m=="string"?C.order=m:Array.isArray(m)?C.order=m.map(I=>`${I.by}:${I.asc===!1?"desc":"asc"}`).join(","):m.by&&(C.order=`${m.by}:${m.asc===!1?"desc":"asc"}`)),pe(vh(w||t,l||"",C),a({headers:s(_)}))},rpc:({from:l,params:u,headers:p,baseUrl:d})=>pe(c(`rpc/${l}`,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),insert:({from:l,data:u,headers:p,baseUrl:d})=>pe(c(l,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),update:({from:l,data:u,params:p,method:d,headers:h,baseUrl:m})=>{let x=p?.id||u?.id,_=x?`${l}/${x}`:l;return pe(c(_,m),a({method:d||"PATCH",headers:i(h),body:JSON.stringify(u)}))},delete:({from:l,params:u,headers:p,baseUrl:d})=>{let h=u?.id,m=h?`${l}/${h}`:l;return pe(c(m,d),a({method:"DELETE",headers:s(p)}))}}}});var yl={};Mt(yl,{localAdapter:()=>gl,setup:()=>kh});var ei,Eh,kh,gl,bl=G(()=>{"use strict";ei=(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},Eh=(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,f)=>c[i]<f[i]?a?-1:1:c[i]>f[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}},kh=async({data:t,...e})=>gl(t,e),gl=(t={},e={})=>{let r={},n={},o=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=l=>{if(!r[l])if(o)try{let u=localStorage.getItem(s+l);r[l]=u?JSON.parse(u):t[l]||[]}catch{r[l]=t[l]||[]}else r[l]=t[l]||[];return r[l]},a=l=>{if(o)try{localStorage.setItem(s+l,JSON.stringify(r[l]))}catch{}},c=(l,u,p,d)=>{let h=n[l];if(h)for(let m of h)m(p,d,{event:u,table:l})},f=Date.now();return{name:"local",store:r,select:async({from:l,params:u,...p})=>{let h=i(l).filter(m=>ei(m,u));return Eh(h,p)},insert:async({from:l,data:u})=>{let p=i(l),h=(Array.isArray(u)?u:[u]).map(m=>{let x={id:m.id||++f,...m};return p.push(x),x});a(l);for(let m of h)c(l,"INSERT",m,null);return{data:Array.isArray(u)?h:h[0],error:null}},update:async({from:l,data:u,params:p})=>{let d=i(l),h=[];for(let m=0;m<d.length;m++)if(ei(d[m],p)){let x={...d[m]};Object.assign(d[m],u),h.push(d[m]),c(l,"UPDATE",d[m],x)}return a(l),{data:h,error:null}},delete:async({from:l,params:u})=>{let p=i(l),d=[];for(let h=p.length-1;h>=0;h--)ei(p[h],u)&&(d.push(p[h]),p.splice(h,1),c(l,"DELETE",null,d[d.length-1]));return a(l),{data:d,error:null}},subscribe:({from:l,on:u},p)=>{n[l]||(n[l]=[]);let d=(h,m,x)=>{u&&u!=="*"&&u!==x.event||p(h,m,x)};return n[l].push(d),()=>{let h=n[l].indexOf(d);h>-1&&n[l].splice(h,1)}}}}});var Kr={};Mt(Kr,{createAdapter:()=>Th,default:()=>Bh,executeFetch:()=>Gr,fetchPlugin:()=>ai,initAdapterAuth:()=>Gn,parseDuration:()=>jr,queryClient:()=>Mh,registerAdapter:()=>Ah,resolveDb:()=>vl});var Oh,wl,Ah,Th,vl,jr,St,Cl,qn,Rh,Wr,zr,Hr,ri,si,Wn,Ih,xl,ni,El,kl,rr,Sl,Ph,_l,Nh,Ol,Al,Gn,ii,Pt,qr,Oe,Ht,de,Dh,Fh,$h,oi,Lh,Gr,Mh,ai,Bh,Ae=G(()=>{"use strict";v();Oh=["select","rpc","insert","update","delete","subscribe"],wl={supabase:()=>Promise.resolve().then(()=>(pl(),ul)),rest:()=>Promise.resolve().then(()=>(ml(),hl)),local:()=>Promise.resolve().then(()=>(bl(),yl))},Ah=(t,e)=>{wl[t]=e},Th=t=>{let e={};for(let r of Oh)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},vl=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=wl[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},jr=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},St=new Map,Cl=new Map,qn=new Map,Rh=t=>{if(t.cache?.key)return t.cache.key;let e=Nh(t.params);return`${t.from}:${t.method}:${JSON.stringify(e||"")}`},Wr=t=>St.get(t)||null,zr=(t,e,r)=>{let n=St.get(t),o={data:e,error:r,time:Date.now(),stale:!1};St.set(t,o);let s=Cl.get(t);if(s)for(let i of s)y(i)&&i(o);return o},Hr=t=>{if(t){let e=St.get(t);e&&(e.stale=!0);return}for(let[,e]of St)e.stale=!0},ri=t=>{if(t){St.delete(t);return}St.clear()},si=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)}:b(t)?{staleTime:jr(t),gcTime:3e5}:{staleTime:jr(t.stale||t.staleTime)||6e4,gcTime:jr(t.gc||t.gcTime||t.expire)||3e5,key:t.key},Wn=null,Ih=()=>{Wn||(Wn=setInterval(()=>{let t=Date.now();for(let[e,r]of St){let n=Cl.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&St.delete(e)}},3e4),Wn.unref&&Wn.unref())};Ih();xl=3,ni=t=>Math.min(1e3*2**t,3e4),El=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:xl,delay:ni}:typeof e=="number"?{count:e,delay:ni}:{count:e.count??xl,delay:y(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:ni}},kl=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=y(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=y(n)?n(s,i):n;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},rr={focus:new Set,online:new Set},Sl=!1,Ph=()=>{if(Sl||typeof window>"u")return;Sl=!0;let t=()=>{for(let r of rr.focus)r()},e=()=>{for(let r of rr.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},_l=(t,e)=>{let r=e.__ref;if(t===!0)return{from:r.__state||e.key,method:"select",query:!0,on:"create"};if(b(t))return{from:t,method:"select",query:!0,on:"create"};if(g(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},Nh=t=>(!t||y(t),t),Ol=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},Al=(t,e,r)=>{let n;if(!t)n=void 0;else if(y(t))n=t(e,e.state);else{n={};for(let o in t){let s=t[o];n[o]=y(s)?s(e,e.state):s}}return n},Gn=async(t,e)=>{if(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{}t.onAuthStateChange&&t.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},ii=async(t,e)=>{if(y(t.select))return t.auth!==!1&&await Gn(t,e),t;if(t.__resolved)return t.auth!==!1&&await Gn(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=vl(t);let r=await t.__resolving;return t.__resolved=r,e.fetch=r,delete t.__resolving,t.auth!==!1&&await Gn(r,e),r},Pt=(t,e,...r)=>{let n=y(t[e])?t[e]:t.props&&y(t.props[e])?t.props[e]:null;n&&n.call(t,...r,t,t.state,t.context)},qr=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},Oe=(t,e,r,n={})=>{let o=r?{[r]:e}:e;t.state?.update&&t.state.update(o,{preventFetch:!0,...n})},Ht=(t,e)=>{let r=t.__ref;r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error},de=async(t,e,r,n={})=>{let o=r?.fetch;if(!o||t.enabled===!1||y(t.enabled)&&!t.enabled(e,e.state))return;let s=await ii(o,r);if(!s)return;let i=e.__ref,{from:a,method:c,query:f,params:l,cache:u,transform:p,single:d,auth:h,fields:m,as:x,limit:_,offset:w,order:C,headers:I,baseUrl:A,page:T,cursor:k,getNextPageParam:$,getPreviousPageParam:P,infinite:D,placeholderData:j,initialData:Z,select:tt,keepPreviousData:pt}=t,_t;if(f&&y(e.getQuery)){let Q=e.getQuery(s.name||"paths");Q&&(_t=Q.select||Q.length&&Q.join(",")||void 0)}let Lt=Al(l,e,r),Ir=si(u),Wo=El(t),st=Ir?u?.key||`${a}:${c}:${JSON.stringify(Lt||"")}${D?":infinite":""}${T?":p"+JSON.stringify(T):""}`:null;if(!i.__fetchInitialized&&st&&(i.__fetchInitialized=!0,Z!==void 0)){let Q=y(Z)?Z():Z;zr(st,Q,null)}if((c==="select"||c==="rpc")&&st&&Ir){let Q=Wr(st);if(Q&&!Q.error){let q=Date.now()-Q.time,ft=Q.stale||q>(Ir.staleTime||0),B=Q.data;if(tt&&(B=tt(B,e,e.state)),p&&(B=p(B,e,e.state)),Oe(e,B,x),!ft){Ht(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(j!==void 0){let q=y(j)?j(e,e.state):j;q!==void 0&&Oe(e,q,x)}}if(st&&qn.has(st)&&!n.force){let Q=qn.get(st);try{let q=await Q;if(q?.data!==void 0){let ft=q.data;tt&&(ft=tt(ft,e,e.state)),p&&(ft=p(ft,e,e.state)),Oe(e,ft,x),Pt(e,"onFetchComplete",ft)}}catch{}return}let Go=!Wr(st)?.data;Ht(e,{isFetching:!0,isLoading:Go,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Pt(e,"onFetchStart");let wc=kl(async()=>{if(h!==!1&&s.getSession){let B=await s.getSession();if(h===!0&&!B){let wt={message:"Not authenticated"};return Ht(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:wt,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",wt),{data:null,error:wt}}}let Q=s[c];if(!y(Q))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let q={from:a,select:_t,params:Lt,single:d,limit:_,offset:w,order:C,headers:I,baseUrl:A},ft=Ol(e,r);if(ft&&(q.headers={...q.headers,"Accept-Language":ft}),T!==void 0){if(g(T))T.offset!==void 0&&(q.offset=T.offset),T.limit!==void 0&&(q.limit=T.limit),T.cursor!==void 0&&(q.params={...q.params,cursor:T.cursor});else if(typeof T=="number"){let B=t.pageSize||_||20;q.offset=(T-1)*B,q.limit=B}}if(k!==void 0&&(q.params={...q.params,cursor:k}),c==="insert"||c==="update"||c==="upsert"){let B;if(m===!0||t.on==="submit")B=qr(e);else if(S(m)){let wt=qr(e);B={};for(let Yo of m)B[Yo]=wt[Yo]}else e.state?.parse?B=e.state.parse():g(e.state)&&(B={...e.state});p&&(B=p(B,e,e.state)),q.data=B}if(c==="rpc"){let B=Lt;if(t.on==="submit"){let wt=qr(e);B=t.transformParams?t.transformParams(wt,e,e.state):wt}q.params=B}if(c==="subscribe"){let B=s.subscribe({from:a,params:Lt,on:t.subscribeOn},(wt,Yo,YS)=>{Oe(e,wt,x),Pt(e,"onFetchComplete",wt)});return i.__unsubscribe=B,{data:null,error:null,subscribed:!0}}return Q(q)},Wo);st&&qn.set(st,wc);try{let Q=await wc;if(Q?.subscribed)return;let{data:q,error:ft}=Q||{};if(ft){st&&zr(st,null,ft),Ht(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ft,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",ft);return}if(q!==void 0){if((c==="select"||c==="rpc")&&st){let wt=zr(st,q,null);wt.gcTime=Ir?.gcTime||3e5}let B=q;D&&S(q)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(q):i.__pages.push(q),B=i.__pages.flat(),$&&(i.__nextPageParam=$(q,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),P&&(i.__prevPageParam=P(q,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),tt&&(B=tt(B,e,e.state)),p&&(B=p(B,e,e.state)),(!pt||B!==void 0)&&Oe(e,B,x),Ht(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Pt(e,"onFetchComplete",B)}}catch(Q){Ht(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Q,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",Q)}finally{st&&qn.delete(st)}},Dh=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||de;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))},Fh=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),Ph();let o=t.refetchInterval;if(o){let s=typeof o=="number"?o:jr(o);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&de(t,e,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=Rh(t),a=Wr(i),c=si(t.cache);(!a||a.stale||Date.now()-a.time>(c?.staleTime||0))&&de(t,e,r,{force:!0})};rr.focus.add(s),n.__fetchCleanups.push(()=>rr.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>de(t,e,r,{force:!0});rr.online.add(s),n.__fetchCleanups.push(()=>rr.online.delete(s))}},$h=(t,e,r)=>{if(!e.optimistic)return null;let n=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():g(t.state)?{...t.state}:t.state;n.__optimisticSnapshot=s;let i=y(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&Oe(t,i,o),s},oi=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Oe(t,n,e.as),delete r.__optimisticSnapshot)},Lh=async(t,e,r)=>{let n=r?.fetch;if(!n)return;let o=await ii(n,r);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:f,as:l,on:u,auth:p,headers:d,baseUrl:h,invalidates:m,optimistic:x,onMutate:_,onSuccess:w,onError:C,onSettled:I}=t,A;if(c===!0||u==="submit")A=qr(e);else if(S(c)){let k=qr(e);A={};for(let $ of c)A[$]=k[$]}else e.state?.parse?A=e.state.parse():g(e.state)&&(A={...e.state});f&&(A=f(A,e,e.state)),y(_)&&_(A,e,e.state);let T=x?$h(e,t,A):null;s.__fetching=!0,Ht(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Pt(e,"onFetchStart");try{if(p!==!1&&o.getSession){let pt=await o.getSession();if(p===!0&&!pt){T!==void 0&&oi(e,t),Pt(e,"onFetchError",{message:"Not authenticated"});return}}let k=o[i];if(!y(k))return;let $={from:a,data:A,headers:d,baseUrl:h};t.params&&($.params=Al(t.params,e,r));let P=Ol(e,r);P&&($.headers={...$.headers,"Accept-Language":P});let D=El(t),j=await kl(()=>k($),D),{data:Z,error:tt}=j||{};if(tt){T!==void 0&&oi(e,t),Ht(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:tt,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",tt),y(C)&&C(tt,A,e),y(I)&&I(null,tt,A,e);return}if(delete s.__optimisticSnapshot,Z!==void 0){let pt=l?{[l]:Z}:Z;e.state?.update&&e.state.update(pt,{preventFetch:!0})}if(Ht(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Pt(e,"onFetchComplete",Z),y(w)&&w(Z,A,e),y(I)&&I(Z,null,A,e),m){let pt=S(m)?m:[m];for(let _t of pt)if(_t===!0||_t==="*")for(let[Lt]of St)Lt.startsWith(a+":")&&Hr(Lt);else Hr(_t)}}catch(k){T!==void 0&&oi(e,t),Ht(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:k,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",k),y(C)&&C(k,A,e),y(I)&&I(null,k,A,e)}finally{s.__fetching=!1}},Gr=(t,e,r,n)=>{if(!t||!n?.fetch)return;let s=O(t,e);if(!s)return;let i=S(s)?s.map(c=>_l(O(c,e),e)).filter(Boolean):[_l(s,e)].filter(Boolean);for(let c of i){let f=c.method==="insert"||c.method==="update"||c.method==="upsert"||c.method==="delete",l=f?Lh:de;c.on==="create"?l(c,e,n):Promise.resolve().then(()=>{Dh({...c,__runner:l},e,n)}),!f&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&Fh(c,e,n)}let a=e.__ref;a.refetch=c=>{for(let f of i)de(f,e,n,{force:!0,...c})},a.fetchNextPage=()=>{let c=i[0];if(!c||!c.infinite)return;let f=a.__nextPageParam;if(f==null)return;let l={...c,cursor:f};de(l,e,n,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let c=i[0];if(!c||!c.infinite)return;let f=a.__prevPageParam;if(f==null)return;let l={...c,cursor:f};de(l,e,n,{direction:"previous",force:!0})}},Mh={invalidateQueries:t=>{if(!t){Hr();return}if(b(t))for(let[e]of St)(e.startsWith(t)||e.includes(t))&&Hr(e);else if(S(t)){let e=t.join(":");for(let[r]of St)r.includes(e)&&Hr(r)}},removeQueries:t=>{if(!t){ri();return}if(b(t))for(let[e]of St)(e.startsWith(t)||e.includes(t))&&ri(e)},getQueryData:t=>Wr(t)?.data??void 0,setQueryData:(t,e)=>{let r=Wr(t),n=y(e)?e(r?.data):e;zr(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let n=await ii(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(!y(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=zr(o,i.data,null);a.gcTime=si(t.cache)?.gcTime||3e5}return i},getCache:()=>St,clear:()=>ri()},ai={name:"fetch",create(t){let e=t.fetch||t.props?.fetch;e&&Gr(e,t,t.state,t.context)}},Bh=Gr});function li(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 fi(t){let e=this,{parent:r}=e;if(y(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 ui(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(y(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 pi(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(y(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 Kn(t={}){let e=this;if(e.node?.style){for(let r in t){let n=t[r],o=e[r];g(n)&&o?Kn.call(o,n):e.node.style[r]=n}return e}}function di(t){let e=this;if(W("beforeRemove",e,t)===!1)return e;y(e.node.remove)?e.node.remove():Ge()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=ts(e.parent.__ref.__children,e.key)),W("remove",e,t)}function Uh(t){return this[t]}function hi(t,e){let r=this;if(!(!t||!r.props))return r.update({props:t},e),r}function mi(t){return t?this.__ref&&this.__ref[t]:this.__ref}function Vh(){return this.getRef("__children").map(e=>this[e])}function gi(){return this.getRef().path}function yi(t){let e=null,r=n=>n.__element&&n.root?.isRootState;if(!this)e=window.platformState||window.smblsApp?.state;else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=y(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=window.platformState||window.smblsApp?.state),t?e?.[t]:e}function bi(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function xi(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function Si(t){let e=this.getRoot()?.context;return t?e[t]:e}function _i(t){let e=this.context;return t?e[t]:e}function Yn(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||He.has(r)&&!ns.has(r)||e.push(r);return e}function Xn(t=[]){let e=this,r={},n=Yn.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 f=y(c&&c.parse)?c.parse():c;r[a]=y(f)?f:JSON.parse(JSON.stringify(f||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:f,update:l,...u}=e[a];r[a]=u}else Ot(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function Yr(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let n=Xn.call(r,t),o=t.length?new Set(t):null;for(let s in n){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=n[s];Array.isArray(i)?n[s]=i.map(a=>N(a)?Yr.call(a,t,e):a):N(i)&&(n[s]=Yr.call(i,t,e))}return n}function Qn(...t){if(he!=="test"&&he!=="development")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(n=>console.log(`%c${n}:
11
- `,"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 wi(...t){(he==="test"||he==="development")&&console.log(...t)}function vi(...t){(he==="test"||he==="development")&&console.warn(...t)}function Ci(...t){if(he==="test"||he==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&Qn.call(this),new Error(...t)}}function Ei(){let t=this,{key:e,parent:r}=t,{__children:n}=r.__ref,o=n.indexOf(e),s=n[o+1];return r[s]}function ki(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 Oi(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,z(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 Ai(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=>{this.error=s}),o}catch(o){if(this.error=o,r?.strictMode)throw o}}async function Ti(){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(()=>(Ae(),Kr));await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ae(),Kr));await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=Promise.resolve().then(()=>(Ae(),Kr)).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(()=>(Ae(),Kr));await o(n,t.context)}return n}function Ri(t){let e=this,r=t||ut.useStateQuery||e.context?.useStateQuery;if(!r)return null;let n={};if(ci(e,n),r===!0)return n;let o=Xh[r];return o?o(n):n}function qt(t,e){return!!(Nn.has(t)||e?.context?.methods?.[t])}var he,jh,ci,zh,Tl,Hh,qh,Wh,Gh,Kh,Yh,Xh,Ii=G(()=>{Js();We();xt();ae();xs();ze();Zs();he=process.env.NODE_ENV;jh=(t,e,r,n)=>Object.defineProperty(t,e,{get:r,set:n});ci=(t,e)=>{let r=t.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&zh(e,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&ci(c,e)}let s=r.contentElementKey||"content",i=t[s];i&&i.__ref&&ci(i,e)},zh=(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])}},Tl=(t,e=0)=>{let r=" ".repeat(e),n=Object.entries(t);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {
10
+ `}return o+=`${n}}`,o},$d=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],Ld=/^["[{]/,ls=t=>{if(!t)return!1;let e=t.trim().replace(/\n\s*/g," ").trim();if(e===""||e==="{}"||e==="[]"||!$d.some(s=>s.test(e)))return!1;let n=e.charCodeAt(0),o=e.includes("=>");return!(n===123&&!o||n===91||Ld.test(e)&&!o)},le=(t,e={})=>{for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=t[r];if(y(n))if(ls(n))try{e[r]=F.eval(`(${n})`)}catch(o){o&&(e[r]=n)}else e[r]=n;else if(S(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];if(y(i))if(ls(i))try{o.push(F.eval(`(${i})`))}catch(a){a&&o.push(i)}else o.push(i);else g(i)?o.push(le(i)):o.push(i)}}else g(n)?e[r]=le(n,e[r]):e[r]=n}return e},Md=(t,e={verbose:!0})=>{try{return t?F.eval("("+t+")"):{}}catch(r){e.verbose&&console.warn(r)}},Bd=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),kc=t=>{for(let e in t)return!1;return!0},Ud=t=>g(t)&&kc(t),Vd=()=>Object.create(null),fe=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&Ee(s)||e[s]!==void 0&&(t[s]=e[s]);return t},Lr=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Ee(o)||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},it=(t,e,r={},n=new WeakMap)=>{if(!N(t)||!N(e)||Bt(t)||Bt(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&&Ee(a))continue;let c=t[a],f=e[a];Bt(f)?t[a]=f:N(c)&&N(f)?t[a]=it(c,f,r,n):f!==void 0&&(t[a]=f)}return t},Oc=(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)||!Oc(t[i],e[i],r))return!1}return!0},jd=new Set(["node","__ref"]),fs=(t,e,r=jd)=>{if(t===e)return!0;if(!N(t)||!N(e)||Bt(t)||Bt(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 f=a[c],l=i[c];if(Bt(f)||Bt(l)){if(f!==l)return!1}else if(N(f)&&N(l)){if(!s(l,f))return!1}else if(f!==l)return!1}return!0}return s(t,e)},us=(t,e)=>{if(e==null)return t;if(At(e)("string","number"))delete t[e];else if(S(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},Ac=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]=Ac(t[r]));return e},ps=(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},ds=(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]},hs=(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},ms=(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},gs=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(Ec==="test"||Ec==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},zd=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)},Hd=(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 ys,bs,xs,Fn=G(()=>{ae();ys=(function(){let t=0;function e(){return t++,t}return e})(),bs=ys,xs=(t,e,r)=>(O(r,t)||r||t.key||ys()).toString()});var Qt,qd,Ge,Tc,Wd,Gd,Kd,Jt,Yd,Mr,Ss=G(()=>{Qt=process.env.NODE_ENV,qd=Qt,Ge=(t=Qt)=>t==="production",Tc=(t=Qt)=>t==="testing"||t==="test",Wd=Tc,Gd=(t=Qt)=>t==="staging",Kd=(t=Qt)=>t==="local",Jt=(t=Qt)=>t==="development"||t==="dev"||t==="local",Yd=(t,e=Qt)=>e[t],Mr=(t=Qt)=>!Ge(t)});function Xd(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 eh(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 Qd,Jd,Zd,th,Ke,Ye,$n,Ln=G(()=>{Qd=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},Jd=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}}},Zd=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,th=t=>Zd.test(t),Ke=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},Ye=(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},$n=(t,e,...r)=>{let n=e?.context?.plugins;if(n)for(let o of n)typeof o[t]=="function"&&o[t](e,...r)}});var Br,Rc=G(()=>{xt();Br=(t,e)=>{let{__ref:r}=t;b(t.if)&&!t.if(t,t.state,t.context)?delete r.__if:r.__if=!0}});var rh,nh,Ic=G(()=>{rh=(t,...e)=>{t&&e.map(r=>console.log(r))},nh=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function ch(t){if(!window.localStorage)return;let e=window.localStorage.getItem(t);if(e!==null)try{return JSON.parse(e)}catch{return}}function lh(t,e){if(!window.localStorage||e===void 0||e===null)return;let r=typeof e=="object"?JSON.stringify(e):e;window.localStorage.setItem(t,r)}var oh,sh,ih,ah,Pc=G(()=>{xt();Pr();oh=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),sh=(t,e,r=365)=>{if(K(L)||K(L.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;L.cookie=`${t}=${e};${o};path=/`},ih=t=>{if(K(L)||K(L.cookie))return;let e=`${t}=`,n=decodeURIComponent(L.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""},ah=t=>{K(L)||K(L.cookie)||(L.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var Mn,Xe,ke,_s=G(()=>{Mn={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"])},Xe=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"]),ke=t=>Mn.body.has(t)});var ws,Nc,Bn,Es,Rt,ks,Dc,Os,fh,As,Fc,$c,Ts,Lc,Un,uh,ue,Mc,vs,Rs,ph,Cs,dh,hh,Bc,Uc,Vc,jc,zc,Hc,Is,Vn=G(()=>{ze();Ps();ae();xt();ws=process.env.NODE_ENV,Nc=t=>t.sourcemap!==!1&&ws!=="production",Bn=t=>{if(t.includes("+"))return t.split("+").filter(It);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!It(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},Es=(t,e,r)=>{let n=[],o=Bn(r);o&&(n=[...o]);let s=t.extends;return s&&(n=S(s)?[...n,...s]:[...n,s]),n},Rt=(t,e)=>{let{__ref:r}=e,{__extends:n}=r;if(!t)return n;let o=e.props?.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},ks=(t,e)=>{if(!t)return e;let{extends:r}=e,n=S(r)?r:[r],o=S(t)?t:[t];return{...e,extends:Pn(o,n)}},Dc=()=>Math.random().toString(36).substring(2),Os={},fh={},As=t=>Os[t.__hash],Fc=(t,e)=>{let r=Dc();return y(t)||(t.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(Os[r]=e),e},$c=(t,e)=>t.__hash?e.concat(As(t)):Fc(t,e),Ts=(t,e,r,n=new Set,o,s)=>{for(let i of t)S(i)?Ts(i,e,r,n,o,s):Un(i,e,r,n,o,void 0,s);return e},Lc=(t,e,r,n=new Set,o,s,i)=>{let a=t.extends||t.extend,c={...t};delete c.extends,delete c.extend;let f=!1;for(let l in c){f=!0;break}return f&&(e.push(c),o&&o.push(s)),a&&Un(a,e,r,n,o,s,i),e},Un=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(S(t))return Ts(t,e,r,n,o,i);let a=s;return y(t)?(a=t,t=Rs(t,r)):i&&g(t)&&i.has(t)&&(a=i.get(t)),n.add(t),t?.extends||t?.extend?Lc(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a)),e},uh=new Set(["parent","node","__ref","__proto__","extend","childExtend","childExtendRecursive"]),ue=(t,e,r,n,o)=>{e=z(e);for(let s in e){if(uh.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?g(a)&&!S(a)?(r[s]=r[s]||{},Mc(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(g(i)&&g(a)){let c=r?r[s]=r[s]||{}:void 0,f=o?.[s];It(s)?t[s]=ue(i,a,c,n,f):ue(i,a,c,n,f)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(S(i)&&S(a))t[s]=i.concat(a);else if(S(i)&&g(a)){let c=ue({},i);t[s]=ue(c,a)}}}}return t},Mc=(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];g(s)&&!S(s)?(t[o]=t[o]||{},Mc(t[o],s,r,n)):t[o]=r}}},vs=(t,e,r)=>t.reduce((n,o,s)=>{let i=z(o),a=r?r[s]:void 0;return ue(n,i,e,a)},{}),Rs=(t,e,r={},n)=>{let o=e?.components||r.components,s=e?.pages||r.pages;if(y(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&&(ws==="test"||ws==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},ph=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),Cs=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return As(t)||[];let s=Un(t,[],e,new Set,r,void 0,n);return r?s:$c(t,s)},dh=(t,e)=>{if(!t)return e;let r=S(t)?t:[t];return Pn(r,e)},hh=t=>{let e=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(It(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},Bc=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.props?.variant;if(t.extend&&!t.extends&&(t.extends=t.extend),delete t.extend,!t.extends&&t.props?.extends&&(t.extends=t.props.extends),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]?Rt([c,...a],t):Rt(t.extends,t)}else Rt(t.extends,t)}else if(typeof t.extends=="string"&&s&&o?.components){let i=`${t.extends}.${s}`;o.components[i]?Rt(i,t):Rt(t.extends,t)}else Rt(t.extends,t);return Uc(t,e,r),Vc(t,e,r),jc(t,e,r),t.component&&Rt(O(t.component,t),t),o.defaultExtends&&Rt(o.defaultExtends,t),Nn(n.__extends)},Uc=(t,e,r={})=>{let{props:n,__ref:o}=t;return r.ignoreChildExtends||n?.ignoreChildExtends||e.props?.childProps?.extends&&Rt(e.props?.childProps.extends,t),o.__extends},Vc=(t,e,r={})=>{let{props:n,__ref:o}=t,s=r.ignoreChildExtends||n?.ignoreChildExtends,i=e.childExtends||e.childExtend;return!s&&i&&Rt(i,t),o.__extends},jc=(t,e,r={})=>{let{props:n,__ref:o}=t,s=e.childExtendsRecursive||e.childExtendRecursive,i=r.ignoreChildExtendsRecursive||n?.ignoreChildExtendsRecursive,a=t.key==="__text";return s&&!a&&!i&&Rt(s,t),o.__extends},zc=(t,e,r={})=>{let{props:n,__ref:o}=t,s=t.context||e.context,i=t.variant||n?.variant,a=Nc(r),c=a?[...o.__extends]:null,f=Nn(o.__extends.map((l,u)=>Rs(l,s,r,u===0&&i)));if(a){let l=new WeakMap;for(let d=0;d<f.length;d++){let h=f[d],m=c[d];h&&g(h)&&y(m)&&l.set(h,m)}let u=[],p=Cs(f,s,u,l);o.__extendsStack=p,o.__extendsNames=u}else{let l=Cs(f,s);o.__extendsStack=l}return o.__extendsStack},Hc=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(Nc(r)){let s={},i=n.__extendsNames||[],a=vs(o,s,i),c={};ue(t,a,c,void 0,s),n.__sourcemap=c}else{let s=vs(o);ue(t,s)}return t},Is=(t,e,r={})=>(Bc(t,e,r),zc(t,e,r),Hc(t,e,r),t)});function mh(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function gh(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function Ns(t,e,r){let{context:n}=e||{},[o]=Bn(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var It,Ps=G(()=>{Vn();xt();It=t=>{if(!y(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function qc(t,e){let{props:r,on:n}=e,o=ce(t.split("on")[1]),s=n[o],i=r[t];b(s)?n[o]=(...a)=>{if(s(...a)!==!1&&b(i))return i(...a)}:n[o]=i}var Wc=G(()=>{$r();xt()});function Yc(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()&&(b(o)||o!=null&&Ke(this.context))){let h=ce(n.slice(2));t.on&&(t.on[h]=o),delete t[n];continue}if(n==="childProps"){t.props[n]=o,delete t[n],r.push(n);continue}let a=this.define?.[n],c=this.context?.define?.[n],f=g(a)||b(a),l=g(c)||b(c);if(f||l)continue;let u=n.charAt(0);if(Kc.has(u)){t.props[n]=o,delete t[n],r.push(n);continue}let p=$s.test(n)||Gc.test(n)||bh(o),d=He.has(n);!p&&!d&&(t.props[n]=o,delete t[n],r.push(n))}return t}function Ur(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=b(o)||o!=null&&Ke(this.context);if(s&&i){qc(n,t),delete t.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(Kc.has(a))continue;let c=this.define?.[n],f=this.context?.define?.[n],l=g(c)||b(c),u=g(f)||b(f),p=$s.test(n)||Gc.test(n),d=He.has(n);(p||d||l||u)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function jn(t=this){let e=[];return Yc.call(this,t,{cachedKeys:e}),Ur.call(this,t,{cachedKeys:e}),t}function Ms(t={}){return t.on||(t.on={}),t.props||(t.props={}),jn.call(this,t)}function Xc(t,e){this.__element.update({props:t},e)}function Us(t){let e={update:Xc.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var $s,Gc,Kc,yh,bh,Ls,Ds,xh,Bs,Vs,js,Qc,Fs,zn,zs,Hs=G(()=>{We();Wc();ae();xt();$r();Ln();$s=/^[A-Z]/,Gc=/^\d+$/,Kc=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),yh=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),bh=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(yh.has(e)||$s.test(e))return!0;return!1},Ls=(t,e,r)=>{let{props:n,__ref:o}=t;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return N(n)?{...n}:(o.__propsStack.push(n),{})};Ds=t=>At(t)("string","number")?{inheritedString:t}:t,xh=(t,e)=>!t||!e.length?!1:e.includes(t),Bs=(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=Ds(i);n.unshift(c)}if(s){let c=Ds(s);n.unshift(c)}return n};Vs=t=>{let e=new Set;return t.filter(r=>!r||qe.has(r)||e.has(r)?!1:(e.add(r),!0))},js=(t,e,r)=>(e.props=t.reduce((n,o)=>{if(qe.has(o))return n;for(;b(o);)o=O(o,e);return U(n,z(o,{exclude:qe}))},{}),Us(e),e.props),Qc=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...Bs(t,e)]),g(r)?o.push(r):r==="inherit"&&e?.props?o.push(e.props):r&&o.push(r),S(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=Vs(o),n.__propsStack},Fs=(t,e)=>{let{__ref:r}=t,n=Qc(t,e);n.length?js(n,t):(r.__propsStack=[],t.props={})},zn=function(t,e,r){let{__ref:n}=t;if(n.__if)Fs(t,e);else try{Fs(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),t.props={},n.__propsStack=[]}return Us(t),t},zs=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=Bs(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=Vs(s),n.__propsStack.length&&js(n.__propsStack,e),e}});var Jc,Zc,tl,el,rl,qs,nl,ol,sl,Ws,il=G(()=>{Vn();Fn();Nr();Hs();_s();xt();Jc=process.env.NODE_ENV,Zc=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.props.childProps&&e.props.childProps.tag,s=Mn.body.has(r)&&r;return{text:t,tag:n||o||s||"string"}},tl=(t,e,r)=>{if(t===void 0)return(Jc==="test"||Jc==="development")&&console.warn(r,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:At(t)("string","number")?Zc(t,e,r):b(t)?{props:t}:t},el=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},rl=(t,e,r,n,o)=>{if(!e)return o;if(Ce(e)){let s={key:":root",node:e};return o[`${r}_parent`]=s,s}return e},qs=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===":root";r?.root||(r.root=o?t:n?.root)},nl=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},ol=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),sl=(t,e,r)=>{let n=el(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=Es(t,e,r),n.path=nl(t,e,r),n},Ws=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:tl(t,e,r);if(!i)return;let a=rl(i,e,r,n,o),c=xs(i,a,r);sl(i,a,c);let f=Ls(i,a,c),l=ol(i,a,c,n,o),u=i.on||{};return{...i,key:c,props:f,parent:a,context:l,on:u}}});var Gs,Qe,Je,Ze,tr,Ks,er,Hn,Ys,Xs,Qs,al=G(()=>{ze();We();ae();xt();Gs=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return At(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},Qe=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},Je=(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},Ze=(t,e,r={})=>{let n=y(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]},tr=(t,e,r={})=>{let o=t.__ref.__state;if(!er(t))return;let s=Qe(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=Je(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return Ze(o,i,r)},Ks=(t,e)=>{let r=t.__ref,n=tr(t,e);if(n===void 0)return t.state;if(At(n)("object","array"))return z(n);if(At(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},er=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&At(r)("number","string","boolean"))},Hn=function(t){return N(t)?!!(t.update&&t.parse&&t.clean&&t.create&&t.parent&&t.destroy&&t.rootUpdate&&t.parentUpdate&&t.keys&&t.values&&t.toggle&&t.replace&&t.quietUpdate&&t.quietReplace&&t.add&&t.apply&&t.applyReplace&&t.setByPath&&t.setPathCollection&&t.removeByPath&&t.removePathCollection&&t.getByPath&&t.applyFunction&&t.__element&&t.__children):!1},Ys=(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},Xs=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=z(n,Tt),s={[t.key]:o},i=g(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?Fr(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},Qs=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){U(t,e,Tt);return}(o?Lr:it)(t,e,Tt)}});var qn,cl=G(()=>{qn=(t,e)=>{let{__ref:r}=t;t.scope||(t.scope=e.scope||r.root?.scope||{})}});var ll,Vr,W,Js,vt,Zs=G(()=>{xt();Ln();ll=(t,e)=>{let r=e.on?.[t];if(r)return r;let n=e.props;if(!n)return;let o="on"+t.charAt(0).toUpperCase()+t.slice(1);return n[o]},Vr=(t,e,r,n,o)=>{if(t=Ye(t,e),!!b(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,console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(e.error=s,console.error("[DOMQL] Event handler error:",s),e.context?.strictMode)throw s}},W=(t,e,r)=>{if(!e)throw new Error("Element is required");$n(t,e,r);let n=ll(t,e);if(n){let{state:o,context:s}=e;return Vr(n,e,o,s,r)}},Js=(t,e,r,n,o,s)=>{if(t=Ye(t,r),!!b(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}},vt=(t,e,r,n)=>{$n(t,r,e,n);let o=ll(t,r);if(o){let{state:s,context:i}=r;return Js(o,e,r,s,i,n)}}});var Sh,ut,ti=G(()=>{Sh={},ut={}});var ul={};Mt(ul,{setup:()=>_h,supabaseAdapter:()=>fl});var _h,ei,wh,fl,pl=G(()=>{"use strict";_h=async({url:t,key:e,projectId:r,createClient:n,...o})=>{let s=t||r&&`https://${r}.supabase.co`;if(!s||!e)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");return n||(n=(await import("@supabase/supabase-js")).createClient),fl(n(s,e,o))},ei=(t,e)=>{if(!e)return t;for(let r in e){let n=e[r];if(n===null)t=t.is(r,null);else if(Array.isArray(n))t=t.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?t=t.gt(r,n[o]):o==="gte"?t=t.gte(r,n[o]):o==="lt"?t=t.lt(r,n[o]):o==="lte"?t=t.lte(r,n[o]):o==="neq"?t=t.neq(r,n[o]):o==="like"?t=t.like(r,n[o]):o==="ilike"?t=t.ilike(r,n[o]):o==="in"?t=t.in(r,n[o]):o==="is"?t=t.is(r,n[o]):o==="contains"?t=t.contains(r,n[o]):o==="containedBy"?t=t.containedBy(r,n[o]):o==="textSearch"&&(t=t.textSearch(r,n[o]));else t=t.eq(r,n)}return t},wh=(t,{limit:e,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s=="string"?s:s.by;t=t.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;t=t.order(s,{ascending:n.asc!==!1})}return e&&(t=t.limit(e)),r&&(t=t.range(r,r+(e||20)-1)),o&&(t=t.single()),t},fl=t=>({name:"supabase",client:t,getSession:async()=>{let{data:e}=await t.auth.getSession();return e?.session||null},getUser:async()=>{let{data:e}=await t.auth.getUser();return e?.user||null},signIn:e=>e.provider?t.auth.signInWithOAuth({provider:e.provider}):e.token?t.auth.signInWithIdToken(e):t.auth.signInWithPassword(e),signUp:e=>t.auth.signUp(e),signOut:()=>t.auth.signOut(),onAuthStateChange:e=>{let{data:{subscription:r}}=t.auth.onAuthStateChange((n,o)=>e(n,o));return()=>r.unsubscribe()},select:async({from:e,select:r,params:n,...o})=>{let s=t.from(e).select(r||"*");return s=ei(s,n),s=wh(s,o),s},rpc:({from:e,params:r})=>t.rpc(e,r),insert:({from:e,data:r,select:n})=>t.from(e).insert(r).select(n||"*"),update:({from:e,data:r,params:n,select:o})=>{let s=t.from(e).update(r);return s=ei(s,n),s.select(o||"*")},upsert:({from:e,data:r,select:n})=>t.from(e).upsert(r).select(n||"*"),delete:({from:e,params:r})=>{let n=t.from(e).delete();return n=ei(n,r),n},subscribe:({from:e,params:r,on:n},o)=>{let s=n||"*",i=t.channel(`db-${e}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:e,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>t.removeChannel(i)},upload:({bucket:e,path:r,file:n,options:o})=>t.storage.from(e).upload(r,n,o),download:({bucket:e,path:r})=>t.storage.from(e).download(r),getPublicUrl:({bucket:e,path:r})=>t.storage.from(e).getPublicUrl(r)})});var hl={};Mt(hl,{restAdapter:()=>dl,setup:()=>Ch});var vh,pe,Ch,dl,ml=G(()=>{"use strict";vh=(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()},pe=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}},Ch=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return dl(t,e,r,n)},dl=(t,e={},r,n={})=>{let o=r?.token||null,s=l=>{let u={...e,...l};return o&&(u.Authorization=`Bearer ${o}`),u},i=l=>({...s(l),"Content-Type":"application/json"}),a=l=>({...n,...l}),c=(l,u)=>{let p=u||t;if(l&&(l.startsWith("http://")||l.startsWith("https://")))return l;let d=l&&!l.startsWith("/")?"/":"";return`${p}${d}${l||""}`};return{name:"rest",setToken:l=>{o=l},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let l=await pe(c(r.sessionUrl,r.baseUrl),a({headers:s()}));return l.error?null:l.data},signIn:async l=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let u=await pe(c(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(l)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await pe(c(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:l,params:u,select:p,limit:d,offset:h,order:m,single:x,headers:_,baseUrl:w})=>{let C={...u};return p&&(C.select=p),d&&(C.limit=d),h&&(C.offset=h),x&&(C.single=!0),m&&(typeof m=="string"?C.order=m:Array.isArray(m)?C.order=m.map(I=>`${I.by}:${I.asc===!1?"desc":"asc"}`).join(","):m.by&&(C.order=`${m.by}:${m.asc===!1?"desc":"asc"}`)),pe(vh(w||t,l||"",C),a({headers:s(_)}))},rpc:({from:l,params:u,headers:p,baseUrl:d})=>pe(c(`rpc/${l}`,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),insert:({from:l,data:u,headers:p,baseUrl:d})=>pe(c(l,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),update:({from:l,data:u,params:p,method:d,headers:h,baseUrl:m})=>{let x=p?.id||u?.id,_=x?`${l}/${x}`:l;return pe(c(_,m),a({method:d||"PATCH",headers:i(h),body:JSON.stringify(u)}))},delete:({from:l,params:u,headers:p,baseUrl:d})=>{let h=u?.id,m=h?`${l}/${h}`:l;return pe(c(m,d),a({method:"DELETE",headers:s(p)}))}}}});var yl={};Mt(yl,{localAdapter:()=>gl,setup:()=>kh});var ri,Eh,kh,gl,bl=G(()=>{"use strict";ri=(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},Eh=(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,f)=>c[i]<f[i]?a?-1:1:c[i]>f[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}},kh=async({data:t,...e})=>gl(t,e),gl=(t={},e={})=>{let r={},n={},o=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=l=>{if(!r[l])if(o)try{let u=localStorage.getItem(s+l);r[l]=u?JSON.parse(u):t[l]||[]}catch{r[l]=t[l]||[]}else r[l]=t[l]||[];return r[l]},a=l=>{if(o)try{localStorage.setItem(s+l,JSON.stringify(r[l]))}catch{}},c=(l,u,p,d)=>{let h=n[l];if(h)for(let m of h)m(p,d,{event:u,table:l})},f=Date.now();return{name:"local",store:r,select:async({from:l,params:u,...p})=>{let h=i(l).filter(m=>ri(m,u));return Eh(h,p)},insert:async({from:l,data:u})=>{let p=i(l),h=(Array.isArray(u)?u:[u]).map(m=>{let x={id:m.id||++f,...m};return p.push(x),x});a(l);for(let m of h)c(l,"INSERT",m,null);return{data:Array.isArray(u)?h:h[0],error:null}},update:async({from:l,data:u,params:p})=>{let d=i(l),h=[];for(let m=0;m<d.length;m++)if(ri(d[m],p)){let x={...d[m]};Object.assign(d[m],u),h.push(d[m]),c(l,"UPDATE",d[m],x)}return a(l),{data:h,error:null}},delete:async({from:l,params:u})=>{let p=i(l),d=[];for(let h=p.length-1;h>=0;h--)ri(p[h],u)&&(d.push(p[h]),p.splice(h,1),c(l,"DELETE",null,d[d.length-1]));return a(l),{data:d,error:null}},subscribe:({from:l,on:u},p)=>{n[l]||(n[l]=[]);let d=(h,m,x)=>{u&&u!=="*"&&u!==x.event||p(h,m,x)};return n[l].push(d),()=>{let h=n[l].indexOf(d);h>-1&&n[l].splice(h,1)}}}}});var Kr={};Mt(Kr,{createAdapter:()=>Th,default:()=>Bh,executeFetch:()=>Gr,fetchPlugin:()=>ci,initAdapterAuth:()=>Kn,parseDuration:()=>jr,queryClient:()=>Mh,registerAdapter:()=>Ah,resolveDb:()=>vl});var Oh,wl,Ah,Th,vl,jr,St,Cl,Wn,Rh,Wr,zr,Hr,ni,ii,Gn,Ih,xl,oi,El,kl,rr,Sl,Ph,_l,Nh,Ol,Al,Kn,ai,Pt,qr,Oe,Ht,de,Dh,Fh,$h,si,Lh,Gr,Mh,ci,Bh,Ae=G(()=>{"use strict";v();Oh=["select","rpc","insert","update","delete","subscribe"],wl={supabase:()=>Promise.resolve().then(()=>(pl(),ul)),rest:()=>Promise.resolve().then(()=>(ml(),hl)),local:()=>Promise.resolve().then(()=>(bl(),yl))},Ah=(t,e)=>{wl[t]=e},Th=t=>{let e={};for(let r of Oh)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},vl=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=wl[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},jr=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},St=new Map,Cl=new Map,Wn=new Map,Rh=t=>{if(t.cache?.key)return t.cache.key;let e=Nh(t.params);return`${t.from}:${t.method}:${JSON.stringify(e||"")}`},Wr=t=>St.get(t)||null,zr=(t,e,r)=>{let n=St.get(t),o={data:e,error:r,time:Date.now(),stale:!1};St.set(t,o);let s=Cl.get(t);if(s)for(let i of s)b(i)&&i(o);return o},Hr=t=>{if(t){let e=St.get(t);e&&(e.stale=!0);return}for(let[,e]of St)e.stale=!0},ni=t=>{if(t){St.delete(t);return}St.clear()},ii=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)}:y(t)?{staleTime:jr(t),gcTime:3e5}:{staleTime:jr(t.stale||t.staleTime)||6e4,gcTime:jr(t.gc||t.gcTime||t.expire)||3e5,key:t.key},Gn=null,Ih=()=>{Gn||(Gn=setInterval(()=>{let t=Date.now();for(let[e,r]of St){let n=Cl.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&St.delete(e)}},3e4),Gn.unref&&Gn.unref())};Ih();xl=3,oi=t=>Math.min(1e3*2**t,3e4),El=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:xl,delay:oi}:typeof e=="number"?{count:e,delay:oi}:{count:e.count??xl,delay:b(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:oi}},kl=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=b(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=b(n)?n(s,i):n;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},rr={focus:new Set,online:new Set},Sl=!1,Ph=()=>{if(Sl||typeof window>"u")return;Sl=!0;let t=()=>{for(let r of rr.focus)r()},e=()=>{for(let r of rr.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},_l=(t,e)=>{let r=e.__ref;if(t===!0)return{from:r.__state||e.key,method:"select",query:!0,on:"create"};if(y(t))return{from:t,method:"select",query:!0,on:"create"};if(g(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},Nh=t=>(!t||b(t),t),Ol=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},Al=(t,e,r)=>{let n;if(!t)n=void 0;else if(b(t))n=t(e,e.state);else{n={};for(let o in t){let s=t[o];n[o]=b(s)?s(e,e.state):s}}return n},Kn=async(t,e)=>{if(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{}t.onAuthStateChange&&t.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},ai=async(t,e)=>{if(b(t.select))return t.auth!==!1&&await Kn(t,e),t;if(t.__resolved)return t.auth!==!1&&await Kn(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=vl(t);let r=await t.__resolving;return t.__resolved=r,e.fetch=r,delete t.__resolving,t.auth!==!1&&await Kn(r,e),r},Pt=(t,e,...r)=>{let n=b(t[e])?t[e]:t.props&&b(t.props[e])?t.props[e]:null;n&&n.call(t,...r,t,t.state,t.context)},qr=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},Oe=(t,e,r,n={})=>{let o=r?{[r]:e}:e;t.state?.update&&t.state.update(o,{preventFetch:!0,...n})},Ht=(t,e)=>{let r=t.__ref;r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error},de=async(t,e,r,n={})=>{let o=r?.fetch;if(!o||t.enabled===!1||b(t.enabled)&&!t.enabled(e,e.state))return;let s=await ai(o,r);if(!s)return;let i=e.__ref,{from:a,method:c,query:f,params:l,cache:u,transform:p,single:d,auth:h,fields:m,as:x,limit:_,offset:w,order:C,headers:I,baseUrl:A,page:T,cursor:k,getNextPageParam:$,getPreviousPageParam:P,infinite:D,placeholderData:j,initialData:Z,select:tt,keepPreviousData:pt}=t,_t;if(f&&b(e.getQuery)){let Q=e.getQuery(s.name||"paths");Q&&(_t=Q.select||Q.length&&Q.join(",")||void 0)}let Lt=Al(l,e,r),Ir=ii(u),Go=El(t),st=Ir?u?.key||`${a}:${c}:${JSON.stringify(Lt||"")}${D?":infinite":""}${T?":p"+JSON.stringify(T):""}`:null;if(!i.__fetchInitialized&&st&&(i.__fetchInitialized=!0,Z!==void 0)){let Q=b(Z)?Z():Z;zr(st,Q,null)}if((c==="select"||c==="rpc")&&st&&Ir){let Q=Wr(st);if(Q&&!Q.error){let q=Date.now()-Q.time,ft=Q.stale||q>(Ir.staleTime||0),B=Q.data;if(tt&&(B=tt(B,e,e.state)),p&&(B=p(B,e,e.state)),Oe(e,B,x),!ft){Ht(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(j!==void 0){let q=b(j)?j(e,e.state):j;q!==void 0&&Oe(e,q,x)}}if(st&&Wn.has(st)&&!n.force){let Q=Wn.get(st);try{let q=await Q;if(q?.data!==void 0){let ft=q.data;tt&&(ft=tt(ft,e,e.state)),p&&(ft=p(ft,e,e.state)),Oe(e,ft,x),Pt(e,"onFetchComplete",ft)}}catch{}return}let Ko=!Wr(st)?.data;Ht(e,{isFetching:!0,isLoading:Ko,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Pt(e,"onFetchStart");let wc=kl(async()=>{if(h!==!1&&s.getSession){let B=await s.getSession();if(h===!0&&!B){let wt={message:"Not authenticated"};return Ht(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:wt,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",wt),{data:null,error:wt}}}let Q=s[c];if(!b(Q))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let q={from:a,select:_t,params:Lt,single:d,limit:_,offset:w,order:C,headers:I,baseUrl:A},ft=Ol(e,r);if(ft&&(q.headers={...q.headers,"Accept-Language":ft}),T!==void 0){if(g(T))T.offset!==void 0&&(q.offset=T.offset),T.limit!==void 0&&(q.limit=T.limit),T.cursor!==void 0&&(q.params={...q.params,cursor:T.cursor});else if(typeof T=="number"){let B=t.pageSize||_||20;q.offset=(T-1)*B,q.limit=B}}if(k!==void 0&&(q.params={...q.params,cursor:k}),c==="insert"||c==="update"||c==="upsert"){let B;if(m===!0||t.on==="submit")B=qr(e);else if(S(m)){let wt=qr(e);B={};for(let Xo of m)B[Xo]=wt[Xo]}else e.state?.parse?B=e.state.parse():g(e.state)&&(B={...e.state});p&&(B=p(B,e,e.state)),q.data=B}if(c==="rpc"){let B=Lt;if(t.on==="submit"){let wt=qr(e);B=t.transformParams?t.transformParams(wt,e,e.state):wt}q.params=B}if(c==="subscribe"){let B=s.subscribe({from:a,params:Lt,on:t.subscribeOn},(wt,Xo,YS)=>{Oe(e,wt,x),Pt(e,"onFetchComplete",wt)});return i.__unsubscribe=B,{data:null,error:null,subscribed:!0}}return Q(q)},Go);st&&Wn.set(st,wc);try{let Q=await wc;if(Q?.subscribed)return;let{data:q,error:ft}=Q||{};if(ft){st&&zr(st,null,ft),Ht(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ft,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",ft);return}if(q!==void 0){if((c==="select"||c==="rpc")&&st){let wt=zr(st,q,null);wt.gcTime=Ir?.gcTime||3e5}let B=q;D&&S(q)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(q):i.__pages.push(q),B=i.__pages.flat(),$&&(i.__nextPageParam=$(q,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),P&&(i.__prevPageParam=P(q,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),tt&&(B=tt(B,e,e.state)),p&&(B=p(B,e,e.state)),(!pt||B!==void 0)&&Oe(e,B,x),Ht(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Pt(e,"onFetchComplete",B)}}catch(Q){Ht(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Q,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",Q)}finally{st&&Wn.delete(st)}},Dh=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||de;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))},Fh=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),Ph();let o=t.refetchInterval;if(o){let s=typeof o=="number"?o:jr(o);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&de(t,e,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=Rh(t),a=Wr(i),c=ii(t.cache);(!a||a.stale||Date.now()-a.time>(c?.staleTime||0))&&de(t,e,r,{force:!0})};rr.focus.add(s),n.__fetchCleanups.push(()=>rr.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>de(t,e,r,{force:!0});rr.online.add(s),n.__fetchCleanups.push(()=>rr.online.delete(s))}},$h=(t,e,r)=>{if(!e.optimistic)return null;let n=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():g(t.state)?{...t.state}:t.state;n.__optimisticSnapshot=s;let i=b(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&Oe(t,i,o),s},si=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Oe(t,n,e.as),delete r.__optimisticSnapshot)},Lh=async(t,e,r)=>{let n=r?.fetch;if(!n)return;let o=await ai(n,r);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:f,as:l,on:u,auth:p,headers:d,baseUrl:h,invalidates:m,optimistic:x,onMutate:_,onSuccess:w,onError:C,onSettled:I}=t,A;if(c===!0||u==="submit")A=qr(e);else if(S(c)){let k=qr(e);A={};for(let $ of c)A[$]=k[$]}else e.state?.parse?A=e.state.parse():g(e.state)&&(A={...e.state});f&&(A=f(A,e,e.state)),b(_)&&_(A,e,e.state);let T=x?$h(e,t,A):null;s.__fetching=!0,Ht(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Pt(e,"onFetchStart");try{if(p!==!1&&o.getSession){let pt=await o.getSession();if(p===!0&&!pt){T!==void 0&&si(e,t),Pt(e,"onFetchError",{message:"Not authenticated"});return}}let k=o[i];if(!b(k))return;let $={from:a,data:A,headers:d,baseUrl:h};t.params&&($.params=Al(t.params,e,r));let P=Ol(e,r);P&&($.headers={...$.headers,"Accept-Language":P});let D=El(t),j=await kl(()=>k($),D),{data:Z,error:tt}=j||{};if(tt){T!==void 0&&si(e,t),Ht(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:tt,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",tt),b(C)&&C(tt,A,e),b(I)&&I(null,tt,A,e);return}if(delete s.__optimisticSnapshot,Z!==void 0){let pt=l?{[l]:Z}:Z;e.state?.update&&e.state.update(pt,{preventFetch:!0})}if(Ht(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Pt(e,"onFetchComplete",Z),b(w)&&w(Z,A,e),b(I)&&I(Z,null,A,e),m){let pt=S(m)?m:[m];for(let _t of pt)if(_t===!0||_t==="*")for(let[Lt]of St)Lt.startsWith(a+":")&&Hr(Lt);else Hr(_t)}}catch(k){T!==void 0&&si(e,t),Ht(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:k,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",k),b(C)&&C(k,A,e),b(I)&&I(null,k,A,e)}finally{s.__fetching=!1}},Gr=(t,e,r,n)=>{if(!t||!n?.fetch)return;let s=O(t,e);if(!s)return;let i=S(s)?s.map(c=>_l(O(c,e),e)).filter(Boolean):[_l(s,e)].filter(Boolean);for(let c of i){let f=c.method==="insert"||c.method==="update"||c.method==="upsert"||c.method==="delete",l=f?Lh:de;c.on==="create"?l(c,e,n):Promise.resolve().then(()=>{Dh({...c,__runner:l},e,n)}),!f&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&Fh(c,e,n)}let a=e.__ref;a.refetch=c=>{for(let f of i)de(f,e,n,{force:!0,...c})},a.fetchNextPage=()=>{let c=i[0];if(!c||!c.infinite)return;let f=a.__nextPageParam;if(f==null)return;let l={...c,cursor:f};de(l,e,n,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let c=i[0];if(!c||!c.infinite)return;let f=a.__prevPageParam;if(f==null)return;let l={...c,cursor:f};de(l,e,n,{direction:"previous",force:!0})}},Mh={invalidateQueries:t=>{if(!t){Hr();return}if(y(t))for(let[e]of St)(e.startsWith(t)||e.includes(t))&&Hr(e);else if(S(t)){let e=t.join(":");for(let[r]of St)r.includes(e)&&Hr(r)}},removeQueries:t=>{if(!t){ni();return}if(y(t))for(let[e]of St)(e.startsWith(t)||e.includes(t))&&ni(e)},getQueryData:t=>Wr(t)?.data??void 0,setQueryData:(t,e)=>{let r=Wr(t),n=b(e)?e(r?.data):e;zr(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let n=await ai(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(!b(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=zr(o,i.data,null);a.gcTime=ii(t.cache)?.gcTime||3e5}return i},getCache:()=>St,clear:()=>ni()},ci={name:"fetch",create(t){let e=t.fetch||t.props?.fetch;e&&Gr(e,t,t.state,t.context)}},Bh=Gr});function fi(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 ui(t){let e=this,{parent:r}=e;if(b(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 pi(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(b(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 di(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(b(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 Yn(t={}){let e=this;if(e.node?.style){for(let r in t){let n=t[r],o=e[r];g(n)&&o?Yn.call(o,n):e.node.style[r]=n}return e}}function hi(t){let e=this;if(W("beforeRemove",e,t)===!1)return e;b(e.node.remove)?e.node.remove():Ge()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=es(e.parent.__ref.__children,e.key)),W("remove",e,t)}function Uh(t){return this[t]}function mi(t,e){let r=this;if(!(!t||!r.props))return r.update({props:t},e),r}function gi(t){return t?this.__ref&&this.__ref[t]:this.__ref}function Vh(){return this.getRef("__children").map(e=>this[e])}function yi(){return this.getRef().path}function bi(t){let e=null,r=n=>n.__element&&n.root?.isRootState;if(!this)e=window.platformState||window.smblsApp?.state;else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=b(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=window.platformState||window.smblsApp?.state),t?e?.[t]:e}function xi(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function Si(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function _i(t){let e=this.getRoot()?.context;return t?e[t]:e}function wi(t){let e=this.context;return t?e[t]:e}function Xn(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||He.has(r)&&!os.has(r)||e.push(r);return e}function Qn(t=[]){let e=this,r={},n=Xn.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 f=b(c&&c.parse)?c.parse():c;r[a]=b(f)?f:JSON.parse(JSON.stringify(f||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:f,update:l,...u}=e[a];r[a]=u}else Ot(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function Yr(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let n=Qn.call(r,t),o=t.length?new Set(t):null;for(let s in n){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=n[s];Array.isArray(i)?n[s]=i.map(a=>N(a)?Yr.call(a,t,e):a):N(i)&&(n[s]=Yr.call(i,t,e))}return n}function Jn(...t){if(he!=="test"&&he!=="development")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(n=>console.log(`%c${n}:
11
+ `,"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 vi(...t){(he==="test"||he==="development")&&console.log(...t)}function Ci(...t){(he==="test"||he==="development")&&console.warn(...t)}function Xr(...t){if(he==="test"||he==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&Jn.call(this),new Error(...t)}}function Ei(){let t=this,{key:e,parent:r}=t,{__children:n}=r.__ref,o=n.indexOf(e),s=n[o+1];return r[s]}function ki(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 Oi(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,z(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 Ai(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=>{Xr.call(this,s)}),o}catch(o){if(Xr.call(this,o),r?.strictMode)throw o}}async function Ti(){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(()=>(Ae(),Kr));await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ae(),Kr));await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=Promise.resolve().then(()=>(Ae(),Kr)).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(()=>(Ae(),Kr));await o(n,t.context)}return n}function Ri(t){let e=this,r=t||ut.useStateQuery||e.context?.useStateQuery;if(!r)return null;let n={};if(li(e,n),r===!0)return n;let o=Xh[r];return o?o(n):n}function qt(t,e){return!!(Dn.has(t)||e?.context?.methods?.[t])}var he,jh,li,zh,Tl,Hh,qh,Wh,Gh,Kh,Yh,Xh,Ii=G(()=>{Zs();We();xt();ae();Ss();ze();ti();he=process.env.NODE_ENV;jh=(t,e,r,n)=>Object.defineProperty(t,e,{get:r,set:n});li=(t,e)=>{let r=t.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&zh(e,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&li(c,e)}let s=r.contentElementKey||"content",i=t[s];i&&i.__ref&&li(i,e)},zh=(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])}},Tl=(t,e=0)=>{let r=" ".repeat(e),n=Object.entries(t);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {
12
12
  ${Tl(i,e+1)}
13
13
  ${r}}`).join(`
14
14
  `):""},Hh=t=>`{
@@ -16,21 +16,21 @@ ${Tl(t,1)}
16
16
  }`,qh=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},Wh=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let f=e(s[c]),l=[];f.select&&l.push(`$select=${f.select}`),f.expand&&l.push(`$expand=${f.expand}`),a.push(l.length?`${c}(${l.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("&")},Gh=(t,e)=>{let r=[],n=[],o=new Set,s=(l,u,p)=>{o.add(u),p&&n.push(`LEFT JOIN ${u} ON ${u}.${p}_id = ${p}.id`);for(let d in l)l[d]===!0?r.push(`${u}.${d}`):s(l[d],d,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(", "):"*",f=n.length?`
17
17
  `+n.join(`
18
18
  `):"";return`SELECT ${c}
19
- FROM ${a}${f}`},Kh=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},Yh=t=>{let e=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${e(n[s])})`);return o.join(", ")},r=Object.keys(t);return r.length===1&&t[r[0]]!==!0?{from:r[0],select:e(t[r[0]])}:{from:null,select:e(t)}},Xh={graphql:Hh,"json-api":qh,odata:Wh,sql:Gh,supabase:Yh,paths:Kh}});var Qh,Pi,Rl=G(()=>{Dn();Qh={snapshotId:ys},Pi=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=Qh.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var v=G(()=>{Dn();xs();xt();ae();$n();ze();Nr();Rc();Ic();$r();Pr();Pc();Ss();Is();zs();Un();il();al();We();cl();Ii();Zs();Rl();Js()});v();v();var zw=["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"],Ni={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"]},Jh=["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"],Pl=(t,e)=>{if(Object.prototype.hasOwnProperty.call(Ni,t)){let r=Ni[t];return r.includes(e)||r.includes("default")}else return Ni.default.includes(e)},Zh=t=>{if(!b(t))return!1;let e=t.toLowerCase();return Jh.includes(e)},Nl=(t,e,r)=>{let n={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(r&&o in r)continue;let s=Pl(t,o),i=Zh(o);Ot(e[o])&&(s||i)&&(n[o]=e[o])}return n},Hw=(t,e)=>{let r={};if(t.attr)for(let n in t.attr)r[n]=t.attr[n](e,e.state,e.context);return r},Wt=(t,e)=>{let r=t.call("exec",e,t);if(r)return b(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},Il={src:t=>Wt(t,t.props.src),href:t=>Wt(t,t.props.href),action:t=>Wt(t,t.props.action),poster:t=>Wt(t,t.props.poster),data:t=>Wt(t,t.props.data)},qw=t=>{let e=t.tag||"div",{props:r}=t,n={};for(let o in Il)if(r[o]!==void 0&&Pl(e,o)){let s=Il[o](t);s!==void 0&&(n[o]=s)}return n};v();v();var tm=!1;function em(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function rm(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Dl=(function(){function t(r){var n=this;this._insertTag=function(o){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,s),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!tm:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(rm(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=em(o);try{s.insertRule(n,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},t})();var lt="-ms-",Xr="-moz-",H="-webkit-",Jn="comm",nr="rule",or="decl";var Fl="@import";var Zn="@keyframes";var $l="@layer";var Ll=Math.abs,Te=String.fromCharCode,Ml=Object.assign;function Bl(t,e){return et(t,0)^45?(((e<<2^et(t,0))<<2^et(t,1))<<2^et(t,2))<<2^et(t,3):0}function to(t){return t.trim()}function Di(t,e){return(t=e.exec(t))?t[0]:t}function M(t,e,r){return t.replace(e,r)}function Qr(t,e){return t.indexOf(e)}function et(t,e){return t.charCodeAt(e)|0}function me(t,e,r){return t.slice(e,r)}function dt(t){return t.length}function sr(t){return t.length}function ir(t,e){return e.push(t),t}function Fi(t,e){return t.map(e).join("")}var eo=1,ar=1,Ul=0,ht=0,rt=0,lr="";function Jr(t,e,r,n,o,s,i){return{value:t,root:e,parent:r,type:n,props:o,children:s,line:eo,column:ar,length:i,return:""}}function fr(t,e){return Ml(Jr("",null,null,"",null,null,0),t,{length:-t.length},e)}function Vl(){return rt}function jl(){return rt=ht>0?et(lr,--ht):0,ar--,rt===10&&(ar=1,eo--),rt}function mt(){return rt=ht<Ul?et(lr,ht++):0,ar++,rt===10&&(ar=1,eo++),rt}function Nt(){return et(lr,ht)}function Zr(){return ht}function ur(t,e){return me(lr,t,e)}function cr(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ro(t){return eo=ar=1,Ul=dt(lr=t),ht=0,[]}function no(t){return lr="",t}function pr(t){return to(ur(ht-1,$i(t===91?t+2:t===40?t+1:t)))}function zl(t){for(;(rt=Nt())&&rt<33;)mt();return cr(t)>2||cr(rt)>3?"":" "}function Hl(t,e){for(;--e&&mt()&&!(rt<48||rt>102||rt>57&&rt<65||rt>70&&rt<97););return ur(t,Zr()+(e<6&&Nt()==32&&mt()==32))}function $i(t){for(;mt();)switch(rt){case t:return ht;case 34:case 39:t!==34&&t!==39&&$i(rt);break;case 40:t===41&&$i(t);break;case 92:mt();break}return ht}function ql(t,e){for(;mt()&&t+rt!==57;)if(t+rt===84&&Nt()===47)break;return"/*"+ur(e,ht-1)+"*"+Te(t===47?t:mt())}function Wl(t){for(;!cr(Nt());)mt();return ur(t,ht)}function Yl(t){return no(oo("",null,null,null,[""],t=ro(t),0,[0],t))}function oo(t,e,r,n,o,s,i,a,c){for(var f=0,l=0,u=i,p=0,d=0,h=0,m=1,x=1,_=1,w=0,C="",I=o,A=s,T=n,k=C;x;)switch(h=w,w=mt()){case 40:if(h!=108&&et(k,u-1)==58){Qr(k+=M(pr(w),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:k+=pr(w);break;case 9:case 10:case 13:case 32:k+=zl(h);break;case 92:k+=Hl(Zr()-1,7);continue;case 47:switch(Nt()){case 42:case 47:ir(nm(ql(mt(),Zr()),e,r),c);break;default:k+="/"}break;case 123*m:a[f++]=dt(k)*_;case 125*m:case 59:case 0:switch(w){case 0:case 125:x=0;case 59+l:_==-1&&(k=M(k,/\f/g,"")),d>0&&dt(k)-u&&ir(d>32?Kl(k+";",n,r,u-1):Kl(M(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(ir(T=Gl(k,e,r,f,l,o,a,C,I=[],A=[],u),s),w===123)if(l===0)oo(k,e,T,T,I,s,u,a,A);else switch(p===99&&et(k,3)===110?100:p){case 100:case 108:case 109:case 115:oo(t,T,T,n&&ir(Gl(t,T,T,0,0,o,a,C,o,I=[],u),A),o,A,u,a,n?I:A);break;default:oo(k,T,T,T,[""],A,0,a,A)}}f=l=d=0,m=_=1,C=k="",u=i;break;case 58:u=1+dt(k),d=h;default:if(m<1){if(w==123)--m;else if(w==125&&m++==0&&jl()==125)continue}switch(k+=Te(w),w*m){case 38:_=l>0?1:(k+="\f",-1);break;case 44:a[f++]=(dt(k)-1)*_,_=1;break;case 64:Nt()===45&&(k+=pr(mt())),p=Nt(),l=u=dt(C=k+=Wl(Zr())),w++;break;case 45:h===45&&dt(k)==2&&(m=0)}}return s}function Gl(t,e,r,n,o,s,i,a,c,f,l){for(var u=o-1,p=o===0?s:[""],d=sr(p),h=0,m=0,x=0;h<n;++h)for(var _=0,w=me(t,u+1,u=Ll(m=i[h])),C=t;_<d;++_)(C=to(m>0?p[_]+" "+w:M(w,/&\f/g,p[_])))&&(c[x++]=C);return Jr(t,e,r,o===0?nr:a,c,f,l)}function nm(t,e,r){return Jr(t,e,r,Jn,Te(Vl()),me(t,2,-2),0)}function Kl(t,e,r,n){return Jr(t,e,r,or,me(t,0,n),me(t,n+1,-1),n)}function Re(t,e){for(var r="",n=sr(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function Xl(t,e,r,n){switch(t.type){case $l:if(t.children.length)break;case Fl:case or:return t.return=t.return||t.value;case Jn:return"";case Zn:return t.return=t.value+"{"+Re(t.children,n)+"}";case nr:t.value=t.props.join(",")}return dt(r=Re(t.children,n))?t.return=t.value+"{"+r+"}":""}function Ql(t){var e=sr(t);return function(r,n,o,s){for(var i="",a=0;a<e;a++)i+=t[a](r,n,o,s)||"";return i}}function Jl(t){return function(e){e.root||(e=e.return)&&t(e)}}function Zl(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var om=function(e,r,n){for(var o=0,s=0;o=s,s=Nt(),o===38&&s===12&&(r[n]=1),!cr(s);)mt();return ur(e,ht)},sm=function(e,r){var n=-1,o=44;do switch(cr(o)){case 0:o===38&&Nt()===12&&(r[n]=1),e[n]+=om(ht-1,r,n);break;case 2:e[n]+=pr(o);break;case 4:if(o===44){e[++n]=Nt()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=Te(o)}while(o=mt());return e},im=function(e,r){return no(sm(ro(e),r))},tf=new WeakMap,am=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!tf.get(n))&&!o){tf.set(e,!0);for(var s=[],i=im(r,s),a=n.props,c=0,f=0;c<i.length;c++)for(var l=0;l<a.length;l++,f++)e.props[f]=s[c]?i[c].replace(/&\f/g,a[l]):a[l]+" "+i[c]}}},cm=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};function ef(t,e){switch(Bl(t,e)){case 5103:return H+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return H+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return H+t+Xr+t+lt+t+t;case 6828:case 4268:return H+t+lt+t+t;case 6165:return H+t+lt+"flex-"+t+t;case 5187:return H+t+M(t,/(\w+).+(:[^]+)/,H+"box-$1$2"+lt+"flex-$1$2")+t;case 5443:return H+t+lt+"flex-item-"+M(t,/flex-|-self/,"")+t;case 4675:return H+t+lt+"flex-line-pack"+M(t,/align-content|flex-|-self/,"")+t;case 5548:return H+t+lt+M(t,"shrink","negative")+t;case 5292:return H+t+lt+M(t,"basis","preferred-size")+t;case 6060:return H+"box-"+M(t,"-grow","")+H+t+lt+M(t,"grow","positive")+t;case 4554:return H+M(t,/([^-])(transform)/g,"$1"+H+"$2")+t;case 6187:return M(M(M(t,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),t,"")+t;case 5495:case 3959:return M(t,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return M(M(t,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+lt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+t+t;case 4095:case 3583:case 4068:case 2532:return M(t,/(.+)-inline(.+)/,H+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dt(t)-1-e>6)switch(et(t,e+1)){case 109:if(et(t,e+4)!==45)break;case 102:return M(t,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+Xr+(et(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Qr(t,"stretch")?ef(M(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(et(t,e+1)!==115)break;case 6444:switch(et(t,dt(t)-3-(~Qr(t,"!important")&&10))){case 107:return M(t,":",":"+H)+t;case 101:return M(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(et(t,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+lt+"$2box$3")+t}break;case 5936:switch(et(t,e+11)){case 114:return H+t+lt+M(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return H+t+lt+M(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return H+t+lt+M(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return H+t+lt+t+t}return t}var lm=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case or:e.return=ef(e.value,e.length);break;case Zn:return Re([fr(e,{value:M(e.value,"@","@"+H)})],o);case nr:if(e.length)return Fi(e.props,function(s){switch(Di(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Re([fr(e,{props:[M(s,/:(read-\w+)/,":"+Xr+"$1")]})],o);case"::placeholder":return Re([fr(e,{props:[M(s,/:(plac\w+)/,":"+H+"input-$1")]}),fr(e,{props:[M(s,/:(plac\w+)/,":"+Xr+"$1")]}),fr(e,{props:[M(s,/:(plac\w+)/,lt+"input-$1")]})],o)}return""})}},fm=[lm],rf=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var x=m.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=e.stylisPlugins||fm,s={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var x=m.getAttribute("data-emotion").split(" "),_=1;_<x.length;_++)s[x[_]]=!0;a.push(m)});var c,f=[am,cm];{var l,u=[Xl,Jl(function(m){l.insert(m)})],p=Ql(f.concat(o,u)),d=function(x){return Re(Yl(x),p)};c=function(x,_,w,C){l=w,d(x?x+"{"+_.styles+"}":_.styles),C&&(h.inserted[_.name]=!0)}}var h={key:r,sheet:new Dl({key:r,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:c};return h.sheet.hydrate(a),h};function nf(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var of={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var um=!1,pm=/[A-Z]|^ms/g,dm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lf=function(e){return e.charCodeAt(1)===45},sf=function(e){return e!=null&&typeof e!="boolean"},Li=Zl(function(t){return lf(t)?t:t.replace(pm,"-$&").toLowerCase()}),af=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(dm,function(n,o,s){return Gt={name:o,styles:s,next:Gt},o})}return of[e]!==1&&!lf(e)&&typeof r=="number"&&r!==0?r+"px":r},hm="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function tn(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Gt={name:o.name,styles:o.styles,next:Gt},o.name;var s=r;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)Gt={name:i.name,styles:i.styles,next:Gt},i=i.next;var a=s.styles+";";return a}return mm(t,e,r)}case"function":{if(t!==void 0){var c=Gt,f=r(t);return Gt=c,tn(t,e,f)}break}}var l=r;if(e==null)return l;var u=e[l];return u!==void 0?u:l}function mm(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=tn(t,e,r[o])+";";else for(var s in r){var i=r[s];if(typeof i!="object"){var a=i;e!=null&&e[a]!==void 0?n+=s+"{"+e[a]+"}":sf(a)&&(n+=Li(s)+":"+af(s,a)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&um)throw new Error(hm);if(Array.isArray(i)&&typeof i[0]=="string"&&(e==null||e[i[0]]===void 0))for(var c=0;c<i.length;c++)sf(i[c])&&(n+=Li(s)+":"+af(s,i[c])+";");else{var f=tn(t,e,i);switch(s){case"animation":case"animationName":{n+=Li(s)+":"+f+";";break}default:n+=s+"{"+f+"}"}}}}return n}var cf=/label:\s*([^\s;{]+)\s*(;|$)/g,Gt;function so(t,e,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,o="";Gt=void 0;var s=t[0];if(s==null||s.raw===void 0)n=!1,o+=tn(r,e,s);else{var i=s;o+=i[0]}for(var a=1;a<t.length;a++)if(o+=tn(r,e,t[a]),n){var c=s;o+=c[a]}cf.lastIndex=0;for(var f="",l;(l=cf.exec(o))!==null;)f+="-"+l[1];var u=nf(o)+f;return{name:u,styles:o,next:Gt}}var gm=!0;function Mi(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(n+=o+" ")}),n}var ym=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||gm===!1)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},ff=function(e,r,n){ym(e,r,n);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var s=r;do e.insert(r===s?"."+o:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function uf(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function pf(t,e,r){var n=[],o=Mi(t,n,r);return n.length<2?r:o+e(n)}var Bi=function(e){var r=rf(e);r.sheet.speedy=function(a){this.isSpeedy=a},r.compat=!0;var n=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=so(f,r.registered,void 0);return ff(r,u,!1),r.key+"-"+u.name},o=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=so(f,r.registered),p="animation-"+u.name;return uf(r,{name:u.name,styles:"@keyframes "+p+"{"+u.styles+"}"}),p},s=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=so(f,r.registered);uf(r,u)},i=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];return pf(r.registered,n,bm(f))};return{css:n,cx:i,injectGlobal:s,keyframes:o,hydrate:function(c){c.forEach(function(f){r.inserted[f]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:Mi.bind(null,r.registered),merge:pf.bind(null,r.registered,n)}},bm=function t(e){for(var r="",n=0;n<e.length;n++){var o=e[n];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=t(o);else{s="";for(var i in o)o[i]&&i&&(s&&(s+=" "),s+=i)}break}default:s=o}s&&(r&&(r+=" "),r+=s)}}return r};v();v();var xm=/\s+/g,kv=t=>{let{key:e}=t;t.classlist===!0?t.classlist=e:!t.classlist&&typeof e=="string"&&e.charCodeAt(0)===95&&e.charCodeAt(1)!==95&&(t.classlist=e.slice(1))},Sm=(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+=` ${O(o,e)}`)}return r},_m=(t,e)=>{if(!t)return;let{key:r}=e;return t===!0&&(t=e.classlist={key:r}),b(t)&&(t=e.classlist={default:t}),g(t)&&(t=Sm(t,e)),t.replace(xm," ").trim()},Ui=(t,e,r)=>{let n=_m(t,e);if(r&&typeof r.setAttribute=="function")r.setAttribute("class",n);else if(r)try{r.className=n}catch{}return n};function Ov(t,e,r){Ui(t,e,r)}var wm=(t="smbls",e)=>{let r=t.replaceAll(/\./g,"-");return Bi({key:r,container:e})},Ct=wm(),vm=t=>(e,r,n)=>{let o=O(e,r);if(e){let{__ref:s}=r;s.__class.style=o}df(t)(r.classlist,r,r.state,!0)},df=t=>(e,r,n,o)=>{if(r.style&&!o)return;let{__ref:s}=r,{__class:i,__classNames:a}=s;if(N(e)){r.props.class&&(a.classProps=r.props.class),r.attr?.class&&(a.class=r.attr.class);for(let c in i){let f=i[c];if(!f){delete a[c];continue}let l;b(f)||ct(f)?l=f:Rn(f)?l=r.key:l=t.css(f),a[c]=l}for(let c in a)c==="classProps"||c==="class"||i[c]===void 0&&delete a[c];r.node&&Ui(a,r,r.node)}},hf=(t,e)=>(t||(t=Bi(e||{key:"smbls"})),{style:vm(t),classlist:df(t)});var br={};Mt(br,{CSS_NATIVE_COLOR_REGEX:()=>Zt,CSS_UNITS:()=>rn,applyMediaSequenceVars:()=>yr,applySequenceGlobalVars:()=>ra,applySequenceVars:()=>$e,changeLightness:()=>Tm,colorStringToRgbaArray:()=>ge,convertSvgToSymbol:()=>na,findHeadingLetter:()=>Af,findHeadings:()=>ea,generateSequence:()=>Kt,generateSequencePosition:()=>Lg,generateSprite:()=>uo,generateSubSequence:()=>Zi,getColorShade:()=>xf,getDefaultOrFirstKey:()=>on,getFnPrefixAndValue:()=>Fe,getFontFace:()=>Pm,getFontFaceEach:()=>sn,getFontFaceEachString:()=>vf,getFontFaceString:()=>ji,getFontFormat:()=>_f,getRgbTone:()=>nn,getSequenceValue:()=>ta,getSequenceValueBySymbols:()=>Of,getSequenceValuePropertyPair:()=>be,getSubratio:()=>Ji,getSubratioDifference:()=>Qi,hexToRgb:()=>Em,hexToRgbArray:()=>mf,hexToRgba:()=>Om,hslToRgb:()=>bf,isCSSVar:()=>nt,isGoogleFontsUrl:()=>ao,isResolvedColor:()=>ye,isScalingUnit:()=>en,mixTwoColors:()=>Cm,mixTwoRgb:()=>Am,mixTwoRgba:()=>Sf,numToLetterMap:()=>De,opacify:()=>io,parseColorToken:()=>dr,resolveFileUrl:()=>Ie,returnSubThemeOrDefault:()=>Im,rgbArrayToHex:()=>gf,rgbToHSL:()=>yf,rgbToHex:()=>km,setCustomFont:()=>Vi,setCustomFontMedia:()=>mr,setFontImport:()=>co,setInCustomFontMedia:()=>wf,setScalingVar:()=>Xi,setSubScalingVar:()=>kf,setVariables:()=>Mg,splitTopLevelCommas:()=>hr});var en=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",rn=["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"];v();var ge=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&&L&&F){let e=L.body.appendChild(L.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){L.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return L.body.removeChild(e),[0,0,0,0];t=F.getComputedStyle(e).color,L.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]},Cm=(t,e,r=.5)=>(t=ge(t),e=ge(e),Sf(t,e,r)),Em=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},mf=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},km=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),gf=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),Om=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},Am=(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})`},Tm=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},yf=(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]},bf=(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)],xf=(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)},Sf=(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})`},io=(t,e)=>{let r=ge(t);if(!r){Mr()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},nt=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Zt=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,Rm=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,dr=t=>{if(!b(t))return null;if(Zt.test(t))return{passthrough:t};if(nt(t))return{cssVar:t};let e=t.match(Rm);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}},ye=t=>b(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),hr=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},nn=(t,e)=>{b(t)&&t.includes("rgb")&&(t=ge(t).join(", ")),b(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),ct(e)&&(e+="");let r=gf(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=xf(r,parseFloat(e));return mf(o).join(", ")}else{let[o,s,i]=t,a=yf(o,s,i),[c,f,l]=a;return bf(c,f,parseFloat(e)/100*255)}};var Im=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Ie=(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},on=(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},_f=t=>{let e=t.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(e)?e:null},ao=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),co=t=>`@import url('${t}');`,wf=t=>`@font-face { ${t} }`,Vi=(t,e,r,n={})=>{let o=_f(e),s=o?` format('${o}')`:"";return`
19
+ FROM ${a}${f}`},Kh=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},Yh=t=>{let e=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${e(n[s])})`);return o.join(", ")},r=Object.keys(t);return r.length===1&&t[r[0]]!==!0?{from:r[0],select:e(t[r[0]])}:{from:null,select:e(t)}},Xh={graphql:Hh,"json-api":qh,odata:Wh,sql:Gh,supabase:Yh,paths:Kh}});var Qh,Pi,Rl=G(()=>{Fn();Qh={snapshotId:bs},Pi=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=Qh.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var v=G(()=>{Fn();Ss();xt();ae();Ln();ze();Nr();Rc();Ic();$r();Pr();Pc();_s();Ps();Hs();Vn();il();al();We();cl();Ii();ti();Rl();Zs()});v();v();var zw=["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"],Ni={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"]},Jh=["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"],Pl=(t,e)=>{if(Object.prototype.hasOwnProperty.call(Ni,t)){let r=Ni[t];return r.includes(e)||r.includes("default")}else return Ni.default.includes(e)},Zh=t=>{if(!y(t))return!1;let e=t.toLowerCase();return Jh.includes(e)},Nl=(t,e,r)=>{let n={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(r&&o in r)continue;let s=Pl(t,o),i=Zh(o);Ot(e[o])&&(s||i)&&(n[o]=e[o])}return n},Hw=(t,e)=>{let r={};if(t.attr)for(let n in t.attr)r[n]=t.attr[n](e,e.state,e.context);return r},Wt=(t,e)=>{let r=t.call("exec",e,t);if(r)return y(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},Il={src:t=>Wt(t,t.props.src),href:t=>Wt(t,t.props.href),action:t=>Wt(t,t.props.action),poster:t=>Wt(t,t.props.poster),data:t=>Wt(t,t.props.data)},qw=t=>{let e=t.tag||"div",{props:r}=t,n={};for(let o in Il)if(r[o]!==void 0&&Pl(e,o)){let s=Il[o](t);s!==void 0&&(n[o]=s)}return n};v();v();var tm=!1;function em(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function rm(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Dl=(function(){function t(r){var n=this;this._insertTag=function(o){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,s),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!tm:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(rm(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=em(o);try{s.insertRule(n,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},t})();var lt="-ms-",Qr="-moz-",H="-webkit-",Zn="comm",nr="rule",or="decl";var Fl="@import";var to="@keyframes";var $l="@layer";var Ll=Math.abs,Te=String.fromCharCode,Ml=Object.assign;function Bl(t,e){return et(t,0)^45?(((e<<2^et(t,0))<<2^et(t,1))<<2^et(t,2))<<2^et(t,3):0}function eo(t){return t.trim()}function Di(t,e){return(t=e.exec(t))?t[0]:t}function M(t,e,r){return t.replace(e,r)}function Jr(t,e){return t.indexOf(e)}function et(t,e){return t.charCodeAt(e)|0}function me(t,e,r){return t.slice(e,r)}function dt(t){return t.length}function sr(t){return t.length}function ir(t,e){return e.push(t),t}function Fi(t,e){return t.map(e).join("")}var ro=1,ar=1,Ul=0,ht=0,rt=0,lr="";function Zr(t,e,r,n,o,s,i){return{value:t,root:e,parent:r,type:n,props:o,children:s,line:ro,column:ar,length:i,return:""}}function fr(t,e){return Ml(Zr("",null,null,"",null,null,0),t,{length:-t.length},e)}function Vl(){return rt}function jl(){return rt=ht>0?et(lr,--ht):0,ar--,rt===10&&(ar=1,ro--),rt}function mt(){return rt=ht<Ul?et(lr,ht++):0,ar++,rt===10&&(ar=1,ro++),rt}function Nt(){return et(lr,ht)}function tn(){return ht}function ur(t,e){return me(lr,t,e)}function cr(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function no(t){return ro=ar=1,Ul=dt(lr=t),ht=0,[]}function oo(t){return lr="",t}function pr(t){return eo(ur(ht-1,$i(t===91?t+2:t===40?t+1:t)))}function zl(t){for(;(rt=Nt())&&rt<33;)mt();return cr(t)>2||cr(rt)>3?"":" "}function Hl(t,e){for(;--e&&mt()&&!(rt<48||rt>102||rt>57&&rt<65||rt>70&&rt<97););return ur(t,tn()+(e<6&&Nt()==32&&mt()==32))}function $i(t){for(;mt();)switch(rt){case t:return ht;case 34:case 39:t!==34&&t!==39&&$i(rt);break;case 40:t===41&&$i(t);break;case 92:mt();break}return ht}function ql(t,e){for(;mt()&&t+rt!==57;)if(t+rt===84&&Nt()===47)break;return"/*"+ur(e,ht-1)+"*"+Te(t===47?t:mt())}function Wl(t){for(;!cr(Nt());)mt();return ur(t,ht)}function Yl(t){return oo(so("",null,null,null,[""],t=no(t),0,[0],t))}function so(t,e,r,n,o,s,i,a,c){for(var f=0,l=0,u=i,p=0,d=0,h=0,m=1,x=1,_=1,w=0,C="",I=o,A=s,T=n,k=C;x;)switch(h=w,w=mt()){case 40:if(h!=108&&et(k,u-1)==58){Jr(k+=M(pr(w),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:k+=pr(w);break;case 9:case 10:case 13:case 32:k+=zl(h);break;case 92:k+=Hl(tn()-1,7);continue;case 47:switch(Nt()){case 42:case 47:ir(nm(ql(mt(),tn()),e,r),c);break;default:k+="/"}break;case 123*m:a[f++]=dt(k)*_;case 125*m:case 59:case 0:switch(w){case 0:case 125:x=0;case 59+l:_==-1&&(k=M(k,/\f/g,"")),d>0&&dt(k)-u&&ir(d>32?Kl(k+";",n,r,u-1):Kl(M(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(ir(T=Gl(k,e,r,f,l,o,a,C,I=[],A=[],u),s),w===123)if(l===0)so(k,e,T,T,I,s,u,a,A);else switch(p===99&&et(k,3)===110?100:p){case 100:case 108:case 109:case 115:so(t,T,T,n&&ir(Gl(t,T,T,0,0,o,a,C,o,I=[],u),A),o,A,u,a,n?I:A);break;default:so(k,T,T,T,[""],A,0,a,A)}}f=l=d=0,m=_=1,C=k="",u=i;break;case 58:u=1+dt(k),d=h;default:if(m<1){if(w==123)--m;else if(w==125&&m++==0&&jl()==125)continue}switch(k+=Te(w),w*m){case 38:_=l>0?1:(k+="\f",-1);break;case 44:a[f++]=(dt(k)-1)*_,_=1;break;case 64:Nt()===45&&(k+=pr(mt())),p=Nt(),l=u=dt(C=k+=Wl(tn())),w++;break;case 45:h===45&&dt(k)==2&&(m=0)}}return s}function Gl(t,e,r,n,o,s,i,a,c,f,l){for(var u=o-1,p=o===0?s:[""],d=sr(p),h=0,m=0,x=0;h<n;++h)for(var _=0,w=me(t,u+1,u=Ll(m=i[h])),C=t;_<d;++_)(C=eo(m>0?p[_]+" "+w:M(w,/&\f/g,p[_])))&&(c[x++]=C);return Zr(t,e,r,o===0?nr:a,c,f,l)}function nm(t,e,r){return Zr(t,e,r,Zn,Te(Vl()),me(t,2,-2),0)}function Kl(t,e,r,n){return Zr(t,e,r,or,me(t,0,n),me(t,n+1,-1),n)}function Re(t,e){for(var r="",n=sr(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function Xl(t,e,r,n){switch(t.type){case $l:if(t.children.length)break;case Fl:case or:return t.return=t.return||t.value;case Zn:return"";case to:return t.return=t.value+"{"+Re(t.children,n)+"}";case nr:t.value=t.props.join(",")}return dt(r=Re(t.children,n))?t.return=t.value+"{"+r+"}":""}function Ql(t){var e=sr(t);return function(r,n,o,s){for(var i="",a=0;a<e;a++)i+=t[a](r,n,o,s)||"";return i}}function Jl(t){return function(e){e.root||(e=e.return)&&t(e)}}function Zl(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var om=function(e,r,n){for(var o=0,s=0;o=s,s=Nt(),o===38&&s===12&&(r[n]=1),!cr(s);)mt();return ur(e,ht)},sm=function(e,r){var n=-1,o=44;do switch(cr(o)){case 0:o===38&&Nt()===12&&(r[n]=1),e[n]+=om(ht-1,r,n);break;case 2:e[n]+=pr(o);break;case 4:if(o===44){e[++n]=Nt()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=Te(o)}while(o=mt());return e},im=function(e,r){return oo(sm(no(e),r))},tf=new WeakMap,am=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!tf.get(n))&&!o){tf.set(e,!0);for(var s=[],i=im(r,s),a=n.props,c=0,f=0;c<i.length;c++)for(var l=0;l<a.length;l++,f++)e.props[f]=s[c]?i[c].replace(/&\f/g,a[l]):a[l]+" "+i[c]}}},cm=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};function ef(t,e){switch(Bl(t,e)){case 5103:return H+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return H+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return H+t+Qr+t+lt+t+t;case 6828:case 4268:return H+t+lt+t+t;case 6165:return H+t+lt+"flex-"+t+t;case 5187:return H+t+M(t,/(\w+).+(:[^]+)/,H+"box-$1$2"+lt+"flex-$1$2")+t;case 5443:return H+t+lt+"flex-item-"+M(t,/flex-|-self/,"")+t;case 4675:return H+t+lt+"flex-line-pack"+M(t,/align-content|flex-|-self/,"")+t;case 5548:return H+t+lt+M(t,"shrink","negative")+t;case 5292:return H+t+lt+M(t,"basis","preferred-size")+t;case 6060:return H+"box-"+M(t,"-grow","")+H+t+lt+M(t,"grow","positive")+t;case 4554:return H+M(t,/([^-])(transform)/g,"$1"+H+"$2")+t;case 6187:return M(M(M(t,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),t,"")+t;case 5495:case 3959:return M(t,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return M(M(t,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+lt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+t+t;case 4095:case 3583:case 4068:case 2532:return M(t,/(.+)-inline(.+)/,H+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dt(t)-1-e>6)switch(et(t,e+1)){case 109:if(et(t,e+4)!==45)break;case 102:return M(t,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+Qr+(et(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Jr(t,"stretch")?ef(M(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(et(t,e+1)!==115)break;case 6444:switch(et(t,dt(t)-3-(~Jr(t,"!important")&&10))){case 107:return M(t,":",":"+H)+t;case 101:return M(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(et(t,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+lt+"$2box$3")+t}break;case 5936:switch(et(t,e+11)){case 114:return H+t+lt+M(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return H+t+lt+M(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return H+t+lt+M(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return H+t+lt+t+t}return t}var lm=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case or:e.return=ef(e.value,e.length);break;case to:return Re([fr(e,{value:M(e.value,"@","@"+H)})],o);case nr:if(e.length)return Fi(e.props,function(s){switch(Di(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Re([fr(e,{props:[M(s,/:(read-\w+)/,":"+Qr+"$1")]})],o);case"::placeholder":return Re([fr(e,{props:[M(s,/:(plac\w+)/,":"+H+"input-$1")]}),fr(e,{props:[M(s,/:(plac\w+)/,":"+Qr+"$1")]}),fr(e,{props:[M(s,/:(plac\w+)/,lt+"input-$1")]})],o)}return""})}},fm=[lm],rf=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var x=m.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=e.stylisPlugins||fm,s={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var x=m.getAttribute("data-emotion").split(" "),_=1;_<x.length;_++)s[x[_]]=!0;a.push(m)});var c,f=[am,cm];{var l,u=[Xl,Jl(function(m){l.insert(m)})],p=Ql(f.concat(o,u)),d=function(x){return Re(Yl(x),p)};c=function(x,_,w,C){l=w,d(x?x+"{"+_.styles+"}":_.styles),C&&(h.inserted[_.name]=!0)}}var h={key:r,sheet:new Dl({key:r,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:c};return h.sheet.hydrate(a),h};function nf(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var of={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var um=!1,pm=/[A-Z]|^ms/g,dm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lf=function(e){return e.charCodeAt(1)===45},sf=function(e){return e!=null&&typeof e!="boolean"},Li=Zl(function(t){return lf(t)?t:t.replace(pm,"-$&").toLowerCase()}),af=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(dm,function(n,o,s){return Gt={name:o,styles:s,next:Gt},o})}return of[e]!==1&&!lf(e)&&typeof r=="number"&&r!==0?r+"px":r},hm="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function en(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Gt={name:o.name,styles:o.styles,next:Gt},o.name;var s=r;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)Gt={name:i.name,styles:i.styles,next:Gt},i=i.next;var a=s.styles+";";return a}return mm(t,e,r)}case"function":{if(t!==void 0){var c=Gt,f=r(t);return Gt=c,en(t,e,f)}break}}var l=r;if(e==null)return l;var u=e[l];return u!==void 0?u:l}function mm(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=en(t,e,r[o])+";";else for(var s in r){var i=r[s];if(typeof i!="object"){var a=i;e!=null&&e[a]!==void 0?n+=s+"{"+e[a]+"}":sf(a)&&(n+=Li(s)+":"+af(s,a)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&um)throw new Error(hm);if(Array.isArray(i)&&typeof i[0]=="string"&&(e==null||e[i[0]]===void 0))for(var c=0;c<i.length;c++)sf(i[c])&&(n+=Li(s)+":"+af(s,i[c])+";");else{var f=en(t,e,i);switch(s){case"animation":case"animationName":{n+=Li(s)+":"+f+";";break}default:n+=s+"{"+f+"}"}}}}return n}var cf=/label:\s*([^\s;{]+)\s*(;|$)/g,Gt;function io(t,e,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,o="";Gt=void 0;var s=t[0];if(s==null||s.raw===void 0)n=!1,o+=en(r,e,s);else{var i=s;o+=i[0]}for(var a=1;a<t.length;a++)if(o+=en(r,e,t[a]),n){var c=s;o+=c[a]}cf.lastIndex=0;for(var f="",l;(l=cf.exec(o))!==null;)f+="-"+l[1];var u=nf(o)+f;return{name:u,styles:o,next:Gt}}var gm=!0;function Mi(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(n+=o+" ")}),n}var ym=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||gm===!1)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},ff=function(e,r,n){ym(e,r,n);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var s=r;do e.insert(r===s?"."+o:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function uf(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function pf(t,e,r){var n=[],o=Mi(t,n,r);return n.length<2?r:o+e(n)}var Bi=function(e){var r=rf(e);r.sheet.speedy=function(a){this.isSpeedy=a},r.compat=!0;var n=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=io(f,r.registered,void 0);return ff(r,u,!1),r.key+"-"+u.name},o=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=io(f,r.registered),p="animation-"+u.name;return uf(r,{name:u.name,styles:"@keyframes "+p+"{"+u.styles+"}"}),p},s=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=io(f,r.registered);uf(r,u)},i=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];return pf(r.registered,n,bm(f))};return{css:n,cx:i,injectGlobal:s,keyframes:o,hydrate:function(c){c.forEach(function(f){r.inserted[f]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:Mi.bind(null,r.registered),merge:pf.bind(null,r.registered,n)}},bm=function t(e){for(var r="",n=0;n<e.length;n++){var o=e[n];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=t(o);else{s="";for(var i in o)o[i]&&i&&(s&&(s+=" "),s+=i)}break}default:s=o}s&&(r&&(r+=" "),r+=s)}}return r};v();v();var xm=/\s+/g,kv=t=>{let{key:e}=t;t.classlist===!0?t.classlist=e:!t.classlist&&typeof e=="string"&&e.charCodeAt(0)===95&&e.charCodeAt(1)!==95&&(t.classlist=e.slice(1))},Sm=(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+=` ${O(o,e)}`)}return r},_m=(t,e)=>{if(!t)return;let{key:r}=e;return t===!0&&(t=e.classlist={key:r}),y(t)&&(t=e.classlist={default:t}),g(t)&&(t=Sm(t,e)),t.replace(xm," ").trim()},Ui=(t,e,r)=>{let n=_m(t,e);if(r&&typeof r.setAttribute=="function")r.setAttribute("class",n);else if(r)try{r.className=n}catch{}return n};function Ov(t,e,r){Ui(t,e,r)}var wm=(t="smbls",e)=>{let r=t.replaceAll(/\./g,"-");return Bi({key:r,container:e})},Ct=wm(),vm=t=>(e,r,n)=>{let o=O(e,r);if(e){let{__ref:s}=r;s.__class.style=o}df(t)(r.classlist,r,r.state,!0)},df=t=>(e,r,n,o)=>{if(r.style&&!o)return;let{__ref:s}=r,{__class:i,__classNames:a}=s;if(N(e)){r.props.class&&(a.classProps=r.props.class),r.attr?.class&&(a.class=r.attr.class);for(let c in i){let f=i[c];if(!f){delete a[c];continue}let l;y(f)||ct(f)?l=f:In(f)?l=r.key:l=t.css(f),a[c]=l}for(let c in a)c==="classProps"||c==="class"||i[c]===void 0&&delete a[c];r.node&&Ui(a,r,r.node)}},hf=(t,e)=>(t||(t=Bi(e||{key:"smbls"})),{style:vm(t),classlist:df(t)});var br={};Mt(br,{CSS_NATIVE_COLOR_REGEX:()=>Zt,CSS_UNITS:()=>nn,applyMediaSequenceVars:()=>yr,applySequenceGlobalVars:()=>ra,applySequenceVars:()=>$e,changeLightness:()=>Tm,colorStringToRgbaArray:()=>ge,convertSvgToSymbol:()=>na,findHeadingLetter:()=>Af,findHeadings:()=>ea,generateSequence:()=>Kt,generateSequencePosition:()=>Lg,generateSprite:()=>po,generateSubSequence:()=>Zi,getColorShade:()=>xf,getDefaultOrFirstKey:()=>sn,getFnPrefixAndValue:()=>Fe,getFontFace:()=>Pm,getFontFaceEach:()=>an,getFontFaceEachString:()=>vf,getFontFaceString:()=>ji,getFontFormat:()=>_f,getRgbTone:()=>on,getSequenceValue:()=>ta,getSequenceValueBySymbols:()=>Of,getSequenceValuePropertyPair:()=>be,getSubratio:()=>Ji,getSubratioDifference:()=>Qi,hexToRgb:()=>Em,hexToRgbArray:()=>mf,hexToRgba:()=>Om,hslToRgb:()=>bf,isCSSVar:()=>nt,isGoogleFontsUrl:()=>co,isResolvedColor:()=>ye,isScalingUnit:()=>rn,mixTwoColors:()=>Cm,mixTwoRgb:()=>Am,mixTwoRgba:()=>Sf,numToLetterMap:()=>De,opacify:()=>ao,parseColorToken:()=>dr,resolveFileUrl:()=>Ie,returnSubThemeOrDefault:()=>Im,rgbArrayToHex:()=>gf,rgbToHSL:()=>yf,rgbToHex:()=>km,setCustomFont:()=>Vi,setCustomFontMedia:()=>mr,setFontImport:()=>lo,setInCustomFontMedia:()=>wf,setScalingVar:()=>Xi,setSubScalingVar:()=>kf,setVariables:()=>Mg,splitTopLevelCommas:()=>hr});var rn=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",nn=["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"];v();var ge=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&&L&&F){let e=L.body.appendChild(L.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){L.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return L.body.removeChild(e),[0,0,0,0];t=F.getComputedStyle(e).color,L.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]},Cm=(t,e,r=.5)=>(t=ge(t),e=ge(e),Sf(t,e,r)),Em=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},mf=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},km=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),gf=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),Om=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},Am=(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})`},Tm=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},yf=(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]},bf=(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)],xf=(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)},Sf=(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})`},ao=(t,e)=>{let r=ge(t);if(!r){Mr()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},nt=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Zt=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,Rm=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,dr=t=>{if(!y(t))return null;if(Zt.test(t))return{passthrough:t};if(nt(t))return{cssVar:t};let e=t.match(Rm);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}},ye=t=>y(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),hr=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},on=(t,e)=>{y(t)&&t.includes("rgb")&&(t=ge(t).join(", ")),y(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),ct(e)&&(e+="");let r=gf(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=xf(r,parseFloat(e));return mf(o).join(", ")}else{let[o,s,i]=t,a=yf(o,s,i),[c,f,l]=a;return bf(c,f,parseFloat(e)/100*255)}};var Im=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Ie=(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},sn=(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},_f=t=>{let e=t.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(e)?e:null},co=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),lo=t=>`@import url('${t}');`,wf=t=>`@font-face { ${t} }`,Vi=(t,e,r,n={})=>{let o=_f(e),s=o?` format('${o}')`:"";return`
20
20
  font-family: '${t}';
21
21
  font-style: normal;${r?`
22
22
  font-weight: ${r};`:""}${n.fontStretch?`
23
23
  font-stretch: ${n.fontStretch};`:""}${n.fontDisplay?`
24
24
  font-display: ${n.fontDisplay};`:""}
25
25
  src: url('${e}')${s};`},mr=(t,e,r,n)=>`@font-face {${Vi(t,e,r,n)}
26
- }`,sn=(t,e,r)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i}=e[o],a=Ie(s,r)||s;return Vi(t,a,i)}),Pm=t=>Object.keys(t).map(r=>sn(r,t[r].value)),vf=(t,e,r)=>{if(e&&e.isVariable){let s=Ie(e.url,r)||e.url;return ao(s)?co(s):mr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return sn(t,e,r).map(wf);let o=Ie(e.url,r)||e.url;return mr(t,o)},ji=(t,e)=>Object.keys(t).map(n=>vf(n,t[n].value,e));v();v();async function Nm(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})`)}}v();var Cf=(t,e)=>(S(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),Dm=(t,e)=>(t=parseFloat(t),g(e)&&(e=Object.values(e)),Cf(t,e));var Fm=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 $m=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 Lm=(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)}}),Mm=(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)}),Bm=(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}`)},Um=(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)}}),Vm=(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 lo(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 jm(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 zm=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t);function Hm(t){return/^[0-9.]+$/.test(t)&&t!==""}var te={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e)=>`${te.skypack.url}/${t}${e!=="latest"?`@${e}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e)=>`${te.esmsh.url}/${t}${e!=="latest"?`@${e}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e)=>`${te.unpkg.url}/${t}${e!=="latest"?`@${e}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e)=>`${te.jsdelivr.url}/${t}${e!=="latest"?`@${e}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e)=>t.split("/").length>2||!Hm(e)?`${te.symbols.url}/${t}`:`${te.symbols.url}/${t}/${e}.js`}},gr={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},fo=(t={})=>{let{packageManager:e}=t;return gr[e]||null},ee=(t,e="latest",r="esmsh")=>(te[r]||te.esmsh).formatUrl(t,e),qm=(t,e="skypack")=>{let r=t.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let s of n){let i=r[s]||"latest";o[s]=ee(s,i,e)}return`<script type="importmap">{
26
+ }`,an=(t,e,r)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i}=e[o],a=Ie(s,r)||s;return Vi(t,a,i)}),Pm=t=>Object.keys(t).map(r=>an(r,t[r].value)),vf=(t,e,r)=>{if(e&&e.isVariable){let s=Ie(e.url,r)||e.url;return co(s)?lo(s):mr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return an(t,e,r).map(wf);let o=Ie(e.url,r)||e.url;return mr(t,o)},ji=(t,e)=>Object.keys(t).map(n=>vf(n,t[n].value,e));v();v();async function Nm(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})`)}}v();var Cf=(t,e)=>(S(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),Dm=(t,e)=>(t=parseFloat(t),g(e)&&(e=Object.values(e)),Cf(t,e));var Fm=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 $m=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 Lm=(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)}}),Mm=(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)}),Bm=(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}`)},Um=(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)}}),Vm=(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 fo(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 jm(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 zm=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t);function Hm(t){return/^[0-9.]+$/.test(t)&&t!==""}var te={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e)=>`${te.skypack.url}/${t}${e!=="latest"?`@${e}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e)=>`${te.esmsh.url}/${t}${e!=="latest"?`@${e}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e)=>`${te.unpkg.url}/${t}${e!=="latest"?`@${e}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e)=>`${te.jsdelivr.url}/${t}${e!=="latest"?`@${e}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e)=>t.split("/").length>2||!Hm(e)?`${te.symbols.url}/${t}`:`${te.symbols.url}/${t}/${e}.js`}},gr={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},uo=(t={})=>{let{packageManager:e}=t;return gr[e]||null},ee=(t,e="latest",r="esmsh")=>(te[r]||te.esmsh).formatUrl(t,e),qm=(t,e="skypack")=>{let r=t.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let s of n){let i=r[s]||"latest";o[s]=ee(s,i,e)}return`<script type="importmap">{
27
27
  "imports": ${JSON.stringify(o,null,2)}
28
28
  }<\/script>`};v();var gt=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,r=>e[r])},zi=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}="${gt(r)}"`).join(" "),Wm=(t,e)=>{if(!e){let n=(()=>{let o=t?.favicon||t?.favicons;return o?typeof o=="string"?`<link rel="icon" href="${gt(o)}">`:Array.isArray(o)?o.map(s=>typeof s=="string"?`<link rel="icon" href="${gt(s)}">`:`<link ${zi({rel:"icon",...s})}>`).join(`
29
29
  `):`<link ${zi({rel:"icon",...o})}>`:'<link rel="icon" href="/favicon.ico">'})();return['<meta charset="UTF-8">',`<title>${gt(t.title||"Test")}</title>`,'<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">','<meta name="robots" content="noindex">','<meta name="apple-mobile-web-app-capable" content="yes">',n].join(`
30
30
  `)}return Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1)return n;if(o==="title")return n.push(`<title>${gt(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${gt(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${gt(s)}">`),n;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(s)?s:[s]).forEach(l=>{if(typeof l=="string")n.push(`<link rel="icon" href="${gt(l)}">`);else if(typeof l=="object"){let u=zi(l);/rel=/.test(u)?n.push(`<link ${u}>`):n.push(`<link rel="icon" ${u}>`)}}),n;if(o==="alternate")return(Array.isArray(s)?s:[s]).forEach(l=>{if(typeof l=="object"){let u=Object.entries(l).filter(([p,d])=>d!==void 0).map(([p,d])=>`${p}="${gt(d)}"`).join(" ");n.push(`<link rel="alternate" ${u}>`)}}),n;let i=(f,l,u="name")=>{if(typeof l=="string"||typeof l=="number"||typeof l=="boolean")n.push(`<meta ${u}="${gt(f)}" content="${gt(l)}">`);else if(Array.isArray(l))l.forEach(p=>{if(typeof p=="string"||typeof p=="number"||typeof p=="boolean")n.push(`<meta ${u}="${gt(f)}" content="${gt(p)}">`);else if(typeof p=="object"){let d=Object.entries(p).filter(([h,m])=>m!==void 0).map(([h,m])=>`${h}="${gt(m)}"`).join(" ");n.push(`<meta ${d}>`)}});else if(typeof l=="object"){let p=Object.entries(l).filter(([d,h])=>h!==void 0).map(([d,h])=>`${d}="${gt(h)}"`).join(" ");n.push(`<meta ${p}>`)}};if(o.startsWith("http-equiv:")){let f=o.replace("http-equiv:","");return i(f,s,"http-equiv"),n}if(o.startsWith("itemprop:")){let f=o.replace("itemprop:","");return i(f,s,"itemprop"),n}let c=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(f=>o.startsWith(f));if(c){let f=o.replace(c,"");return i(`${c.replace(":","")}:${f}`,s,c==="twitter:"||c==="DC:"||c==="DCTERMS:"?"name":"property"),n}if(o.startsWith("apple:")||o.startsWith("msapplication:")){let f=o.startsWith("apple:")?"apple-":"msapplication-",l=o.replace(/^apple:|^msapplication:/,"");return i(`${f}${l}`,s,"name"),n}return i(o,s),n},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">']).join(`
31
- `)},Gm=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http");function Km(t,e){if(!e||typeof e!="object")return t;let r=o=>{if(!Gm(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 Ym(t,e){let r=t.pages?.[e],n=g(r?.state)&&r?.state,o=r?.metadata||r?.helmet||n||{},s=t.app?.metadata||{};return t.integrations?.seo?o={...t.integrations.seo,...s,...o}:Object.keys(s).length&&(o={...s,...o}),o.title||(o.title=t.name+" / symbo.ls"||"Symbols demo"),o=Km(o,t.files),o}var Xm=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},Qm=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)}},Jm=t=>t.replace(/[^a-zA-Z0-9_]/g,""),Hi=t=>t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,r){return r===0?e.toLowerCase():e.toUpperCase()}).replaceAll(/\s+/g,""),Zm=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),qi=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),tg=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},an=t=>{if(S(t))return t;if(b(t))return t.split(" ");if(g(t))return Object.values(t);if(ct(t))return[t]};v();var Gi={};Mt(Gi,{CLASS:()=>Tg,animation:()=>wg,breakpoints:()=>xg,cases:()=>_g,color:()=>fg,devices:()=>Sg,document:()=>bg,font:()=>ng,font_face:()=>ig,font_family:()=>og,font_family_types:()=>sg,gradient:()=>ug,grid:()=>Og,icons:()=>hg,media:()=>ag,reset:()=>Rg,semantic_icons:()=>mg,sequence:()=>Pe,shadow:()=>dg,spacing:()=>lg,svg:()=>vg,svg_data:()=>Cg,templates:()=>Eg,theme:()=>pg,timing:()=>yg,typography:()=>Wi,unit:()=>eg});var Pe={"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 eg={default:"em"};var rg={browserDefault:16,base:16,type:"font-size",ratio:Pe["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},Wi=rg;var ng={};var og={},sg={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},ig={};var ag={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var cg={base:Wi.base,type:"spacing",ratio:Pe.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},lg=cg;var fg={},ug={};var pg={};var dg={};var hg={},mg={};var gg={default:150,base:150,type:"timing",ratio:Pe["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},yg=gg;var bg={};var xg={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},Sg={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 _g={};var wg={};var vg={},Cg={};var Eg={};var kg={},Og=kg;var Ag={},Tg=Ag;var Rg={};var Ig={},Pg={},cn=Gi,ln={},Ng=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase()),Dg=t=>t.replace(/([A-Z])/g,"_$1").toUpperCase();for(let t in cn){let e=t.toLowerCase();ln[e]=cn[t];let r=Ng(e);r!==e&&(ln[r]=cn[t]),e!==t&&(ln[t]=cn[t]);let n=Dg(t);n!==t&&(ln[n]=cn[t])}var Ki={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",CSS_VARS:Ig,CSS_MEDIA_VARS:Pg,...ln},Fg=z(Ki),Ne={active:"0",0:Ki},X0=t=>(Ot(t)&&(Ne.active=t),Ne[t||Ne.active]),E=t=>Ne[t||Ne.active]||Ki,Ef=t=>{if(g(t))return Ne.active="1",Ne[1]=U(t,z(Fg)),t};var De={"-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"},Yi=(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,e.vars[n]=s+e.unit},Fe=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},Xi=(t,e)=>{let{base:r,type:n,unit:o}=e,s=(en(o)?1:r)+o;if(t===0)return s;let i="--"+(n&&n.replace(".","-")),a=`${i}-ratio`;if(t>0){let c=De[t-1];return`calc(var(${i}-${c}) * var(${a}))`}if(t<0){let c=De[t+1];return`calc(var(${i}-${c}) / var(${a}))`}},kf=(t,e,r,n)=>{let{type:o}=n,i=t===2&&e.length===2?t+1:t,c=`${"--"+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${c+i}))`},Qi=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},Ji=(t,e)=>Qi(t,e).map(r=>r/t),Zi=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,f=~~(o*s)-~~o,l,[u,p,d]=Qi(o,s);f>16?l=[u,p,d]:l=[u,d],l.forEach((h,m)=>{let x=~~(h/n*1e3)/1e3,_=i+(m+1),w=a+(m+1)/10,C=kf(m+1,l,i,e),I={key:r+(m+1),variable:_,value:h,scaling:x,scalingVariable:C,index:w};Yi(I,e)})},$g=(t,e,r)=>e*Math.pow(r,t),Kt=t=>{let{type:e,base:r,ratio:n,range:o,subSequence:s}=t,i=Math.abs(o[0])+Math.abs(o[1]),a="--"+(e&&e.replace(".","-"))+"-";for(let c=0;c<=i;c++){let f=o[1]-c,l=De[f],u=$g(f,r,n),p=~~(u/r*100)/100,d=a+l,h=Xi(f,t),m={key:l,variable:d,value:u,base:r,scaling:p,scalingVariable:h,ratio:n,index:f};Yi(m,t),s&&Zi(m,t)}return t},Lg=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=b(e)?e:De[e],a=b(e)?Object.entries(De).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},f=n*Math.pow(o,a),l=~~(f/n*100)/100,p="--"+(r&&r.replace(".","-"))+"-"+i,d=Xi(a,t),h={key:i,variable:p,value:f,base:n,scaling:l,scalingVariable:d,ratio:o,index:a};return Yi(h,c),s&&Zi(h,c),c},ta=(t="A",e)=>{let r=E(),{unit:n}=r;if(b(t)&&nt(t))return`var(${t})`;let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(rn.some(w=>t.includes(w))||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let u=`--${qi(e.type.replace(".","-"))}-`,p=t.toUpperCase(),d=p.slice(0,1)==="-"?"-":"",h=d?p.slice(1):p,m="";h.includes("_")&&(m="_"+h.split("_")[1].toLowerCase(),h=h.split("_")[0]);let x=w=>a.test(w)?`var(${u}${w}${m})`:w;if(h.includes("+")){let[w,C]=h.split("+"),I=`${x(w)} + ${x(C)}`;return d?`calc((${I}) * -1)`:`calc(${I})`}else if(h.includes("*")){let[w,C]=h.split("*"),I=`${x(w)} * ${x(C)}`;return d?`calc((${I}) * -1)`:`calc(${I})`}else if(h.includes("-")){let[w,C]=h.split("-"),I=`${x(w)} - ${x(C)}`;return d?`calc((${I}) * -1)`:`calc(${I})`}if(!o[h]&&h.length===2&&(r.verbose&&console.warn(h,"- value is not found because `subSequence` is set to false"),h=h.slice(0,1)),i||r.useVariable){let w=`var(${u}${h}${m})`;return d?`calc(${w} * -1)`:w}let _=o?o[h]:null;return _?s==="ms"||s==="s"?d+_.val+s:d+_.scaling+s:console.warn("can't find",o,h)},Of=(t,e)=>{let r=["+","-","*","/",","].filter(n=>t.includes(n+" "));return r.length?r.map(n=>t.split(n+" ").map(i=>i.trim()).map(i=>ta(i,e)).join(" "+n+" ")).join(""):t},be=(t,e,r,n)=>{if(typeof t!="string")return E().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!n&&t.includes("(")){let s=Fe(t);n=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=Of(t,r):t=ta(t,r),{[e]:n?`${n}(${t})`:t}},Af=(t,e)=>De[t-e],ea=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=Af(e,o);return r[s]})};v();var Mg=(t,e)=>{let r=E(),{CSS_VARS:n}=r;N(t.value)||(n[t.var]=t.value)},ra=(t,e,r)=>{let n=E(),{unit:o}=n,s=e.unit||o.default,{base:i,ratio:a,type:c}=e,f="--"+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let l=`${f}-ratio`;t[l]=a;let[u,p,d]=Ji(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${u/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${p/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${d/a})`},$e=(t,e={})=>{let r=E(),{unit:n,timing:o,CSS_VARS:s}=r,i=t.unit||n.default,{mediaRegenerate:a,sequence:c,scales:f}=t;a||ra(s,t,e);for(let l in c){let u=c[l],p=(t.type===o.type?c[l].val:f[l])+i;if(!a){s[u.variable+"_default"]=p,s[u.variable]=u.scalingVariable;continue}e.useDefault===!1?s[u.variable]=p:(s[u.variable+"_default"]=p,s[u.variable]=`var(${u.variable+"_default"})`)}},yr=(t,e,r={})=>{let n=E(),{unit:o,media:s,CSS_VARS:i}=n,a=e.slice(1),c=t.unit||o.default,{mediaRegenerate:f}=t,{sequence:l,scales:u}=t[e],p=s[a];if(!p&&n.verbose&&console.warn("Can't find media query ",p),!f){let d=i[`@media ${p}`];d||(d=i[`@media ${p}`]={}),ra(d,t[e],r);return}for(let d in l){let h=l[d],m=(en(c)?u[d]:l[d].val)+c;!p&&n.verbose&&console.warn("Can't find query ",p);let x=i[`@media ${p}`];x||(x=i[`@media ${p}`]={}),x[h.variable]=`var(${h.variable+"_"+a})`,i[h.variable+"_"+a]=m}};v();var Bg=Mr(),uo=t=>{let e=E(),r="";for(let n in t)e.__svg_cache[n]||(e.__svg_cache[n]=!0,r+=t[n]);return r},Ug=t=>{let e=t.default||t;if(!b(e)){Bg&&console.warn("parseRootAttributes:",e,"is not a string");return}let r=e.match(/<svg\s+(.*?)>/);return!r||!r[1]?{}:r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm).reduce((s,i)=>{let[a,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{})},Vg=(t,e)=>{let r=/id="([^"]*)"/,n=/url\(#([^)]*)\)/g,o=t.match(/id="([^"]*)"/g),s=t;return S(o)&&o.forEach(()=>{let i=Math.floor(Math.random()*1e5);s=t.replace(r,`id="${e}-${i}"`).replace(n,`url(#${e}-${i})`)}),s},na=(t,e)=>{let r=Ug(e),{width:n,height:o}=r,s=r.viewBox||`0 0 ${n||24} ${o||24}`,c=Vg(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${s}"`);return c=c.replace(/width="[^"]*"/,""),c=c.replace(/height="[^"]*"/,""),c=c.replace("</svg","</symbol"),c};var go={};Mt(go,{appendSVGSprite:()=>xa,appendSvgIconsSprite:()=>_a,applyDocument:()=>ya,applyHeadings:()=>Nf,applyReset:()=>wa,applySpacingSequence:()=>da,applyTimingSequence:()=>ga,applyTypographySequence:()=>fa,checkIfBoxSize:()=>pa,getColor:()=>J,getFontFamily:()=>la,getFontSizeByKey:()=>ua,getMediaColor:()=>Et,getMediaTheme:()=>Yt,getShadow:()=>ma,getSpacingBasedOnRatio:()=>Le,getSpacingByKey:()=>at,getTheme:()=>sa,getTimingByKey:()=>Ut,getTimingFunction:()=>Dt,runThroughMedia:()=>Pf,setColor:()=>xr,setFont:()=>ca,setFontFamily:()=>ho,setGradient:()=>Sr,setMediaTheme:()=>aa,setSVG:()=>mo,setShadow:()=>_r,setSvgIcon:()=>Sa,setTheme:()=>ia,splitSpacedValue:()=>ha});v();var J=(t,e,r)=>{let n=r||E();if(!b(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(nt(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(S(t))[o,s,i]=t;else{let u=dr(t);if(!u)return 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,f=a[o]||c[o];if(!f)return n.verbose&&console.warn("Can't find color ",o),t;e&&(f[e]?f=f[e]:n.verbose&&console.warn(t," - does not have ",e));let l=f.rgb;return l?(i&&!f[i]&&(l=nn(l,i),f[i]={rgb:l,var:`${f.var}-${i}`}),f[i]&&(l=f[i].rgb),s?`rgba(${l}, ${s})`:i?`rgba(${l}, 1)`:n.useVariable?`var(${f.var})`:`rgb(${l})`):n.useVariable?`var(${f.var})`:f.value},Et=(t,e,r)=>{let n=r||E();if(e||(e=n.globalTheme==="auto"?null:n.globalTheme),!b(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(nt(t))return`var(${t})`;let o;if(S(t))o=t[0];else{let f=dr(t);if(!f)return t;if(f.passthrough)return f.passthrough;if(f.cssVar)return`var(${f.cssVar})`;o=f.name}let{color:s,gradient:i}=n,a=s[o]||i[o],c=g(a);if(c&&a.value)return J(t,`@${e}`,r);if(c){if(e)return J(t,`@${e}`,r);{let f={};for(let l in a){let u=n.media[l.slice(1)],p="@media "+(u==="print"?`${u}`:`screen and ${u}`);f[p]=J(t,l,r)}return f}}else return n.verbose&&console.warn("Can't find color",t),t},xr=(t,e,r)=>{let n=E();if(b(t)&&nt(t)){let d=t.slice(2);if(t=J(d),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let h=d.split(" "),m=n.color[h[0]];if(m&&m.value){let x=m.rgb,_=h[1]!==void 0?h[1]:"1",w=h[2];w&&(x=nn(x,w)),t=`rgba(${x}, ${_})`}else{let x=h[2],_=h[1]!==void 0?h[1]:"1";if(x)try{let w=ge(h[0]);w&&w.length>=3?t=`rgba(${nn(w.slice(0,3).join(", "),x)}, ${_})`:t=h[0]}catch{t=h[0]}else t=h[0]}}}if(S(t))return{"@light":xr(t[0],e,"light"),"@dark":xr(t[1],e,"dark")};if(g(t)){let d={};for(let h in t)d[h]=xr(t[h],e,h.slice(0,1)==="@"?h.slice(1):h);return d}let o=`--color-${e}`+(r?`-${r}`:""),s=ge(t.value||t),[i,a,c,f=1]=s,l=parseFloat(f.toFixed(2)),u=`${i}, ${a}, ${c}`,p=`rgba(${u}, ${l})`;return n.useVariable&&(n.CSS_VARS[o]=p),{var:o,rgb:u,alpha:l,value:p}},Sr=(t,e,r)=>{let n=E();if(b(t)&&nt(t)&&(t=J(t.slice(2))),S(t))return{"@light":Sr(t[0],e,"light"),"@dark":Sr(t[0],e,"dark")};if(g(t)){let s={};for(let i in t)s[i]=Sr(t[i],e,i.slice(0,1)==="@"?i.slice(1):i);return s}let o=`--gradient-${e}`+(r?`-${r}`:"");return n.useVariable&&(n.CSS_VARS[o]=t.value||t),{var:o,value:t.value||t}};v();var po=t=>{let e={},{state:r,media:n,helpers:o,...s}=t;return Object.keys(s).map(a=>{let f=["color","Color","background","border"].some(l=>a.includes(l));return e[a]=f?J(t[a]):t[a]}),e},fn=t=>(t.value||(t.value=po(t)),t.value),sa=(t,e)=>{let r=E();if(r.useVariable)return Yt(t,e);let n=r.theme;if(b(t)){let[o,s]=t.split(" "),i=n[o];if(i){if(!s&&!e)return fn(i);t=[o,s||e]}}if(N(t)&&t[1]){let o=t[0],s=t[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return fn(a[s]);if(i&&i[s])return fn(i[s]);if(c&&c[s])return fn(c[s])}else if(g(t))return po(t)},jg=(t,e,r)=>{if(g(e))t.variants.inverse.value=po(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},zg=(t,e,r,n)=>{let o=sa(r);n[`&:${e}`]=o,g(r)&&!r.value&&(r.value=o)},Hg=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return zg(t,o,s,e),t}),t):void 0},qg=(t,e,r,n)=>{let o=sa(r);n[`@media (prefers-color-scheme: ${e})`]=o,g(r)&&!r.value&&(r.value=o)},Wg=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&qg(t,o,s,e),o==="inverse"&&jg(t,s,e),t}),t):void 0},Gg=(t,e)=>{let r=E(),{helpers:n}=t;return n?(Object.keys(n).map(s=>{let i=n[s];return b(i)?n[s]=r.theme[i]:fn(n[s]),t}),t):void 0},ia=(t,e)=>{if(E().useVariable)return aa(t,e);let{state:n,media:o,helpers:s}=t,i=po(t,e),a=`--theme-${e}`;return Hg(t,i),Wg(t,i),Gg(t,i),{var:a,value:i,state:n,media:o,helpers:s}};var oa=(t,e,r)=>{let{CSS_VARS:n}=r;r.CSS_MEDIA_VARS||(r.CSS_MEDIA_VARS={});let o=r.CSS_MEDIA_VARS,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let c in t)if(t[c])for(let f of Object.keys(t[c]))a.add(f);for(let c of a){let f=c.slice(0,1),l=Object.values(t).some(u=>N(u?.[c]));if(f==="."&&l){let u=c.slice(1),p={};for(let d in t)N(t[d]?.[c])&&(p[d]=t[d][c]);i[c]=oa(p,`${e}-${u}`,r)}else if(f===":"&&l){let u=c.replace(/^:+/,""),p={};for(let d in t)N(t[d]?.[c])&&(p[d]=t[d][c]);i[c]=oa(p,`${e}-${u}`,r)}else if(f!=="@"&&f!=="."&&f!==":"){let u=`--theme-${e}-${c}`;if(s==="auto")for(let p in t){let d=t[p]?.[c];if(d===void 0)continue;let h=J(d,`@${p}`);if(h===void 0)continue;let m=`[data-theme="${p}"]`;if(o[m]||(o[m]={}),o[m][u]=h,p==="dark"||p==="light"){let x=`@media (prefers-color-scheme: ${p})`;o[x]||(o[x]={}),o[x][u]=h}}else{let p=String(s).replace(/^'|'$/g,""),d=t[p]?.[c];if(d!==void 0){let h=J(d,`@${p}`);h!==void 0&&(n[u]=h)}}i[c]=`var(${u})`,i[`.${c}`]={[c]:i[c]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},aa=(t,e,r,n)=>{let o=E(),{CSS_VARS:s}=o,i={value:t},a=!r&&!n;if(N(t)){if(a&&o.useVariable){let c={};for(let f in t)f.startsWith("@")&&N(t[f])&&(c[f.slice(1)]=t[f]);if(Object.keys(c).length){let f=oa(c,e,o);Object.assign(i,f)}}for(let c in t){let f=c.slice(0,1),l=t[c];if(f==="@"||f===":"||f==="."){let u=f==="@"&&c;i[c]=aa(l,e,c,n||u)}else if(!a){let u=J(l,n),p=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],d=p.length?"-"+p.join("-"):"",h=`--theme-${e}${d}-${c}`;o.useVariable?(o.useThemeSuffixedVars&&(s[h]=u),i[c]=`var(${h})`):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(b(t)&&nt(t)){let f=o.theme[t.slice(2)];return Yt(f,n)}return i},Rf=t=>{let e=E(),r={};for(let n in t){let o=n.slice(0,1);if(N(t[n])){if(o==="@")continue;o===":"&&(r[`&${n}`]=Rf(t[n]))}else r[n]=t[n]}return r},If=(t,e)=>{let r=e.shift();return t[r]?If(t[r],e):t},Tf=(t,e)=>S(e)?If(t,e):b(e)&&t[e]?t[e]:t;var Yt=(t,e)=>{let r=E();if(b(t)&&nt(t)&&(t=Yt(t.slice(2))),!t||!b(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[n,...o]=S(t)?t:t.split(" "),s=r.theme[n];return s&&o.length?s=Tf(s,o):s&&e&&(s=Tf(s,e)),Rf(s)};v();var ca=(t,e)=>{let r=E(),n=`--font-${e}`;if(!t||S(t)&&!t[0])return;let o;if(t.isVariable){let s=Ie(t.url,r.files)||t.url;ao(s)?o=co(s):o=mr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])o=sn(e,t,r.files);else{let s=Ie(t.url,r.files)||t.url;o=mr(e,s)}return{var:n,value:t,fontFace:o}},la=(t,e)=>{let r=E(),{font_family:n}=r;return on(e||n,t)},ho=(t,e)=>{let r=E(),{font_family:n,font_family_types:o}=r,{value:s,type:i}=t;t.isDefault&&(n.default=e),g(s)&&(s=an(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};v();var Pf=t=>{let e=E(),{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:f,base:l,ratio:u,range:p,subSequence:d,h1Matches:h,unit:m}=t;Y(i,{type:f,base:l,ratio:u,range:p,subSequence:d,h1Matches:h,unit:m});let x=n[c],_="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[_]={fontSize:i.base/r.browserDefault+m},!a){yr(t,o);continue}Y(i,{sequence:{},scales:{},templates:{},vars:{}}),Kt(i),yr(t,o)}},Nf=t=>{let e=E();if(t.h1Matches){let r=t.unit,n=ea(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}}}},fa=()=>{let t=E(),{typography:e}=t;Kt(e),Nf(e),$e(e),Pf(e)},ua=t=>{let e=E(),{typography:r}=e;return be(t,"fontSize",r)};v();var Kg=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:f,unit:l}=t;Y(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:f,unit:l,sequence:{},scales:{},templates:{},vars:{}}),Kt(r),yr(t,e)}},pa=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),n=e.includes("border")||e.includes("outline");return r&&!n},da=()=>{let t=E(),{spacing:e}=t;Kt(e),$e(e),Kg(e)},Yg=t=>{let e=E(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:Kt(t)},at=(t,e="padding",r,n)=>{let o=Yg(r);if(b(t)&&!n&&t.includes("(")){let i=Fe(t);n=i[0],t=i[1]}let s=n?[t]:an(t);if(S(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=(f,l)=>be(s[l],e+f+i,o,n);return a[s.length].map((f,l)=>c(f,l))}return be(t,e,o,n)}},Le=(t,e,r,n)=>{let o=E(),{spacing:s}=o,i=r||t[e];if(!n&&b(i)&&i.includes("(")){let a=Fe(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=applyCustomSequence(t);return at(i,e,a,n)}return at(i,e,s,n)},ha=t=>{let e=r=>{let n=["+","-","*","/"].includes(r),o=rn.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(" ")};v();var _r=(t,e,r,n)=>{let o=E();if(S(t))return{"@light":_r(t[0],e,"light"),"@dark":_r(t[1],e,"dark")};if(g(t)){let i={};for(let a in t)i[a]=_r(t[a],e,a.startsWith("@")?a.slice(1):a);return i}b(t)&&!Zt.test(t)&&(t=hr(t).map(i=>(i=i.trim(),i.split(/\s+/).map(a=>{if(a=a.trim(),!a)return"";if(a.startsWith("--"))return`var(${a})`;let c=J(a);if(ye(c))return c;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let f=at(a,"shadow");return f&&f.shadow?f.shadow:a}).join(" "))).join(", "));let s=`--shadow-${e}`+(r?`-${r}`:"");return o.useVariable&&(o.CSS_VARS[s]=t),{var:s,value:t}},ma=(t,e)=>{let r=E();if(e||(e=r.globalTheme),!b(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(nt(t))return`var(${t})`;let[n]=S(t)?t:t.split(" "),s=r.shadow[n],i=g(s);if(!s)return r.verbose&&console.warn("Can't find color ",n),t;if(e){if(s[e])return s[e].value;r.verbose&&console.warn(t," - does not have ",e)}if(i&&s.value)return s.value;if(i){let a={};for(let c in s){let f=r.media[c.slice(1)],l="@media "+(f==="print"?`${f}`:`screen and ${f}`);a[l]=s.value}return a}return r.verbose&&console.warn("Can't find color",t),t};var ga=()=>{let t=E(),{timing:e}=t;Kt(e),$e(e)},Dt=t=>{let e=E(),{timing:r}=e;return r[t]||r[Hi(t)]||t},Ut=(t,e="timing")=>{let r=E(),{timing:n}=r;return be(t,e,n)};v();var ya=()=>{let t=E(),{document:e,font_family:r,theme:n,typography:o}=t;return Y(e,{theme:n.document,fontFamily:on(r),fontSize:o.base,lineHeight:o.lineHeight})};v();var ba={document:L},mo=(t,e)=>{let r=E();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?na(e,t):t},xa=(t,e=ba)=>{let r=E(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=r.svg[o];Ff(n,e)},Sa=(t,e)=>{let r=E();return r.useIconSprite&&!r.semantic_icons?.[e]?mo(t,e):t},_a=(t,e=ba)=>{let r=E(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=r.icons[o];Ff(n,e)},Df=(t={isRoot:!0})=>{if(!L||!L.createElementNS)return;let e=L.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(e.setAttribute("aria-hidden","true"),e.setAttribute("width","0"),e.setAttribute("height","0"),e.setAttribute("style","position:absolute"),e.setAttribute("id","svgSprite")),e},Ff=(t,e=ba)=>{let r=E(),n=e.document||L;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),uo(t);let o=n.querySelector("#svgSprite"),s=uo(t);if(o){let i=Df({isRoot:!1});i.innerHTML=s,o.append(...i.children)}else{let i=Df();i&&i.nodeType&&(i.innerHTML=s,n.body.prepend(i))}};v();var wa=(t={})=>{let e=E(),{reset:r,typography:n,document:o}=e;if(r){if(r[":root"]){let c=r,f=n.templates;c.body={...e.useDocumentTheme?Yt("document"):{},...f.body},c.h1=f.h1,c.h2=f.h2,c.h3=f.h3,c.h4=f.h4,c.h5=f.h5,c.h6=f.h6}let{body:s,...i}=n.templates,a=e.useDocumentTheme?Yt("document"):{};return r.html&&it(r.html,a),U(Y(r,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+e.unit.default,...i,...s},a:{color:"currentColor"},fieldset:{border:0,padding:0,margin:0},"select, input":{fontFamily:o.fontFamily}})}};v();var Xg=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),Qg=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),Jg=t=>Xg.has(t),xe=t=>{let e=t+"";if(Zt.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(nt(o))return`var(${o})`;if(Jg(o)||/^\d/.test(o)||o==="0")return o;let s=J(o);if(ye(s))return s;let i=at(o,"border");return i&&i.border?i.border:o}).join(" ")},$f=t=>Zt.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(nt(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=J(e);return ye(r)?r:e}).join(" "),Lf=(t,e)=>ma(t,e),va=(t,e)=>Zt.test(t)?t:hr(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(nt(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=J(n);if(ye(o)){let i=Et(n,e);return g(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=at(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),Ca=(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=hr(o).map(c=>(c=c.trim(),c.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||Qg.has(l)||l==="transparent"||Zt.test(l))return l;let u=J(l);return ye(u)?u:l}).join(" ")));return n+a.join(", ")+s},Mf=(t,e)=>{let r=E();return t.split(", ").map(n=>nt(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?Ca(n,e):r.gradient[t]?{backgroundImage:Et(t,e||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!dr(n)?`url(${n})`:n).join(" ")},Bf=t=>b(t)&&t.split(" ").map(e=>at(e,"gap").gap).join(" "),Zg=t=>{let e=t.split(" ");return e.length?e.map(r=>nt(r)?`var(${r})`:r.length<3||r.includes("ms")?Ut(r).timing||r:Dt(r)?Dt(r):r).join(" "):t},wr=(t,e,r)=>{if(b(t))return t.split(",").map(n=>Ut(n).timing||n).join(",")},yo=t=>{let e=t.split(",");if(e.length)return e.map(Zg).join(",")};function ot(t,e,r={},n={}){let o=O.call(this,e||r[t]);if(o==null)return;let s;if(b(o)){if(o.includes("(")){let c=Fe(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=pa(t);!i&&a&&!n.ratio&&(o=ha(o))}return n.ratio?Le(r,t,o,s):at(o,t,void 0,s)}var V=(t,e=null,r)=>ot(t,e,r,{ratio:!0}),Ea=(t,e,r)=>{if(b(t))return{borderRadius:t.split(" ").map((n,o)=>Le(e,r,n)[r]).join(" ")}};v();var ty=(t,e)=>y(t)?t():t,Ft=(t,e)=>t,Uf={color:xr,gradient:Sr,font:ca,font_family:ho,fontfamily:ho,theme:ia,icons:Sa,semantic_icons:Ft,semanticicons:Ft,svg:mo,svg_data:Ft,typography:Ft,cases:ty,shadow:_r,spacing:Ft,media:Ft,grid:Ft,class:Ft,timing:Ft,reset:Ft,unit:Ft,animation:Ft},ey=(t,e,r)=>{let n=E(),o=t.toLowerCase(),s=n[o]||n[t];if(Uf[o])try{let i=Uf[o](e,r);return s[r]=i,s}catch(i){n.verbose&&console.warn("Error setting",o,"value",e,r,i)}n.verbose&&console.warn("Can not find",o,"method in scratch")},ry=(t,e)=>{let r=E(),n=t.toLowerCase();return Object.keys(e).forEach(s=>{try{return ey(n,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",e[s],s,i)}}),r[n]||r[t]},ny={},un=(t,e=ny)=>{let r=E(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:f,globalTheme:l,useDocumentTheme:u,useDefaultConfig:p,semanticIcons:d,SEMANTIC_ICONS:h,semantic_icons:m,files:x,..._}=t;e.newConfig&&(r=Ef(e.newConfig)),x!==void 0&&(r.files=x),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),f!==void 0&&(r.useIconSprite=f),u!==void 0&&(r.useDocumentTheme=u),l!==void 0&&(r.globalTheme=l),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p);let w=d||h||m;w!==void 0&&(r.semantic_icons=w,r.semanticIcons=r.semantic_icons,r.SEMANTIC_ICONS=r.semantic_icons),r.verbose&&console.log(r),r.__svg_cache||(r.__svg_cache={});let C=Object.keys(_),I=new Set(C);if(C.forEach(A=>{let T=A.toLowerCase();T!==A&&I.has(T)&&U(_[T],_[A])}),C.map(A=>{let T=A.toLowerCase();if(!(T!==A&&I.has(T)))return ry(A,_[A])}),_.typography||_.TYPOGRAPHY)try{fa()}catch(A){r.verbose&&console.warn("Error applying typography sequence",A)}if(_.spacing||_.SPACING)try{da()}catch(A){r.verbose&&console.warn("Error applying spacing sequence",A)}if(_.timing||_.TIMING)try{ga()}catch(A){r.verbose&&console.warn("Error applying timing sequence",A)}return ya(),wa(),r};var oy=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],sy=["none","forwards","backwards","both"],iy=["normal","reverse","alternate","alternate-reverse"],ay=["running","paused"],cy=t=>/^[\d.]+m?s$/.test(t),ka=(t,e)=>{let{emotion:r}=e.context,{keyframes:n}=r||Ct;if(g(t))return{animationName:n(t)};let{ANIMATION:o}=e.context&&e.context.designSystem,s=o[t];return n(s)},ly=(t,e)=>{let{ANIMATION:r}=e.context&&e.context.designSystem||{},n=t.split(/\s+/),o=null,s=[],i=null,a=null,c=null,f=null,l=null;for(let u of n)r&&r[u]?o=u:cy(u)?s.push(u):oy.includes(u)||u.startsWith("cubic-bezier")||u.startsWith("steps(")?i=u:u==="infinite"||/^\d+$/.test(u)?a=u==="infinite"?u:Number(u):iy.includes(u)?c=u:sy.includes(u)?f=u:ay.includes(u)?l=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:f,playState:l}},Vf={animation:(t,e)=>{if(b(t)&&t.includes(" ")){let r=ly(t,e);return{animationName:ka(r.name||t,e),animationDuration:r.durations[0]||Ut(e.props.animationDuration||"A").timing,animationDelay:r.durations[1]||Ut(e.props.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Dt(e.props.animationTimingFunction||"ease"),animationFillMode:r.fillMode||e.props.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:e.props.animationIterationCount||1,animationPlayState:r.playState||e.props.animationPlayState,animationDirection:r.direction||e.props.animationDirection}}return{animationName:ka(t,e),animationDuration:Ut(e.props.animationDuration||"A").timing,animationDelay:Ut(e.props.animationDelay||"0s").timing,animationTimingFunction:Dt(e.props.animationTimingFunction||"ease"),animationFillMode:e.props.animationFillMode||"both",animationIterationCount:e.props.animationIterationCount||1,animationPlayState:e.props.animationPlayState,animationDirection:e.props.animationDirection}},animationName:(t,e)=>({animationName:ka(t,e)}),animationDuration:t=>({animationDuration:Ut(t).timing}),animationDelay:t=>({animationDelay:Ut(t).timing}),animationTimingFunction:t=>({animationTimingFunction:Dt(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};v();var jf={show:(t,e,r,n)=>n.utils.exec(t,e,r)===!1&&{display:"none !important"},hide:(t,e,r,n)=>!!n.utils.exec(t,e,r)&&{display:"none !important"},height:(t,{props:e})=>V("height",t,e),width:(t,{props:e})=>V("width",t,e),boxSizing:t=>K(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...ot("height",e),...ot("width",r||e)}},inlineSize:(t,{props:e})=>V("inlineSize",t,e),blockSize:(t,{props:e})=>V("blockSize",t,e),minWidth:(t,{props:e})=>V("minWidth",t,e),maxWidth:(t,{props:e})=>V("maxWidth",t,e),widthRange:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...ot("minWidth",e),...ot("maxWidth",r||e)}},minHeight:(t,{props:e})=>V("minHeight",t,e),maxHeight:(t,{props:e})=>V("maxHeight",t,e),heightRange:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...ot("minHeight",e),...ot("maxHeight",r||e)}},size:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...V("inlineSize",e),...V("blockSize",r||e)}},minBlockSize:(t,{props:e})=>V("minBlockSize",t,e),minInlineSize:(t,{props:e})=>V("minInlineSize",t,e),maxBlockSize:(t,{props:e})=>V("maxBlockSize",t,e),maxInlineSize:(t,{props:e})=>V("maxInlineSize",t,e),minSize:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...ot("minInlineSize",e),...ot("minBlockSize",r||e)}},maxSize:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...ot("maxInlineSize",e),...ot("maxBlockSize",r||e)}},borderWidth:(t,{props:e})=>V("borderWidth",t,e),padding:(t,{props:e})=>V("padding",t,e),scrollPadding:(t,{props:e})=>V("scrollPadding",t,e),paddingInline:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...ot("paddingInlineStart",e),...ot("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...ot("paddingBlockStart",e),...ot("paddingBlockEnd",r||e)}},paddingTop:(t,{props:e})=>V("paddingBlockStart",t,e),paddingBottom:(t,{props:e})=>V("paddingBlockEnd",t,e),paddingLeft:(t,{props:e})=>V("paddingInlineStart",t,e),paddingRight:(t,{props:e})=>V("paddingInlineEnd",t,e),paddingBlockStart:(t,{props:e})=>V("paddingBlockStart",t,e),paddingBlockEnd:(t,{props:e})=>V("paddingBlockEnd",t,e),paddingInlineStart:(t,{props:e})=>V("paddingInlineStart",t,e),paddingInlineEnd:(t,{props:e})=>V("paddingInlineEnd",t,e),margin:(t,{props:e})=>V("margin",t,e),marginInline:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...ot("marginInlineStart",e),...ot("marginInlineEnd",r||e)}},marginBlock:(t,{props:e})=>{if(!b(e.marginBlock))return;let[r,n]=e.marginBlock.split(" ");return{...ot("marginBlockStart",r),...ot("marginBlockEnd",n||r)}},marginInlineStart:(t,{props:e})=>V("marginInlineStart",t,e),marginInlineEnd:(t,{props:e})=>V("marginInlineEnd",t,e),marginBlockStart:(t,{props:e})=>V("marginBlockStart",t,e),marginBlockEnd:(t,{props:e})=>V("marginBlockEnd",t,e),gap:t=>({gap:Bf(t)}),columnGap:(t,{props:e})=>Le(e,"columnGap",t),rowGap:(t,{props:e})=>Le(e,"rowGap",t),flexWrap:(t,{props:e})=>({display:"flex",flexFlow:(t||"row").split(" ")[0]+" "+e.flexWrap}),flexFlow:(t,{props:e})=>{let{reverse:r}=e;if(!b(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(!b(t))return;let[e,r]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:r}},round:(t,{props:e})=>Ea(t||e.borderRadius,e,"round"),borderRadius:(t,{props:e})=>Ea(t||e.round,e,"borderRadius")};var zf={fontSize:t=>ua(t)||t,fontFamily:t=>({fontFamily:la(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t})};var Oa={overflow:t=>({overflow:t,scrollBehavior:"smooth"}),cursor:(t,e,r,n)=>{if(!t)return;let o=n.files&&n.files[t];return o&&o.content&&(t=`url(${o.content.src})`),{cursor:t}}};var Hf={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:t.split(" ").map(r=>at(r,"k").k).join(" ")}},left:t=>at(t,"left"),top:t=>at(t,"top"),right:t=>at(t,"right"),bottom:t=>at(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>at(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=>at(r,"k").k);return{left:e[0],right:e[1]||e[0]}}};v();var Vt=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},qf={theme:(t,e)=>{let{props:r}=e;if(t)return r.themeModifier?Yt(t,`@${r.themeModifier}`):Yt(t)},color:(t,e)=>{let r=Vt(e);if(t)return{color:Et(t,r)}},background:(t,e)=>{let r=Vt(e);if(t)return b(t)&&t.includes("gradient")?{background:Ca(t,r)}:{background:Et(t,r)}},backgroundColor:(t,e)=>{let r=Vt(e);if(t)return{backgroundColor:Et(t,r)}},backgroundImage:(t,e,r,n)=>{let o=Vt(e);if(!t)return;let s=n.files&&n.files[t];return s&&s.content&&(t=s.content.src),{backgroundImage:Mf(t,o)}},textStroke:t=>({WebkitTextStroke:$f(t)}),outline:t=>({outline:xe(t)}),outlineOffset:(t,{props:e})=>V("outlineOffset",t,e),border:t=>({border:xe(t)}),borderColor:(t,e)=>{let r=Vt(e);if(t)return{borderColor:Et(t,r)}},borderTopColor:(t,e)=>{let r=Vt(e);if(t)return{borderTopColor:Et(t,r)}},borderBottomColor:(t,e)=>{let r=Vt(e);if(t)return{borderBottomColor:Et(t,r)}},borderLeftColor:(t,e)=>{let r=Vt(e);if(t)return{borderLeftColor:Et(t,r)}},borderRightColor:(t,e)=>{let r=Vt(e);if(t)return{borderRightColor:Et(t,r)}},borderLeft:t=>({borderLeft:xe(t)}),borderTop:t=>({borderTop:xe(t)}),borderRight:t=>({borderRight:xe(t)}),borderBottom:t=>({borderBottom:xe(t)}),shadow:(t,e)=>{let r=Vt(e);if(t)return{boxShadow:Lf(t,r)}},boxShadow:(t,e)=>{if(!b(t))return;let[r,n]=t.split("!importan"),o=Vt(e),s=n?" !important":"";return{boxShadow:va(r.trim(),o)+s}},textShadow:(t,{context:e})=>({textShadow:va(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:xe(t)})};var Wf={transition:t=>({transition:yo(t)}),transitionDuration:t=>({transitionDuration:wr(t)}),transitionDelay:t=>({transitionDelay:wr(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Dt(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};v();var Gf={flow:(t,e)=>{let{props:r}=e,{reverse:n}=r;if(!b(t))return;let[o,s]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(o="row"),(t.startsWith("y")||t==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&n?"-reverse":"")+" "+(s||"")}},wrap:(t,{props:e})=>({display:"flex",flexWrap:t}),align:(t,{props:e})=>{let[r,n]=t.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var Kf={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 pn={...Vf,...jf,...zf,...Oa,...Oa,...Hf,...qf,...Wf,...Gf,...Kf};var Yf=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);var fy=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=n.designSystem.media[t.slice(1)],s=Xt(e,r);return{[o?"@media "+(o==="print"?o:`screen and ${o}`):t]:s}},Xf=(t,e,r)=>({[t]:Xt(e,r)}),dn=(t,e,r)=>({[`&${t}`]:Xt(e,r)}),uy=(t,e,r)=>{let{cases:n}=r.context?.designSystem||{},o=t.slice(1);if(!n?.[o]&&!r.props[o])return Xt(e,r)},py=(t,e,r)=>({[t]:e}),dy=(t,e,r)=>{let n=t.slice(1);if(r.props[n]===!0||r.state[n]||r[n])return Xt(e,r)},hy=(t,e,r)=>{let n=t.slice(1);if(!(r.props[n]===!0||r.state[n]||r[n]))return Xt(e,r)},Qf=(t,e)=>Xt(t,e),Jf={"@":fy,":":dn,"[":dn,"*":dn,"+":dn,"~":dn,"&":Xf,">":Xf,$:uy,"-":py,".":dy,"!":hy};var Aa=Ge(),my=(t,e,r)=>{let n={},o={},s=(i,a)=>{if(r.unpack){n={...n,...a};return}n[i]=a};for(let i in t){let a=t[i];if(i==="class"&&e.call("isString",t.class)){let c=a.split(" ");if(c.length){let f=e.context.designSystem.class,l=c.reduce((u,p)=>Y(u,f[p]),{});n.designSystemClass=l}}else if(i==="true"){let c=O(a,e);Y(n,Qf(c,e))}else if(e.classlist[i]){let c=e.classlist[i],f=y(c)?c(e,e.state,e.context):c;f&&s(i,f),!Aa&&g(n[i])&&(n[i].label=i)}else if(pn[i]){let c=O(a,e);S(c)&&(c=c.reduce((l,u)=>Y(l,u),{}));let f=pn[i](c,e,e.state,e.context);S(f)&&(f=f.reduce((l,u)=>Y(l,u),{})),f&&s(i,f),!Aa&&g(n[i])&&(n[i].label=i)}else if(Yf.has(i)){let c=O(a,e);s(i,{[i]:c}),!Aa&&g(n[i])&&(n[i].label=i)}else o[i]=a}return[n,o]},gy=(t,e)=>{let r={};for(let n in t){let o=Jf[n.slice(0,1)];if(o){let s=o(n,t[n],e);s&&it(r,s)}}return r},Xt=(t,e,r={unpack:!0})=>{let[n,o]=my(t,e,r),s=gy(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return fe(n,s);n._selectors=s}return n},Rk=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};v();var{css:yy}=Ct,Dk=(t,e)=>y(e)?e(t):yy(t);var Zf={transparent:"rgba(0, 0, 0, 0)",black:"black",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"]},tu={};var by={primary:{"@dark":{color:"white",background:"blue"},"@light":{color:"white",background:"gradient-blue"}},secondary:{"@dark":{color:"white",background:"gray"},"@light":{color:"white",background:"gray"}},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"},"@light":{color:"gray3",background:"gradient-dark"}}},xy={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},Sy={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"}},dialog:{"@dark":{color:"white",background:"gray.92"},"@light":{color:"currentColor",background:"gray.1"}}},eu={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...by,...xy,...Sy,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var ru={base:16,ratio:1.25,subSequence:!0,templates:{}};var nu={ratio:1.618,subSequence:!0};var ou={},su={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif"}};var iu={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 au={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Ta={version:"0.0.1",color:Zf,gradient:tu,theme:eu,typography:ru,spacing:nu,font:ou,font_family:su,timing:au,media:iu,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},cases:{},class:{},svg:{},grid:{},shape:{}};var Be={};Mt(Be,{A:()=>vx,Avatar:()=>Kx,B:()=>ob,Block:()=>_y,Box:()=>Ia,Br:()=>lb,Button:()=>$x,ButtonSet:()=>Ux,Caption:()=>Yy,Checkbox:()=>Ox,CheckboxHgroup:()=>Ax,CircleButton:()=>Mx,Clickable:()=>Ny,Data:()=>ib,Dialog:()=>jx,DialogFooter:()=>Hx,DialogHeader:()=>zx,DropdownList:()=>Xx,DropdownParent:()=>Qx,DropdownParentFocus:()=>Jx,DropdownSiblingFocus:()=>Zx,FileIcon:()=>bb,Flex:()=>vy,Focusable:()=>Dy,FocusableComponent:()=>Fy,Footnote:()=>nb,Form:()=>Ty,Grid:()=>Ey,Gutter:()=>Oy,H1:()=>jy,H2:()=>zy,H3:()=>Hy,H4:()=>qy,H5:()=>Wy,H6:()=>Gy,Headline:()=>eb,Hgroup:()=>db,HgroupButton:()=>mb,HgroupRows:()=>hb,Hoverable:()=>Py,Hr:()=>cb,I:()=>sb,Icon:()=>gb,IconButton:()=>Vx,IconText:()=>yb,Iframe:()=>Ry,Img:()=>Ay,Inline:()=>wy,InlineFlex:()=>Cy,InlineGrid:()=>ky,Input:()=>Ex,Italic:()=>Zy,KangorooButton:()=>Bx,Li:()=>fb,Link:()=>qu,Notification:()=>tS,NumberInput:()=>kx,Ol:()=>pb,P:()=>Ky,Picture:()=>My,Radio:()=>Tx,RadioHgroup:()=>Rx,Range:()=>Yx,RouteLink:()=>Cx,RouterLink:()=>Wu,SHAPES:()=>$y,Select:()=>Fx,SquareButton:()=>Lx,Strong:()=>Xy,Subhead:()=>rb,Svg:()=>By,Text:()=>Vy,Textarea:()=>Nx,TextareaWithButton:()=>Dx,Theme:()=>Ly,Title:()=>tb,Toggle:()=>Ix,ToggleHgroup:()=>Px,Tooltip:()=>qx,TooltipHidden:()=>Wx,TooltipParent:()=>Gx,U:()=>Qy,Ul:()=>ub,Underline:()=>Jy,Video:()=>Uy,depth:()=>Ra,getSystemGlobalTheme:()=>xo});var _y={display:"block"},wy={display:"inline"},vy={display:"flex"},Cy={display:"inline-flex"},Ey={display:"grid"},ky={display:"inline-grid"},Oy={boxSize:"C1"};var Ay={tag:"img",attr:{src:t=>{let{props:e,context:r}=t,n=(e.preSrc||"")+Wt(t,e.src),o;try{o=new URL(n)}catch{}if(o)return n;let s=n&&n.startsWith("/files/")?n.slice(7):n,i=r.files&&(r.files[n]||r.files[s]);if(i)return i.content&&i.content.src},title:({props:t})=>t.title||t.alt}};var Ty={tag:"form"};var Ry={tag:"iframe",position:"relative",minWidth:"H",minHeight:"H"};var Iy={appearance:"none",border:"none",cursor:"pointer",fontFamily:"inherit"},Py={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}}},Ny={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},Dy={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:({props:t})=>t.tabIndex}},Fy={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:Iy};var cu={transition:t=>({transition:yo(t)}),transitionDuration:t=>({transitionDuration:wr(t)}),transitionDelay:t=>({transitionDelay:wr(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Dt(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};var $t=E(),Ra={4:{boxShadow:`rgba(0,0,0,.10) 0 2${$t.UNIT.default} 4${$t.UNIT.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${$t.UNIT.default} 6${$t.UNIT.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${$t.UNIT.default} 10${$t.UNIT.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${$t.UNIT.default} 16${$t.UNIT.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${$t.UNIT.default} 26${$t.UNIT.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${$t.UNIT.default} 42${$t.UNIT.default}`}},vr=({props:t})=>J(t.shapeDirectionColor)||J(t.borderColor)||J(t.backgroundColor)||J(t.background),bo=({props:t,deps:e})=>{let r=cu.transition(t.transition,{props:t,deps:e});return r&&r.transition},$y={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:({props:t,deps:e})=>({position:t.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:vr({props:t,deps:e}),transition:bo({props:t,deps:e}),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:({props:t,deps:e})=>({position:"relative","&:before":{content:'""',display:"block",background:vr({props:t,deps:e}),transition:bo({props:t,deps:e}),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:({props:t,deps:e})=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:vr({props:t,deps:e}),transition:bo({props:t,deps:e}),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:({props:t,deps:e})=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:bo({props:t,deps:e}),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${vr({props:t,deps:e})} 25%, transparent 25%), linear-gradient(315deg, ${vr({props:t,deps:e})} 25%, transparent 25%)`},"&:after":{background:vr({props:t,deps:e}),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}};v();var xo=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n==="auto"?null:n},Ly={deps:{depth:Ra},classlist:{depth:({props:t,deps:e})=>!K(t.depth)&&e.depth[t.depth]}};var My={deps:{getSystemGlobalTheme:xo},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:xo},tag:"source",attr:{media:t=>{let{props:e,key:r,context:n,deps:o}=t,{media:s}=n.designSystem,i=o.getSystemGlobalTheme(t),a=(e.media||r).slice(1);return a===i?"(min-width: 0px)":a==="dark"||a==="light"?"(max-width: 0px)":s[a]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(t,e)=>t.parent.props?.src||t.parent.src||e.src}};var By={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:t=>{let{props:e,context:r}=t;if(e.semantic_symbols)return;if(e.html)return t.call("exec",e.html,t);let{designSystem:n,utils:o}=r,s=n&&n.svg,i=e.spriteId||r.designSystem&&r.designSystem.useSvgSprite,a=t.call("exec",e.src,t);if(!i&&a)return a;let c=p=>`<use xlink:href="#${p}" />`,f=e.spriteId;if(f)return c(f);let l=Symbol.for(a),u=s[l];return u&&s[u]||(u=s[l]=Math.random(),a&&o.init({svg:{[u]:a}},{document:r.document,emotion:r.emotion})),c(u)}};var Uy={tag:"video",controls:!0,childExtends:{tag:"source"}};var Vy={},jy={tag:"h1"},zy={tag:"h2"},Hy={tag:"h3"},qy={tag:"h4"},Wy={tag:"h5"},Gy={tag:"h6"},Ky={tag:"p"},Yy={tag:"caption"},Xy={tag:"strong",fontWeight:"700"},Qy={tag:"u"},Jy={tag:"u"},Zy={tag:"i"},tb={},eb={tag:"h6",fontSize:"B",fontWeight:500},rb={tag:"span",fontSize:"Z1"},nb={tag:"span",fontSize:"Z"},ob={tag:"b"},sb={tag:"i"},ib={tag:"data"};var ab=t=>{if(!t.context)return;let{props:e,__ref:r}=t;r.__class=Xt(e,t,{unpack:!1})},Ia={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:ab},cb={tag:"hr",margin:"C1 0"},lb={tag:"br"},fb={tag:"li"},ub={tag:"ul",childExtends:{extends:"Li"}},pb={tag:"ol",childExtends:{extends:"Li"}};var db={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{margin:"0",color:"paragraph"}},hb={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},mb={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var gb={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},props:(t,e,r)=>{let{props:n,parent:o}=t,{icons:s,useIconSprite:i,verbose:a}=r&&r.designSystem,{toCamelCase:c}=r&&r.utils,f=T=>{let{props:k}=T,$=k[".isActive"];if($)return T.call("exec",$.name||$.icon)},l=(T,k,$)=>{let{semanticIcons:P}=$&&$.designSystem,{toCamelCase:D}=$&&$.utils,j=u(T,k),tt=D(j).split(/([a-z])([A-Z])/g),pt=tt[1]?tt[0]:j.split(".")[0].split(" ")[0],_t=P&&P[pt];if(_t){let Lt=j.includes(".")?"sfsymbols."+j.split(".").slice(1).join("."):"sfsymbols";return j=_t[Lt]||_t[j.split(".")[0].split(" ")[0]],{tag:"span",semantic_symbols:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${j}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(T,k)=>{let{key:$,props:P}=T,D=T.call("exec",P.name||P.icon||$,T);return T.call("isString",D)&&D.includes("{{")&&(D=T.call("replaceLiteralsWithObjectFields",D)),T.call("isString",D)?D:$},p=u(t,e),d=c(p),h=d.split(/([a-z])([A-Z])/g),m=l(t,e,r);if(m)return m;let x;n.isActive&&(x=f(t));let _=o.props,w=_[".isActive"];o&&_&&_.isActive&&w&&w.icon&&(x=t.call("exec",w.icon||w.Icon.name||w.Icon.icon,t)),t.call("isString",x)&&x.includes("{{")&&(x=t.call("replaceLiteralsWithObjectFields",x));let C;s[x]&&(C=x),s[d]?C=d:s[h[0]+h[1]]?C=h[0]+h[1]:s[h[0]]?C=h[0]:a&&t.warn("Can't find icon:",p,C);let I=s[C],A=o&&o.props&&o.props.src||n.src;return{spriteId:i&&C,src:I||A||s.noIcon}},attr:{viewBox:"0 0 24 24"}},yb={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:t=>{let{parent:e,props:r}=t;return t.call("exec",e.props.icon||r.name||r.sfSymbols||e.props.sfSymbols,t)},icon:t=>t.call("exec",t.parent.props.icon,t.parent)},text:({props:t})=>t.text},bb={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Ka={};Mt(Ka,{default:()=>wx,getActiveRoute:()=>Ga,lastLevel:()=>To,lastPathname:()=>Ao,matchRoute:()=>Ha,parseQuery:()=>qa,parseRoutePattern:()=>za,router:()=>ne,runGuards:()=>Wa});v();v();v();v();v();var xb=(t,e)=>{let r=e.on?.[t];if(r)return r;let n=e.props;if(!n)return;let o="on"+t.charAt(0).toUpperCase()+t.slice(1);return n[o]},Sb=(t,e,r,n)=>{let o=Ye(xb(t,e),e);if(y(o)){let{__ref:s}=e;s.__eventListeners||(s.__eventListeners={}),s.__eventListeners[t]&&r.removeEventListener(t,s.__eventListeners[t]);let i=a=>{let{state:c,context:f}=e;try{let l=o.call(e,a,e,c,f,n);l&&typeof l.then=="function"&&l.catch(u=>{e.error=u,console.error("[DOMQL] Async DOM event error:",u)})}catch(l){if(e.error=l,console.error("[DOMQL] DOM event error:",l),f?.strictMode)throw l}};s.__eventListeners[t]=i,r.addEventListener(t,i)}},lu=(t,e)=>{let{node:r,on:n}=t;for(let o in n)ss.has(o)||Sb(o,t,r,e)};var fu={en:{DocumentNotDefined:{title:"Document is undefined",description:"To tweak with DOM, you should use browser."},OverwriteToBuiltin:{title:"Overwriting to builtin method",description:"Overwriting a builtin method in the window define is not possible, please choose different name"},BrowserNotDefined:{title:"Can't recognize environment",description:"Environment should be browser application, that can run Javascript"},SetQuickPreferancesIsNotObject:{title:"Quick preferances object is required",description:'Please pass a plain object with "lang", "culture" and "area" properties'},InvalidParams:{title:"Params are invalid",description:'Please pass a plain object with "lang", "culture" and "area" properties'},CantCreateWithoutNode:{title:"You must provide node",description:"Can't create DOM element without setting node or text"},HTMLInvalidTag:{title:"Element tag name (or DOM nodeName) is invalid",description:"To create element, you must provide valid DOM node. See full list of them at here: http://www.w3schools.com/tags/"},HTMLInvalidAttr:{title:"Attibutes object is invalid",description:"Please pass a valid plain object to apply as an attributes for a DOM node"},HTMLInvalidData:{title:"Data object is invalid",description:"Please pass a valid plain object to apply as an dataset for a DOM node"},HTMLInvalidStyles:{title:"Styles object is invalid",description:"Please pass a valid plain object to apply as an style for a DOM node"},HTMLInvalidText:{title:"Text string is invalid",description:"Please pass a valid string to apply text to DOM node"},ElementOnStateIsNotDefined:{title:"Element on state is not defined",description:"Please check the element object"}}},yt=(t,e,r)=>{let o;t&&typeof t=="string"&&(o=fu.en[t]);let s=o?`
31
+ `)},Gm=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http");function Km(t,e){if(!e||typeof e!="object")return t;let r=o=>{if(!Gm(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 Ym(t,e){let r=t.pages?.[e],n=g(r?.state)&&r?.state,o=r?.metadata||r?.helmet||n||{},s=t.app?.metadata||{};return t.integrations?.seo?o={...t.integrations.seo,...s,...o}:Object.keys(s).length&&(o={...s,...o}),o.title||(o.title=t.name+" / symbo.ls"||"Symbols demo"),o=Km(o,t.files),o}var Xm=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},Qm=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)}},Jm=t=>t.replace(/[^a-zA-Z0-9_]/g,""),Hi=t=>t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,r){return r===0?e.toLowerCase():e.toUpperCase()}).replaceAll(/\s+/g,""),Zm=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),qi=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),tg=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},cn=t=>{if(S(t))return t;if(y(t))return t.split(" ");if(g(t))return Object.values(t);if(ct(t))return[t]};v();var Gi={};Mt(Gi,{CLASS:()=>Tg,animation:()=>wg,breakpoints:()=>xg,cases:()=>_g,color:()=>fg,devices:()=>Sg,document:()=>bg,font:()=>ng,font_face:()=>ig,font_family:()=>og,font_family_types:()=>sg,gradient:()=>ug,grid:()=>Og,icons:()=>hg,media:()=>ag,reset:()=>Rg,semantic_icons:()=>mg,sequence:()=>Pe,shadow:()=>dg,spacing:()=>lg,svg:()=>vg,svg_data:()=>Cg,templates:()=>Eg,theme:()=>pg,timing:()=>yg,typography:()=>Wi,unit:()=>eg});var Pe={"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 eg={default:"em"};var rg={browserDefault:16,base:16,type:"font-size",ratio:Pe["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},Wi=rg;var ng={};var og={},sg={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},ig={};var ag={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var cg={base:Wi.base,type:"spacing",ratio:Pe.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},lg=cg;var fg={},ug={};var pg={};var dg={};var hg={},mg={};var gg={default:150,base:150,type:"timing",ratio:Pe["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},yg=gg;var bg={};var xg={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},Sg={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 _g={};var wg={};var vg={},Cg={};var Eg={};var kg={},Og=kg;var Ag={},Tg=Ag;var Rg={};var Ig={},Pg={},ln=Gi,fn={},Ng=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase()),Dg=t=>t.replace(/([A-Z])/g,"_$1").toUpperCase();for(let t in ln){let e=t.toLowerCase();fn[e]=ln[t];let r=Ng(e);r!==e&&(fn[r]=ln[t]),e!==t&&(fn[t]=ln[t]);let n=Dg(t);n!==t&&(fn[n]=ln[t])}var Ki={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",CSS_VARS:Ig,CSS_MEDIA_VARS:Pg,...fn},Fg=z(Ki),Ne={active:"0",0:Ki},X0=t=>(Ot(t)&&(Ne.active=t),Ne[t||Ne.active]),E=t=>Ne[t||Ne.active]||Ki,Ef=t=>{if(g(t))return Ne.active="1",Ne[1]=U(t,z(Fg)),t};var De={"-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"},Yi=(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,e.vars[n]=s+e.unit},Fe=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},Xi=(t,e)=>{let{base:r,type:n,unit:o}=e,s=(rn(o)?1:r)+o;if(t===0)return s;let i="--"+(n&&n.replace(".","-")),a=`${i}-ratio`;if(t>0){let c=De[t-1];return`calc(var(${i}-${c}) * var(${a}))`}if(t<0){let c=De[t+1];return`calc(var(${i}-${c}) / var(${a}))`}},kf=(t,e,r,n)=>{let{type:o}=n,i=t===2&&e.length===2?t+1:t,c=`${"--"+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${c+i}))`},Qi=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},Ji=(t,e)=>Qi(t,e).map(r=>r/t),Zi=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,f=~~(o*s)-~~o,l,[u,p,d]=Qi(o,s);f>16?l=[u,p,d]:l=[u,d],l.forEach((h,m)=>{let x=~~(h/n*1e3)/1e3,_=i+(m+1),w=a+(m+1)/10,C=kf(m+1,l,i,e),I={key:r+(m+1),variable:_,value:h,scaling:x,scalingVariable:C,index:w};Yi(I,e)})},$g=(t,e,r)=>e*Math.pow(r,t),Kt=t=>{let{type:e,base:r,ratio:n,range:o,subSequence:s}=t,i=Math.abs(o[0])+Math.abs(o[1]),a="--"+(e&&e.replace(".","-"))+"-";for(let c=0;c<=i;c++){let f=o[1]-c,l=De[f],u=$g(f,r,n),p=~~(u/r*100)/100,d=a+l,h=Xi(f,t),m={key:l,variable:d,value:u,base:r,scaling:p,scalingVariable:h,ratio:n,index:f};Yi(m,t),s&&Zi(m,t)}return t},Lg=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=y(e)?e:De[e],a=y(e)?Object.entries(De).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},f=n*Math.pow(o,a),l=~~(f/n*100)/100,p="--"+(r&&r.replace(".","-"))+"-"+i,d=Xi(a,t),h={key:i,variable:p,value:f,base:n,scaling:l,scalingVariable:d,ratio:o,index:a};return Yi(h,c),s&&Zi(h,c),c},ta=(t="A",e)=>{let r=E(),{unit:n}=r;if(y(t)&&nt(t))return`var(${t})`;let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(nn.some(w=>t.includes(w))||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let u=`--${qi(e.type.replace(".","-"))}-`,p=t.toUpperCase(),d=p.slice(0,1)==="-"?"-":"",h=d?p.slice(1):p,m="";h.includes("_")&&(m="_"+h.split("_")[1].toLowerCase(),h=h.split("_")[0]);let x=w=>a.test(w)?`var(${u}${w}${m})`:w;if(h.includes("+")){let[w,C]=h.split("+"),I=`${x(w)} + ${x(C)}`;return d?`calc((${I}) * -1)`:`calc(${I})`}else if(h.includes("*")){let[w,C]=h.split("*"),I=`${x(w)} * ${x(C)}`;return d?`calc((${I}) * -1)`:`calc(${I})`}else if(h.includes("-")){let[w,C]=h.split("-"),I=`${x(w)} - ${x(C)}`;return d?`calc((${I}) * -1)`:`calc(${I})`}if(!o[h]&&h.length===2&&(r.verbose&&console.warn(h,"- value is not found because `subSequence` is set to false"),h=h.slice(0,1)),i||r.useVariable){let w=`var(${u}${h}${m})`;return d?`calc(${w} * -1)`:w}let _=o?o[h]:null;return _?s==="ms"||s==="s"?d+_.val+s:d+_.scaling+s:console.warn("can't find",o,h)},Of=(t,e)=>{let r=["+","-","*","/",","].filter(n=>t.includes(n+" "));return r.length?r.map(n=>t.split(n+" ").map(i=>i.trim()).map(i=>ta(i,e)).join(" "+n+" ")).join(""):t},be=(t,e,r,n)=>{if(typeof t!="string")return E().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!n&&t.includes("(")){let s=Fe(t);n=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=Of(t,r):t=ta(t,r),{[e]:n?`${n}(${t})`:t}},Af=(t,e)=>De[t-e],ea=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=Af(e,o);return r[s]})};v();var Mg=(t,e)=>{let r=E(),{CSS_VARS:n}=r;N(t.value)||(n[t.var]=t.value)},ra=(t,e,r)=>{let n=E(),{unit:o}=n,s=e.unit||o.default,{base:i,ratio:a,type:c}=e,f="--"+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let l=`${f}-ratio`;t[l]=a;let[u,p,d]=Ji(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${u/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${p/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${d/a})`},$e=(t,e={})=>{let r=E(),{unit:n,timing:o,CSS_VARS:s}=r,i=t.unit||n.default,{mediaRegenerate:a,sequence:c,scales:f}=t;a||ra(s,t,e);for(let l in c){let u=c[l],p=(t.type===o.type?c[l].val:f[l])+i;if(!a){s[u.variable+"_default"]=p,s[u.variable]=u.scalingVariable;continue}e.useDefault===!1?s[u.variable]=p:(s[u.variable+"_default"]=p,s[u.variable]=`var(${u.variable+"_default"})`)}},yr=(t,e,r={})=>{let n=E(),{unit:o,media:s,CSS_VARS:i}=n,a=e.slice(1),c=t.unit||o.default,{mediaRegenerate:f}=t,{sequence:l,scales:u}=t[e],p=s[a];if(!p&&n.verbose&&console.warn("Can't find media query ",p),!f){let d=i[`@media ${p}`];d||(d=i[`@media ${p}`]={}),ra(d,t[e],r);return}for(let d in l){let h=l[d],m=(rn(c)?u[d]:l[d].val)+c;!p&&n.verbose&&console.warn("Can't find query ",p);let x=i[`@media ${p}`];x||(x=i[`@media ${p}`]={}),x[h.variable]=`var(${h.variable+"_"+a})`,i[h.variable+"_"+a]=m}};v();var Bg=Mr(),po=t=>{let e=E(),r="";for(let n in t)e.__svg_cache[n]||(e.__svg_cache[n]=!0,r+=t[n]);return r},Ug=t=>{let e=t.default||t;if(!y(e)){Bg&&console.warn("parseRootAttributes:",e,"is not a string");return}let r=e.match(/<svg\s+(.*?)>/);return!r||!r[1]?{}:r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm).reduce((s,i)=>{let[a,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{})},Vg=(t,e)=>{let r=/id="([^"]*)"/,n=/url\(#([^)]*)\)/g,o=t.match(/id="([^"]*)"/g),s=t;return S(o)&&o.forEach(()=>{let i=Math.floor(Math.random()*1e5);s=t.replace(r,`id="${e}-${i}"`).replace(n,`url(#${e}-${i})`)}),s},na=(t,e)=>{let r=Ug(e),{width:n,height:o}=r,s=r.viewBox||`0 0 ${n||24} ${o||24}`,c=Vg(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${s}"`);return c=c.replace(/width="[^"]*"/,""),c=c.replace(/height="[^"]*"/,""),c=c.replace("</svg","</symbol"),c};var yo={};Mt(yo,{appendSVGSprite:()=>xa,appendSvgIconsSprite:()=>_a,applyDocument:()=>ya,applyHeadings:()=>Nf,applyReset:()=>wa,applySpacingSequence:()=>da,applyTimingSequence:()=>ga,applyTypographySequence:()=>fa,checkIfBoxSize:()=>pa,getColor:()=>J,getFontFamily:()=>la,getFontSizeByKey:()=>ua,getMediaColor:()=>Et,getMediaTheme:()=>Yt,getShadow:()=>ma,getSpacingBasedOnRatio:()=>Le,getSpacingByKey:()=>at,getTheme:()=>sa,getTimingByKey:()=>Ut,getTimingFunction:()=>Dt,runThroughMedia:()=>Pf,setColor:()=>xr,setFont:()=>ca,setFontFamily:()=>mo,setGradient:()=>Sr,setMediaTheme:()=>aa,setSVG:()=>go,setShadow:()=>_r,setSvgIcon:()=>Sa,setTheme:()=>ia,splitSpacedValue:()=>ha});v();var J=(t,e,r)=>{let n=r||E();if(!y(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(nt(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(S(t))[o,s,i]=t;else{let u=dr(t);if(!u)return 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,f=a[o]||c[o];if(!f)return n.verbose&&console.warn("Can't find color ",o),t;e&&(f[e]?f=f[e]:n.verbose&&console.warn(t," - does not have ",e));let l=f.rgb;return l?(i&&!f[i]&&(l=on(l,i),f[i]={rgb:l,var:`${f.var}-${i}`}),f[i]&&(l=f[i].rgb),s?`rgba(${l}, ${s})`:i?`rgba(${l}, 1)`:n.useVariable?`var(${f.var})`:`rgb(${l})`):n.useVariable?`var(${f.var})`:f.value},Et=(t,e,r)=>{let n=r||E();if(e||(e=n.globalTheme==="auto"?null:n.globalTheme),!y(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(nt(t))return`var(${t})`;let o;if(S(t))o=t[0];else{let f=dr(t);if(!f)return t;if(f.passthrough)return f.passthrough;if(f.cssVar)return`var(${f.cssVar})`;o=f.name}let{color:s,gradient:i}=n,a=s[o]||i[o],c=g(a);if(c&&a.value)return J(t,`@${e}`,r);if(c){if(e)return J(t,`@${e}`,r);{let f={};for(let l in a){let u=n.media[l.slice(1)],p="@media "+(u==="print"?`${u}`:`screen and ${u}`);f[p]=J(t,l,r)}return f}}else return n.verbose&&console.warn("Can't find color",t),t},xr=(t,e,r)=>{let n=E();if(y(t)&&nt(t)){let d=t.slice(2);if(t=J(d),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let h=d.split(" "),m=n.color[h[0]];if(m&&m.value){let x=m.rgb,_=h[1]!==void 0?h[1]:"1",w=h[2];w&&(x=on(x,w)),t=`rgba(${x}, ${_})`}else{let x=h[2],_=h[1]!==void 0?h[1]:"1";if(x)try{let w=ge(h[0]);w&&w.length>=3?t=`rgba(${on(w.slice(0,3).join(", "),x)}, ${_})`:t=h[0]}catch{t=h[0]}else t=h[0]}}}if(S(t))return{"@light":xr(t[0],e,"light"),"@dark":xr(t[1],e,"dark")};if(g(t)){let d={};for(let h in t)d[h]=xr(t[h],e,h.slice(0,1)==="@"?h.slice(1):h);return d}let o=`--color-${e}`+(r?`-${r}`:""),s=ge(t.value||t),[i,a,c,f=1]=s,l=parseFloat(f.toFixed(2)),u=`${i}, ${a}, ${c}`,p=`rgba(${u}, ${l})`;return n.useVariable&&(n.CSS_VARS[o]=p),{var:o,rgb:u,alpha:l,value:p}},Sr=(t,e,r)=>{let n=E();if(y(t)&&nt(t)&&(t=J(t.slice(2))),S(t))return{"@light":Sr(t[0],e,"light"),"@dark":Sr(t[0],e,"dark")};if(g(t)){let s={};for(let i in t)s[i]=Sr(t[i],e,i.slice(0,1)==="@"?i.slice(1):i);return s}let o=`--gradient-${e}`+(r?`-${r}`:"");return n.useVariable&&(n.CSS_VARS[o]=t.value||t),{var:o,value:t.value||t}};v();var ho=t=>{let e={},{state:r,media:n,helpers:o,...s}=t;return Object.keys(s).map(a=>{let f=["color","Color","background","border"].some(l=>a.includes(l));return e[a]=f?J(t[a]):t[a]}),e},un=t=>(t.value||(t.value=ho(t)),t.value),sa=(t,e)=>{let r=E();if(r.useVariable)return Yt(t,e);let n=r.theme;if(y(t)){let[o,s]=t.split(" "),i=n[o];if(i){if(!s&&!e)return un(i);t=[o,s||e]}}if(N(t)&&t[1]){let o=t[0],s=t[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return un(a[s]);if(i&&i[s])return un(i[s]);if(c&&c[s])return un(c[s])}else if(g(t))return ho(t)},jg=(t,e,r)=>{if(g(e))t.variants.inverse.value=ho(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},zg=(t,e,r,n)=>{let o=sa(r);n[`&:${e}`]=o,g(r)&&!r.value&&(r.value=o)},Hg=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return zg(t,o,s,e),t}),t):void 0},qg=(t,e,r,n)=>{let o=sa(r);n[`@media (prefers-color-scheme: ${e})`]=o,g(r)&&!r.value&&(r.value=o)},Wg=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&qg(t,o,s,e),o==="inverse"&&jg(t,s,e),t}),t):void 0},Gg=(t,e)=>{let r=E(),{helpers:n}=t;return n?(Object.keys(n).map(s=>{let i=n[s];return y(i)?n[s]=r.theme[i]:un(n[s]),t}),t):void 0},ia=(t,e)=>{if(E().useVariable)return aa(t,e);let{state:n,media:o,helpers:s}=t,i=ho(t,e),a=`--theme-${e}`;return Hg(t,i),Wg(t,i),Gg(t,i),{var:a,value:i,state:n,media:o,helpers:s}};var oa=(t,e,r)=>{let{CSS_VARS:n}=r;r.CSS_MEDIA_VARS||(r.CSS_MEDIA_VARS={});let o=r.CSS_MEDIA_VARS,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let c in t)if(t[c])for(let f of Object.keys(t[c]))a.add(f);for(let c of a){let f=c.slice(0,1),l=Object.values(t).some(u=>N(u?.[c]));if(f==="."&&l){let u=c.slice(1),p={};for(let d in t)N(t[d]?.[c])&&(p[d]=t[d][c]);i[c]=oa(p,`${e}-${u}`,r)}else if(f===":"&&l){let u=c.replace(/^:+/,""),p={};for(let d in t)N(t[d]?.[c])&&(p[d]=t[d][c]);i[c]=oa(p,`${e}-${u}`,r)}else if(f!=="@"&&f!=="."&&f!==":"){let u=`--theme-${e}-${c}`;if(s==="auto")for(let p in t){let d=t[p]?.[c];if(d===void 0)continue;let h=J(d,`@${p}`);if(h===void 0)continue;let m=`[data-theme="${p}"]`;if(o[m]||(o[m]={}),o[m][u]=h,p==="dark"||p==="light"){let x=`@media (prefers-color-scheme: ${p})`;o[x]||(o[x]={}),o[x][u]=h}}else{let p=String(s).replace(/^'|'$/g,""),d=t[p]?.[c];if(d!==void 0){let h=J(d,`@${p}`);h!==void 0&&(n[u]=h)}}i[c]=`var(${u})`,i[`.${c}`]={[c]:i[c]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},aa=(t,e,r,n)=>{let o=E(),{CSS_VARS:s}=o,i={value:t},a=!r&&!n;if(N(t)){if(a&&o.useVariable){let c={};for(let f in t)f.startsWith("@")&&N(t[f])&&(c[f.slice(1)]=t[f]);if(Object.keys(c).length){let f=oa(c,e,o);Object.assign(i,f)}}for(let c in t){let f=c.slice(0,1),l=t[c];if(f==="@"||f===":"||f==="."){let u=f==="@"&&c;i[c]=aa(l,e,c,n||u)}else if(!a){let u=J(l,n),p=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],d=p.length?"-"+p.join("-"):"",h=`--theme-${e}${d}-${c}`;o.useVariable?(o.useThemeSuffixedVars&&(s[h]=u),i[c]=`var(${h})`):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(y(t)&&nt(t)){let f=o.theme[t.slice(2)];return Yt(f,n)}return i},Rf=t=>{let e=E(),r={};for(let n in t){let o=n.slice(0,1);if(N(t[n])){if(o==="@")continue;o===":"&&(r[`&${n}`]=Rf(t[n]))}else r[n]=t[n]}return r},If=(t,e)=>{let r=e.shift();return t[r]?If(t[r],e):t},Tf=(t,e)=>S(e)?If(t,e):y(e)&&t[e]?t[e]:t;var Yt=(t,e)=>{let r=E();if(y(t)&&nt(t)&&(t=Yt(t.slice(2))),!t||!y(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[n,...o]=S(t)?t:t.split(" "),s=r.theme[n];return s&&o.length?s=Tf(s,o):s&&e&&(s=Tf(s,e)),Rf(s)};v();var ca=(t,e)=>{let r=E(),n=`--font-${e}`;if(!t||S(t)&&!t[0])return;let o;if(t.isVariable){let s=Ie(t.url,r.files)||t.url;co(s)?o=lo(s):o=mr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])o=an(e,t,r.files);else{let s=Ie(t.url,r.files)||t.url;o=mr(e,s)}return{var:n,value:t,fontFace:o}},la=(t,e)=>{let r=E(),{font_family:n}=r;return sn(e||n,t)},mo=(t,e)=>{let r=E(),{font_family:n,font_family_types:o}=r,{value:s,type:i}=t;t.isDefault&&(n.default=e),g(s)&&(s=cn(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};v();var Pf=t=>{let e=E(),{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:f,base:l,ratio:u,range:p,subSequence:d,h1Matches:h,unit:m}=t;Y(i,{type:f,base:l,ratio:u,range:p,subSequence:d,h1Matches:h,unit:m});let x=n[c],_="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[_]={fontSize:i.base/r.browserDefault+m},!a){yr(t,o);continue}Y(i,{sequence:{},scales:{},templates:{},vars:{}}),Kt(i),yr(t,o)}},Nf=t=>{let e=E();if(t.h1Matches){let r=t.unit,n=ea(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}}}},fa=()=>{let t=E(),{typography:e}=t;Kt(e),Nf(e),$e(e),Pf(e)},ua=t=>{let e=E(),{typography:r}=e;return be(t,"fontSize",r)};v();var Kg=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:f,unit:l}=t;Y(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:f,unit:l,sequence:{},scales:{},templates:{},vars:{}}),Kt(r),yr(t,e)}},pa=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),n=e.includes("border")||e.includes("outline");return r&&!n},da=()=>{let t=E(),{spacing:e}=t;Kt(e),$e(e),Kg(e)},Yg=t=>{let e=E(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:Kt(t)},at=(t,e="padding",r,n)=>{let o=Yg(r);if(y(t)&&!n&&t.includes("(")){let i=Fe(t);n=i[0],t=i[1]}let s=n?[t]:cn(t);if(S(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=(f,l)=>be(s[l],e+f+i,o,n);return a[s.length].map((f,l)=>c(f,l))}return be(t,e,o,n)}},Le=(t,e,r,n)=>{let o=E(),{spacing:s}=o,i=r||t[e];if(!n&&y(i)&&i.includes("(")){let a=Fe(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=applyCustomSequence(t);return at(i,e,a,n)}return at(i,e,s,n)},ha=t=>{let e=r=>{let n=["+","-","*","/"].includes(r),o=nn.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(" ")};v();var _r=(t,e,r,n)=>{let o=E();if(S(t))return{"@light":_r(t[0],e,"light"),"@dark":_r(t[1],e,"dark")};if(g(t)){let i={};for(let a in t)i[a]=_r(t[a],e,a.startsWith("@")?a.slice(1):a);return i}y(t)&&!Zt.test(t)&&(t=hr(t).map(i=>(i=i.trim(),i.split(/\s+/).map(a=>{if(a=a.trim(),!a)return"";if(a.startsWith("--"))return`var(${a})`;let c=J(a);if(ye(c))return c;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let f=at(a,"shadow");return f&&f.shadow?f.shadow:a}).join(" "))).join(", "));let s=`--shadow-${e}`+(r?`-${r}`:"");return o.useVariable&&(o.CSS_VARS[s]=t),{var:s,value:t}},ma=(t,e)=>{let r=E();if(e||(e=r.globalTheme),!y(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(nt(t))return`var(${t})`;let[n]=S(t)?t:t.split(" "),s=r.shadow[n],i=g(s);if(!s)return r.verbose&&console.warn("Can't find color ",n),t;if(e){if(s[e])return s[e].value;r.verbose&&console.warn(t," - does not have ",e)}if(i&&s.value)return s.value;if(i){let a={};for(let c in s){let f=r.media[c.slice(1)],l="@media "+(f==="print"?`${f}`:`screen and ${f}`);a[l]=s.value}return a}return r.verbose&&console.warn("Can't find color",t),t};var ga=()=>{let t=E(),{timing:e}=t;Kt(e),$e(e)},Dt=t=>{let e=E(),{timing:r}=e;return r[t]||r[Hi(t)]||t},Ut=(t,e="timing")=>{let r=E(),{timing:n}=r;return be(t,e,n)};v();var ya=()=>{let t=E(),{document:e,font_family:r,theme:n,typography:o}=t;return Y(e,{theme:n.document,fontFamily:sn(r),fontSize:o.base,lineHeight:o.lineHeight})};v();var ba={document:L},go=(t,e)=>{let r=E();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?na(e,t):t},xa=(t,e=ba)=>{let r=E(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=r.svg[o];Ff(n,e)},Sa=(t,e)=>{let r=E();return r.useIconSprite&&!r.semantic_icons?.[e]?go(t,e):t},_a=(t,e=ba)=>{let r=E(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=r.icons[o];Ff(n,e)},Df=(t={isRoot:!0})=>{if(!L||!L.createElementNS)return;let e=L.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(e.setAttribute("aria-hidden","true"),e.setAttribute("width","0"),e.setAttribute("height","0"),e.setAttribute("style","position:absolute"),e.setAttribute("id","svgSprite")),e},Ff=(t,e=ba)=>{let r=E(),n=e.document||L;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),po(t);let o=n.querySelector("#svgSprite"),s=po(t);if(o){let i=Df({isRoot:!1});i.innerHTML=s,o.append(...i.children)}else{let i=Df();i&&i.nodeType&&(i.innerHTML=s,n.body.prepend(i))}};v();var wa=(t={})=>{let e=E(),{reset:r,typography:n,document:o}=e;if(r){if(r[":root"]){let c=r,f=n.templates;c.body={...e.useDocumentTheme?Yt("document"):{},...f.body},c.h1=f.h1,c.h2=f.h2,c.h3=f.h3,c.h4=f.h4,c.h5=f.h5,c.h6=f.h6}let{body:s,...i}=n.templates,a=e.useDocumentTheme?Yt("document"):{};return r.html&&it(r.html,a),U(Y(r,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+e.unit.default,...i,...s},a:{color:"currentColor"},fieldset:{border:0,padding:0,margin:0},"select, input":{fontFamily:o.fontFamily}})}};v();var Xg=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),Qg=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),Jg=t=>Xg.has(t),xe=t=>{let e=t+"";if(Zt.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(nt(o))return`var(${o})`;if(Jg(o)||/^\d/.test(o)||o==="0")return o;let s=J(o);if(ye(s))return s;let i=at(o,"border");return i&&i.border?i.border:o}).join(" ")},$f=t=>Zt.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(nt(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=J(e);return ye(r)?r:e}).join(" "),Lf=(t,e)=>ma(t,e),va=(t,e)=>Zt.test(t)?t:hr(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(nt(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=J(n);if(ye(o)){let i=Et(n,e);return g(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=at(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),Ca=(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=hr(o).map(c=>(c=c.trim(),c.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||Qg.has(l)||l==="transparent"||Zt.test(l))return l;let u=J(l);return ye(u)?u:l}).join(" ")));return n+a.join(", ")+s},Mf=(t,e)=>{let r=E();return t.split(", ").map(n=>nt(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?Ca(n,e):r.gradient[t]?{backgroundImage:Et(t,e||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!dr(n)?`url(${n})`:n).join(" ")},Bf=t=>y(t)&&t.split(" ").map(e=>at(e,"gap").gap).join(" "),Zg=t=>{let e=t.split(" ");return e.length?e.map(r=>nt(r)?`var(${r})`:r.length<3||r.includes("ms")?Ut(r).timing||r:Dt(r)?Dt(r):r).join(" "):t},wr=(t,e,r)=>{if(y(t))return t.split(",").map(n=>Ut(n).timing||n).join(",")},bo=t=>{let e=t.split(",");if(e.length)return e.map(Zg).join(",")};function ot(t,e,r={},n={}){let o=O.call(this,e||r[t]);if(o==null)return;let s;if(y(o)){if(o.includes("(")){let c=Fe(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=pa(t);!i&&a&&!n.ratio&&(o=ha(o))}return n.ratio?Le(r,t,o,s):at(o,t,void 0,s)}var V=(t,e=null,r)=>ot(t,e,r,{ratio:!0}),Ea=(t,e,r)=>{if(y(t))return{borderRadius:t.split(" ").map((n,o)=>Le(e,r,n)[r]).join(" ")}};v();var ty=(t,e)=>b(t)?t():t,Ft=(t,e)=>t,Uf={color:xr,gradient:Sr,font:ca,font_family:mo,fontfamily:mo,theme:ia,icons:Sa,semantic_icons:Ft,semanticicons:Ft,svg:go,svg_data:Ft,typography:Ft,cases:ty,shadow:_r,spacing:Ft,media:Ft,grid:Ft,class:Ft,timing:Ft,reset:Ft,unit:Ft,animation:Ft},ey=(t,e,r)=>{let n=E(),o=t.toLowerCase(),s=n[o]||n[t];if(Uf[o])try{let i=Uf[o](e,r);return s[r]=i,s}catch(i){n.verbose&&console.warn("Error setting",o,"value",e,r,i)}n.verbose&&console.warn("Can not find",o,"method in scratch")},ry=(t,e)=>{let r=E(),n=t.toLowerCase();return Object.keys(e).forEach(s=>{try{return ey(n,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",e[s],s,i)}}),r[n]||r[t]},ny={},pn=(t,e=ny)=>{let r=E(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:f,globalTheme:l,useDocumentTheme:u,useDefaultConfig:p,semanticIcons:d,SEMANTIC_ICONS:h,semantic_icons:m,files:x,..._}=t;e.newConfig&&(r=Ef(e.newConfig)),x!==void 0&&(r.files=x),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),f!==void 0&&(r.useIconSprite=f),u!==void 0&&(r.useDocumentTheme=u),l!==void 0&&(r.globalTheme=l),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p);let w=d||h||m;w!==void 0&&(r.semantic_icons=w,r.semanticIcons=r.semantic_icons,r.SEMANTIC_ICONS=r.semantic_icons),r.verbose&&console.log(r),r.__svg_cache||(r.__svg_cache={});let C=Object.keys(_),I=new Set(C);if(C.forEach(A=>{let T=A.toLowerCase();T!==A&&I.has(T)&&U(_[T],_[A])}),C.map(A=>{let T=A.toLowerCase();if(!(T!==A&&I.has(T)))return ry(A,_[A])}),_.typography||_.TYPOGRAPHY)try{fa()}catch(A){r.verbose&&console.warn("Error applying typography sequence",A)}if(_.spacing||_.SPACING)try{da()}catch(A){r.verbose&&console.warn("Error applying spacing sequence",A)}if(_.timing||_.TIMING)try{ga()}catch(A){r.verbose&&console.warn("Error applying timing sequence",A)}return ya(),wa(),r};var oy=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],sy=["none","forwards","backwards","both"],iy=["normal","reverse","alternate","alternate-reverse"],ay=["running","paused"],cy=t=>/^[\d.]+m?s$/.test(t),ka=(t,e)=>{let{emotion:r}=e.context,{keyframes:n}=r||Ct;if(g(t))return{animationName:n(t)};let{ANIMATION:o}=e.context&&e.context.designSystem,s=o[t];return n(s)},ly=(t,e)=>{let{ANIMATION:r}=e.context&&e.context.designSystem||{},n=t.split(/\s+/),o=null,s=[],i=null,a=null,c=null,f=null,l=null;for(let u of n)r&&r[u]?o=u:cy(u)?s.push(u):oy.includes(u)||u.startsWith("cubic-bezier")||u.startsWith("steps(")?i=u:u==="infinite"||/^\d+$/.test(u)?a=u==="infinite"?u:Number(u):iy.includes(u)?c=u:sy.includes(u)?f=u:ay.includes(u)?l=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:f,playState:l}},Vf={animation:(t,e)=>{if(y(t)&&t.includes(" ")){let r=ly(t,e);return{animationName:ka(r.name||t,e),animationDuration:r.durations[0]||Ut(e.props.animationDuration||"A").timing,animationDelay:r.durations[1]||Ut(e.props.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Dt(e.props.animationTimingFunction||"ease"),animationFillMode:r.fillMode||e.props.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:e.props.animationIterationCount||1,animationPlayState:r.playState||e.props.animationPlayState,animationDirection:r.direction||e.props.animationDirection}}return{animationName:ka(t,e),animationDuration:Ut(e.props.animationDuration||"A").timing,animationDelay:Ut(e.props.animationDelay||"0s").timing,animationTimingFunction:Dt(e.props.animationTimingFunction||"ease"),animationFillMode:e.props.animationFillMode||"both",animationIterationCount:e.props.animationIterationCount||1,animationPlayState:e.props.animationPlayState,animationDirection:e.props.animationDirection}},animationName:(t,e)=>({animationName:ka(t,e)}),animationDuration:t=>({animationDuration:Ut(t).timing}),animationDelay:t=>({animationDelay:Ut(t).timing}),animationTimingFunction:t=>({animationTimingFunction:Dt(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};v();var jf={show:(t,e,r,n)=>n.utils.exec(t,e,r)===!1&&{display:"none !important"},hide:(t,e,r,n)=>!!n.utils.exec(t,e,r)&&{display:"none !important"},height:(t,{props:e})=>V("height",t,e),width:(t,{props:e})=>V("width",t,e),boxSizing:t=>K(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("height",e),...ot("width",r||e)}},inlineSize:(t,{props:e})=>V("inlineSize",t,e),blockSize:(t,{props:e})=>V("blockSize",t,e),minWidth:(t,{props:e})=>V("minWidth",t,e),maxWidth:(t,{props:e})=>V("maxWidth",t,e),widthRange:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("minWidth",e),...ot("maxWidth",r||e)}},minHeight:(t,{props:e})=>V("minHeight",t,e),maxHeight:(t,{props:e})=>V("maxHeight",t,e),heightRange:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("minHeight",e),...ot("maxHeight",r||e)}},size:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...V("inlineSize",e),...V("blockSize",r||e)}},minBlockSize:(t,{props:e})=>V("minBlockSize",t,e),minInlineSize:(t,{props:e})=>V("minInlineSize",t,e),maxBlockSize:(t,{props:e})=>V("maxBlockSize",t,e),maxInlineSize:(t,{props:e})=>V("maxInlineSize",t,e),minSize:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("minInlineSize",e),...ot("minBlockSize",r||e)}},maxSize:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("maxInlineSize",e),...ot("maxBlockSize",r||e)}},borderWidth:(t,{props:e})=>V("borderWidth",t,e),padding:(t,{props:e})=>V("padding",t,e),scrollPadding:(t,{props:e})=>V("scrollPadding",t,e),paddingInline:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("paddingInlineStart",e),...ot("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("paddingBlockStart",e),...ot("paddingBlockEnd",r||e)}},paddingTop:(t,{props:e})=>V("paddingBlockStart",t,e),paddingBottom:(t,{props:e})=>V("paddingBlockEnd",t,e),paddingLeft:(t,{props:e})=>V("paddingInlineStart",t,e),paddingRight:(t,{props:e})=>V("paddingInlineEnd",t,e),paddingBlockStart:(t,{props:e})=>V("paddingBlockStart",t,e),paddingBlockEnd:(t,{props:e})=>V("paddingBlockEnd",t,e),paddingInlineStart:(t,{props:e})=>V("paddingInlineStart",t,e),paddingInlineEnd:(t,{props:e})=>V("paddingInlineEnd",t,e),margin:(t,{props:e})=>V("margin",t,e),marginInline:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("marginInlineStart",e),...ot("marginInlineEnd",r||e)}},marginBlock:(t,{props:e})=>{if(!y(e.marginBlock))return;let[r,n]=e.marginBlock.split(" ");return{...ot("marginBlockStart",r),...ot("marginBlockEnd",n||r)}},marginInlineStart:(t,{props:e})=>V("marginInlineStart",t,e),marginInlineEnd:(t,{props:e})=>V("marginInlineEnd",t,e),marginBlockStart:(t,{props:e})=>V("marginBlockStart",t,e),marginBlockEnd:(t,{props:e})=>V("marginBlockEnd",t,e),gap:t=>({gap:Bf(t)}),columnGap:(t,{props:e})=>Le(e,"columnGap",t),rowGap:(t,{props:e})=>Le(e,"rowGap",t),flexWrap:(t,{props:e})=>({display:"flex",flexFlow:(t||"row").split(" ")[0]+" "+e.flexWrap}),flexFlow:(t,{props:e})=>{let{reverse:r}=e;if(!y(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(!y(t))return;let[e,r]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:r}},round:(t,{props:e})=>Ea(t||e.borderRadius,e,"round"),borderRadius:(t,{props:e})=>Ea(t||e.round,e,"borderRadius")};var zf={fontSize:t=>ua(t)||t,fontFamily:t=>({fontFamily:la(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t})};var Oa={overflow:t=>({overflow:t,scrollBehavior:"smooth"}),cursor:(t,e,r,n)=>{if(!t)return;let o=n.files&&n.files[t];return o&&o.content&&(t=`url(${o.content.src})`),{cursor:t}}};var Hf={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:t.split(" ").map(r=>at(r,"k").k).join(" ")}},left:t=>at(t,"left"),top:t=>at(t,"top"),right:t=>at(t,"right"),bottom:t=>at(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>at(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=>at(r,"k").k);return{left:e[0],right:e[1]||e[0]}}};v();var Vt=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},qf={theme:(t,e)=>{let{props:r}=e;if(t)return r.themeModifier?Yt(t,`@${r.themeModifier}`):Yt(t)},color:(t,e)=>{let r=Vt(e);if(t)return{color:Et(t,r)}},background:(t,e)=>{let r=Vt(e);if(t)return y(t)&&t.includes("gradient")?{background:Ca(t,r)}:{background:Et(t,r)}},backgroundColor:(t,e)=>{let r=Vt(e);if(t)return{backgroundColor:Et(t,r)}},backgroundImage:(t,e,r,n)=>{let o=Vt(e);if(!t)return;let s=n.files&&n.files[t];return s&&s.content&&(t=s.content.src),{backgroundImage:Mf(t,o)}},textStroke:t=>({WebkitTextStroke:$f(t)}),outline:t=>({outline:xe(t)}),outlineOffset:(t,{props:e})=>V("outlineOffset",t,e),border:t=>({border:xe(t)}),borderColor:(t,e)=>{let r=Vt(e);if(t)return{borderColor:Et(t,r)}},borderTopColor:(t,e)=>{let r=Vt(e);if(t)return{borderTopColor:Et(t,r)}},borderBottomColor:(t,e)=>{let r=Vt(e);if(t)return{borderBottomColor:Et(t,r)}},borderLeftColor:(t,e)=>{let r=Vt(e);if(t)return{borderLeftColor:Et(t,r)}},borderRightColor:(t,e)=>{let r=Vt(e);if(t)return{borderRightColor:Et(t,r)}},borderLeft:t=>({borderLeft:xe(t)}),borderTop:t=>({borderTop:xe(t)}),borderRight:t=>({borderRight:xe(t)}),borderBottom:t=>({borderBottom:xe(t)}),shadow:(t,e)=>{let r=Vt(e);if(t)return{boxShadow:Lf(t,r)}},boxShadow:(t,e)=>{if(!y(t))return;let[r,n]=t.split("!importan"),o=Vt(e),s=n?" !important":"";return{boxShadow:va(r.trim(),o)+s}},textShadow:(t,{context:e})=>({textShadow:va(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:xe(t)})};var Wf={transition:t=>({transition:bo(t)}),transitionDuration:t=>({transitionDuration:wr(t)}),transitionDelay:t=>({transitionDelay:wr(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Dt(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};v();var Gf={flow:(t,e)=>{let{props:r}=e,{reverse:n}=r;if(!y(t))return;let[o,s]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(o="row"),(t.startsWith("y")||t==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&n?"-reverse":"")+" "+(s||"")}},wrap:(t,{props:e})=>({display:"flex",flexWrap:t}),align:(t,{props:e})=>{let[r,n]=t.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var Kf={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 dn={...Vf,...jf,...zf,...Oa,...Oa,...Hf,...qf,...Wf,...Gf,...Kf};var Yf=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);var fy=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=n.designSystem.media[t.slice(1)],s=Xt(e,r);return{[o?"@media "+(o==="print"?o:`screen and ${o}`):t]:s}},Xf=(t,e,r)=>({[t]:Xt(e,r)}),hn=(t,e,r)=>({[`&${t}`]:Xt(e,r)}),uy=(t,e,r)=>{let{cases:n}=r.context?.designSystem||{},o=t.slice(1);if(!n?.[o]&&!r.props[o])return Xt(e,r)},py=(t,e,r)=>({[t]:e}),dy=(t,e,r)=>{let n=t.slice(1);if(r.props[n]===!0||r.state[n]||r[n])return Xt(e,r)},hy=(t,e,r)=>{let n=t.slice(1);if(!(r.props[n]===!0||r.state[n]||r[n]))return Xt(e,r)},Qf=(t,e)=>Xt(t,e),Jf={"@":fy,":":hn,"[":hn,"*":hn,"+":hn,"~":hn,"&":Xf,">":Xf,$:uy,"-":py,".":dy,"!":hy};var Aa=Ge(),my=(t,e,r)=>{let n={},o={},s=(i,a)=>{if(r.unpack){n={...n,...a};return}n[i]=a};for(let i in t){let a=t[i];if(i==="class"&&e.call("isString",t.class)){let c=a.split(" ");if(c.length){let f=e.context.designSystem.class,l=c.reduce((u,p)=>Y(u,f[p]),{});n.designSystemClass=l}}else if(i==="true"){let c=O(a,e);Y(n,Qf(c,e))}else if(e.classlist[i]){let c=e.classlist[i],f=b(c)?c(e,e.state,e.context):c;f&&s(i,f),!Aa&&g(n[i])&&(n[i].label=i)}else if(dn[i]){let c=O(a,e);S(c)&&(c=c.reduce((l,u)=>Y(l,u),{}));let f=dn[i](c,e,e.state,e.context);S(f)&&(f=f.reduce((l,u)=>Y(l,u),{})),f&&s(i,f),!Aa&&g(n[i])&&(n[i].label=i)}else if(Yf.has(i)){let c=O(a,e);s(i,{[i]:c}),!Aa&&g(n[i])&&(n[i].label=i)}else o[i]=a}return[n,o]},gy=(t,e)=>{let r={};for(let n in t){let o=Jf[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"?it(r[i],s[i]):r[i]=s[i])}}return r},Xt=(t,e,r={unpack:!0})=>{let[n,o]=my(t,e,r),s=gy(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return fe(n,s);n._selectors=s}return n},Rk=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};v();var{css:yy}=Ct,Dk=(t,e)=>b(e)?e(t):yy(t);var Zf={transparent:"rgba(0, 0, 0, 0)",black:"black",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"]},tu={};var by={primary:{"@dark":{color:"white",background:"blue"},"@light":{color:"white",background:"gradient-blue"}},secondary:{"@dark":{color:"white",background:"gray"},"@light":{color:"white",background:"gray"}},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"},"@light":{color:"gray3",background:"gradient-dark"}}},xy={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},Sy={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"}},dialog:{"@dark":{color:"white",background:"gray.92"},"@light":{color:"currentColor",background:"gray.1"}}},eu={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...by,...xy,...Sy,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var ru={base:16,ratio:1.25,subSequence:!0,templates:{}};var nu={ratio:1.618,subSequence:!0};var ou={},su={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif"}};var iu={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 au={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Ta={version:"0.0.1",color:Zf,gradient:tu,theme:eu,typography:ru,spacing:nu,font:ou,font_family:su,timing:au,media:iu,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},cases:{},class:{},svg:{},grid:{},shape:{}};var Be={};Mt(Be,{A:()=>Nx,Avatar:()=>Kx,B:()=>ob,Block:()=>_y,Box:()=>Ia,Br:()=>lb,Button:()=>$x,ButtonSet:()=>Ux,Caption:()=>Yy,Checkbox:()=>bb,CheckboxHgroup:()=>xb,CircleButton:()=>Mx,Clickable:()=>Ny,Data:()=>ib,Dialog:()=>jx,DialogFooter:()=>Hx,DialogHeader:()=>zx,DropdownList:()=>Xx,DropdownParent:()=>Qx,DropdownParentFocus:()=>Jx,DropdownSiblingFocus:()=>Zx,FileIcon:()=>Ab,Flex:()=>vy,Focusable:()=>Dy,FocusableComponent:()=>Fy,Footnote:()=>nb,Form:()=>Ty,Grid:()=>Ey,Gutter:()=>Oy,H1:()=>jy,H2:()=>zy,H3:()=>Hy,H4:()=>qy,H5:()=>Wy,H6:()=>Gy,Headline:()=>eb,Hgroup:()=>db,HgroupButton:()=>mb,HgroupRows:()=>hb,Hoverable:()=>Py,Hr:()=>cb,I:()=>sb,Icon:()=>kb,IconButton:()=>Vx,IconText:()=>Ob,Iframe:()=>Ry,Img:()=>Ay,Inline:()=>wy,InlineFlex:()=>Cy,InlineGrid:()=>ky,Input:()=>gb,Italic:()=>Zy,KangorooButton:()=>Bx,Li:()=>fb,Link:()=>qu,Notification:()=>tS,NumberInput:()=>yb,Ol:()=>pb,P:()=>Ky,Picture:()=>My,Radio:()=>Sb,RadioHgroup:()=>_b,Range:()=>Yx,RouteLink:()=>Dx,RouterLink:()=>Wu,SHAPES:()=>$y,Select:()=>Fx,SquareButton:()=>Lx,Strong:()=>Xy,Subhead:()=>rb,Svg:()=>By,Text:()=>Vy,Textarea:()=>Cb,TextareaWithButton:()=>Eb,Theme:()=>Ly,Title:()=>tb,Toggle:()=>wb,ToggleHgroup:()=>vb,Tooltip:()=>qx,TooltipHidden:()=>Wx,TooltipParent:()=>Gx,U:()=>Qy,Ul:()=>ub,Underline:()=>Jy,Video:()=>Uy,depth:()=>Ra,getSystemGlobalTheme:()=>So});var _y={display:"block"},wy={display:"inline"},vy={display:"flex"},Cy={display:"inline-flex"},Ey={display:"grid"},ky={display:"inline-grid"},Oy={boxSize:"C1"};var Ay={tag:"img",attr:{src:t=>{let{props:e,context:r}=t,n=(e.preSrc||"")+Wt(t,e.src),o;try{o=new URL(n)}catch{}if(o)return n;let s=n&&n.startsWith("/files/")?n.slice(7):n,i=r.files&&(r.files[n]||r.files[s]);if(i)return i.content&&i.content.src},title:({props:t})=>t.title||t.alt}};var Ty={tag:"form"};var Ry={tag:"iframe",position:"relative",minWidth:"H",minHeight:"H"};var Iy={appearance:"none",border:"none",cursor:"pointer",fontFamily:"inherit"},Py={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}}},Ny={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},Dy={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:({props:t})=>t.tabIndex}},Fy={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:Iy};var cu={transition:t=>({transition:bo(t)}),transitionDuration:t=>({transitionDuration:wr(t)}),transitionDelay:t=>({transitionDelay:wr(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Dt(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};var $t=E(),Ra={4:{boxShadow:`rgba(0,0,0,.10) 0 2${$t.UNIT.default} 4${$t.UNIT.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${$t.UNIT.default} 6${$t.UNIT.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${$t.UNIT.default} 10${$t.UNIT.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${$t.UNIT.default} 16${$t.UNIT.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${$t.UNIT.default} 26${$t.UNIT.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${$t.UNIT.default} 42${$t.UNIT.default}`}},vr=({props:t})=>J(t.shapeDirectionColor)||J(t.borderColor)||J(t.backgroundColor)||J(t.background),xo=({props:t,deps:e})=>{let r=cu.transition(t.transition,{props:t,deps:e});return r&&r.transition},$y={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:({props:t,deps:e})=>({position:t.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:vr({props:t,deps:e}),transition:xo({props:t,deps:e}),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:({props:t,deps:e})=>({position:"relative","&:before":{content:'""',display:"block",background:vr({props:t,deps:e}),transition:xo({props:t,deps:e}),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:({props:t,deps:e})=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:vr({props:t,deps:e}),transition:xo({props:t,deps:e}),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:({props:t,deps:e})=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:xo({props:t,deps:e}),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${vr({props:t,deps:e})} 25%, transparent 25%), linear-gradient(315deg, ${vr({props:t,deps:e})} 25%, transparent 25%)`},"&:after":{background:vr({props:t,deps:e}),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}};v();var So=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n==="auto"?null:n},Ly={deps:{depth:Ra},classlist:{depth:({props:t,deps:e})=>!K(t.depth)&&e.depth[t.depth]}};var My={deps:{getSystemGlobalTheme:So},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:So},tag:"source",attr:{media:t=>{let{props:e,key:r,context:n,deps:o}=t,{media:s}=n.designSystem,i=o.getSystemGlobalTheme(t),a=(e.media||r).slice(1);return a===i?"(min-width: 0px)":a==="dark"||a==="light"?"(max-width: 0px)":s[a]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(t,e)=>t.parent.props?.src||t.parent.src||e.src}};var By={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:t=>{let{props:e,context:r}=t;if(e.semantic_symbols)return;if(e.html)return t.call("exec",e.html,t);let{designSystem:n,utils:o}=r,s=n&&n.svg,i=e.spriteId||r.designSystem&&r.designSystem.useSvgSprite,a=t.call("exec",e.src,t);if(!i&&a)return a;let c=p=>`<use xlink:href="#${p}" />`,f=e.spriteId;if(f)return c(f);let l=Symbol.for(a),u=s[l];return u&&s[u]||(u=s[l]=Math.random(),a&&o.init({svg:{[u]:a}},{document:r.document,emotion:r.emotion})),c(u)}};var Uy={tag:"video",controls:!0,childExtends:{tag:"source"}};var Vy={},jy={tag:"h1"},zy={tag:"h2"},Hy={tag:"h3"},qy={tag:"h4"},Wy={tag:"h5"},Gy={tag:"h6"},Ky={tag:"p"},Yy={tag:"caption"},Xy={tag:"strong",fontWeight:"700"},Qy={tag:"u"},Jy={tag:"u"},Zy={tag:"i"},tb={},eb={tag:"h6",fontSize:"B",fontWeight:500},rb={tag:"span",fontSize:"Z1"},nb={tag:"span",fontSize:"Z"},ob={tag:"b"},sb={tag:"i"},ib={tag:"data"};var ab=t=>{if(!t.context)return;let{props:e,__ref:r}=t,n=Xt(e,t,{unpack:!1});r.__class=n},Ia={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:ab},cb={tag:"hr",margin:"C1 0"},lb={tag:"br"},fb={tag:"li"},ub={tag:"ul",childExtends:{extends:"Li"}},pb={tag:"ol",childExtends:{extends:"Li"}};var db={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{margin:"0",color:"paragraph"}},hb={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},mb={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var gb={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:({props:t})=>t.pattern,minLength:({props:t})=>t.minlength,maxLength:({props:t})=>t.maxlength,name:({props:t})=>t.name,autocomplete:({props:t})=>t.autocomplete,placeholder:({props:t})=>t.placeholder,value:t=>{if(!t.props||!t.props.value)return;let e=t.call("exec",t.props.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e},checked:t=>t.call("exec",t.props.checked,t),disabled:({props:t})=>t.disabled||null,readonly:({props:t})=>t.readonly,required:({props:t})=>t.required,type:({props:t})=>t.type}};var yb={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:({props:t})=>t.step,min:({props:t})=>t.min,max:({props:t})=>t.max}};var bb={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:t=>t.call("exec",t.parent.props.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"}}},xb={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Sb={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}},_b={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var wb={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},vb={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Cb={tag:"textarea",extends:["Input","Flex"],variant:"outlined",fontfamily:"Avenir",round:"Z1",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",maxWidth:"G1_default",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",style:{resize:"none"},".simple":{theme:"field",round:"Z2",lineHeight:1.4},".outlined":{theme:"field",borderWidth:"1px",borderStyle:"solid",lineHeight:1.4,placeholder:"Leave us a message...",resize:"none"},html:(t,e)=>t.props.value},Eb={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 kb={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},props:(t,e,r)=>{let{props:n,parent:o}=t,{icons:s,useIconSprite:i,verbose:a}=r&&r.designSystem,{toCamelCase:c}=r&&r.utils,f=T=>{let{props:k}=T,$=k[".isActive"];if($)return T.call("exec",$.name||$.icon)},l=(T,k,$)=>{let{semanticIcons:P}=$&&$.designSystem,{toCamelCase:D}=$&&$.utils,j=u(T,k),tt=D(j).split(/([a-z])([A-Z])/g),pt=tt[1]?tt[0]:j.split(".")[0].split(" ")[0],_t=P&&P[pt];if(_t){let Lt=j.includes(".")?"sfsymbols."+j.split(".").slice(1).join("."):"sfsymbols";return j=_t[Lt]||_t[j.split(".")[0].split(" ")[0]],{tag:"span",semantic_symbols:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${j}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(T,k)=>{let{key:$,props:P}=T,D=T.call("exec",P.name||P.icon||$,T);return T.call("isString",D)&&D.includes("{{")&&(D=T.call("replaceLiteralsWithObjectFields",D)),T.call("isString",D)?D:$},p=u(t,e),d=c(p),h=d.split(/([a-z])([A-Z])/g),m=l(t,e,r);if(m)return m;let x;n.isActive&&(x=f(t));let _=o.props,w=_[".isActive"];o&&_&&_.isActive&&w&&w.icon&&(x=t.call("exec",w.icon||w.Icon.name||w.Icon.icon,t)),t.call("isString",x)&&x.includes("{{")&&(x=t.call("replaceLiteralsWithObjectFields",x));let C;s[x]&&(C=x),s[d]?C=d:s[h[0]+h[1]]?C=h[0]+h[1]:s[h[0]]?C=h[0]:a&&t.warn("Can't find icon:",p,C);let I=s[C],A=o&&o.props&&o.props.src||n.src;return{spriteId:i&&C,src:I||A||s.noIcon}},attr:{viewBox:"0 0 24 24"}},Ob={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:t=>{let{parent:e,props:r}=t;return t.call("exec",e.props.icon||r.name||r.sfSymbols||e.props.sfSymbols,t)},icon:t=>t.call("exec",t.parent.props.icon,t.parent)},text:({props:t})=>t.text},Ab={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Ka={};Mt(Ka,{default:()=>Px,getActiveRoute:()=>Ga,lastLevel:()=>Ro,lastPathname:()=>To,matchRoute:()=>Ha,parseQuery:()=>qa,parseRoutePattern:()=>za,router:()=>ne,runGuards:()=>Wa});v();v();v();v();v();var Tb=(t,e)=>{let r=e.on?.[t];if(r)return r;let n=e.props;if(!n)return;let o="on"+t.charAt(0).toUpperCase()+t.slice(1);return n[o]},Rb=(t,e,r,n)=>{let o=Ye(Tb(t,e),e);if(b(o)){let{__ref:s}=e;s.__eventListeners||(s.__eventListeners={}),s.__eventListeners[t]&&r.removeEventListener(t,s.__eventListeners[t]);let i=a=>{let{state:c,context:f}=e;try{let l=o.call(e,a,e,c,f,n);l&&typeof l.then=="function"&&l.catch(u=>{e.error=u,console.error("[DOMQL] Async DOM event error:",u)})}catch(l){if(e.error=l,console.error("[DOMQL] DOM event error:",l),f?.strictMode)throw l}};s.__eventListeners[t]=i,r.addEventListener(t,i)}},lu=(t,e)=>{let{node:r,on:n}=t;for(let o in n)is.has(o)||Rb(o,t,r,e)};var fu={en:{DocumentNotDefined:{title:"Document is undefined",description:"To tweak with DOM, you should use browser."},OverwriteToBuiltin:{title:"Overwriting to builtin method",description:"Overwriting a builtin method in the window define is not possible, please choose different name"},BrowserNotDefined:{title:"Can't recognize environment",description:"Environment should be browser application, that can run Javascript"},SetQuickPreferancesIsNotObject:{title:"Quick preferances object is required",description:'Please pass a plain object with "lang", "culture" and "area" properties'},InvalidParams:{title:"Params are invalid",description:'Please pass a plain object with "lang", "culture" and "area" properties'},CantCreateWithoutNode:{title:"You must provide node",description:"Can't create DOM element without setting node or text"},HTMLInvalidTag:{title:"Element tag name (or DOM nodeName) is invalid",description:"To create element, you must provide valid DOM node. See full list of them at here: http://www.w3schools.com/tags/"},HTMLInvalidAttr:{title:"Attibutes object is invalid",description:"Please pass a valid plain object to apply as an attributes for a DOM node"},HTMLInvalidData:{title:"Data object is invalid",description:"Please pass a valid plain object to apply as an dataset for a DOM node"},HTMLInvalidStyles:{title:"Styles object is invalid",description:"Please pass a valid plain object to apply as an style for a DOM node"},HTMLInvalidText:{title:"Text string is invalid",description:"Please pass a valid string to apply text to DOM node"},ElementOnStateIsNotDefined:{title:"Element on state is not defined",description:"Please check the element object"}}},yt=(t,e,r)=>{let o;t&&typeof t=="string"&&(o=fu.en[t]);let s=o?`
32
32
 
33
33
  ${o.description}`:"",i=r?`
34
34
 
35
- ${r}`:"";return new Error(`"${t}", "${e}"${s}${i}`)};v();var uu=t=>ke(t||"div")||yt("HTMLInvalidTag");var _b=t=>{if(!t||!t.__ref)throw new Error("Element reference is invalid");let{__ref:e}=t;if(!e.root)throw new Error("Root reference is invalid");if(!e.root.data)throw new Error("Data are undefined");let{frameListeners:r}=e.root.data;r&&!r.has(t)&&r.add(t)},wb=t=>{for(let e of t){if(!e.__ref.__frameHandler){let r=e.on?.frame||e.onFrame||e.props?.onFrame;if(r)e.__ref.__frameHandler=r;else{t.delete(e);continue}}if(!e.node?.parentNode)t.delete(e),delete e.__ref.__frameHandler;else try{e.__ref.__frameHandler(e,e.state,e.context)}catch(r){console.warn(r),t.delete(e),delete e.__ref.__frameHandler}}},pu=t=>{let e=typeof window<"u"&&window.requestAnimationFrame;if(Pa||!e)return;Pa=!0;function r(){if(t.size===0){Pa=!1;return}wb(t),e(r)}e(r)},du=t=>{if(!t)throw new Error("Element is invalid");let{on:e,props:r,__ref:n}=t;if(!n.root||!n.root.data)return;let{frameListeners:o}=n.root.data;o&&(e?.frame||t.onFrame||r?.onFrame)&&(_b(t),pu(o))},Pa=!1,hu=()=>{let t=new Set;return pu(t),t};v();var mu=t=>{let{props:e,on:r}=t;for(let n in e){if(n.charCodeAt(0)!==111||n.charCodeAt(1)!==110)continue;let o=ce(n.slice(2)),s=r[o],i=e[n];y(s)?r[o]=(...a)=>{if(s(...a)!==!1&&y(i))return i(...a)}:r[o]=i}},gu=t=>{let{on:e}=t,r=Ke(t.context);for(let n in t){if(n.charCodeAt(0)!==111||n.charCodeAt(1)!==110||!Object.prototype.hasOwnProperty.call(t,n))continue;let o=t[n];if(!y(o)&&!(r&&o!=null))continue;let s=ce(n.slice(2)),i=e[s];y(i)?e[s]=(...a)=>{if(i(...a)!==!1&&y(o))return o(...a)}:e[s]=o}};v();var Na="http://www.w3.org/2000/svg",vb=t=>{let{tag:e,context:r}=t,n=r.document||L;return e?e==="string"?n.createTextNode(t.text):e==="fragment"?n.createDocumentFragment():Xe.has(e)&&(e==="svg"||t.parent?.node?.namespaceURI===Na)?n.createElementNS(Na,e):n.createElement(e):n.createElement("div")},Da=t=>{let{tag:e,key:r,props:n}=t;if(e=O(e,t),e===!0&&(e=r),g(n)&&b(n.tag)&&ke(n.tag))return n.tag;if(b(e)){if(ke(e))return e}else{let o=r.toLowerCase();if(o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),ke(o))return o}return"div"},yu=t=>{let{context:e}=t,r=e.window||window,n=t.tag=Da(t);if(!uu(n))return yt("HTMLInvalidTag",t.tag,t);r.nodeCaches||(r.nodeCaches={});let s=Xe.has(n)&&(n==="svg"||t.parent?.node?.namespaceURI===Na)?"svg:"+n:n,i=r.nodeCaches[s];i||(i=r.nodeCaches[s]=vb(t));let a=i.cloneNode(!0);return n==="string"&&(a.nodeValue=t.text),a};var Cb=(t,e)=>{try{return e.appendChild(t),t}catch{console.error("Does not support to append",e,t)}},Eb=(t,e,r)=>{if(!t)throw new Error("Node is required");let n=r||e?.parentNode;e?.nextSibling?n?.insertBefore(t,e.nextSibling):e?.insertAdjacentElement?e.insertAdjacentElement("afterend",t):n?.insertBefore(t,e)},kb=(t,e,r)=>{if(!t)throw new Error("Node is required");(r||e.parentNode)?.insertBefore(t,e)},Fa=(t,e,r,n)=>{if(!t)throw new Error("Element is required");if(!e)throw new Error("Parent is required");return e[r||t.key]=t,t.tag!=="shadow"&&(n&&n.position?(n.position==="before"?kb:Eb)(t.node,n.node||e.node):Cb(t.node,e.node,t)),t};v();var So=(t,e={})=>{let{__ref:r}=t;for(let n in t){if(e[n])continue;let o=t[n];if(y(o)&&!qt(n,t)){r.__exec[n]=o;let s=o(t,t.state,t.context);s&&typeof s.then=="function"?s.then(i=>{t[n]=i}):t[n]=s}}},bu=(t,e={})=>{let{__ref:r}=t,n={};for(let o in r.__exec){let s=t[o];if(r.__defineCache[o])continue;let a=r.__exec[o](t,t.state,t.context);if(a&&typeof a.then=="function"){a.then(f=>{t[o]=f});continue}let c=b(a)||ct(a);if(s?.node&&c)fe(s,{text:a});else if(a!==s)if(It(o)){let{extends:f,...l}=Ps(a,t,o);fe(s,l)}else n[o]=s,t[o]=a}return n},_o=t=>{let{__ref:e}=t,{props:r}=t;for(let n in r){let o=n.charCodeAt(0),s=n.charCodeAt(1),i=o===105&&s===115||o===104&&s===97&&n.charCodeAt(2)===115||o===117&&s===115&&n.charCodeAt(2)===101,a=e.__execProps[n];if(y(a)){let c=O(a,t);c&&typeof c.then=="function"?c.then(f=>{r[n]=f}):r[n]=c}else if(i&&y(r[n])){e.__execProps[n]=r[n];let c=O(r[n],t);c&&typeof c.then=="function"?c.then(f=>{r[n]=f}):r[n]=c}}},wo=t=>{let{define:e,context:r,__ref:n}=t,o=g(e),s=r&&g(r.define);if(!o&&!s)return t;let i=o&&s?{...e,...r.define}:o?e:r.define;for(let a in i){let c=t[a];if(y(c)&&!qt(a,t)){n.__exec[a]=c;let l=O(c,t);l&&typeof l.then=="function"?l.then(u=>{c=t[a]=u&&u.parse?u.parse():u,u&&(n.__defineCache[a]=c)}):(c=t[a]=l&&l.parse?l.parse():l,l&&(n.__defineCache[a]=c))}let f=i[a](c,t,t.state,t.context);f&&typeof f.then=="function"?f.then(l=>{l&&(t[a]=l)}):f&&(t[a]=f)}return t},xu=t=>{let{context:e,define:r,__ref:n}=t,o=g(r),s=g(e?.define);if(!o&&!s)return;let i=o&&s?{...r,...e.define}:o?r:e.define;for(let a in i){let c=n.__exec[a];if(c){let u=c(t,t.state,t.context);u&&typeof u.then=="function"?u.then(p=>{n.__defineCache[a]=p}):n.__defineCache[a]=u}let f=O(n.__defineCache[a],t);if(f&&typeof f.then=="function"){f.then(u=>{});continue}let l=typeof i[a]=="function"?i[a](f,t,t.state,t.context):void 0;l&&typeof l.then=="function"?l.then(u=>{t[a]=u}):l&&(t[a]=l)}};v();function Su(t,e,r){let{__ref:n,props:o}=e,{__attr:s}=n;if(Dr(t)("object")&&yt("HTMLInvalidAttr",t),t){let i=O(t,e);o.attr&&U(i,o.attr);for(let a in i){let c=O(i[a],e);c!==s[a]&&(c!==!1&&c!==void 0&&c!==null&&r.setAttribute?r.setAttribute(a,c):r.removeAttribute&&r.removeAttribute(a),s[a]=c)}}}v();var _u=t=>{let{key:e}=t;t.classlist===!0?t.classlist=e:!t.classlist&&typeof e=="string"&&e.charAt(0)==="_"&&e.charAt(1)!=="_"&&(t.classlist=e.slice(1))},Ob=(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+=` ${O(o,e)}`)}return r},wu=(t,e)=>{if(!t)return;let{key:r}=e;return t===!0&&(t=e.classlist={key:r}),b(t)&&(t=e.classlist={default:t}),g(t)&&(t=Ob(t,e)),t.replace(/\s+/g," ").trim()};v();function Ab(t,e,r){if(t&&(e.props.data&&U(t,e.props.data),t.showOnNode)){g(t)||yt("HTMLInvalidData",t);for(let n in t)n!=="showOnNode"&&(r.dataset[n]=O(t[n],e))}}var vu=Ab;v();function Tb(t,e,r){let n=O(t??e?.props?.html,e),{__ref:o}=e;n!==o.__html&&(r.nodeName==="SVG"?r.textContent=n:r.innerHTML=n,o.__html=n)}var Cu=Tb;v();function Rb(t,e,r){if(t)if(g(t)){let{__ref:n}=e;n.__style||(n.__style={});let o=n.__style;for(let s in t){let i=O(t[s],e);i!==o[s]&&(o[s]=i,r.style[s]=i)}}else yt("HTMLInvalidStyles",t)}var Eu=Rb;v();function Ib(t,e,r){let n=O(e.props.text||t,e);if(b(n)&&n.includes("{{")&&(n=e.call("replaceLiteralsWithObjectFields",n,e.state)),e.tag==="string")r.nodeValue=n;else if(t!=null){if(Xe.has(e.tag)){r&&(r.textContent=n);return}if(e.__text){if(e.__text.text===n)return;e.__text.text=n,e.__text.node&&(e.__text.node.nodeValue=n)}else jt({tag:"string",text:n},e,"__text")}}var ku=Ib;v();function Pb(t,e,r){let n=O(t,e);if(g(n))for(let o in n)Tt.has(o)||Object.prototype.hasOwnProperty.call(n,o);return e}var Ou=Pb;v();function Nb(t,e,r){if(g(t))for(let n in t){let o=t[n];y(o)?e.scope[n]=o.bind(e):e.scope[n]=o}}var Au=Nb;var re={attr:Su,style:Eu,text:ku,html:Cu,data:vu,classlist:wu,state:Ou,scope:Au,fetch:{},deps:(t,e)=>t||e.parent.deps,extends:{},children:{},content:{},childExtend:{},childExtends:{},childExtendRecursive:{},childExtendsRecursive:{},props:{},if:{},define:{},__name:{},__ref:{},__hash:{},__text:{},key:{},tag:{},query:{},parent:{},node:{},variables:{},on:{},component:{},context:{}};v();var vo=(t,e,r)=>{let{node:n,context:o,__ref:s}=e,i=O(e[t],e),{onlyUpdate:a}=r,c=re[t],l=o?.registry?.[t]||c,u=e.define?.[t],p=o?.define?.[t];if(!s.__if)return;let d=a?a===t||e.lookup(a):!0;if(l&&!p&&d){y(l)&&l(i,e,n,r);return}return{hasDefine:u,hasContextDefine:p}};v();var $a=(t,e)=>{if(t===e)return!0;if(!t||!e)return!1;let r=typeof t,n=typeof e;if(r==="function"&&n==="function")return!0;if(r!==n)return!1;if(S(t)&&S(e)){if(t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(!$a(t[o],e[o]))return!1;return!0}if(g(t)&&g(e)){let o=Object.keys(t),s=Object.keys(e);if(o.length!==s.length)return!1;for(let i=0;i<o.length;i++){let a=o[i];if(!$a(t[a],e[a]))return!1}return!0}return t===e},Tu=new Set([".","/","./"]),Db=(t,e)=>{if(!b(t)||!e)return;if(Tu.has(t))return e.parse?e.parse():e;let r=Qe(t,e);if(r){let o=t.replaceAll("~/","");return Ze(o,r)}let n=Je(t,e);if(n){let o=t.replaceAll("../","");return Ze(o,n)}return Ze(t,e)};function Fb(t,e,r){let{children:n,__ref:o,state:s}=e,{childrenAs:i}=e.props||{},a=O(t,e,s),c=O(n,e,s);n=a||c;let f;if(n){if(zn(n)&&(i=i||"state",n=n.parse()),b(n)||ct(n)){let p=Db(n,s);p!==void 0?(f=Tu.has(n)?"":n,n=zn(p)?p.parse():p):n={text:n}}if(g(n)){if(n.$$typeof)return e.call("renderReact",n,e);n=Object.keys(n).map(p=>{let d=n[p];return It(p)?Es(p,d):d})}}if(!n||Dr(n)("array","object"))return;if(S(n)&&n.some(p=>p?.$$typeof)){let p=[],d=[];for(let h=0;h<n.length;h++)n[h]?.$$typeof?d.push(n[h]):p.push(n[h]);d.length&&e.call("renderReact",d,e),n=p}let l;o.__childrenCache?$a(n,o.__childrenCache)?o.__noChildrenDifference=!0:(l=z(n),o.__childrenCache=l,delete o.__noChildrenDifference):(l=z(n),o.__childrenCache=l),(g(n)||S(n))&&(n=l||z(n));let u={tag:"fragment"};for(let p in n){let d=Object.prototype.hasOwnProperty.call(n,p)&&n[p];if(Ot(d)&&d!==null&&d!==!1)if(f!==void 0&&i!=="props"){let h=f?`${f}/${p}`:p;u[p]={state:h}}else u[p]=N(d)?i?{[i]:d}:d:i?{[i]:i==="state"?{value:d}:{text:d}}:{text:d}}return u}var Co=Fb;var Ru=process.env.NODE_ENV,Iu=(t,e)=>{let{node:r,tag:n,__ref:o}=t;if(!o.__if)return t;let s;r||(s=!0,n==="shadow"?r=t.node=t.parent.node.attachShadow({mode:"open"}):r=t.node=yu(t),W("attachNode",t,e)),(Ru==="test"||Ru==="development"||e.alowRefReference)&&(r.ref=t,y(r.setAttribute)&&r.setAttribute("key",t.key)),_o(t),wo(t),So(t),mu(t),gu(t),lu(t,{isNewNode:s,...e});for(let a in t){let c=t[a];if(!Object.prototype.hasOwnProperty.call(t,a)||c===void 0||qt(a,t)||g(re[a])||a.length>2&&a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90)continue;let f=vo(a,t,e);if(f){let{hasDefine:l,hasContextDefine:u}=f;if(t[a]&&!l&&!u){let p=()=>{jt(c,t,a,e)};t.props&&t.props.lazyLoad||e.lazyLoad?window.requestAnimationFrame(()=>{p(),e.preventUpdateListener||W("lazyLoad",t,e)}):p()}}}let i=t.children?Co(t.children,t,e):t.children||t.content;return i&&hn(i,t,e),t};v();var La={key:":root",node:L?L.body:yt("DocumentNotDefined",L)},Ma=La;v();v();v();v();var Pu={overwrite:!0,preventHoistElementUpdate:!1,updateByState:!0,isHoisted:!0},Nu=function(t,e=Pu){let r=this,n=r.__element;if(e.onEach&&e.onEach(n,r,n.context,e),e.updateByState||Y(e,Pu),r.__element||yt("ElementOnStateIsNotDefined"),e.preventInheritAtCurrentState===!0)e.preventInheritAtCurrentState=r;else if(e.preventInheritAtCurrentState)return;return!e.preventBeforeStateUpdateListener&&vt("beforeStateUpdate",t,n,e)===!1?n:(Xs(r,t,e),$b(r,t,e)||(Lb(r,t,e),Mb(r,t,e),e.preventStateUpdateListener||vt("stateUpdate",t,n,e)),r)},$b=(t,e,r)=>{let n=t.__element,{parent:o,__ref:s}=n,i=s?.__state,a=s?.__stateType;if(!i)return;let c=er(n),f=tr(n,o,{returnParent:!0});if(!(c&&f&&!r.stopStatePropagation))return;let u=a==="string"||a==="number"||a==="boolean",p=u?t.value:t.parse(),d=u?t.value:e,h=Qe(i,o.state),m=Je(i,o.state),x=i.replaceAll("~/","").replaceAll("../",""),_=Ks(x,d),w=h||m||o.state;r.replace&&it(w,_||p),w.update(_,{...r,isHoisted:!0,preventUpdate:r.preventHoistElementUpdate,overwrite:!r.replace});let C=r.preventUpdate!==!0||!r.preventHoistElementUpdate;return!r.preventStateUpdateListener&&C&&vt("stateUpdate",e,n,r),!0},Lb=(t,e,r)=>{if(t.__depends)for(let n in t.__depends)t.__depends[n].clean().update(t.parse(),r)},Mb=(t,e,r)=>{let n=t.__element;r.preventUpdate!==!0?n.update({},{...r,updateByState:!0}):r.preventUpdate==="recursive"&&n.update({},{...r,isHoisted:!1,updateByState:!0,preventUpdate:!0})};var Bb=function(){let t=this;if(g(t)){let e={};for(let r in t)Tt.has(r)||(e[r]=t[r]);return e}else if(S(t))return t.filter(e=>!Tt.has(e))},Ub=function(t={}){let e=this;for(let r in e)!Tt.has(r)&&Object.prototype.hasOwnProperty.call(e,r)&&delete e[r];return t.preventStateUpdate||e.update(e,{replace:!0,...t}),e},Vb=function(t={}){let e=this,r=e.__element,n=r.__ref.__state;if(b(n))return r.parent.state.remove(n,{isHoisted:!0,...t}),r.state;if(delete r.state,r.state=e.parent,e.parent&&delete e.parent.__children[r.key],e.__children)for(let o in e.__children){let s=e.__children[o];s.state&&(S(s.state)?Object.defineProperty(s.state,"parent",{value:e.parent,enumerable:!1,configurable:!0,writable:!0}):Object.setPrototypeOf(s,{parent:e.parent}))}return r.state.update({},{isHoisted:!0,...t}),r.state},jb=function(t,e={}){let r=this;if(!(!r||!r.parent))return r.parent.update(t,{isHoisted:!0,...e})},zb=function(t,e={}){let r=this;return r?r.__element.__ref.root.state.update(t,{isHoisted:!1,...e}):void 0},Hb=function(t,e={}){let r=this;if(S(r))r.push(t),r.update(r.parse(),{overwrite:!0,...e});else if(g(r)){let n=Object.keys(r).length;r.update({[n]:t},e)}},qb=function(t,e={}){let r=this;r.update({[t]:!r[t]},e)},Wb=function(t,e={}){let r=this;return S(r)?Jo(r,t):g(r)&&fs(r,t),e.applyReset?r.set(r.parse(),{replace:!0,...e}):r.update({},e)},Gb=function(t,e={}){let r=this,n=z(t);return r.clean({preventStateUpdate:!0,...e}).update(n,{replace:!0,...e})},Du=function(t,e,r={}){let n=this,o=z(e);r.preventReplace||ds(n,t,e);let s=us(t,o);return r.preventStateUpdate?s:n.update(s,r)},Kb=function(t,e={}){let r=this,n=t.reduce((o,s)=>{if(s[0]==="update"){let i=Du.call(r,s[1],s[2],{preventStateUpdate:!0});return it(o,i)}else s[0]==="delete"&&Ba.call(r,s[1],{...e,preventUpdate:!0});return o},{});return r.update(n,e)},Ba=function(t,e={}){let r=this;return ps(r,t),e.preventUpdate?t:r.update({},e)},Yb=function(t,e={}){let r=this;for(let n=0;n<t.length;n++)Ba(t[n],{preventUpdate:!0});return r.update({},e)},Xb=function(t,e={}){return hs(this,t)},Qb=function(t={}){let e=this,r=z(e.parse());return e.set(r,{replace:!0,...t})},Jb=function(t,e={}){let r=this;if(y(t)){let n=t(r);return r.update(n,{replace:!0,...e})}},Zb=function(t,e={}){let r=this;if(y(t)){let n=t(r);return r.replace(n,e)}},tx=function(t,e={}){let r=this;if(y(t))return t(r),r.update(r.parse(),{replace:!0,...e})},ex=function(t,e={}){return this.update(t,{preventUpdate:!0,...e})},rx=function(t,e={}){let r=this;for(let n in t)r[n]=t[n];return r.update(t,e)},nx=function(t,e={}){return this.replace(t,{preventUpdate:!0,...e})},ox=function(t,e={}){return Object.keys(this)},sx=function(t,e={}){return Object.values(this)},Fu=t=>{let e=t.state,r=t.__ref,n={clean:Ub.bind(e),parse:Bb.bind(e),destroy:Vb.bind(e),update:Nu.bind(e),rootUpdate:zb.bind(e),parentUpdate:jb.bind(e),create:Me.bind(e),add:Hb.bind(e),toggle:qb.bind(e),remove:Wb.bind(e),apply:Jb.bind(e),applyReplace:Zb.bind(e),applyFunction:tx.bind(e),set:Gb.bind(e),quietUpdate:ex.bind(e),replace:rx.bind(e),quietReplace:nx.bind(e),reset:Qb.bind(e),parent:t.parent?.state||e,setByPath:Du.bind(e),setPathCollection:Kb.bind(e),removeByPath:Ba.bind(e),removePathCollection:Yb.bind(e),getByPath:Xb.bind(e),keys:ox.bind(e),values:sx.bind(e),__element:t,__children:{},root:r?.root?r.root.state:e};S(e)?Fr(e,n):Object.setPrototypeOf(e,n),e.parent&&e.parent.__children&&(e.parent.__children[t.key]=e)};var Me=function(t,e,r){return t.state=ix(t,e,r),t.state},ix=function(t,e,r){let n=Ws(t);if(n===!1)return e.state||{};if(t.state=n,W("stateInit",t,r)===!1)return t.state;if(er(t)){let i=Gs(t,e);t.state=K(i)?{}:i}let s=Ys(t,t.state||e.state||{});return s&&(t.state=s),Fu(t),W("stateCreated",t),t.state};v();v();var $u=[];var Eo={stackChanges:!1,cleanExec:!0,preventRecursive:!1,currentSnapshot:!1,calleeElement:!1,exclude:$u},mn=function(t={},e){let r=g(e)?{...Eo,...e}:{...Eo},n=this,o=n.__ref;o||(o=n.__ref={});let[s,i,a]=Pi(n,r);if(a)return;r.preventListeners||vt("startUpdate",t,n,r);let{parent:c,node:f,key:l}=n,{exclude:u,preventInheritAtCurrentState:p}=r;if(p&&p.__element===n||(u||Y(r,Eo),(b(t)||ct(t))&&(t={text:t}),t=Ls.call(n,t),lx(n,r)===!1)||cx(n,c,r))return;if(o.__if&&!r.preventPropsUpdate){let P=c.props&&(c.props[l]||c.props.childProps),D=o.__propsStack.some(y),j=t.props||P||D;j&&js(j,n,c)}if(!r.preventBeforeUpdateListener&&!r.preventListeners&&(n.on?.beforeUpdate||n.props?.onBeforeUpdate)){let D={...t,...n};if(Object.setPrototypeOf(D,Object.getPrototypeOf(n)),vt("beforeUpdate",t,D,r)===!1)return n}if(it(n,t),_o(n),bu(n,{ignore:Eo}),xu(n),!r.isForced&&!r.preventListeners&&W("beforeClassAssign",n,r),!o.__if)return!1;if(!f)return;let{preventUpdate:m,preventDefineUpdate:x,preventContentUpdate:_,preventStateUpdate:w,preventRecursive:C,preventUpdateListener:I,preventUpdateAfter:A,preventUpdateAfterCount:T}=r;if(A){if(ct(T)&&A<=T)return;r.preventUpdateAfterCount===void 0?r.preventUpdateAfterCount=1:r.preventUpdateAfterCount++}let k=S(m)?new Set(m):null,$=S(x)?new Set(x):null;for(let P in n){let D=n[P];if(!Object.prototype.hasOwnProperty.call(n,P))continue;let j=k&&k.has(P),Z=$&&$.has(P),tt=y(D)&&P.length>2&&P.charCodeAt(0)===111&&P.charCodeAt(1)===110&&P.charCodeAt(2)>=65&&P.charCodeAt(2)<=90;if(K(D)||j||Z||x===!0||x===P||w&&P==="state"||qt(P,n)||tt||g(re[P]))continue;w==="once"&&(r.preventStateUpdate=!1);let pt=vo(P,n,r);if(pt){let{hasDefine:_t,hasContextDefine:Lt}=pt;if(!(g(D)&&!_t&&!Lt&&!C))continue;let Wo=n.props.lazyLoad||r.lazyLoad;r.onEachUpdate&&r.onEachUpdate(P,n,n.state,n.context);let st=t[P];if(st===void 0&&!r.isForced){if(r.onlyUpdate){if(P!==r.onlyUpdate)continue}else if(!r.updateByState)continue}let Go=r.onlyUpdate&&P===r.onlyUpdate?{...r,onlyUpdate:void 0,currentSnapshot:s,calleeElement:i}:{...r,currentSnapshot:s,calleeElement:i},Ko=()=>mn.call(D,st,Go);Wo?F.requestAnimationFrame(()=>{Ko(),!r.preventUpdateListener&&!r.preventListeners&&W("lazyLoad",n,r)}):Ko()}}if(!_){let P=o.contentElementKey||"content",D=n[P],j=r.updateByState?t.children||(o.__exec?.children?n.children:void 0):t.children||n.children;if(j){let Z=Co(j,n,e);if(Z&&!o.__noChildrenDifference)hn(Z,n,r);else if(D?.__ref&&y(D.update)){let tt=n.props?.lazyLoad||r.lazyLoad,pt=()=>mn.call(D,t[P],{...r,currentSnapshot:s,calleeElement:i});tt?F.requestAnimationFrame(()=>{pt(),!r.preventUpdateListener&&!r.preventListeners&&W("lazyLoad",n,r)}):pt()}}else if(D?.__ref&&y(D.update)){let Z=n.props?.lazyLoad||r.lazyLoad,tt=()=>mn.call(D,t[P],{...r,currentSnapshot:s,calleeElement:i});Z?F.requestAnimationFrame(()=>{tt(),!r.preventUpdateListener&&!r.preventListeners&&W("lazyLoad",n,r)}):tt()}else{let Z=n.children||t.content;Z&&!r.updateByState&&hn(Z,n,r)}}!I&&!r.preventListeners&&W("update",n,r),!r.preventFetch&&o.__fetchOnStateChange&&o.__fetchOnStateChange()},ax=(t,e)=>{let{__children:r}=e.__ref||{};if(!r)return!1;let n=r.indexOf(t.key),o;for(let i=n-1;i>=0;i--){let a=e[r[i]];if(a?.node?.parentNode){o=a.node;break}}if(o)return{position:"after",node:o};let s;for(let i=n+1;i<r.length;i++){let a=e[r[i]];if(a?.node?.parentNode){s=a.node;break}}return s?{position:"before",node:s}:!1},cx=(t,e,r)=>{if(!y(t.if)&&!y(t.props?.if)||!e)return;let n=t.__ref,o=(t.if||t.props?.if)(t,t.state,t.context,r),s=n.__if!==!0;if(o){if(n.__if=!0,s){delete t.__hash,delete t.__text,delete t.extends,n.__hasRootState||delete t.state,n.__state?t.state=n.__state:n.__hasRootState||delete t.state,t.node&&(t.node.remove(),delete t.node);let i=n.contentElementKey;t.children?t.removeContent():t[i]?.parseDeep&&(t[i]=t[i].parseDeep());let a=ax(t,e);delete t.__ref,delete t.parent;let c=jt(t,e,t.key,ut.create,a);return r.preventUpdate!==!0&&t.on&&y(t.on.update)&&Vr(t.on.update,c,c.state),c}}else t.node&&!o&&(t.node.remove(),delete n.__if)},lx=(t,e)=>{let{__ref:r}=t,n=r.__state,{parent:o}=t,{preventUpdateTriggerStateUpdate:s}=e;if(s)return;if(!n&&!r.__hasRootState){t.state=o?.state||{};return}let i=tr(t,t.parent);if(!i||e.preventInheritedStateUpdate)return;if(!e.preventBeforeStateUpdateListener&&!e.preventListeners&&vt("beforeStateUpdate",i,t,e)===!1)return t;let a=fx(t,o,e);!e.preventStateUpdateListener&&!e.preventListeners&&vt("stateUpdate",a.parse(),t,e)},fx=(t,e,r)=>{let n=t.state.__children,o=Me(t,e);t.state=o;for(let s in n)o[s]&&(o.__children[s]=n[s]),Object.getPrototypeOf(n[s]).parent=o;return o};Ii();var Ua=(t,e,r={})=>{let n={set:ja,reset:Lu,update:mn,variables:Oi,remove:di,updateContent:Mu,removeContent:Va,setProps:hi,lookup:fi,lookdown:ui,lookdownAll:pi,getRef:mi,getDB:Ti,getPath:gi,getQuery:Ri,getRootState:yi,getRoot:bi,getRootData:xi,getRootContext:Si,getContext:_i,setNodeStyles:Kn,spotByPath:li,parse:Xn,parseDeep:Yr,keys:Yn,nextElement:Ei,previousElement:ki,log:wi,verbose:Qn,warn:vi,error:Ci,call:Ai};t.context.methods&&(r.strict?Y:fe)(n,t.context.methods),Object.setPrototypeOf(t,n)};var ux=new Set(["class","style"]),px=t=>{let{tag:e,props:r,context:n}=t;if(!e||!r)return;let o=Nl(e,r,n?.cssPropsRegistry),s={};for(let a in o)ux.has(a)||(s[a]=o[a]);let i=!1;for(let a in s){i=!0;break}i&&(t.attr?typeof t.attr=="object"&&(t.attr={...s,...t.attr}):t.attr=s)},ko=process.env.NODE_ENV,jt=(t,e,r,n=ut.create||{},o)=>{dx(n);let s=qs(t,e,r,n,La);if(!s)return;let{key:i,parent:a,__ref:c}=s;return Hs(s,a),Rs(s,a,n),n.onlyResolveExtends?yx(s,a,i,n):(Vn.call(s,s),W("start",s,n),hx(s,a,n),Ua(s,a,n),Hn(s,a),Me(s,a),s.scope==="state"&&(s.scope=s.state),Br(s,a),jn(s,a,n),Ur.call(s,s,{cachedKeys:[]}),s.tag||(s.tag=Da(s)),px(s),(s.scope==="props"||s.scope===!0)&&(s.scope=s.props),Br(s,a),s.node&&c.__if?Fa(s,a,i,o):(W("init",s,n)===!1||(W("beforeClassAssign",s,n),_u(s),gx(s,a,n,o),Uu(s,a),W("complete",s,n)),s))},dx=t=>{t&&!ut.create&&(ut.create=t,ut.create.context=t.context)},hx=(t,e,r)=>{let n=!1;for(let o in r){n=!0;break}n&&(ut.defaultOptions=r,r.ignoreChildExtends&&delete r.ignoreChildExtends)},Uu=(t,e)=>{e.__ref&&e.__ref.__children&&(e.__ref.__children.includes(t.key)||e.__ref.__children.push(t.key))},mx=1,Bu=new WeakMap,gx=(t,e,r,n)=>{Bu.has(t)&&(ko==="test"||ko==="development")&&console.warn("Cyclic rendering detected:",t.__ref.path),Bu.set(t,!0);let{__ref:o,key:s}=t,i=()=>{let a=ms(o.path);o.__uniqId||a||(Iu(t,r),o.__uniqId=mx++)};if(ko==="test"||ko==="development"||t.context?.strictMode)i();else try{i()}catch(a){t.error=a;let c=o.path;c.includes("ComponentsGrid")&&c.splice(0,c.indexOf("ComponentsGrid")+2),c.includes("demoComponent")&&c.splice(0,c.indexOf("demoComponent")+1);let f=t.lookup(l=>l.state.key)?.state?.key;t.warn("Error happened in:",f?f+" ":""+c.join(".")),t.verbose(),console.error("[DOMQL] Render error:",a),t.on?.error&&t.on.error(a,t,t.state,t.context,r)}if(!o.__if)return e[s||t.key]=t,t;Fa(t,e,s,n),du(t,r),W("render",t,r),W("renderRouter",t,r),W("done",t,r),W("create",t,r)},yx=(t,e,r,n)=>{let{__ref:o}=t;if(Ua(t,e,n),Hn(t,e),Me(t,e),t.scope==="state"&&(t.scope=t.state),Br(t,e),jn(t,e,n),Ur.call(t,t,{cachedKeys:[]}),(t.scope==="props"||t.scope===!0)&&(t.scope=t.props),t.node&&o.__if&&(e[r||t.key]=t),t.props||(t.props={}),Uu(t,e),t.tag!=="string"&&t.tag!=="fragment"){wo(t),So(t);for(let s in t){if(K(t[s])||qt(s,t)||g(re[s]))continue;let i=t.define?.[s],a=t.context?.define?.[s],c=n.define?.[s];!o.__skipCreate&&re[s]&&!c||t[s]&&!i&&!c&&!a&&jt(O(t[s],t),t,s,n)}}return e[r||t.key]=t,delete t.update,delete t.__element,t.props&&(delete t.props.update,delete t.props.__element),t},Oo=jt;var Cr=(t,e={})=>{let{__ref:r}=t,n=e.contentElementKey;return(!r.contentElementKey||n!==r.contentElementKey)&&(r.contentElementKey=n||"content"),r.contentElementKey};function Lu(t){let e=this;jt(e,e.parent,void 0,{ignoreChildExtends:!0,...ut.defaultOptions,...ut.create,...t})}var Vu=(t,e,r)=>{let n=Cr(e,r);e[n]?.node&&Va(e,r);let o=jt(t,e,n||"content",{ignoreChildExtends:!0,...ut.defaultOptions,...ut.create,...r});return n!=="content"&&(r.contentElementKey="content"),o},Mu=function(t,e){let r=this,n=Cr(r,e);r[n]&&r[n].update&&r[n].update(t,e)};function hn(t,e,r){let n=O(t,e);n&&e&&ja.call(e,n,r)}var Va=function(t,e={}){let r=t||this,n=Cr(r,e);e.contentElementKey!=="content"&&(e.contentElementKey="content");let o=r[n];if(o){if(o.tag==="fragment"&&o.__ref?.__children){let s=o.__ref.__children;for(let i=0;i<s.length;i++){let a=o[s[i]];a.node&&a.node.parentNode&&a.node.parentNode.removeChild(a.node),y(a.remove)&&a.remove()}}else o.node&&o.node.parentNode&&o.node.parentNode.removeChild(o.node),y(o.remove)&&o.remove();delete r[n]}},ja=function(t,e={},r){let n=r||this,{__ref:o}=n;if(o.__settingContent)return n;o.__settingContent=!0;try{return bx(t,e,n)}finally{o.__settingContent=!1}},bx=function(t,e,r){let{__ref:n}=r,o=Cr(r,e),s=r[o],i=s&&s.__ref,a=r.props&&r.props.lazyLoad,c=r.children;if(e.preventContentUpdate===!0&&!c)return;let f=!n.__noChildrenDifference,l=f&&i&&Object.keys(t).length===Object.keys(s).length&&ls(t,s);if(s?.update&&!f&&!l){if(!e.preventBeforeUpdateListener&&!e.preventListeners&&vt("beforeUpdate",t,r,e)===!1)return r;s.update(t),!e.preventUpdateListener&&!e.preventListeners&&W("update",r,e);return}if(!t||typeof t!="object")return r;let{childExtends:u,props:p,tag:d}=t;if(p||(p=t.props={}),d==="fragment"){let h=r.childExtends||r.childExtend;!u&&h&&(t.childExtends=h,p.ignoreChildExtends=!0);let m=r.childProps||r.props?.childProps;!p?.childProps&&m&&(p.childProps=m),p.ignoreChildProps=!0}a?window.requestAnimationFrame(()=>{Vu(t,r,e),e.preventUpdateListener||W("lazyLoad",r,e)}):Vu(t,r,e)};var zu=/^:(.+)/,Hu=/^\*$/,ju=new Map,za=t=>{let e=ju.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(zu);a?n.push({index:i,name:a[1]}):Hu.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return ju.set(t,s),s},Ha=(t,e,r=0)=>{let o=t.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||""),i=null,a=-1,c={};for(let f in e){if(f==="/*")continue;let l=za(f),u=xx(o,l);u>a&&(a=u,i=f,c=Sx(o,l))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},xx=(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(zu.test(r[i]))o+=1;else if(Hu.test(r[i]))o+=.5;else return-1;return o},Sx=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},qa=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},Wa=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},Ga=(t=0,e=F.location.pathname)=>{let n=e.split("/")[t+1];if(n)return`/${n}`},Ao,To=0,_x={level:To,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:L&&L.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!1},ne=(t,e,r={},n={})=>{let o=e||void 0,s=o.context.window||F,i=o.context.document||L,a={..._x,...o.context.routerOptions,...n};To=a.lastLevel;let c=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||"content");let f=Cr(o,a),l=s.location.origin!=="null"?s.location.origin:"http://localhost",u=new s.URL(l+t),{pathname:p,search:d,hash:h}=u,m=qa(d),x=o.node,_=h&&h!==s.location.hash.slice(1),w=p!==Ao;Ao=p;let C,I,A;if(a.useParamsMatching){let k=Ha(p,o.routes,a.level);C=k.routePath,I=k.content,A=k.params}else C=Ga(a.level,p),I=o.routes[C||"/"]||o.routes["/*"],A={};let T=a.scrollToNode?x:a.scrollNode;if(!I||o.state.root.debugging){o.state.root.debugging=!1,a.onNotFound&&a.onNotFound({pathname:p,route:C,element:o});return}if(a.guards&&a.guards.length){let k={pathname:p,route:C,params:A,query:m,hash:h,element:o,state:r},$=Wa(a.guards,k);if($===!1)return;if(typeof $=="string")return ne($,e,r,{...n,guards:[]})}if(a.pushState&&s.history.pushState(r,null,p+(d||"")+(h||"")),w||!_){let k={route:C,hash:h,debugging:!1};Object.keys(A).length&&(k.params=A),Object.keys(m).length&&(k.query=m),a.updateState&&o.state.update(k,{preventContentUpdate:!0}),f&&a.removeOldElement&&o[f].remove();let $=o.__ref?.origin?.content,P={};if($)for(let D in $){let j=$[D];D==="__ref"||D==="props"||D==="node"||D==="parent"||D==="key"||(typeof j=="string"||typeof j=="number"||typeof j=="boolean"||typeof j=="object"&&j!==null&&!j.node&&!j.__ref)&&(P[D]=j)}o.set({...P,tag:a.useFragment&&"fragment",extends:I},{contentElementKey:f})}if(a.scrollToTop&&T.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&I[f].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let k=i.getElementById(h);if(k){let $=k.getBoundingClientRect().top+x.scrollTop-(a.scrollToOffset||0);T.scrollTo({...a.scrollToOptions||{},top:$,left:0})}}W("routeChanged",o,a)},wx=ne;var qu={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>{let e=t.props;return Wt(t,e.href)||Wt(t,t.call("exec",e,t).href)},"aria-label":({props:t})=>t.aria?t.aria.label:t.text}},vx={extends:"Link"},Wu={onClick:(t,e,r)=>{let{props:n,context:o}=e,{href:s,scrollToTop:i,stopPropagation:a}=n,c=e.call("exec",s,e);if(e.call("isString",c)&&c.includes("{{")&&(c=e.call("replaceLiteralsWithObjectFields",c)),a&&t.stopPropagation(),!c)return;let{utils:f,snippets:l,functions:u,routerOptions:p}=o,d=e.__ref.root,h=c.startsWith("http://")||c.startsWith("https://")||c.startsWith("mailto:")||c.startsWith("tel:")||c.startsWith("sketch:")||c.startsWith("whatsapp:")||c.startsWith("sms:")||c.startsWith("skype:")||c.startsWith("viber:")||c.startsWith("callto:")||c.startsWith("facetime:")||c.startsWith("facetime-audio:")||c.startsWith("geo:")||c.startsWith("maps:");if(c&&!h){t.preventDefault();try{let m=d;if(p&&p.customRouterElement){let x=Array.isArray(p.customRouterElement)?p.customRouterElement:p.customRouterElement.split("."),_=d;for(let w of x){if(!_||!_[w]){_=null;break}_=_[w]}_&&(m=_,d.routes&&(m.routes=d.routes))}(u.router||l.router||f.router||ne)(c,m,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",i)?i:!0,...p,...n.routerOptions})}catch(m){console.warn(m)}}}},Cx={extends:[qu,Wu]};var Ex={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:({props:t})=>t.pattern,minLength:({props:t})=>t.minlength,maxLength:({props:t})=>t.maxlength,name:({props:t})=>t.name,autocomplete:({props:t})=>t.autocomplete,placeholder:({props:t})=>t.placeholder,value:t=>{if(!t.props||!t.props.value)return;let e=t.call("exec",t.props.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e},checked:t=>t.call("exec",t.props.checked,t),disabled:({props:t})=>t.disabled||null,readonly:({props:t})=>t.readonly,required:({props:t})=>t.required,type:({props:t})=>t.type}};var kx={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:({props:t})=>t.step,min:({props:t})=>t.min,max:({props:t})=>t.max}};var Ox={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:t=>t.call("exec",t.parent.props.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"}}},Ax={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Tx={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}},Rx={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Ix={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},Px={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Nx={tag:"textarea",extends:["Input","Flex"],variant:"outlined",fontfamily:"Avenir",round:"Z1",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",maxWidth:"G1_default",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",style:{resize:"none"},".simple":{theme:"field",round:"Z2",lineHeight:1.4},".outlined":{theme:"field",borderWidth:"1px",borderStyle:"solid",lineHeight:1.4,placeholder:"Leave us a message...",resize:"none"},html:(t,e)=>t.props.value},Dx={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 Fx={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:({props:t})=>t.value,selected:({props:t})=>t.selected,disabled:({props:t})=>t.disabled}},attr:{name:({props:t})=>t.name,disabled:({props:t})=>t.disabled,value:t=>{if(!t.props||!t.props.value)return;let e=t.call("exec",t.props.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e}}};var $x={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:t=>t.call("exec",t.props.disabled)},Lx={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z",boxSizing:"content-box"},Mx={extends:"SquareButton",round:"C"},Bx={extends:"Button",childExtends:"IconText"},Ux={tag:"nav",display:"flex",childExtends:"SquareButton"},Vx={extends:["SquareButton","ClickableItem"],round:"Z"};var jx={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"}},Hx={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"}};v();var qx={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:({parent:t,props:e})=>Ot(t.props.title)||e.text,width:"fit-content",fontWeight:500,color:"gray12",text:({parent:t})=>t.props.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.props.description,t))||t.props.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.props.description,t)}},Wx={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",props:({props:t})=>({...!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"}}:({props:e})=>e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{}})},Gx={position:"relative",zIndex:999,props:t=>{let{Tooltip:e,TooltipHidden:r}=t,n=e||r;return n?{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":n&&n.props&&n.props[".isActive"]||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}}:void 0}};var Kx={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:t=>`https://api.dicebear.com/7.x/${t.props.avatarType||"initials"}/svg?seed=${t.props.key||t.key||"no-avatar"}`};var Yx={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,r)=>{let n=e.props;e.call("isFunction",n.onInput)?n.onInput(t,e,r):r.update({value:parseFloat(e.node.value)})},onChange:(t,e,r)=>{let n=e.props;e.call("isFunction",n.onChange)?n.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:io("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:io("#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.props&&t.call("exec",t.props[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.props.value||t.props.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 Xx={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:({props: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"}}},Qx={position:"relative",zIndex:999,style:{"&:hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},Jx={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",visibility:"hidden",position:"absolute",inset:"0",onUpdate:t=>t.node.blur()},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},Zx={props:{position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},Input_trigger:{type:"checkbox",opacity:"0",visibility:"hidden",position:"absolute",inset:"0",onUpdate:t=>t.node.blur()}};var tS={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}}}};v();var gn={};Mt(gn,{CDN_PROVIDERS:()=>te,DOMQL_EVENTS:()=>ss,DOMQ_PROPERTIES:()=>He,ENV:()=>qd,ERRORS_REGISTRY:()=>fu,HTML_TAGS:()=>Ln,METHODS:()=>Nn,METHODS_EXL:()=>os,NODE_ENV:()=>Qt,OPTIONS:()=>ut,PACKAGE_MANAGER_TO_CDN:()=>gr,PARSED_DOMQ_PROPERTIES:()=>ns,PROPS_METHODS:()=>qe,STATE_METHODS:()=>Tt,STATE_PROPERTIES:()=>Pd,SVG_TAGS:()=>Xe,TYPES:()=>Qo,addCaching:()=>sl,addContext:()=>ol,addExtend:()=>dh,addExtends:()=>Rt,addItemAfterEveryElement:()=>md,addProtoToArray:()=>Fr,addRef:()=>el,applyCSS:()=>Yu,applyDependentState:()=>Ys,applyEvent:()=>Vr,applyEventUpdate:()=>Qs,applyExtends:()=>Rs,applyProps:()=>Ds,arrayContainsOtherArray:()=>ld,arraysEqual:()=>yd,arrayzeValue:()=>an,cache:()=>Sh,call:()=>Ai,captureSnapshot:()=>Pi,checkForStateTypes:()=>Ws,checkIfInherits:()=>er,checkIfStringIsInArray:()=>Sd,clone:()=>Dd,cloneAndMergeArrayExtend:()=>ws,cloneFunction:()=>eh,concatAddExtends:()=>Es,copyJavaScriptToClipboard:()=>Qm,copyStringToClipboard:()=>Xm,createBasedOnType:()=>tl,createElement:()=>qs,createElementExtends:()=>Bc,createExtends:()=>Cs,createExtendsFromKeys:()=>Mn,createExtendsStack:()=>zc,createIfConditionFlag:()=>Br,createInheritedState:()=>Gs,createKey:()=>bs,createNestedObject:()=>us,createNestedObjectByKeyPath:()=>Ks,createObjectWithoutPrototype:()=>Ac,createParent:()=>rl,createPath:()=>nl,createProps:()=>$s,createPropsStack:()=>Qc,createRoot:()=>Hs,createScope:()=>Hn,createSnapshotId:()=>ys,customDecodeURIComponent:()=>Id,customEncodeURIComponent:()=>Rd,cutArrayAfterValue:()=>dd,cutArrayBeforeValue:()=>pd,debounce:()=>Xd,debounceOnContext:()=>Qd,decodeNewlines:()=>Ad,deepClone:()=>z,deepContains:()=>ls,deepDestringifyFunctions:()=>le,deepExtend:()=>Lc,deepMerge:()=>U,deepMergeExtends:()=>ue,deepStringifyFunctions:()=>is,defineSetter:()=>jh,detectInfiniteLoop:()=>ms,document:()=>L,encodeNewlines:()=>Od,error:()=>Ci,excludeKeysFromObject:()=>Hd,exec:()=>O,extendCachedRegistry:()=>fh,extendStackRegistry:()=>ks,extractArrayExtend:()=>As,fibonacciNumberByIndex:()=>$m,filterArrays:()=>bd,filterArraysFast:()=>xd,finalizeExtends:()=>Hc,findClosestNumber:()=>Cf,findClosestNumberInFactory:()=>Dm,findInheritedState:()=>tr,findKeyPosition:()=>Cd,flattenExtend:()=>Bn,formatDate:()=>Fm,generateHash:()=>Dc,generateKey:()=>gs,generateMetaTags:()=>Wm,get:()=>Uh,getActiveRoute:()=>Ga,getCDNUrl:()=>ee,getCapitalCaseKeys:()=>mh,getCdnProviderFromConfig:()=>fo,getChildStateInKey:()=>Ze,getChildren:()=>Vh,getContext:()=>_i,getCookie:()=>ih,getDB:()=>Ti,getExtendsInElement:()=>hh,getExtendsStack:()=>vs,getExtendsStackRegistry:()=>$c,getFrequencyInArray:()=>fd,getHashedExtend:()=>Os,getImportMapScript:()=>qm,getInObjectByPath:()=>hs,getLocalStorage:()=>ch,getNev:()=>Yd,getPageMetadata:()=>Ym,getParentStateInKey:()=>Je,getPath:()=>gi,getQuery:()=>Ri,getRef:()=>mi,getRoot:()=>bi,getRootContext:()=>Si,getRootData:()=>xi,getRootState:()=>yi,getRootStateInKey:()=>Qe,getSpreadChildren:()=>gh,global:()=>ad,hasFunction:()=>cs,hasHandlerPlugin:()=>Ke,hasOwnProperty:()=>Bd,inheritChildExtends:()=>Vc,inheritChildPropsExtends:()=>Uc,inheritParentProps:()=>Ms,inheritRecursiveChildExtends:()=>jc,init:()=>Ue,initProps:()=>jn,is:()=>At,isArray:()=>S,isBoolean:()=>Rn,isContextComponent:()=>Ps,isCyclic:()=>zd,isDOMNode:()=>Bt,isDate:()=>Cc,isDefined:()=>Ot,isDevelopment:()=>Jt,isEmpty:()=>kc,isEmptyObject:()=>Ud,isEqualDeep:()=>Oc,isFunction:()=>y,isHtmlElement:()=>Xo,isLocal:()=>Kd,isMethod:()=>qt,isMobile:()=>oh,isNode:()=>Ce,isNot:()=>Dr,isNotProduction:()=>Mr,isNull:()=>vc,isNumber:()=>ct,isObject:()=>g,isObjectLike:()=>N,isPhoto:()=>zm,isProduction:()=>Ge,isStaging:()=>Gd,isState:()=>zn,isString:()=>b,isStringFunction:()=>th,isTest:()=>Tc,isTesting:()=>Wd,isUndefined:()=>K,isValidHtmlTag:()=>ke,joinArrays:()=>In,jointStacks:()=>ph,keys:()=>Yn,lastLevel:()=>To,lastPathname:()=>Ao,loadCssFile:()=>Um,loadJavascript:()=>Vm,loadJavascriptFile:()=>Lm,loadJavascriptFileEmbedSync:()=>Bm,loadJavascriptFileSync:()=>Mm,loadRemoteCSS:()=>jm,loadRemoteScript:()=>lo,log:()=>wi,logGroupIf:()=>nh,logIf:()=>rh,lookdown:()=>ui,lookdownAll:()=>pi,lookup:()=>fi,lowercaseFirstLetter:()=>ce,makeObjectWithoutPrototype:()=>Vd,map:()=>Nd,mapStringsWithContextComponents:()=>Ts,matchRoute:()=>Ha,matchesComponentNaming:()=>It,memoize:()=>Jd,merge:()=>Y,nextElement:()=>Ei,objectToString:()=>as,objectizeStringProperty:()=>Ns,overwrite:()=>fe,overwriteDeep:()=>it,overwriteShallow:()=>Lr,overwriteState:()=>Xs,parse:()=>Xn,parseDeep:()=>Yr,parseQuery:()=>qa,parseRoutePattern:()=>za,pickupElementFromProps:()=>Ur,pickupPropsFromElement:()=>Yc,previousElement:()=>ki,propExists:()=>xh,propertizeElement:()=>Vn,propertizeUpdate:()=>Ls,reinit:()=>Ku,remove:()=>di,removeChars:()=>Jm,removeCookie:()=>ah,removeDuplicateProps:()=>Us,removeDuplicatesInArray:()=>Pn,removeFromArray:()=>Jo,removeFromObject:()=>fs,removeNestedKeyByPath:()=>ps,removeValueFromArray:()=>ts,removeValueFromArrayAll:()=>hd,reorderArrayByValues:()=>gd,replaceLiteralsWithObjectFields:()=>vd,replaceOctalEscapeSequences:()=>kd,report:()=>yt,resolveHandler:()=>Ye,returnValueAsText:()=>Zc,router:()=>ne,runGuards:()=>Wa,runPluginHook:()=>Fn,scratchSystem:()=>go,scratchUtils:()=>br,self:()=>cd,set:()=>un,setCookie:()=>sh,setHashedExtend:()=>Fc,setInObjectByPath:()=>ds,setLocalStorage:()=>lh,setNodeStyles:()=>Kn,setProps:()=>hi,setPropsPrototype:()=>Bs,spotByPath:()=>li,stringIncludesAny:()=>rs,stringToObject:()=>Md,swapItemsInArray:()=>ud,syncProps:()=>Vs,toCamelCase:()=>Hi,toDashCase:()=>qi,toDescriptionCase:()=>tg,toTitleCase:()=>Zm,toggleFullscreen:()=>Nm,triggerEventOn:()=>W,triggerEventOnUpdate:()=>vt,trimStringFromSymbols:()=>_d,unstackArrayOfObjects:()=>Zo,update:()=>Xc,updateProps:()=>js,variables:()=>Oi,verbose:()=>Qn,warn:()=>vi,window:()=>F});v();v();var eS=E(),Gu=(t=eS,e)=>{let r=g(e.localFile)?e.localFile:{},n=z(r.designSystem||{});return U(t,n)},rS={emotion:Ct,useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Ue=(t,e=rS)=>{let r=e.emotion||Ct,n=Gu(t||{},e),o=un({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:e.globalTheme,files:e.files,...n},{newConfig:e.newConfig}),s=ji(o.font,o.files),i=o.useReset,a=o.useVariable,c=o.useFontImport,f=o.useSvgSprite,l=t.svg,u=o.useIconSprite,p=t.icons;if(c&&r.injectGlobal(s),a&&(r.injectGlobal({":root":o.CSS_VARS}),o.CSS_MEDIA_VARS)){let h={};for(let m in o.CSS_MEDIA_VARS)m.startsWith("@media")?h[m]={":root:not([data-theme])":o.CSS_MEDIA_VARS[m]}:h[m]=o.CSS_MEDIA_VARS[m];r.injectGlobal(h)}i&&r.injectGlobal(o.reset);let d=o.animation;if(d){let h={};for(let m in d)h[`@keyframes ${m}`]=d[m];r.injectGlobal(h)}return(l||f)&&xa(o.svg,{document:e.document}),(p||u)&&_a(o.icons,{document:e.document}),o},Ro={emotion:Ct},Ku=(t,e=Ro)=>{let r=e.emotion||Ct,n=Gu(t||{},e),o=un({verbose:!1,...n});if(!e.preventInject){if(r.injectGlobal({":root":o.CSS_VARS}),o.CSS_MEDIA_VARS){let s={};for(let i in o.CSS_MEDIA_VARS)i.startsWith("@media")?s[i]={":root:not([data-theme])":o.CSS_MEDIA_VARS[i]}:s[i]=o.CSS_MEDIA_VARS[i];r.injectGlobal(s)}r.injectGlobal(o.reset)}return o},Yu=(t,e=Ro)=>{(e.emotion||Ct).injectGlobal(t)},kT=(t,e=Ro)=>{let r=e.emotion||Ct;if(r.injectGlobal({":root":t.CSS_VARS}),t.CSS_MEDIA_VARS){let n={};for(let o in t.CSS_MEDIA_VARS)o.startsWith("@media")?n[o]={":root:not([data-theme])":t.CSS_MEDIA_VARS[o]}:n[o]=t.CSS_MEDIA_VARS[o];r.injectGlobal(n)}},OT=(t,e=Ro)=>{};v();var Ya={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},Qu=(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},Ju=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=Ya:e.router=Y(e.router||{},Ya);let r=e.router,n=async(s,i)=>{if(!F.location)return;let{pathname:a,search:c,hash:f}=F.location,l=a+c+f,u=s;if(r.customRouterElement){let p=Qu(s,r.customRouterElement);p&&(u=p,s.routes&&(u.routes=s.routes))}u.routes&&await ne(l,u,{},{initialRender:!0})},o=t.on&&!K(t.on.renderRouter)||!K(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.on?t.on.renderRouter=n:t.on={renderRouter:n}),nS(e,r),r},Xu,Zu=(t,e)=>{if(Xu)return;Xu=!0;let r=e.router||Ya;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:ne;F.onpopstate=async o=>{let{pathname:s,search:i,hash:a}=F.location,c=s+i+a,f=t;if(r.customRouterElement){let l=Qu(t,r.customRouterElement);l&&(f=l,t.routes&&(f.routes=t.routes))}await f.call("router",c,f,{},{pushState:!1,scrollToTop:!1,level:0,event:o})}},nS=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return U(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};v();var Xa=F&&F.location?F.location.host.includes("dev."):Jt(),tp=Xa?"http://localhost:8080/get":"https://api.symbols.app/get",oS={endpoint:tp},ep=async(t,e=oS)=>{let r=e.endpoint||tp,n=e.serviceRoute?S(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(y(e.onError))return e.onError(s);console.error(s)}},sS=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await ep(t,r),o=Xa||e.isDevelopment?le(n):le(n.releases[0]);r.serviceRoute?S(r.serviceRoute)?r.serviceRoute.forEach(s=>{it(e[s],o[s.toLowerCase()])}):it(e[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","packages","functions"].forEach(s=>{it(e[s],o[s.toLowerCase()])})}return e},iS=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await ep(t,n),s=Xa||e.isDevelopment?le(o):le(o.releases[0]);r(s)}},rp=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await sS(t,e)}catch(r){console.error(r)}},np=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&iS(e,r,n||(o=>{let s=o.designSystem;g(s)&&r.utils.init(s),g(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};v();var aS={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"}},cS=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}"]`},Io=(t,e,r)=>{if(!t)return{};let n=y(t)?O(t,e,r):{...t};if(!g(n))return{};for(let o in n){let s=n[o];y(s)&&(s=O(s,e,r)),b(s)&&s.includes("{{")&&e?.call&&(s=e.call("replaceLiteralsWithObjectFields",s,r)),n[o]=s}return n};var lS=(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},Po=(t,e)=>{if(!(!g(t)||!e))for(let r in t){let n=t[r];if(n==null)continue;let o=aS[r];if(!o)continue;let s=cS(o),i=e.querySelector(s)||lS(o,e);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}};var op={name:"helmet",create(t){let e=t.metadata||t.props?.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Io(e,t,t.state);Po(n,r)},update(t){let e=t.metadata||t.props?.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Io(e,t,t.state);Po(n,r)}};Ae();var sp=(t,e,r,n)=>{t&&Gr(t,e,r,n)},ip=(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<"u"&&document;if(!n)return;let o=Io(t,e,r);Po(o,n)},ap=async(t,e)=>{if(!t)return;let r={tag:"fragment",...t},n=async()=>{await e.set(r,{preventDefineUpdate:"$router"})};return e.props&&e.props.lazyLoad?window.requestAnimationFrame(n):await n(),r},yn={routes:t=>t,metadata:ip,fetch:sp,$router:ap},fS=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=ip),t.fetch!==!1&&(e.fetch=sp),t.router!==!1&&(e.$router=ap),e};var cp={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},Qa={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},Ja={...cp,router:Qa},uS={state:{},pages:{},components:{},router:Qa,define:yn},Se=uS;var pS=(t,e,r,n)=>{let o=(Oo.default||Oo)(t,e,r,n);return o.on?.complete&&o.on.complete(t,t.state,t.context,n),o.props?.onComplete&&o.props?.onComplete(t,t.state,t.context,n),o.on?.initInspect&&o.on.initInspect(t,t.state,t.context,n),o.on?.initSync&&o.on.initSync(t,t.state,t.context,n),o},No={TREE:Ma,create:pS};v();v();var zt=Object.create(null);zt.open="0";zt.close="1";zt.ping="2";zt.pong="3";zt.message="4";zt.upgrade="5";zt.noop="6";var bn=Object.create(null);Object.keys(zt).forEach(t=>{bn[zt[t]]=t});var xn={type:"error",data:"parser error"};var up=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",pp=typeof ArrayBuffer=="function",dp=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Sn=({type:t,data:e},r,n)=>up&&e instanceof Blob?r?n(e):lp(e,n):pp&&(e instanceof ArrayBuffer||dp(e))?r?n(e):lp(new Blob([e]),n):n(zt[t]+(e||"")),lp=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];e("b"+(n||""))},r.readAsDataURL(t)};function fp(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var Za;function hp(t,e){if(up&&t.data instanceof Blob)return t.data.arrayBuffer().then(fp).then(e);if(pp&&(t.data instanceof ArrayBuffer||dp(t.data)))return e(fp(t.data));Sn(t,!1,r=>{Za||(Za=new TextEncoder),e(Za.encode(r))})}var mp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_n=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<mp.length;t++)_n[mp.charCodeAt(t)]=t;var gp=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 f=new ArrayBuffer(e),l=new Uint8Array(f);for(n=0;n<r;n+=4)s=_n[t.charCodeAt(n)],i=_n[t.charCodeAt(n+1)],a=_n[t.charCodeAt(n+2)],c=_n[t.charCodeAt(n+3)],l[o++]=s<<2|i>>4,l[o++]=(i&15)<<4|a>>2,l[o++]=(a&3)<<6|c&63;return f};var dS=typeof ArrayBuffer=="function",wn=(t,e)=>{if(typeof t!="string")return{type:"message",data:yp(t,e)};let r=t.charAt(0);return r==="b"?{type:"message",data:hS(t.substring(1),e)}:bn[r]?t.length>1?{type:bn[r],data:t.substring(1)}:{type:bn[r]}:xn},hS=(t,e)=>{if(dS){let r=gp(t);return yp(r,e)}else return{base64:!0,data:t}},yp=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}};var bp="",xp=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{Sn(s,!1,a=>{n[i]=a,++o===r&&e(n.join(bp))})})},Sp=(t,e)=>{let r=t.split(bp),n=[];for(let o=0;o<r.length;o++){let s=wn(r[o],e);if(n.push(s),s.type==="error")break}return n};function _p(){return new TransformStream({transform(t,e){hp(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 tc;function Do(t){return t.reduce((e,r)=>e+r.length,0)}function Fo(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 wp(t,e){tc||(tc=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(Do(r)<1)break;let c=Fo(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(Do(r)<2)break;let c=Fo(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(Do(r)<8)break;let c=Fo(r,8),f=new DataView(c.buffer,c.byteOffset,c.length),l=f.getUint32(0);if(l>Math.pow(2,21)-1){a.enqueue(xn);break}o=l*Math.pow(2,32)+f.getUint32(4),n=3}else{if(Do(r)<o)break;let c=Fo(r,o);a.enqueue(wn(s?c:tc.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(xn);break}}}})}var ec=4;function X(t){if(t)return mS(t)}function mS(t){for(var e in X.prototype)t[e]=X.prototype[e];return t}X.prototype.on=X.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};X.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};X.prototype.off=X.prototype.removeListener=X.prototype.removeAllListeners=X.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};X.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};X.prototype.emitReserved=X.prototype.emit;X.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};X.prototype.hasListeners=function(t){return!!this.listeners(t).length};var oe=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),bt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),vp="arraybuffer";function $o(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var gS=bt.setTimeout,yS=bt.clearTimeout;function se(t,e){e.useNativeTimers?(t.setTimeoutFn=gS.bind(bt),t.clearTimeoutFn=yS.bind(bt)):(t.setTimeoutFn=bt.setTimeout.bind(bt),t.clearTimeoutFn=bt.clearTimeout.bind(bt))}var bS=1.33;function Cp(t){return typeof t=="string"?xS(t):Math.ceil((t.byteLength||t.size)*bS)}function xS(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 Lo(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Ep(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function kp(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 Mo=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type="TransportError"}},ie=class extends X{constructor(e){super(),this.writable=!1,se(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 Mo(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=wn(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=Ep(e);return r.length?"?"+r:""}};var vn=class extends ie{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)};Sp(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,xp(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]=Lo()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var Op=!1;try{Op=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var Ap=Op;function SS(){}var rc=class extends vn{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}},_e=class t extends X{constructor(e,r,n){super(),this.createRequest=e,se(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=$o(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=SS,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()}};_e.requestsCount=0;_e.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Tp);else if(typeof addEventListener=="function"){let t="onpagehide"in bt?"pagehide":"unload";addEventListener(t,Tp,!1)}}function Tp(){for(let t in _e.requests)_e.requests.hasOwnProperty(t)&&_e.requests[t].abort()}var _S=(function(){let t=Rp({xdomain:!1});return t&&t.responseType!==null})(),we=class extends rc{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=_S&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new _e(Rp,this.uri(),e)}};function Rp(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Ap))return new XMLHttpRequest}catch{}if(!e)try{return new bt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var Ip=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",oc=class extends ie{get name(){return"websocket"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=Ip?{}:$o(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;Sn(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&oe(()=>{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]=Lo()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},nc=bt.WebSocket||bt.MozWebSocket,ve=class extends oc{createSocket(e,r,n){return Ip?new nc(e,r,n):r?new nc(e,r):new nc(e)}doWrite(e,r){this.ws.send(r)}};var Er=class extends ie{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=wp(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=_p();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&&oe(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var sc={websocket:ve,webtransport:Er,polling:we};var wS=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,vS=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function kr(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=wS.exec(t||""),s={},i=14;for(;i--;)s[vS[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=CS(s,s.path),s.queryKey=ES(s,s.query),s}function CS(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 ES(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var ic=typeof addEventListener=="function"&&typeof removeEventListener=="function",Bo=[];ic&&addEventListener("offline",()=>{Bo.forEach(t=>t())},!1);var Ve=class t extends X{constructor(e,r){if(super(),this.binaryType=vp,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=kr(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=kr(r.host).host);se(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=kp(this.opts.query)),ic&&(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"})},Bo.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=ec,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+=Cp(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,oe(()=>{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(),ic&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Bo.indexOf(this._offlineEventListener);n!==-1&&Bo.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};Ve.protocol=ec;var Uo=class extends Ve{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;Ve.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;Ve.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(l(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let p=new Error("probe error");p.transport=r.name,this.emitReserved("upgradeError",p)}}))};function s(){n||(n=!0,l(),r.close(),r=null)}let i=u=>{let p=new Error("probe error: "+u);p.transport=r.name,s(),this.emitReserved("upgradeError",p)};function a(){i("transport closed")}function c(){i("socket closed")}function f(u){r&&u.name!==r.name&&s()}let l=()=>{r.removeListener("open",o),r.removeListener("error",i),r.removeListener("close",a),this.off("close",c),this.off("upgrading",f)};r.once("open",o),r.once("error",i),r.once("close",a),this.once("close",c),this.once("upgrading",f),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}},Or=class extends Uo{constructor(e,r={}){let n=typeof e=="object"?e:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>sc[o]).filter(o=>!!o)),super(e,n)}};var oI=Or.protocol;function Pp(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=kr(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 pc={};Mt(pc,{Decoder:()=>fc,Encoder:()=>lc,PacketType:()=>R,isPacketValid:()=>FS,protocol:()=>Lp});var OS=typeof ArrayBuffer=="function",AS=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Np=Object.prototype.toString,TS=typeof Blob=="function"||typeof Blob<"u"&&Np.call(Blob)==="[object BlobConstructor]",RS=typeof File=="function"||typeof File<"u"&&Np.call(File)==="[object FileConstructor]";function En(t){return OS&&(t instanceof ArrayBuffer||AS(t))||TS&&t instanceof Blob||RS&&t instanceof File}function Cn(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(Cn(t[r]))return!0;return!1}if(En(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Cn(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&Cn(t[r]))return!0;return!1}function Dp(t){let e=[],r=t.data,n=t;return n.data=ac(r,e),n.attachments=e.length,{packet:n,buffers:e}}function ac(t,e){if(!t)return t;if(En(t)){let r={_placeholder:!0,num:e.length};return e.push(t),r}else if(Array.isArray(t)){let r=new Array(t.length);for(let n=0;n<t.length;n++)r[n]=ac(t[n],e);return r}else if(typeof t=="object"&&!(t instanceof Date)){let r={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=ac(t[n],e));return r}return t}function Fp(t,e){return t.data=cc(t.data,e),delete t.attachments,t}function cc(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]=cc(t[r],e);else if(typeof t=="object")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=cc(t[r],e));return t}var $p=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Lp=5,R;(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"})(R||(R={}));var lc=class{constructor(e){this.replacer=e}encode(e){return(e.type===R.EVENT||e.type===R.ACK)&&Cn(e)?this.encodeAsBinary({type:e.type===R.EVENT?R.BINARY_EVENT:R.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===R.BINARY_EVENT||e.type===R.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)),r}encodeAsBinary(e){let r=Dp(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},fc=class t extends X{constructor(e){super(),this.reviver=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===R.BINARY_EVENT;n||r.type===R.BINARY_ACK?(r.type=n?R.EVENT:R.ACK,this.reconstructor=new uc(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(En(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(R[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===R.BINARY_EVENT||n.type===R.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");n.attachments=Number(i)}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 n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,r){switch(e){case R.CONNECT:return Vo(r);case R.DISCONNECT:return r===void 0;case R.CONNECT_ERROR:return typeof r=="string"||Vo(r);case R.EVENT:case R.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&$p.indexOf(r[0])===-1);case R.ACK:case R.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},uc=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=Fp(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function IS(t){return typeof t=="string"}var PS=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function NS(t){return t===void 0||PS(t)}function Vo(t){return Object.prototype.toString.call(t)==="[object Object]"}function DS(t,e){switch(t){case R.CONNECT:return e===void 0||Vo(e);case R.DISCONNECT:return e===void 0;case R.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&$p.indexOf(e[0])===-1);case R.ACK:return Array.isArray(e);case R.CONNECT_ERROR:return typeof e=="string"||Vo(e);default:return!1}}function FS(t){return IS(t.nsp)&&NS(t.id)&&DS(t.type,t.data)}function kt(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var $S=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Ar=class extends X{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=[kt(e,"open",this.onopen.bind(this)),kt(e,"packet",this.onpacket.bind(this)),kt(e,"error",this.onerror.bind(this)),kt(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($S.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:R.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let l=this.ids++,u=r.pop();this._registerAckCallback(l,u),i.id=l}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:R.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 R.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 R.EVENT:case R.BINARY_EVENT:this.onevent(e);break;case R.ACK:case R.BINARY_ACK:this.onack(e);break;case R.DISCONNECT:this.ondisconnect();break;case R.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:R.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:R.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 je(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}je.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};je.prototype.reset=function(){this.attempts=0};je.prototype.setMin=function(t){this.ms=t};je.prototype.setMax=function(t){this.max=t};je.prototype.setJitter=function(t){this.jitter=t};var Tr=class extends X{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,se(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 je({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||pc;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 Or(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=kt(r,"open",function(){n.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=kt(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(kt(e,"ping",this.onping.bind(this)),kt(e,"data",this.ondata.bind(this)),kt(e,"error",this.onerror.bind(this)),kt(e,"close",this.onclose.bind(this)),kt(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){oe(()=>{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 Ar(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 kn={};function On(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let r=Pp(t,e.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=kn[o]&&s in kn[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Tr(n,e):(kn[o]||(kn[o]=new Tr(n,e)),c=kn[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(On,{Manager:Tr,Socket:Ar,io:On,connect:On});v();var LS={success:"green",error:"red",warning:"yellow"},Mp=(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.setProps({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.setProps({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},An={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:LS[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,r,n)=>{r.setProps({animation:"fadeInUp"})},onClick:(e,r,n)=>{delete n.notifications[r.key],r.setProps({animation:"fadeOutDown"}),n.onClose&&n.onClose(e,r,n)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var Bp=process.env.NODE_ENV==="local",MS=(t,e)=>{!t||!Array.isArray(e)||e.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},t)},BS=(t,e,r,n=!1)=>{!t||!Array.isArray(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)},US=(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":MS(t,o);break;case"update":case"set":BS(t,o,s,!0);break;default:break}return r},VS=async()=>{try{let t=Bp?"http://localhost:8080":"https://api.symbols.app",e=await F.fetch(`${t}/service-token`,{method:"GET"}),r;try{let n=await e.clone().json();if(n&&typeof n.token=="string")return n.token.trim();r=await e.text()}catch{r=await e.text()}return(r||"").replace(/\s+/gu,"")||void 0}catch(t){console.error("[sync] Failed to fetch service-token",t)}},jS=(t,e,r)=>(n={})=>{let{data:o}=n,{schema:s}=n;o&&(o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?Ue(a):Lr(r[i],a):r[i]=a}),s&&(r.schema=s))},zS=(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=US(r,o);if(s.has("state")){let i=r.state?.route;i?t.call("router",i.replace("/state","")||"/",t.__ref.root,{},{scrollToTop:!1}):e.update(r.state)}if(["pages","components","snippets","functions"].some(i=>s.has(i))){let{pathname:i,search:a,hash:c}=r.window.location;t.call("router",i+a+c,t.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&Ue(r.designSystem)},HS=async(t,e,r)=>{let n=await VS();if(!n)return console.warn("[sync] No service token \u2013 live collaboration disabled"),null;let o=r.key;if(!o)return console.warn("[sync] ctx.key missing \u2013 cannot establish collaborative connection"),null;let i=On(Bp?"http://localhost:8080":"https://api.symbols.app",{path:"/collab-socket",transports:["websocket"],auth:{token:n,projectKey:o,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return i.on("connect",()=>{r.editor?.verbose&&console.info("[sync] Connected to collab socket")}),i.on("snapshot",jS(t,e,r)),i.on("ops",zS(t,e,r)),i.on("clients",a=>{r.editor?.verbose&&Mp(a,t,e)}),i.on("disconnect",a=>{r.editor?.verbose&&console.info("[sync] Disconnected from collab socket",a)}),i},jo={onInitSync:HS};var Up=(t,e)=>N(t.extends)?t.extends:[],Vp=(t,e)=>{let{editor:r}=e;if(!r)return;(K(r.liveSync)?Jt():r.liveSync)&&(S(t.extends)?t.extends.push(jo):t.extends?t.extends=[t.extends,jo]:t.extends=[jo])};var jp=(t,e)=>{let{editor:r}=e;if(!r)return;(K(r.verbose)?Jt()||e.verbose:r.verbose)&&(S(t.extends)?t.extends.push(An):t.extends?t.extends=[t.extends,An]:t.extends=[An])};v();v();var qS=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],zp=(t,e={})=>{let r=e.parent||e.document||document,n=e.initOptions||{},o=n.emotion;n.emotion||(n.emotion=Ct);let s=e.registry||hf(n.emotion,e),i=e.designSystem?U(z(Ta),e.designSystem):z(Ta),a={};for(let f of qS)e[f]!==void 0&&(a[f]=e[f]);return[Ue(i,{key:t,emotion:o,document:r,files:e.files,...Ja,...a,...n}),o,s]};var Wp=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let r=typeof document<"u"?document:e.document;return t.document=t.document||r,t.window=t.window||e,t.window},Hp=(t="smbls")=>{let e={};for(let r in Be)Object.prototype.hasOwnProperty.call(Be,r)&&(It(r)?e[`smbls.${r}`]=Be[r]:e[r]=Be[r]);return e},Gp=t=>t.components?{...Hp(),...t.components}:Hp(),Kp=t=>({...gn,...Ka,...br,...t.utils,...t.snippets,...t.functions}),Yp=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),qp={},Xp=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=gr[s]||fo(i)||"esmsh"),!t)return null;let a=!1;for(let c in t){a=!0;break}if(!a)return null;for(let c in t){let f=t[c];if(e&&e[c])continue;let l=Jt()&&n?`?${Math.random()}`:"",u=ee(c,f,o)+l;try{if(qp[c])return;qp[c]=!0,await lo(u,{document:r,type:"module"})}catch(p){if(console.error(`Failed to load ${c} from ${o}:`,p),o!=="symbols")try{let d=ee(c,f,"symbols")+l;await lo(d,{document:r}),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(d){console.error(`Failed to load ${c} from fallback:`,d)}}}return t},Qp=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||fo(e.symbolsConfig)||"esmsh",o=async i=>async(a,c)=>{let l=(i.window||window).packages[a];return typeof l=="function"?l():l},s=async i=>async(a,c=n)=>{let{dependenciesOnDemand:f}=i,l=i.document||document,u=i.window||window;if(!u.packages[a]){let p=Jt()?`?${Math.random()}`:"";if(f&&f[a]){let d=f[a],h=ee(a,d,c)+p;try{await i.utils.loadRemoteScript(h,{window:u,document:l})}catch(m){if(console.error(`Failed to load ${a} from ${c}:`,m),c!=="symbols"){let x=ee(a,d,"symbols")+p;await i.utils.loadRemoteScript(x,{window:u,document:l})}}}else{let d=ee(a,"latest",c)+p;try{await i.utils.loadRemoteScript(d,{window:u,document:l})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let m=ee(a,"latest","symbols")+p;await i.utils.loadRemoteScript(m,{window:u,document:l})}}u.packages[a]="loadedOnDeman"}}return await u.require(a,c)};r.packages?r.packages=Y(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)},Jp=(t,e)=>{let[r,n,o]=zp(t,e);return[r,n,o]},Zp=(t,e)=>{let r={};return e.state&&U(r,e.state),t&&t.state&&U(r,t.state),r.isRootState=!0,z(r)},td=(t,e)=>{g(t.routes)&&g(e.pages)&&Y(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},ed=t=>{let e=t.sharedLibraries;for(let r=0;r<e.length;r++){let n=e[r];t.type==="template"?(overwriteShallow(t.designSystem,n.designSystem),U(t,n,["designSystem"],1)):U(t,n,[],1)}};v();var nd="smbls_lang",WS="smbls_t_",GS="smbls_tv_",Rr={get(t){try{return window?.localStorage.getItem(t)}catch{return null}},set(t,e){try{window?.localStorage.setItem(t,e)}catch{}},remove(t){try{window?.localStorage.removeItem(t)}catch{}}},Tn={};function Ho(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||e?.defaultLang||"en"}function dc(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var zo=(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},rd=(t,e,r)=>{let n=e.lastIndexOf(".");if(n===-1)return t[e+"_"+r];let o=zo(t,e.substring(0,n));if(o!=null)return o[e.substring(n+1)+"_"+r]};function hc(t,e){if(!t)return"";let r=this?.context,n=r?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let f=rd(s,t,o);if(f!==void 0)return f}if(n?.translations){let f=n.translations[o];if(f){let l=zo(f,t);if(l!==void 0)return l}}let a=(s?.root||r?.state?.root)?.translations;if(a){let f=a[o];if(f){let l=zo(f,t);if(l!==void 0)return l}}let c=n?.defaultLang||"en";if(s){let f=rd(s,t,c);if(f!==void 0)return f}if(n?.translations){let f=n.translations[c];if(f){let l=zo(f,t);if(l!==void 0)return l}}return t}async function mc(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!r||!n)return;let o=r.storagePrefix||WS,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):GS);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch)return;if(!n.translations?.[t]){let c=Rr.get(o+t);if(c)try{let f=JSON.parse(c),l={translations:{...n.translations||{}}};l.translations[t]=f,n.update&&n.update(l)}catch{}}let i=(r.storagePrefix||"smbls")+":"+t;if(Tn[i])return Tn[i];let a=this;return Tn[i]=(async()=>{try{let c=r.fetch,f=parseInt(Rr.get(s+t),10)||0,l,u,p;if(y(c)){let h=await c(t,f,a);if(!h||h.changed===!1)return;l=h.translations||h.data||h,u=h.version||0,p=!0}else if(g(c)){let h=a.getDB||(()=>e.fetch),m=y(h)?await h.call(a):e.fetch;if(!m)return;let x=c.rpc||c.from||"get_translations_if_changed",_={p_lang:t,p_cached_version:f,...c.params||{}},w=await m.rpc({from:x,params:_});if(w.error)throw w.error;let C=w.data;if(!C||!C.changed)return;l=C.translations||{},u=C.version||0,p=!0}else return;if(!p||!l)return;Rr.set(o+t,JSON.stringify(l)),u&&Rr.set(s+t,String(u));let d={translations:{...n.translations||{}}};d.translations[t]=l,n.update&&n.update(d)}catch(c){r.verbose!==!1&&console.error("[polyglot] Failed to load translations for",t,c)}finally{delete Tn[i]}})(),Tn[i]}async function gc(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||nd;Rr.set(o,t),r?.fetch&&await this.call("loadTranslations",t),n.update&&n.update({lang:t})}async function yc(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&&g(o.fetch)){let i=this.getDB||(()=>n.fetch),a=y(i)?await i.call(this):n.fetch;if(!a)return;let c=o.fetch.table||"translations",f=await a.upsert({from:c,data:{key:t,lang:e,text:r}});if(f?.error)throw f.error;return f.data}}async function od(){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||nd,s=Rr.get(n)||e.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&await this.call("loadTranslations",s)}function bc(t){let e=this.call("getActiveLang"),r=this?.state;if(!r)return"";let n=t.lastIndexOf(".");if(n===-1)return r[t+e]??"";let o=t.substring(0,n).split("."),s=r;for(let i=0;i<o.length;i++){if(s==null)return"";s=s[o[i]]}return s==null?"":s[t.substring(n+1)+e]??""}var xc={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,od.call(t))}};var qo={polyglot:hc,getLocalStateLang:bc,getActiveLang:Ho,getLang:Ho,setLang:gc,getLanguages:dc,loadTranslations:mc,upsertTranslation:yc};Ae();var KS=async(t,e={})=>{let r=e.key=e.key||(b(t)?t:"smblsapp");e.define=e.define||yn,e.cssPropsRegistry=pn,e.window=Wp(e),e.sharedLibraries&&e.sharedLibraries.length&&ed(e);let[n,o,s]=Jp(r,e);e.designSystem=n,e.registry=s,e.emotion=o;let i=Zp(t,e);e.state=i,e.pages=td(t,e),e.components=Gp(e),e.utils=Kp(e),gr[e.packageManager]&&(e.dependencies=await Xp(e)),e.methods=Yp(e),e.routerOptions=Ju(t,e),e.defaultExtends=[Ia],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[];let a=c=>e.plugins.some(f=>f.name===c);if(e.polyglot&&!a("polyglot")){e.plugins.push(xc);for(let c in qo)c in e.functions||(e.functions[c]=qo[c])}return a("helmet")||e.plugins.push(op),e.fetch&&!a("fetch")&&e.plugins.push(ai),e},Sc=async(t,e)=>{g(e)||(e={}),Ce(t)?(t={},e.parent=t):b(t)?(t={},e.key=t):g(t)||(t={}),await KS(t,e),t.extends=Up(t,e),t.routes=e.pages,t.state=e.state,t.context=e,t.data=t.data||{},t.data.frameListeners=hu(e),await Qp({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e),Vp(t,e),jp(t,e);let r=e.document;if(!r||!r.createElement)return t;let n=e.parent||r.body;return await(No.default&&No.default.create||No.create)(t,n,e.key,{verbose:e.verbose,...e.domqlOptions})};var _c=(t,e)=>U(t,g(e)?e:{}),sd=(t,e=Se,r)=>{let n={...Se,..._c(e,r)},o=Sc(t,n).then(s=>{Zu(s,n),n.on&&n.on.create&&n.on.create(o,o.state,o.context,n)});return o},DP=(t,e=Se,r)=>{let n=sd(t,e,r),o={...Se,..._c(e,r)},s=o.key;return np(n,s,{utils:gn,...o}),n},FP=async(t,e=Se,r)=>{let n={...Se,..._c(e,r)},o=e.key;await rp(o,n);let s=await Sc(t,n);return n.on&&n.on.create&&await n.on.create(s,s.state,s.context,n),s},$P=(t={},e=Se,r)=>sd({deps:{isUndefined:K},...t},U({domqlOptions:{onlyResolveExtends:!0}},e),r);export{vx as A,Vf as ANIMATION_PROPS,zw as ARIA_ROLES,Il as ATTR_TRANSFORMS,Kx as Avatar,ob as B,jf as BLOCK_PROPS,_y as Block,Ia as Box,lb as Br,$x as Button,Ux as ButtonSet,te as CDN_PROVIDERS,Tg as CLASS,Ki as CONFIG,Pg as CSS_MEDIA_VARS,Zt as CSS_NATIVE_COLOR_REGEX,pn as CSS_PROPS_REGISTRY,rn as CSS_UNITS,Ig as CSS_VARS,Yy as Caption,Ox as Checkbox,Ax as CheckboxHgroup,Mx as CircleButton,Ny as Clickable,Ta as DEFAULT_CONFIG,Ja as DEFAULT_CONTEXT,Yf as DEFAULT_CSS_PROPERTIES_LIST,cp as DESIGN_SYSTEM_OPTIONS,ss as DOMQL_EVENTS,He as DOMQ_PROPERTIES,Jh as DOM_EVENTS,ib as Data,jx as Dialog,Hx as DialogFooter,zx as DialogHeader,Xx as DropdownList,Qx as DropdownParent,Jx as DropdownParentFocus,Zx as DropdownSiblingFocus,qd as ENV,Ne as FACTORY,Gf as FLEX_PROPS,zf as FONT_PROPS,bb as FileIcon,vy as Flex,Dy as Focusable,Fy as FocusableComponent,nb as Footnote,Ty as Form,Kf as GRID_PROPS,Ey as Grid,Oy as Gutter,jy as H1,zy as H2,Hy as H3,qy as H4,Wy as H5,Gy as H6,Ni as HTML_ATTRIBUTES,Ln as HTML_TAGS,eb as Headline,db as Hgroup,mb as HgroupButton,hb as HgroupRows,Py as Hoverable,cb as Hr,sb as I,gb as Icon,Vx as IconButton,yb as IconText,Ry as Iframe,Ay as Img,wy as Inline,Cy as InlineFlex,ky as InlineGrid,Ex as Input,Zy as Italic,Bx as KangorooButton,fb as Li,qu as Link,Nn as METHODS,os as METHODS_EXL,Oa as MISC_PROPS,Qt as NODE_ENV,tS as Notification,kx as NumberInput,ut as OPTIONS,pb as Ol,Ky as P,gr as PACKAGE_MANAGER_TO_CDN,ns as PARSED_DOMQ_PROPERTIES,Hf as POSITION_PROPS,qe as PROPS_METHODS,My as Picture,Qa as ROUTER_OPTIONS,Tx as Radio,Rx as RadioHgroup,Yx as Range,Cx as RouteLink,Wu as RouterLink,$y as SHAPES,Tt as STATE_METHODS,Pd as STATE_PROPERTIES,Xe as SVG_TAGS,Fx as Select,Lx as SquareButton,Xy as Strong,rb as Subhead,By as Svg,qf as THEME_PROPS,Wf as TIMING_PROPS,Qo as TYPES,Vy as Text,Nx as Textarea,Dx as TextareaWithButton,Ly as Theme,tb as Title,Ix as Toggle,Px as ToggleHgroup,qx as Tooltip,Wx as TooltipHidden,Gx as TooltipParent,Qy as U,ub as Ul,Jy as Underline,Uf as VALUE_TRANSFORMERS,Uy as Video,X0 as activateConfig,sl as addCaching,ol as addContext,dh as addExtend,Rt as addExtends,md as addItemAfterEveryElement,Fr as addProtoToArray,el as addRef,wg as animation,xa as appendSVGSprite,_a as appendSvgIconsSprite,qw as applyAttrTransforms,Yu as applyCSS,Ui as applyClassListOnNode,Ov as applyClasslist,Ys as applyDependentState,ya as applyDocument,Vr as applyEvent,Qs as applyEventUpdate,Rs as applyExtends,Nf as applyHeadings,yr as applyMediaSequenceVars,Ds as applyProps,wa as applyReset,ra as applySequenceGlobalVars,$e as applySequenceVars,da as applySpacingSequence,ga as applyTimingSequence,Qf as applyTrueProps,fa as applyTypographySequence,ld as arrayContainsOtherArray,yd as arraysEqual,an as arrayzeValue,kv as assignKeyAsClassname,xg as breakpoints,Sh as cache,Ai as call,Pi as captureSnapshot,_g as cases,Tm as changeLightness,Pl as checkAttributeByTagName,Zh as checkEventFunctions,Ws as checkForStateTypes,pa as checkIfBoxSize,er as checkIfInherits,Sd as checkIfStringIsInArray,_m as classList,Sm as classify,Dd as clone,ws as cloneAndMergeArrayExtend,eh as cloneFunction,fg as color,ge as colorStringToRgbaArray,Es as concatAddExtends,na as convertSvgToSymbol,Qm as copyJavaScriptToClipboard,Xm as copyStringToClipboard,sd as create,DP as createAsync,tl as createBasedOnType,fS as createDefine,qs as createElement,Bc as createElementExtends,wm as createEmotion,Cs as createExtends,Mn as createExtendsFromKeys,zc as createExtendsStack,Br as createIfConditionFlag,Gs as createInheritedState,bs as createKey,us as createNestedObject,Ks as createNestedObjectByKeyPath,Ac as createObjectWithoutPrototype,rl as createParent,nl as createPath,$s as createProps,Qc as createPropsStack,Hs as createRoot,Hn as createScope,$P as createSkeleton,ys as createSnapshotId,FP as createSync,Id as customDecodeURIComponent,Rd as customEncodeURIComponent,dd as cutArrayAfterValue,pd as cutArrayBeforeValue,Xd as debounce,Qd as debounceOnContext,Ad as decodeNewlines,z as deepClone,ls as deepContains,le as deepDestringifyFunctions,Lc as deepExtend,U as deepMerge,ue as deepMergeExtends,is as deepStringifyFunctions,yn as defaultDefine,jh as defineSetter,Ra as depth,ms as detectInfiniteLoop,Sg as devices,Ct as emotion,Od as encodeNewlines,Ci as error,Hd as excludeKeysFromObject,O as exec,Hw as executeAttr,Rk as exetuteClassPerComponent,fh as extendCachedRegistry,ks as extendStackRegistry,As as extractArrayExtend,$m as fibonacciNumberByIndex,bd as filterArrays,xd as filterArraysFast,Nl as filterAttributesByTagName,Hc as finalizeExtends,Cf as findClosestNumber,Dm as findClosestNumberInFactory,Af as findHeadingLetter,ea as findHeadings,tr as findInheritedState,Cd as findKeyPosition,Bn as flattenExtend,ng as font,ig as font_face,og as font_family,sg as font_family_types,Fm as formatDate,Dc as generateHash,gs as generateKey,Wm as generateMetaTags,Kt as generateSequence,Lg as generateSequencePosition,uo as generateSprite,Zi as generateSubSequence,Uh as get,E as getActiveConfig,Ho as getActiveLang,ee as getCDNUrl,mh as getCapitalCaseKeys,fo as getCdnProviderFromConfig,Ze as getChildStateInKey,Vh as getChildren,J as getColor,xf as getColorShade,_i as getContext,ih as getCookie,Ti as getDB,on as getDefaultOrFirstKey,hh as getExtendsInElement,vs as getExtendsStack,$c as getExtendsStackRegistry,Fe as getFnPrefixAndValue,Pm as getFontFace,sn as getFontFaceEach,vf as getFontFaceEachString,ji as getFontFaceString,la as getFontFamily,_f as getFontFormat,ua as getFontSizeByKey,fd as getFrequencyInArray,Os as getHashedExtend,qm as getImportMapScript,hs as getInObjectByPath,dc as getLanguages,bc as getLocalStateLang,ch as getLocalStorage,Et as getMediaColor,Yt as getMediaTheme,Yd as getNev,Ym as getPageMetadata,Je as getParentStateInKey,gi as getPath,Ri as getQuery,mi as getRef,nn as getRgbTone,bi as getRoot,Si as getRootContext,xi as getRootData,yi as getRootState,Qe as getRootStateInKey,ta as getSequenceValue,Of as getSequenceValueBySymbols,be as getSequenceValuePropertyPair,ma as getShadow,Le as getSpacingBasedOnRatio,at as getSpacingByKey,gh as getSpreadChildren,Ji as getSubratio,Qi as getSubratioDifference,sa as getTheme,Ut as getTimingByKey,Dt as getTimingFunction,ad as global,ug as gradient,Og as grid,cs as hasFunction,Ke as hasHandlerPlugin,Bd as hasOwnProperty,Em as hexToRgb,mf as hexToRgbArray,Om as hexToRgba,bf as hslToRgb,hg as icons,Vc as inheritChildExtends,Uc as inheritChildPropsExtends,Ms as inheritParentProps,jc as inheritRecursiveChildExtends,Ue as init,od as initPolyglot,jn as initProps,At as is,S as isArray,Rn as isBoolean,nt as isCSSVar,Ps as isContextComponent,zd as isCyclic,Bt as isDOMNode,Cc as isDate,Ot as isDefined,Jt as isDevelopment,kc as isEmpty,Ud as isEmptyObject,Oc as isEqualDeep,y as isFunction,ao as isGoogleFontsUrl,Xo as isHtmlElement,Kd as isLocal,qt as isMethod,oh as isMobile,Ce as isNode,Dr as isNot,Mr as isNotProduction,vc as isNull,ct as isNumber,g as isObject,N as isObjectLike,zm as isPhoto,Ge as isProduction,ye as isResolvedColor,en as isScalingUnit,Gd as isStaging,zn as isState,b as isString,th as isStringFunction,Tc as isTest,Wd as isTesting,K as isUndefined,ke as isValidHtmlTag,In as joinArrays,ph as jointStacks,Yn as keys,Um as loadCssFile,Vm as loadJavascript,Lm as loadJavascriptFile,Bm as loadJavascriptFileEmbedSync,Mm as loadJavascriptFileSync,jm as loadRemoteCSS,lo as loadRemoteScript,mc as loadTranslations,wi as log,nh as logGroupIf,rh as logIf,ui as lookdown,pi as lookdownAll,fi as lookup,ce as lowercaseFirstLetter,Vd as makeObjectWithoutPrototype,Nd as map,Ts as mapStringsWithContextComponents,It as matchesComponentNaming,ag as media,Jd as memoize,Y as merge,Cm as mixTwoColors,Am as mixTwoRgb,Sf as mixTwoRgba,Ei as nextElement,De as numToLetterMap,as as objectToString,Ns as objectizeStringProperty,io as opacify,fe as overwrite,it as overwriteDeep,Lr as overwriteShallow,Xs as overwriteState,Xn as parse,dr as parseColorToken,Yr as parseDeep,Ur as pickupElementFromProps,Yc as pickupPropsFromElement,qo as polyglotFunctions,xc as polyglotPlugin,ki as previousElement,xh as propExists,Vn as propertizeElement,Ls as propertizeUpdate,Ku as reinit,di as remove,Jm as removeChars,ah as removeCookie,Us as removeDuplicateProps,Pn as removeDuplicatesInArray,Jo as removeFromArray,fs as removeFromObject,ps as removeNestedKeyByPath,ts as removeValueFromArray,hd as removeValueFromArrayAll,gd as reorderArrayByValues,vd as replaceLiteralsWithObjectFields,kd as replaceOctalEscapeSequences,Rg as reset,Ca as resolveColorsInGradient,Ie as resolveFileUrl,Ye as resolveHandler,Wt as resolvePropValue,Im as returnSubThemeOrDefault,Zc as returnValueAsText,gf as rgbArrayToHex,yf as rgbToHSL,km as rgbToHex,Fn as runPluginHook,Pf as runThroughMedia,go as scratchSystem,br as scratchUtils,cd as self,mg as semantic_icons,Pe as sequence,un as set,Ef as setActiveConfig,OT as setClass,xr as setColor,sh as setCookie,Vi as setCustomFont,mr as setCustomFontMedia,ry as setEach,ca as setFont,ho as setFontFamily,co as setFontImport,Sr as setGradient,Fc as setHashedExtend,wf as setInCustomFontMedia,ds as setInObjectByPath,gc as setLang,lh as setLocalStorage,aa as setMediaTheme,Kn as setNodeStyles,hi as setProps,Bs as setPropsPrototype,mo as setSVG,Xi as setScalingVar,_r as setShadow,kf as setSubScalingVar,Sa as setSvgIcon,ia as setTheme,ey as setValue,Mg as setVariables,dg as shadow,lg as spacing,ha as splitSpacedValue,hr as splitTopLevelCommas,yo as splitTransition,li as spotByPath,rs as stringIncludesAny,Md as stringToObject,vg as svg,Cg as svg_data,ud as swapItemsInArray,Vs as syncProps,Eg as templates,pg as theme,yg as timing,Hi as toCamelCase,qi as toDashCase,tg as toDescriptionCase,Zm as toTitleCase,Nm as toggleFullscreen,Mf as transformBackgroundImage,xe as transformBorder,Ea as transformBorderRadius,va as transformBoxShadow,hf as transformDOMQLEmotion,wr as transformDuration,Dk as transformEmotion,df as transformEmotionClass,vm as transformEmotionStyle,Lf as transformShadow,ot as transformSize,V as transformSizeRatio,$f as transformTextStroke,Zg as transformTransition,Jf as transformersByPrefix,Bf as transfromGap,hc as translate,W as triggerEventOn,vt as triggerEventOnUpdate,_d as trimStringFromSymbols,Wi as typography,eg as unit,Zo as unstackArrayOfObjects,Xc as update,js as updateProps,kT as updateVars,yc as upsertTranslation,Xt as useCssInProps,my as usePropsAsCSS,gy as useSelectorsAsCSS,Oi as variables,Qn as verbose,vi as warn,F as window};
35
+ ${r}`:"";return new Error(`"${t}", "${e}"${s}${i}`)};v();var uu=t=>ke(t||"div")||yt("HTMLInvalidTag");var Ib=t=>{if(!t||!t.__ref)throw new Error("Element reference is invalid");let{__ref:e}=t;if(!e.root)throw new Error("Root reference is invalid");if(!e.root.data)throw new Error("Data are undefined");let{frameListeners:r}=e.root.data;r&&!r.has(t)&&r.add(t)},Pb=t=>{for(let e of t){if(!e.__ref.__frameHandler){let r=e.on?.frame||e.onFrame||e.props?.onFrame;if(r)e.__ref.__frameHandler=r;else{t.delete(e);continue}}if(!e.node?.parentNode)t.delete(e),delete e.__ref.__frameHandler;else try{e.__ref.__frameHandler(e,e.state,e.context)}catch(r){console.warn(r),t.delete(e),delete e.__ref.__frameHandler}}},pu=t=>{let e=typeof window<"u"&&window.requestAnimationFrame;if(Pa||!e)return;Pa=!0;function r(){if(t.size===0){Pa=!1;return}Pb(t),e(r)}e(r)},du=t=>{if(!t)throw new Error("Element is invalid");let{on:e,props:r,__ref:n}=t;if(!n.root||!n.root.data)return;let{frameListeners:o}=n.root.data;o&&(e?.frame||t.onFrame||r?.onFrame)&&(Ib(t),pu(o))},Pa=!1,hu=()=>{let t=new Set;return pu(t),t};v();var mu=t=>{let{props:e,on:r}=t;for(let n in e){if(n.charCodeAt(0)!==111||n.charCodeAt(1)!==110)continue;let o=ce(n.slice(2)),s=r[o],i=e[n];b(s)?r[o]=(...a)=>{if(s(...a)!==!1&&b(i))return i(...a)}:r[o]=i}},gu=t=>{let{on:e}=t,r=Ke(t.context);for(let n in t){if(n.charCodeAt(0)!==111||n.charCodeAt(1)!==110||!Object.prototype.hasOwnProperty.call(t,n))continue;let o=t[n];if(!b(o)&&!(r&&o!=null))continue;let s=ce(n.slice(2)),i=e[s];b(i)?e[s]=(...a)=>{if(i(...a)!==!1&&b(o))return o(...a)}:e[s]=o}};v();var Na="http://www.w3.org/2000/svg",Nb=t=>{let{tag:e,context:r}=t,n=r.document||L;return e?e==="string"?n.createTextNode(t.text):e==="fragment"?n.createDocumentFragment():Xe.has(e)&&(e==="svg"||t.parent?.node?.namespaceURI===Na)?n.createElementNS(Na,e):n.createElement(e):n.createElement("div")},Da=t=>{let{tag:e,key:r,props:n}=t;if(e=O(e,t),e===!0&&(e=r),g(n)&&y(n.tag)&&ke(n.tag))return n.tag;if(y(e)){if(ke(e))return e}else{let o=r.toLowerCase();if(o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),ke(o))return o}return"div"},yu=t=>{let{context:e}=t,r=e.window||window,n=t.tag=Da(t);if(!uu(n))return yt("HTMLInvalidTag",t.tag,t);r.nodeCaches||(r.nodeCaches={});let s=Xe.has(n)&&(n==="svg"||t.parent?.node?.namespaceURI===Na)?"svg:"+n:n,i=r.nodeCaches[s];i||(i=r.nodeCaches[s]=Nb(t));let a=i.cloneNode(!0);return n==="string"&&(a.nodeValue=t.text),a};var Db=(t,e)=>{try{return e.appendChild(t),t}catch{console.error("Does not support to append",e,t)}},Fb=(t,e,r)=>{if(!t)throw new Error("Node is required");let n=r||e?.parentNode;e?.nextSibling?n?.insertBefore(t,e.nextSibling):e?.insertAdjacentElement?e.insertAdjacentElement("afterend",t):n?.insertBefore(t,e)},$b=(t,e,r)=>{if(!t)throw new Error("Node is required");(r||e.parentNode)?.insertBefore(t,e)},Fa=(t,e,r,n)=>{if(!t)throw new Error("Element is required");if(!e)throw new Error("Parent is required");return e[r||t.key]=t,t.tag!=="shadow"&&(n&&n.position?(n.position==="before"?$b:Fb)(t.node,n.node||e.node):Db(t.node,e.node,t)),t};v();var _o=(t,e={})=>{let{__ref:r}=t;for(let n in t){if(e[n])continue;let o=t[n];if(b(o)&&!qt(n,t)){r.__exec[n]=o;let s=o(t,t.state,t.context);s&&typeof s.then=="function"?s.then(i=>{t[n]=i}):t[n]=s}}},bu=(t,e={})=>{let{__ref:r}=t,n={};for(let o in r.__exec){let s=t[o];if(r.__defineCache[o])continue;let a=r.__exec[o](t,t.state,t.context);if(a&&typeof a.then=="function"){a.then(f=>{t[o]=f});continue}let c=y(a)||ct(a);if(s?.node&&c)fe(s,{text:a});else if(a!==s)if(It(o)){let{extends:f,...l}=Ns(a,t,o);fe(s,l)}else n[o]=s,t[o]=a}return n},wo=t=>{let{__ref:e}=t,{props:r}=t;for(let n in r){let o=n.charCodeAt(0),s=n.charCodeAt(1),i=o===105&&s===115||o===104&&s===97&&n.charCodeAt(2)===115||o===117&&s===115&&n.charCodeAt(2)===101,a=e.__execProps[n];if(b(a)){let c=O(a,t);c&&typeof c.then=="function"?c.then(f=>{r[n]=f}):r[n]=c}else if(i&&b(r[n])){e.__execProps[n]=r[n];let c=O(r[n],t);c&&typeof c.then=="function"?c.then(f=>{r[n]=f}):r[n]=c}}},vo=t=>{let{define:e,context:r,__ref:n}=t,o=g(e),s=r&&g(r.define);if(!o&&!s)return t;let i=o&&s?{...e,...r.define}:o?e:r.define;for(let a in i){let c=t[a];if(b(c)&&!qt(a,t)){n.__exec[a]=c;let l=O(c,t);l&&typeof l.then=="function"?l.then(u=>{c=t[a]=u&&u.parse?u.parse():u,u&&(n.__defineCache[a]=c)}):(c=t[a]=l&&l.parse?l.parse():l,l&&(n.__defineCache[a]=c))}let f=i[a](c,t,t.state,t.context);f&&typeof f.then=="function"?f.then(l=>{l&&(t[a]=l)}):f&&(t[a]=f)}return t},xu=t=>{let{context:e,define:r,__ref:n}=t,o=g(r),s=g(e?.define);if(!o&&!s)return;let i=o&&s?{...r,...e.define}:o?r:e.define;for(let a in i){let c=n.__exec[a];if(c){let u=c(t,t.state,t.context);u&&typeof u.then=="function"?u.then(p=>{n.__defineCache[a]=p}):n.__defineCache[a]=u}let f=O(n.__defineCache[a],t);if(f&&typeof f.then=="function"){f.then(u=>{});continue}let l=typeof i[a]=="function"?i[a](f,t,t.state,t.context):void 0;l&&typeof l.then=="function"?l.then(u=>{t[a]=u}):l&&(t[a]=l)}};v();function Su(t,e,r){let{__ref:n,props:o}=e,{__attr:s}=n;if(Dr(t)("object")&&yt("HTMLInvalidAttr",t),t){let i=O(t,e);o.attr&&U(i,o.attr);for(let a in i){let c=O(i[a],e);y(c)&&c.includes("{{")&&e.call&&(c=e.call("replaceLiteralsWithObjectFields",c,e.state)),c!==s[a]&&(c!==!1&&c!==void 0&&c!==null&&r.setAttribute?r.setAttribute(a,c):r.removeAttribute&&r.removeAttribute(a),s[a]=c)}}}v();var _u=t=>{let{key:e}=t;t.classlist===!0?t.classlist=e:!t.classlist&&typeof e=="string"&&e.charAt(0)==="_"&&e.charAt(1)!=="_"&&(t.classlist=e.slice(1))},Lb=(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+=` ${O(o,e)}`)}return r},wu=(t,e)=>{if(!t)return;let{key:r}=e;return t===!0&&(t=e.classlist={key:r}),y(t)&&(t=e.classlist={default:t}),g(t)&&(t=Lb(t,e)),t.replace(/\s+/g," ").trim()};v();function Mb(t,e,r){if(t&&(e.props.data&&U(t,e.props.data),t.showOnNode)){g(t)||yt("HTMLInvalidData",t);for(let n in t)n!=="showOnNode"&&(r.dataset[n]=O(t[n],e))}}var vu=Mb;v();function Bb(t,e,r){let n=O(t??e?.props?.html,e);y(n)&&n.includes("{{")&&e.call&&(n=e.call("replaceLiteralsWithObjectFields",n,e.state));let{__ref:o}=e;n!==o.__html&&(r.nodeName==="SVG"?r.textContent=n:r.innerHTML=n,o.__html=n)}var Cu=Bb;v();function Ub(t,e,r){if(t)if(g(t)){let{__ref:n}=e;n.__style||(n.__style={});let o=n.__style;for(let s in t){let i=O(t[s],e);i!==o[s]&&(o[s]=i,r.style[s]=i)}}else yt("HTMLInvalidStyles",t)}var Eu=Ub;v();function Vb(t,e,r){let n=O(e.props.text||t,e);if(y(n)&&n.includes("{{")&&(n=e.call("replaceLiteralsWithObjectFields",n,e.state)),e.tag==="string")r.nodeValue=n;else if(t!=null){if(Xe.has(e.tag)){r&&(r.textContent=n);return}if(e.__text){if(e.__text.text===n)return;e.__text.text=n,e.__text.node&&(e.__text.node.nodeValue=n)}else jt({tag:"string",text:n},e,"__text")}}var ku=Vb;v();function jb(t,e,r){let n=O(t,e);if(g(n))for(let o in n)Tt.has(o)||Object.prototype.hasOwnProperty.call(n,o);return e}var Ou=jb;v();function zb(t,e,r){if(g(t))for(let n in t){let o=t[n];b(o)?e.scope[n]=o.bind(e):e.scope[n]=o}}var Au=zb;var re={attr:Su,style:Eu,text:ku,html:Cu,data:vu,classlist:wu,state:Ou,scope:Au,fetch:{},deps:(t,e)=>t||e.parent.deps,extends:{},children:{},content:{},childExtend:{},childExtends:{},childExtendRecursive:{},childExtendsRecursive:{},props:{},if:{},define:{},__name:{},__ref:{},__hash:{},__text:{},key:{},tag:{},query:{},parent:{},node:{},variables:{},on:{},component:{},context:{}};v();var Co=(t,e,r)=>{let{node:n,context:o,__ref:s}=e,i=O(e[t],e),{onlyUpdate:a}=r,c=re[t],l=o?.registry?.[t]||c,u=e.define?.[t],p=o?.define?.[t];if(!s.__if)return;let d=a?a===t||e.lookup(a):!0;if(l&&!p&&d){b(l)&&l(i,e,n,r);return}return{hasDefine:u,hasContextDefine:p}};v();var $a=(t,e)=>{if(t===e)return!0;if(!t||!e)return!1;let r=typeof t,n=typeof e;if(r==="function"&&n==="function")return!0;if(r!==n)return!1;if(S(t)&&S(e)){if(t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(!$a(t[o],e[o]))return!1;return!0}if(g(t)&&g(e)){let o=Object.keys(t),s=Object.keys(e);if(o.length!==s.length)return!1;for(let i=0;i<o.length;i++){let a=o[i];if(!$a(t[a],e[a]))return!1}return!0}return t===e},Tu=new Set([".","/","./"]),Hb=(t,e)=>{if(!y(t)||!e)return;if(Tu.has(t))return e.parse?e.parse():e;let r=Qe(t,e);if(r){let o=t.replaceAll("~/","");return Ze(o,r)}let n=Je(t,e);if(n){let o=t.replaceAll("../","");return Ze(o,n)}return Ze(t,e)};function qb(t,e,r){let{children:n,__ref:o,state:s}=e,{childrenAs:i}=e.props||{},a=O(t,e,s),c=O(n,e,s);n=a||c;let f;if(n){if(Hn(n)&&(i=i||"state",n=n.parse()),y(n)||ct(n)){let p=Hb(n,s);p!==void 0?(f=Tu.has(n)?"":n,n=Hn(p)?p.parse():p):n={text:n}}if(g(n)){if(n.$$typeof)return e.call("renderReact",n,e);n=Object.keys(n).map(p=>{let d=n[p];return It(p)?ks(p,d):d})}}if(!n||Dr(n)("array","object"))return;if(S(n)&&n.some(p=>p?.$$typeof)){let p=[],d=[];for(let h=0;h<n.length;h++)n[h]?.$$typeof?d.push(n[h]):p.push(n[h]);d.length&&e.call("renderReact",d,e),n=p}let l;o.__childrenCache?$a(n,o.__childrenCache)?o.__noChildrenDifference=!0:(l=z(n),o.__childrenCache=l,delete o.__noChildrenDifference):(l=z(n),o.__childrenCache=l),(g(n)||S(n))&&(n=l||z(n));let u={tag:"fragment"};for(let p in n){let d=Object.prototype.hasOwnProperty.call(n,p)&&n[p];if(Ot(d)&&d!==null&&d!==!1)if(f!==void 0&&i!=="props"){let h=f?`${f}/${p}`:p;u[p]={state:h}}else u[p]=N(d)?i?{[i]:d}:d:i?{[i]:i==="state"?{value:d}:{text:d}}:{text:d}}return u}var Eo=qb;var Ru=process.env.NODE_ENV,Iu=(t,e)=>{let{node:r,tag:n,__ref:o}=t;if(!o.__if)return t;let s;r||(s=!0,n==="shadow"?r=t.node=t.parent.node.attachShadow({mode:"open"}):r=t.node=yu(t),W("attachNode",t,e)),(Ru==="test"||Ru==="development"||e.alowRefReference)&&(r.ref=t,b(r.setAttribute)&&r.setAttribute("key",t.key)),wo(t),vo(t),_o(t),mu(t),gu(t),lu(t,{isNewNode:s,...e});for(let a in t){let c=t[a];if(!Object.prototype.hasOwnProperty.call(t,a)||c===void 0||qt(a,t)||g(re[a])||a.length>2&&a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90)continue;let f=Co(a,t,e);if(f){let{hasDefine:l,hasContextDefine:u}=f;if(t[a]&&!l&&!u){let p=()=>{jt(c,t,a,e)};t.props&&t.props.lazyLoad||e.lazyLoad?window.requestAnimationFrame(()=>{p(),e.preventUpdateListener||W("lazyLoad",t,e)}):p()}}}let i=t.children?Eo(t.children,t,e):t.children||t.content;return i&&mn(i,t,e),t};v();var La={key:":root",node:L?L.body:yt("DocumentNotDefined",L)},Ma=La;v();v();v();v();var Pu={overwrite:!0,preventHoistElementUpdate:!1,updateByState:!0,isHoisted:!0},Nu=function(t,e=Pu){let r=this,n=r.__element;if(e.onEach&&e.onEach(n,r,n.context,e),e.updateByState||Y(e,Pu),r.__element||yt("ElementOnStateIsNotDefined"),e.preventInheritAtCurrentState===!0)e.preventInheritAtCurrentState=r;else if(e.preventInheritAtCurrentState)return;return!e.preventBeforeStateUpdateListener&&vt("beforeStateUpdate",t,n,e)===!1?n:(Qs(r,t,e),Wb(r,t,e)||(Gb(r,t,e),Kb(r,t,e),e.preventStateUpdateListener||vt("stateUpdate",t,n,e)),r)},Wb=(t,e,r)=>{let n=t.__element,{parent:o,__ref:s}=n,i=s?.__state,a=s?.__stateType;if(!i)return;let c=er(n),f=tr(n,o,{returnParent:!0});if(!(c&&f&&!r.stopStatePropagation))return;let u=a==="string"||a==="number"||a==="boolean",p=u?t.value:t.parse(),d=u?t.value:e,h=Qe(i,o.state),m=Je(i,o.state),x=i.replaceAll("~/","").replaceAll("../",""),_=Ys(x,d),w=h||m||o.state;r.replace&&it(w,_||p),w.update(_,{...r,isHoisted:!0,preventUpdate:r.preventHoistElementUpdate,overwrite:!r.replace});let C=r.preventUpdate!==!0||!r.preventHoistElementUpdate;return!r.preventStateUpdateListener&&C&&vt("stateUpdate",e,n,r),!0},Gb=(t,e,r)=>{if(t.__depends)for(let n in t.__depends)t.__depends[n].clean().update(t.parse(),r)},Kb=(t,e,r)=>{let n=t.__element;r.preventUpdate!==!0?n.update({},{...r,updateByState:!0}):r.preventUpdate==="recursive"&&n.update({},{...r,isHoisted:!1,updateByState:!0,preventUpdate:!0})};var Yb=function(){let t=this;if(g(t)){let e={};for(let r in t)Tt.has(r)||(e[r]=t[r]);return e}else if(S(t))return t.filter(e=>!Tt.has(e))},Xb=function(t={}){let e=this;for(let r in e)!Tt.has(r)&&Object.prototype.hasOwnProperty.call(e,r)&&delete e[r];return t.preventStateUpdate||e.update(e,{replace:!0,...t}),e},Qb=function(t={}){let e=this,r=e.__element,n=r.__ref.__state;if(y(n))return r.parent.state.remove(n,{isHoisted:!0,...t}),r.state;if(delete r.state,r.state=e.parent,e.parent&&delete e.parent.__children[r.key],e.__children)for(let o in e.__children){let s=e.__children[o];s.state&&(S(s.state)?Object.defineProperty(s.state,"parent",{value:e.parent,enumerable:!1,configurable:!0,writable:!0}):Object.setPrototypeOf(s,{parent:e.parent}))}return r.state.update({},{isHoisted:!0,...t}),r.state},Jb=function(t,e={}){let r=this;if(!(!r||!r.parent))return r.parent.update(t,{isHoisted:!0,...e})},Zb=function(t,e={}){let r=this;return r?r.__element.__ref.root.state.update(t,{isHoisted:!1,...e}):void 0},tx=function(t,e={}){let r=this;if(S(r))r.push(t),r.update(r.parse(),{overwrite:!0,...e});else if(g(r)){let n=Object.keys(r).length;r.update({[n]:t},e)}},ex=function(t,e={}){let r=this;r.update({[t]:!r[t]},e)},rx=function(t,e={}){let r=this;return S(r)?Zo(r,t):g(r)&&us(r,t),e.applyReset?r.set(r.parse(),{replace:!0,...e}):r.update({},e)},nx=function(t,e={}){let r=this,n=z(t);return r.clean({preventStateUpdate:!0,...e}).update(n,{replace:!0,...e})},Du=function(t,e,r={}){let n=this,o=z(e);r.preventReplace||hs(n,t,e);let s=ps(t,o);return r.preventStateUpdate?s:n.update(s,r)},ox=function(t,e={}){let r=this,n=t.reduce((o,s)=>{if(s[0]==="update"){let i=Du.call(r,s[1],s[2],{preventStateUpdate:!0});return it(o,i)}else s[0]==="delete"&&Ba.call(r,s[1],{...e,preventUpdate:!0});return o},{});return r.update(n,e)},Ba=function(t,e={}){let r=this;return ds(r,t),e.preventUpdate?t:r.update({},e)},sx=function(t,e={}){let r=this;for(let n=0;n<t.length;n++)Ba(t[n],{preventUpdate:!0});return r.update({},e)},ix=function(t,e={}){return ms(this,t)},ax=function(t={}){let e=this,r=z(e.parse());return e.set(r,{replace:!0,...t})},cx=function(t,e={}){let r=this;if(b(t)){let n=t(r);return r.update(n,{replace:!0,...e})}},lx=function(t,e={}){let r=this;if(b(t)){let n=t(r);return r.replace(n,e)}},fx=function(t,e={}){let r=this;if(b(t))return t(r),r.update(r.parse(),{replace:!0,...e})},ux=function(t,e={}){return this.update(t,{preventUpdate:!0,...e})},px=function(t,e={}){let r=this;for(let n in t)r[n]=t[n];return r.update(t,e)},dx=function(t,e={}){return this.replace(t,{preventUpdate:!0,...e})},hx=function(t,e={}){return Object.keys(this)},mx=function(t,e={}){return Object.values(this)},Fu=t=>{let e=t.state,r=t.__ref,n={clean:Xb.bind(e),parse:Yb.bind(e),destroy:Qb.bind(e),update:Nu.bind(e),rootUpdate:Zb.bind(e),parentUpdate:Jb.bind(e),create:Me.bind(e),add:tx.bind(e),toggle:ex.bind(e),remove:rx.bind(e),apply:cx.bind(e),applyReplace:lx.bind(e),applyFunction:fx.bind(e),set:nx.bind(e),quietUpdate:ux.bind(e),replace:px.bind(e),quietReplace:dx.bind(e),reset:ax.bind(e),parent:t.parent?.state||e,setByPath:Du.bind(e),setPathCollection:ox.bind(e),removeByPath:Ba.bind(e),removePathCollection:sx.bind(e),getByPath:ix.bind(e),keys:hx.bind(e),values:mx.bind(e),__element:t,__children:{},root:r?.root?r.root.state:e};S(e)?Fr(e,n):Object.setPrototypeOf(e,n),e.parent&&e.parent.__children&&(e.parent.__children[t.key]=e)};var Me=function(t,e,r){return t.state=gx(t,e,r),t.state},gx=function(t,e,r){let n=Gs(t);if(n===!1)return e.state||{};if(t.state=n,W("stateInit",t,r)===!1)return t.state;if(er(t)){let i=Ks(t,e);t.state=K(i)?{}:i}let s=Xs(t,t.state||e.state||{});return s&&(t.state=s),Fu(t),W("stateCreated",t),t.state};v();v();var $u=[];var ko={stackChanges:!1,cleanExec:!0,preventRecursive:!1,currentSnapshot:!1,calleeElement:!1,exclude:$u},gn=function(t={},e){let r=g(e)?{...ko,...e}:{...ko},n=this,o=n.__ref;o||(o=n.__ref={});let[s,i,a]=Pi(n,r);if(a)return;r.preventListeners||vt("startUpdate",t,n,r);let{parent:c,node:f,key:l}=n,{exclude:u,preventInheritAtCurrentState:p}=r;if(p&&p.__element===n||(u||Y(r,ko),(y(t)||ct(t))&&(t={text:t}),t=Ms.call(n,t),xx(n,r)===!1)||bx(n,c,r))return;if(o.__if&&!r.preventPropsUpdate){let P=c.props&&(c.props[l]||c.props.childProps),D=o.__propsStack.some(b),j=t.props||P||D;j&&zs(j,n,c)}if(!r.preventBeforeUpdateListener&&!r.preventListeners&&(n.on?.beforeUpdate||n.props?.onBeforeUpdate)){let D={...t,...n};if(Object.setPrototypeOf(D,Object.getPrototypeOf(n)),vt("beforeUpdate",t,D,r)===!1)return n}if(it(n,t),wo(n),bu(n,{ignore:ko}),xu(n),!r.isForced&&!r.preventListeners&&W("beforeClassAssign",n,r),!o.__if)return!1;if(!f)return;let{preventUpdate:m,preventDefineUpdate:x,preventContentUpdate:_,preventStateUpdate:w,preventRecursive:C,preventUpdateListener:I,preventUpdateAfter:A,preventUpdateAfterCount:T}=r;if(A){if(ct(T)&&A<=T)return;r.preventUpdateAfterCount===void 0?r.preventUpdateAfterCount=1:r.preventUpdateAfterCount++}let k=S(m)?new Set(m):null,$=S(x)?new Set(x):null;for(let P in n){let D=n[P];if(!Object.prototype.hasOwnProperty.call(n,P))continue;let j=k&&k.has(P),Z=$&&$.has(P),tt=b(D)&&P.length>2&&P.charCodeAt(0)===111&&P.charCodeAt(1)===110&&P.charCodeAt(2)>=65&&P.charCodeAt(2)<=90;if(K(D)||j||Z||x===!0||x===P||w&&P==="state"||qt(P,n)||tt||g(re[P]))continue;w==="once"&&(r.preventStateUpdate=!1);let pt=Co(P,n,r);if(pt){let{hasDefine:_t,hasContextDefine:Lt}=pt;if(!(g(D)&&!_t&&!Lt&&!C))continue;let Go=n.props.lazyLoad||r.lazyLoad;r.onEachUpdate&&r.onEachUpdate(P,n,n.state,n.context);let st=t[P];if(st===void 0&&!r.isForced){if(r.onlyUpdate){if(P!==r.onlyUpdate)continue}else if(!r.updateByState)continue}let Ko=r.onlyUpdate&&P===r.onlyUpdate?{...r,onlyUpdate:void 0,currentSnapshot:s,calleeElement:i}:{...r,currentSnapshot:s,calleeElement:i},Yo=()=>gn.call(D,st,Ko);Go?F.requestAnimationFrame(()=>{Yo(),!r.preventUpdateListener&&!r.preventListeners&&W("lazyLoad",n,r)}):Yo()}}if(!_){let P=o.contentElementKey||"content",D=n[P],j=r.updateByState?t.children||(o.__exec?.children?n.children:void 0):t.children||n.children;if(j){let Z=Eo(j,n,e);if(Z&&!o.__noChildrenDifference)mn(Z,n,r);else if(D?.__ref&&b(D.update)){let tt=n.props?.lazyLoad||r.lazyLoad,pt=()=>gn.call(D,t[P],{...r,currentSnapshot:s,calleeElement:i});tt?F.requestAnimationFrame(()=>{pt(),!r.preventUpdateListener&&!r.preventListeners&&W("lazyLoad",n,r)}):pt()}}else if(D?.__ref&&b(D.update)){let Z=n.props?.lazyLoad||r.lazyLoad,tt=()=>gn.call(D,t[P],{...r,currentSnapshot:s,calleeElement:i});Z?F.requestAnimationFrame(()=>{tt(),!r.preventUpdateListener&&!r.preventListeners&&W("lazyLoad",n,r)}):tt()}else{let Z=n.children||t.content;Z&&!r.updateByState&&mn(Z,n,r)}}!I&&!r.preventListeners&&W("update",n,r),!r.preventFetch&&o.__fetchOnStateChange&&o.__fetchOnStateChange()},yx=(t,e)=>{let{__children:r}=e.__ref||{};if(!r)return!1;let n=r.indexOf(t.key),o;for(let i=n-1;i>=0;i--){let a=e[r[i]];if(a?.node?.parentNode){o=a.node;break}}if(o)return{position:"after",node:o};let s;for(let i=n+1;i<r.length;i++){let a=e[r[i]];if(a?.node?.parentNode){s=a.node;break}}return s?{position:"before",node:s}:!1},bx=(t,e,r)=>{if(!b(t.if)&&!b(t.props?.if)||!e)return;let n=t.__ref,o=(t.if||t.props?.if)(t,t.state,t.context,r),s=n.__if!==!0;if(o){if(n.__if=!0,s){delete t.__hash,delete t.__text,delete t.extends,n.__hasRootState||delete t.state,n.__state?t.state=n.__state:n.__hasRootState||delete t.state,t.node&&(t.node.remove(),delete t.node);let i=n.contentElementKey;t.children?t.removeContent():t[i]?.parseDeep&&(t[i]=t[i].parseDeep());let a=yx(t,e);delete t.__ref,delete t.parent;let c=jt(t,e,t.key,ut.create,a);return r.preventUpdate!==!0&&t.on&&b(t.on.update)&&Vr(t.on.update,c,c.state),c}}else t.node&&!o&&(t.node.remove(),delete n.__if)},xx=(t,e)=>{let{__ref:r}=t,n=r.__state,{parent:o}=t,{preventUpdateTriggerStateUpdate:s}=e;if(s)return;if(!n&&!r.__hasRootState){t.state=o?.state||{};return}let i=tr(t,t.parent);if(!i||e.preventInheritedStateUpdate)return;if(!e.preventBeforeStateUpdateListener&&!e.preventListeners&&vt("beforeStateUpdate",i,t,e)===!1)return t;let a=Sx(t,o,e);!e.preventStateUpdateListener&&!e.preventListeners&&vt("stateUpdate",a.parse(),t,e)},Sx=(t,e,r)=>{let n=t.state.__children,o=Me(t,e);t.state=o;for(let s in n)o[s]&&(o.__children[s]=n[s]),Object.getPrototypeOf(n[s]).parent=o;return o};Ii();var Ua=(t,e,r={})=>{let n={set:ja,reset:Lu,update:gn,variables:Oi,remove:hi,updateContent:Mu,removeContent:Va,setProps:mi,lookup:ui,lookdown:pi,lookdownAll:di,getRef:gi,getDB:Ti,getPath:yi,getQuery:Ri,getRootState:bi,getRoot:xi,getRootData:Si,getRootContext:_i,getContext:wi,setNodeStyles:Yn,spotByPath:fi,parse:Qn,parseDeep:Yr,keys:Xn,nextElement:Ei,previousElement:ki,log:vi,verbose:Jn,warn:Ci,error:Xr,call:Ai};t.context.methods&&(r.strict?Y:fe)(n,t.context.methods),Object.setPrototypeOf(t,n)};var _x=new Set(["class","style"]),wx=t=>{let{tag:e,props:r,context:n}=t;if(!e||!r)return;let o=Nl(e,r,n?.cssPropsRegistry),s={};for(let a in o)_x.has(a)||(s[a]=o[a]);let i=!1;for(let a in s){i=!0;break}i&&(t.attr?typeof t.attr=="object"&&(t.attr={...s,...t.attr}):t.attr=s)},Oo=process.env.NODE_ENV,jt=(t,e,r,n=ut.create||{},o)=>{vx(n);let s=Ws(t,e,r,n,La);if(!s)return;let{key:i,parent:a,__ref:c}=s;return qs(s,a),Is(s,a,n),n.onlyResolveExtends?Ox(s,a,i,n):(jn.call(s,s),W("start",s,n),Cx(s,a,n),Ua(s,a,n),qn(s,a),Me(s,a),s.scope==="state"&&(s.scope=s.state),Br(s,a),zn(s,a,n),Ur.call(s,s,{cachedKeys:[]}),s.tag||(s.tag=Da(s)),wx(s),(s.scope==="props"||s.scope===!0)&&(s.scope=s.props),Br(s,a),s.node&&c.__if?Fa(s,a,i,o):(W("init",s,n)===!1||(W("beforeClassAssign",s,n),_u(s),kx(s,a,n,o),Uu(s,a),W("complete",s,n)),s))},vx=t=>{t&&!ut.create&&(ut.create=t,ut.create.context=t.context)},Cx=(t,e,r)=>{let n=!1;for(let o in r){n=!0;break}n&&(ut.defaultOptions=r,r.ignoreChildExtends&&delete r.ignoreChildExtends)},Uu=(t,e)=>{e.__ref&&e.__ref.__children&&(e.__ref.__children.includes(t.key)||e.__ref.__children.push(t.key))},Ex=1,Bu=new WeakMap,kx=(t,e,r,n)=>{Bu.has(t)&&(Oo==="test"||Oo==="development")&&console.warn("Cyclic rendering detected:",t.__ref.path),Bu.set(t,!0);let{__ref:o,key:s}=t,i=()=>{let a=gs(o.path);o.__uniqId||a||(Iu(t,r),o.__uniqId=Ex++)};if(Oo==="test"||Oo==="development"||t.context?.strictMode)i();else try{i()}catch(a){t.error=a;let c=o.path;c.includes("ComponentsGrid")&&c.splice(0,c.indexOf("ComponentsGrid")+2),c.includes("demoComponent")&&c.splice(0,c.indexOf("demoComponent")+1);let f=t.lookup(l=>l.state.key)?.state?.key;t.warn("Error happened in:",f?f+" ":""+c.join(".")),t.verbose(),console.error("[DOMQL] Render error:",a),t.on?.error&&t.on.error(a,t,t.state,t.context,r)}if(!o.__if)return e[s||t.key]=t,t;Fa(t,e,s,n),du(t,r),W("render",t,r),W("renderRouter",t,r),W("done",t,r),W("create",t,r)},Ox=(t,e,r,n)=>{let{__ref:o}=t;if(Ua(t,e,n),qn(t,e),Me(t,e),t.scope==="state"&&(t.scope=t.state),Br(t,e),zn(t,e,n),Ur.call(t,t,{cachedKeys:[]}),(t.scope==="props"||t.scope===!0)&&(t.scope=t.props),t.node&&o.__if&&(e[r||t.key]=t),t.props||(t.props={}),Uu(t,e),t.tag!=="string"&&t.tag!=="fragment"){vo(t),_o(t);for(let s in t){if(K(t[s])||qt(s,t)||g(re[s]))continue;let i=t.define?.[s],a=t.context?.define?.[s],c=n.define?.[s];!o.__skipCreate&&re[s]&&!c||t[s]&&!i&&!c&&!a&&jt(O(t[s],t),t,s,n)}}return e[r||t.key]=t,delete t.update,delete t.__element,t.props&&(delete t.props.update,delete t.props.__element),t},Ao=jt;var Cr=(t,e={})=>{let{__ref:r}=t,n=e.contentElementKey;return(!r.contentElementKey||n!==r.contentElementKey)&&(r.contentElementKey=n||"content"),r.contentElementKey};function Lu(t){let e=this;jt(e,e.parent,void 0,{ignoreChildExtends:!0,...ut.defaultOptions,...ut.create,...t})}var Vu=(t,e,r)=>{let n=Cr(e,r);e[n]?.node&&Va(e,r);let o=jt(t,e,n||"content",{ignoreChildExtends:!0,...ut.defaultOptions,...ut.create,...r});return n!=="content"&&(r.contentElementKey="content"),o},Mu=function(t,e){let r=this,n=Cr(r,e);r[n]&&r[n].update&&r[n].update(t,e)};function mn(t,e,r){let n=O(t,e);n&&e&&ja.call(e,n,r)}var Va=function(t,e={}){let r=t||this,n=Cr(r,e);e.contentElementKey!=="content"&&(e.contentElementKey="content");let o=r[n];if(o){if(o.tag==="fragment"&&o.__ref?.__children){let s=o.__ref.__children;for(let i=0;i<s.length;i++){let a=o[s[i]];a.node&&a.node.parentNode&&a.node.parentNode.removeChild(a.node),b(a.remove)&&a.remove()}}else o.node&&o.node.parentNode&&o.node.parentNode.removeChild(o.node),b(o.remove)&&o.remove();delete r[n]}},ja=function(t,e={},r){let n=r||this,{__ref:o}=n;if(o.__settingContent)return n;o.__settingContent=!0;try{return Ax(t,e,n)}finally{o.__settingContent=!1}},Ax=function(t,e,r){let{__ref:n}=r,o=Cr(r,e),s=r[o],i=s&&s.__ref,a=r.props&&r.props.lazyLoad,c=r.children;if(e.preventContentUpdate===!0&&!c)return;let f=!n.__noChildrenDifference,l=f&&i&&Object.keys(t).length===Object.keys(s).length&&fs(t,s);if(s?.update&&!f&&!l){if(!e.preventBeforeUpdateListener&&!e.preventListeners&&vt("beforeUpdate",t,r,e)===!1)return r;s.update(t),!e.preventUpdateListener&&!e.preventListeners&&W("update",r,e);return}if(!t||typeof t!="object")return r;let{childExtends:u,props:p,tag:d}=t;if(p||(p=t.props={}),d==="fragment"){let h=r.childExtends||r.childExtend;!u&&h&&(t.childExtends=h,p.ignoreChildExtends=!0);let m=r.childProps||r.props?.childProps;!p?.childProps&&m&&(p.childProps=m),p.ignoreChildProps=!0}a?window.requestAnimationFrame(()=>{Vu(t,r,e),e.preventUpdateListener||W("lazyLoad",r,e)}):Vu(t,r,e)};var zu=/^:(.+)/,Hu=/^\*$/,ju=new Map,za=t=>{let e=ju.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(zu);a?n.push({index:i,name:a[1]}):Hu.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return ju.set(t,s),s},Ha=(t,e,r=0)=>{let o=t.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||""),i=null,a=-1,c={};for(let f in e){if(f==="/*")continue;let l=za(f),u=Tx(o,l);u>a&&(a=u,i=f,c=Rx(o,l))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},Tx=(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(zu.test(r[i]))o+=1;else if(Hu.test(r[i]))o+=.5;else return-1;return o},Rx=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},qa=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},Wa=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},Ga=(t=0,e=F.location.pathname)=>{let n=e.split("/")[t+1];if(n)return`/${n}`},To,Ro=0,Ix={level:Ro,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:L&&L.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!1},ne=(t,e,r={},n={})=>{let o=e||void 0,s=o.context.window||F,i=o.context.document||L,a={...Ix,...o.context.routerOptions,...n};Ro=a.lastLevel;let c=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||"content");let f=Cr(o,a),l=s.location.origin!=="null"?s.location.origin:"http://localhost",u=new s.URL(l+t),{pathname:p,search:d,hash:h}=u,m=qa(d),x=o.node,_=h&&h!==s.location.hash.slice(1),w=p!==To;To=p;let C,I,A;if(a.useParamsMatching){let k=Ha(p,o.routes,a.level);C=k.routePath,I=k.content,A=k.params}else C=Ga(a.level,p),I=o.routes[C||"/"]||o.routes["/*"],A={};let T=a.scrollToNode?x:a.scrollNode;if(!I||o.state.root.debugging){o.state.root.debugging=!1,a.onNotFound&&a.onNotFound({pathname:p,route:C,element:o});return}if(a.guards&&a.guards.length){let k={pathname:p,route:C,params:A,query:m,hash:h,element:o,state:r},$=Wa(a.guards,k);if($===!1)return;if(typeof $=="string")return ne($,e,r,{...n,guards:[]})}if(a.pushState&&s.history.pushState(r,null,p+(d||"")+(h||"")),w||!_){let k={route:C,hash:h,debugging:!1};Object.keys(A).length&&(k.params=A),Object.keys(m).length&&(k.query=m),a.updateState&&o.state.update(k,{preventContentUpdate:!0}),f&&a.removeOldElement&&o[f].remove();let $=o.__ref?.origin?.content,P={};if($)for(let D in $){let j=$[D];D==="__ref"||D==="props"||D==="node"||D==="parent"||D==="key"||(typeof j=="string"||typeof j=="number"||typeof j=="boolean"||typeof j=="object"&&j!==null&&!j.node&&!j.__ref)&&(P[D]=j)}o.set({...P,tag:a.useFragment&&"fragment",extends:I},{contentElementKey:f})}if(a.scrollToTop&&T.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&I[f].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let k=i.getElementById(h);if(k){let $=k.getBoundingClientRect().top+x.scrollTop-(a.scrollToOffset||0);T.scrollTo({...a.scrollToOptions||{},top:$,left:0})}}W("routeChanged",o,a)},Px=ne;var qu={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>{let e=t.props;return Wt(t,e.href)||Wt(t,t.call("exec",e,t).href)},"aria-label":({props:t})=>t.aria?t.aria.label:t.text}},Nx={extends:"Link"},Wu={onClick:(t,e,r)=>{let{props:n,context:o}=e,{href:s,scrollToTop:i,stopPropagation:a}=n,c=e.call("exec",s,e);if(e.call("isString",c)&&c.includes("{{")&&(c=e.call("replaceLiteralsWithObjectFields",c)),a&&t.stopPropagation(),!c)return;let{utils:f,snippets:l,functions:u,routerOptions:p}=o,d=e.__ref.root,h=c.startsWith("http://")||c.startsWith("https://")||c.startsWith("mailto:")||c.startsWith("tel:")||c.startsWith("sketch:")||c.startsWith("whatsapp:")||c.startsWith("sms:")||c.startsWith("skype:")||c.startsWith("viber:")||c.startsWith("callto:")||c.startsWith("facetime:")||c.startsWith("facetime-audio:")||c.startsWith("geo:")||c.startsWith("maps:");if(c&&!h){t.preventDefault();try{let m=d;if(p&&p.customRouterElement){let x=Array.isArray(p.customRouterElement)?p.customRouterElement:p.customRouterElement.split("."),_=d;for(let w of x){if(!_||!_[w]){_=null;break}_=_[w]}_&&(m=_,d.routes&&(m.routes=d.routes))}(u.router||l.router||f.router||ne)(c,m,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",i)?i:!0,...p,...n.routerOptions})}catch(m){console.warn(m)}}}},Dx={extends:[qu,Wu]};var Fx={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:({props:t})=>t.value,selected:({props:t})=>t.selected,disabled:({props:t})=>t.disabled}},attr:{name:({props:t})=>t.name,disabled:({props:t})=>t.disabled,value:t=>{if(!t.props||!t.props.value)return;let e=t.call("exec",t.props.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e}}};var $x={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:t=>t.call("exec",t.props.disabled)},Lx={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z",boxSizing:"content-box"},Mx={extends:"SquareButton",round:"C"},Bx={extends:"Button",childExtends:"IconText"},Ux={tag:"nav",display:"flex",childExtends:"SquareButton"},Vx={extends:["SquareButton","ClickableItem"],round:"Z"};var jx={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"}},Hx={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"}};v();var qx={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:({parent:t,props:e})=>Ot(t.props.title)||e.text,width:"fit-content",fontWeight:500,color:"gray12",text:({parent:t})=>t.props.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.props.description,t))||t.props.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.props.description,t)}},Wx={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",props:({props:t})=>({...!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"}}:({props:e})=>e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{}})},Gx={position:"relative",zIndex:999,props:t=>{let{Tooltip:e,TooltipHidden:r}=t,n=e||r;return n?{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":n&&n.props&&n.props[".isActive"]||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}}:void 0}};var Kx={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:t=>`https://api.dicebear.com/7.x/${t.props.avatarType||"initials"}/svg?seed=${t.props.key||t.key||"no-avatar"}`};var Yx={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,r)=>{let n=e.props;e.call("isFunction",n.onInput)?n.onInput(t,e,r):r.update({value:parseFloat(e.node.value)})},onChange:(t,e,r)=>{let n=e.props;e.call("isFunction",n.onChange)?n.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:ao("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:ao("#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.props&&t.call("exec",t.props[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.props.value||t.props.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 Xx={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:({props: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"}}},Qx={position:"relative",zIndex:999,style:{"&:hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},Jx={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",visibility:"hidden",position:"absolute",inset:"0",onUpdate:t=>t.node.blur()},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},Zx={props:{position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},Input_trigger:{type:"checkbox",opacity:"0",visibility:"hidden",position:"absolute",inset:"0",onUpdate:t=>t.node.blur()}};var tS={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}}}};v();var yn={};Mt(yn,{CDN_PROVIDERS:()=>te,DOMQL_EVENTS:()=>is,DOMQ_PROPERTIES:()=>He,ENV:()=>qd,ERRORS_REGISTRY:()=>fu,HTML_TAGS:()=>Mn,METHODS:()=>Dn,METHODS_EXL:()=>ss,NODE_ENV:()=>Qt,OPTIONS:()=>ut,PACKAGE_MANAGER_TO_CDN:()=>gr,PARSED_DOMQ_PROPERTIES:()=>os,PROPS_METHODS:()=>qe,STATE_METHODS:()=>Tt,STATE_PROPERTIES:()=>Pd,SVG_TAGS:()=>Xe,TYPES:()=>Jo,addCaching:()=>sl,addContext:()=>ol,addExtend:()=>dh,addExtends:()=>Rt,addItemAfterEveryElement:()=>md,addProtoToArray:()=>Fr,addRef:()=>el,applyCSS:()=>Yu,applyDependentState:()=>Xs,applyEvent:()=>Vr,applyEventUpdate:()=>Js,applyExtends:()=>Is,applyProps:()=>Fs,arrayContainsOtherArray:()=>ld,arraysEqual:()=>yd,arrayzeValue:()=>cn,cache:()=>Sh,call:()=>Ai,captureSnapshot:()=>Pi,checkForStateTypes:()=>Gs,checkIfInherits:()=>er,checkIfStringIsInArray:()=>Sd,clone:()=>Dd,cloneAndMergeArrayExtend:()=>vs,cloneFunction:()=>eh,concatAddExtends:()=>ks,copyJavaScriptToClipboard:()=>Qm,copyStringToClipboard:()=>Xm,createBasedOnType:()=>tl,createElement:()=>Ws,createElementExtends:()=>Bc,createExtends:()=>Es,createExtendsFromKeys:()=>Bn,createExtendsStack:()=>zc,createIfConditionFlag:()=>Br,createInheritedState:()=>Ks,createKey:()=>xs,createNestedObject:()=>ps,createNestedObjectByKeyPath:()=>Ys,createObjectWithoutPrototype:()=>Ac,createParent:()=>rl,createPath:()=>nl,createProps:()=>Ls,createPropsStack:()=>Qc,createRoot:()=>qs,createScope:()=>qn,createSnapshotId:()=>bs,customDecodeURIComponent:()=>Id,customEncodeURIComponent:()=>Rd,cutArrayAfterValue:()=>dd,cutArrayBeforeValue:()=>pd,debounce:()=>Xd,debounceOnContext:()=>Qd,decodeNewlines:()=>Ad,deepClone:()=>z,deepContains:()=>fs,deepDestringifyFunctions:()=>le,deepExtend:()=>Lc,deepMerge:()=>U,deepMergeExtends:()=>ue,deepStringifyFunctions:()=>as,defineSetter:()=>jh,detectInfiniteLoop:()=>gs,document:()=>L,encodeNewlines:()=>Od,error:()=>Xr,excludeKeysFromObject:()=>Hd,exec:()=>O,extendCachedRegistry:()=>fh,extendStackRegistry:()=>Os,extractArrayExtend:()=>Ts,fibonacciNumberByIndex:()=>$m,filterArrays:()=>bd,filterArraysFast:()=>xd,finalizeExtends:()=>Hc,findClosestNumber:()=>Cf,findClosestNumberInFactory:()=>Dm,findInheritedState:()=>tr,findKeyPosition:()=>Cd,flattenExtend:()=>Un,formatDate:()=>Fm,generateHash:()=>Dc,generateKey:()=>ys,generateMetaTags:()=>Wm,get:()=>Uh,getActiveRoute:()=>Ga,getCDNUrl:()=>ee,getCapitalCaseKeys:()=>mh,getCdnProviderFromConfig:()=>uo,getChildStateInKey:()=>Ze,getChildren:()=>Vh,getContext:()=>wi,getCookie:()=>ih,getDB:()=>Ti,getExtendsInElement:()=>hh,getExtendsStack:()=>Cs,getExtendsStackRegistry:()=>$c,getFrequencyInArray:()=>fd,getHashedExtend:()=>As,getImportMapScript:()=>qm,getInObjectByPath:()=>ms,getLocalStorage:()=>ch,getNev:()=>Yd,getPageMetadata:()=>Ym,getParentStateInKey:()=>Je,getPath:()=>yi,getQuery:()=>Ri,getRef:()=>gi,getRoot:()=>xi,getRootContext:()=>_i,getRootData:()=>Si,getRootState:()=>bi,getRootStateInKey:()=>Qe,getSpreadChildren:()=>gh,global:()=>ad,hasFunction:()=>ls,hasHandlerPlugin:()=>Ke,hasOwnProperty:()=>Bd,inheritChildExtends:()=>Vc,inheritChildPropsExtends:()=>Uc,inheritParentProps:()=>Bs,inheritRecursiveChildExtends:()=>jc,init:()=>Ue,initProps:()=>zn,is:()=>At,isArray:()=>S,isBoolean:()=>In,isContextComponent:()=>Ns,isCyclic:()=>zd,isDOMNode:()=>Bt,isDate:()=>Cc,isDefined:()=>Ot,isDevelopment:()=>Jt,isEmpty:()=>kc,isEmptyObject:()=>Ud,isEqualDeep:()=>Oc,isFunction:()=>b,isHtmlElement:()=>Qo,isLocal:()=>Kd,isMethod:()=>qt,isMobile:()=>oh,isNode:()=>Ce,isNot:()=>Dr,isNotProduction:()=>Mr,isNull:()=>vc,isNumber:()=>ct,isObject:()=>g,isObjectLike:()=>N,isPhoto:()=>zm,isProduction:()=>Ge,isStaging:()=>Gd,isState:()=>Hn,isString:()=>y,isStringFunction:()=>th,isTest:()=>Tc,isTesting:()=>Wd,isUndefined:()=>K,isValidHtmlTag:()=>ke,joinArrays:()=>Pn,jointStacks:()=>ph,keys:()=>Xn,lastLevel:()=>Ro,lastPathname:()=>To,loadCssFile:()=>Um,loadJavascript:()=>Vm,loadJavascriptFile:()=>Lm,loadJavascriptFileEmbedSync:()=>Bm,loadJavascriptFileSync:()=>Mm,loadRemoteCSS:()=>jm,loadRemoteScript:()=>fo,log:()=>vi,logGroupIf:()=>nh,logIf:()=>rh,lookdown:()=>pi,lookdownAll:()=>di,lookup:()=>ui,lowercaseFirstLetter:()=>ce,makeObjectWithoutPrototype:()=>Vd,map:()=>Nd,mapStringsWithContextComponents:()=>Rs,matchRoute:()=>Ha,matchesComponentNaming:()=>It,memoize:()=>Jd,merge:()=>Y,nextElement:()=>Ei,objectToString:()=>cs,objectizeStringProperty:()=>Ds,overwrite:()=>fe,overwriteDeep:()=>it,overwriteShallow:()=>Lr,overwriteState:()=>Qs,parse:()=>Qn,parseDeep:()=>Yr,parseQuery:()=>qa,parseRoutePattern:()=>za,pickupElementFromProps:()=>Ur,pickupPropsFromElement:()=>Yc,previousElement:()=>ki,propExists:()=>xh,propertizeElement:()=>jn,propertizeUpdate:()=>Ms,reinit:()=>Ku,remove:()=>hi,removeChars:()=>Jm,removeCookie:()=>ah,removeDuplicateProps:()=>Vs,removeDuplicatesInArray:()=>Nn,removeFromArray:()=>Zo,removeFromObject:()=>us,removeNestedKeyByPath:()=>ds,removeValueFromArray:()=>es,removeValueFromArrayAll:()=>hd,reorderArrayByValues:()=>gd,replaceLiteralsWithObjectFields:()=>vd,replaceOctalEscapeSequences:()=>kd,report:()=>yt,resolveHandler:()=>Ye,returnValueAsText:()=>Zc,router:()=>ne,runGuards:()=>Wa,runPluginHook:()=>$n,scratchSystem:()=>yo,scratchUtils:()=>br,self:()=>cd,set:()=>pn,setCookie:()=>sh,setHashedExtend:()=>Fc,setInObjectByPath:()=>hs,setLocalStorage:()=>lh,setNodeStyles:()=>Yn,setProps:()=>mi,setPropsPrototype:()=>Us,spotByPath:()=>fi,stringIncludesAny:()=>ns,stringToObject:()=>Md,swapItemsInArray:()=>ud,syncProps:()=>js,toCamelCase:()=>Hi,toDashCase:()=>qi,toDescriptionCase:()=>tg,toTitleCase:()=>Zm,toggleFullscreen:()=>Nm,triggerEventOn:()=>W,triggerEventOnUpdate:()=>vt,trimStringFromSymbols:()=>_d,unstackArrayOfObjects:()=>ts,update:()=>Xc,updateProps:()=>zs,variables:()=>Oi,verbose:()=>Jn,warn:()=>Ci,window:()=>F});v();v();var eS=E(),Gu=(t=eS,e)=>{let r=g(e.localFile)?e.localFile:{},n=z(r.designSystem||{});return U(t,n)},rS={emotion:Ct,useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Ue=(t,e=rS)=>{let r=e.emotion||Ct,n=Gu(t||{},e),o=pn({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:e.globalTheme,files:e.files,...n},{newConfig:e.newConfig}),s=ji(o.font,o.files),i=o.useReset,a=o.useVariable,c=o.useFontImport,f=o.useSvgSprite,l=t.svg,u=o.useIconSprite,p=t.icons;if(c&&r.injectGlobal(s),a&&(r.injectGlobal({":root":o.CSS_VARS}),o.CSS_MEDIA_VARS)){let h={};for(let m in o.CSS_MEDIA_VARS)m.startsWith("@media")?h[m]={":root:not([data-theme])":o.CSS_MEDIA_VARS[m]}:h[m]=o.CSS_MEDIA_VARS[m];r.injectGlobal(h)}i&&r.injectGlobal(o.reset);let d=o.animation;if(d){let h={};for(let m in d)h[`@keyframes ${m}`]=d[m];r.injectGlobal(h)}return(l||f)&&xa(o.svg,{document:e.document}),(p||u)&&_a(o.icons,{document:e.document}),o},Io={emotion:Ct},Ku=(t,e=Io)=>{let r=e.emotion||Ct,n=Gu(t||{},e),o=pn({verbose:!1,...n});if(!e.preventInject){if(r.injectGlobal({":root":o.CSS_VARS}),o.CSS_MEDIA_VARS){let s={};for(let i in o.CSS_MEDIA_VARS)i.startsWith("@media")?s[i]={":root:not([data-theme])":o.CSS_MEDIA_VARS[i]}:s[i]=o.CSS_MEDIA_VARS[i];r.injectGlobal(s)}r.injectGlobal(o.reset)}return o},Yu=(t,e=Io)=>{(e.emotion||Ct).injectGlobal(t)},wT=(t,e=Io)=>{let r=e.emotion||Ct;if(r.injectGlobal({":root":t.CSS_VARS}),t.CSS_MEDIA_VARS){let n={};for(let o in t.CSS_MEDIA_VARS)o.startsWith("@media")?n[o]={":root:not([data-theme])":t.CSS_MEDIA_VARS[o]}:n[o]=t.CSS_MEDIA_VARS[o];r.injectGlobal(n)}},vT=(t,e=Io)=>{};v();var Ya={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},Qu=(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},Ju=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=Ya:e.router=Y(e.router||{},Ya);let r=e.router,n=async(s,i)=>{if(!F.location)return;let{pathname:a,search:c,hash:f}=F.location,l=a+c+f,u=s;if(r.customRouterElement){let p=Qu(s,r.customRouterElement);p&&(u=p,s.routes&&(u.routes=s.routes))}u.routes&&await ne(l,u,{},{initialRender:!0})},o=t.on&&!K(t.on.renderRouter)||!K(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.on?t.on.renderRouter=n:t.on={renderRouter:n}),nS(e,r),r},Xu,Zu=(t,e)=>{if(Xu)return;Xu=!0;let r=e.router||Ya;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:ne;F.onpopstate=async o=>{let{pathname:s,search:i,hash:a}=F.location,c=s+i+a,f=t;if(r.customRouterElement){let l=Qu(t,r.customRouterElement);l&&(f=l,t.routes&&(f.routes=t.routes))}await f.call("router",c,f,{},{pushState:!1,scrollToTop:!1,level:0,event:o})}},nS=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return U(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};v();var Xa=F&&F.location?F.location.host.includes("dev."):Jt(),tp=Xa?"http://localhost:8080/get":"https://api.symbols.app/get",oS={endpoint:tp},ep=async(t,e=oS)=>{let r=e.endpoint||tp,n=e.serviceRoute?S(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(b(e.onError))return e.onError(s);console.error(s)}},sS=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await ep(t,r),o=Xa||e.isDevelopment?le(n):le(n.releases[0]);r.serviceRoute?S(r.serviceRoute)?r.serviceRoute.forEach(s=>{it(e[s],o[s.toLowerCase()])}):it(e[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","packages","functions"].forEach(s=>{it(e[s],o[s.toLowerCase()])})}return e},iS=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await ep(t,n),s=Xa||e.isDevelopment?le(o):le(o.releases[0]);r(s)}},rp=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await sS(t,e)}catch(r){console.error(r)}},np=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&iS(e,r,n||(o=>{let s=o.designSystem;g(s)&&r.utils.init(s),g(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};v();var aS={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"}},cS=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}"]`},Po=(t,e,r)=>{if(!t)return{};let n=b(t)?O(t,e,r):{...t};if(!g(n))return{};for(let o in n){let s=n[o];b(s)&&(s=O(s,e,r)),y(s)&&s.includes("{{")&&e?.call&&(s=e.call("replaceLiteralsWithObjectFields",s,r)),n[o]=s}return n};var lS=(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},No=(t,e)=>{if(!(!g(t)||!e))for(let r in t){let n=t[r];if(n==null)continue;let o=aS[r];if(!o)continue;let s=cS(o),i=e.querySelector(s)||lS(o,e);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}};var op={name:"helmet",create(t){let e=t.metadata||t.props?.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Po(e,t,t.state);No(n,r)},update(t){let e=t.metadata||t.props?.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Po(e,t,t.state);No(n,r)}};Ae();var sp=(t,e,r,n)=>{t&&Gr(t,e,r,n)},ip=(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<"u"&&document;if(!n)return;let o=Po(t,e,r);No(o,n)},ap=async(t,e)=>{if(!t)return;let r={tag:"fragment",...t},n=async()=>{await e.set(r,{preventDefineUpdate:"$router"})};return e.props&&e.props.lazyLoad?window.requestAnimationFrame(n):await n(),r},bn={routes:t=>t,metadata:ip,fetch:sp,$router:ap},fS=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=ip),t.fetch!==!1&&(e.fetch=sp),t.router!==!1&&(e.$router=ap),e};var cp={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},Qa={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},Ja={...cp,router:Qa},uS={state:{},pages:{},components:{},router:Qa,define:bn},Se=uS;var pS=(t,e,r,n)=>{let o=(Ao.default||Ao)(t,e,r,n);return o.on?.complete&&o.on.complete(t,t.state,t.context,n),o.props?.onComplete&&o.props?.onComplete(t,t.state,t.context,n),o.on?.initInspect&&o.on.initInspect(t,t.state,t.context,n),o.on?.initSync&&o.on.initSync(t,t.state,t.context,n),o},Do={TREE:Ma,create:pS};v();v();var zt=Object.create(null);zt.open="0";zt.close="1";zt.ping="2";zt.pong="3";zt.message="4";zt.upgrade="5";zt.noop="6";var xn=Object.create(null);Object.keys(zt).forEach(t=>{xn[zt[t]]=t});var Sn={type:"error",data:"parser error"};var up=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",pp=typeof ArrayBuffer=="function",dp=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,_n=({type:t,data:e},r,n)=>up&&e instanceof Blob?r?n(e):lp(e,n):pp&&(e instanceof ArrayBuffer||dp(e))?r?n(e):lp(new Blob([e]),n):n(zt[t]+(e||"")),lp=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];e("b"+(n||""))},r.readAsDataURL(t)};function fp(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var Za;function hp(t,e){if(up&&t.data instanceof Blob)return t.data.arrayBuffer().then(fp).then(e);if(pp&&(t.data instanceof ArrayBuffer||dp(t.data)))return e(fp(t.data));_n(t,!1,r=>{Za||(Za=new TextEncoder),e(Za.encode(r))})}var mp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<mp.length;t++)wn[mp.charCodeAt(t)]=t;var gp=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 f=new ArrayBuffer(e),l=new Uint8Array(f);for(n=0;n<r;n+=4)s=wn[t.charCodeAt(n)],i=wn[t.charCodeAt(n+1)],a=wn[t.charCodeAt(n+2)],c=wn[t.charCodeAt(n+3)],l[o++]=s<<2|i>>4,l[o++]=(i&15)<<4|a>>2,l[o++]=(a&3)<<6|c&63;return f};var dS=typeof ArrayBuffer=="function",vn=(t,e)=>{if(typeof t!="string")return{type:"message",data:yp(t,e)};let r=t.charAt(0);return r==="b"?{type:"message",data:hS(t.substring(1),e)}:xn[r]?t.length>1?{type:xn[r],data:t.substring(1)}:{type:xn[r]}:Sn},hS=(t,e)=>{if(dS){let r=gp(t);return yp(r,e)}else return{base64:!0,data:t}},yp=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var bp="",xp=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{_n(s,!1,a=>{n[i]=a,++o===r&&e(n.join(bp))})})},Sp=(t,e)=>{let r=t.split(bp),n=[];for(let o=0;o<r.length;o++){let s=vn(r[o],e);if(n.push(s),s.type==="error")break}return n};function _p(){return new TransformStream({transform(t,e){hp(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 tc;function Fo(t){return t.reduce((e,r)=>e+r.length,0)}function $o(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 wp(t,e){tc||(tc=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(Fo(r)<1)break;let c=$o(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(Fo(r)<2)break;let c=$o(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(Fo(r)<8)break;let c=$o(r,8),f=new DataView(c.buffer,c.byteOffset,c.length),l=f.getUint32(0);if(l>Math.pow(2,21)-1){a.enqueue(Sn);break}o=l*Math.pow(2,32)+f.getUint32(4),n=3}else{if(Fo(r)<o)break;let c=$o(r,o);a.enqueue(vn(s?c:tc.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(Sn);break}}}})}var ec=4;function X(t){if(t)return mS(t)}function mS(t){for(var e in X.prototype)t[e]=X.prototype[e];return t}X.prototype.on=X.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};X.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};X.prototype.off=X.prototype.removeListener=X.prototype.removeAllListeners=X.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};X.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};X.prototype.emitReserved=X.prototype.emit;X.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};X.prototype.hasListeners=function(t){return!!this.listeners(t).length};var oe=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),bt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),vp="arraybuffer";function Lo(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var gS=bt.setTimeout,yS=bt.clearTimeout;function se(t,e){e.useNativeTimers?(t.setTimeoutFn=gS.bind(bt),t.clearTimeoutFn=yS.bind(bt)):(t.setTimeoutFn=bt.setTimeout.bind(bt),t.clearTimeoutFn=bt.clearTimeout.bind(bt))}var bS=1.33;function Cp(t){return typeof t=="string"?xS(t):Math.ceil((t.byteLength||t.size)*bS)}function xS(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 Mo(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Ep(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function kp(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 Bo=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type="TransportError"}},ie=class extends X{constructor(e){super(),this.writable=!1,se(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 Bo(e,r,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let r=vn(e,this.socket.binaryType);this.onPacket(r)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,r={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){let e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){let r=Ep(e);return r.length?"?"+r:""}};var Cn=class extends ie{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)};Sp(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,xp(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]=Mo()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var Op=!1;try{Op=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var Ap=Op;function SS(){}var rc=class extends Cn{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}},_e=class t extends X{constructor(e,r,n){super(),this.createRequest=e,se(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=Lo(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=SS,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()}};_e.requestsCount=0;_e.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Tp);else if(typeof addEventListener=="function"){let t="onpagehide"in bt?"pagehide":"unload";addEventListener(t,Tp,!1)}}function Tp(){for(let t in _e.requests)_e.requests.hasOwnProperty(t)&&_e.requests[t].abort()}var _S=(function(){let t=Rp({xdomain:!1});return t&&t.responseType!==null})(),we=class extends rc{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=_S&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new _e(Rp,this.uri(),e)}};function Rp(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Ap))return new XMLHttpRequest}catch{}if(!e)try{return new bt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var Ip=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",oc=class extends ie{get name(){return"websocket"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=Ip?{}:Lo(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;_n(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&oe(()=>{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]=Mo()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},nc=bt.WebSocket||bt.MozWebSocket,ve=class extends oc{createSocket(e,r,n){return Ip?new nc(e,r,n):r?new nc(e,r):new nc(e)}doWrite(e,r){this.ws.send(r)}};var Er=class extends ie{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=wp(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=_p();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&&oe(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var sc={websocket:ve,webtransport:Er,polling:we};var wS=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,vS=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function kr(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=wS.exec(t||""),s={},i=14;for(;i--;)s[vS[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=CS(s,s.path),s.queryKey=ES(s,s.query),s}function CS(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 ES(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var ic=typeof addEventListener=="function"&&typeof removeEventListener=="function",Uo=[];ic&&addEventListener("offline",()=>{Uo.forEach(t=>t())},!1);var Ve=class t extends X{constructor(e,r){if(super(),this.binaryType=vp,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=kr(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=kr(r.host).host);se(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=kp(this.opts.query)),ic&&(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"})},Uo.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=ec,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+=Cp(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,oe(()=>{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(),ic&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Uo.indexOf(this._offlineEventListener);n!==-1&&Uo.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};Ve.protocol=ec;var Vo=class extends Ve{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;Ve.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;Ve.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(l(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let p=new Error("probe error");p.transport=r.name,this.emitReserved("upgradeError",p)}}))};function s(){n||(n=!0,l(),r.close(),r=null)}let i=u=>{let p=new Error("probe error: "+u);p.transport=r.name,s(),this.emitReserved("upgradeError",p)};function a(){i("transport closed")}function c(){i("socket closed")}function f(u){r&&u.name!==r.name&&s()}let l=()=>{r.removeListener("open",o),r.removeListener("error",i),r.removeListener("close",a),this.off("close",c),this.off("upgrading",f)};r.once("open",o),r.once("error",i),r.once("close",a),this.once("close",c),this.once("upgrading",f),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}},Or=class extends Vo{constructor(e,r={}){let n=typeof e=="object"?e:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>sc[o]).filter(o=>!!o)),super(e,n)}};var tI=Or.protocol;function Pp(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=kr(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 pc={};Mt(pc,{Decoder:()=>fc,Encoder:()=>lc,PacketType:()=>R,isPacketValid:()=>FS,protocol:()=>Lp});var OS=typeof ArrayBuffer=="function",AS=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Np=Object.prototype.toString,TS=typeof Blob=="function"||typeof Blob<"u"&&Np.call(Blob)==="[object BlobConstructor]",RS=typeof File=="function"||typeof File<"u"&&Np.call(File)==="[object FileConstructor]";function kn(t){return OS&&(t instanceof ArrayBuffer||AS(t))||TS&&t instanceof Blob||RS&&t instanceof File}function En(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(En(t[r]))return!0;return!1}if(kn(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return En(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&En(t[r]))return!0;return!1}function Dp(t){let e=[],r=t.data,n=t;return n.data=ac(r,e),n.attachments=e.length,{packet:n,buffers:e}}function ac(t,e){if(!t)return t;if(kn(t)){let r={_placeholder:!0,num:e.length};return e.push(t),r}else if(Array.isArray(t)){let r=new Array(t.length);for(let n=0;n<t.length;n++)r[n]=ac(t[n],e);return r}else if(typeof t=="object"&&!(t instanceof Date)){let r={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=ac(t[n],e));return r}return t}function Fp(t,e){return t.data=cc(t.data,e),delete t.attachments,t}function cc(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]=cc(t[r],e);else if(typeof t=="object")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=cc(t[r],e));return t}var $p=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Lp=5,R;(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"})(R||(R={}));var lc=class{constructor(e){this.replacer=e}encode(e){return(e.type===R.EVENT||e.type===R.ACK)&&En(e)?this.encodeAsBinary({type:e.type===R.EVENT?R.BINARY_EVENT:R.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===R.BINARY_EVENT||e.type===R.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)),r}encodeAsBinary(e){let r=Dp(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},fc=class t extends X{constructor(e){super(),this.reviver=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===R.BINARY_EVENT;n||r.type===R.BINARY_ACK?(r.type=n?R.EVENT:R.ACK,this.reconstructor=new uc(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(kn(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(R[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===R.BINARY_EVENT||n.type===R.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");n.attachments=Number(i)}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 n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,r){switch(e){case R.CONNECT:return jo(r);case R.DISCONNECT:return r===void 0;case R.CONNECT_ERROR:return typeof r=="string"||jo(r);case R.EVENT:case R.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&$p.indexOf(r[0])===-1);case R.ACK:case R.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},uc=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=Fp(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function IS(t){return typeof t=="string"}var PS=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function NS(t){return t===void 0||PS(t)}function jo(t){return Object.prototype.toString.call(t)==="[object Object]"}function DS(t,e){switch(t){case R.CONNECT:return e===void 0||jo(e);case R.DISCONNECT:return e===void 0;case R.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&$p.indexOf(e[0])===-1);case R.ACK:return Array.isArray(e);case R.CONNECT_ERROR:return typeof e=="string"||jo(e);default:return!1}}function FS(t){return IS(t.nsp)&&NS(t.id)&&DS(t.type,t.data)}function kt(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var $S=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Ar=class extends X{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=[kt(e,"open",this.onopen.bind(this)),kt(e,"packet",this.onpacket.bind(this)),kt(e,"error",this.onerror.bind(this)),kt(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($S.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:R.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let l=this.ids++,u=r.pop();this._registerAckCallback(l,u),i.id=l}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:R.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 R.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 R.EVENT:case R.BINARY_EVENT:this.onevent(e);break;case R.ACK:case R.BINARY_ACK:this.onack(e);break;case R.DISCONNECT:this.ondisconnect();break;case R.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:R.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:R.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 je(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}je.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};je.prototype.reset=function(){this.attempts=0};je.prototype.setMin=function(t){this.ms=t};je.prototype.setMax=function(t){this.max=t};je.prototype.setJitter=function(t){this.jitter=t};var Tr=class extends X{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,se(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 je({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||pc;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 Or(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=kt(r,"open",function(){n.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=kt(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(kt(e,"ping",this.onping.bind(this)),kt(e,"data",this.ondata.bind(this)),kt(e,"error",this.onerror.bind(this)),kt(e,"close",this.onclose.bind(this)),kt(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){oe(()=>{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 Ar(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 On={};function An(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let r=Pp(t,e.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=On[o]&&s in On[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Tr(n,e):(On[o]||(On[o]=new Tr(n,e)),c=On[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(An,{Manager:Tr,Socket:Ar,io:An,connect:An});v();var LS={success:"green",error:"red",warning:"yellow"},Mp=(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.setProps({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.setProps({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},Tn={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:LS[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,r,n)=>{r.setProps({animation:"fadeInUp"})},onClick:(e,r,n)=>{delete n.notifications[r.key],r.setProps({animation:"fadeOutDown"}),n.onClose&&n.onClose(e,r,n)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var Bp=process.env.NODE_ENV==="local",MS=(t,e)=>{!t||!Array.isArray(e)||e.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},t)},BS=(t,e,r,n=!1)=>{!t||!Array.isArray(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)},US=(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":MS(t,o);break;case"update":case"set":BS(t,o,s,!0);break;default:break}return r},VS=async()=>{try{let t=Bp?"http://localhost:8080":"https://api.symbols.app",e=await F.fetch(`${t}/service-token`,{method:"GET"}),r;try{let n=await e.clone().json();if(n&&typeof n.token=="string")return n.token.trim();r=await e.text()}catch{r=await e.text()}return(r||"").replace(/\s+/gu,"")||void 0}catch(t){console.error("[sync] Failed to fetch service-token",t)}},jS=(t,e,r)=>(n={})=>{let{data:o}=n,{schema:s}=n;o&&(o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?Ue(a):Lr(r[i],a):r[i]=a}),s&&(r.schema=s))},zS=(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=US(r,o);if(s.has("state")){let i=r.state?.route;i?t.call("router",i.replace("/state","")||"/",t.__ref.root,{},{scrollToTop:!1}):e.update(r.state)}if(["pages","components","snippets","functions"].some(i=>s.has(i))){let{pathname:i,search:a,hash:c}=r.window.location;t.call("router",i+a+c,t.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&Ue(r.designSystem)},HS=async(t,e,r)=>{let n=await VS();if(!n)return console.warn("[sync] No service token \u2013 live collaboration disabled"),null;let o=r.key;if(!o)return console.warn("[sync] ctx.key missing \u2013 cannot establish collaborative connection"),null;let i=An(Bp?"http://localhost:8080":"https://api.symbols.app",{path:"/collab-socket",transports:["websocket"],auth:{token:n,projectKey:o,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return i.on("connect",()=>{r.editor?.verbose&&console.info("[sync] Connected to collab socket")}),i.on("snapshot",jS(t,e,r)),i.on("ops",zS(t,e,r)),i.on("clients",a=>{r.editor?.verbose&&Mp(a,t,e)}),i.on("disconnect",a=>{r.editor?.verbose&&console.info("[sync] Disconnected from collab socket",a)}),i},zo={onInitSync:HS};var Up=(t,e)=>N(t.extends)?t.extends:[],Vp=(t,e)=>{let{editor:r}=e;if(!r)return;(K(r.liveSync)?Jt():r.liveSync)&&(S(t.extends)?t.extends.push(zo):t.extends?t.extends=[t.extends,zo]:t.extends=[zo])};var jp=(t,e)=>{let{editor:r}=e;if(!r)return;(K(r.verbose)?Jt()||e.verbose:r.verbose)&&(S(t.extends)?t.extends.push(Tn):t.extends?t.extends=[t.extends,Tn]:t.extends=[Tn])};v();v();var qS=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],zp=(t,e={})=>{let r=e.parent||e.document||document,n=e.initOptions||{},o=n.emotion;n.emotion||(n.emotion=Ct);let s=e.registry||hf(n.emotion,e),i=e.designSystem?U(z(Ta),e.designSystem):z(Ta),a={};for(let f of qS)e[f]!==void 0&&(a[f]=e[f]);return[Ue(i,{key:t,emotion:o,document:r,files:e.files,...Ja,...a,...n}),o,s]};var Wp=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let r=typeof document<"u"?document:e.document;return t.document=t.document||r,t.window=t.window||e,t.window},Hp=(t="smbls")=>{let e={};for(let r in Be)Object.prototype.hasOwnProperty.call(Be,r)&&(It(r)?e[`smbls.${r}`]=Be[r]:e[r]=Be[r]);return e},Gp=t=>t.components?{...Hp(),...t.components}:Hp(),Kp=t=>({...yn,...Ka,...br,...t.utils,...t.snippets,...t.functions}),Yp=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),qp={},Xp=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=gr[s]||uo(i)||"esmsh"),!t)return null;let a=!1;for(let c in t){a=!0;break}if(!a)return null;for(let c in t){let f=t[c];if(e&&e[c])continue;let l=Jt()&&n?`?${Math.random()}`:"",u=ee(c,f,o)+l;try{if(qp[c])return;qp[c]=!0,await fo(u,{document:r,type:"module"})}catch(p){if(console.error(`Failed to load ${c} from ${o}:`,p),o!=="symbols")try{let d=ee(c,f,"symbols")+l;await fo(d,{document:r}),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(d){console.error(`Failed to load ${c} from fallback:`,d)}}}return t},Qp=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||uo(e.symbolsConfig)||"esmsh",o=async i=>async(a,c)=>{let l=(i.window||window).packages[a];return typeof l=="function"?l():l},s=async i=>async(a,c=n)=>{let{dependenciesOnDemand:f}=i,l=i.document||document,u=i.window||window;if(!u.packages[a]){let p=Jt()?`?${Math.random()}`:"";if(f&&f[a]){let d=f[a],h=ee(a,d,c)+p;try{await i.utils.loadRemoteScript(h,{window:u,document:l})}catch(m){if(console.error(`Failed to load ${a} from ${c}:`,m),c!=="symbols"){let x=ee(a,d,"symbols")+p;await i.utils.loadRemoteScript(x,{window:u,document:l})}}}else{let d=ee(a,"latest",c)+p;try{await i.utils.loadRemoteScript(d,{window:u,document:l})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let m=ee(a,"latest","symbols")+p;await i.utils.loadRemoteScript(m,{window:u,document:l})}}u.packages[a]="loadedOnDeman"}}return await u.require(a,c)};r.packages?r.packages=Y(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)},Jp=(t,e)=>{let[r,n,o]=zp(t,e);return[r,n,o]},Zp=(t,e)=>{let r={};return e.state&&U(r,e.state),t&&t.state&&U(r,t.state),r.isRootState=!0,z(r)},td=(t,e)=>{g(t.routes)&&g(e.pages)&&Y(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},ed=t=>{let e=t.sharedLibraries;for(let r=0;r<e.length;r++){let n=e[r];t.type==="template"?(overwriteShallow(t.designSystem,n.designSystem),U(t,n,["designSystem"],1)):U(t,n,[],1)}};v();var nd="smbls_lang",WS="smbls_t_",GS="smbls_tv_",Rr={get(t){try{return window?.localStorage.getItem(t)}catch{return null}},set(t,e){try{window?.localStorage.setItem(t,e)}catch{}},remove(t){try{window?.localStorage.removeItem(t)}catch{}}},Rn={};function qo(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||e?.defaultLang||"en"}function dc(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var Ho=(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},rd=(t,e,r)=>{let n=e.lastIndexOf(".");if(n===-1)return t[e+"_"+r];let o=Ho(t,e.substring(0,n));if(o!=null)return o[e.substring(n+1)+"_"+r]};function hc(t,e){if(!t)return"";let r=this?.context,n=r?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let f=rd(s,t,o);if(f!==void 0)return f}if(n?.translations){let f=n.translations[o];if(f){let l=Ho(f,t);if(l!==void 0)return l}}let a=(s?.root||r?.state?.root)?.translations;if(a){let f=a[o];if(f){let l=Ho(f,t);if(l!==void 0)return l}}let c=n?.defaultLang||"en";if(s){let f=rd(s,t,c);if(f!==void 0)return f}if(n?.translations){let f=n.translations[c];if(f){let l=Ho(f,t);if(l!==void 0)return l}}return t}async function mc(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!r||!n)return;let o=r.storagePrefix||WS,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):GS);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch)return;if(!n.translations?.[t]){let c=Rr.get(o+t);if(c)try{let f=JSON.parse(c),l={translations:{...n.translations||{}}};l.translations[t]=f,n.update&&n.update(l)}catch{}}let i=(r.storagePrefix||"smbls")+":"+t;if(Rn[i])return Rn[i];let a=this;return Rn[i]=(async()=>{try{let c=r.fetch,f=parseInt(Rr.get(s+t),10)||0,l,u,p;if(b(c)){let h=await c(t,f,a);if(!h||h.changed===!1)return;l=h.translations||h.data||h,u=h.version||0,p=!0}else if(g(c)){let h=a.getDB||(()=>e.fetch),m=b(h)?await h.call(a):e.fetch;if(!m)return;let x=c.rpc||c.from||"get_translations_if_changed",_={p_lang:t,p_cached_version:f,...c.params||{}},w=await m.rpc({from:x,params:_});if(w.error)throw w.error;let C=w.data;if(!C||!C.changed)return;l=C.translations||{},u=C.version||0,p=!0}else return;if(!p||!l)return;Rr.set(o+t,JSON.stringify(l)),u&&Rr.set(s+t,String(u));let d={translations:{...n.translations||{}}};d.translations[t]=l,n.update&&n.update(d)}catch(c){r.verbose!==!1&&console.error("[polyglot] Failed to load translations for",t,c)}finally{delete Rn[i]}})(),Rn[i]}async function gc(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||nd;Rr.set(o,t),r?.fetch&&await this.call("loadTranslations",t),n.update&&n.update({lang:t})}async function yc(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&&g(o.fetch)){let i=this.getDB||(()=>n.fetch),a=b(i)?await i.call(this):n.fetch;if(!a)return;let c=o.fetch.table||"translations",f=await a.upsert({from:c,data:{key:t,lang:e,text:r}});if(f?.error)throw f.error;return f.data}}async function od(){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||nd,s=Rr.get(n)||e.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&await this.call("loadTranslations",s)}function bc(t){let e=this.call("getActiveLang"),r=this?.state;if(!r)return"";let n=t.lastIndexOf(".");if(n===-1)return r[t+e]??"";let o=t.substring(0,n).split("."),s=r;for(let i=0;i<o.length;i++){if(s==null)return"";s=s[o[i]]}return s==null?"":s[t.substring(n+1)+e]??""}var xc={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,od.call(t))}};var Wo={polyglot:hc,getLocalStateLang:bc,getActiveLang:qo,getLang:qo,setLang:gc,getLanguages:dc,loadTranslations:mc,upsertTranslation:yc};Ae();var KS=async(t,e={})=>{let r=e.key=e.key||(y(t)?t:"smblsapp");e.define=e.define||bn,e.cssPropsRegistry=dn,e.window=Wp(e),e.sharedLibraries&&e.sharedLibraries.length&&ed(e);let[n,o,s]=Jp(r,e);e.designSystem=n,e.registry=s,e.emotion=o;let i=Zp(t,e);e.state=i,e.pages=td(t,e),e.components=Gp(e),e.utils=Kp(e),gr[e.packageManager]&&(e.dependencies=await Xp(e)),e.methods=Yp(e),e.routerOptions=Ju(t,e),e.defaultExtends=[Ia],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[];let a=c=>e.plugins.some(f=>f.name===c);if(e.polyglot&&!a("polyglot")){e.plugins.push(xc);for(let c in Wo)c in e.functions||(e.functions[c]=Wo[c])}return a("helmet")||e.plugins.push(op),e.fetch&&!a("fetch")&&e.plugins.push(ci),e},Sc=async(t,e)=>{g(e)||(e={}),Ce(t)?(t={},e.parent=t):y(t)?(t={},e.key=t):g(t)||(t={}),await KS(t,e),t.extends=Up(t,e),t.routes=e.pages,t.state=e.state,t.context=e,t.data=t.data||{},t.data.frameListeners=hu(e),await Qp({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e),Vp(t,e),jp(t,e);let r=e.document;if(!r||!r.createElement)return t;let n=e.parent||r.body;return await(Do.default&&Do.default.create||Do.create)(t,n,e.key,{verbose:e.verbose,...e.domqlOptions})};var _c=(t,e)=>U(t,g(e)?e:{}),sd=(t,e=Se,r)=>{let n={...Se,..._c(e,r)},o=Sc(t,n).then(s=>{Zu(s,n),n.on&&n.on.create&&n.on.create(o,o.state,o.context,n)});return o},RP=(t,e=Se,r)=>{let n=sd(t,e,r),o={...Se,..._c(e,r)},s=o.key;return np(n,s,{utils:yn,...o}),n},IP=async(t,e=Se,r)=>{let n={...Se,..._c(e,r)},o=e.key;await rp(o,n);let s=await Sc(t,n);return n.on&&n.on.create&&await n.on.create(s,s.state,s.context,n),s},PP=(t={},e=Se,r)=>sd({deps:{isUndefined:K},...t},U({domqlOptions:{onlyResolveExtends:!0}},e),r);export{Nx as A,Vf as ANIMATION_PROPS,zw as ARIA_ROLES,Il as ATTR_TRANSFORMS,Kx as Avatar,ob as B,jf as BLOCK_PROPS,_y as Block,Ia as Box,lb as Br,$x as Button,Ux as ButtonSet,te as CDN_PROVIDERS,Tg as CLASS,Ki as CONFIG,Pg as CSS_MEDIA_VARS,Zt as CSS_NATIVE_COLOR_REGEX,dn as CSS_PROPS_REGISTRY,nn as CSS_UNITS,Ig as CSS_VARS,Yy as Caption,bb as Checkbox,xb as CheckboxHgroup,Mx as CircleButton,Ny as Clickable,Ta as DEFAULT_CONFIG,Ja as DEFAULT_CONTEXT,Yf as DEFAULT_CSS_PROPERTIES_LIST,cp as DESIGN_SYSTEM_OPTIONS,is as DOMQL_EVENTS,He as DOMQ_PROPERTIES,Jh as DOM_EVENTS,ib as Data,jx as Dialog,Hx as DialogFooter,zx as DialogHeader,Xx as DropdownList,Qx as DropdownParent,Jx as DropdownParentFocus,Zx as DropdownSiblingFocus,qd as ENV,Ne as FACTORY,Gf as FLEX_PROPS,zf as FONT_PROPS,Ab as FileIcon,vy as Flex,Dy as Focusable,Fy as FocusableComponent,nb as Footnote,Ty as Form,Kf as GRID_PROPS,Ey as Grid,Oy as Gutter,jy as H1,zy as H2,Hy as H3,qy as H4,Wy as H5,Gy as H6,Ni as HTML_ATTRIBUTES,Mn as HTML_TAGS,eb as Headline,db as Hgroup,mb as HgroupButton,hb as HgroupRows,Py as Hoverable,cb as Hr,sb as I,kb as Icon,Vx as IconButton,Ob as IconText,Ry as Iframe,Ay as Img,wy as Inline,Cy as InlineFlex,ky as InlineGrid,gb as Input,Zy as Italic,Bx as KangorooButton,fb as Li,qu as Link,Dn as METHODS,ss as METHODS_EXL,Oa as MISC_PROPS,Qt as NODE_ENV,tS as Notification,yb as NumberInput,ut as OPTIONS,pb as Ol,Ky as P,gr as PACKAGE_MANAGER_TO_CDN,os as PARSED_DOMQ_PROPERTIES,Hf as POSITION_PROPS,qe as PROPS_METHODS,My as Picture,Qa as ROUTER_OPTIONS,Sb as Radio,_b as RadioHgroup,Yx as Range,Dx as RouteLink,Wu as RouterLink,$y as SHAPES,Tt as STATE_METHODS,Pd as STATE_PROPERTIES,Xe as SVG_TAGS,Fx as Select,Lx as SquareButton,Xy as Strong,rb as Subhead,By as Svg,qf as THEME_PROPS,Wf as TIMING_PROPS,Jo as TYPES,Vy as Text,Cb as Textarea,Eb as TextareaWithButton,Ly as Theme,tb as Title,wb as Toggle,vb as ToggleHgroup,qx as Tooltip,Wx as TooltipHidden,Gx as TooltipParent,Qy as U,ub as Ul,Jy as Underline,Uf as VALUE_TRANSFORMERS,Uy as Video,X0 as activateConfig,sl as addCaching,ol as addContext,dh as addExtend,Rt as addExtends,md as addItemAfterEveryElement,Fr as addProtoToArray,el as addRef,wg as animation,xa as appendSVGSprite,_a as appendSvgIconsSprite,qw as applyAttrTransforms,Yu as applyCSS,Ui as applyClassListOnNode,Ov as applyClasslist,Xs as applyDependentState,ya as applyDocument,Vr as applyEvent,Js as applyEventUpdate,Is as applyExtends,Nf as applyHeadings,yr as applyMediaSequenceVars,Fs as applyProps,wa as applyReset,ra as applySequenceGlobalVars,$e as applySequenceVars,da as applySpacingSequence,ga as applyTimingSequence,Qf as applyTrueProps,fa as applyTypographySequence,ld as arrayContainsOtherArray,yd as arraysEqual,cn as arrayzeValue,kv as assignKeyAsClassname,xg as breakpoints,Sh as cache,Ai as call,Pi as captureSnapshot,_g as cases,Tm as changeLightness,Pl as checkAttributeByTagName,Zh as checkEventFunctions,Gs as checkForStateTypes,pa as checkIfBoxSize,er as checkIfInherits,Sd as checkIfStringIsInArray,_m as classList,Sm as classify,Dd as clone,vs as cloneAndMergeArrayExtend,eh as cloneFunction,fg as color,ge as colorStringToRgbaArray,ks as concatAddExtends,na as convertSvgToSymbol,Qm as copyJavaScriptToClipboard,Xm as copyStringToClipboard,sd as create,RP as createAsync,tl as createBasedOnType,fS as createDefine,Ws as createElement,Bc as createElementExtends,wm as createEmotion,Es as createExtends,Bn as createExtendsFromKeys,zc as createExtendsStack,Br as createIfConditionFlag,Ks as createInheritedState,xs as createKey,ps as createNestedObject,Ys as createNestedObjectByKeyPath,Ac as createObjectWithoutPrototype,rl as createParent,nl as createPath,Ls as createProps,Qc as createPropsStack,qs as createRoot,qn as createScope,PP as createSkeleton,bs as createSnapshotId,IP as createSync,Id as customDecodeURIComponent,Rd as customEncodeURIComponent,dd as cutArrayAfterValue,pd as cutArrayBeforeValue,Xd as debounce,Qd as debounceOnContext,Ad as decodeNewlines,z as deepClone,fs as deepContains,le as deepDestringifyFunctions,Lc as deepExtend,U as deepMerge,ue as deepMergeExtends,as as deepStringifyFunctions,bn as defaultDefine,jh as defineSetter,Ra as depth,gs as detectInfiniteLoop,Sg as devices,Ct as emotion,Od as encodeNewlines,Xr as error,Hd as excludeKeysFromObject,O as exec,Hw as executeAttr,Rk as exetuteClassPerComponent,fh as extendCachedRegistry,Os as extendStackRegistry,Ts as extractArrayExtend,$m as fibonacciNumberByIndex,bd as filterArrays,xd as filterArraysFast,Nl as filterAttributesByTagName,Hc as finalizeExtends,Cf as findClosestNumber,Dm as findClosestNumberInFactory,Af as findHeadingLetter,ea as findHeadings,tr as findInheritedState,Cd as findKeyPosition,Un as flattenExtend,ng as font,ig as font_face,og as font_family,sg as font_family_types,Fm as formatDate,Dc as generateHash,ys as generateKey,Wm as generateMetaTags,Kt as generateSequence,Lg as generateSequencePosition,po as generateSprite,Zi as generateSubSequence,Uh as get,E as getActiveConfig,qo as getActiveLang,ee as getCDNUrl,mh as getCapitalCaseKeys,uo as getCdnProviderFromConfig,Ze as getChildStateInKey,Vh as getChildren,J as getColor,xf as getColorShade,wi as getContext,ih as getCookie,Ti as getDB,sn as getDefaultOrFirstKey,hh as getExtendsInElement,Cs as getExtendsStack,$c as getExtendsStackRegistry,Fe as getFnPrefixAndValue,Pm as getFontFace,an as getFontFaceEach,vf as getFontFaceEachString,ji as getFontFaceString,la as getFontFamily,_f as getFontFormat,ua as getFontSizeByKey,fd as getFrequencyInArray,As as getHashedExtend,qm as getImportMapScript,ms as getInObjectByPath,dc as getLanguages,bc as getLocalStateLang,ch as getLocalStorage,Et as getMediaColor,Yt as getMediaTheme,Yd as getNev,Ym as getPageMetadata,Je as getParentStateInKey,yi as getPath,Ri as getQuery,gi as getRef,on as getRgbTone,xi as getRoot,_i as getRootContext,Si as getRootData,bi as getRootState,Qe as getRootStateInKey,ta as getSequenceValue,Of as getSequenceValueBySymbols,be as getSequenceValuePropertyPair,ma as getShadow,Le as getSpacingBasedOnRatio,at as getSpacingByKey,gh as getSpreadChildren,Ji as getSubratio,Qi as getSubratioDifference,sa as getTheme,Ut as getTimingByKey,Dt as getTimingFunction,ad as global,ug as gradient,Og as grid,ls as hasFunction,Ke as hasHandlerPlugin,Bd as hasOwnProperty,Em as hexToRgb,mf as hexToRgbArray,Om as hexToRgba,bf as hslToRgb,hg as icons,Vc as inheritChildExtends,Uc as inheritChildPropsExtends,Bs as inheritParentProps,jc as inheritRecursiveChildExtends,Ue as init,od as initPolyglot,zn as initProps,At as is,S as isArray,In as isBoolean,nt as isCSSVar,Ns as isContextComponent,zd as isCyclic,Bt as isDOMNode,Cc as isDate,Ot as isDefined,Jt as isDevelopment,kc as isEmpty,Ud as isEmptyObject,Oc as isEqualDeep,b as isFunction,co as isGoogleFontsUrl,Qo as isHtmlElement,Kd as isLocal,qt as isMethod,oh as isMobile,Ce as isNode,Dr as isNot,Mr as isNotProduction,vc as isNull,ct as isNumber,g as isObject,N as isObjectLike,zm as isPhoto,Ge as isProduction,ye as isResolvedColor,rn as isScalingUnit,Gd as isStaging,Hn as isState,y as isString,th as isStringFunction,Tc as isTest,Wd as isTesting,K as isUndefined,ke as isValidHtmlTag,Pn as joinArrays,ph as jointStacks,Xn as keys,Um as loadCssFile,Vm as loadJavascript,Lm as loadJavascriptFile,Bm as loadJavascriptFileEmbedSync,Mm as loadJavascriptFileSync,jm as loadRemoteCSS,fo as loadRemoteScript,mc as loadTranslations,vi as log,nh as logGroupIf,rh as logIf,pi as lookdown,di as lookdownAll,ui as lookup,ce as lowercaseFirstLetter,Vd as makeObjectWithoutPrototype,Nd as map,Rs as mapStringsWithContextComponents,It as matchesComponentNaming,ag as media,Jd as memoize,Y as merge,Cm as mixTwoColors,Am as mixTwoRgb,Sf as mixTwoRgba,Ei as nextElement,De as numToLetterMap,cs as objectToString,Ds as objectizeStringProperty,ao as opacify,fe as overwrite,it as overwriteDeep,Lr as overwriteShallow,Qs as overwriteState,Qn as parse,dr as parseColorToken,Yr as parseDeep,Ur as pickupElementFromProps,Yc as pickupPropsFromElement,Wo as polyglotFunctions,xc as polyglotPlugin,ki as previousElement,xh as propExists,jn as propertizeElement,Ms as propertizeUpdate,Ku as reinit,hi as remove,Jm as removeChars,ah as removeCookie,Vs as removeDuplicateProps,Nn as removeDuplicatesInArray,Zo as removeFromArray,us as removeFromObject,ds as removeNestedKeyByPath,es as removeValueFromArray,hd as removeValueFromArrayAll,gd as reorderArrayByValues,vd as replaceLiteralsWithObjectFields,kd as replaceOctalEscapeSequences,Rg as reset,Ca as resolveColorsInGradient,Ie as resolveFileUrl,Ye as resolveHandler,Wt as resolvePropValue,Im as returnSubThemeOrDefault,Zc as returnValueAsText,gf as rgbArrayToHex,yf as rgbToHSL,km as rgbToHex,$n as runPluginHook,Pf as runThroughMedia,yo as scratchSystem,br as scratchUtils,cd as self,mg as semantic_icons,Pe as sequence,pn as set,Ef as setActiveConfig,vT as setClass,xr as setColor,sh as setCookie,Vi as setCustomFont,mr as setCustomFontMedia,ry as setEach,ca as setFont,mo as setFontFamily,lo as setFontImport,Sr as setGradient,Fc as setHashedExtend,wf as setInCustomFontMedia,hs as setInObjectByPath,gc as setLang,lh as setLocalStorage,aa as setMediaTheme,Yn as setNodeStyles,mi as setProps,Us as setPropsPrototype,go as setSVG,Xi as setScalingVar,_r as setShadow,kf as setSubScalingVar,Sa as setSvgIcon,ia as setTheme,ey as setValue,Mg as setVariables,dg as shadow,lg as spacing,ha as splitSpacedValue,hr as splitTopLevelCommas,bo as splitTransition,fi as spotByPath,ns as stringIncludesAny,Md as stringToObject,vg as svg,Cg as svg_data,ud as swapItemsInArray,js as syncProps,Eg as templates,pg as theme,yg as timing,Hi as toCamelCase,qi as toDashCase,tg as toDescriptionCase,Zm as toTitleCase,Nm as toggleFullscreen,Mf as transformBackgroundImage,xe as transformBorder,Ea as transformBorderRadius,va as transformBoxShadow,hf as transformDOMQLEmotion,wr as transformDuration,Dk as transformEmotion,df as transformEmotionClass,vm as transformEmotionStyle,Lf as transformShadow,ot as transformSize,V as transformSizeRatio,$f as transformTextStroke,Zg as transformTransition,Jf as transformersByPrefix,Bf as transfromGap,hc as translate,W as triggerEventOn,vt as triggerEventOnUpdate,_d as trimStringFromSymbols,Wi as typography,eg as unit,ts as unstackArrayOfObjects,Xc as update,zs as updateProps,wT as updateVars,yc as upsertTranslation,Xt as useCssInProps,my as usePropsAsCSS,gy as useSelectorsAsCSS,Oi as variables,Jn as verbose,Ci as warn,F as window};
36
36
  // @preserve-env