smbls 3.6.7 → 3.7.0

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,36 +1,36 @@
1
- var Fp=Object.defineProperty;var G=(t,e)=>()=>(t&&(e=t(t=0)),e);var Ft=(t,e)=>{for(var r in e)Fp(t,r,{get:e[r],enumerable:!0})};var $p,Lp,F,$,Tr=G(()=>{$p=globalThis,Lp=globalThis,F=globalThis,$=F.document});var ve,$o,$t,Rr=G(()=>{Tr();ve=t=>(typeof Node=="object"?t instanceof F.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,$o=t=>(typeof HTMLElement=="object"?t instanceof F.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,$t=t=>typeof F<"u"&&(F.Node&&t instanceof F.Node||F.Window&&t instanceof F.Window||t===F||t===document)});var g,y,lt,b,wn,rc,S,nc,N,Ct,Y,Lo,Et,Ir,xt=G(()=>{Rr();g=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,y=t=>typeof t=="string",lt=t=>typeof t=="number",b=t=>typeof t=="function",wn=t=>t===!0||t===!1,rc=t=>t===null,S=t=>Array.isArray(t),nc=t=>t instanceof Date,N=t=>t===null?!1:typeof t=="object",Ct=t=>t!==void 0,Y=t=>t===void 0,Lo={boolean:wn,array:S,object:g,string:y,date:nc,number:lt,null:rc,function:b,objectLike:N,node:ve,htmlElement:$o,defined:Ct},Et=t=>(...e)=>e.some(r=>Lo[r](t)),Ir=t=>(...e)=>!e.some(r=>Lo[r](t))});var Mp,Bp,Mo,Up,vn,Bo,jp,Vp,Uo,zp,Gp,Hp,qp,Wp,Kp,Yp,kn,Pr,je=G(()=>{ie();xt();Mp=(t,e)=>e.every(r=>t.includes(r)),Bp=(t,e)=>{let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r},Mo=(t,e)=>{if(y(e)&&(e=parseInt(e)),lt(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},Up=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]},vn=(...t)=>[].concat(...t),Bo=(t,e=[])=>t.reduce((r,n)=>M(r,j(n,{exclude:e}),e),{}),jp=(t,e)=>{let r=t.indexOf(e);return r!==-1?t.slice(0,r):t},Vp=(t,e)=>{if(!S(t))return;let r=t.indexOf(e);return r!==-1?t.slice(r+1):t},Uo=(t,e)=>{let r=t.indexOf(e);if(r>-1){let n=[...t];return n.splice(r,1),n}return t},zp=(t,e)=>t.filter(r=>r!==e),Gp=(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},Hp=(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},qp=(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},Wp=(t,e)=>t.filter(r=>!e.includes(r)),Kp=(t,e)=>{let r=new Set(e);return t.filter(n=>!r.has(n))},Yp=(t,e)=>{if(!t)return 0;let r=0;for(let n=0;n<e.length;n++)t.includes(e[n])&&r++;return r},kn=t=>S(t)?[...new Set(t)]:t,Pr=(t,e)=>{for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!1,configurable:!0,writable:!0})}});function Jp(t,e,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!t.includes(o))return t;let s=Xp[n],i=e||this.state||{};return t.replace(s,(a,c,f)=>{if(c){let l=(c.match(/\.\.\//g)||[]).length,u=i;for(let h=0;h<l;h++){if(!u||!u.parent)return"";u=u.parent}let p=f.trim();if(p==="parent")return String(u.value??"");let d=oc(u,p);return String(d??"")}else{let l=oc(i,f.trim());return String(l??"")}})}var jo,Qp,Xp,oc,ae,Zp,td,ed,rd,nd,od,sd,id,Nr=G(()=>{jo=(t,e)=>{for(let r of e)if(t.includes(r))return!0;return!1},Qp=(t,e)=>{let r=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(r,"")},Xp={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*}}}/g},oc=(t,e)=>e.split(".").reduce((r,n)=>r?.[n],t);ae=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,Zp=(t,e)=>{let r=t.split(`
2
- `),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,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}},td=/\\([0-7]{1,3})/g,ed=t=>t.replace(td,(e,r)=>String.fromCharCode(parseInt(r,8))),rd=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),nd=t=>t.replace(/\/\/\/\/\/n/g,`
3
- `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),od=/[^a-zA-Z0-9\s]/g,sd=t=>t.replace(od,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 Ve,Vo,ad,Ot,ze,Cn,zo,En,Ge=G(()=>{Ve=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"]),Vo=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),ad=["ref","parent","__element","__depends","__ref","__children","root"],Ot=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"]),ze=new Set(["update","__element"]),Cn=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"]),zo=new Set(["node","context","extends","__element","__ref",...Cn,...Ot,...ze]),En=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var sc,ke,A,cd,Q,M,ld,j,Go,fd,Ho,ud,pd,qo,ce,dd,hd,ic,md,gd,le,Dr,at,ac,yd,Wo,Ko,cc,Yo,Qo,Xo,Jo,Zo,bd,xd,ie=G(()=>{Tr();xt();je();Nr();Rr();Ge();sc=process.env.NODE_ENV,ke=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,A=(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},cd=(t,e,r)=>{for(let n in e)t[n]=A(e[n],r)},Q=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(ke(o)||(n?r.has(o):r.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},M=(t,e,r=zo)=>{let n=r instanceof Set;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||ke(o)||(n?r.has(o):r.includes(o)))continue;let s=t[o],i=e[o];N(s)&&N(i)?M(s,i,r):s===void 0&&(t[o]=i)}return t},ld=(t,e=[])=>{let r=e instanceof Set,n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(ke(o)||(r?e.has(o):e.includes(o))||(n[o]=t[o]));return n},j=(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)||$t(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)||ke(p)||p==="__proto__"||(u?u.has(p):r.includes(p)))continue;let d=t[p];if(!(n&&d===void 0)&&!(o&&d===null)){if($t(d)){l[p]=d;continue}if(a&&p==="extends"&&S(d)){l[p]=Bo(d,r);continue}if(b(d)&&e.window){l[p]=c.eval("("+d.toString()+")");continue}N(d)?l[p]=j(d,{...e,visited:i}):l[p]=d}}return l},Go=(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]={},Go(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]={},Go(i,o[s])):b(i)?o[s]=i.toString():o[s]=i}}else e[r]=n}return e},fd=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),Ho=(t={},e=0)=>{if(t===null||typeof t!="object")return String(t);let r=!1;for(let s in t){r=!0;break}if(!r)return"{}";let n=" ".repeat(e),o=`{
4
- `;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=!1;for(let 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} ${Ho(f,e+2)},
1
+ var Lp=Object.defineProperty;var W=(t,e)=>()=>(t&&(e=t(t=0)),e);var $t=(t,e)=>{for(var r in e)Lp(t,r,{get:e[r],enumerable:!0})};var Mp,Bp,$,L,Tr=W(()=>{Mp=globalThis,Bp=globalThis,$=globalThis,L=$.document});var ve,Bo,Lt,Rr=W(()=>{Tr();ve=t=>(typeof Node=="object"?t instanceof $.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,Bo=t=>(typeof HTMLElement=="object"?t instanceof $.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,Lt=t=>typeof $<"u"&&($.Node&&t instanceof $.Node||$.Window&&t instanceof $.Window||t===$||t===document)});var g,y,lt,b,kn,rc,S,nc,P,Ct,Y,Uo,Et,Ir,xt=W(()=>{Rr();g=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,y=t=>typeof t=="string",lt=t=>typeof t=="number",b=t=>typeof t=="function",kn=t=>t===!0||t===!1,rc=t=>t===null,S=t=>Array.isArray(t),nc=t=>t instanceof Date,P=t=>t===null?!1:typeof t=="object",Ct=t=>t!==void 0,Y=t=>t===void 0,Uo={boolean:kn,array:S,object:g,string:y,date:nc,number:lt,null:rc,function:b,objectLike:P,node:ve,htmlElement:Bo,defined:Ct},Et=t=>(...e)=>e.some(r=>Uo[r](t)),Ir=t=>(...e)=>!e.some(r=>Uo[r](t))});var Up,jp,jo,Vp,Cn,Vo,zp,qp,zo,Hp,Wp,Gp,Kp,Yp,Xp,Qp,En,Pr,je=W(()=>{ie();xt();Up=(t,e)=>e.every(r=>t.includes(r)),jp=(t,e)=>{let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r},jo=(t,e)=>{if(y(e)&&(e=parseInt(e)),lt(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},Vp=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]},Cn=(...t)=>[].concat(...t),Vo=(t,e=[])=>t.reduce((r,n)=>U(r,z(n,{exclude:e}),e),{}),zp=(t,e)=>{let r=t.indexOf(e);return r!==-1?t.slice(0,r):t},qp=(t,e)=>{if(!S(t))return;let r=t.indexOf(e);return r!==-1?t.slice(r+1):t},zo=(t,e)=>{let r=t.indexOf(e);if(r>-1){let n=[...t];return n.splice(r,1),n}return t},Hp=(t,e)=>t.filter(r=>r!==e),Wp=(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},Gp=(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},Kp=(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},Yp=(t,e)=>t.filter(r=>!e.includes(r)),Xp=(t,e)=>{let r=new Set(e);return t.filter(n=>!r.has(n))},Qp=(t,e)=>{if(!t)return 0;let r=0;for(let n=0;n<e.length;n++)t.includes(e[n])&&r++;return r},En=t=>S(t)?[...new Set(t)]:t,Pr=(t,e)=>{for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!1,configurable:!0,writable:!0})}});function td(t,e,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!t.includes(o))return t;let s=Zp[n],i=e||this.state||{};return t.replace(s,(a,c,f)=>{if(c){let l=(c.match(/\.\.\//g)||[]).length,u=i;for(let h=0;h<l;h++){if(!u||!u.parent)return"";u=u.parent}let p=f.trim();if(p==="parent")return String(u.value??"");let d=oc(u,p);return String(d??"")}else{let l=oc(i,f.trim());return String(l??"")}})}var qo,Jp,Zp,oc,ae,ed,rd,nd,od,sd,id,ad,cd,Nr=W(()=>{qo=(t,e)=>{for(let r of e)if(t.includes(r))return!0;return!1},Jp=(t,e)=>{let r=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(r,"")},Zp={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*}}}/g},oc=(t,e)=>e.split(".").reduce((r,n)=>r?.[n],t);ae=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,ed=(t,e)=>{let r=t.split(`
2
+ `),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,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}},rd=/\\([0-7]{1,3})/g,nd=t=>t.replace(rd,(e,r)=>String.fromCharCode(parseInt(r,8))),od=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),sd=t=>t.replace(/\/\/\/\/\/n/g,`
3
+ `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),id=/[^a-zA-Z0-9\s]/g,ad=t=>t.replace(id,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),cd=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var Ve,Ho,ld,Ot,ze,On,Wo,An,qe=W(()=>{Ve=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"]),Ho=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),ld=["ref","parent","__element","__depends","__ref","__children","root"],Ot=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"]),ze=new Set(["update","__element"]),On=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"]),Wo=new Set(["node","context","extends","__element","__ref",...On,...Ot,...ze]),An=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var sc,ke,O,fd,X,U,ud,z,Go,pd,Ko,dd,hd,Yo,ce,md,gd,ic,yd,bd,le,Dr,at,ac,xd,Xo,Qo,cc,Jo,Zo,ts,es,rs,Sd,_d,ie=W(()=>{Tr();xt();je();Nr();Rr();qe();sc=process.env.NODE_ENV,ke=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},fd=(t,e,r)=>{for(let n in e)t[n]=O(e[n],r)},X=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(ke(o)||(n?r.has(o):r.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},U=(t,e,r=Wo)=>{let n=r instanceof Set;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||ke(o)||(n?r.has(o):r.includes(o)))continue;let s=t[o],i=e[o];P(s)&&P(i)?U(s,i,r):s===void 0&&(t[o]=i)}return t},ud=(t,e=[])=>{let r=e instanceof Set,n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(ke(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||$||globalThis;if(!P(t)||Lt(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)||ke(p)||p==="__proto__"||(u?u.has(p):r.includes(p)))continue;let d=t[p];if(!(n&&d===void 0)&&!(o&&d===null)){if(Lt(d)){l[p]=d;continue}if(a&&p==="extends"&&S(d)){l[p]=Vo(d,r);continue}if(b(d)&&e.window){l[p]=c.eval("("+d.toString()+")");continue}P(d)?l[p]=z(d,{...e,visited:i}):l[p]=d}}return l},Go=(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]={},Go(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]={},Go(i,o[s])):b(i)?o[s]=i.toString():o[s]=i}}else e[r]=n}return e},pd=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),Ko=(t={},e=0)=>{if(t===null||typeof t!="object")return String(t);let r=!1;for(let s in t){r=!0;break}if(!r)return"{}";let n=" ".repeat(e),o=`{
4
+ `;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=!1;for(let f=0;f<s.length;f++)if(pd.has(s[f])){a=!0;break}let c=a?`'${s}'`:s;if(o+=`${n} ${c}: `,S(i)){o+=`[
5
+ `;for(let f of i)P(f)&&f!==null?o+=`${n} ${Ko(f,e+2)},
6
6
  `:y(f)?o+=`${n} '${f}',
7
7
  `:o+=`${n} ${f},
8
- `;o+=`${n} ]`}else N(i)?o+=Ho(i,e+1):y(i)?o+=jo(i,[`
8
+ `;o+=`${n} ]`}else P(i)?o+=Ko(i,e+1):y(i)?o+=qo(i,[`
9
9
  `,"'"])?`\`${i}\``:`'${i}'`:o+=i;o+=`,
10
- `}return o+=`${n}}`,o},ud=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],pd=/^["[{]/,qo=t=>{if(!t)return!1;let e=t.trim().replace(/\n\s*/g," ").trim();if(e===""||e==="{}"||e==="[]"||!ud.some(s=>s.test(e)))return!1;let n=e.charCodeAt(0),o=e.includes("=>");return!(n===123&&!o||n===91||pd.test(e)&&!o)},ce=(t,e={})=>{for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=t[r];if(y(n))if(qo(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(qo(i))try{o.push(F.eval(`(${i})`))}catch(a){a&&o.push(i)}else o.push(i);else g(i)?o.push(ce(i)):o.push(i)}}else g(n)?e[r]=ce(n,e[r]):e[r]=n}return e},dd=(t,e={verbose:!0})=>{try{return t?F.eval("("+t+")"):{}}catch(r){e.verbose&&console.warn(r)}},hd=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),ic=t=>{for(let e in t)return!1;return!0},md=t=>g(t)&&ic(t),gd=()=>Object.create(null),le=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&ke(s)||e[s]!==void 0&&(t[s]=e[s]);return t},Dr=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)ke(o)||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},at=(t,e,r={},n=new WeakMap)=>{if(!N(t)||!N(e)||$t(t)||$t(e))return e;if(n.has(t))return n.get(t);n.set(t,t);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&ke(a))continue;let c=t[a],f=e[a];$t(f)?t[a]=f:N(c)&&N(f)?t[a]=at(c,f,r,n):f!==void 0&&(t[a]=f)}return t},ac=(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)||!ac(t[i],e[i],r))return!1}return!0},yd=new Set(["node","__ref"]),Wo=(t,e,r=yd)=>{if(t===e)return!0;if(!N(t)||!N(e)||$t(t)||$t(e))return t===e;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function s(i,a){if(o.has(a))return!0;o.add(a);for(let c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||n.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let f=a[c],l=i[c];if($t(f)||$t(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)},Ko=(t,e)=>{if(e==null)return t;if(Et(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},cc=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]=cc(t[r]));return e},Yo=(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},Qo=(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]},Xo=(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},Jo=(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},Zo=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(sc==="test"||sc==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},bd=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)},xd=(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 ts,es,rs,On=G(()=>{ie();ts=(function(){let t=0;function e(){return t++,t}return e})(),es=ts,rs=(t,e,r)=>(A(r,t)||r||t.key||ts()).toString()});var Yt,Sd,He,lc,_d,wd,vd,Qt,kd,Fr,ns=G(()=>{Yt=process.env.NODE_ENV,Sd=Yt,He=(t=Yt)=>t==="production",lc=(t=Yt)=>t==="testing"||t==="test",_d=lc,wd=(t=Yt)=>t==="staging",vd=(t=Yt)=>t==="local",Qt=(t=Yt)=>t==="development"||t==="dev"||t==="local",kd=(t,e=Yt)=>e[t],Fr=(t=Yt)=>!He(t)});function Cd(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 Rd(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 Ed,Od,Ad,Td,fc=G(()=>{Ed=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},Od=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}}},Ad=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Td=t=>Ad.test(t)});var $r,uc=G(()=>{xt();$r=(t,e)=>{let{__ref:r}=t;b(t.if)&&!t.if(t,t.state,t.context)?delete r.__if:r.__if=!0}});var Id,Pd,pc=G(()=>{Id=(t,...e)=>{t&&e.map(r=>console.log(r))},Pd=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function Ld(t){if(!window.localStorage)return;let e=window.localStorage.getItem(t);if(e!==null)try{return JSON.parse(e)}catch{return}}function Md(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 Nd,Dd,Fd,$d,dc=G(()=>{xt();Tr();Nd=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Dd=(t,e,r=365)=>{if(Y($)||Y($.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;$.cookie=`${t}=${e};${o};path=/`},Fd=t=>{if(Y($)||Y($.cookie))return;let e=`${t}=`,n=decodeURIComponent($.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""},$d=t=>{Y($)||Y($.cookie)||($.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var An,qe,Ce,os=G(()=>{An={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"])},qe=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"]),Ce=t=>An.body.has(t)});var ss,hc,Tn,cs,At,ls,mc,fs,Bd,us,gc,yc,ps,bc,Rn,Ud,fe,xc,is,ds,jd,as,Vd,zd,Sc,_c,wc,vc,kc,Cc,hs,In=G(()=>{je();ms();ie();xt();ss=process.env.NODE_ENV,hc=t=>t.sourcemap!==!1&&ss!=="production",Tn=t=>{if(t.includes("+"))return t.split("+").filter(Tt);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!Tt(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},cs=(t,e,r)=>{let n=[],o=Tn(r);o&&(n=[...o]);let s=t.extends;return s&&(n=S(s)?[...n,...s]:[...n,s]),n},At=(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},ls=(t,e)=>{if(!t)return e;let{extends:r}=e,n=S(r)?r:[r],o=S(t)?t:[t];return{...e,extends:vn(o,n)}},mc=()=>Math.random().toString(36).substring(2),fs={},Bd={},us=t=>fs[t.__hash],gc=(t,e)=>{let r=mc();return y(t)||(t.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(fs[r]=e),e},yc=(t,e)=>t.__hash?e.concat(us(t)):gc(t,e),ps=(t,e,r,n=new Set,o,s)=>{for(let i of t)S(i)?ps(i,e,r,n,o,s):Rn(i,e,r,n,o,void 0,s);return e},bc=(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&&Rn(a,e,r,n,o,s,i),e},Rn=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(S(t))return ps(t,e,r,n,o,i);let a=s;return y(t)?(a=t,t=ds(t,r)):i&&g(t)&&i.has(t)&&(a=i.get(t)),n.add(t),t?.extends||t?.extend?bc(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a)),e},Ud=new Set(["parent","node","__ref","__proto__","extend","childExtend","childExtendRecursive"]),fe=(t,e,r,n,o)=>{e=j(e);for(let s in e){if(Ud.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]||{},xc(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];Tt(s)?t[s]=fe(i,a,c,n,f):fe(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=fe({},i);t[s]=fe(c,a)}}}}return t},xc=(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]||{},xc(t[n],o,r)):t[n]=r}},is=(t,e,r)=>t.reduce((n,o,s)=>{let i=j(o),a=r?r[s]:void 0;return fe(n,i,e,a)},{}),ds=(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&&(ss==="test"||ss==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},jd=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),as=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return us(t)||[];let s=Rn(t,[],e,new Set,r,void 0,n);return r?s:yc(t,s)},Vd=(t,e)=>{if(!t)return e;let r=S(t)?t:[t];return vn(r,e)},zd=t=>{let e=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(Tt(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},Sc=(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]?At([c,...a],t):At(t.extends,t)}else At(t.extends,t)}else if(typeof t.extends=="string"&&s&&o?.components){let i=`${t.extends}.${s}`;o.components[i]?At(i,t):At(t.extends,t)}else At(t.extends,t);return _c(t,e,r),wc(t,e,r),vc(t,e,r),t.component&&At(A(t.component,t),t),o.defaultExtends&&At(o.defaultExtends,t),kn(n.__extends)},_c=(t,e,r={})=>{let{props:n,__ref:o}=t;return r.ignoreChildExtends||n?.ignoreChildExtends||e.props?.childProps?.extends&&At(e.props?.childProps.extends,t),o.__extends},wc=(t,e,r={})=>{let{props:n,__ref:o}=t,s=r.ignoreChildExtends||n?.ignoreChildExtends,i=e.childExtends||e.childExtend;return!s&&i&&At(i,t),o.__extends},vc=(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&&At(s,t),o.__extends},kc=(t,e,r={})=>{let{props:n,__ref:o}=t,s=t.context||e.context,i=t.variant||n?.variant,a=hc(r),c=a?[...o.__extends]:null,f=kn(o.__extends.map((l,u)=>ds(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=as(f,s,u,l);o.__extendsStack=p,o.__extendsNames=u}else{let l=as(f,s);o.__extendsStack=l}return o.__extendsStack},Cc=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(hc(r)){let s={},i=n.__extendsNames||[],a=is(o,s,i),c={};fe(t,a,c,void 0,s),n.__sourcemap=c}else{let s=is(o);fe(t,s)}return t},hs=(t,e,r={})=>(Sc(t,e,r),kc(t,e,r),Cc(t,e,r),t)});function Gd(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function Hd(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function gs(t,e,r){let{context:n}=e||{},[o]=Tn(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var Tt,ms=G(()=>{In();xt();Tt=t=>{if(!y(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function Ec(t,e){let{props:r,on:n}=e,o=ae(t.split("on")[1]),s=n[o],i=r[t];b(s)?n[o]=(...a)=>{s(...a)!==!1&&i(...a)}:n[o]=i}var Oc=G(()=>{Nr();xt()});function Rc(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)){let d=ae(n.slice(2));t.on&&(t.on[d]=o),delete t[n];continue}if(n==="childProps"){t.props[n]=o,delete t[n],r.push(n);continue}let i=this.define?.[n],a=this.context?.define?.[n],c=g(i)||b(i),f=g(a)||b(a);if(c||f)continue;let l=n.charAt(0);if(Tc.has(l)){t.props[n]=o,delete t[n],r.push(n);continue}let u=xs.test(n)||Ac.test(n)||Wd(o),p=Ve.has(n);!u&&!p&&(t.props[n]=o,delete t[n],r.push(n))}return t}function Lr(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);if(s&&i){Ec(n,t),delete t.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(Tc.has(a))continue;let c=this.define?.[n],f=this.context?.define?.[n],l=g(c)||b(c),u=g(f)||b(f),p=xs.test(n)||Ac.test(n),d=Ve.has(n);(p||d||l||u)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function Pn(t=this){let e=[];return Rc.call(this,t,{cachedKeys:e}),Lr.call(this,t,{cachedKeys:e}),t}function _s(t={}){return t.on||(t.on={}),t.props||(t.props={}),Pn.call(this,t)}function Ic(t,e){this.__element.update({props:t},e)}function vs(t){let e={update:Ic.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var xs,Ac,Tc,qd,Wd,Ss,ys,Kd,ws,ks,Cs,Pc,bs,Nn,Es,Os=G(()=>{Ge();Oc();ie();xt();Nr();xs=/^[A-Z]/,Ac=/^\d+$/,Tc=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),qd=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),Wd=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(qd.has(e)||xs.test(e))return!0;return!1},Ss=(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),{})};ys=t=>Et(t)("string","number")?{inheritedString:t}:t,Kd=(t,e)=>!t||!e.length?!1:e.includes(t),ws=(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=ys(i);n.unshift(c)}if(s){let c=ys(s);n.unshift(c)}return n};ks=t=>{let e=new Set;return t.filter(r=>!r||ze.has(r)||e.has(r)?!1:(e.add(r),!0))},Cs=(t,e,r)=>(e.props=t.reduce((n,o)=>{if(ze.has(o))return n;for(;b(o);)o=A(o,e);return M(n,j(o,{exclude:ze}))},{}),vs(e),e.props),Pc=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...ws(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=ks(o),n.__propsStack},bs=(t,e)=>{let{__ref:r}=t,n=Pc(t,e);n.length?Cs(n,t):(r.__propsStack=[],t.props={})},Nn=function(t,e,r){let{__ref:n}=t;if(n.__if)bs(t,e);else try{bs(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),t.props={},n.__propsStack=[]}return vs(t),t},Es=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=ws(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=ks(s),n.__propsStack.length&&Cs(n.__propsStack,e),e}});var Nc,Dc,Fc,$c,Lc,As,Mc,Bc,Uc,Ts,jc=G(()=>{In();On();Rr();Os();os();xt();Nc=process.env.NODE_ENV,Dc=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.props.childProps&&e.props.childProps.tag,s=An.body.has(r)&&r;return{text:t,tag:n||o||s||"string"}},Fc=(t,e,r)=>{if(t===void 0)return(Nc==="test"||Nc==="development")&&console.warn(r,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:Et(t)("string","number")?Dc(t,e,r):b(t)?{props:t}:t},$c=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},Lc=(t,e,r,n,o)=>{if(!e)return o;if(ve(e)){let s={key:":root",node:e};return o[`${r}_parent`]=s,s}return e},As=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===":root";r?.root||(r.root=o?t:n?.root)},Mc=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},Bc=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),Uc=(t,e,r)=>{let n=$c(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=Mc(t,e,r),n},Ts=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:Fc(t,e,r);if(!i)return;let a=Lc(i,e,r,n,o),c=rs(i,a,r);Uc(i,a,c);let f=Ss(i,a,c),l=Bc(i,a,c,n,o),u=i.on||{};return{...i,key:c,props:f,parent:a,context:l,on:u}}});var Rs,We,Ke,Ye,Qe,Is,Xe,Dn,Ps,Ns,Ds,Vc=G(()=>{je();Ge();ie();xt();Rs=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return Et(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},We=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},Ke=(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},Ye=(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]},Qe=(t,e,r={})=>{let o=t.__ref.__state;if(!Xe(t))return;let s=We(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=Ke(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return Ye(o,i,r)},Is=(t,e)=>{let r=t.__ref,n=Qe(t,e);if(n===void 0)return t.state;if(Et(n)("object","array"))return j(n);if(Et(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},Xe=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&Et(r)("number","string","boolean"))},Dn=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},Ps=(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},Ns=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=j(n,Ot),s={[t.key]:o},i=g(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?Pr(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},Ds=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){M(t,e,Ot);return}(o?Dr:at)(t,e,Ot)}});var Fn,zc=G(()=>{Fn=(t,e)=>{let{__ref:r}=t;t.scope||(t.scope=e.scope||r.root?.scope||{})}});var Gc,Mr,z,Fs,_t,$s=G(()=>{xt();Gc=(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]},Mr=(t,e,r,n,o)=>{if(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}},z=(t,e,r)=>{if(!e)throw new Error("Element is required");let n=Gc(t,e);if(n){let{state:o,context:s}=e;return Mr(n,e,o,s,r)}},Fs=(t,e,r,n,o,s)=>{if(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}},_t=(t,e,r,n)=>{let o=Gc(t,r);if(o){let{state:s,context:i}=r;return Fs(o,e,r,s,i,n)}}});var Yd,ut,Ls=G(()=>{Yd={},ut={}});var qc={};Ft(qc,{setup:()=>Qd,supabaseAdapter:()=>Hc});var Qd,Ms,Xd,Hc,Wc=G(()=>{"use strict";Qd=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),Hc(n(s,e,o))},Ms=(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},Xd=(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},Hc=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=Ms(s,n),s=Xd(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=Ms(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=Ms(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 Yc={};Ft(Yc,{restAdapter:()=>Kc,setup:()=>Zd});var Jd,ue,Zd,Kc,Qc=G(()=>{"use strict";Jd=(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()},ue=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}},Zd=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return Kc(t,e,r,n)},Kc=(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 ue(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 ue(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 ue(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:v,baseUrl:_})=>{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(T=>`${T.by}:${T.asc===!1?"desc":"asc"}`).join(","):m.by&&(C.order=`${m.by}:${m.asc===!1?"desc":"asc"}`)),ue(Jd(_||t,l||"",C),a({headers:s(v)}))},rpc:({from:l,params:u,headers:p,baseUrl:d})=>ue(c(`rpc/${l}`,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),insert:({from:l,data:u,headers:p,baseUrl:d})=>ue(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,v=x?`${l}/${x}`:l;return ue(c(v,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 ue(c(m,d),a({method:"DELETE",headers:s(p)}))}}}});var Jc={};Ft(Jc,{localAdapter:()=>Xc,setup:()=>eh});var Bs,th,eh,Xc,Zc=G(()=>{"use strict";Bs=(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},th=(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}},eh=async({data:t,...e})=>Xc(t,e),Xc=(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=>Bs(m,u));return th(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(Bs(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--)Bs(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 Gr={};Ft(Gr,{createAdapter:()=>oh,default:()=>hh,executeFetch:()=>Bn,initAdapterAuth:()=>Mn,parseDuration:()=>Br,queryClient:()=>dh,registerAdapter:()=>nh,resolveDb:()=>ol});var rh,nl,nh,oh,ol,Br,St,sl,$n,sh,zr,Ur,jr,Us,zs,Ln,ih,tl,js,il,al,Je,el,ah,rl,ch,cl,Mn,Gs,Rt,Vr,Ee,Vt,pe,lh,fh,uh,Vs,ph,Bn,dh,hh,Ze=G(()=>{"use strict";w();rh=["select","rpc","insert","update","delete","subscribe"],nl={supabase:()=>Promise.resolve().then(()=>(Wc(),qc)),rest:()=>Promise.resolve().then(()=>(Qc(),Yc)),local:()=>Promise.resolve().then(()=>(Zc(),Jc))},nh=(t,e)=>{nl[t]=e},oh=t=>{let e={};for(let r of rh)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},ol=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=nl[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},Br=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,sl=new Map,$n=new Map,sh=t=>{if(t.cache?.key)return t.cache.key;let e=ch(t.params);return`${t.from}:${t.method}:${JSON.stringify(e||"")}`},zr=t=>St.get(t)||null,Ur=(t,e,r)=>{let n=St.get(t),o={data:e,error:r,time:Date.now(),stale:!1};St.set(t,o);let s=sl.get(t);if(s)for(let i of s)b(i)&&i(o);return o},jr=t=>{if(t){let e=St.get(t);e&&(e.stale=!0);return}for(let[,e]of St)e.stale=!0},Us=t=>{if(t){St.delete(t);return}St.clear()},zs=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:Br(t),gcTime:3e5}:{staleTime:Br(t.stale||t.staleTime)||6e4,gcTime:Br(t.gc||t.gcTime||t.expire)||3e5,key:t.key},Ln=null,ih=()=>{Ln||(Ln=setInterval(()=>{let t=Date.now();for(let[e,r]of St){let n=sl.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&St.delete(e)}},3e4),Ln.unref&&Ln.unref())};ih();tl=3,js=t=>Math.min(1e3*2**t,3e4),il=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:tl,delay:js}:typeof e=="number"?{count:e,delay:js}:{count:e.count??tl,delay:b(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:js}},al=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}},Je={focus:new Set,online:new Set},el=!1,ah=()=>{if(el||typeof window>"u")return;el=!0;let t=()=>{for(let r of Je.focus)r()},e=()=>{for(let r of Je.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},rl=(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},ch=t=>(!t||b(t),t),cl=(t,e)=>{if(!t)return;if(b(t))return t(e,e.state);let r={};for(let n in t){let o=t[n];r[n]=b(o)?o(e,e.state):o}return r},Mn=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)})},Gs=async(t,e)=>{if(b(t.select))return t.auth!==!1&&await Mn(t,e),t;if(t.__resolved)return t.auth!==!1&&await Mn(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=ol(t);let r=await t.__resolving;return t.__resolved=r,e.db=r,delete t.__resolving,t.auth!==!1&&await Mn(r,e),r},Rt=(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)},Vr=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},Ee=(t,e,r,n={})=>{let o=r?{[r]:e}:e;t.state?.update&&t.state.update(o,{preventFetch:!0,...n})},Vt=(t,e)=>{let r=t.__ref;r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error},pe=async(t,e,r,n={})=>{let o=r?.db;if(!o||t.enabled===!1||b(t.enabled)&&!t.enabled(e,e.state))return;let s=await Gs(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:v,offset:_,order:C,headers:T,baseUrl:I,page:O,cursor:E,getNextPageParam:W,getPreviousPageParam:R,infinite:D,placeholderData:q,initialData:et,select:tt,keepPreviousData:bt}=t,Dt;if(f&&b(e.getQuery)){let J=e.getQuery(s.name||"paths");J&&(Dt=J.select||J.length&&J.join(",")||void 0)}let se=cl(l,e),Or=zs(u),No=il(t),it=Or?u?.key||`${a}:${c}:${JSON.stringify(se||"")}${D?":infinite":""}${O?":p"+JSON.stringify(O):""}`:null;if(!i.__fetchInitialized&&it&&(i.__fetchInitialized=!0,et!==void 0)){let J=b(et)?et():et;Ur(it,J,null)}if((c==="select"||c==="rpc")&&it&&Or){let J=zr(it);if(J&&!J.error){let H=Date.now()-J.time,U=J.stale||H>(Or.staleTime||0),K=J.data;if(tt&&(K=tt(K,e,e.state)),p&&(K=p(K,e,e.state)),Ee(e,K,x),!U){Vt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(q!==void 0){let H=b(q)?q(e,e.state):q;H!==void 0&&Ee(e,H,x)}}if(it&&$n.has(it)&&!n.force){let J=$n.get(it);try{let H=await J;if(H?.data!==void 0){let U=H.data;tt&&(U=tt(U,e,e.state)),p&&(U=p(U,e,e.state)),Ee(e,U,x),Rt(e,"onFetchComplete",U)}}catch{}return}let Do=!zr(it)?.data;Vt(e,{isFetching:!0,isLoading:Do,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Rt(e,"onFetchStart");let ec=al(async()=>{if(h!==!1&&s.getSession){let U=await s.getSession();if(h===!0&&!U){let K={message:"Not authenticated"};return Vt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:K,status:"error",fetchStatus:"idle"}),Rt(e,"onFetchError",K),{data:null,error:K}}}let J=s[c];if(!b(J))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let H={from:a,select:Dt,params:se,single:d,limit:v,offset:_,order:C,headers:T,baseUrl:I};if(O!==void 0){if(g(O))O.offset!==void 0&&(H.offset=O.offset),O.limit!==void 0&&(H.limit=O.limit),O.cursor!==void 0&&(H.params={...H.params,cursor:O.cursor});else if(typeof O=="number"){let U=t.pageSize||v||20;H.offset=(O-1)*U,H.limit=U}}if(E!==void 0&&(H.params={...H.params,cursor:E}),c==="insert"||c==="update"||c==="upsert"){let U;if(m===!0||t.on==="submit")U=Vr(e);else if(S(m)){let K=Vr(e);U={};for(let Ar of m)U[Ar]=K[Ar]}else e.state?.parse?U=e.state.parse():g(e.state)&&(U={...e.state});p&&(U=p(U,e,e.state)),H.data=U}if(c==="rpc"){let U=se;if(t.on==="submit"){let K=Vr(e);U=t.transformParams?t.transformParams(K,e,e.state):K}H.params=U}if(c==="subscribe"){let U=s.subscribe({from:a,params:se,on:t.subscribeOn},(K,Ar,bS)=>{Ee(e,K,x),Rt(e,"onFetchComplete",K)});return i.__unsubscribe=U,{data:null,error:null,subscribed:!0}}return J(H)},No);it&&$n.set(it,ec);try{let J=await ec;if(J?.subscribed)return;let{data:H,error:U}=J||{};if(U){it&&Ur(it,null,U),Vt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:U,status:"error",fetchStatus:"idle"}),Rt(e,"onFetchError",U);return}if(H!==void 0){if((c==="select"||c==="rpc")&&it){let Ar=Ur(it,H,null);Ar.gcTime=Or?.gcTime||3e5}let K=H;D&&S(H)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(H):i.__pages.push(H),K=i.__pages.flat(),W&&(i.__nextPageParam=W(H,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),R&&(i.__prevPageParam=R(H,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),tt&&(K=tt(K,e,e.state)),p&&(K=p(K,e,e.state)),(!bt||K!==void 0)&&Ee(e,K,x),Vt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Rt(e,"onFetchComplete",K)}}catch(J){Vt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:J,status:"error",fetchStatus:"idle"}),Rt(e,"onFetchError",J)}finally{it&&$n.delete(it)}},lh=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||pe;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=[]),ah();let o=t.refetchInterval;if(o){let s=typeof o=="number"?o:Br(o);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&pe(t,e,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=sh(t),a=zr(i),c=zs(t.cache);(!a||a.stale||Date.now()-a.time>(c?.staleTime||0))&&pe(t,e,r,{force:!0})};Je.focus.add(s),n.__fetchCleanups.push(()=>Je.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>pe(t,e,r,{force:!0});Je.online.add(s),n.__fetchCleanups.push(()=>Je.online.delete(s))}},uh=(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&&Ee(t,i,o),s},Vs=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Ee(t,n,e.as),delete r.__optimisticSnapshot)},ph=async(t,e,r)=>{let n=r?.db;if(!n)return;let o=await Gs(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:v,onSuccess:_,onError:C,onSettled:T}=t,I;if(c===!0||u==="submit")I=Vr(e);else if(S(c)){let E=Vr(e);I={};for(let W of c)I[W]=E[W]}else e.state?.parse?I=e.state.parse():g(e.state)&&(I={...e.state});f&&(I=f(I,e,e.state)),b(v)&&v(I,e,e.state);let O=x?uh(e,t,I):null;s.__fetching=!0,Vt(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Rt(e,"onFetchStart");try{if(p!==!1&&o.getSession){let tt=await o.getSession();if(p===!0&&!tt){O!==void 0&&Vs(e,t),Rt(e,"onFetchError",{message:"Not authenticated"});return}}let E=o[i];if(!b(E))return;let W={from:a,data:I,headers:d,baseUrl:h};t.params&&(W.params=cl(t.params,e));let R=il(t),D=await al(()=>E(W),R),{data:q,error:et}=D||{};if(et){O!==void 0&&Vs(e,t),Vt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:et,status:"error",fetchStatus:"idle"}),Rt(e,"onFetchError",et),b(C)&&C(et,I,e),b(T)&&T(null,et,I,e);return}if(delete s.__optimisticSnapshot,q!==void 0){let tt=l?{[l]:q}:q;e.state?.update&&e.state.update(tt,{preventFetch:!0})}if(Vt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Rt(e,"onFetchComplete",q),b(_)&&_(q,I,e),b(T)&&T(q,null,I,e),m){let tt=S(m)?m:[m];for(let bt of tt)if(bt===!0||bt==="*")for(let[Dt]of St)Dt.startsWith(a+":")&&jr(Dt);else jr(bt)}}catch(E){O!==void 0&&Vs(e,t),Vt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:E,status:"error",fetchStatus:"idle"}),Rt(e,"onFetchError",E),b(C)&&C(E,I,e),b(T)&&T(null,E,I,e)}finally{s.__fetching=!1}},Bn=(t,e,r,n)=>{if(!t||!n?.db)return;let s=A(t,e);if(!s)return;let i=S(s)?s.map(c=>rl(A(c,e),e)).filter(Boolean):[rl(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?ph:pe;c.on==="create"?l(c,e,n):Promise.resolve().then(()=>{lh({...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)pe(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};pe(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};pe(l,e,n,{direction:"previous",force:!0})}},dh={invalidateQueries:t=>{if(!t){jr();return}if(y(t))for(let[e]of St)(e.startsWith(t)||e.includes(t))&&jr(e);else if(S(t)){let e=t.join(":");for(let[r]of St)r.includes(e)&&jr(r)}},removeQueries:t=>{if(!t){Us();return}if(y(t))for(let[e]of St)(e.startsWith(t)||e.includes(t))&&Us(e)},getQueryData:t=>zr(t)?.data??void 0,setQueryData:(t,e)=>{let r=zr(t),n=b(e)?e(r?.data):e;Ur(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.db;if(!r)return;let n=await Gs(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=Ur(o,i.data,null);a.gcTime=zs(t.cache)?.gcTime||3e5}return i},getCache:()=>St,clear:()=>Us()},hh=Bn});function qs(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 Ws(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 Ks(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 Ys(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 Un(t={}){let e=this;if(e.node?.style){for(let r in t){let n=t[r],o=e[r];g(n)&&o?Un.call(o,n):e.node.style[r]=n}return e}}function Qs(t){let e=this;if(z("beforeRemove",e,t)===!1)return e;b(e.node.remove)?e.node.remove():He()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=Uo(e.parent.__ref.__children,e.key)),z("remove",e,t)}function mh(t){return this[t]}function Xs(t,e){let r=this;if(!(!t||!r.props))return r.update({props:t},e),r}function Js(t){return t?this.__ref&&this.__ref[t]:this.__ref}function gh(){return this.getRef("__children").map(e=>this[e])}function Zs(){return this.getRef().path}function ti(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 ei(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function ri(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function ni(t){let e=this.getRoot()?.context;return t?e[t]:e}function oi(t){let e=this.context;return t?e[t]:e}function jn(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||Ve.has(r)&&!Vo.has(r)||e.push(r);return e}function Vn(t=[]){let e=this,r={},n=jn.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 Ct(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function Hr(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let n=Vn.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)?Hr.call(a,t,e):a):N(i)&&(n[s]=Hr.call(i,t,e))}return n}function zn(...t){if(de!=="test"&&de!=="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 si(...t){(de==="test"||de==="development")&&console.log(...t)}function ii(...t){(de==="test"||de==="development")&&console.warn(...t)}function ai(...t){if(de==="test"||de==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&zn.call(this),new Error(...t)}}function ci(){let t=this,{key:e,parent:r}=t,{__children:n}=r.__ref,o=n.indexOf(e),s=n[o+1];return r[s]}function li(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 fi(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,j(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 ui(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 pi(){let t=this,e=t.context?.db;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ze(),Gr));await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ze(),Gr));await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=Promise.resolve().then(()=>(Ze(),Gr)).then(({resolveDb:o})=>o(e));e.__resolving=r;let n=await r;if(e.__resolved=n,t.context.db=n,delete e.__resolving,n.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ze(),Gr));await o(n,t.context)}return n}function di(t){let e=this,r=t||ut.useStateQuery||e.context?.useStateQuery;if(!r)return null;let n={};if(Hs(e,n),r===!0)return n;let o=Ch[r];return o?o(n):n}function zt(t,e){return!!(Cn.has(t)||e?.context?.methods?.[t])}var de,yh,Hs,bh,ll,xh,Sh,_h,wh,vh,kh,Ch,hi=G(()=>{$s();Ge();xt();ie();ns();je();Ls();de=process.env.NODE_ENV;yh=(t,e,r,n)=>Object.defineProperty(t,e,{get:r,set:n});Hs=(t,e)=>{let r=t.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&bh(e,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&Hs(c,e)}let s=r.contentElementKey||"content",i=t[s];i&&i.__ref&&Hs(i,e)},bh=(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])}},ll=(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},dd=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],hd=/^["[{]/,Yo=t=>{if(!t)return!1;let e=t.trim().replace(/\n\s*/g," ").trim();if(e===""||e==="{}"||e==="[]"||!dd.some(s=>s.test(e)))return!1;let n=e.charCodeAt(0),o=e.includes("=>");return!(n===123&&!o||n===91||hd.test(e)&&!o)},ce=(t,e={})=>{for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=t[r];if(y(n))if(Yo(n))try{e[r]=$.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(Yo(i))try{o.push($.eval(`(${i})`))}catch(a){a&&o.push(i)}else o.push(i);else g(i)?o.push(ce(i)):o.push(i)}}else g(n)?e[r]=ce(n,e[r]):e[r]=n}return e},md=(t,e={verbose:!0})=>{try{return t?$.eval("("+t+")"):{}}catch(r){e.verbose&&console.warn(r)}},gd=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),ic=t=>{for(let e in t)return!1;return!0},yd=t=>g(t)&&ic(t),bd=()=>Object.create(null),le=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&ke(s)||e[s]!==void 0&&(t[s]=e[s]);return t},Dr=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)ke(o)||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},at=(t,e,r={},n=new WeakMap)=>{if(!P(t)||!P(e)||Lt(t)||Lt(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&&ke(a))continue;let c=t[a],f=e[a];Lt(f)?t[a]=f:P(c)&&P(f)?t[a]=at(c,f,r,n):f!==void 0&&(t[a]=f)}return t},ac=(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)||!ac(t[i],e[i],r))return!1}return!0},xd=new Set(["node","__ref"]),Xo=(t,e,r=xd)=>{if(t===e)return!0;if(!P(t)||!P(e)||Lt(t)||Lt(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(Lt(f)||Lt(l)){if(f!==l)return!1}else if(P(f)&&P(l)){if(!s(l,f))return!1}else if(f!==l)return!1}return!0}return s(t,e)},Qo=(t,e)=>{if(e==null)return t;if(Et(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},cc=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]=cc(t[r]));return e},Jo=(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},Zo=(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]},ts=(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},es=(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},rs=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(sc==="test"||sc==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},Sd=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)},_d=(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 ns,os,ss,Tn=W(()=>{ie();ns=(function(){let t=0;function e(){return t++,t}return e})(),os=ns,ss=(t,e,r)=>(O(r,t)||r||t.key||ns()).toString()});var Yt,wd,He,lc,vd,kd,Cd,Xt,Ed,Fr,is=W(()=>{Yt=process.env.NODE_ENV,wd=Yt,He=(t=Yt)=>t==="production",lc=(t=Yt)=>t==="testing"||t==="test",vd=lc,kd=(t=Yt)=>t==="staging",Cd=(t=Yt)=>t==="local",Xt=(t=Yt)=>t==="development"||t==="dev"||t==="local",Ed=(t,e=Yt)=>e[t],Fr=(t=Yt)=>!He(t)});function Od(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 Pd(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 Ad,Td,Rd,Id,fc=W(()=>{Ad=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},Td=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}}},Rd=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Id=t=>Rd.test(t)});var $r,uc=W(()=>{xt();$r=(t,e)=>{let{__ref:r}=t;b(t.if)&&!t.if(t,t.state,t.context)?delete r.__if:r.__if=!0}});var Nd,Dd,pc=W(()=>{Nd=(t,...e)=>{t&&e.map(r=>console.log(r))},Dd=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function Bd(t){if(!window.localStorage)return;let e=window.localStorage.getItem(t);if(e!==null)try{return JSON.parse(e)}catch{return}}function Ud(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 Fd,$d,Ld,Md,dc=W(()=>{xt();Tr();Fd=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),$d=(t,e,r=365)=>{if(Y(L)||Y(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=/`},Ld=t=>{if(Y(L)||Y(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""},Md=t=>{Y(L)||Y(L.cookie)||(L.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var Rn,We,Ce,as=W(()=>{Rn={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"])},We=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"]),Ce=t=>Rn.body.has(t)});var cs,hc,In,us,At,ps,mc,ds,jd,hs,gc,yc,ms,bc,Pn,Vd,fe,xc,ls,gs,zd,fs,qd,Hd,Sc,_c,wc,vc,kc,Cc,ys,Nn=W(()=>{je();bs();ie();xt();cs=process.env.NODE_ENV,hc=t=>t.sourcemap!==!1&&cs!=="production",In=t=>{if(t.includes("+"))return t.split("+").filter(Tt);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!Tt(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},us=(t,e,r)=>{let n=[],o=In(r);o&&(n=[...o]);let s=t.extends;return s&&(n=S(s)?[...n,...s]:[...n,s]),n},At=(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},ps=(t,e)=>{if(!t)return e;let{extends:r}=e,n=S(r)?r:[r],o=S(t)?t:[t];return{...e,extends:Cn(o,n)}},mc=()=>Math.random().toString(36).substring(2),ds={},jd={},hs=t=>ds[t.__hash],gc=(t,e)=>{let r=mc();return y(t)||(t.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(ds[r]=e),e},yc=(t,e)=>t.__hash?e.concat(hs(t)):gc(t,e),ms=(t,e,r,n=new Set,o,s)=>{for(let i of t)S(i)?ms(i,e,r,n,o,s):Pn(i,e,r,n,o,void 0,s);return e},bc=(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&&Pn(a,e,r,n,o,s,i),e},Pn=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(S(t))return ms(t,e,r,n,o,i);let a=s;return y(t)?(a=t,t=gs(t,r)):i&&g(t)&&i.has(t)&&(a=i.get(t)),n.add(t),t?.extends||t?.extend?bc(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a)),e},Vd=new Set(["parent","node","__ref","__proto__","extend","childExtend","childExtendRecursive"]),fe=(t,e,r,n,o)=>{e=z(e);for(let s in e){if(Vd.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]||{},xc(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];Tt(s)?t[s]=fe(i,a,c,n,f):fe(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=fe({},i);t[s]=fe(c,a)}}}}return t},xc=(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]||{},xc(t[n],o,r)):t[n]=r}},ls=(t,e,r)=>t.reduce((n,o,s)=>{let i=z(o),a=r?r[s]:void 0;return fe(n,i,e,a)},{}),gs=(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&&(cs==="test"||cs==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},zd=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),fs=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return hs(t)||[];let s=Pn(t,[],e,new Set,r,void 0,n);return r?s:yc(t,s)},qd=(t,e)=>{if(!t)return e;let r=S(t)?t:[t];return Cn(r,e)},Hd=t=>{let e=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(Tt(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},Sc=(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]?At([c,...a],t):At(t.extends,t)}else At(t.extends,t)}else if(typeof t.extends=="string"&&s&&o?.components){let i=`${t.extends}.${s}`;o.components[i]?At(i,t):At(t.extends,t)}else At(t.extends,t);return _c(t,e,r),wc(t,e,r),vc(t,e,r),t.component&&At(O(t.component,t),t),o.defaultExtends&&At(o.defaultExtends,t),En(n.__extends)},_c=(t,e,r={})=>{let{props:n,__ref:o}=t;return r.ignoreChildExtends||n?.ignoreChildExtends||e.props?.childProps?.extends&&At(e.props?.childProps.extends,t),o.__extends},wc=(t,e,r={})=>{let{props:n,__ref:o}=t,s=r.ignoreChildExtends||n?.ignoreChildExtends,i=e.childExtends||e.childExtend;return!s&&i&&At(i,t),o.__extends},vc=(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&&At(s,t),o.__extends},kc=(t,e,r={})=>{let{props:n,__ref:o}=t,s=t.context||e.context,i=t.variant||n?.variant,a=hc(r),c=a?[...o.__extends]:null,f=En(o.__extends.map((l,u)=>gs(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=fs(f,s,u,l);o.__extendsStack=p,o.__extendsNames=u}else{let l=fs(f,s);o.__extendsStack=l}return o.__extendsStack},Cc=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(hc(r)){let s={},i=n.__extendsNames||[],a=ls(o,s,i),c={};fe(t,a,c,void 0,s),n.__sourcemap=c}else{let s=ls(o);fe(t,s)}return t},ys=(t,e,r={})=>(Sc(t,e,r),kc(t,e,r),Cc(t,e,r),t)});function Wd(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function Gd(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function xs(t,e,r){let{context:n}=e||{},[o]=In(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var Tt,bs=W(()=>{Nn();xt();Tt=t=>{if(!y(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function Ec(t,e){let{props:r,on:n}=e,o=ae(t.split("on")[1]),s=n[o],i=r[t];b(s)?n[o]=(...a)=>{s(...a)!==!1&&i(...a)}:n[o]=i}var Oc=W(()=>{Nr();xt()});function Rc(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)){let d=ae(n.slice(2));t.on&&(t.on[d]=o),delete t[n];continue}if(n==="childProps"){t.props[n]=o,delete t[n],r.push(n);continue}let i=this.define?.[n],a=this.context?.define?.[n],c=g(i)||b(i),f=g(a)||b(a);if(c||f)continue;let l=n.charAt(0);if(Tc.has(l)){t.props[n]=o,delete t[n],r.push(n);continue}let u=ws.test(n)||Ac.test(n)||Yd(o),p=Ve.has(n);!u&&!p&&(t.props[n]=o,delete t[n],r.push(n))}return t}function Lr(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);if(s&&i){Ec(n,t),delete t.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(Tc.has(a))continue;let c=this.define?.[n],f=this.context?.define?.[n],l=g(c)||b(c),u=g(f)||b(f),p=ws.test(n)||Ac.test(n),d=Ve.has(n);(p||d||l||u)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function Dn(t=this){let e=[];return Rc.call(this,t,{cachedKeys:e}),Lr.call(this,t,{cachedKeys:e}),t}function ks(t={}){return t.on||(t.on={}),t.props||(t.props={}),Dn.call(this,t)}function Ic(t,e){this.__element.update({props:t},e)}function Es(t){let e={update:Ic.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var ws,Ac,Tc,Kd,Yd,vs,Ss,Xd,Cs,Os,As,Pc,_s,Fn,Ts,Rs=W(()=>{qe();Oc();ie();xt();Nr();ws=/^[A-Z]/,Ac=/^\d+$/,Tc=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),Kd=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),Yd=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(Kd.has(e)||ws.test(e))return!0;return!1},vs=(t,e,r)=>{let{props:n,__ref:o}=t;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return P(n)?{...n}:(o.__propsStack.push(n),{})};Ss=t=>Et(t)("string","number")?{inheritedString:t}:t,Xd=(t,e)=>!t||!e.length?!1:e.includes(t),Cs=(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=Ss(i);n.unshift(c)}if(s){let c=Ss(s);n.unshift(c)}return n};Os=t=>{let e=new Set;return t.filter(r=>!r||ze.has(r)||e.has(r)?!1:(e.add(r),!0))},As=(t,e,r)=>(e.props=t.reduce((n,o)=>{if(ze.has(o))return n;for(;b(o);)o=O(o,e);return U(n,z(o,{exclude:ze}))},{}),Es(e),e.props),Pc=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...Cs(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=Os(o),n.__propsStack},_s=(t,e)=>{let{__ref:r}=t,n=Pc(t,e);n.length?As(n,t):(r.__propsStack=[],t.props={})},Fn=function(t,e,r){let{__ref:n}=t;if(n.__if)_s(t,e);else try{_s(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),t.props={},n.__propsStack=[]}return Es(t),t},Ts=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=Cs(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=Os(s),n.__propsStack.length&&As(n.__propsStack,e),e}});var Nc,Dc,Fc,$c,Lc,Is,Mc,Bc,Uc,Ps,jc=W(()=>{Nn();Tn();Rr();Rs();as();xt();Nc=process.env.NODE_ENV,Dc=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.props.childProps&&e.props.childProps.tag,s=Rn.body.has(r)&&r;return{text:t,tag:n||o||s||"string"}},Fc=(t,e,r)=>{if(t===void 0)return(Nc==="test"||Nc==="development")&&console.warn(r,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:Et(t)("string","number")?Dc(t,e,r):b(t)?{props:t}:t},$c=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},Lc=(t,e,r,n,o)=>{if(!e)return o;if(ve(e)){let s={key:":root",node:e};return o[`${r}_parent`]=s,s}return e},Is=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===":root";r?.root||(r.root=o?t:n?.root)},Mc=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},Bc=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),Uc=(t,e,r)=>{let n=$c(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=us(t,e,r),n.path=Mc(t,e,r),n},Ps=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:Fc(t,e,r);if(!i)return;let a=Lc(i,e,r,n,o),c=ss(i,a,r);Uc(i,a,c);let f=vs(i,a,c),l=Bc(i,a,c,n,o),u=i.on||{};return{...i,key:c,props:f,parent:a,context:l,on:u}}});var Ns,Ge,Ke,Ye,Xe,Ds,Qe,$n,Fs,$s,Ls,Vc=W(()=>{je();qe();ie();xt();Ns=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return Et(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},Ge=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},Ke=(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},Ye=(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]},Xe=(t,e,r={})=>{let o=t.__ref.__state;if(!Qe(t))return;let s=Ge(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=Ke(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return Ye(o,i,r)},Ds=(t,e)=>{let r=t.__ref,n=Xe(t,e);if(n===void 0)return t.state;if(Et(n)("object","array"))return z(n);if(Et(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},Qe=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&Et(r)("number","string","boolean"))},$n=function(t){return P(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},Fs=(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},$s=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=z(n,Ot),s={[t.key]:o},i=g(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?Pr(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},Ls=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){U(t,e,Ot);return}(o?Dr:at)(t,e,Ot)}});var Ln,zc=W(()=>{Ln=(t,e)=>{let{__ref:r}=t;t.scope||(t.scope=e.scope||r.root?.scope||{})}});var qc,Mr,H,Ms,_t,Bs=W(()=>{xt();qc=(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]},Mr=(t,e,r,n,o)=>{if(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}},H=(t,e,r)=>{if(!e)throw new Error("Element is required");let n=qc(t,e);if(n){let{state:o,context:s}=e;return Mr(n,e,o,s,r)}},Ms=(t,e,r,n,o,s)=>{if(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}},_t=(t,e,r,n)=>{let o=qc(t,r);if(o){let{state:s,context:i}=r;return Ms(o,e,r,s,i,n)}}});var Qd,ut,Us=W(()=>{Qd={},ut={}});var Wc={};$t(Wc,{setup:()=>Jd,supabaseAdapter:()=>Hc});var Jd,js,Zd,Hc,Gc=W(()=>{"use strict";Jd=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),Hc(n(s,e,o))},js=(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},Zd=(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},Hc=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=js(s,n),s=Zd(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=js(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=js(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 Yc={};$t(Yc,{restAdapter:()=>Kc,setup:()=>eh});var th,ue,eh,Kc,Xc=W(()=>{"use strict";th=(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()},ue=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}},eh=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return Kc(t,e,r,n)},Kc=(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 ue(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 ue(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 ue(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:v})=>{let E={...u};return p&&(E.select=p),d&&(E.limit=d),h&&(E.offset=h),x&&(E.single=!0),m&&(typeof m=="string"?E.order=m:Array.isArray(m)?E.order=m.map(I=>`${I.by}:${I.asc===!1?"desc":"asc"}`).join(","):m.by&&(E.order=`${m.by}:${m.asc===!1?"desc":"asc"}`)),ue(th(v||t,l||"",E),a({headers:s(_)}))},rpc:({from:l,params:u,headers:p,baseUrl:d})=>ue(c(`rpc/${l}`,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),insert:({from:l,data:u,headers:p,baseUrl:d})=>ue(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 ue(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 ue(c(m,d),a({method:"DELETE",headers:s(p)}))}}}});var Jc={};$t(Jc,{localAdapter:()=>Qc,setup:()=>nh});var Vs,rh,nh,Qc,Zc=W(()=>{"use strict";Vs=(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},rh=(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}},nh=async({data:t,...e})=>Qc(t,e),Qc=(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=>Vs(m,u));return rh(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(Vs(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--)Vs(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 qr={};$t(qr,{createAdapter:()=>ih,default:()=>gh,executeFetch:()=>jn,initAdapterAuth:()=>Un,parseDuration:()=>Br,queryClient:()=>mh,registerAdapter:()=>sh,resolveDb:()=>ol});var oh,nl,sh,ih,ol,Br,St,sl,Mn,ah,zr,Ur,jr,zs,Ws,Bn,ch,tl,qs,il,al,Je,el,lh,rl,fh,cl,Un,Gs,Rt,Vr,Ee,Vt,pe,uh,ph,dh,Hs,hh,jn,mh,gh,Ze=W(()=>{"use strict";w();oh=["select","rpc","insert","update","delete","subscribe"],nl={supabase:()=>Promise.resolve().then(()=>(Gc(),Wc)),rest:()=>Promise.resolve().then(()=>(Xc(),Yc)),local:()=>Promise.resolve().then(()=>(Zc(),Jc))},sh=(t,e)=>{nl[t]=e},ih=t=>{let e={};for(let r of oh)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},ol=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=nl[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},Br=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,sl=new Map,Mn=new Map,ah=t=>{if(t.cache?.key)return t.cache.key;let e=fh(t.params);return`${t.from}:${t.method}:${JSON.stringify(e||"")}`},zr=t=>St.get(t)||null,Ur=(t,e,r)=>{let n=St.get(t),o={data:e,error:r,time:Date.now(),stale:!1};St.set(t,o);let s=sl.get(t);if(s)for(let i of s)b(i)&&i(o);return o},jr=t=>{if(t){let e=St.get(t);e&&(e.stale=!0);return}for(let[,e]of St)e.stale=!0},zs=t=>{if(t){St.delete(t);return}St.clear()},Ws=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:Br(t),gcTime:3e5}:{staleTime:Br(t.stale||t.staleTime)||6e4,gcTime:Br(t.gc||t.gcTime||t.expire)||3e5,key:t.key},Bn=null,ch=()=>{Bn||(Bn=setInterval(()=>{let t=Date.now();for(let[e,r]of St){let n=sl.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&St.delete(e)}},3e4),Bn.unref&&Bn.unref())};ch();tl=3,qs=t=>Math.min(1e3*2**t,3e4),il=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:tl,delay:qs}:typeof e=="number"?{count:e,delay:qs}:{count:e.count??tl,delay:b(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:qs}},al=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}},Je={focus:new Set,online:new Set},el=!1,lh=()=>{if(el||typeof window>"u")return;el=!0;let t=()=>{for(let r of Je.focus)r()},e=()=>{for(let r of Je.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},rl=(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},fh=t=>(!t||b(t),t),cl=(t,e)=>{if(!t)return;if(b(t))return t(e,e.state);let r={};for(let n in t){let o=t[n];r[n]=b(o)?o(e,e.state):o}return r},Un=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)})},Gs=async(t,e)=>{if(b(t.select))return t.auth!==!1&&await Un(t,e),t;if(t.__resolved)return t.auth!==!1&&await Un(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=ol(t);let r=await t.__resolving;return t.__resolved=r,e.db=r,delete t.__resolving,t.auth!==!1&&await Un(r,e),r},Rt=(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)},Vr=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},Ee=(t,e,r,n={})=>{let o=r?{[r]:e}:e;t.state?.update&&t.state.update(o,{preventFetch:!0,...n})},Vt=(t,e)=>{let r=t.__ref;r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error},pe=async(t,e,r,n={})=>{let o=r?.db;if(!o||t.enabled===!1||b(t.enabled)&&!t.enabled(e,e.state))return;let s=await Gs(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:v,order:E,headers:I,baseUrl:A,page:T,cursor:C,getNextPageParam:B,getPreviousPageParam:N,infinite:D,placeholderData:F,initialData:et,select:tt,keepPreviousData:bt}=t,Ft;if(f&&b(e.getQuery)){let J=e.getQuery(s.name||"paths");J&&(Ft=J.select||J.length&&J.join(",")||void 0)}let se=cl(l,e),Or=Ws(u),$o=il(t),it=Or?u?.key||`${a}:${c}:${JSON.stringify(se||"")}${D?":infinite":""}${T?":p"+JSON.stringify(T):""}`:null;if(!i.__fetchInitialized&&it&&(i.__fetchInitialized=!0,et!==void 0)){let J=b(et)?et():et;Ur(it,J,null)}if((c==="select"||c==="rpc")&&it&&Or){let J=zr(it);if(J&&!J.error){let G=Date.now()-J.time,V=J.stale||G>(Or.staleTime||0),K=J.data;if(tt&&(K=tt(K,e,e.state)),p&&(K=p(K,e,e.state)),Ee(e,K,x),!V){Vt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(F!==void 0){let G=b(F)?F(e,e.state):F;G!==void 0&&Ee(e,G,x)}}if(it&&Mn.has(it)&&!n.force){let J=Mn.get(it);try{let G=await J;if(G?.data!==void 0){let V=G.data;tt&&(V=tt(V,e,e.state)),p&&(V=p(V,e,e.state)),Ee(e,V,x),Rt(e,"onFetchComplete",V)}}catch{}return}let Lo=!zr(it)?.data;Vt(e,{isFetching:!0,isLoading:Lo,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Rt(e,"onFetchStart");let ec=al(async()=>{if(h!==!1&&s.getSession){let V=await s.getSession();if(h===!0&&!V){let K={message:"Not authenticated"};return Vt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:K,status:"error",fetchStatus:"idle"}),Rt(e,"onFetchError",K),{data:null,error:K}}}let J=s[c];if(!b(J))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let G={from:a,select:Ft,params:se,single:d,limit:_,offset:v,order:E,headers:I,baseUrl:A};if(T!==void 0){if(g(T))T.offset!==void 0&&(G.offset=T.offset),T.limit!==void 0&&(G.limit=T.limit),T.cursor!==void 0&&(G.params={...G.params,cursor:T.cursor});else if(typeof T=="number"){let V=t.pageSize||_||20;G.offset=(T-1)*V,G.limit=V}}if(C!==void 0&&(G.params={...G.params,cursor:C}),c==="insert"||c==="update"||c==="upsert"){let V;if(m===!0||t.on==="submit")V=Vr(e);else if(S(m)){let K=Vr(e);V={};for(let Ar of m)V[Ar]=K[Ar]}else e.state?.parse?V=e.state.parse():g(e.state)&&(V={...e.state});p&&(V=p(V,e,e.state)),G.data=V}if(c==="rpc"){let V=se;if(t.on==="submit"){let K=Vr(e);V=t.transformParams?t.transformParams(K,e,e.state):K}G.params=V}if(c==="subscribe"){let V=s.subscribe({from:a,params:se,on:t.subscribeOn},(K,Ar,wS)=>{Ee(e,K,x),Rt(e,"onFetchComplete",K)});return i.__unsubscribe=V,{data:null,error:null,subscribed:!0}}return J(G)},$o);it&&Mn.set(it,ec);try{let J=await ec;if(J?.subscribed)return;let{data:G,error:V}=J||{};if(V){it&&Ur(it,null,V),Vt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:V,status:"error",fetchStatus:"idle"}),Rt(e,"onFetchError",V);return}if(G!==void 0){if((c==="select"||c==="rpc")&&it){let Ar=Ur(it,G,null);Ar.gcTime=Or?.gcTime||3e5}let K=G;D&&S(G)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(G):i.__pages.push(G),K=i.__pages.flat(),B&&(i.__nextPageParam=B(G,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),N&&(i.__prevPageParam=N(G,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),tt&&(K=tt(K,e,e.state)),p&&(K=p(K,e,e.state)),(!bt||K!==void 0)&&Ee(e,K,x),Vt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Rt(e,"onFetchComplete",K)}}catch(J){Vt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:J,status:"error",fetchStatus:"idle"}),Rt(e,"onFetchError",J)}finally{it&&Mn.delete(it)}},uh=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||pe;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))},ph=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),lh();let o=t.refetchInterval;if(o){let s=typeof o=="number"?o:Br(o);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&pe(t,e,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=ah(t),a=zr(i),c=Ws(t.cache);(!a||a.stale||Date.now()-a.time>(c?.staleTime||0))&&pe(t,e,r,{force:!0})};Je.focus.add(s),n.__fetchCleanups.push(()=>Je.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>pe(t,e,r,{force:!0});Je.online.add(s),n.__fetchCleanups.push(()=>Je.online.delete(s))}},dh=(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&&Ee(t,i,o),s},Hs=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Ee(t,n,e.as),delete r.__optimisticSnapshot)},hh=async(t,e,r)=>{let n=r?.db;if(!n)return;let o=await Gs(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:v,onError:E,onSettled:I}=t,A;if(c===!0||u==="submit")A=Vr(e);else if(S(c)){let C=Vr(e);A={};for(let B of c)A[B]=C[B]}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?dh(e,t,A):null;s.__fetching=!0,Vt(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Rt(e,"onFetchStart");try{if(p!==!1&&o.getSession){let tt=await o.getSession();if(p===!0&&!tt){T!==void 0&&Hs(e,t),Rt(e,"onFetchError",{message:"Not authenticated"});return}}let C=o[i];if(!b(C))return;let B={from:a,data:A,headers:d,baseUrl:h};t.params&&(B.params=cl(t.params,e));let N=il(t),D=await al(()=>C(B),N),{data:F,error:et}=D||{};if(et){T!==void 0&&Hs(e,t),Vt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:et,status:"error",fetchStatus:"idle"}),Rt(e,"onFetchError",et),b(E)&&E(et,A,e),b(I)&&I(null,et,A,e);return}if(delete s.__optimisticSnapshot,F!==void 0){let tt=l?{[l]:F}:F;e.state?.update&&e.state.update(tt,{preventFetch:!0})}if(Vt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Rt(e,"onFetchComplete",F),b(v)&&v(F,A,e),b(I)&&I(F,null,A,e),m){let tt=S(m)?m:[m];for(let bt of tt)if(bt===!0||bt==="*")for(let[Ft]of St)Ft.startsWith(a+":")&&jr(Ft);else jr(bt)}}catch(C){T!==void 0&&Hs(e,t),Vt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:C,status:"error",fetchStatus:"idle"}),Rt(e,"onFetchError",C),b(E)&&E(C,A,e),b(I)&&I(null,C,A,e)}finally{s.__fetching=!1}},jn=(t,e,r,n)=>{if(!t||!n?.db)return;let s=O(t,e);if(!s)return;let i=S(s)?s.map(c=>rl(O(c,e),e)).filter(Boolean):[rl(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?hh:pe;c.on==="create"?l(c,e,n):Promise.resolve().then(()=>{uh({...c,__runner:l},e,n)}),!f&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&ph(c,e,n)}let a=e.__ref;a.refetch=c=>{for(let f of i)pe(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};pe(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};pe(l,e,n,{direction:"previous",force:!0})}},mh={invalidateQueries:t=>{if(!t){jr();return}if(y(t))for(let[e]of St)(e.startsWith(t)||e.includes(t))&&jr(e);else if(S(t)){let e=t.join(":");for(let[r]of St)r.includes(e)&&jr(r)}},removeQueries:t=>{if(!t){zs();return}if(y(t))for(let[e]of St)(e.startsWith(t)||e.includes(t))&&zs(e)},getQueryData:t=>zr(t)?.data??void 0,setQueryData:(t,e)=>{let r=zr(t),n=b(e)?e(r?.data):e;Ur(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.db;if(!r)return;let n=await Gs(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=Ur(o,i.data,null);a.gcTime=Ws(t.cache)?.gcTime||3e5}return i},getCache:()=>St,clear:()=>zs()},gh=jn});function Ys(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 Xs(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 Qs(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 Js(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 Vn(t={}){let e=this;if(e.node?.style){for(let r in t){let n=t[r],o=e[r];g(n)&&o?Vn.call(o,n):e.node.style[r]=n}return e}}function Zs(t){let e=this;if(H("beforeRemove",e,t)===!1)return e;b(e.node.remove)?e.node.remove():He()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=zo(e.parent.__ref.__children,e.key)),H("remove",e,t)}function yh(t){return this[t]}function ti(t,e){let r=this;if(!(!t||!r.props))return r.update({props:t},e),r}function ei(t){return t?this.__ref&&this.__ref[t]:this.__ref}function bh(){return this.getRef("__children").map(e=>this[e])}function ri(){return this.getRef().path}function ni(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 oi(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 ii(t){let e=this.getRoot()?.context;return t?e[t]:e}function ai(t){let e=this.context;return t?e[t]:e}function zn(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||Ve.has(r)&&!Ho.has(r)||e.push(r);return e}function qn(t=[]){let e=this,r={},n=zn.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 Ct(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function Hr(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=>P(a)?Hr.call(a,t,e):a):P(i)&&(n[s]=Hr.call(i,t,e))}return n}function Hn(...t){if(de!=="test"&&de!=="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 ci(...t){(de==="test"||de==="development")&&console.log(...t)}function li(...t){(de==="test"||de==="development")&&console.warn(...t)}function fi(...t){if(de==="test"||de==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&Hn.call(this),new Error(...t)}}function ui(){let t=this,{key:e,parent:r}=t,{__children:n}=r.__ref,o=n.indexOf(e),s=n[o+1];return r[s]}function pi(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 di(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 hi(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 mi(){let t=this,e=t.context?.db;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ze(),qr));await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ze(),qr));await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=Promise.resolve().then(()=>(Ze(),qr)).then(({resolveDb:o})=>o(e));e.__resolving=r;let n=await r;if(e.__resolved=n,t.context.db=n,delete e.__resolving,n.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ze(),qr));await o(n,t.context)}return n}function gi(t){let e=this,r=t||ut.useStateQuery||e.context?.useStateQuery;if(!r)return null;let n={};if(Ks(e,n),r===!0)return n;let o=Oh[r];return o?o(n):n}function zt(t,e){return!!(On.has(t)||e?.context?.methods?.[t])}var de,xh,Ks,Sh,ll,_h,wh,vh,kh,Ch,Eh,Oh,yi=W(()=>{Bs();qe();xt();ie();is();je();Us();de=process.env.NODE_ENV;xh=(t,e,r,n)=>Object.defineProperty(t,e,{get:r,set:n});Ks=(t,e)=>{let r=t.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&Sh(e,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&Ks(c,e)}let s=r.contentElementKey||"content",i=t[s];i&&i.__ref&&Ks(i,e)},Sh=(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])}},ll=(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
  ${ll(i,e+1)}
13
13
  ${r}}`).join(`
14
- `):""},xh=t=>`{
14
+ `):""},_h=t=>`{
15
15
  ${ll(t,1)}
16
- }`,Sh=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},_h=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("&")},wh=(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?`
16
+ }`,wh=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},vh=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("&")},kh=(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}`},vh=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},kh=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)}},Ch={graphql:xh,"json-api":Sh,odata:_h,sql:wh,supabase:kh,paths:vh}});var Eh,mi,fl=G(()=>{On();Eh={snapshotId:es},mi=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=Eh.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var w=G(()=>{On();ns();xt();ie();fc();je();Rr();uc();pc();Nr();Tr();dc();os();ms();Os();In();jc();Vc();Ge();zc();hi();Ls();fl();$s()});w();w();var fw=["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"],gi={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"]},Oh=["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(gi,t)){let r=gi[t];return r.includes(e)||r.includes("default")}else return gi.default.includes(e)},Ah=t=>{if(!y(t))return!1;let e=t.toLowerCase();return Oh.includes(e)},dl=(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=Ah(o);Ct(e[o])&&(s||i)&&(n[o]=e[o])}return n},uw=(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},Gt=(t,e)=>{let r=t.call("exec",e,t);if(r)return y(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},ul={src:t=>Gt(t,t.props.src),href:t=>Gt(t,t.props.href),action:t=>Gt(t,t.props.action),poster:t=>Gt(t,t.props.poster),data:t=>Gt(t,t.props.data)},pw=t=>{let e=t.tag||"div",{props:r}=t,n={};for(let o in ul)if(r[o]!==void 0&&pl(e,o)){let s=ul[o](t);s!==void 0&&(n[o]=s)}return n};w();w();var Th=!1;function Rh(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 Ih(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 hl=(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?!Th: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(Ih(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Rh(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 ft="-ms-",qr="-moz-",V="-webkit-",Gn="comm",tr="rule",er="decl";var ml="@import";var Hn="@keyframes";var gl="@layer";var yl=Math.abs,Oe=String.fromCharCode,bl=Object.assign;function xl(t,e){return rt(t,0)^45?(((e<<2^rt(t,0))<<2^rt(t,1))<<2^rt(t,2))<<2^rt(t,3):0}function qn(t){return t.trim()}function yi(t,e){return(t=e.exec(t))?t[0]:t}function L(t,e,r){return t.replace(e,r)}function Wr(t,e){return t.indexOf(e)}function rt(t,e){return t.charCodeAt(e)|0}function he(t,e,r){return t.slice(e,r)}function pt(t){return t.length}function rr(t){return t.length}function nr(t,e){return e.push(t),t}function bi(t,e){return t.map(e).join("")}var Wn=1,or=1,Sl=0,dt=0,nt=0,ir="";function Kr(t,e,r,n,o,s,i){return{value:t,root:e,parent:r,type:n,props:o,children:s,line:Wn,column:or,length:i,return:""}}function ar(t,e){return bl(Kr("",null,null,"",null,null,0),t,{length:-t.length},e)}function _l(){return nt}function wl(){return nt=dt>0?rt(ir,--dt):0,or--,nt===10&&(or=1,Wn--),nt}function ht(){return nt=dt<Sl?rt(ir,dt++):0,or++,nt===10&&(or=1,Wn++),nt}function It(){return rt(ir,dt)}function Yr(){return dt}function cr(t,e){return he(ir,t,e)}function sr(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 Kn(t){return Wn=or=1,Sl=pt(ir=t),dt=0,[]}function Yn(t){return ir="",t}function lr(t){return qn(cr(dt-1,xi(t===91?t+2:t===40?t+1:t)))}function vl(t){for(;(nt=It())&&nt<33;)ht();return sr(t)>2||sr(nt)>3?"":" "}function kl(t,e){for(;--e&&ht()&&!(nt<48||nt>102||nt>57&&nt<65||nt>70&&nt<97););return cr(t,Yr()+(e<6&&It()==32&&ht()==32))}function xi(t){for(;ht();)switch(nt){case t:return dt;case 34:case 39:t!==34&&t!==39&&xi(nt);break;case 40:t===41&&xi(t);break;case 92:ht();break}return dt}function Cl(t,e){for(;ht()&&t+nt!==57;)if(t+nt===84&&It()===47)break;return"/*"+cr(e,dt-1)+"*"+Oe(t===47?t:ht())}function El(t){for(;!sr(It());)ht();return cr(t,dt)}function Tl(t){return Yn(Qn("",null,null,null,[""],t=Kn(t),0,[0],t))}function Qn(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,v=1,_=0,C="",T=o,I=s,O=n,E=C;x;)switch(h=_,_=ht()){case 40:if(h!=108&&rt(E,u-1)==58){Wr(E+=L(lr(_),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=lr(_);break;case 9:case 10:case 13:case 32:E+=vl(h);break;case 92:E+=kl(Yr()-1,7);continue;case 47:switch(It()){case 42:case 47:nr(Ph(Cl(ht(),Yr()),e,r),c);break;default:E+="/"}break;case 123*m:a[f++]=pt(E)*v;case 125*m:case 59:case 0:switch(_){case 0:case 125:x=0;case 59+l:v==-1&&(E=L(E,/\f/g,"")),d>0&&pt(E)-u&&nr(d>32?Al(E+";",n,r,u-1):Al(L(E," ","")+";",n,r,u-2),c);break;case 59:E+=";";default:if(nr(O=Ol(E,e,r,f,l,o,a,C,T=[],I=[],u),s),_===123)if(l===0)Qn(E,e,O,O,T,s,u,a,I);else switch(p===99&&rt(E,3)===110?100:p){case 100:case 108:case 109:case 115:Qn(t,O,O,n&&nr(Ol(t,O,O,0,0,o,a,C,o,T=[],u),I),o,I,u,a,n?T:I);break;default:Qn(E,O,O,O,[""],I,0,a,I)}}f=l=d=0,m=v=1,C=E="",u=i;break;case 58:u=1+pt(E),d=h;default:if(m<1){if(_==123)--m;else if(_==125&&m++==0&&wl()==125)continue}switch(E+=Oe(_),_*m){case 38:v=l>0?1:(E+="\f",-1);break;case 44:a[f++]=(pt(E)-1)*v,v=1;break;case 64:It()===45&&(E+=lr(ht())),p=It(),l=u=pt(C=E+=El(Yr())),_++;break;case 45:h===45&&pt(E)==2&&(m=0)}}return s}function Ol(t,e,r,n,o,s,i,a,c,f,l){for(var u=o-1,p=o===0?s:[""],d=rr(p),h=0,m=0,x=0;h<n;++h)for(var v=0,_=he(t,u+1,u=yl(m=i[h])),C=t;v<d;++v)(C=qn(m>0?p[v]+" "+_:L(_,/&\f/g,p[v])))&&(c[x++]=C);return Kr(t,e,r,o===0?tr:a,c,f,l)}function Ph(t,e,r){return Kr(t,e,r,Gn,Oe(_l()),he(t,2,-2),0)}function Al(t,e,r,n){return Kr(t,e,r,er,he(t,0,n),he(t,n+1,-1),n)}function Ae(t,e){for(var r="",n=rr(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function Rl(t,e,r,n){switch(t.type){case gl:if(t.children.length)break;case ml:case er:return t.return=t.return||t.value;case Gn:return"";case Hn:return t.return=t.value+"{"+Ae(t.children,n)+"}";case tr:t.value=t.props.join(",")}return pt(r=Ae(t.children,n))?t.return=t.value+"{"+r+"}":""}function Il(t){var e=rr(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 Pl(t){return function(e){e.root||(e=e.return)&&t(e)}}function Nl(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var Nh=function(e,r,n){for(var o=0,s=0;o=s,s=It(),o===38&&s===12&&(r[n]=1),!sr(s);)ht();return cr(e,dt)},Dh=function(e,r){var n=-1,o=44;do switch(sr(o)){case 0:o===38&&It()===12&&(r[n]=1),e[n]+=Nh(dt-1,r,n);break;case 2:e[n]+=lr(o);break;case 4:if(o===44){e[++n]=It()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=Oe(o)}while(o=ht());return e},Fh=function(e,r){return Yn(Dh(Kn(e),r))},Dl=new WeakMap,$h=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&&!Dl.get(n))&&!o){Dl.set(e,!0);for(var s=[],i=Fh(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]}}},Lh=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};function Fl(t,e){switch(xl(t,e)){case 5103:return V+"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 V+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return V+t+qr+t+ft+t+t;case 6828:case 4268:return V+t+ft+t+t;case 6165:return V+t+ft+"flex-"+t+t;case 5187:return V+t+L(t,/(\w+).+(:[^]+)/,V+"box-$1$2"+ft+"flex-$1$2")+t;case 5443:return V+t+ft+"flex-item-"+L(t,/flex-|-self/,"")+t;case 4675:return V+t+ft+"flex-line-pack"+L(t,/align-content|flex-|-self/,"")+t;case 5548:return V+t+ft+L(t,"shrink","negative")+t;case 5292:return V+t+ft+L(t,"basis","preferred-size")+t;case 6060:return V+"box-"+L(t,"-grow","")+V+t+ft+L(t,"grow","positive")+t;case 4554:return V+L(t,/([^-])(transform)/g,"$1"+V+"$2")+t;case 6187:return L(L(L(t,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),t,"")+t;case 5495:case 3959:return L(t,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return L(L(t,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+ft+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+t+t;case 4095:case 3583:case 4068:case 2532:return L(t,/(.+)-inline(.+)/,V+"$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(pt(t)-1-e>6)switch(rt(t,e+1)){case 109:if(rt(t,e+4)!==45)break;case 102:return L(t,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+qr+(rt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Wr(t,"stretch")?Fl(L(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(rt(t,e+1)!==115)break;case 6444:switch(rt(t,pt(t)-3-(~Wr(t,"!important")&&10))){case 107:return L(t,":",":"+V)+t;case 101:return L(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(rt(t,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+ft+"$2box$3")+t}break;case 5936:switch(rt(t,e+11)){case 114:return V+t+ft+L(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return V+t+ft+L(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return V+t+ft+L(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return V+t+ft+t+t}return t}var Mh=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case er:e.return=Fl(e.value,e.length);break;case Hn:return Ae([ar(e,{value:L(e.value,"@","@"+V)})],o);case tr:if(e.length)return bi(e.props,function(s){switch(yi(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ae([ar(e,{props:[L(s,/:(read-\w+)/,":"+qr+"$1")]})],o);case"::placeholder":return Ae([ar(e,{props:[L(s,/:(plac\w+)/,":"+V+"input-$1")]}),ar(e,{props:[L(s,/:(plac\w+)/,":"+qr+"$1")]}),ar(e,{props:[L(s,/:(plac\w+)/,ft+"input-$1")]})],o)}return""})}},Bh=[Mh],$l=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||Bh,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(" "),v=1;v<x.length;v++)s[x[v]]=!0;a.push(m)});var c,f=[$h,Lh];{var l,u=[Rl,Pl(function(m){l.insert(m)})],p=Il(f.concat(o,u)),d=function(x){return Ae(Tl(x),p)};c=function(x,v,_,C){l=_,d(x?x+"{"+v.styles+"}":v.styles),C&&(h.inserted[v.name]=!0)}}var h={key:r,sheet:new hl({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 Ll(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 Ml={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 Uh=!1,jh=/[A-Z]|^ms/g,Vh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Vl=function(e){return e.charCodeAt(1)===45},Bl=function(e){return e!=null&&typeof e!="boolean"},Si=Nl(function(t){return Vl(t)?t:t.replace(jh,"-$&").toLowerCase()}),Ul=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(Vh,function(n,o,s){return Ht={name:o,styles:s,next:Ht},o})}return Ml[e]!==1&&!Vl(e)&&typeof r=="number"&&r!==0?r+"px":r},zh="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Qr(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 Ht={name:o.name,styles:o.styles,next:Ht},o.name;var s=r;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)Ht={name:i.name,styles:i.styles,next:Ht},i=i.next;var a=s.styles+";";return a}return Gh(t,e,r)}case"function":{if(t!==void 0){var c=Ht,f=r(t);return Ht=c,Qr(t,e,f)}break}}var l=r;if(e==null)return l;var u=e[l];return u!==void 0?u:l}function Gh(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Qr(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]+"}":Bl(a)&&(n+=Si(s)+":"+Ul(s,a)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&Uh)throw new Error(zh);if(Array.isArray(i)&&typeof i[0]=="string"&&(e==null||e[i[0]]===void 0))for(var c=0;c<i.length;c++)Bl(i[c])&&(n+=Si(s)+":"+Ul(s,i[c])+";");else{var f=Qr(t,e,i);switch(s){case"animation":case"animationName":{n+=Si(s)+":"+f+";";break}default:n+=s+"{"+f+"}"}}}}return n}var jl=/label:\s*([^\s;{]+)\s*(;|$)/g,Ht;function Xn(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="";Ht=void 0;var s=t[0];if(s==null||s.raw===void 0)n=!1,o+=Qr(r,e,s);else{var i=s;o+=i[0]}for(var a=1;a<t.length;a++)if(o+=Qr(r,e,t[a]),n){var c=s;o+=c[a]}jl.lastIndex=0;for(var f="",l;(l=jl.exec(o))!==null;)f+="-"+l[1];var u=Ll(o)+f;return{name:u,styles:o,next:Ht}}var Hh=!0;function _i(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(n+=o+" ")}),n}var qh=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||Hh===!1)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},zl=function(e,r,n){qh(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 Gl(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function Hl(t,e,r){var n=[],o=_i(t,n,r);return n.length<2?r:o+e(n)}var wi=function(e){var r=$l(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=Xn(f,r.registered,void 0);return zl(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=Xn(f,r.registered),p="animation-"+u.name;return Gl(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=Xn(f,r.registered);Gl(r,u)},i=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];return Hl(r.registered,n,Wh(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:_i.bind(null,r.registered),merge:Hl.bind(null,r.registered,n)}},Wh=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};w();w();var Kh=/\s+/g,Ww=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))},Yh=(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+=` ${A(o,e)}`)}return r},Qh=(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=Yh(t,e)),t.replace(Kh," ").trim()},vi=(t,e,r)=>{let n=Qh(t,e);if(r&&typeof r.setAttribute=="function")r.setAttribute("class",n);else if(r)try{r.className=n}catch{}return n};function Kw(t,e,r){vi(t,e,r)}var Xh=(t="smbls",e)=>{let r=t.replaceAll(/\./g,"-");return wi({key:r,container:e})},wt=Xh(),Jh=t=>(e,r,n)=>{let o=A(e,r);if(e){let{__ref:s}=r;s.__class.style=o}ql(t)(r.classlist,r,r.state,!0)},ql=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)||lt(f)?l=f:wn(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&&vi(a,r,r.node)}},Wl=(t,e)=>(t||(t=wi(e||{key:"smbls"})),{style:Jh(t),classlist:ql(t)});var mr={};Ft(mr,{CSS_NATIVE_COLOR_REGEX:()=>Xt,CSS_UNITS:()=>Jr,applyMediaSequenceVars:()=>hr,applySequenceGlobalVars:()=>ji,applySequenceVars:()=>De,changeLightness:()=>om,colorStringToRgbaArray:()=>me,convertSvgToSymbol:()=>Vi,findHeadingLetter:()=>cf,findHeadings:()=>Ui,generateSequence:()=>qt,generateSequencePosition:()=>fg,generateSprite:()=>no,generateSubSequence:()=>Mi,getColorShade:()=>Jl,getDefaultOrFirstKey:()=>tn,getFnPrefixAndValue:()=>Ne,getFontFace:()=>am,getFontFaceEach:()=>en,getFontFaceEachString:()=>rf,getFontFaceString:()=>Ci,getFontFormat:()=>tf,getRgbTone:()=>Zr,getSequenceValue:()=>Bi,getSequenceValueBySymbols:()=>af,getSequenceValuePropertyPair:()=>ye,getSubratio:()=>Li,getSubratioDifference:()=>$i,hexToRgb:()=>tm,hexToRgbArray:()=>Kl,hexToRgba:()=>rm,hslToRgb:()=>Xl,isCSSVar:()=>ot,isGoogleFontsUrl:()=>Zn,isResolvedColor:()=>ge,isScalingUnit:()=>Xr,mixTwoColors:()=>Zh,mixTwoRgb:()=>nm,mixTwoRgba:()=>Zl,numToLetterMap:()=>Pe,opacify:()=>Jn,parseColorToken:()=>fr,resolveFileUrl:()=>Te,returnSubThemeOrDefault:()=>im,rgbArrayToHex:()=>Yl,rgbToHSL:()=>Ql,rgbToHex:()=>em,setCustomFont:()=>ki,setCustomFontMedia:()=>pr,setFontImport:()=>to,setInCustomFontMedia:()=>ef,setScalingVar:()=>Fi,setSubScalingVar:()=>sf,setVariables:()=>ug,splitTopLevelCommas:()=>ur});var Xr=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",Jr=["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"];w();var me=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&&$&&F){let e=$.body.appendChild($.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){$.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return $.body.removeChild(e),[0,0,0,0];t=F.getComputedStyle(e).color,$.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]},Zh=(t,e,r=.5)=>(t=me(t),e=me(e),Zl(t,e,r)),tm=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},Kl=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},em=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),Yl=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),rm=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},nm=(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})`},om=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},Ql=(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]},Xl=(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)],Jl=(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)},Zl=(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})`},Jn=(t,e)=>{let r=me(t);if(!r){Fr()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},ot=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Xt=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,sm=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,fr=t=>{if(!y(t))return null;if(Xt.test(t))return{passthrough:t};if(ot(t))return{cssVar:t};let e=t.match(sm);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}},ge=t=>y(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),ur=t=>{let e=[],r="",n=0;for(let o of t){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){e.push(r),r="";continue}r+=o}return(r.length||!e.length)&&e.push(r),e},Zr=(t,e)=>{y(t)&&t.includes("rgb")&&(t=me(t).join(", ")),y(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),lt(e)&&(e+="");let r=Yl(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=Jl(r,parseFloat(e));return Kl(o).join(", ")}else{let[o,s,i]=t,a=Ql(o,s,i),[c,f,l]=a;return Xl(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 Te=(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},tn=(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},tf=t=>{let e=t.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(e)?e:null},Zn=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),to=t=>`@import url('${t}');`,ef=t=>`@font-face { ${t} }`,ki=(t,e,r,n={})=>{let o=tf(e),s=o?` format('${o}')`:"";return`
19
+ FROM ${a}${f}`},Ch=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},Eh=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)}},Oh={graphql:_h,"json-api":wh,odata:vh,sql:kh,supabase:Eh,paths:Ch}});var Ah,bi,fl=W(()=>{Tn();Ah={snapshotId:os},bi=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=Ah.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var w=W(()=>{Tn();is();xt();ie();fc();je();Rr();uc();pc();Nr();Tr();dc();as();bs();Rs();Nn();jc();Vc();qe();zc();yi();Us();fl();Bs()});w();w();var hw=["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"],xi={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"]},Th=["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(xi,t)){let r=xi[t];return r.includes(e)||r.includes("default")}else return xi.default.includes(e)},Rh=t=>{if(!y(t))return!1;let e=t.toLowerCase();return Th.includes(e)},dl=(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=Rh(o);Ct(e[o])&&(s||i)&&(n[o]=e[o])}return n},mw=(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},qt=(t,e)=>{let r=t.call("exec",e,t);if(r)return y(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},ul={src:t=>qt(t,t.props.src),href:t=>qt(t,t.props.href),action:t=>qt(t,t.props.action),poster:t=>qt(t,t.props.poster),data:t=>qt(t,t.props.data)},gw=t=>{let e=t.tag||"div",{props:r}=t,n={};for(let o in ul)if(r[o]!==void 0&&pl(e,o)){let s=ul[o](t);s!==void 0&&(n[o]=s)}return n};w();w();var Ih=!1;function Ph(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 Nh(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 hl=(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?!Ih: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(Nh(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Ph(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 ft="-ms-",Wr="-moz-",q="-webkit-",Wn="comm",tr="rule",er="decl";var ml="@import";var Gn="@keyframes";var gl="@layer";var yl=Math.abs,Oe=String.fromCharCode,bl=Object.assign;function xl(t,e){return rt(t,0)^45?(((e<<2^rt(t,0))<<2^rt(t,1))<<2^rt(t,2))<<2^rt(t,3):0}function Kn(t){return t.trim()}function Si(t,e){return(t=e.exec(t))?t[0]:t}function M(t,e,r){return t.replace(e,r)}function Gr(t,e){return t.indexOf(e)}function rt(t,e){return t.charCodeAt(e)|0}function he(t,e,r){return t.slice(e,r)}function pt(t){return t.length}function rr(t){return t.length}function nr(t,e){return e.push(t),t}function _i(t,e){return t.map(e).join("")}var Yn=1,or=1,Sl=0,dt=0,nt=0,ir="";function Kr(t,e,r,n,o,s,i){return{value:t,root:e,parent:r,type:n,props:o,children:s,line:Yn,column:or,length:i,return:""}}function ar(t,e){return bl(Kr("",null,null,"",null,null,0),t,{length:-t.length},e)}function _l(){return nt}function wl(){return nt=dt>0?rt(ir,--dt):0,or--,nt===10&&(or=1,Yn--),nt}function ht(){return nt=dt<Sl?rt(ir,dt++):0,or++,nt===10&&(or=1,Yn++),nt}function It(){return rt(ir,dt)}function Yr(){return dt}function cr(t,e){return he(ir,t,e)}function sr(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 Xn(t){return Yn=or=1,Sl=pt(ir=t),dt=0,[]}function Qn(t){return ir="",t}function lr(t){return Kn(cr(dt-1,wi(t===91?t+2:t===40?t+1:t)))}function vl(t){for(;(nt=It())&&nt<33;)ht();return sr(t)>2||sr(nt)>3?"":" "}function kl(t,e){for(;--e&&ht()&&!(nt<48||nt>102||nt>57&&nt<65||nt>70&&nt<97););return cr(t,Yr()+(e<6&&It()==32&&ht()==32))}function wi(t){for(;ht();)switch(nt){case t:return dt;case 34:case 39:t!==34&&t!==39&&wi(nt);break;case 40:t===41&&wi(t);break;case 92:ht();break}return dt}function Cl(t,e){for(;ht()&&t+nt!==57;)if(t+nt===84&&It()===47)break;return"/*"+cr(e,dt-1)+"*"+Oe(t===47?t:ht())}function El(t){for(;!sr(It());)ht();return cr(t,dt)}function Tl(t){return Qn(Jn("",null,null,null,[""],t=Xn(t),0,[0],t))}function Jn(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,v=0,E="",I=o,A=s,T=n,C=E;x;)switch(h=v,v=ht()){case 40:if(h!=108&&rt(C,u-1)==58){Gr(C+=M(lr(v),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:C+=lr(v);break;case 9:case 10:case 13:case 32:C+=vl(h);break;case 92:C+=kl(Yr()-1,7);continue;case 47:switch(It()){case 42:case 47:nr(Dh(Cl(ht(),Yr()),e,r),c);break;default:C+="/"}break;case 123*m:a[f++]=pt(C)*_;case 125*m:case 59:case 0:switch(v){case 0:case 125:x=0;case 59+l:_==-1&&(C=M(C,/\f/g,"")),d>0&&pt(C)-u&&nr(d>32?Al(C+";",n,r,u-1):Al(M(C," ","")+";",n,r,u-2),c);break;case 59:C+=";";default:if(nr(T=Ol(C,e,r,f,l,o,a,E,I=[],A=[],u),s),v===123)if(l===0)Jn(C,e,T,T,I,s,u,a,A);else switch(p===99&&rt(C,3)===110?100:p){case 100:case 108:case 109:case 115:Jn(t,T,T,n&&nr(Ol(t,T,T,0,0,o,a,E,o,I=[],u),A),o,A,u,a,n?I:A);break;default:Jn(C,T,T,T,[""],A,0,a,A)}}f=l=d=0,m=_=1,E=C="",u=i;break;case 58:u=1+pt(C),d=h;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&wl()==125)continue}switch(C+=Oe(v),v*m){case 38:_=l>0?1:(C+="\f",-1);break;case 44:a[f++]=(pt(C)-1)*_,_=1;break;case 64:It()===45&&(C+=lr(ht())),p=It(),l=u=pt(E=C+=El(Yr())),v++;break;case 45:h===45&&pt(C)==2&&(m=0)}}return s}function Ol(t,e,r,n,o,s,i,a,c,f,l){for(var u=o-1,p=o===0?s:[""],d=rr(p),h=0,m=0,x=0;h<n;++h)for(var _=0,v=he(t,u+1,u=yl(m=i[h])),E=t;_<d;++_)(E=Kn(m>0?p[_]+" "+v:M(v,/&\f/g,p[_])))&&(c[x++]=E);return Kr(t,e,r,o===0?tr:a,c,f,l)}function Dh(t,e,r){return Kr(t,e,r,Wn,Oe(_l()),he(t,2,-2),0)}function Al(t,e,r,n){return Kr(t,e,r,er,he(t,0,n),he(t,n+1,-1),n)}function Ae(t,e){for(var r="",n=rr(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function Rl(t,e,r,n){switch(t.type){case gl:if(t.children.length)break;case ml:case er:return t.return=t.return||t.value;case Wn:return"";case Gn:return t.return=t.value+"{"+Ae(t.children,n)+"}";case tr:t.value=t.props.join(",")}return pt(r=Ae(t.children,n))?t.return=t.value+"{"+r+"}":""}function Il(t){var e=rr(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 Pl(t){return function(e){e.root||(e=e.return)&&t(e)}}function Nl(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var Fh=function(e,r,n){for(var o=0,s=0;o=s,s=It(),o===38&&s===12&&(r[n]=1),!sr(s);)ht();return cr(e,dt)},$h=function(e,r){var n=-1,o=44;do switch(sr(o)){case 0:o===38&&It()===12&&(r[n]=1),e[n]+=Fh(dt-1,r,n);break;case 2:e[n]+=lr(o);break;case 4:if(o===44){e[++n]=It()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=Oe(o)}while(o=ht());return e},Lh=function(e,r){return Qn($h(Xn(e),r))},Dl=new WeakMap,Mh=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&&!Dl.get(n))&&!o){Dl.set(e,!0);for(var s=[],i=Lh(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]}}},Bh=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};function Fl(t,e){switch(xl(t,e)){case 5103:return q+"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 q+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return q+t+Wr+t+ft+t+t;case 6828:case 4268:return q+t+ft+t+t;case 6165:return q+t+ft+"flex-"+t+t;case 5187:return q+t+M(t,/(\w+).+(:[^]+)/,q+"box-$1$2"+ft+"flex-$1$2")+t;case 5443:return q+t+ft+"flex-item-"+M(t,/flex-|-self/,"")+t;case 4675:return q+t+ft+"flex-line-pack"+M(t,/align-content|flex-|-self/,"")+t;case 5548:return q+t+ft+M(t,"shrink","negative")+t;case 5292:return q+t+ft+M(t,"basis","preferred-size")+t;case 6060:return q+"box-"+M(t,"-grow","")+q+t+ft+M(t,"grow","positive")+t;case 4554:return q+M(t,/([^-])(transform)/g,"$1"+q+"$2")+t;case 6187:return M(M(M(t,/(zoom-|grab)/,q+"$1"),/(image-set)/,q+"$1"),t,"")+t;case 5495:case 3959:return M(t,/(image-set\([^]*)/,q+"$1$`$1");case 4968:return M(M(t,/(.+:)(flex-)?(.*)/,q+"box-pack:$3"+ft+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+q+t+t;case 4095:case 3583:case 4068:case 2532:return M(t,/(.+)-inline(.+)/,q+"$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(pt(t)-1-e>6)switch(rt(t,e+1)){case 109:if(rt(t,e+4)!==45)break;case 102:return M(t,/(.+:)(.+)-([^]+)/,"$1"+q+"$2-$3$1"+Wr+(rt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Gr(t,"stretch")?Fl(M(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(rt(t,e+1)!==115)break;case 6444:switch(rt(t,pt(t)-3-(~Gr(t,"!important")&&10))){case 107:return M(t,":",":"+q)+t;case 101:return M(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+q+(rt(t,14)===45?"inline-":"")+"box$3$1"+q+"$2$3$1"+ft+"$2box$3")+t}break;case 5936:switch(rt(t,e+11)){case 114:return q+t+ft+M(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return q+t+ft+M(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return q+t+ft+M(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return q+t+ft+t+t}return t}var Uh=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case er:e.return=Fl(e.value,e.length);break;case Gn:return Ae([ar(e,{value:M(e.value,"@","@"+q)})],o);case tr:if(e.length)return _i(e.props,function(s){switch(Si(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ae([ar(e,{props:[M(s,/:(read-\w+)/,":"+Wr+"$1")]})],o);case"::placeholder":return Ae([ar(e,{props:[M(s,/:(plac\w+)/,":"+q+"input-$1")]}),ar(e,{props:[M(s,/:(plac\w+)/,":"+Wr+"$1")]}),ar(e,{props:[M(s,/:(plac\w+)/,ft+"input-$1")]})],o)}return""})}},jh=[Uh],$l=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||jh,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=[Mh,Bh];{var l,u=[Rl,Pl(function(m){l.insert(m)})],p=Il(f.concat(o,u)),d=function(x){return Ae(Tl(x),p)};c=function(x,_,v,E){l=v,d(x?x+"{"+_.styles+"}":_.styles),E&&(h.inserted[_.name]=!0)}}var h={key:r,sheet:new hl({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 Ll(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 Ml={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 Vh=!1,zh=/[A-Z]|^ms/g,qh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Vl=function(e){return e.charCodeAt(1)===45},Bl=function(e){return e!=null&&typeof e!="boolean"},vi=Nl(function(t){return Vl(t)?t:t.replace(zh,"-$&").toLowerCase()}),Ul=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(qh,function(n,o,s){return Ht={name:o,styles:s,next:Ht},o})}return Ml[e]!==1&&!Vl(e)&&typeof r=="number"&&r!==0?r+"px":r},Hh="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Xr(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 Ht={name:o.name,styles:o.styles,next:Ht},o.name;var s=r;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)Ht={name:i.name,styles:i.styles,next:Ht},i=i.next;var a=s.styles+";";return a}return Wh(t,e,r)}case"function":{if(t!==void 0){var c=Ht,f=r(t);return Ht=c,Xr(t,e,f)}break}}var l=r;if(e==null)return l;var u=e[l];return u!==void 0?u:l}function Wh(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Xr(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]+"}":Bl(a)&&(n+=vi(s)+":"+Ul(s,a)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&Vh)throw new Error(Hh);if(Array.isArray(i)&&typeof i[0]=="string"&&(e==null||e[i[0]]===void 0))for(var c=0;c<i.length;c++)Bl(i[c])&&(n+=vi(s)+":"+Ul(s,i[c])+";");else{var f=Xr(t,e,i);switch(s){case"animation":case"animationName":{n+=vi(s)+":"+f+";";break}default:n+=s+"{"+f+"}"}}}}return n}var jl=/label:\s*([^\s;{]+)\s*(;|$)/g,Ht;function Zn(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="";Ht=void 0;var s=t[0];if(s==null||s.raw===void 0)n=!1,o+=Xr(r,e,s);else{var i=s;o+=i[0]}for(var a=1;a<t.length;a++)if(o+=Xr(r,e,t[a]),n){var c=s;o+=c[a]}jl.lastIndex=0;for(var f="",l;(l=jl.exec(o))!==null;)f+="-"+l[1];var u=Ll(o)+f;return{name:u,styles:o,next:Ht}}var Gh=!0;function ki(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(n+=o+" ")}),n}var Kh=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||Gh===!1)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},zl=function(e,r,n){Kh(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 ql(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function Hl(t,e,r){var n=[],o=ki(t,n,r);return n.length<2?r:o+e(n)}var Ci=function(e){var r=$l(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=Zn(f,r.registered,void 0);return zl(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=Zn(f,r.registered),p="animation-"+u.name;return ql(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=Zn(f,r.registered);ql(r,u)},i=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];return Hl(r.registered,n,Yh(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:ki.bind(null,r.registered),merge:Hl.bind(null,r.registered,n)}},Yh=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};w();w();var Xh=/\s+/g,Qw=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))},Qh=(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},Jh=(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=Qh(t,e)),t.replace(Xh," ").trim()},Ei=(t,e,r)=>{let n=Jh(t,e);if(r&&typeof r.setAttribute=="function")r.setAttribute("class",n);else if(r)try{r.className=n}catch{}return n};function Jw(t,e,r){Ei(t,e,r)}var Zh=(t="smbls",e)=>{let r=t.replaceAll(/\./g,"-");return Ci({key:r,container:e})},wt=Zh(),tm=t=>(e,r,n)=>{let o=O(e,r);if(e){let{__ref:s}=r;s.__class.style=o}Wl(t)(r.classlist,r,r.state,!0)},Wl=t=>(e,r,n,o)=>{if(r.style&&!o)return;let{__ref:s}=r,{__class:i,__classNames:a}=s;if(P(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)||lt(f)?l=f:kn(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&&Ei(a,r,r.node)}},Gl=(t,e)=>(t||(t=Ci(e||{key:"smbls"})),{style:tm(t),classlist:Wl(t)});var mr={};$t(mr,{CSS_NATIVE_COLOR_REGEX:()=>Qt,CSS_UNITS:()=>Jr,applyMediaSequenceVars:()=>hr,applySequenceGlobalVars:()=>Vi,applySequenceVars:()=>De,changeLightness:()=>im,colorStringToRgbaArray:()=>me,convertSvgToSymbol:()=>zi,findHeadingLetter:()=>cf,findHeadings:()=>ji,generateSequence:()=>Wt,generateSequencePosition:()=>hg,generateSprite:()=>so,generateSubSequence:()=>Bi,getColorShade:()=>Jl,getDefaultOrFirstKey:()=>tn,getFnPrefixAndValue:()=>Ne,getFontFace:()=>lm,getFontFaceEach:()=>en,getFontFaceEachString:()=>rf,getFontFaceString:()=>Ai,getFontFormat:()=>tf,getRgbTone:()=>Zr,getSequenceValue:()=>Ui,getSequenceValueBySymbols:()=>af,getSequenceValuePropertyPair:()=>ye,getSubratio:()=>Mi,getSubratioDifference:()=>Li,hexToRgb:()=>rm,hexToRgbArray:()=>Kl,hexToRgba:()=>om,hslToRgb:()=>Ql,isCSSVar:()=>ot,isGoogleFontsUrl:()=>eo,isResolvedColor:()=>ge,isScalingUnit:()=>Qr,mixTwoColors:()=>em,mixTwoRgb:()=>sm,mixTwoRgba:()=>Zl,numToLetterMap:()=>Pe,opacify:()=>to,parseColorToken:()=>fr,resolveFileUrl:()=>Te,returnSubThemeOrDefault:()=>cm,rgbArrayToHex:()=>Yl,rgbToHSL:()=>Xl,rgbToHex:()=>nm,setCustomFont:()=>Oi,setCustomFontMedia:()=>pr,setFontImport:()=>ro,setInCustomFontMedia:()=>ef,setScalingVar:()=>$i,setSubScalingVar:()=>sf,setVariables:()=>mg,splitTopLevelCommas:()=>ur});var Qr=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",Jr=["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"];w();var me=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&&$){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=$.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]},em=(t,e,r=.5)=>(t=me(t),e=me(e),Zl(t,e,r)),rm=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},Kl=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},nm=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),Yl=([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})`},sm=(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})`},im=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},Xl=(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]},Ql=(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)],Jl=(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)},Zl=(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})`},to=(t,e)=>{let r=me(t);if(!r){Fr()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},ot=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Qt=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,am=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,fr=t=>{if(!y(t))return null;if(Qt.test(t))return{passthrough:t};if(ot(t))return{cssVar:t};let e=t.match(am);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}},ge=t=>y(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),ur=t=>{let e=[],r="",n=0;for(let o of t){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){e.push(r),r="";continue}r+=o}return(r.length||!e.length)&&e.push(r),e},Zr=(t,e)=>{y(t)&&t.includes("rgb")&&(t=me(t).join(", ")),y(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),lt(e)&&(e+="");let r=Yl(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=Jl(r,parseFloat(e));return Kl(o).join(", ")}else{let[o,s,i]=t,a=Xl(o,s,i),[c,f,l]=a;return Ql(c,f,parseFloat(e)/100*255)}};var cm=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Te=(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},tn=(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},tf=t=>{let e=t.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(e)?e:null},eo=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),ro=t=>`@import url('${t}');`,ef=t=>`@font-face { ${t} }`,Oi=(t,e,r,n={})=>{let o=tf(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
- src: url('${e}')${s};`},pr=(t,e,r,n)=>`@font-face {${ki(t,e,r,n)}
26
- }`,en=(t,e,r)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i}=e[o],a=Te(s,r)||s;return ki(t,a,i)}),am=t=>Object.keys(t).map(r=>en(r,t[r].value)),rf=(t,e,r)=>{if(e&&e.isVariable){let s=Te(e.url,r)||e.url;return Zn(s)?to(s):pr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return en(t,e,r).map(ef);let o=Te(e.url,r)||e.url;return pr(t,o)},Ci=(t,e)=>Object.keys(t).map(n=>rf(n,t[n].value,e));w();w();async function cm(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})`)}}w();var nf=(t,e)=>(S(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),lm=(t,e)=>(t=parseFloat(t),g(e)&&(e=Object.values(e)),nf(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 um=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 pm=(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)}}),dm=(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)}),hm=(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}`)},mm=(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)}}),gm=(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 eo(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 ym(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 bm=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t);function xm(t){return/^[0-9.]+$/.test(t)&&t!==""}var Jt={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e)=>`${Jt.skypack.url}/${t}${e!=="latest"?`@${e}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e)=>`${Jt.esmsh.url}/${t}${e!=="latest"?`@${e}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e)=>`${Jt.unpkg.url}/${t}${e!=="latest"?`@${e}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e)=>`${Jt.jsdelivr.url}/${t}${e!=="latest"?`@${e}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e)=>t.split("/").length>2||!xm(e)?`${Jt.symbols.url}/${t}`:`${Jt.symbols.url}/${t}/${e}.js`}},dr={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},ro=(t={})=>{let{packageManager:e}=t;return dr[e]||null},Zt=(t,e="latest",r="esmsh")=>(Jt[r]||Jt.esmsh).formatUrl(t,e),Sm=(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]=Zt(s,i,e)}return`<script type="importmap">{
25
+ src: url('${e}')${s};`},pr=(t,e,r,n)=>`@font-face {${Oi(t,e,r,n)}
26
+ }`,en=(t,e,r)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i}=e[o],a=Te(s,r)||s;return Oi(t,a,i)}),lm=t=>Object.keys(t).map(r=>en(r,t[r].value)),rf=(t,e,r)=>{if(e&&e.isVariable){let s=Te(e.url,r)||e.url;return eo(s)?ro(s):pr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return en(t,e,r).map(ef);let o=Te(e.url,r)||e.url;return pr(t,o)},Ai=(t,e)=>Object.keys(t).map(n=>rf(n,t[n].value,e));w();w();async function fm(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})`)}}w();var nf=(t,e)=>(S(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),um=(t,e)=>(t=parseFloat(t),g(e)&&(e=Object.values(e)),nf(t,e));var pm=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 dm=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 hm=(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)}),gm=(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}`)},ym=(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)}}),bm=(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 no(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 xm(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 Sm=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t);function _m(t){return/^[0-9.]+$/.test(t)&&t!==""}var Jt={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e)=>`${Jt.skypack.url}/${t}${e!=="latest"?`@${e}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e)=>`${Jt.esmsh.url}/${t}${e!=="latest"?`@${e}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e)=>`${Jt.unpkg.url}/${t}${e!=="latest"?`@${e}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e)=>`${Jt.jsdelivr.url}/${t}${e!=="latest"?`@${e}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e)=>t.split("/").length>2||!_m(e)?`${Jt.symbols.url}/${t}`:`${Jt.symbols.url}/${t}/${e}.js`}},dr={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},oo=(t={})=>{let{packageManager:e}=t;return dr[e]||null},Zt=(t,e="latest",r="esmsh")=>(Jt[r]||Jt.esmsh).formatUrl(t,e),wm=(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]=Zt(s,i,e)}return`<script type="importmap">{
27
27
  "imports": ${JSON.stringify(o,null,2)}
28
- }<\/script>`};w();var mt=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,r=>e[r])},Ei=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}="${mt(r)}"`).join(" "),_m=(t,e)=>{if(!e){let n=(()=>{let o=t?.favicon||t?.favicons;return o?typeof o=="string"?`<link rel="icon" href="${mt(o)}">`:Array.isArray(o)?o.map(s=>typeof s=="string"?`<link rel="icon" href="${mt(s)}">`:`<link ${Ei({rel:"icon",...s})}>`).join(`
29
- `):`<link ${Ei({rel:"icon",...o})}>`:'<link rel="icon" href="/favicon.ico">'})();return['<meta charset="UTF-8">',`<title>${mt(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
- `)}return Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1)return n;if(o==="title")return n.push(`<title>${mt(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${mt(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${mt(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="${mt(l)}">`);else if(typeof l=="object"){let u=Ei(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}="${mt(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}="${mt(f)}" content="${mt(l)}">`);else if(Array.isArray(l))l.forEach(p=>{if(typeof p=="string"||typeof p=="number"||typeof p=="boolean")n.push(`<meta ${u}="${mt(f)}" content="${mt(p)}">`);else if(typeof p=="object"){let d=Object.entries(p).filter(([h,m])=>m!==void 0).map(([h,m])=>`${h}="${mt(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}="${mt(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
- `)},wm=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http");function vm(t,e){if(!e||typeof e!="object")return t;let r=o=>{if(!wm(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 km(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=vm(o,t.files),o}var Cm=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},Em=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)}},Om=t=>t.replace(/[^a-zA-Z0-9_]/g,""),Oi=t=>t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,r){return r===0?e.toLowerCase():e.toUpperCase()}).replaceAll(/\s+/g,""),Am=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),Ai=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Tm=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},rn=t=>{if(S(t))return t;if(y(t))return t.split(" ");if(g(t))return Object.values(t);if(lt(t))return[t]};w();var Ri={};Ft(Ri,{ANIMATION:()=>Xm,BREAKPOINTS:()=>Km,CASES:()=>Qm,CLASS:()=>og,COLOR:()=>Bm,DEVICES:()=>Ym,DOCUMENT:()=>Wm,FONT:()=>Pm,FONT_FACE:()=>Fm,FONT_FAMILY:()=>Nm,FONT_FAMILY_TYPES:()=>Dm,GRADIENT:()=>Um,GRID:()=>rg,ICONS:()=>zm,MEDIA:()=>$m,RESET:()=>sg,SEMANTIC_ICONS:()=>Gm,SEQUENCE:()=>Re,SHADOW:()=>Vm,SPACING:()=>Mm,SVG:()=>Jm,SVG_DATA:()=>Zm,TEMPLATES:()=>tg,THEME:()=>jm,TIMING:()=>qm,TYPOGRAPHY:()=>Ti,UNIT:()=>Rm});var Re={"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 Rm={default:"em"};var Im={browserDefault:16,base:16,type:"font-size",ratio:Re["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},Ti=Im;var Pm={};var Nm={},Dm={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},Fm={};var $m={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var Lm={base:Ti.base,type:"spacing",ratio:Re.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},Mm=Lm;var Bm={},Um={};var jm={};var Vm={};var zm={},Gm={};var Hm={default:150,base:150,type:"timing",ratio:Re["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},qm=Hm;var Wm={};var Km={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},Ym={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 Qm={};var Xm={};var Jm={},Zm={};var tg={};var eg={},rg=eg;var ng={},og=ng;var sg={};var ig={},ag={},Ii=Ri,Pi={};for(let t in Ii){let e=t.toLowerCase();Pi[e]=Ii[t],e!==t&&(Pi[t]=Ii[t])}var Ni={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",CSS_VARS:ig,CSS_MEDIA_VARS:ag,...Pi},cg=j(Ni),Ie={active:"0",0:Ni},yv=t=>(Ct(t)&&(Ie.active=t),Ie[t||Ie.active]),k=t=>Ie[t||Ie.active]||Ni,of=t=>{if(g(t))return Ie.active="1",Ie[1]=M(t,j(cg)),t};var Pe={"-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"},Di=(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},Ne=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},Fi=(t,e)=>{let{base:r,type:n,unit:o}=e,s=(Xr(o)?1:r)+o;if(t===0)return s;let i="--"+(n&&n.replace(".","-")),a=`${i}-ratio`;if(t>0){let c=Pe[t-1];return`calc(var(${i}-${c}) * var(${a}))`}if(t<0){let c=Pe[t+1];return`calc(var(${i}-${c}) / var(${a}))`}},sf=(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}))`},$i=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},Li=(t,e)=>$i(t,e).map(r=>r/t),Mi=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,f=~~(o*s)-~~o,l,[u,p,d]=$i(o,s);f>16?l=[u,p,d]:l=[u,d],l.forEach((h,m)=>{let x=~~(h/n*1e3)/1e3,v=i+(m+1),_=a+(m+1)/10,C=sf(m+1,l,i,e),T={key:r+(m+1),variable:v,value:h,scaling:x,scalingVariable:C,index:_};Di(T,e)})},lg=(t,e,r)=>e*Math.pow(r,t),qt=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=Pe[f],u=lg(f,r,n),p=~~(u/r*100)/100,d=a+l,h=Fi(f,t),m={key:l,variable:d,value:u,base:r,scaling:p,scalingVariable:h,ratio:n,index:f};Di(m,t),s&&Mi(m,t)}return t},fg=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=y(e)?e:Pe[e],a=y(e)?Object.entries(Pe).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=Fi(a,t),h={key:i,variable:p,value:f,base:n,scaling:l,scalingVariable:d,ratio:o,index:a};return Di(h,c),s&&Mi(h,c),c},Bi=(t="A",e)=>{let r=k(),{UNIT:n}=r;if(y(t)&&ot(t))return`var(${t})`;let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(Jr.some(_=>t.includes(_))||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let u=`--${Ai(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=_=>a.test(_)?`var(${u}${_}${m})`:_;if(h.includes("+")){let[_,C]=h.split("+"),T=`${x(_)} + ${x(C)}`;return d?`calc((${T}) * -1)`:`calc(${T})`}else if(h.includes("*")){let[_,C]=h.split("*"),T=`${x(_)} * ${x(C)}`;return d?`calc((${T}) * -1)`:`calc(${T})`}else if(h.includes("-")){let[_,C]=h.split("-"),T=`${x(_)} - ${x(C)}`;return d?`calc((${T}) * -1)`:`calc(${T})`}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 _=`var(${u}${h}${m})`;return d?`calc(${_} * -1)`:_}let v=o?o[h]:null;return v?s==="ms"||s==="s"?d+v.val+s:d+v.scaling+s:console.warn("can't find",o,h)},af=(t,e)=>{let r=["+","-","*","/",","].filter(n=>t.includes(n+" "));return r.length?r.map(n=>t.split(n+" ").map(i=>i.trim()).map(i=>Bi(i,e)).join(" "+n+" ")).join(""):t},ye=(t,e,r,n)=>{if(typeof t!="string")return k().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!n&&t.includes("(")){let s=Ne(t);n=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=af(t,r):t=Bi(t,r),{[e]:n?`${n}(${t})`:t}},cf=(t,e)=>Pe[t-e],Ui=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=cf(e,o);return r[s]})};w();var ug=(t,e)=>{let r=k(),{CSS_VARS:n}=r;N(t.value)||(n[t.var]=t.value)},ji=(t,e,r)=>{let n=k(),{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]=Li(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})`},De=(t,e={})=>{let r=k(),{UNIT:n,TIMING:o,CSS_VARS:s}=r,i=t.unit||n.default,{mediaRegenerate:a,sequence:c,scales:f}=t;a||ji(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"})`)}},hr=(t,e,r={})=>{let n=k(),{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}`]={}),ji(d,t[e],r);return}for(let d in l){let h=l[d],m=(Xr(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}};w();var pg=Fr(),no=t=>{let e=k(),r="";for(let n in t)e.__svg_cache[n]||(e.__svg_cache[n]=!0,r+=t[n]);return r},dg=t=>{let e=t.default||t;if(!y(e)){pg&&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},{})},hg=(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},Vi=(t,e)=>{let r=dg(e),{width:n,height:o}=r,s=r.viewBox||`0 0 ${n||24} ${o||24}`,c=hg(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 io={};Ft(io,{appendSVGSprite:()=>sa,appendSvgIconsSprite:()=>aa,applyDocument:()=>na,applyHeadings:()=>df,applyReset:()=>ca,applySpacingSequence:()=>Zi,applyTimingSequence:()=>ra,applyTypographySequence:()=>Qi,checkIfBoxSize:()=>Ji,getColor:()=>Z,getFontFamily:()=>Ki,getFontSizeByKey:()=>Xi,getMediaColor:()=>vt,getMediaTheme:()=>Wt,getShadow:()=>ea,getSpacingBasedOnRatio:()=>Fe,getSpacingByKey:()=>ct,getTheme:()=>Gi,getTimingByKey:()=>Lt,getTimingFunction:()=>Pt,runThroughMedia:()=>pf,setColor:()=>gr,setFont:()=>Wi,setFontFamily:()=>Yi,setGradient:()=>yr,setMediaTheme:()=>qi,setSVG:()=>so,setShadow:()=>br,setSvgIcon:()=>ia,setTheme:()=>Hi,splitSpacedValue:()=>ta});w();var Z=(t,e,r)=>{let n=r||k();if(!y(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(S(t))[o,s,i]=t;else{let u=fr(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=Zr(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},vt=(t,e,r)=>{let n=r||k();if(e||(e=n.globalTheme==="auto"?null:n.globalTheme),!y(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;let o;if(S(t))o=t[0];else{let f=fr(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 Z(t,`@${e}`,r);if(c){if(e)return Z(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]=Z(t,l,r)}return f}}else return n.verbose&&console.warn("Can't find color",t),t},gr=(t,e,r)=>{let n=k();if(y(t)&&ot(t)){let d=t.slice(2);if(t=Z(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,v=h[1]!==void 0?h[1]:"1",_=h[2];_&&(x=Zr(x,_)),t=`rgba(${x}, ${v})`}else{let x=h[2],v=h[1]!==void 0?h[1]:"1";if(x)try{let _=me(h[0]);_&&_.length>=3?t=`rgba(${Zr(_.slice(0,3).join(", "),x)}, ${v})`:t=h[0]}catch{t=h[0]}else t=h[0]}}}if(S(t))return{"@light":gr(t[0],e,"light"),"@dark":gr(t[1],e,"dark")};if(g(t)){let d={};for(let h in t)d[h]=gr(t[h],e,h.slice(0,1)==="@"?h.slice(1):h);return d}let o=`--color-${e}`+(r?`-${r}`:""),s=me(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}},yr=(t,e,r)=>{let n=k();if(y(t)&&ot(t)&&(t=Z(t.slice(2))),S(t))return{"@light":yr(t[0],e,"light"),"@dark":yr(t[0],e,"dark")};if(g(t)){let s={};for(let i in t)s[i]=yr(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}};w();var oo=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?Z(t[a]):t[a]}),e},nn=t=>(t.value||(t.value=oo(t)),t.value),Gi=(t,e)=>{let r=k();if(r.useVariable)return Wt(t,e);let{THEME:n}=r;if(y(t)){let[o,s]=t.split(" "),i=n[o];if(i){if(!s&&!e)return nn(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 nn(a[s]);if(i&&i[s])return nn(i[s]);if(c&&c[s])return nn(c[s])}else if(g(t))return oo(t)},mg=(t,e,r)=>{if(g(e))t.variants.inverse.value=oo(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},gg=(t,e,r,n)=>{let o=Gi(r);n[`&:${e}`]=o,g(r)&&!r.value&&(r.value=o)},yg=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return gg(t,o,s,e),t}),t):void 0},bg=(t,e,r,n)=>{let o=Gi(r);n[`@media (prefers-color-scheme: ${e})`]=o,g(r)&&!r.value&&(r.value=o)},xg=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&bg(t,o,s,e),o==="inverse"&&mg(t,s,e),t}),t):void 0},Sg=(t,e)=>{let r=k(),{helpers:n}=t;return n?(Object.keys(n).map(s=>{let i=n[s];return y(i)?n[s]=r.THEME[i]:nn(n[s]),t}),t):void 0},Hi=(t,e)=>{if(k().useVariable)return qi(t,e);let{state:n,media:o,helpers:s}=t,i=oo(t,e),a=`--theme-${e}`;return yg(t,i),xg(t,i),Sg(t,i),{var:a,value:i,state:n,media:o,helpers:s}};var zi=(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]=zi(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]=zi(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=Z(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=Z(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},qi=(t,e,r,n)=>{let o=k(),{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=zi(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]=qi(l,e,c,n||u)}else if(!a){let u=Z(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)&&ot(t)){let{THEME:c}=o,f=c[t.slice(2)];return Wt(f,n)}return i},ff=t=>{let e=k(),r={};for(let n in t){let o=n.slice(0,1);if(N(t[n])){if(o==="@")continue;o===":"&&(r[`&${n}`]=ff(t[n]))}else r[n]=t[n]}return r},uf=(t,e)=>{let r=e.shift();return t[r]?uf(t[r],e):t},lf=(t,e)=>S(e)?uf(t,e):y(e)&&t[e]?t[e]:t;var Wt=(t,e)=>{let r=k();if(y(t)&&ot(t)&&(t=Wt(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=lf(s,o):s&&e&&(s=lf(s,e)),ff(s)};w();var Wi=(t,e)=>{let r=k(),n=`--font-${e}`;if(!t||S(t)&&!t[0])return;let o;if(t.isVariable){let s=Te(t.url,r.files)||t.url;Zn(s)?o=to(s):o=pr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])o=en(e,t,r.files);else{let s=Te(t.url,r.files)||t.url;o=pr(e,s)}return{var:n,value:t,fontFace:o}},Ki=(t,e)=>{let r=k(),{FONT_FAMILY:n}=r;return tn(e||n,t)},Yi=(t,e)=>{let r=k(),{FONT_FAMILY:n,FONT_FAMILY_TYPES:o}=r,{value:s,type:i}=t;t.isDefault&&(n.default=e),g(s)&&(s=rn(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};w();var pf=t=>{let e=k(),{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;Q(i,{type:f,base:l,ratio:u,range:p,subSequence:d,h1Matches:h,unit:m});let x=n[c],v="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[v]={fontSize:i.base/r.browserDefault+m},!a){hr(t,o);continue}Q(i,{sequence:{},scales:{},templates:{},vars:{}}),qt(i),hr(t,o)}},df=t=>{let e=k();if(t.h1Matches){let r=t.unit,n=Ui(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}}}},Qi=()=>{let t=k(),{TYPOGRAPHY:e}=t;qt(e),df(e),De(e),pf(e)},Xi=t=>{let e=k(),{TYPOGRAPHY:r}=e;return ye(t,"fontSize",r)};w();var _g=t=>{for(let e in t){let r=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:f,unit:l}=t;Q(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:f,unit:l,sequence:{},scales:{},templates:{},vars:{}}),qt(r),hr(t,e)}},Ji=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),n=e.includes("border")||e.includes("outline");return r&&!n},Zi=()=>{let t=k(),{SPACING:e}=t;qt(e),De(e),_g(e)},wg=t=>{let e=k(),{SPACING:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:qt(t)},ct=(t,e="padding",r,n)=>{let o=wg(r);if(y(t)&&!n&&t.includes("(")){let i=Ne(t);n=i[0],t=i[1]}let s=n?[t]:rn(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)=>ye(s[l],e+f+i,o,n);return a[s.length].map((f,l)=>c(f,l))}return ye(t,e,o,n)}},Fe=(t,e,r,n)=>{let o=k(),{SPACING:s}=o,i=r||t[e];if(!n&&y(i)&&i.includes("(")){let a=Ne(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=applyCustomSequence(t);return ct(i,e,a,n)}return ct(i,e,s,n)},ta=t=>{let e=r=>{let n=["+","-","*","/"].includes(r),o=Jr.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(" ")};w();var br=(t,e,r,n)=>{let o=k();if(S(t))return{"@light":br(t[0],e,"light"),"@dark":br(t[1],e,"dark")};if(g(t)){let i={};for(let a in t)i[a]=br(t[a],e,a.startsWith("@")?a.slice(1):a);return i}y(t)&&!Xt.test(t)&&(t=ur(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=Z(a);if(ge(c))return c;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let f=ct(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}},ea=(t,e)=>{let r=k();if(e||(e=r.globalTheme),!y(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;let[n]=S(t)?t:t.split(" "),{SHADOW:o}=r,s=o[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 ra=()=>{let t=k(),{TIMING:e}=t;qt(e),De(e)},Pt=t=>{let e=k(),{TIMING:r}=e;return r[t]||r[Oi(t)]||t},Lt=(t,e="timing")=>{let r=k(),{TIMING:n}=r;return ye(t,e,n)};w();var na=()=>{let t=k(),{DOCUMENT:e,FONT_FAMILY:r,THEME:n,TYPOGRAPHY:o}=t;return Q(e,{theme:n.document,fontFamily:tn(r),fontSize:o.base,lineHeight:o.lineHeight})};w();var oa={document:$},so=(t,e)=>{let r=k();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?Vi(e,t):t},sa=(t,e=oa)=>{let r=k(),n=Object.keys(t).length?{}:r.SVG;for(let o in t)n[o]=r.SVG[o];mf(n,e)},ia=(t,e)=>{let r=k();return r.useIconSprite&&!r.SEMANTIC_ICONS?.[e]?so(t,e):t},aa=(t,e=oa)=>{let r=k(),n=Object.keys(t).length?{}:r.ICONS;for(let o in t)n[o]=r.ICONS[o];mf(n,e)},hf=(t={isRoot:!0})=>{if(!$||!$.createElementNS)return;let e=$.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},mf=(t,e=oa)=>{let r=k(),n=e.document||$;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),no(t);let o=n.querySelector("#svgSprite"),s=no(t);if(o){let i=hf({isRoot:!1});i.innerHTML=s,o.append(...i.children)}else{let i=hf();i&&i.nodeType&&(i.innerHTML=s,n.body.prepend(i))}};w();var ca=(t={})=>{let e=k(),{RESET:r,TYPOGRAPHY:n,DOCUMENT:o}=e;if(r){if(r[":root"]){let c=r,f=n.templates;c.body={...e.useDocumentTheme?Wt("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?Wt("document"):{};return r.html&&at(r.html,a),M(Q(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}})}};w();var vg=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),kg=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),Cg=t=>vg.has(t),be=t=>{let e=t+"";if(Xt.test(e))return e;let r=e.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?e:e.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(ot(o))return`var(${o})`;if(Cg(o)||/^\d/.test(o)||o==="0")return o;let s=Z(o);if(ge(s))return s;let i=ct(o,"border");return i&&i.border?i.border:o}).join(" ")},gf=t=>Xt.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(ot(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=Z(e);return ge(r)?r:e}).join(" "),yf=(t,e)=>ea(t,e),la=(t,e)=>Xt.test(t)?t:ur(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(ot(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=Z(n);if(ge(o)){let i=vt(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=ct(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),fa=(t,e)=>{let r=t.indexOf("(");if(r===-1)return t;let n=t.slice(0,r+1),o=t.slice(r+1,t.lastIndexOf(")")),s=")",a=ur(o).map(c=>(c=c.trim(),c.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||kg.has(l)||l==="transparent"||Xt.test(l))return l;let u=Z(l);return ge(u)?u:l}).join(" ")));return n+a.join(", ")+s},bf=(t,e)=>{let r=k();return t.split(", ").map(n=>ot(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?fa(n,e):r.GRADIENT[t]?{backgroundImage:vt(t,e||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!fr(n)?`url(${n})`:n).join(" ")},xf=t=>y(t)&&t.split(" ").map(e=>ct(e,"gap").gap).join(" "),Eg=t=>{let e=t.split(" ");return e.length?e.map(r=>ot(r)?`var(${r})`:r.length<3||r.includes("ms")?Lt(r).timing||r:Pt(r)?Pt(r):r).join(" "):t},xr=(t,e,r)=>{if(y(t))return t.split(",").map(n=>Lt(n).timing||n).join(",")},ao=t=>{let e=t.split(",");if(e.length)return e.map(Eg).join(",")};function st(t,e,r={},n={}){let o=A.call(this,e||r[t]);if(o==null)return;let s;if(y(o)){if(o.includes("(")){let c=Ne(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=Ji(t);!i&&a&&!n.ratio&&(o=ta(o))}return n.ratio?Fe(r,t,o,s):ct(o,t,void 0,s)}var B=(t,e=null,r)=>st(t,e,r,{ratio:!0}),ua=(t,e,r)=>{if(y(t))return{borderRadius:t.split(" ").map((n,o)=>Fe(e,r,n)[r]).join(" ")}};w();var Og=(t,e)=>b(t)?t():t,Mt=(t,e)=>t,Sf={color:gr,gradient:yr,font:Wi,font_family:Yi,theme:Hi,icons:ia,semantic_icons:Mt,svg:so,svg_data:Mt,typography:Mt,cases:Og,shadow:br,spacing:Mt,media:Mt,grid:Mt,class:Mt,timing:Mt,reset:Mt,unit:Mt,animation:Mt},Ag=(t,e,r)=>{let n=k(),o=t.toLowerCase(),s=n[o]||n[t];if(Sf[o])try{let i=Sf[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")},Tg=(t,e)=>{let r=k(),n=t.toLowerCase();return Object.keys(e).forEach(s=>{try{return Ag(n,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",e[s],s,i)}}),r[n]||r[t]},Rg={},on=(t,e=Rg)=>{let r=k(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:f,globalTheme:l,useDocumentTheme:u,useDefaultConfig:p,SEMANTIC_ICONS:d,semantic_icons:h,files:m,...x}=t;e.newConfig&&(r=of(e.newConfig)),m!==void 0&&(r.files=m),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),c!==void 0&&(r.useFontImport=c),a!==void 0&&(r.useSvgSprite=a),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 v=d||h;v!==void 0&&(r.semantic_icons=v,r.SEMANTIC_ICONS=r.semantic_icons),r.verbose&&console.log(r),r.__svg_cache||(r.__svg_cache={});let _=Object.keys(x),C=new Set(_);if(_.forEach(T=>{let I=T.toLowerCase();I!==T&&C.has(I)&&M(x[I],x[T])}),_.map(T=>{let I=T.toLowerCase();if(!(I!==T&&C.has(I)))return Tg(T,x[T])}),x.TYPOGRAPHY||x.typography)try{Qi()}catch(T){r.verbose&&console.warn("Error applying typography sequence",T)}if(x.SPACING||x.spacing)try{Zi()}catch(T){r.verbose&&console.warn("Error applying spacing sequence",T)}if(x.TIMING||x.timing)try{ra()}catch(T){r.verbose&&console.warn("Error applying timing sequence",T)}return na(),ca(),r};var Ig=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],Pg=["none","forwards","backwards","both"],Ng=["normal","reverse","alternate","alternate-reverse"],Dg=["running","paused"],Fg=t=>/^[\d.]+m?s$/.test(t),pa=(t,e)=>{let{emotion:r}=e.context,{keyframes:n}=r||wt;if(g(t))return{animationName:n(t)};let{ANIMATION:o}=e.context&&e.context.designSystem,s=o[t];return n(s)},$g=(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:Fg(u)?s.push(u):Ig.includes(u)||u.startsWith("cubic-bezier")||u.startsWith("steps(")?i=u:u==="infinite"||/^\d+$/.test(u)?a=u==="infinite"?u:Number(u):Ng.includes(u)?c=u:Pg.includes(u)?f=u:Dg.includes(u)?l=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:f,playState:l}},_f={animation:(t,e)=>{if(y(t)&&t.includes(" ")){let r=$g(t,e);return{animationName:pa(r.name||t,e),animationDuration:r.durations[0]||Lt(e.props.animationDuration||"A").timing,animationDelay:r.durations[1]||Lt(e.props.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Pt(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:pa(t,e),animationDuration:Lt(e.props.animationDuration||"A").timing,animationDelay:Lt(e.props.animationDelay||"0s").timing,animationTimingFunction:Pt(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:pa(t,e)}),animationDuration:t=>({animationDuration:Lt(t).timing}),animationDelay:t=>({animationDelay:Lt(t).timing}),animationTimingFunction:t=>({animationTimingFunction:Pt(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};w();var wf={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})=>B("height",t,e),width:(t,{props:e})=>B("width",t,e),boxSizing:t=>Y(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...st("height",e),...st("width",r||e)}},inlineSize:(t,{props:e})=>B("inlineSize",t,e),blockSize:(t,{props:e})=>B("blockSize",t,e),minWidth:(t,{props:e})=>B("minWidth",t,e),maxWidth:(t,{props:e})=>B("maxWidth",t,e),widthRange:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...st("minWidth",e),...st("maxWidth",r||e)}},minHeight:(t,{props:e})=>B("minHeight",t,e),maxHeight:(t,{props:e})=>B("maxHeight",t,e),heightRange:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...st("minHeight",e),...st("maxHeight",r||e)}},size:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...B("inlineSize",e),...B("blockSize",r||e)}},minBlockSize:(t,{props:e})=>B("minBlockSize",t,e),minInlineSize:(t,{props:e})=>B("minInlineSize",t,e),maxBlockSize:(t,{props:e})=>B("maxBlockSize",t,e),maxInlineSize:(t,{props:e})=>B("maxInlineSize",t,e),minSize:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...st("minInlineSize",e),...st("minBlockSize",r||e)}},maxSize:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...st("maxInlineSize",e),...st("maxBlockSize",r||e)}},borderWidth:(t,{props:e})=>B("borderWidth",t,e),padding:(t,{props:e})=>B("padding",t,e),scrollPadding:(t,{props:e})=>B("scrollPadding",t,e),paddingInline:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...st("paddingInlineStart",e),...st("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...st("paddingBlockStart",e),...st("paddingBlockEnd",r||e)}},paddingTop:(t,{props:e})=>B("paddingBlockStart",t,e),paddingBottom:(t,{props:e})=>B("paddingBlockEnd",t,e),paddingLeft:(t,{props:e})=>B("paddingInlineStart",t,e),paddingRight:(t,{props:e})=>B("paddingInlineEnd",t,e),paddingBlockStart:(t,{props:e})=>B("paddingBlockStart",t,e),paddingBlockEnd:(t,{props:e})=>B("paddingBlockEnd",t,e),paddingInlineStart:(t,{props:e})=>B("paddingInlineStart",t,e),paddingInlineEnd:(t,{props:e})=>B("paddingInlineEnd",t,e),margin:(t,{props:e})=>B("margin",t,e),marginInline:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...st("marginInlineStart",e),...st("marginInlineEnd",r||e)}},marginBlock:(t,{props:e})=>{if(!y(e.marginBlock))return;let[r,n]=e.marginBlock.split(" ");return{...st("marginBlockStart",r),...st("marginBlockEnd",n||r)}},marginInlineStart:(t,{props:e})=>B("marginInlineStart",t,e),marginInlineEnd:(t,{props:e})=>B("marginInlineEnd",t,e),marginBlockStart:(t,{props:e})=>B("marginBlockStart",t,e),marginBlockEnd:(t,{props:e})=>B("marginBlockEnd",t,e),gap:t=>({gap:xf(t)}),columnGap:(t,{props:e})=>Fe(e,"columnGap",t),rowGap:(t,{props:e})=>Fe(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})=>ua(t||e.borderRadius,e,"round"),borderRadius:(t,{props:e})=>ua(t||e.round,e,"borderRadius")};var vf={fontSize:t=>Xi(t)||t,fontFamily:t=>({fontFamily:Ki(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t})};var da={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 kf={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:t.split(" ").map(r=>ct(r,"k").k).join(" ")}},left:t=>ct(t,"left"),top:t=>ct(t,"top"),right:t=>ct(t,"right"),bottom:t=>ct(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>ct(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=>ct(r,"k").k);return{left:e[0],right:e[1]||e[0]}}};w();var Bt=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},Cf={theme:(t,e)=>{let{props:r}=e;if(t)return r.themeModifier?Wt(t,`@${r.themeModifier}`):Wt(t)},color:(t,e)=>{let r=Bt(e);if(t)return{color:vt(t,r)}},background:(t,e)=>{let r=Bt(e);if(t)return y(t)&&t.includes("gradient")?{background:fa(t,r)}:{background:vt(t,r)}},backgroundColor:(t,e)=>{let r=Bt(e);if(t)return{backgroundColor:vt(t,r)}},backgroundImage:(t,e,r,n)=>{let o=Bt(e);if(!t)return;let s=n.files&&n.files[t];return s&&s.content&&(t=s.content.src),{backgroundImage:bf(t,o)}},textStroke:t=>({WebkitTextStroke:gf(t)}),outline:t=>({outline:be(t)}),outlineOffset:(t,{props:e})=>B("outlineOffset",t,e),border:t=>({border:be(t)}),borderColor:(t,e)=>{let r=Bt(e);if(t)return{borderColor:vt(t,r)}},borderTopColor:(t,e)=>{let r=Bt(e);if(t)return{borderTopColor:vt(t,r)}},borderBottomColor:(t,e)=>{let r=Bt(e);if(t)return{borderBottomColor:vt(t,r)}},borderLeftColor:(t,e)=>{let r=Bt(e);if(t)return{borderLeftColor:vt(t,r)}},borderRightColor:(t,e)=>{let r=Bt(e);if(t)return{borderRightColor:vt(t,r)}},borderLeft:t=>({borderLeft:be(t)}),borderTop:t=>({borderTop:be(t)}),borderRight:t=>({borderRight:be(t)}),borderBottom:t=>({borderBottom:be(t)}),shadow:(t,e)=>{let r=Bt(e);if(t)return{boxShadow:yf(t,r)}},boxShadow:(t,e)=>{if(!y(t))return;let[r,n]=t.split("!importan"),o=Bt(e),s=n?" !important":"";return{boxShadow:la(r.trim(),o)+s}},textShadow:(t,{context:e})=>({textShadow:la(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:be(t)})};var Ef={transition:t=>({transition:ao(t)}),transitionDuration:t=>({transitionDuration:xr(t)}),transitionDelay:t=>({transitionDelay:xr(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Pt(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};w();var Of={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 Af={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 sn={..._f,...wf,...vf,...da,...da,...kf,...Cf,...Ef,...Of,...Af};var Tf=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 Lg=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.MEDIA)return;let o=n.designSystem.MEDIA[t.slice(1)],s=Kt(e,r);return{[o?"@media "+(o==="print"?o:`screen and ${o}`):t]:s}},Rf=(t,e,r)=>({[t]:Kt(e,r)}),an=(t,e,r)=>({[`&${t}`]:Kt(e,r)}),Mg=(t,e,r)=>{let{CASES:n}=r.context?.designSystem||{},o=t.slice(1);if(!n?.[o]&&!r.props[o])return Kt(e,r)},Bg=(t,e,r)=>({[t]:e}),Ug=(t,e,r)=>{let n=t.slice(1);if(r.props[n]===!0||r.state[n]||r[n])return Kt(e,r)},jg=(t,e,r)=>{let n=t.slice(1);if(!(r.props[n]===!0||r.state[n]||r[n]))return Kt(e,r)},If=(t,e)=>Kt(t,e),Pf={"@":Lg,":":an,"[":an,"*":an,"+":an,"~":an,"&":Rf,">":Rf,$:Mg,"-":Bg,".":Ug,"!":jg};var ha=He(),Vg=(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)=>Q(u,f[p]),{});n.designSystemClass=l}}else if(i==="true"){let c=A(a,e);Q(n,If(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),!ha&&g(n[i])&&(n[i].label=i)}else if(sn[i]){let c=A(a,e);S(c)&&(c=c.reduce((l,u)=>Q(l,u),{}));let f=sn[i](c,e,e.state,e.context);S(f)&&(f=f.reduce((l,u)=>Q(l,u),{})),f&&s(i,f),!ha&&g(n[i])&&(n[i].label=i)}else if(Tf.has(i)){let c=A(a,e);s(i,{[i]:c}),!ha&&g(n[i])&&(n[i].label=i)}else o[i]=a}return[n,o]},zg=(t,e)=>{let r={};for(let n in t){let o=Pf[n.slice(0,1)];if(o){let s=o(n,t[n],e);s&&at(r,s)}}return r},Kt=(t,e,r={unpack:!0})=>{let[n,o]=Vg(t,e,r),s=zg(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return le(n,s);n._selectors=s}return n},Xk=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};w();var{css:Gg}=wt,eC=(t,e)=>b(e)?e(t):Gg(t);var Nf={symbols:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',logo:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',arrowDownCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-circle"><circle cx="12" cy="12" r="10"/><path d="M8 12l4 4 4-4M12 8v8"/></svg>',arrowDownLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-left"><path d="M17 7L7 17M17 17H7V7"/></svg>',arrowDownRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-right"><path d="M7 7l10 10M17 7v10H7"/></svg>',arrowDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down"><path d="M12 5v14M19 12l-7 7-7-7"/></svg>',arrowLeftCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left-circle"><circle cx="12" cy="12" r="10"/><path d="M12 8l-4 4 4 4M16 12H8"/></svg>',arrowLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>',arrowRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><path d="M5 12h14M12 5l7 7-7 7"/></svg>',arrowRightCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right-circle"><circle cx="12" cy="12" r="10"/><path d="M12 16l4-4-4-4M8 12h8"/></svg>',arrowUpCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-circle"><circle cx="12" cy="12" r="10"/><path d="M16 12l-4-4-4 4M12 16V8"/></svg>',arrowUpLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-left"><path d="M17 17L7 7M7 17V7h10"/></svg>',arrowUpRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-right"><path d="M7 17L17 7M7 7h10v10"/></svg>',arrowUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up"><path d="M12 19V5M5 12l7-7 7 7"/></svg>',checkCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 11-5.93-9.14"/><path d="M22 4L12 14.01l-3-3"/></svg>',check:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"><path d="M20 6L9 17l-5-5"/></svg>',chevronDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><path d="M6 9l6 6 6-6"/></svg>',chevronLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-left"><path d="M15 18l-6-6 6-6"/></svg>',chevronRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><path d="M9 18l6-6-6-6"/></svg>',chevronUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-up"><path d="M18 15l-6-6-6 6"/></svg>',copy:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-copy"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>',eyeOff:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye-off"><path d="M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24M1 1l22 22"/></svg>',eye:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>',info:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>',lock:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-lock"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0110 0v4"/></svg>',minus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-minus"><path d="M5 12h14"/></svg>',sun:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/></svg>',moon:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg>',moreHorizontal:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-horizontal"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg>',moreVertical:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-vertical"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></svg>',send:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-send"><path d="M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"/></svg>',smile:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-smile"><circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01"/></svg>',search:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"/><path d="M21 21l-4.35-4.35"/></svg>',upload:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-upload"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12"/></svg>',video:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-video"><path d="M23 7l-7 5 7 5V7z"/><rect x="1" y="5" width="15" height="14" rx="2" ry="2"/></svg>',x:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><path d="M18 6L6 18M6 6l12 12"/></svg>',star:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>',plus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus"><path d="M12 5v14M5 12h14"/></svg>'};var Df={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"]},Ff={};var Hg={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"}}},qg={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},Wg={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"}}},$f={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...Hg,...qg,...Wg,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var Lf={},Mf={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif"}};var Bf={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 Uf={base:150,ratio:1.333,unit:"ms",subSequence:!0};var ma={version:"0.0.1",COLOR:Df,GRADIENT:Ff,THEME:$f,TYPOGRAPHY:{base:16,ratio:1.25,subSequence:!0,templates:{}},SPACING:{base:16,ratio:1.618,subSequence:!0},FONT:Lf,FONT_FAMILY:Mf,TIMING:Uf,ICONS:Nf,MEDIA:Bf,RESET:{html:{},body:{}},ANIMATION:{fadeIn:{from:{opacity:0},to:{opacity:1}}},DEVICES:{},CASES:{},CLASS:{},SVG:{},GRID:{},SHAPE:{},useReset:!0,useVariable:!0,useFontImport:!0,useIconSprite:!0,useSvgSprite:!0,useDefaultConfig:!0,useDocumentTheme:!0,verbose:!1};var Le={};Ft(Le,{A:()=>Yb,Avatar:()=>Sx,B:()=>Iy,Block:()=>Kg,Box:()=>ya,Br:()=>$y,Button:()=>cx,ButtonSet:()=>px,Caption:()=>wy,Checkbox:()=>Zb,CheckboxHgroup:()=>tx,CircleButton:()=>fx,Clickable:()=>iy,Data:()=>Ny,Dialog:()=>hx,DialogFooter:()=>gx,DialogHeader:()=>mx,DropdownList:()=>wx,DropdownParent:()=>vx,DropdownParentFocus:()=>kx,DropdownSiblingFocus:()=>Cx,FileIcon:()=>Hy,Flex:()=>Qg,Focusable:()=>ay,FocusableComponent:()=>cy,Footnote:()=>Ry,Form:()=>ry,Grid:()=>Jg,Gutter:()=>ty,H1:()=>my,H2:()=>gy,H3:()=>yy,H4:()=>by,H5:()=>xy,H6:()=>Sy,Headline:()=>Ay,Hgroup:()=>Uy,HgroupButton:()=>Vy,HgroupRows:()=>jy,Hoverable:()=>sy,Hr:()=>Fy,I:()=>Py,Icon:()=>zy,IconButton:()=>dx,IconText:()=>Gy,Iframe:()=>ny,Img:()=>ey,Inline:()=>Yg,InlineFlex:()=>Xg,InlineGrid:()=>Zg,Input:()=>Xb,Italic:()=>Ey,KangorooButton:()=>ux,Li:()=>Ly,Link:()=>Cu,Notification:()=>Ex,NumberInput:()=>Jb,Ol:()=>By,P:()=>_y,Picture:()=>uy,Radio:()=>ex,RadioHgroup:()=>rx,Range:()=>_x,RouteLink:()=>Qb,RouterLink:()=>Eu,SHAPES:()=>ly,Select:()=>ax,SquareButton:()=>lx,Strong:()=>vy,Subhead:()=>Ty,Svg:()=>py,Text:()=>hy,Textarea:()=>sx,TextareaWithButton:()=>ix,Theme:()=>fy,Title:()=>Oy,Toggle:()=>nx,ToggleHgroup:()=>ox,Tooltip:()=>yx,TooltipHidden:()=>bx,TooltipParent:()=>xx,U:()=>ky,Ul:()=>My,Underline:()=>Cy,Video:()=>dy,depth:()=>ga,getSystemGlobalTheme:()=>lo});var Kg={display:"block"},Yg={display:"inline"},Qg={display:"flex"},Xg={display:"inline-flex"},Jg={display:"grid"},Zg={display:"inline-grid"},ty={boxSize:"C1"};var ey={tag:"img",attr:{src:t=>{let{props:e,context:r}=t,n=(e.preSrc||"")+Gt(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 ry={tag:"form"};var ny={tag:"iframe",position:"relative",minWidth:"H",minHeight:"H"};var oy={appearance:"none",border:"none",cursor:"pointer",fontFamily:"inherit"},sy={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}}},iy={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},ay={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:({props:t})=>t.tabIndex}},cy={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:oy};var jf={transition:t=>({transition:ao(t)}),transitionDuration:t=>({transitionDuration:xr(t)}),transitionDelay:t=>({transitionDelay:xr(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Pt(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};var Nt=k(),ga={4:{boxShadow:`rgba(0,0,0,.10) 0 2${Nt.UNIT.default} 4${Nt.UNIT.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${Nt.UNIT.default} 6${Nt.UNIT.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${Nt.UNIT.default} 10${Nt.UNIT.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${Nt.UNIT.default} 16${Nt.UNIT.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${Nt.UNIT.default} 26${Nt.UNIT.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${Nt.UNIT.default} 42${Nt.UNIT.default}`}},Sr=({props:t})=>Z(t.shapeDirectionColor)||Z(t.borderColor)||Z(t.backgroundColor)||Z(t.background),co=({props:t,deps:e})=>{let r=jf.transition(t.transition,{props:t,deps:e});return r&&r.transition},ly={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:Sr({props:t,deps:e}),transition:co({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:Sr({props:t,deps:e}),transition:co({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:Sr({props:t,deps:e}),transition:co({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:co({props:t,deps:e}),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Sr({props:t,deps:e})} 25%, transparent 25%), linear-gradient(315deg, ${Sr({props:t,deps:e})} 25%, transparent 25%)`},"&:after":{background:Sr({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)"}}}};w();var lo=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n==="auto"?null:n},fy={deps:{depth:ga},classlist:{depth:({props:t,deps:e})=>!Y(t.depth)&&e.depth[t.depth]}};var uy={deps:{getSystemGlobalTheme:lo},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:lo},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 py={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 dy={tag:"video",controls:!0,childExtends:{tag:"source"}};var hy={},my={tag:"h1"},gy={tag:"h2"},yy={tag:"h3"},by={tag:"h4"},xy={tag:"h5"},Sy={tag:"h6"},_y={tag:"p"},wy={tag:"caption"},vy={tag:"strong",fontWeight:"700"},ky={tag:"u"},Cy={tag:"u"},Ey={tag:"i"},Oy={},Ay={tag:"h6",fontSize:"B",fontWeight:500},Ty={tag:"span",fontSize:"Z1"},Ry={tag:"span",fontSize:"Z"},Iy={tag:"b"},Py={tag:"i"},Ny={tag:"data"};var Dy=t=>{if(!t.context)return;let{props:e,__ref:r}=t;r.__class=Kt(e,t,{unpack:!1})},ya={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:Dy},Fy={tag:"hr",margin:"C1 0"},$y={tag:"br"},Ly={tag:"li"},My={tag:"ul",childExtends:{extends:"Li"}},By={tag:"ol",childExtends:{extends:"Li"}};var Uy={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{margin:"0",color:"paragraph"}},jy={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},Vy={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var zy={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=O=>{let{props:E}=O,W=E[".isActive"];if(W)return O.call("exec",W.name||W.icon)},l=(O,E,W)=>{let{SEMANTIC_ICONS:R}=W&&W.designSystem,{toCamelCase:D}=W&&W.utils,q=u(O,E),tt=D(q).split(/([a-z])([A-Z])/g),bt=tt[1]?tt[0]:q.split(".")[0].split(" ")[0],Dt=R&&R[bt];if(Dt){let se=q.includes(".")?"sfsymbols."+q.split(".").slice(1).join("."):"sfsymbols";return q=Dt[se]||Dt[q.split(".")[0].split(" ")[0]],{tag:"span",semantic_symbols:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${q}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(O,E)=>{let{key:W,props:R}=O,D=O.call("exec",R.name||R.icon||W,O);return O.call("isString",D)&&D.includes("{{")&&(D=O.call("replaceLiteralsWithObjectFields",D)),O.call("isString",D)?D:W},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 v=o.props,_=v[".isActive"];o&&v&&v.isActive&&_&&_.icon&&(x=t.call("exec",_.icon||_.Icon.name||_.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 T=s[C],I=o&&o.props&&o.props.src||n.src;return{spriteId:i&&C,src:T||I||s.noIcon}},attr:{viewBox:"0 0 24 24"}},Gy={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},Hy={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Da={};Ft(Da,{default:()=>Kb,getActiveRoute:()=>Na,lastLevel:()=>So,lastPathname:()=>xo,matchRoute:()=>Ra,parseQuery:()=>Ia,parseRoutePattern:()=>Ta,router:()=>ee,runGuards:()=>Pa});w();w();w();w();w();var qy=(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]},Vf=(t,e,r,n)=>{let o=qy(t,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)}},zf=(t,e)=>{let{node:r,on:n,props:o}=t,s=new Set;for(let i in n)En.has(i)||(s.add(i),Vf(i,t,r,e));if(o){for(let i in o)if(i.length>2&&i.charCodeAt(0)===111&&i.charCodeAt(1)===110&&b(o[i])){let a=i[2];if(a!==a.toUpperCase())continue;let c=a.toLowerCase()+i.slice(3);if(s.has(c)||En.has(c))continue;Vf(c,t,r,e)}}};var Gf={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"}}},gt=(t,e,r)=>{let o;t&&typeof t=="string"&&(o=Gf.en[t]);let s=o?`
28
+ }<\/script>`};w();var mt=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,r=>e[r])},Ti=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}="${mt(r)}"`).join(" "),vm=(t,e)=>{if(!e){let n=(()=>{let o=t?.favicon||t?.favicons;return o?typeof o=="string"?`<link rel="icon" href="${mt(o)}">`:Array.isArray(o)?o.map(s=>typeof s=="string"?`<link rel="icon" href="${mt(s)}">`:`<link ${Ti({rel:"icon",...s})}>`).join(`
29
+ `):`<link ${Ti({rel:"icon",...o})}>`:'<link rel="icon" href="/favicon.ico">'})();return['<meta charset="UTF-8">',`<title>${mt(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
+ `)}return Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1)return n;if(o==="title")return n.push(`<title>${mt(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${mt(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${mt(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="${mt(l)}">`);else if(typeof l=="object"){let u=Ti(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}="${mt(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}="${mt(f)}" content="${mt(l)}">`);else if(Array.isArray(l))l.forEach(p=>{if(typeof p=="string"||typeof p=="number"||typeof p=="boolean")n.push(`<meta ${u}="${mt(f)}" content="${mt(p)}">`);else if(typeof p=="object"){let d=Object.entries(p).filter(([h,m])=>m!==void 0).map(([h,m])=>`${h}="${mt(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}="${mt(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
+ `)},km=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http");function Cm(t,e){if(!e||typeof e!="object")return t;let r=o=>{if(!km(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 Em(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=Cm(o,t.files),o}var Om=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},Am=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)}},Tm=t=>t.replace(/[^a-zA-Z0-9_]/g,""),Ri=t=>t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,r){return r===0?e.toLowerCase():e.toUpperCase()}).replaceAll(/\s+/g,""),Rm=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),Ii=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Im=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},rn=t=>{if(S(t))return t;if(y(t))return t.split(" ");if(g(t))return Object.values(t);if(lt(t))return[t]};w();var Ni={};$t(Ni,{CLASS:()=>ig,animation:()=>Zm,breakpoints:()=>Xm,cases:()=>Jm,color:()=>jm,devices:()=>Qm,document:()=>Ym,font:()=>Dm,font_face:()=>Lm,font_family:()=>Fm,font_family_types:()=>$m,gradient:()=>Vm,grid:()=>og,icons:()=>Hm,media:()=>Mm,reset:()=>ag,semantic_icons:()=>Wm,sequence:()=>Re,shadow:()=>qm,spacing:()=>Um,svg:()=>tg,svg_data:()=>eg,templates:()=>rg,theme:()=>zm,timing:()=>Km,typography:()=>Pi,unit:()=>Pm});var Re={"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 Pm={default:"em"};var Nm={browserDefault:16,base:16,type:"font-size",ratio:Re["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},Pi=Nm;var Dm={};var Fm={},$m={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},Lm={};var Mm={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var Bm={base:Pi.base,type:"spacing",ratio:Re.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},Um=Bm;var jm={},Vm={};var zm={};var qm={};var Hm={},Wm={};var Gm={default:150,base:150,type:"timing",ratio:Re["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},Km=Gm;var Ym={};var Xm={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},Qm={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 Jm={};var Zm={};var tg={},eg={};var rg={};var ng={},og=ng;var sg={},ig=sg;var ag={};var cg={},lg={},nn=Ni,on={},fg=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase()),ug=t=>t.replace(/([A-Z])/g,"_$1").toUpperCase();for(let t in nn){let e=t.toLowerCase();on[e]=nn[t];let r=fg(e);r!==e&&(on[r]=nn[t]),e!==t&&(on[t]=nn[t]);let n=ug(t);n!==t&&(on[n]=nn[t])}var Di={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",CSS_VARS:cg,CSS_MEDIA_VARS:lg,...on},pg=z(Di),Ie={active:"0",0:Di},_v=t=>(Ct(t)&&(Ie.active=t),Ie[t||Ie.active]),k=t=>Ie[t||Ie.active]||Di,of=t=>{if(g(t))return Ie.active="1",Ie[1]=U(t,z(pg)),t};var Pe={"-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"},Fi=(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},Ne=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},$i=(t,e)=>{let{base:r,type:n,unit:o}=e,s=(Qr(o)?1:r)+o;if(t===0)return s;let i="--"+(n&&n.replace(".","-")),a=`${i}-ratio`;if(t>0){let c=Pe[t-1];return`calc(var(${i}-${c}) * var(${a}))`}if(t<0){let c=Pe[t+1];return`calc(var(${i}-${c}) / var(${a}))`}},sf=(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}))`},Li=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},Mi=(t,e)=>Li(t,e).map(r=>r/t),Bi=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,f=~~(o*s)-~~o,l,[u,p,d]=Li(o,s);f>16?l=[u,p,d]:l=[u,d],l.forEach((h,m)=>{let x=~~(h/n*1e3)/1e3,_=i+(m+1),v=a+(m+1)/10,E=sf(m+1,l,i,e),I={key:r+(m+1),variable:_,value:h,scaling:x,scalingVariable:E,index:v};Fi(I,e)})},dg=(t,e,r)=>e*Math.pow(r,t),Wt=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=Pe[f],u=dg(f,r,n),p=~~(u/r*100)/100,d=a+l,h=$i(f,t),m={key:l,variable:d,value:u,base:r,scaling:p,scalingVariable:h,ratio:n,index:f};Fi(m,t),s&&Bi(m,t)}return t},hg=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=y(e)?e:Pe[e],a=y(e)?Object.entries(Pe).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=$i(a,t),h={key:i,variable:p,value:f,base:n,scaling:l,scalingVariable:d,ratio:o,index:a};return Fi(h,c),s&&Bi(h,c),c},Ui=(t="A",e)=>{let r=k(),{unit:n}=r;if(y(t)&&ot(t))return`var(${t})`;let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(Jr.some(v=>t.includes(v))||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let u=`--${Ii(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=v=>a.test(v)?`var(${u}${v}${m})`:v;if(h.includes("+")){let[v,E]=h.split("+"),I=`${x(v)} + ${x(E)}`;return d?`calc((${I}) * -1)`:`calc(${I})`}else if(h.includes("*")){let[v,E]=h.split("*"),I=`${x(v)} * ${x(E)}`;return d?`calc((${I}) * -1)`:`calc(${I})`}else if(h.includes("-")){let[v,E]=h.split("-"),I=`${x(v)} - ${x(E)}`;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 v=`var(${u}${h}${m})`;return d?`calc(${v} * -1)`:v}let _=o?o[h]:null;return _?s==="ms"||s==="s"?d+_.val+s:d+_.scaling+s:console.warn("can't find",o,h)},af=(t,e)=>{let r=["+","-","*","/",","].filter(n=>t.includes(n+" "));return r.length?r.map(n=>t.split(n+" ").map(i=>i.trim()).map(i=>Ui(i,e)).join(" "+n+" ")).join(""):t},ye=(t,e,r,n)=>{if(typeof t!="string")return k().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!n&&t.includes("(")){let s=Ne(t);n=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=af(t,r):t=Ui(t,r),{[e]:n?`${n}(${t})`:t}},cf=(t,e)=>Pe[t-e],ji=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=cf(e,o);return r[s]})};w();var mg=(t,e)=>{let r=k(),{CSS_VARS:n}=r;P(t.value)||(n[t.var]=t.value)},Vi=(t,e,r)=>{let n=k(),{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]=Mi(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})`},De=(t,e={})=>{let r=k(),{unit:n,timing:o,CSS_VARS:s}=r,i=t.unit||n.default,{mediaRegenerate:a,sequence:c,scales:f}=t;a||Vi(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"})`)}},hr=(t,e,r={})=>{let n=k(),{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}`]={}),Vi(d,t[e],r);return}for(let d in l){let h=l[d],m=(Qr(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}};w();var gg=Fr(),so=t=>{let e=k(),r="";for(let n in t)e.__svg_cache[n]||(e.__svg_cache[n]=!0,r+=t[n]);return r},yg=t=>{let e=t.default||t;if(!y(e)){gg&&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},{})},bg=(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},zi=(t,e)=>{let r=yg(e),{width:n,height:o}=r,s=r.viewBox||`0 0 ${n||24} ${o||24}`,c=bg(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 lo={};$t(lo,{appendSVGSprite:()=>sa,appendSvgIconsSprite:()=>aa,applyDocument:()=>na,applyHeadings:()=>df,applyReset:()=>ca,applySpacingSequence:()=>Zi,applyTimingSequence:()=>ra,applyTypographySequence:()=>Xi,checkIfBoxSize:()=>Ji,getColor:()=>Z,getFontFamily:()=>Yi,getFontSizeByKey:()=>Qi,getMediaColor:()=>vt,getMediaTheme:()=>Gt,getShadow:()=>ea,getSpacingBasedOnRatio:()=>Fe,getSpacingByKey:()=>ct,getTheme:()=>Hi,getTimingByKey:()=>Mt,getTimingFunction:()=>Pt,runThroughMedia:()=>pf,setColor:()=>gr,setFont:()=>Ki,setFontFamily:()=>ao,setGradient:()=>yr,setMediaTheme:()=>Gi,setSVG:()=>co,setShadow:()=>br,setSvgIcon:()=>ia,setTheme:()=>Wi,splitSpacedValue:()=>ta});w();var Z=(t,e,r)=>{let n=r||k();if(!y(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(S(t))[o,s,i]=t;else{let u=fr(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=Zr(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},vt=(t,e,r)=>{let n=r||k();if(e||(e=n.globalTheme==="auto"?null:n.globalTheme),!y(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;let o;if(S(t))o=t[0];else{let f=fr(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 Z(t,`@${e}`,r);if(c){if(e)return Z(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]=Z(t,l,r)}return f}}else return n.verbose&&console.warn("Can't find color",t),t},gr=(t,e,r)=>{let n=k();if(y(t)&&ot(t)){let d=t.slice(2);if(t=Z(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",v=h[2];v&&(x=Zr(x,v)),t=`rgba(${x}, ${_})`}else{let x=h[2],_=h[1]!==void 0?h[1]:"1";if(x)try{let v=me(h[0]);v&&v.length>=3?t=`rgba(${Zr(v.slice(0,3).join(", "),x)}, ${_})`:t=h[0]}catch{t=h[0]}else t=h[0]}}}if(S(t))return{"@light":gr(t[0],e,"light"),"@dark":gr(t[1],e,"dark")};if(g(t)){let d={};for(let h in t)d[h]=gr(t[h],e,h.slice(0,1)==="@"?h.slice(1):h);return d}let o=`--color-${e}`+(r?`-${r}`:""),s=me(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}},yr=(t,e,r)=>{let n=k();if(y(t)&&ot(t)&&(t=Z(t.slice(2))),S(t))return{"@light":yr(t[0],e,"light"),"@dark":yr(t[0],e,"dark")};if(g(t)){let s={};for(let i in t)s[i]=yr(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}};w();var io=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?Z(t[a]):t[a]}),e},sn=t=>(t.value||(t.value=io(t)),t.value),Hi=(t,e)=>{let r=k();if(r.useVariable)return Gt(t,e);let n=r.theme;if(y(t)){let[o,s]=t.split(" "),i=n[o];if(i){if(!s&&!e)return sn(i);t=[o,s||e]}}if(P(t)&&t[1]){let o=t[0],s=t[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return sn(a[s]);if(i&&i[s])return sn(i[s]);if(c&&c[s])return sn(c[s])}else if(g(t))return io(t)},xg=(t,e,r)=>{if(g(e))t.variants.inverse.value=io(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},Sg=(t,e,r,n)=>{let o=Hi(r);n[`&:${e}`]=o,g(r)&&!r.value&&(r.value=o)},_g=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return Sg(t,o,s,e),t}),t):void 0},wg=(t,e,r,n)=>{let o=Hi(r);n[`@media (prefers-color-scheme: ${e})`]=o,g(r)&&!r.value&&(r.value=o)},vg=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&wg(t,o,s,e),o==="inverse"&&xg(t,s,e),t}),t):void 0},kg=(t,e)=>{let r=k(),{helpers:n}=t;return n?(Object.keys(n).map(s=>{let i=n[s];return y(i)?n[s]=r.theme[i]:sn(n[s]),t}),t):void 0},Wi=(t,e)=>{if(k().useVariable)return Gi(t,e);let{state:n,media:o,helpers:s}=t,i=io(t,e),a=`--theme-${e}`;return _g(t,i),vg(t,i),kg(t,i),{var:a,value:i,state:n,media:o,helpers:s}};var qi=(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=>P(u?.[c]));if(f==="."&&l){let u=c.slice(1),p={};for(let d in t)P(t[d]?.[c])&&(p[d]=t[d][c]);i[c]=qi(p,`${e}-${u}`,r)}else if(f===":"&&l){let u=c.replace(/^:+/,""),p={};for(let d in t)P(t[d]?.[c])&&(p[d]=t[d][c]);i[c]=qi(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=Z(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=Z(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},Gi=(t,e,r,n)=>{let o=k(),{CSS_VARS:s}=o,i={value:t},a=!r&&!n;if(P(t)){if(a&&o.useVariable){let c={};for(let f in t)f.startsWith("@")&&P(t[f])&&(c[f.slice(1)]=t[f]);if(Object.keys(c).length){let f=qi(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]=Gi(l,e,c,n||u)}else if(!a){let u=Z(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)&&ot(t)){let f=o.theme[t.slice(2)];return Gt(f,n)}return i},ff=t=>{let e=k(),r={};for(let n in t){let o=n.slice(0,1);if(P(t[n])){if(o==="@")continue;o===":"&&(r[`&${n}`]=ff(t[n]))}else r[n]=t[n]}return r},uf=(t,e)=>{let r=e.shift();return t[r]?uf(t[r],e):t},lf=(t,e)=>S(e)?uf(t,e):y(e)&&t[e]?t[e]:t;var Gt=(t,e)=>{let r=k();if(y(t)&&ot(t)&&(t=Gt(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=lf(s,o):s&&e&&(s=lf(s,e)),ff(s)};w();var Ki=(t,e)=>{let r=k(),n=`--font-${e}`;if(!t||S(t)&&!t[0])return;let o;if(t.isVariable){let s=Te(t.url,r.files)||t.url;eo(s)?o=ro(s):o=pr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])o=en(e,t,r.files);else{let s=Te(t.url,r.files)||t.url;o=pr(e,s)}return{var:n,value:t,fontFace:o}},Yi=(t,e)=>{let r=k(),{font_family:n}=r;return tn(e||n,t)},ao=(t,e)=>{let r=k(),{font_family:n,font_family_types:o}=r,{value:s,type:i}=t;t.isDefault&&(n.default=e),g(s)&&(s=rn(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};w();var pf=t=>{let e=k(),{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;X(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){hr(t,o);continue}X(i,{sequence:{},scales:{},templates:{},vars:{}}),Wt(i),hr(t,o)}},df=t=>{let e=k();if(t.h1Matches){let r=t.unit,n=ji(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}}}},Xi=()=>{let t=k(),{typography:e}=t;Wt(e),df(e),De(e),pf(e)},Qi=t=>{let e=k(),{typography:r}=e;return ye(t,"fontSize",r)};w();var Cg=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;X(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:f,unit:l,sequence:{},scales:{},templates:{},vars:{}}),Wt(r),hr(t,e)}},Ji=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),n=e.includes("border")||e.includes("outline");return r&&!n},Zi=()=>{let t=k(),{spacing:e}=t;Wt(e),De(e),Cg(e)},Eg=t=>{let e=k(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:Wt(t)},ct=(t,e="padding",r,n)=>{let o=Eg(r);if(y(t)&&!n&&t.includes("(")){let i=Ne(t);n=i[0],t=i[1]}let s=n?[t]:rn(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)=>ye(s[l],e+f+i,o,n);return a[s.length].map((f,l)=>c(f,l))}return ye(t,e,o,n)}},Fe=(t,e,r,n)=>{let o=k(),{spacing:s}=o,i=r||t[e];if(!n&&y(i)&&i.includes("(")){let a=Ne(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=applyCustomSequence(t);return ct(i,e,a,n)}return ct(i,e,s,n)},ta=t=>{let e=r=>{let n=["+","-","*","/"].includes(r),o=Jr.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(" ")};w();var br=(t,e,r,n)=>{let o=k();if(S(t))return{"@light":br(t[0],e,"light"),"@dark":br(t[1],e,"dark")};if(g(t)){let i={};for(let a in t)i[a]=br(t[a],e,a.startsWith("@")?a.slice(1):a);return i}y(t)&&!Qt.test(t)&&(t=ur(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=Z(a);if(ge(c))return c;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let f=ct(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}},ea=(t,e)=>{let r=k();if(e||(e=r.globalTheme),!y(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(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 ra=()=>{let t=k(),{timing:e}=t;Wt(e),De(e)},Pt=t=>{let e=k(),{timing:r}=e;return r[t]||r[Ri(t)]||t},Mt=(t,e="timing")=>{let r=k(),{timing:n}=r;return ye(t,e,n)};w();var na=()=>{let t=k(),{document:e,font_family:r,theme:n,typography:o}=t;return X(e,{theme:n.document,fontFamily:tn(r),fontSize:o.base,lineHeight:o.lineHeight})};w();var oa={document:L},co=(t,e)=>{let r=k();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?zi(e,t):t},sa=(t,e=oa)=>{let r=k(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=r.svg[o];mf(n,e)},ia=(t,e)=>{let r=k();return r.useIconSprite&&!r.semantic_icons?.[e]?co(t,e):t},aa=(t,e=oa)=>{let r=k(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=r.icons[o];mf(n,e)},hf=(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},mf=(t,e=oa)=>{let r=k(),n=e.document||L;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),so(t);let o=n.querySelector("#svgSprite"),s=so(t);if(o){let i=hf({isRoot:!1});i.innerHTML=s,o.append(...i.children)}else{let i=hf();i&&i.nodeType&&(i.innerHTML=s,n.body.prepend(i))}};w();var ca=(t={})=>{let e=k(),{reset:r,typography:n,document:o}=e;if(r){if(r[":root"]){let c=r,f=n.templates;c.body={...e.useDocumentTheme?Gt("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?Gt("document"):{};return r.html&&at(r.html,a),U(X(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}})}};w();var Og=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),Ag=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),Tg=t=>Og.has(t),be=t=>{let e=t+"";if(Qt.test(e))return e;let r=e.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?e:e.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(ot(o))return`var(${o})`;if(Tg(o)||/^\d/.test(o)||o==="0")return o;let s=Z(o);if(ge(s))return s;let i=ct(o,"border");return i&&i.border?i.border:o}).join(" ")},gf=t=>Qt.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(ot(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=Z(e);return ge(r)?r:e}).join(" "),yf=(t,e)=>ea(t,e),la=(t,e)=>Qt.test(t)?t:ur(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(ot(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=Z(n);if(ge(o)){let i=vt(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=ct(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),fa=(t,e)=>{let r=t.indexOf("(");if(r===-1)return t;let n=t.slice(0,r+1),o=t.slice(r+1,t.lastIndexOf(")")),s=")",a=ur(o).map(c=>(c=c.trim(),c.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||Ag.has(l)||l==="transparent"||Qt.test(l))return l;let u=Z(l);return ge(u)?u:l}).join(" ")));return n+a.join(", ")+s},bf=(t,e)=>{let r=k();return t.split(", ").map(n=>ot(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?fa(n,e):r.gradient[t]?{backgroundImage:vt(t,e||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!fr(n)?`url(${n})`:n).join(" ")},xf=t=>y(t)&&t.split(" ").map(e=>ct(e,"gap").gap).join(" "),Rg=t=>{let e=t.split(" ");return e.length?e.map(r=>ot(r)?`var(${r})`:r.length<3||r.includes("ms")?Mt(r).timing||r:Pt(r)?Pt(r):r).join(" "):t},xr=(t,e,r)=>{if(y(t))return t.split(",").map(n=>Mt(n).timing||n).join(",")},fo=t=>{let e=t.split(",");if(e.length)return e.map(Rg).join(",")};function st(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=Ne(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=Ji(t);!i&&a&&!n.ratio&&(o=ta(o))}return n.ratio?Fe(r,t,o,s):ct(o,t,void 0,s)}var j=(t,e=null,r)=>st(t,e,r,{ratio:!0}),ua=(t,e,r)=>{if(y(t))return{borderRadius:t.split(" ").map((n,o)=>Fe(e,r,n)[r]).join(" ")}};w();var Ig=(t,e)=>b(t)?t():t,Nt=(t,e)=>t,Sf={color:gr,gradient:yr,font:Ki,font_family:ao,fontfamily:ao,theme:Wi,icons:ia,semantic_icons:Nt,semanticicons:Nt,svg:co,svg_data:Nt,typography:Nt,cases:Ig,shadow:br,spacing:Nt,media:Nt,grid:Nt,class:Nt,timing:Nt,reset:Nt,unit:Nt,animation:Nt},Pg=(t,e,r)=>{let n=k(),o=t.toLowerCase(),s=n[o]||n[t];if(Sf[o])try{let i=Sf[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")},Ng=(t,e)=>{let r=k(),n=t.toLowerCase();return Object.keys(e).forEach(s=>{try{return Pg(n,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",e[s],s,i)}}),r[n]||r[t]},Dg={},an=(t,e=Dg)=>{let r=k(),{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=of(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 v=d||h||m;v!==void 0&&(r.semantic_icons=v,r.semanticIcons=r.semantic_icons,r.SEMANTIC_ICONS=r.semantic_icons),r.verbose&&console.log(r),r.__svg_cache||(r.__svg_cache={});let E=Object.keys(_),I=new Set(E);if(E.forEach(A=>{let T=A.toLowerCase();T!==A&&I.has(T)&&U(_[T],_[A])}),E.map(A=>{let T=A.toLowerCase();if(!(T!==A&&I.has(T)))return Ng(A,_[A])}),_.typography||_.TYPOGRAPHY)try{Xi()}catch(A){r.verbose&&console.warn("Error applying typography sequence",A)}if(_.spacing||_.SPACING)try{Zi()}catch(A){r.verbose&&console.warn("Error applying spacing sequence",A)}if(_.timing||_.TIMING)try{ra()}catch(A){r.verbose&&console.warn("Error applying timing sequence",A)}return na(),ca(),r};var Fg=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],$g=["none","forwards","backwards","both"],Lg=["normal","reverse","alternate","alternate-reverse"],Mg=["running","paused"],Bg=t=>/^[\d.]+m?s$/.test(t),pa=(t,e)=>{let{emotion:r}=e.context,{keyframes:n}=r||wt;if(g(t))return{animationName:n(t)};let{ANIMATION:o}=e.context&&e.context.designSystem,s=o[t];return n(s)},Ug=(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:Bg(u)?s.push(u):Fg.includes(u)||u.startsWith("cubic-bezier")||u.startsWith("steps(")?i=u:u==="infinite"||/^\d+$/.test(u)?a=u==="infinite"?u:Number(u):Lg.includes(u)?c=u:$g.includes(u)?f=u:Mg.includes(u)?l=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:f,playState:l}},_f={animation:(t,e)=>{if(y(t)&&t.includes(" ")){let r=Ug(t,e);return{animationName:pa(r.name||t,e),animationDuration:r.durations[0]||Mt(e.props.animationDuration||"A").timing,animationDelay:r.durations[1]||Mt(e.props.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Pt(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:pa(t,e),animationDuration:Mt(e.props.animationDuration||"A").timing,animationDelay:Mt(e.props.animationDelay||"0s").timing,animationTimingFunction:Pt(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:pa(t,e)}),animationDuration:t=>({animationDuration:Mt(t).timing}),animationDelay:t=>({animationDelay:Mt(t).timing}),animationTimingFunction:t=>({animationTimingFunction:Pt(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};w();var wf={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})=>j("height",t,e),width:(t,{props:e})=>j("width",t,e),boxSizing:t=>Y(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...st("height",e),...st("width",r||e)}},inlineSize:(t,{props:e})=>j("inlineSize",t,e),blockSize:(t,{props:e})=>j("blockSize",t,e),minWidth:(t,{props:e})=>j("minWidth",t,e),maxWidth:(t,{props:e})=>j("maxWidth",t,e),widthRange:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...st("minWidth",e),...st("maxWidth",r||e)}},minHeight:(t,{props:e})=>j("minHeight",t,e),maxHeight:(t,{props:e})=>j("maxHeight",t,e),heightRange:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...st("minHeight",e),...st("maxHeight",r||e)}},size:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...j("inlineSize",e),...j("blockSize",r||e)}},minBlockSize:(t,{props:e})=>j("minBlockSize",t,e),minInlineSize:(t,{props:e})=>j("minInlineSize",t,e),maxBlockSize:(t,{props:e})=>j("maxBlockSize",t,e),maxInlineSize:(t,{props:e})=>j("maxInlineSize",t,e),minSize:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...st("minInlineSize",e),...st("minBlockSize",r||e)}},maxSize:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...st("maxInlineSize",e),...st("maxBlockSize",r||e)}},borderWidth:(t,{props:e})=>j("borderWidth",t,e),padding:(t,{props:e})=>j("padding",t,e),scrollPadding:(t,{props:e})=>j("scrollPadding",t,e),paddingInline:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...st("paddingInlineStart",e),...st("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...st("paddingBlockStart",e),...st("paddingBlockEnd",r||e)}},paddingTop:(t,{props:e})=>j("paddingBlockStart",t,e),paddingBottom:(t,{props:e})=>j("paddingBlockEnd",t,e),paddingLeft:(t,{props:e})=>j("paddingInlineStart",t,e),paddingRight:(t,{props:e})=>j("paddingInlineEnd",t,e),paddingBlockStart:(t,{props:e})=>j("paddingBlockStart",t,e),paddingBlockEnd:(t,{props:e})=>j("paddingBlockEnd",t,e),paddingInlineStart:(t,{props:e})=>j("paddingInlineStart",t,e),paddingInlineEnd:(t,{props:e})=>j("paddingInlineEnd",t,e),margin:(t,{props:e})=>j("margin",t,e),marginInline:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...st("marginInlineStart",e),...st("marginInlineEnd",r||e)}},marginBlock:(t,{props:e})=>{if(!y(e.marginBlock))return;let[r,n]=e.marginBlock.split(" ");return{...st("marginBlockStart",r),...st("marginBlockEnd",n||r)}},marginInlineStart:(t,{props:e})=>j("marginInlineStart",t,e),marginInlineEnd:(t,{props:e})=>j("marginInlineEnd",t,e),marginBlockStart:(t,{props:e})=>j("marginBlockStart",t,e),marginBlockEnd:(t,{props:e})=>j("marginBlockEnd",t,e),gap:t=>({gap:xf(t)}),columnGap:(t,{props:e})=>Fe(e,"columnGap",t),rowGap:(t,{props:e})=>Fe(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})=>ua(t||e.borderRadius,e,"round"),borderRadius:(t,{props:e})=>ua(t||e.round,e,"borderRadius")};var vf={fontSize:t=>Qi(t)||t,fontFamily:t=>({fontFamily:Yi(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t})};var da={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 kf={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:t.split(" ").map(r=>ct(r,"k").k).join(" ")}},left:t=>ct(t,"left"),top:t=>ct(t,"top"),right:t=>ct(t,"right"),bottom:t=>ct(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>ct(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=>ct(r,"k").k);return{left:e[0],right:e[1]||e[0]}}};w();var Bt=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},Cf={theme:(t,e)=>{let{props:r}=e;if(t)return r.themeModifier?Gt(t,`@${r.themeModifier}`):Gt(t)},color:(t,e)=>{let r=Bt(e);if(t)return{color:vt(t,r)}},background:(t,e)=>{let r=Bt(e);if(t)return y(t)&&t.includes("gradient")?{background:fa(t,r)}:{background:vt(t,r)}},backgroundColor:(t,e)=>{let r=Bt(e);if(t)return{backgroundColor:vt(t,r)}},backgroundImage:(t,e,r,n)=>{let o=Bt(e);if(!t)return;let s=n.files&&n.files[t];return s&&s.content&&(t=s.content.src),{backgroundImage:bf(t,o)}},textStroke:t=>({WebkitTextStroke:gf(t)}),outline:t=>({outline:be(t)}),outlineOffset:(t,{props:e})=>j("outlineOffset",t,e),border:t=>({border:be(t)}),borderColor:(t,e)=>{let r=Bt(e);if(t)return{borderColor:vt(t,r)}},borderTopColor:(t,e)=>{let r=Bt(e);if(t)return{borderTopColor:vt(t,r)}},borderBottomColor:(t,e)=>{let r=Bt(e);if(t)return{borderBottomColor:vt(t,r)}},borderLeftColor:(t,e)=>{let r=Bt(e);if(t)return{borderLeftColor:vt(t,r)}},borderRightColor:(t,e)=>{let r=Bt(e);if(t)return{borderRightColor:vt(t,r)}},borderLeft:t=>({borderLeft:be(t)}),borderTop:t=>({borderTop:be(t)}),borderRight:t=>({borderRight:be(t)}),borderBottom:t=>({borderBottom:be(t)}),shadow:(t,e)=>{let r=Bt(e);if(t)return{boxShadow:yf(t,r)}},boxShadow:(t,e)=>{if(!y(t))return;let[r,n]=t.split("!importan"),o=Bt(e),s=n?" !important":"";return{boxShadow:la(r.trim(),o)+s}},textShadow:(t,{context:e})=>({textShadow:la(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:be(t)})};var Ef={transition:t=>({transition:fo(t)}),transitionDuration:t=>({transitionDuration:xr(t)}),transitionDelay:t=>({transitionDelay:xr(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Pt(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};w();var Of={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 Af={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 cn={..._f,...wf,...vf,...da,...da,...kf,...Cf,...Ef,...Of,...Af};var Tf=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 jg=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=n.designSystem.media[t.slice(1)],s=Kt(e,r);return{[o?"@media "+(o==="print"?o:`screen and ${o}`):t]:s}},Rf=(t,e,r)=>({[t]:Kt(e,r)}),ln=(t,e,r)=>({[`&${t}`]:Kt(e,r)}),Vg=(t,e,r)=>{let{cases:n}=r.context?.designSystem||{},o=t.slice(1);if(!n?.[o]&&!r.props[o])return Kt(e,r)},zg=(t,e,r)=>({[t]:e}),qg=(t,e,r)=>{let n=t.slice(1);if(r.props[n]===!0||r.state[n]||r[n])return Kt(e,r)},Hg=(t,e,r)=>{let n=t.slice(1);if(!(r.props[n]===!0||r.state[n]||r[n]))return Kt(e,r)},If=(t,e)=>Kt(t,e),Pf={"@":jg,":":ln,"[":ln,"*":ln,"+":ln,"~":ln,"&":Rf,">":Rf,$:Vg,"-":zg,".":qg,"!":Hg};var ha=He(),Wg=(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)=>X(u,f[p]),{});n.designSystemClass=l}}else if(i==="true"){let c=O(a,e);X(n,If(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),!ha&&g(n[i])&&(n[i].label=i)}else if(cn[i]){let c=O(a,e);S(c)&&(c=c.reduce((l,u)=>X(l,u),{}));let f=cn[i](c,e,e.state,e.context);S(f)&&(f=f.reduce((l,u)=>X(l,u),{})),f&&s(i,f),!ha&&g(n[i])&&(n[i].label=i)}else if(Tf.has(i)){let c=O(a,e);s(i,{[i]:c}),!ha&&g(n[i])&&(n[i].label=i)}else o[i]=a}return[n,o]},Gg=(t,e)=>{let r={};for(let n in t){let o=Pf[n.slice(0,1)];if(o){let s=o(n,t[n],e);s&&at(r,s)}}return r},Kt=(t,e,r={unpack:!0})=>{let[n,o]=Wg(t,e,r),s=Gg(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return le(n,s);n._selectors=s}return n},eC=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};w();var{css:Kg}=wt,sC=(t,e)=>b(e)?e(t):Kg(t);var Nf={symbols:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',logo:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',arrowDownCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-circle"><circle cx="12" cy="12" r="10"/><path d="M8 12l4 4 4-4M12 8v8"/></svg>',arrowDownLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-left"><path d="M17 7L7 17M17 17H7V7"/></svg>',arrowDownRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-right"><path d="M7 7l10 10M17 7v10H7"/></svg>',arrowDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down"><path d="M12 5v14M19 12l-7 7-7-7"/></svg>',arrowLeftCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left-circle"><circle cx="12" cy="12" r="10"/><path d="M12 8l-4 4 4 4M16 12H8"/></svg>',arrowLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>',arrowRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><path d="M5 12h14M12 5l7 7-7 7"/></svg>',arrowRightCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right-circle"><circle cx="12" cy="12" r="10"/><path d="M12 16l4-4-4-4M8 12h8"/></svg>',arrowUpCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-circle"><circle cx="12" cy="12" r="10"/><path d="M16 12l-4-4-4 4M12 16V8"/></svg>',arrowUpLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-left"><path d="M17 17L7 7M7 17V7h10"/></svg>',arrowUpRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-right"><path d="M7 17L17 7M7 7h10v10"/></svg>',arrowUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up"><path d="M12 19V5M5 12l7-7 7 7"/></svg>',checkCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 11-5.93-9.14"/><path d="M22 4L12 14.01l-3-3"/></svg>',check:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"><path d="M20 6L9 17l-5-5"/></svg>',chevronDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><path d="M6 9l6 6 6-6"/></svg>',chevronLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-left"><path d="M15 18l-6-6 6-6"/></svg>',chevronRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><path d="M9 18l6-6-6-6"/></svg>',chevronUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-up"><path d="M18 15l-6-6-6 6"/></svg>',copy:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-copy"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>',eyeOff:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye-off"><path d="M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24M1 1l22 22"/></svg>',eye:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>',info:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>',lock:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-lock"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0110 0v4"/></svg>',minus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-minus"><path d="M5 12h14"/></svg>',sun:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/></svg>',moon:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg>',moreHorizontal:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-horizontal"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg>',moreVertical:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-vertical"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></svg>',send:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-send"><path d="M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"/></svg>',smile:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-smile"><circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01"/></svg>',search:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"/><path d="M21 21l-4.35-4.35"/></svg>',upload:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-upload"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12"/></svg>',video:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-video"><path d="M23 7l-7 5 7 5V7z"/><rect x="1" y="5" width="15" height="14" rx="2" ry="2"/></svg>',x:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><path d="M18 6L6 18M6 6l12 12"/></svg>',star:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>',plus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus"><path d="M12 5v14M5 12h14"/></svg>'};var Df={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"]},Ff={};var Yg={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"}}},Xg={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},Qg={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"}}},$f={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...Yg,...Xg,...Qg,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var Lf={base:16,ratio:1.25,subSequence:!0,templates:{}};var Mf={ratio:1.618,subSequence:!0};var Bf={},Uf={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif"}};var jf={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 Vf={base:150,ratio:1.333,unit:"ms",subSequence:!0};var ma={version:"0.0.1",color:Df,gradient:Ff,theme:$f,typography:Lf,spacing:Mf,font:Bf,font_family:Uf,timing:Vf,icons:Nf,media:jf,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},cases:{},class:{},svg:{},grid:{},shape:{},useReset:!0,useVariable:!0,useFontImport:!0,useIconSprite:!0,useSvgSprite:!0,useDefaultConfig:!0,useDocumentTheme:!0,verbose:!1};var Le={};$t(Le,{A:()=>Zb,Avatar:()=>kx,B:()=>Fy,Block:()=>Jg,Box:()=>ya,Br:()=>Uy,Button:()=>px,ButtonSet:()=>gx,Caption:()=>Ey,Checkbox:()=>nx,CheckboxHgroup:()=>ox,CircleButton:()=>hx,Clickable:()=>fy,Data:()=>Ly,Dialog:()=>bx,DialogFooter:()=>Sx,DialogHeader:()=>xx,DropdownList:()=>Ex,DropdownParent:()=>Ox,DropdownParentFocus:()=>Ax,DropdownSiblingFocus:()=>Tx,FileIcon:()=>Yy,Flex:()=>ty,Focusable:()=>uy,FocusableComponent:()=>py,Footnote:()=>Dy,Form:()=>iy,Grid:()=>ry,Gutter:()=>oy,H1:()=>xy,H2:()=>Sy,H3:()=>_y,H4:()=>wy,H5:()=>vy,H6:()=>ky,Headline:()=>Py,Hgroup:()=>qy,HgroupButton:()=>Wy,HgroupRows:()=>Hy,Hoverable:()=>ly,Hr:()=>By,I:()=>$y,Icon:()=>Gy,IconButton:()=>yx,IconText:()=>Ky,Iframe:()=>ay,Img:()=>sy,Inline:()=>Zg,InlineFlex:()=>ey,InlineGrid:()=>ny,Input:()=>ex,Italic:()=>Ry,KangorooButton:()=>mx,Li:()=>jy,Link:()=>Ou,Notification:()=>Rx,NumberInput:()=>rx,Ol:()=>zy,P:()=>Cy,Picture:()=>my,Radio:()=>sx,RadioHgroup:()=>ix,Range:()=>Cx,RouteLink:()=>tx,RouterLink:()=>Au,SHAPES:()=>dy,Select:()=>ux,SquareButton:()=>dx,Strong:()=>Oy,Subhead:()=>Ny,Svg:()=>gy,Text:()=>by,Textarea:()=>lx,TextareaWithButton:()=>fx,Theme:()=>hy,Title:()=>Iy,Toggle:()=>ax,ToggleHgroup:()=>cx,Tooltip:()=>_x,TooltipHidden:()=>wx,TooltipParent:()=>vx,U:()=>Ay,Ul:()=>Vy,Underline:()=>Ty,Video:()=>yy,depth:()=>ga,getSystemGlobalTheme:()=>po});var Jg={display:"block"},Zg={display:"inline"},ty={display:"flex"},ey={display:"inline-flex"},ry={display:"grid"},ny={display:"inline-grid"},oy={boxSize:"C1"};var sy={tag:"img",attr:{src:t=>{let{props:e,context:r}=t,n=(e.preSrc||"")+qt(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 iy={tag:"form"};var ay={tag:"iframe",position:"relative",minWidth:"H",minHeight:"H"};var cy={appearance:"none",border:"none",cursor:"pointer",fontFamily:"inherit"},ly={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}}},fy={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},uy={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:({props:t})=>t.tabIndex}},py={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:cy};var zf={transition:t=>({transition:fo(t)}),transitionDuration:t=>({transitionDuration:xr(t)}),transitionDelay:t=>({transitionDelay:xr(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Pt(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};var Dt=k(),ga={4:{boxShadow:`rgba(0,0,0,.10) 0 2${Dt.UNIT.default} 4${Dt.UNIT.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${Dt.UNIT.default} 6${Dt.UNIT.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${Dt.UNIT.default} 10${Dt.UNIT.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${Dt.UNIT.default} 16${Dt.UNIT.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${Dt.UNIT.default} 26${Dt.UNIT.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${Dt.UNIT.default} 42${Dt.UNIT.default}`}},Sr=({props:t})=>Z(t.shapeDirectionColor)||Z(t.borderColor)||Z(t.backgroundColor)||Z(t.background),uo=({props:t,deps:e})=>{let r=zf.transition(t.transition,{props:t,deps:e});return r&&r.transition},dy={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:Sr({props:t,deps:e}),transition:uo({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:Sr({props:t,deps:e}),transition:uo({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:Sr({props:t,deps:e}),transition:uo({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:uo({props:t,deps:e}),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Sr({props:t,deps:e})} 25%, transparent 25%), linear-gradient(315deg, ${Sr({props:t,deps:e})} 25%, transparent 25%)`},"&:after":{background:Sr({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)"}}}};w();var po=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n==="auto"?null:n},hy={deps:{depth:ga},classlist:{depth:({props:t,deps:e})=>!Y(t.depth)&&e.depth[t.depth]}};var my={deps:{getSystemGlobalTheme:po},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:po},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 gy={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 yy={tag:"video",controls:!0,childExtends:{tag:"source"}};var by={},xy={tag:"h1"},Sy={tag:"h2"},_y={tag:"h3"},wy={tag:"h4"},vy={tag:"h5"},ky={tag:"h6"},Cy={tag:"p"},Ey={tag:"caption"},Oy={tag:"strong",fontWeight:"700"},Ay={tag:"u"},Ty={tag:"u"},Ry={tag:"i"},Iy={},Py={tag:"h6",fontSize:"B",fontWeight:500},Ny={tag:"span",fontSize:"Z1"},Dy={tag:"span",fontSize:"Z"},Fy={tag:"b"},$y={tag:"i"},Ly={tag:"data"};var My=t=>{if(!t.context)return;let{props:e,__ref:r}=t;r.__class=Kt(e,t,{unpack:!1})},ya={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:My},By={tag:"hr",margin:"C1 0"},Uy={tag:"br"},jy={tag:"li"},Vy={tag:"ul",childExtends:{extends:"Li"}},zy={tag:"ol",childExtends:{extends:"Li"}};var qy={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{margin:"0",color:"paragraph"}},Hy={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},Wy={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Gy={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:C}=T,B=C[".isActive"];if(B)return T.call("exec",B.name||B.icon)},l=(T,C,B)=>{let{semanticIcons:N}=B&&B.designSystem,{toCamelCase:D}=B&&B.utils,F=u(T,C),tt=D(F).split(/([a-z])([A-Z])/g),bt=tt[1]?tt[0]:F.split(".")[0].split(" ")[0],Ft=N&&N[bt];if(Ft){let se=F.includes(".")?"sfsymbols."+F.split(".").slice(1).join("."):"sfsymbols";return F=Ft[se]||Ft[F.split(".")[0].split(" ")[0]],{tag:"span",semantic_symbols:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${F}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(T,C)=>{let{key:B,props:N}=T,D=T.call("exec",N.name||N.icon||B,T);return T.call("isString",D)&&D.includes("{{")&&(D=T.call("replaceLiteralsWithObjectFields",D)),T.call("isString",D)?D:B},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,v=_[".isActive"];o&&_&&_.isActive&&v&&v.icon&&(x=t.call("exec",v.icon||v.Icon.name||v.Icon.icon,t)),t.call("isString",x)&&x.includes("{{")&&(x=t.call("replaceLiteralsWithObjectFields",x));let E;s[x]&&(E=x),s[d]?E=d:s[h[0]+h[1]]?E=h[0]+h[1]:s[h[0]]?E=h[0]:a&&t.warn("Can't find icon:",p,E);let I=s[E],A=o&&o.props&&o.props.src||n.src;return{spriteId:i&&E,src:I||A||s.noIcon}},attr:{viewBox:"0 0 24 24"}},Ky={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},Yy={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Da={};$t(Da,{default:()=>Jb,getActiveRoute:()=>Na,lastLevel:()=>vo,lastPathname:()=>wo,matchRoute:()=>Ra,parseQuery:()=>Ia,parseRoutePattern:()=>Ta,router:()=>ee,runGuards:()=>Pa});w();w();w();w();w();var Xy=(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]},qf=(t,e,r,n)=>{let o=Xy(t,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)}},Hf=(t,e)=>{let{node:r,on:n,props:o}=t,s=new Set;for(let i in n)An.has(i)||(s.add(i),qf(i,t,r,e));if(o){for(let i in o)if(i.length>2&&i.charCodeAt(0)===111&&i.charCodeAt(1)===110&&b(o[i])){let a=i[2];if(a!==a.toUpperCase())continue;let c=a.toLowerCase()+i.slice(3);if(s.has(c)||An.has(c))continue;qf(c,t,r,e)}}};var Wf={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"}}},gt=(t,e,r)=>{let o;t&&typeof t=="string"&&(o=Wf.en[t]);let s=o?`
32
32
 
33
33
  ${o.description}`:"",i=r?`
34
34
 
35
- ${r}`:"";return new Error(`"${t}", "${e}"${s}${i}`)};w();var Hf=t=>Ce(t||"div")||gt("HTMLInvalidTag");var Wy=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)},Ky=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}}},qf=t=>{let e=typeof window<"u"&&window.requestAnimationFrame;if(ba||!e)return;ba=!0;function r(){if(t.size===0){ba=!1;return}Ky(t),e(r)}e(r)},Wf=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)&&(Wy(t),qf(o))},ba=!1,Kf=()=>{let t=new Set;return qf(t),t};w();var Yf=t=>{let{props:e,on:r}=t;for(let n in e){if(n.charCodeAt(0)!==111||n.charCodeAt(1)!==110)continue;let o=ae(n.slice(2)),s=r[o],i=e[n];b(s)?r[o]=(...a)=>{if(s(...a)!==!1)return i(...a)}:r[o]=i}},Qf=t=>{let{on:e}=t;for(let r in t){if(r.charCodeAt(0)!==111||r.charCodeAt(1)!==110||!Object.prototype.hasOwnProperty.call(t,r))continue;let n=t[r];if(!b(n))continue;let o=ae(r.slice(2)),s=e[o];b(s)?e[o]=(...i)=>{if(s(...i)!==!1)return n(...i)}:e[o]=n}};w();var xa="http://www.w3.org/2000/svg",Yy=t=>{let{tag:e,context:r}=t,n=r.document||$;return e?e==="string"?n.createTextNode(t.text):e==="fragment"?n.createDocumentFragment():qe.has(e)&&(e==="svg"||t.parent?.node?.namespaceURI===xa)?n.createElementNS(xa,e):n.createElement(e):n.createElement("div")},Sa=t=>{let{tag:e,key:r,props:n}=t;if(e=A(e,t),e===!0&&(e=r),g(n)&&y(n.tag)&&Ce(n.tag))return n.tag;if(y(e)){if(Ce(e))return e}else{let o=r.toLowerCase();if(o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),Ce(o))return o}return"div"},Xf=t=>{let{context:e}=t,r=e.window||window,n=t.tag=Sa(t);if(!Hf(n))return gt("HTMLInvalidTag",t.tag,t);r.nodeCaches||(r.nodeCaches={});let s=qe.has(n)&&(n==="svg"||t.parent?.node?.namespaceURI===xa)?"svg:"+n:n,i=r.nodeCaches[s];i||(i=r.nodeCaches[s]=Yy(t));let a=i.cloneNode(!0);return n==="string"&&(a.nodeValue=t.text),a};var Qy=(t,e)=>{try{return e.appendChild(t),t}catch{console.error("Does not support to append",e,t)}},Xy=(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)},Jy=(t,e,r)=>{if(!t)throw new Error("Node is required");(r||e.parentNode)?.insertBefore(t,e)},_a=(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"?Jy:Xy)(t.node,n.node||e.node):Qy(t.node,e.node,t)),t};w();var fo=(t,e={})=>{let{__ref:r}=t;for(let n in t){if(e[n])continue;let o=t[n];if(b(o)&&!zt(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}}},Jf=(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)||lt(a);if(s?.node&&c)le(s,{text:a});else if(a!==s)if(Tt(o)){let{extends:f,...l}=gs(a,t,o);le(s,l)}else n[o]=s,t[o]=a}return n},uo=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=A(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=A(r[n],t);c&&typeof c.then=="function"?c.then(f=>{r[n]=f}):r[n]=c}}},po=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)&&!zt(a,t)){n.__exec[a]=c;let l=A(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},Zf=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=A(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)}};w();function tu(t,e,r){let{__ref:n,props:o}=e,{__attr:s}=n;if(Ir(t)("object")&&gt("HTMLInvalidAttr",t),t){let i=A(t,e);o.attr&&M(i,o.attr);for(let a in i){let c=A(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)}}}w();var eu=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))},Zy=(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+=` ${A(o,e)}`)}return r},ru=(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=Zy(t,e)),t.replace(/\s+/g," ").trim()};w();function tb(t,e,r){if(t&&(e.props.data&&M(t,e.props.data),t.showOnNode)){g(t)||gt("HTMLInvalidData",t);for(let n in t)n!=="showOnNode"&&(r.dataset[n]=A(t[n],e))}}var nu=tb;w();function eb(t,e,r){let n=A(t??e?.props?.html,e),{__ref:o}=e;n!==o.__html&&(r.nodeName==="SVG"?r.textContent=n:r.innerHTML=n,o.__html=n)}var ou=eb;w();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=A(t[s],e);i!==o[s]&&(o[s]=i,r.style[s]=i)}}else gt("HTMLInvalidStyles",t)}var su=rb;w();function nb(t,e,r){let n=A(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(qe.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 Ut({tag:"string",text:n},e,"__text")}}var iu=nb;w();function ob(t,e,r){let n=A(t,e);if(g(n))for(let o in n)Ot.has(o)||Object.prototype.hasOwnProperty.call(n,o);return e}var au=ob;w();function sb(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 cu=sb;var te={attr:tu,style:su,text:iu,html:ou,data:nu,classlist:ru,state:au,scope:cu,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:{}};w();var ho=(t,e,r)=>{let{node:n,context:o,__ref:s}=e,i=A(e[t],e),{onlyUpdate:a}=r,c=te[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}};w();var wa=(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(!wa(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(!wa(t[a],e[a]))return!1}return!0}return t===e},lu=new Set([".","/","./"]),ib=(t,e)=>{if(!y(t)||!e)return;if(lu.has(t))return e.parse?e.parse():e;let r=We(t,e);if(r){let o=t.replaceAll("~/","");return Ye(o,r)}let n=Ke(t,e);if(n){let o=t.replaceAll("../","");return Ye(o,n)}return Ye(t,e)};function ab(t,e,r){let{children:n,__ref:o,state:s}=e,{childrenAs:i}=e.props||{},a=A(t,e,s),c=A(n,e,s);n=a||c;let f;if(n){if(Dn(n)&&(i=i||"state",n=n.parse()),y(n)||lt(n)){let p=ib(n,s);p!==void 0?(f=lu.has(n)?"":n,n=Dn(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 Tt(p)?ls(p,d):d})}}if(!n||Ir(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?wa(n,o.__childrenCache)?o.__noChildrenDifference=!0:(l=j(n),o.__childrenCache=l,delete o.__noChildrenDifference):(l=j(n),o.__childrenCache=l),(g(n)||S(n))&&(n=l||j(n));let u={tag:"fragment"};for(let p in n){let d=Object.prototype.hasOwnProperty.call(n,p)&&n[p];if(Ct(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 mo=ab;var fu=process.env.NODE_ENV,uu=(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=Xf(t),z("attachNode",t,e)),(fu==="test"||fu==="development"||e.alowRefReference)&&(r.ref=t,b(r.setAttribute)&&r.setAttribute("key",t.key)),uo(t),po(t),fo(t),Yf(t),Qf(t),zf(t,{isNewNode:s,...e});for(let a in t){let c=t[a];if(!Object.prototype.hasOwnProperty.call(t,a)||c===void 0||zt(a,t)||g(te[a])||a.length>2&&a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90)continue;let f=ho(a,t,e);if(f){let{hasDefine:l,hasContextDefine:u}=f;if(t[a]&&!l&&!u){let p=()=>{Ut(c,t,a,e)};t.props&&t.props.lazyLoad||e.lazyLoad?window.requestAnimationFrame(()=>{p(),e.preventUpdateListener||z("lazyLoad",t,e)}):p()}}}let i=t.children?mo(t.children,t,e):t.children||t.content;return i&&cn(i,t,e),t};w();var va={key:":root",node:$?$.body:gt("DocumentNotDefined",$)},ka=va;w();w();w();w();var pu={overwrite:!0,preventHoistElementUpdate:!1,updateByState:!0,isHoisted:!0},du=function(t,e=pu){let r=this,n=r.__element;if(e.onEach&&e.onEach(n,r,n.context,e),e.updateByState||Q(e,pu),r.__element||gt("ElementOnStateIsNotDefined"),e.preventInheritAtCurrentState===!0)e.preventInheritAtCurrentState=r;else if(e.preventInheritAtCurrentState)return;return!e.preventBeforeStateUpdateListener&&_t("beforeStateUpdate",t,n,e)===!1?n:(Ds(r,t,e),cb(r,t,e)||(lb(r,t,e),fb(r,t,e),e.preventStateUpdateListener||_t("stateUpdate",t,n,e)),r)},cb=(t,e,r)=>{let n=t.__element,{parent:o,__ref:s}=n,i=s?.__state,a=s?.__stateType;if(!i)return;let c=Xe(n),f=Qe(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=We(i,o.state),m=Ke(i,o.state),x=i.replaceAll("~/","").replaceAll("../",""),v=Ps(x,d),_=h||m||o.state;r.replace&&at(_,v||p),_.update(v,{...r,isHoisted:!0,preventUpdate:r.preventHoistElementUpdate,overwrite:!r.replace});let C=r.preventUpdate!==!0||!r.preventHoistElementUpdate;return!r.preventStateUpdateListener&&C&&_t("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)},fb=(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 ub=function(){let t=this;if(g(t)){let e={};for(let r in t)Ot.has(r)||(e[r]=t[r]);return e}else if(S(t))return t.filter(e=>!Ot.has(e))},pb=function(t={}){let e=this;for(let r in e)!Ot.has(r)&&Object.prototype.hasOwnProperty.call(e,r)&&delete e[r];return t.preventStateUpdate||e.update(e,{replace:!0,...t}),e},db=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},hb=function(t,e={}){let r=this;if(!(!r||!r.parent))return r.parent.update(t,{isHoisted:!0,...e})},mb=function(t,e={}){let r=this;return r?r.__element.__ref.root.state.update(t,{isHoisted:!1,...e}):void 0},gb=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)}},yb=function(t,e={}){let r=this;r.update({[t]:!r[t]},e)},bb=function(t,e={}){let r=this;return S(r)?Mo(r,t):g(r)&&Ko(r,t),e.applyReset?r.set(r.parse(),{replace:!0,...e}):r.update({},e)},xb=function(t,e={}){let r=this,n=j(t);return r.clean({preventStateUpdate:!0,...e}).update(n,{replace:!0,...e})},hu=function(t,e,r={}){let n=this,o=j(e);r.preventReplace||Xo(n,t,e);let s=Yo(t,o);return r.preventStateUpdate?s:n.update(s,r)},Sb=function(t,e={}){let r=this,n=t.reduce((o,s)=>{if(s[0]==="update"){let i=hu.call(r,s[1],s[2],{preventStateUpdate:!0});return at(o,i)}else s[0]==="delete"&&Ca.call(r,s[1],{...e,preventUpdate:!0});return o},{});return r.update(n,e)},Ca=function(t,e={}){let r=this;return Qo(r,t),e.preventUpdate?t:r.update({},e)},_b=function(t,e={}){let r=this;for(let n=0;n<t.length;n++)Ca(t[n],{preventUpdate:!0});return r.update({},e)},wb=function(t,e={}){return Jo(this,t)},vb=function(t={}){let e=this,r=j(e.parse());return e.set(r,{replace:!0,...t})},kb=function(t,e={}){let r=this;if(b(t)){let n=t(r);return r.update(n,{replace:!0,...e})}},Cb=function(t,e={}){let r=this;if(b(t)){let n=t(r);return r.replace(n,e)}},Eb=function(t,e={}){let r=this;if(b(t))return t(r),r.update(r.parse(),{replace:!0,...e})},Ob=function(t,e={}){return this.update(t,{preventUpdate:!0,...e})},Ab=function(t,e={}){let r=this;for(let n in t)r[n]=t[n];return r.update(t,e)},Tb=function(t,e={}){return this.replace(t,{preventUpdate:!0,...e})},Rb=function(t,e={}){return Object.keys(this)},Ib=function(t,e={}){return Object.values(this)},mu=t=>{let e=t.state,r=t.__ref,n={clean:pb.bind(e),parse:ub.bind(e),destroy:db.bind(e),update:du.bind(e),rootUpdate:mb.bind(e),parentUpdate:hb.bind(e),create:$e.bind(e),add:gb.bind(e),toggle:yb.bind(e),remove:bb.bind(e),apply:kb.bind(e),applyReplace:Cb.bind(e),applyFunction:Eb.bind(e),set:xb.bind(e),quietUpdate:Ob.bind(e),replace:Ab.bind(e),quietReplace:Tb.bind(e),reset:vb.bind(e),parent:t.parent?.state||e,setByPath:hu.bind(e),setPathCollection:Sb.bind(e),removeByPath:Ca.bind(e),removePathCollection:_b.bind(e),getByPath:wb.bind(e),keys:Rb.bind(e),values:Ib.bind(e),__element:t,__children:{},root:r?.root?r.root.state:e};S(e)?Pr(e,n):Object.setPrototypeOf(e,n),e.parent&&e.parent.__children&&(e.parent.__children[t.key]=e)};var $e=function(t,e,r){return t.state=Pb(t,e,r),t.state},Pb=function(t,e,r){let n=Rs(t);if(n===!1)return e.state||{};if(t.state=n,z("stateInit",t,r)===!1)return t.state;if(Xe(t)){let i=Is(t,e);t.state=Y(i)?{}:i}let s=Ns(t,t.state||e.state||{});return s&&(t.state=s),mu(t),z("stateCreated",t),t.state};w();w();var gu=[];var go={stackChanges:!1,cleanExec:!0,preventRecursive:!1,currentSnapshot:!1,calleeElement:!1,exclude:gu},ln=function(t={},e){let r=g(e)?{...go,...e}:{...go},n=this,o=n.__ref;o||(o=n.__ref={});let[s,i,a]=mi(n,r);if(a)return;r.preventListeners||_t("startUpdate",t,n,r);let{parent:c,node:f,key:l}=n,{exclude:u,preventInheritAtCurrentState:p}=r;if(p&&p.__element===n||(u||Q(r,go),(y(t)||lt(t))&&(t={text:t}),t=_s.call(n,t),Fb(n,r)===!1)||Db(n,c,r))return;if(o.__if&&!r.preventPropsUpdate){let R=c.props&&(c.props[l]||c.props.childProps),D=o.__propsStack.some(b),q=t.props||R||D;q&&Es(q,n,c)}if(!r.preventBeforeUpdateListener&&!r.preventListeners&&(n.on?.beforeUpdate||n.props?.onBeforeUpdate)){let D={...t,...n};if(Object.setPrototypeOf(D,Object.getPrototypeOf(n)),_t("beforeUpdate",t,D,r)===!1)return n}if(at(n,t),uo(n),Jf(n,{ignore:go}),Zf(n),!r.isForced&&!r.preventListeners&&z("beforeClassAssign",n,r),!o.__if)return!1;if(!f)return;let{preventUpdate:m,preventDefineUpdate:x,preventContentUpdate:v,preventStateUpdate:_,preventRecursive:C,preventUpdateListener:T,preventUpdateAfter:I,preventUpdateAfterCount:O}=r;if(I){if(lt(O)&&I<=O)return;r.preventUpdateAfterCount===void 0?r.preventUpdateAfterCount=1:r.preventUpdateAfterCount++}let E=S(m)?new Set(m):null,W=S(x)?new Set(x):null;for(let R in n){let D=n[R];if(!Object.prototype.hasOwnProperty.call(n,R))continue;let q=E&&E.has(R),et=W&&W.has(R),tt=b(D)&&R.length>2&&R.charCodeAt(0)===111&&R.charCodeAt(1)===110&&R.charCodeAt(2)>=65&&R.charCodeAt(2)<=90;if(Y(D)||q||et||x===!0||x===R||_&&R==="state"||zt(R,n)||tt||g(te[R]))continue;_==="once"&&(r.preventStateUpdate=!1);let bt=ho(R,n,r);if(bt){let{hasDefine:Dt,hasContextDefine:se}=bt;if(!(g(D)&&!Dt&&!se&&!C))continue;let No=n.props.lazyLoad||r.lazyLoad;r.onEachUpdate&&r.onEachUpdate(R,n,n.state,n.context);let it=t[R];if(it===void 0&&!r.isForced){if(r.onlyUpdate){if(R!==r.onlyUpdate)continue}else if(!r.updateByState)continue}let Do=r.onlyUpdate&&R===r.onlyUpdate?{...r,onlyUpdate:void 0,currentSnapshot:s,calleeElement:i}:{...r,currentSnapshot:s,calleeElement:i},Fo=()=>ln.call(D,it,Do);No?F.requestAnimationFrame(()=>{Fo(),!r.preventUpdateListener&&!r.preventListeners&&z("lazyLoad",n,r)}):Fo()}}if(!v){let R=o.contentElementKey||"content",D=n[R],q=r.updateByState?t.children||(o.__exec?.children?n.children:void 0):t.children||n.children;if(q){let et=mo(q,n,e);if(et&&!o.__noChildrenDifference)cn(et,n,r);else if(D?.__ref&&b(D.update)){let tt=n.props?.lazyLoad||r.lazyLoad,bt=()=>ln.call(D,t[R],{...r,currentSnapshot:s,calleeElement:i});tt?F.requestAnimationFrame(()=>{bt(),!r.preventUpdateListener&&!r.preventListeners&&z("lazyLoad",n,r)}):bt()}}else if(D?.__ref&&b(D.update)){let et=n.props?.lazyLoad||r.lazyLoad,tt=()=>ln.call(D,t[R],{...r,currentSnapshot:s,calleeElement:i});et?F.requestAnimationFrame(()=>{tt(),!r.preventUpdateListener&&!r.preventListeners&&z("lazyLoad",n,r)}):tt()}else{let et=n.children||t.content;et&&!r.updateByState&&cn(et,n,r)}}!T&&!r.preventListeners&&z("update",n,r),!r.preventFetch&&o.__fetchOnStateChange&&o.__fetchOnStateChange()},Nb=(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},Db=(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=Nb(t,e);delete t.__ref,delete t.parent;let c=Ut(t,e,t.key,ut.create,a);return r.preventUpdate!==!0&&t.on&&b(t.on.update)&&Mr(t.on.update,c,c.state),c}}else t.node&&!o&&(t.node.remove(),delete n.__if)},Fb=(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=Qe(t,t.parent);if(!i||e.preventInheritedStateUpdate)return;if(!e.preventBeforeStateUpdateListener&&!e.preventListeners&&_t("beforeStateUpdate",i,t,e)===!1)return t;let a=$b(t,o,e);!e.preventStateUpdateListener&&!e.preventListeners&&_t("stateUpdate",a.parse(),t,e)},$b=(t,e,r)=>{let n=t.state.__children,o=$e(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};hi();var Ea=(t,e,r={})=>{let n={set:Aa,reset:yu,update:ln,variables:fi,remove:Qs,updateContent:bu,removeContent:Oa,setProps:Xs,lookup:Ws,lookdown:Ks,lookdownAll:Ys,getRef:Js,getDB:pi,getPath:Zs,getQuery:di,getRootState:ti,getRoot:ei,getRootData:ri,getRootContext:ni,getContext:oi,setNodeStyles:Un,spotByPath:qs,parse:Vn,parseDeep:Hr,keys:jn,nextElement:ci,previousElement:li,log:si,verbose:zn,warn:ii,error:ai,call:ui};t.context.methods&&(r.strict?Q:le)(n,t.context.methods),Object.setPrototypeOf(t,n)};var Lb=new Set(["class","style"]),Mb=t=>{let{tag:e,props:r,context:n}=t;if(!e||!r)return;let o=dl(e,r,n?.cssPropsRegistry),s={};for(let a in o)Lb.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)},yo=process.env.NODE_ENV,Ut=(t,e,r,n=ut.create||{},o)=>{Bb(n);let s=Ts(t,e,r,n,va);if(!s)return;let{key:i,parent:a,__ref:c}=s;return As(s,a),hs(s,a,n),n.onlyResolveExtends?zb(s,a,i,n):(Pn.call(s,s),z("start",s,n),Ub(s,a,n),Ea(s,a,n),Fn(s,a),$e(s,a),s.scope==="state"&&(s.scope=s.state),$r(s,a),Nn(s,a,n),Lr.call(s,s,{cachedKeys:[]}),s.tag||(s.tag=Sa(s)),Mb(s),(s.scope==="props"||s.scope===!0)&&(s.scope=s.props),$r(s,a),s.node&&c.__if?_a(s,a,i,o):(z("init",s,n)===!1||(z("beforeClassAssign",s,n),eu(s),Vb(s,a,n,o),Su(s,a),z("complete",s,n)),s))},Bb=t=>{t&&!ut.create&&(ut.create=t,ut.create.context=t.context)},Ub=(t,e,r)=>{let n=!1;for(let o in r){n=!0;break}n&&(ut.defaultOptions=r,r.ignoreChildExtends&&delete r.ignoreChildExtends)},Su=(t,e)=>{e.__ref&&e.__ref.__children&&(e.__ref.__children.includes(t.key)||e.__ref.__children.push(t.key))},jb=1,xu=new WeakMap,Vb=(t,e,r,n)=>{xu.has(t)&&(yo==="test"||yo==="development")&&console.warn("Cyclic rendering detected:",t.__ref.path),xu.set(t,!0);let{__ref:o,key:s}=t,i=()=>{let a=Zo(o.path);o.__uniqId||a||(uu(t,r),o.__uniqId=jb++)};if(yo==="test"||yo==="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;_a(t,e,s,n),Wf(t,r),z("render",t,r),z("renderRouter",t,r),z("done",t,r),z("create",t,r)},zb=(t,e,r,n)=>{let{__ref:o}=t;if(Ea(t,e,n),Fn(t,e),$e(t,e),t.scope==="state"&&(t.scope=t.state),$r(t,e),Nn(t,e,n),Lr.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={}),Su(t,e),t.tag!=="string"&&t.tag!=="fragment"){po(t),fo(t);for(let s in t){if(Y(t[s])||zt(s,t)||g(te[s]))continue;let i=t.define?.[s],a=t.context?.define?.[s],c=n.define?.[s];!o.__skipCreate&&te[s]&&!c||t[s]&&!i&&!c&&!a&&Ut(A(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},bo=Ut;var _r=(t,e={})=>{let{__ref:r}=t,n=e.contentElementKey;return(!r.contentElementKey||n!==r.contentElementKey)&&(r.contentElementKey=n||"content"),r.contentElementKey};function yu(t){let e=this;Ut(e,e.parent,void 0,{ignoreChildExtends:!0,...ut.defaultOptions,...ut.create,...t})}var _u=(t,e,r)=>{let n=_r(e,r);e[n]?.node&&Oa(e,r);let o=Ut(t,e,n||"content",{ignoreChildExtends:!0,...ut.defaultOptions,...ut.create,...r});return n!=="content"&&(r.contentElementKey="content"),o},bu=function(t,e){let r=this,n=_r(r,e);r[n]&&r[n].update&&r[n].update(t,e)};function cn(t,e,r){let n=A(t,e);n&&e&&Aa.call(e,n,r)}var Oa=function(t,e={}){let r=t||this,n=_r(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]}},Aa=function(t,e={},r){let n=r||this,{__ref:o}=n;if(o.__settingContent)return n;o.__settingContent=!0;try{return Gb(t,e,n)}finally{o.__settingContent=!1}},Gb=function(t,e,r){let{__ref:n}=r,o=_r(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&&Wo(t,s);if(s?.update&&!f&&!l){if(!e.preventBeforeUpdateListener&&!e.preventListeners&&_t("beforeUpdate",t,r,e)===!1)return r;s.update(t),!e.preventUpdateListener&&!e.preventListeners&&z("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(()=>{_u(t,r,e),e.preventUpdateListener||z("lazyLoad",r,e)}):_u(t,r,e)};var vu=/^:(.+)/,ku=/^\*$/,wu=new Map,Ta=t=>{let e=wu.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(vu);a?n.push({index:i,name:a[1]}):ku.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return wu.set(t,s),s},Ra=(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=Ta(f),u=Hb(o,l);u>a&&(a=u,i=f,c=qb(o,l))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},Hb=(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(vu.test(r[i]))o+=1;else if(ku.test(r[i]))o+=.5;else return-1;return o},qb=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},Ia=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},Pa=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},Na=(t=0,e=F.location.pathname)=>{let n=e.split("/")[t+1];if(n)return`/${n}`},xo,So=0,Wb={level:So,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:$&&$.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!1},ee=(t,e,r={},n={})=>{let o=e||void 0,s=o.context.window||F,i=o.context.document||$,a={...Wb,...o.context.routerOptions,...n};So=a.lastLevel;let c=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||"content");let f=_r(o,a),l=new s.URL(s.location.origin+t),{pathname:u,search:p,hash:d}=l,h=Ia(p),m=o.node,x=d&&d!==s.location.hash.slice(1),v=u!==xo;xo=u;let _,C,T;if(a.useParamsMatching){let O=Ra(u,o.routes,a.level);_=O.routePath,C=O.content,T=O.params}else _=Na(a.level,u),C=o.routes[_||"/"]||o.routes["/*"],T={};let I=a.scrollToNode?m:a.scrollNode;if(!C||o.state.root.debugging){o.state.root.debugging=!1,a.onNotFound&&a.onNotFound({pathname:u,route:_,element:o});return}if(a.guards&&a.guards.length){let O={pathname:u,route:_,params:T,query:h,hash:d,element:o,state:r},E=Pa(a.guards,O);if(E===!1)return;if(typeof E=="string")return ee(E,e,r,{...n,guards:[]})}if(a.pushState&&s.history.pushState(r,null,u+(p||"")+(d||"")),v||!x){let O={route:_,hash:d,debugging:!1};Object.keys(T).length&&(O.params=T),Object.keys(h).length&&(O.query=h),a.updateState&&o.state.update(O,{preventContentUpdate:!0}),f&&a.removeOldElement&&o[f].remove();let E=o.__ref?.origin?.content,W={};if(E)for(let R in E){let D=E[R];R==="__ref"||R==="props"||R==="node"||R==="parent"||R==="key"||(typeof D=="string"||typeof D=="number"||typeof D=="boolean"||typeof D=="object"&&D!==null&&!D.node&&!D.__ref)&&(W[R]=D)}o.set({...W,tag:a.useFragment&&"fragment",extends:C},{contentElementKey:f})}if(a.scrollToTop&&I.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&C[f].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),d){let O=i.getElementById(d);if(O){let E=O.getBoundingClientRect().top+m.scrollTop-(a.scrollToOffset||0);I.scrollTo({...a.scrollToOptions||{},top:E,left:0})}}z("routeChanged",o,a)},Kb=ee;var Cu={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>{let e=t.props;return Gt(t,e.href)||Gt(t,t.call("exec",e,t).href)},"aria-label":({props:t})=>t.aria?t.aria.label:t.text}},Yb={extends:"Link"},Eu={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("."),v=d;for(let _ of x){if(!v||!v[_]){v=null;break}v=v[_]}v&&(m=v,d.routes&&(m.routes=d.routes))}(u.router||l.router||f.router||ee)(c,m,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",i)?i:!0,...p,...n.routerOptions})}catch(m){console.warn(m)}}}},Qb={extends:[Cu,Eu]};var Xb={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 Jb={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 Zb={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"}}},tx={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var ex={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 nx={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:"1px, 1px, Z, gray .2"},Icon:null}},ox={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var sx={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},ix={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 ax={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 cx={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"},fx={extends:"SquareButton",round:"C"},ux={extends:"Button",childExtends:"IconText"},px={tag:"nav",display:"flex",childExtends:"SquareButton"},dx={extends:["SquareButton","ClickableItem"],round:"Z"};var hx={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},mx={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},gx={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"}};w();var yx={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})=>Ct(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)}},bx={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"}}:{}})},xx={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 Sx={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 _x={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:Jn("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:Jn("#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 wx={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"}}},vx={position:"relative",zIndex:999,style:{"&:hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},kx={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()}}},Cx={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 Ex={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}}}};w();var fn={};Ft(fn,{CDN_PROVIDERS:()=>Jt,DOMQL_EVENTS:()=>En,DOMQ_PROPERTIES:()=>Ve,ENV:()=>Sd,ERRORS_REGISTRY:()=>Gf,HTML_TAGS:()=>An,METHODS:()=>Cn,METHODS_EXL:()=>zo,NODE_ENV:()=>Yt,OPTIONS:()=>ut,PACKAGE_MANAGER_TO_CDN:()=>dr,PARSED_DOMQ_PROPERTIES:()=>Vo,PROPS_METHODS:()=>ze,STATE_METHODS:()=>Ot,STATE_PROPERTIES:()=>ad,SVG_TAGS:()=>qe,TYPES:()=>Lo,addCaching:()=>Uc,addContext:()=>Bc,addExtend:()=>Vd,addExtends:()=>At,addItemAfterEveryElement:()=>Gp,addProtoToArray:()=>Pr,addRef:()=>$c,applyCSS:()=>Tu,applyDependentState:()=>Ns,applyEvent:()=>Mr,applyEventUpdate:()=>Fs,applyExtends:()=>hs,applyProps:()=>bs,arrayContainsOtherArray:()=>Mp,arraysEqual:()=>qp,arrayzeValue:()=>rn,cache:()=>Yd,call:()=>ui,captureSnapshot:()=>mi,checkForStateTypes:()=>Rs,checkIfInherits:()=>Xe,checkIfStringIsInArray:()=>Yp,clone:()=>ld,cloneAndMergeArrayExtend:()=>is,cloneFunction:()=>Rd,concatAddExtends:()=>ls,copyJavaScriptToClipboard:()=>Em,copyStringToClipboard:()=>Cm,createBasedOnType:()=>Fc,createElement:()=>Ts,createElementExtends:()=>Sc,createExtends:()=>cs,createExtendsFromKeys:()=>Tn,createExtendsStack:()=>kc,createIfConditionFlag:()=>$r,createInheritedState:()=>Is,createKey:()=>rs,createNestedObject:()=>Yo,createNestedObjectByKeyPath:()=>Ps,createObjectWithoutPrototype:()=>cc,createParent:()=>Lc,createPath:()=>Mc,createProps:()=>Ss,createPropsStack:()=>Pc,createRoot:()=>As,createScope:()=>Fn,createSnapshotId:()=>es,customDecodeURIComponent:()=>id,customEncodeURIComponent:()=>sd,cutArrayAfterValue:()=>Vp,cutArrayBeforeValue:()=>jp,debounce:()=>Cd,debounceOnContext:()=>Ed,decodeNewlines:()=>nd,deepClone:()=>j,deepContains:()=>Wo,deepDestringifyFunctions:()=>ce,deepExtend:()=>bc,deepMerge:()=>M,deepMergeExtends:()=>fe,deepStringifyFunctions:()=>Go,defineSetter:()=>yh,detectInfiniteLoop:()=>Zo,document:()=>$,encodeNewlines:()=>rd,error:()=>ai,excludeKeysFromObject:()=>xd,exec:()=>A,extendCachedRegistry:()=>Bd,extendStackRegistry:()=>fs,extractArrayExtend:()=>ps,fibonacciNumberByIndex:()=>um,filterArrays:()=>Wp,filterArraysFast:()=>Kp,finalizeExtends:()=>Cc,findClosestNumber:()=>nf,findClosestNumberInFactory:()=>lm,findInheritedState:()=>Qe,findKeyPosition:()=>Zp,flattenExtend:()=>Rn,formatDate:()=>fm,generateHash:()=>mc,generateKey:()=>ts,generateMetaTags:()=>_m,get:()=>mh,getActiveRoute:()=>Na,getCDNUrl:()=>Zt,getCapitalCaseKeys:()=>Gd,getCdnProviderFromConfig:()=>ro,getChildStateInKey:()=>Ye,getChildren:()=>gh,getContext:()=>oi,getCookie:()=>Fd,getDB:()=>pi,getExtendsInElement:()=>zd,getExtendsStack:()=>as,getExtendsStackRegistry:()=>yc,getFrequencyInArray:()=>Bp,getHashedExtend:()=>us,getImportMapScript:()=>Sm,getInObjectByPath:()=>Jo,getLocalStorage:()=>Ld,getNev:()=>kd,getPageMetadata:()=>km,getParentStateInKey:()=>Ke,getPath:()=>Zs,getQuery:()=>di,getRef:()=>Js,getRoot:()=>ei,getRootContext:()=>ni,getRootData:()=>ri,getRootState:()=>ti,getRootStateInKey:()=>We,getSpreadChildren:()=>Hd,global:()=>$p,hasFunction:()=>qo,hasOwnProperty:()=>hd,inheritChildExtends:()=>wc,inheritChildPropsExtends:()=>_c,inheritParentProps:()=>ws,inheritRecursiveChildExtends:()=>vc,init:()=>Me,initProps:()=>Nn,is:()=>Et,isArray:()=>S,isBoolean:()=>wn,isContextComponent:()=>gs,isCyclic:()=>bd,isDOMNode:()=>$t,isDate:()=>nc,isDefined:()=>Ct,isDevelopment:()=>Qt,isEmpty:()=>ic,isEmptyObject:()=>md,isEqualDeep:()=>ac,isFunction:()=>b,isHtmlElement:()=>$o,isLocal:()=>vd,isMethod:()=>zt,isMobile:()=>Nd,isNode:()=>ve,isNot:()=>Ir,isNotProduction:()=>Fr,isNull:()=>rc,isNumber:()=>lt,isObject:()=>g,isObjectLike:()=>N,isPhoto:()=>bm,isProduction:()=>He,isStaging:()=>wd,isState:()=>Dn,isString:()=>y,isStringFunction:()=>Td,isTest:()=>lc,isTesting:()=>_d,isUndefined:()=>Y,isValidHtmlTag:()=>Ce,joinArrays:()=>vn,jointStacks:()=>jd,keys:()=>jn,lastLevel:()=>So,lastPathname:()=>xo,loadCssFile:()=>mm,loadJavascript:()=>gm,loadJavascriptFile:()=>pm,loadJavascriptFileEmbedSync:()=>hm,loadJavascriptFileSync:()=>dm,loadRemoteCSS:()=>ym,loadRemoteScript:()=>eo,log:()=>si,logGroupIf:()=>Pd,logIf:()=>Id,lookdown:()=>Ks,lookdownAll:()=>Ys,lookup:()=>Ws,lowercaseFirstLetter:()=>ae,makeObjectWithoutPrototype:()=>gd,map:()=>cd,mapStringsWithContextComponents:()=>ds,matchRoute:()=>Ra,matchesComponentNaming:()=>Tt,memoize:()=>Od,merge:()=>Q,nextElement:()=>ci,objectToString:()=>Ho,objectizeStringProperty:()=>ys,overwrite:()=>le,overwriteDeep:()=>at,overwriteShallow:()=>Dr,overwriteState:()=>Ds,parse:()=>Vn,parseDeep:()=>Hr,parseQuery:()=>Ia,parseRoutePattern:()=>Ta,pickupElementFromProps:()=>Lr,pickupPropsFromElement:()=>Rc,previousElement:()=>li,propExists:()=>Kd,propertizeElement:()=>Pn,propertizeUpdate:()=>_s,reinit:()=>Au,remove:()=>Qs,removeChars:()=>Om,removeCookie:()=>$d,removeDuplicateProps:()=>ks,removeDuplicatesInArray:()=>kn,removeFromArray:()=>Mo,removeFromObject:()=>Ko,removeNestedKeyByPath:()=>Qo,removeValueFromArray:()=>Uo,removeValueFromArrayAll:()=>zp,reorderArrayByValues:()=>Hp,replaceLiteralsWithObjectFields:()=>Jp,replaceOctalEscapeSequences:()=>ed,report:()=>gt,returnValueAsText:()=>Dc,router:()=>ee,runGuards:()=>Pa,scratchSystem:()=>io,scratchUtils:()=>mr,self:()=>Lp,set:()=>on,setCookie:()=>Dd,setHashedExtend:()=>gc,setInObjectByPath:()=>Xo,setLocalStorage:()=>Md,setNodeStyles:()=>Un,setProps:()=>Xs,setPropsPrototype:()=>vs,spotByPath:()=>qs,stringIncludesAny:()=>jo,stringToObject:()=>dd,swapItemsInArray:()=>Up,syncProps:()=>Cs,toCamelCase:()=>Oi,toDashCase:()=>Ai,toDescriptionCase:()=>Tm,toTitleCase:()=>Am,toggleFullscreen:()=>cm,triggerEventOn:()=>z,triggerEventOnUpdate:()=>_t,trimStringFromSymbols:()=>Qp,unstackArrayOfObjects:()=>Bo,update:()=>Ic,updateProps:()=>Es,variables:()=>fi,verbose:()=>zn,warn:()=>ii,window:()=>F});w();w();var Ox=k(),Ou=(t=Ox,e)=>{let r=g(e.localFile)?e.localFile:{},n=j(r.designSystem||{});return M(t,n)},Ax={emotion:wt,useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Me=(t,e=Ax)=>{let r=e.emotion||wt,n=Ou(t||{},e),o=on({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=Ci(o.font||o.FONT,o.files),i=o.useReset,a=o.useVariable,c=o.useFontImport,f=o.useSvgSprite,l=t.svg||t.SVG,u=o.useIconSprite,p=t.icons||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||o.RESET);let d=o.animation||o.ANIMATION;if(d){let h={};for(let m in d)h[`@keyframes ${m}`]=d[m];r.injectGlobal(h)}return(l||f)&&sa(o.svg||o.SVG,{document:e.document}),(p||u)&&aa(o.icons||o.ICONS,{document:e.document}),o},_o={emotion:wt},Au=(t,e=_o)=>{let r=e.emotion||wt,n=Ou(t||{},e),o=on({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},Tu=(t,e=_o)=>{(e.emotion||wt).injectGlobal(t)},HA=(t,e=_o)=>{let r=e.emotion||wt;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)}},qA=(t,e=_o)=>{};w();var Fa={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},Iu=(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},Pu=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=Fa:e.router=Q(e.router||{},Fa);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=Iu(s,r.customRouterElement);p&&(u=p,s.routes&&(u.routes=s.routes))}u.routes&&await ee(l,u,{},{initialRender:!0})},o=t.on&&!Y(t.on.renderRouter)||!Y(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.on?t.on.renderRouter=n:t.on={renderRouter:n}),Tx(e,r),r},Ru,Nu=(t,e)=>{if(Ru)return;Ru=!0;let r=e.router||Fa;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:ee;F.onpopstate=async o=>{let{pathname:s,search:i,hash:a}=F.location,c=s+i+a,f=t;if(r.customRouterElement){let l=Iu(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})}},Tx=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return M(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};w();var $a=F&&F.location?F.location.host.includes("dev."):Qt(),Du=$a?"http://localhost:8080/get":"https://api.symbols.app/get",Rx={endpoint:Du},Fu=async(t,e=Rx)=>{let r=e.endpoint||Du,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)}},Ix=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await Fu(t,r),o=$a||e.isDevelopment?ce(n):ce(n.releases[0]);r.serviceRoute?S(r.serviceRoute)?r.serviceRoute.forEach(s=>{at(e[s],o[s.toLowerCase()])}):at(e[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","packages","functions"].forEach(s=>{at(e[s],o[s.toLowerCase()])})}return e},Px=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await Fu(t,n),s=$a||e.isDevelopment?ce(o):ce(o.releases[0]);r(s)}},$u=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await Ix(t,e)}catch(r){console.error(r)}},Lu=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&Px(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)}};w();var Nx={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"}},Dx=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}"]`},Mu=(t,e,r)=>{if(!t)return{};let n=b(t)?A(t,e,r):{...t};if(!g(n))return{};for(let o in n)b(n[o])&&(n[o]=A(n[o],e,r));return n};var Fx=(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},Bu=(t,e)=>{if(!(!g(t)||!e))for(let r in t){let n=t[r];if(n==null)continue;let o=Nx[r];if(!o)continue;let s=Dx(o),i=e.querySelector(s)||Fx(o,e);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}};Ze();var wo={routes:t=>t,metadata:(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<"u"&&document;if(!n)return;let o=Mu(t,e,r);Bu(o,n)},fetch:(t,e,r,n)=>{t&&Bn(t,e,r,n)},$router: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}};var Uu={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},La={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},Ma={...Uu,router:La},$x={state:{},pages:{},components:{},router:La,define:wo},xe=$x;var Lx=(t,e,r,n)=>{let o=(bo.default||bo)(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},vo={TREE:ka,create:Lx};w();w();var jt=Object.create(null);jt.open="0";jt.close="1";jt.ping="2";jt.pong="3";jt.message="4";jt.upgrade="5";jt.noop="6";var un=Object.create(null);Object.keys(jt).forEach(t=>{un[jt[t]]=t});var pn={type:"error",data:"parser error"};var zu=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Gu=typeof ArrayBuffer=="function",Hu=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,dn=({type:t,data:e},r,n)=>zu&&e instanceof Blob?r?n(e):ju(e,n):Gu&&(e instanceof ArrayBuffer||Hu(e))?r?n(e):ju(new Blob([e]),n):n(jt[t]+(e||"")),ju=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];e("b"+(n||""))},r.readAsDataURL(t)};function Vu(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var Ba;function qu(t,e){if(zu&&t.data instanceof Blob)return t.data.arrayBuffer().then(Vu).then(e);if(Gu&&(t.data instanceof ArrayBuffer||Hu(t.data)))return e(Vu(t.data));dn(t,!1,r=>{Ba||(Ba=new TextEncoder),e(Ba.encode(r))})}var Wu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Wu.length;t++)hn[Wu.charCodeAt(t)]=t;var Ku=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=hn[t.charCodeAt(n)],i=hn[t.charCodeAt(n+1)],a=hn[t.charCodeAt(n+2)],c=hn[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 Mx=typeof ArrayBuffer=="function",mn=(t,e)=>{if(typeof t!="string")return{type:"message",data:Yu(t,e)};let r=t.charAt(0);return r==="b"?{type:"message",data:Bx(t.substring(1),e)}:un[r]?t.length>1?{type:un[r],data:t.substring(1)}:{type:un[r]}:pn},Bx=(t,e)=>{if(Mx){let r=Ku(t);return Yu(r,e)}else return{base64:!0,data:t}},Yu=(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 Qu="",Xu=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{dn(s,!1,a=>{n[i]=a,++o===r&&e(n.join(Qu))})})},Ju=(t,e)=>{let r=t.split(Qu),n=[];for(let o=0;o<r.length;o++){let s=mn(r[o],e);if(n.push(s),s.type==="error")break}return n};function Zu(){return new TransformStream({transform(t,e){qu(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 Ua;function ko(t){return t.reduce((e,r)=>e+r.length,0)}function Co(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 tp(t,e){Ua||(Ua=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(ko(r)<1)break;let c=Co(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(ko(r)<2)break;let c=Co(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(ko(r)<8)break;let c=Co(r,8),f=new DataView(c.buffer,c.byteOffset,c.length),l=f.getUint32(0);if(l>Math.pow(2,21)-1){a.enqueue(pn);break}o=l*Math.pow(2,32)+f.getUint32(4),n=3}else{if(ko(r)<o)break;let c=Co(r,o);a.enqueue(mn(s?c:Ua.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(pn);break}}}})}var ja=4;function X(t){if(t)return Ux(t)}function Ux(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 re=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),yt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),ep="arraybuffer";function Eo(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var jx=yt.setTimeout,Vx=yt.clearTimeout;function ne(t,e){e.useNativeTimers?(t.setTimeoutFn=jx.bind(yt),t.clearTimeoutFn=Vx.bind(yt)):(t.setTimeoutFn=yt.setTimeout.bind(yt),t.clearTimeoutFn=yt.clearTimeout.bind(yt))}var zx=1.33;function rp(t){return typeof t=="string"?Gx(t):Math.ceil((t.byteLength||t.size)*zx)}function Gx(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 Oo(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function np(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function op(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 Ao=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type="TransportError"}},oe=class extends X{constructor(e){super(),this.writable=!1,ne(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 Ao(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=mn(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=np(e);return r.length?"?"+r:""}};var gn=class extends oe{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)};Ju(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,Xu(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]=Oo()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var sp=!1;try{sp=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var ip=sp;function Hx(){}var Va=class extends gn{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}},Se=class t extends X{constructor(e,r,n){super(),this.createRequest=e,ne(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=Eo(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=Hx,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()}};Se.requestsCount=0;Se.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",ap);else if(typeof addEventListener=="function"){let t="onpagehide"in yt?"pagehide":"unload";addEventListener(t,ap,!1)}}function ap(){for(let t in Se.requests)Se.requests.hasOwnProperty(t)&&Se.requests[t].abort()}var qx=(function(){let t=cp({xdomain:!1});return t&&t.responseType!==null})(),_e=class extends Va{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=qx&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Se(cp,this.uri(),e)}};function cp(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||ip))return new XMLHttpRequest}catch{}if(!e)try{return new yt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var lp=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Ga=class extends oe{get name(){return"websocket"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=lp?{}:Eo(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;dn(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&re(()=>{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]=Oo()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},za=yt.WebSocket||yt.MozWebSocket,we=class extends Ga{createSocket(e,r,n){return lp?new za(e,r,n):r?new za(e,r):new za(e)}doWrite(e,r){this.ws.send(r)}};var wr=class extends oe{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=tp(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=Zu();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&&re(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var Ha={websocket:we,webtransport:wr,polling:_e};var Wx=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Kx=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function vr(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=Wx.exec(t||""),s={},i=14;for(;i--;)s[Kx[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=Yx(s,s.path),s.queryKey=Qx(s,s.query),s}function Yx(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 Qx(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var qa=typeof addEventListener=="function"&&typeof removeEventListener=="function",To=[];qa&&addEventListener("offline",()=>{To.forEach(t=>t())},!1);var Be=class t extends X{constructor(e,r){if(super(),this.binaryType=ep,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=vr(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=vr(r.host).host);ne(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=op(this.opts.query)),qa&&(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"})},To.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=ja,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+=rp(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,re(()=>{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(),qa&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=To.indexOf(this._offlineEventListener);n!==-1&&To.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};Be.protocol=ja;var Ro=class extends Be{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;Be.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;Be.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}},kr=class extends Ro{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=>Ha[o]).filter(o=>!!o)),super(e,n)}};var vR=kr.protocol;function fp(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=vr(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 Ja={};Ft(Ja,{Decoder:()=>Qa,Encoder:()=>Ya,PacketType:()=>P,isPacketValid:()=>iS,protocol:()=>mp});var Jx=typeof ArrayBuffer=="function",Zx=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,up=Object.prototype.toString,tS=typeof Blob=="function"||typeof Blob<"u"&&up.call(Blob)==="[object BlobConstructor]",eS=typeof File=="function"||typeof File<"u"&&up.call(File)==="[object FileConstructor]";function bn(t){return Jx&&(t instanceof ArrayBuffer||Zx(t))||tS&&t instanceof Blob||eS&&t instanceof File}function yn(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(yn(t[r]))return!0;return!1}if(bn(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return yn(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&yn(t[r]))return!0;return!1}function pp(t){let e=[],r=t.data,n=t;return n.data=Wa(r,e),n.attachments=e.length,{packet:n,buffers:e}}function Wa(t,e){if(!t)return t;if(bn(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]=Wa(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]=Wa(t[n],e));return r}return t}function dp(t,e){return t.data=Ka(t.data,e),delete t.attachments,t}function Ka(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]=Ka(t[r],e);else if(typeof t=="object")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=Ka(t[r],e));return t}var hp=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],mp=5,P;(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"})(P||(P={}));var Ya=class{constructor(e){this.replacer=e}encode(e){return(e.type===P.EVENT||e.type===P.ACK)&&yn(e)?this.encodeAsBinary({type:e.type===P.EVENT?P.BINARY_EVENT:P.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===P.BINARY_EVENT||e.type===P.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=pp(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},Qa=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===P.BINARY_EVENT;n||r.type===P.BINARY_ACK?(r.type=n?P.EVENT:P.ACK,this.reconstructor=new Xa(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(bn(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(P[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===P.BINARY_EVENT||n.type===P.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 P.CONNECT:return Io(r);case P.DISCONNECT:return r===void 0;case P.CONNECT_ERROR:return typeof r=="string"||Io(r);case P.EVENT:case P.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&hp.indexOf(r[0])===-1);case P.ACK:case P.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Xa=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=dp(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function rS(t){return typeof t=="string"}var nS=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function oS(t){return t===void 0||nS(t)}function Io(t){return Object.prototype.toString.call(t)==="[object Object]"}function sS(t,e){switch(t){case P.CONNECT:return e===void 0||Io(e);case P.DISCONNECT:return e===void 0;case P.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&hp.indexOf(e[0])===-1);case P.ACK:return Array.isArray(e);case P.CONNECT_ERROR:return typeof e=="string"||Io(e);default:return!1}}function iS(t){return rS(t.nsp)&&oS(t.id)&&sS(t.type,t.data)}function kt(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var aS=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Cr=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(aS.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:P.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:P.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 P.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 P.EVENT:case P.BINARY_EVENT:this.onevent(e);break;case P.ACK:case P.BINARY_ACK:this.onack(e);break;case P.DISCONNECT:this.ondisconnect();break;case P.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:P.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:P.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 Ue(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}Ue.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};Ue.prototype.reset=function(){this.attempts=0};Ue.prototype.setMin=function(t){this.ms=t};Ue.prototype.setMax=function(t){this.max=t};Ue.prototype.setJitter=function(t){this.jitter=t};var Er=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,ne(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 Ue({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||Ja;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 kr(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){re(()=>{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 Cr(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 xn={};function Sn(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let r=fp(t,e.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=xn[o]&&s in xn[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Er(n,e):(xn[o]||(xn[o]=new Er(n,e)),c=xn[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(Sn,{Manager:Er,Socket:Cr,io:Sn,connect:Sn});w();var cS={success:"green",error:"red",warning:"yellow"},gp=(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)}},_n={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:cS[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 yp=process.env.NODE_ENV==="local",lS=(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)},fS=(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":lS(t,o);break;case"update":case"set":fS(t,o,s,!0);break;default:break}return r},pS=async()=>{try{let t=yp?"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)}},dS=(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"?Me(a):Dr(r[i],a):r[i]=a}),s&&(r.schema=s))},hS=(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")&&Me(r.designSystem)},mS=async(t,e,r)=>{let n=await pS();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=Sn(yp?"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",dS(t,e,r)),i.on("ops",hS(t,e,r)),i.on("clients",a=>{r.editor?.verbose&&gp(a,t,e)}),i.on("disconnect",a=>{r.editor?.verbose&&console.info("[sync] Disconnected from collab socket",a)}),i},Po={onInitSync:mS};var bp=(t,e)=>N(t.extends)?t.extends:[],xp=(t,e)=>{let{editor:r}=e;if(!r)return;(Y(r.liveSync)?Qt():r.liveSync)&&(S(t.extends)?t.extends.push(Po):t.extends?t.extends=[t.extends,Po]:t.extends=[Po])};var Sp=(t,e)=>{let{editor:r}=e;if(!r)return;(Y(r.verbose)?Qt()||e.verbose:r.verbose)&&(S(t.extends)?t.extends.push(_n):t.extends?t.extends=[t.extends,_n]:t.extends=[_n])};w();w();var gS=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],_p=(t,e={})=>{let r=e.parent||e.document||document,n=e.initOptions||{},o=n.emotion;n.emotion||(n.emotion=wt);let s=e.registry||Wl(n.emotion,e),i=n.useDefaultConfig||e.useDefaultConfig||e.designSystem?.useDefaultConfig?M(e.designSystem,j(ma)):e.designSystem||j(ma),a={};for(let f of gS)e[f]!==void 0&&(a[f]=e[f]);return[Me(i,{key:t,emotion:o,document:r,files:e.files,...Ma,...a,...n}),o,s]};var kp=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},wp=(t="smbls")=>{let e={};for(let r in Le)Object.prototype.hasOwnProperty.call(Le,r)&&(Tt(r)?e[`smbls.${r}`]=Le[r]:e[r]=Le[r]);return e},Cp=t=>t.components?{...wp(),...t.components}:wp(),Ep=t=>({...fn,...Da,...mr,...t.utils,...t.snippets,...t.functions}),Op=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),vp={},Ap=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=dr[s]||ro(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=Qt()&&n?`?${Math.random()}`:"",u=Zt(c,f,o)+l;try{if(vp[c])return;vp[c]=!0,await eo(u,{document:r,type:"module"})}catch(p){if(console.error(`Failed to load ${c} from ${o}:`,p),o!=="symbols")try{let d=Zt(c,f,"symbols")+l;await eo(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},Tp=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||ro(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=Qt()?`?${Math.random()}`:"";if(f&&f[a]){let d=f[a],h=Zt(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=Zt(a,d,"symbols")+p;await i.utils.loadRemoteScript(x,{window:u,document:l})}}}else{let d=Zt(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=Zt(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=Q(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)},Rp=(t,e)=>{let[r,n,o]=_p(t,e);return[r,n,o]},Ip=(t,e)=>{let r={};return e.state&&M(r,e.state),t&&t.state&&M(r,t.state),r.isRootState=!0,j(r)},Pp=(t,e)=>{g(t.routes)&&g(e.pages)&&Q(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},Np=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),M(t,n,["designSystem"],1)):M(t,n,[],1)}};var yS=async(t,e={})=>{let r=e.key=e.key||(y(t)?t:"smblsapp");e.define=e.define||wo,e.cssPropsRegistry=sn,e.window=kp(e),e.sharedLibraries&&e.sharedLibraries.length&&Np(e);let[n,o,s]=Rp(r,e);e.designSystem=n,e.registry=s,e.emotion=o;let i=Ip(t,e);return e.state=i,e.pages=Pp(t,e),e.components=Cp(e),e.utils=Ep(e),dr[e.packageManager]&&(e.dependencies=await Ap(e)),e.methods=Op(e),e.routerOptions=Pu(t,e),e.defaultExtends=[ya],e.snippets=e.snippets||{},e.functions=e.functions||{},e},Za=async(t,e)=>{g(e)||(e={}),ve(t)?(t={},e.parent=t):y(t)?(t={},e.key=t):g(t)||(t={}),await yS(t,e),t.extends=bp(t,e),t.routes=e.pages,t.state=e.state,t.context=e,t.data=t.data||{},t.data.frameListeners=Kf(e),await Tp({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e),xp(t,e),Sp(t,e);let r=e.document;if(!r||!r.createElement)return t;let n=e.parent||r.body;return await(vo.default&&vo.default.create||vo.create)(t,n,e.key,{verbose:e.verbose,...e.domqlOptions})};var tc=(t,e)=>M(t,g(e)?e:{}),Dp=(t,e=xe,r)=>{let n={...xe,...tc(e,r)},o=Za(t,n).then(s=>{Nu(s,n),n.on&&n.on.create&&n.on.create(o,o.state,o.context,n)});return o},H2=(t,e=xe,r)=>{let n=Dp(t,e,r),o={...xe,...tc(e,r)},s=o.key;return Lu(n,s,{utils:fn,...o}),n},q2=async(t,e=xe,r)=>{let n={...xe,...tc(e,r)},o=e.key;await $u(o,n);let s=await Za(t,n);return n.on&&n.on.create&&await n.on.create(s,s.state,s.context,n),s},W2=(t={},e=xe,r)=>Dp({deps:{isUndefined:Y},...t},M({domqlOptions:{onlyResolveExtends:!0}},e),r);export{Yb as A,Xm as ANIMATION,_f as ANIMATION_PROPS,fw as ARIA_ROLES,ul as ATTR_TRANSFORMS,Sx as Avatar,Iy as B,wf as BLOCK_PROPS,Km as BREAKPOINTS,Kg as Block,ya as Box,$y as Br,cx as Button,px as ButtonSet,Qm as CASES,Jt as CDN_PROVIDERS,og as CLASS,Bm as COLOR,Ni as CONFIG,ag as CSS_MEDIA_VARS,Xt as CSS_NATIVE_COLOR_REGEX,sn as CSS_PROPS_REGISTRY,Jr as CSS_UNITS,ig as CSS_VARS,wy as Caption,Zb as Checkbox,tx as CheckboxHgroup,fx as CircleButton,iy as Clickable,ma as DEFAULT_CONFIG,Ma as DEFAULT_CONTEXT,Tf as DEFAULT_CSS_PROPERTIES_LIST,Uu as DESIGN_SYSTEM_OPTIONS,Ym as DEVICES,Wm as DOCUMENT,En as DOMQL_EVENTS,Ve as DOMQ_PROPERTIES,Oh as DOM_EVENTS,Ny as Data,hx as Dialog,gx as DialogFooter,mx as DialogHeader,wx as DropdownList,vx as DropdownParent,kx as DropdownParentFocus,Cx as DropdownSiblingFocus,Sd as ENV,Ie as FACTORY,Of as FLEX_PROPS,Pm as FONT,Fm as FONT_FACE,Nm as FONT_FAMILY,Dm as FONT_FAMILY_TYPES,vf as FONT_PROPS,Hy as FileIcon,Qg as Flex,ay as Focusable,cy as FocusableComponent,Ry as Footnote,ry as Form,Um as GRADIENT,rg as GRID,Af as GRID_PROPS,Jg as Grid,ty as Gutter,my as H1,gy as H2,yy as H3,by as H4,xy as H5,Sy as H6,gi as HTML_ATTRIBUTES,An as HTML_TAGS,Ay as Headline,Uy as Hgroup,Vy as HgroupButton,jy as HgroupRows,sy as Hoverable,Fy as Hr,Py as I,zm as ICONS,zy as Icon,dx as IconButton,Gy as IconText,ny as Iframe,ey as Img,Yg as Inline,Xg as InlineFlex,Zg as InlineGrid,Xb as Input,Ey as Italic,ux as KangorooButton,Ly as Li,Cu as Link,$m as MEDIA,Cn as METHODS,zo as METHODS_EXL,da as MISC_PROPS,Yt as NODE_ENV,Ex as Notification,Jb as NumberInput,ut as OPTIONS,By as Ol,_y as P,dr as PACKAGE_MANAGER_TO_CDN,Vo as PARSED_DOMQ_PROPERTIES,kf as POSITION_PROPS,ze as PROPS_METHODS,uy as Picture,sg as RESET,La as ROUTER_OPTIONS,ex as Radio,rx as RadioHgroup,_x as Range,Qb as RouteLink,Eu as RouterLink,Gm as SEMANTIC_ICONS,Re as SEQUENCE,Vm as SHADOW,ly as SHAPES,Mm as SPACING,Ot as STATE_METHODS,ad as STATE_PROPERTIES,Jm as SVG,Zm as SVG_DATA,qe as SVG_TAGS,ax as Select,lx as SquareButton,vy as Strong,Ty as Subhead,py as Svg,tg as TEMPLATES,jm as THEME,Cf as THEME_PROPS,qm as TIMING,Ef as TIMING_PROPS,Lo as TYPES,Ti as TYPOGRAPHY,hy as Text,sx as Textarea,ix as TextareaWithButton,fy as Theme,Oy as Title,nx as Toggle,ox as ToggleHgroup,yx as Tooltip,bx as TooltipHidden,xx as TooltipParent,ky as U,Rm as UNIT,My as Ul,Cy as Underline,Sf as VALUE_TRANSFORMERS,dy as Video,yv as activateConfig,Uc as addCaching,Bc as addContext,Vd as addExtend,At as addExtends,Gp as addItemAfterEveryElement,Pr as addProtoToArray,$c as addRef,sa as appendSVGSprite,aa as appendSvgIconsSprite,pw as applyAttrTransforms,Tu as applyCSS,vi as applyClassListOnNode,Kw as applyClasslist,Ns as applyDependentState,na as applyDocument,Mr as applyEvent,Fs as applyEventUpdate,hs as applyExtends,df as applyHeadings,hr as applyMediaSequenceVars,bs as applyProps,ca as applyReset,ji as applySequenceGlobalVars,De as applySequenceVars,Zi as applySpacingSequence,ra as applyTimingSequence,If as applyTrueProps,Qi as applyTypographySequence,Mp as arrayContainsOtherArray,qp as arraysEqual,rn as arrayzeValue,Ww as assignKeyAsClassname,Yd as cache,ui as call,mi as captureSnapshot,om as changeLightness,pl as checkAttributeByTagName,Ah as checkEventFunctions,Rs as checkForStateTypes,Ji as checkIfBoxSize,Xe as checkIfInherits,Yp as checkIfStringIsInArray,Qh as classList,Yh as classify,ld as clone,is as cloneAndMergeArrayExtend,Rd as cloneFunction,me as colorStringToRgbaArray,ls as concatAddExtends,Vi as convertSvgToSymbol,Em as copyJavaScriptToClipboard,Cm as copyStringToClipboard,Dp as create,H2 as createAsync,Fc as createBasedOnType,Ts as createElement,Sc as createElementExtends,Xh as createEmotion,cs as createExtends,Tn as createExtendsFromKeys,kc as createExtendsStack,$r as createIfConditionFlag,Is as createInheritedState,rs as createKey,Yo as createNestedObject,Ps as createNestedObjectByKeyPath,cc as createObjectWithoutPrototype,Lc as createParent,Mc as createPath,Ss as createProps,Pc as createPropsStack,As as createRoot,Fn as createScope,W2 as createSkeleton,es as createSnapshotId,q2 as createSync,id as customDecodeURIComponent,sd as customEncodeURIComponent,Vp as cutArrayAfterValue,jp as cutArrayBeforeValue,Cd as debounce,Ed as debounceOnContext,nd as decodeNewlines,j as deepClone,Wo as deepContains,ce as deepDestringifyFunctions,bc as deepExtend,M as deepMerge,fe as deepMergeExtends,Go as deepStringifyFunctions,yh as defineSetter,ga as depth,Zo as detectInfiniteLoop,$ as document,wt as emotion,rd as encodeNewlines,ai as error,xd as excludeKeysFromObject,A as exec,uw as executeAttr,Xk as exetuteClassPerComponent,Bd as extendCachedRegistry,fs as extendStackRegistry,ps as extractArrayExtend,um as fibonacciNumberByIndex,Wp as filterArrays,Kp as filterArraysFast,dl as filterAttributesByTagName,Cc as finalizeExtends,nf as findClosestNumber,lm as findClosestNumberInFactory,cf as findHeadingLetter,Ui as findHeadings,Qe as findInheritedState,Zp as findKeyPosition,Rn as flattenExtend,fm as formatDate,mc as generateHash,ts as generateKey,_m as generateMetaTags,qt as generateSequence,fg as generateSequencePosition,no as generateSprite,Mi as generateSubSequence,mh as get,k as getActiveConfig,Zt as getCDNUrl,Gd as getCapitalCaseKeys,ro as getCdnProviderFromConfig,Ye as getChildStateInKey,gh as getChildren,Z as getColor,Jl as getColorShade,oi as getContext,Fd as getCookie,pi as getDB,tn as getDefaultOrFirstKey,zd as getExtendsInElement,as as getExtendsStack,yc as getExtendsStackRegistry,Ne as getFnPrefixAndValue,am as getFontFace,en as getFontFaceEach,rf as getFontFaceEachString,Ci as getFontFaceString,Ki as getFontFamily,tf as getFontFormat,Xi as getFontSizeByKey,Bp as getFrequencyInArray,us as getHashedExtend,Sm as getImportMapScript,Jo as getInObjectByPath,Ld as getLocalStorage,vt as getMediaColor,Wt as getMediaTheme,kd as getNev,km as getPageMetadata,Ke as getParentStateInKey,Zs as getPath,di as getQuery,Js as getRef,Zr as getRgbTone,ei as getRoot,ni as getRootContext,ri as getRootData,ti as getRootState,We as getRootStateInKey,Bi as getSequenceValue,af as getSequenceValueBySymbols,ye as getSequenceValuePropertyPair,ea as getShadow,Fe as getSpacingBasedOnRatio,ct as getSpacingByKey,Hd as getSpreadChildren,Li as getSubratio,$i as getSubratioDifference,Gi as getTheme,Lt as getTimingByKey,Pt as getTimingFunction,$p as global,qo as hasFunction,hd as hasOwnProperty,tm as hexToRgb,Kl as hexToRgbArray,rm as hexToRgba,Xl as hslToRgb,wc as inheritChildExtends,_c as inheritChildPropsExtends,ws as inheritParentProps,vc as inheritRecursiveChildExtends,Me as init,Nn as initProps,Et as is,S as isArray,wn as isBoolean,ot as isCSSVar,gs as isContextComponent,bd as isCyclic,$t as isDOMNode,nc as isDate,Ct as isDefined,Qt as isDevelopment,ic as isEmpty,md as isEmptyObject,ac as isEqualDeep,b as isFunction,Zn as isGoogleFontsUrl,$o as isHtmlElement,vd as isLocal,zt as isMethod,Nd as isMobile,ve as isNode,Ir as isNot,Fr as isNotProduction,rc as isNull,lt as isNumber,g as isObject,N as isObjectLike,bm as isPhoto,He as isProduction,ge as isResolvedColor,Xr as isScalingUnit,wd as isStaging,Dn as isState,y as isString,Td as isStringFunction,lc as isTest,_d as isTesting,Y as isUndefined,Ce as isValidHtmlTag,vn as joinArrays,jd as jointStacks,jn as keys,mm as loadCssFile,gm as loadJavascript,pm as loadJavascriptFile,hm as loadJavascriptFileEmbedSync,dm as loadJavascriptFileSync,ym as loadRemoteCSS,eo as loadRemoteScript,si as log,Pd as logGroupIf,Id as logIf,Ks as lookdown,Ys as lookdownAll,Ws as lookup,ae as lowercaseFirstLetter,gd as makeObjectWithoutPrototype,cd as map,ds as mapStringsWithContextComponents,Tt as matchesComponentNaming,Od as memoize,Q as merge,Zh as mixTwoColors,nm as mixTwoRgb,Zl as mixTwoRgba,ci as nextElement,Pe as numToLetterMap,Ho as objectToString,ys as objectizeStringProperty,Jn as opacify,le as overwrite,at as overwriteDeep,Dr as overwriteShallow,Ds as overwriteState,Vn as parse,fr as parseColorToken,Hr as parseDeep,Lr as pickupElementFromProps,Rc as pickupPropsFromElement,li as previousElement,Kd as propExists,Pn as propertizeElement,_s as propertizeUpdate,Au as reinit,Qs as remove,Om as removeChars,$d as removeCookie,ks as removeDuplicateProps,kn as removeDuplicatesInArray,Mo as removeFromArray,Ko as removeFromObject,Qo as removeNestedKeyByPath,Uo as removeValueFromArray,zp as removeValueFromArrayAll,Hp as reorderArrayByValues,Jp as replaceLiteralsWithObjectFields,ed as replaceOctalEscapeSequences,fa as resolveColorsInGradient,Te as resolveFileUrl,Gt as resolvePropValue,im as returnSubThemeOrDefault,Dc as returnValueAsText,Yl as rgbArrayToHex,Ql as rgbToHSL,em as rgbToHex,pf as runThroughMedia,io as scratchSystem,mr as scratchUtils,Lp as self,on as set,of as setActiveConfig,qA as setClass,gr as setColor,Dd as setCookie,ki as setCustomFont,pr as setCustomFontMedia,Tg as setEach,Wi as setFont,Yi as setFontFamily,to as setFontImport,yr as setGradient,gc as setHashedExtend,ef as setInCustomFontMedia,Xo as setInObjectByPath,Md as setLocalStorage,qi as setMediaTheme,Un as setNodeStyles,Xs as setProps,vs as setPropsPrototype,so as setSVG,Fi as setScalingVar,br as setShadow,sf as setSubScalingVar,ia as setSvgIcon,Hi as setTheme,Ag as setValue,ug as setVariables,ta as splitSpacedValue,ur as splitTopLevelCommas,ao as splitTransition,qs as spotByPath,jo as stringIncludesAny,dd as stringToObject,Up as swapItemsInArray,Cs as syncProps,Oi as toCamelCase,Ai as toDashCase,Tm as toDescriptionCase,Am as toTitleCase,cm as toggleFullscreen,bf as transformBackgroundImage,be as transformBorder,ua as transformBorderRadius,la as transformBoxShadow,Wl as transformDOMQLEmotion,xr as transformDuration,eC as transformEmotion,ql as transformEmotionClass,Jh as transformEmotionStyle,yf as transformShadow,st as transformSize,B as transformSizeRatio,gf as transformTextStroke,Eg as transformTransition,Pf as transformersByPrefix,xf as transfromGap,z as triggerEventOn,_t as triggerEventOnUpdate,Qp as trimStringFromSymbols,Bo as unstackArrayOfObjects,Ic as update,Es as updateProps,HA as updateVars,Kt as useCssInProps,Vg as usePropsAsCSS,zg as useSelectorsAsCSS,fi as variables,zn as verbose,ii as warn,F as window};
35
+ ${r}`:"";return new Error(`"${t}", "${e}"${s}${i}`)};w();var Gf=t=>Ce(t||"div")||gt("HTMLInvalidTag");var Qy=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)},Jy=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}}},Kf=t=>{let e=typeof window<"u"&&window.requestAnimationFrame;if(ba||!e)return;ba=!0;function r(){if(t.size===0){ba=!1;return}Jy(t),e(r)}e(r)},Yf=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)&&(Qy(t),Kf(o))},ba=!1,Xf=()=>{let t=new Set;return Kf(t),t};w();var Qf=t=>{let{props:e,on:r}=t;for(let n in e){if(n.charCodeAt(0)!==111||n.charCodeAt(1)!==110)continue;let o=ae(n.slice(2)),s=r[o],i=e[n];b(s)?r[o]=(...a)=>{if(s(...a)!==!1)return i(...a)}:r[o]=i}},Jf=t=>{let{on:e}=t;for(let r in t){if(r.charCodeAt(0)!==111||r.charCodeAt(1)!==110||!Object.prototype.hasOwnProperty.call(t,r))continue;let n=t[r];if(!b(n))continue;let o=ae(r.slice(2)),s=e[o];b(s)?e[o]=(...i)=>{if(s(...i)!==!1)return n(...i)}:e[o]=n}};w();var xa="http://www.w3.org/2000/svg",Zy=t=>{let{tag:e,context:r}=t,n=r.document||L;return e?e==="string"?n.createTextNode(t.text):e==="fragment"?n.createDocumentFragment():We.has(e)&&(e==="svg"||t.parent?.node?.namespaceURI===xa)?n.createElementNS(xa,e):n.createElement(e):n.createElement("div")},Sa=t=>{let{tag:e,key:r,props:n}=t;if(e=O(e,t),e===!0&&(e=r),g(n)&&y(n.tag)&&Ce(n.tag))return n.tag;if(y(e)){if(Ce(e))return e}else{let o=r.toLowerCase();if(o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),Ce(o))return o}return"div"},Zf=t=>{let{context:e}=t,r=e.window||window,n=t.tag=Sa(t);if(!Gf(n))return gt("HTMLInvalidTag",t.tag,t);r.nodeCaches||(r.nodeCaches={});let s=We.has(n)&&(n==="svg"||t.parent?.node?.namespaceURI===xa)?"svg:"+n:n,i=r.nodeCaches[s];i||(i=r.nodeCaches[s]=Zy(t));let a=i.cloneNode(!0);return n==="string"&&(a.nodeValue=t.text),a};var tb=(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)},rb=(t,e,r)=>{if(!t)throw new Error("Node is required");(r||e.parentNode)?.insertBefore(t,e)},_a=(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"?rb:eb)(t.node,n.node||e.node):tb(t.node,e.node,t)),t};w();var ho=(t,e={})=>{let{__ref:r}=t;for(let n in t){if(e[n])continue;let o=t[n];if(b(o)&&!zt(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}}},tu=(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)||lt(a);if(s?.node&&c)le(s,{text:a});else if(a!==s)if(Tt(o)){let{extends:f,...l}=xs(a,t,o);le(s,l)}else n[o]=s,t[o]=a}return n},mo=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}}},go=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)&&!zt(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},eu=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)}};w();function ru(t,e,r){let{__ref:n,props:o}=e,{__attr:s}=n;if(Ir(t)("object")&&gt("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)}}}w();var nu=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))},nb=(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},ou=(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=nb(t,e)),t.replace(/\s+/g," ").trim()};w();function ob(t,e,r){if(t&&(e.props.data&&U(t,e.props.data),t.showOnNode)){g(t)||gt("HTMLInvalidData",t);for(let n in t)n!=="showOnNode"&&(r.dataset[n]=O(t[n],e))}}var su=ob;w();function sb(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 iu=sb;w();function ib(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 gt("HTMLInvalidStyles",t)}var au=ib;w();function ab(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(We.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 Ut({tag:"string",text:n},e,"__text")}}var cu=ab;w();function cb(t,e,r){let n=O(t,e);if(g(n))for(let o in n)Ot.has(o)||Object.prototype.hasOwnProperty.call(n,o);return e}var lu=cb;w();function lb(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 fu=lb;var te={attr:ru,style:au,text:cu,html:iu,data:su,classlist:ou,state:lu,scope:fu,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:{}};w();var yo=(t,e,r)=>{let{node:n,context:o,__ref:s}=e,i=O(e[t],e),{onlyUpdate:a}=r,c=te[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}};w();var wa=(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(!wa(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(!wa(t[a],e[a]))return!1}return!0}return t===e},uu=new Set([".","/","./"]),fb=(t,e)=>{if(!y(t)||!e)return;if(uu.has(t))return e.parse?e.parse():e;let r=Ge(t,e);if(r){let o=t.replaceAll("~/","");return Ye(o,r)}let n=Ke(t,e);if(n){let o=t.replaceAll("../","");return Ye(o,n)}return Ye(t,e)};function ub(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($n(n)&&(i=i||"state",n=n.parse()),y(n)||lt(n)){let p=fb(n,s);p!==void 0?(f=uu.has(n)?"":n,n=$n(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 Tt(p)?ps(p,d):d})}}if(!n||Ir(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?wa(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(Ct(d)&&d!==null&&d!==!1)if(f!==void 0&&i!=="props"){let h=f?`${f}/${p}`:p;u[p]={state:h}}else u[p]=P(d)?i?{[i]:d}:d:i?{[i]:i==="state"?{value:d}:{text:d}}:{text:d}}return u}var bo=ub;var pu=process.env.NODE_ENV,du=(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=Zf(t),H("attachNode",t,e)),(pu==="test"||pu==="development"||e.alowRefReference)&&(r.ref=t,b(r.setAttribute)&&r.setAttribute("key",t.key)),mo(t),go(t),ho(t),Qf(t),Jf(t),Hf(t,{isNewNode:s,...e});for(let a in t){let c=t[a];if(!Object.prototype.hasOwnProperty.call(t,a)||c===void 0||zt(a,t)||g(te[a])||a.length>2&&a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90)continue;let f=yo(a,t,e);if(f){let{hasDefine:l,hasContextDefine:u}=f;if(t[a]&&!l&&!u){let p=()=>{Ut(c,t,a,e)};t.props&&t.props.lazyLoad||e.lazyLoad?window.requestAnimationFrame(()=>{p(),e.preventUpdateListener||H("lazyLoad",t,e)}):p()}}}let i=t.children?bo(t.children,t,e):t.children||t.content;return i&&fn(i,t,e),t};w();var va={key:":root",node:L?L.body:gt("DocumentNotDefined",L)},ka=va;w();w();w();w();var hu={overwrite:!0,preventHoistElementUpdate:!1,updateByState:!0,isHoisted:!0},mu=function(t,e=hu){let r=this,n=r.__element;if(e.onEach&&e.onEach(n,r,n.context,e),e.updateByState||X(e,hu),r.__element||gt("ElementOnStateIsNotDefined"),e.preventInheritAtCurrentState===!0)e.preventInheritAtCurrentState=r;else if(e.preventInheritAtCurrentState)return;return!e.preventBeforeStateUpdateListener&&_t("beforeStateUpdate",t,n,e)===!1?n:(Ls(r,t,e),pb(r,t,e)||(db(r,t,e),hb(r,t,e),e.preventStateUpdateListener||_t("stateUpdate",t,n,e)),r)},pb=(t,e,r)=>{let n=t.__element,{parent:o,__ref:s}=n,i=s?.__state,a=s?.__stateType;if(!i)return;let c=Qe(n),f=Xe(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=Ge(i,o.state),m=Ke(i,o.state),x=i.replaceAll("~/","").replaceAll("../",""),_=Fs(x,d),v=h||m||o.state;r.replace&&at(v,_||p),v.update(_,{...r,isHoisted:!0,preventUpdate:r.preventHoistElementUpdate,overwrite:!r.replace});let E=r.preventUpdate!==!0||!r.preventHoistElementUpdate;return!r.preventStateUpdateListener&&E&&_t("stateUpdate",e,n,r),!0},db=(t,e,r)=>{if(t.__depends)for(let n in t.__depends)t.__depends[n].clean().update(t.parse(),r)},hb=(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 mb=function(){let t=this;if(g(t)){let e={};for(let r in t)Ot.has(r)||(e[r]=t[r]);return e}else if(S(t))return t.filter(e=>!Ot.has(e))},gb=function(t={}){let e=this;for(let r in e)!Ot.has(r)&&Object.prototype.hasOwnProperty.call(e,r)&&delete e[r];return t.preventStateUpdate||e.update(e,{replace:!0,...t}),e},yb=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},bb=function(t,e={}){let r=this;if(!(!r||!r.parent))return r.parent.update(t,{isHoisted:!0,...e})},xb=function(t,e={}){let r=this;return r?r.__element.__ref.root.state.update(t,{isHoisted:!1,...e}):void 0},Sb=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)}},_b=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)&&Qo(r,t),e.applyReset?r.set(r.parse(),{replace:!0,...e}):r.update({},e)},vb=function(t,e={}){let r=this,n=z(t);return r.clean({preventStateUpdate:!0,...e}).update(n,{replace:!0,...e})},gu=function(t,e,r={}){let n=this,o=z(e);r.preventReplace||ts(n,t,e);let s=Jo(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=gu.call(r,s[1],s[2],{preventStateUpdate:!0});return at(o,i)}else s[0]==="delete"&&Ca.call(r,s[1],{...e,preventUpdate:!0});return o},{});return r.update(n,e)},Ca=function(t,e={}){let r=this;return Zo(r,t),e.preventUpdate?t:r.update({},e)},Cb=function(t,e={}){let r=this;for(let n=0;n<t.length;n++)Ca(t[n],{preventUpdate:!0});return r.update({},e)},Eb=function(t,e={}){return es(this,t)},Ob=function(t={}){let e=this,r=z(e.parse());return e.set(r,{replace:!0,...t})},Ab=function(t,e={}){let r=this;if(b(t)){let n=t(r);return r.update(n,{replace:!0,...e})}},Tb=function(t,e={}){let r=this;if(b(t)){let n=t(r);return r.replace(n,e)}},Rb=function(t,e={}){let r=this;if(b(t))return t(r),r.update(r.parse(),{replace:!0,...e})},Ib=function(t,e={}){return this.update(t,{preventUpdate:!0,...e})},Pb=function(t,e={}){let r=this;for(let n in t)r[n]=t[n];return r.update(t,e)},Nb=function(t,e={}){return this.replace(t,{preventUpdate:!0,...e})},Db=function(t,e={}){return Object.keys(this)},Fb=function(t,e={}){return Object.values(this)},yu=t=>{let e=t.state,r=t.__ref,n={clean:gb.bind(e),parse:mb.bind(e),destroy:yb.bind(e),update:mu.bind(e),rootUpdate:xb.bind(e),parentUpdate:bb.bind(e),create:$e.bind(e),add:Sb.bind(e),toggle:_b.bind(e),remove:wb.bind(e),apply:Ab.bind(e),applyReplace:Tb.bind(e),applyFunction:Rb.bind(e),set:vb.bind(e),quietUpdate:Ib.bind(e),replace:Pb.bind(e),quietReplace:Nb.bind(e),reset:Ob.bind(e),parent:t.parent?.state||e,setByPath:gu.bind(e),setPathCollection:kb.bind(e),removeByPath:Ca.bind(e),removePathCollection:Cb.bind(e),getByPath:Eb.bind(e),keys:Db.bind(e),values:Fb.bind(e),__element:t,__children:{},root:r?.root?r.root.state:e};S(e)?Pr(e,n):Object.setPrototypeOf(e,n),e.parent&&e.parent.__children&&(e.parent.__children[t.key]=e)};var $e=function(t,e,r){return t.state=$b(t,e,r),t.state},$b=function(t,e,r){let n=Ns(t);if(n===!1)return e.state||{};if(t.state=n,H("stateInit",t,r)===!1)return t.state;if(Qe(t)){let i=Ds(t,e);t.state=Y(i)?{}:i}let s=$s(t,t.state||e.state||{});return s&&(t.state=s),yu(t),H("stateCreated",t),t.state};w();w();var bu=[];var xo={stackChanges:!1,cleanExec:!0,preventRecursive:!1,currentSnapshot:!1,calleeElement:!1,exclude:bu},un=function(t={},e){let r=g(e)?{...xo,...e}:{...xo},n=this,o=n.__ref;o||(o=n.__ref={});let[s,i,a]=bi(n,r);if(a)return;r.preventListeners||_t("startUpdate",t,n,r);let{parent:c,node:f,key:l}=n,{exclude:u,preventInheritAtCurrentState:p}=r;if(p&&p.__element===n||(u||X(r,xo),(y(t)||lt(t))&&(t={text:t}),t=ks.call(n,t),Bb(n,r)===!1)||Mb(n,c,r))return;if(o.__if&&!r.preventPropsUpdate){let N=c.props&&(c.props[l]||c.props.childProps),D=o.__propsStack.some(b),F=t.props||N||D;F&&Ts(F,n,c)}if(!r.preventBeforeUpdateListener&&!r.preventListeners&&(n.on?.beforeUpdate||n.props?.onBeforeUpdate)){let D={...t,...n};if(Object.setPrototypeOf(D,Object.getPrototypeOf(n)),_t("beforeUpdate",t,D,r)===!1)return n}if(at(n,t),mo(n),tu(n,{ignore:xo}),eu(n),!r.isForced&&!r.preventListeners&&H("beforeClassAssign",n,r),!o.__if)return!1;if(!f)return;let{preventUpdate:m,preventDefineUpdate:x,preventContentUpdate:_,preventStateUpdate:v,preventRecursive:E,preventUpdateListener:I,preventUpdateAfter:A,preventUpdateAfterCount:T}=r;if(A){if(lt(T)&&A<=T)return;r.preventUpdateAfterCount===void 0?r.preventUpdateAfterCount=1:r.preventUpdateAfterCount++}let C=S(m)?new Set(m):null,B=S(x)?new Set(x):null;for(let N in n){let D=n[N];if(!Object.prototype.hasOwnProperty.call(n,N))continue;let F=C&&C.has(N),et=B&&B.has(N),tt=b(D)&&N.length>2&&N.charCodeAt(0)===111&&N.charCodeAt(1)===110&&N.charCodeAt(2)>=65&&N.charCodeAt(2)<=90;if(Y(D)||F||et||x===!0||x===N||v&&N==="state"||zt(N,n)||tt||g(te[N]))continue;v==="once"&&(r.preventStateUpdate=!1);let bt=yo(N,n,r);if(bt){let{hasDefine:Ft,hasContextDefine:se}=bt;if(!(g(D)&&!Ft&&!se&&!E))continue;let $o=n.props.lazyLoad||r.lazyLoad;r.onEachUpdate&&r.onEachUpdate(N,n,n.state,n.context);let it=t[N];if(it===void 0&&!r.isForced){if(r.onlyUpdate){if(N!==r.onlyUpdate)continue}else if(!r.updateByState)continue}let Lo=r.onlyUpdate&&N===r.onlyUpdate?{...r,onlyUpdate:void 0,currentSnapshot:s,calleeElement:i}:{...r,currentSnapshot:s,calleeElement:i},Mo=()=>un.call(D,it,Lo);$o?$.requestAnimationFrame(()=>{Mo(),!r.preventUpdateListener&&!r.preventListeners&&H("lazyLoad",n,r)}):Mo()}}if(!_){let N=o.contentElementKey||"content",D=n[N],F=r.updateByState?t.children||(o.__exec?.children?n.children:void 0):t.children||n.children;if(F){let et=bo(F,n,e);if(et&&!o.__noChildrenDifference)fn(et,n,r);else if(D?.__ref&&b(D.update)){let tt=n.props?.lazyLoad||r.lazyLoad,bt=()=>un.call(D,t[N],{...r,currentSnapshot:s,calleeElement:i});tt?$.requestAnimationFrame(()=>{bt(),!r.preventUpdateListener&&!r.preventListeners&&H("lazyLoad",n,r)}):bt()}}else if(D?.__ref&&b(D.update)){let et=n.props?.lazyLoad||r.lazyLoad,tt=()=>un.call(D,t[N],{...r,currentSnapshot:s,calleeElement:i});et?$.requestAnimationFrame(()=>{tt(),!r.preventUpdateListener&&!r.preventListeners&&H("lazyLoad",n,r)}):tt()}else{let et=n.children||t.content;et&&!r.updateByState&&fn(et,n,r)}}!I&&!r.preventListeners&&H("update",n,r),!r.preventFetch&&o.__fetchOnStateChange&&o.__fetchOnStateChange()},Lb=(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},Mb=(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=Lb(t,e);delete t.__ref,delete t.parent;let c=Ut(t,e,t.key,ut.create,a);return r.preventUpdate!==!0&&t.on&&b(t.on.update)&&Mr(t.on.update,c,c.state),c}}else t.node&&!o&&(t.node.remove(),delete n.__if)},Bb=(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=Xe(t,t.parent);if(!i||e.preventInheritedStateUpdate)return;if(!e.preventBeforeStateUpdateListener&&!e.preventListeners&&_t("beforeStateUpdate",i,t,e)===!1)return t;let a=Ub(t,o,e);!e.preventStateUpdateListener&&!e.preventListeners&&_t("stateUpdate",a.parse(),t,e)},Ub=(t,e,r)=>{let n=t.state.__children,o=$e(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};yi();var Ea=(t,e,r={})=>{let n={set:Aa,reset:xu,update:un,variables:di,remove:Zs,updateContent:Su,removeContent:Oa,setProps:ti,lookup:Xs,lookdown:Qs,lookdownAll:Js,getRef:ei,getDB:mi,getPath:ri,getQuery:gi,getRootState:ni,getRoot:oi,getRootData:si,getRootContext:ii,getContext:ai,setNodeStyles:Vn,spotByPath:Ys,parse:qn,parseDeep:Hr,keys:zn,nextElement:ui,previousElement:pi,log:ci,verbose:Hn,warn:li,error:fi,call:hi};t.context.methods&&(r.strict?X:le)(n,t.context.methods),Object.setPrototypeOf(t,n)};var jb=new Set(["class","style"]),Vb=t=>{let{tag:e,props:r,context:n}=t;if(!e||!r)return;let o=dl(e,r,n?.cssPropsRegistry),s={};for(let a in o)jb.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)},So=process.env.NODE_ENV,Ut=(t,e,r,n=ut.create||{},o)=>{zb(n);let s=Ps(t,e,r,n,va);if(!s)return;let{key:i,parent:a,__ref:c}=s;return Is(s,a),ys(s,a,n),n.onlyResolveExtends?Gb(s,a,i,n):(Dn.call(s,s),H("start",s,n),qb(s,a,n),Ea(s,a,n),Ln(s,a),$e(s,a),s.scope==="state"&&(s.scope=s.state),$r(s,a),Fn(s,a,n),Lr.call(s,s,{cachedKeys:[]}),s.tag||(s.tag=Sa(s)),Vb(s),(s.scope==="props"||s.scope===!0)&&(s.scope=s.props),$r(s,a),s.node&&c.__if?_a(s,a,i,o):(H("init",s,n)===!1||(H("beforeClassAssign",s,n),nu(s),Wb(s,a,n,o),wu(s,a),H("complete",s,n)),s))},zb=t=>{t&&!ut.create&&(ut.create=t,ut.create.context=t.context)},qb=(t,e,r)=>{let n=!1;for(let o in r){n=!0;break}n&&(ut.defaultOptions=r,r.ignoreChildExtends&&delete r.ignoreChildExtends)},wu=(t,e)=>{e.__ref&&e.__ref.__children&&(e.__ref.__children.includes(t.key)||e.__ref.__children.push(t.key))},Hb=1,_u=new WeakMap,Wb=(t,e,r,n)=>{_u.has(t)&&(So==="test"||So==="development")&&console.warn("Cyclic rendering detected:",t.__ref.path),_u.set(t,!0);let{__ref:o,key:s}=t,i=()=>{let a=rs(o.path);o.__uniqId||a||(du(t,r),o.__uniqId=Hb++)};if(So==="test"||So==="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;_a(t,e,s,n),Yf(t,r),H("render",t,r),H("renderRouter",t,r),H("done",t,r),H("create",t,r)},Gb=(t,e,r,n)=>{let{__ref:o}=t;if(Ea(t,e,n),Ln(t,e),$e(t,e),t.scope==="state"&&(t.scope=t.state),$r(t,e),Fn(t,e,n),Lr.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={}),wu(t,e),t.tag!=="string"&&t.tag!=="fragment"){go(t),ho(t);for(let s in t){if(Y(t[s])||zt(s,t)||g(te[s]))continue;let i=t.define?.[s],a=t.context?.define?.[s],c=n.define?.[s];!o.__skipCreate&&te[s]&&!c||t[s]&&!i&&!c&&!a&&Ut(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},_o=Ut;var _r=(t,e={})=>{let{__ref:r}=t,n=e.contentElementKey;return(!r.contentElementKey||n!==r.contentElementKey)&&(r.contentElementKey=n||"content"),r.contentElementKey};function xu(t){let e=this;Ut(e,e.parent,void 0,{ignoreChildExtends:!0,...ut.defaultOptions,...ut.create,...t})}var vu=(t,e,r)=>{let n=_r(e,r);e[n]?.node&&Oa(e,r);let o=Ut(t,e,n||"content",{ignoreChildExtends:!0,...ut.defaultOptions,...ut.create,...r});return n!=="content"&&(r.contentElementKey="content"),o},Su=function(t,e){let r=this,n=_r(r,e);r[n]&&r[n].update&&r[n].update(t,e)};function fn(t,e,r){let n=O(t,e);n&&e&&Aa.call(e,n,r)}var Oa=function(t,e={}){let r=t||this,n=_r(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]}},Aa=function(t,e={},r){let n=r||this,{__ref:o}=n;if(o.__settingContent)return n;o.__settingContent=!0;try{return Kb(t,e,n)}finally{o.__settingContent=!1}},Kb=function(t,e,r){let{__ref:n}=r,o=_r(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&&Xo(t,s);if(s?.update&&!f&&!l){if(!e.preventBeforeUpdateListener&&!e.preventListeners&&_t("beforeUpdate",t,r,e)===!1)return r;s.update(t),!e.preventUpdateListener&&!e.preventListeners&&H("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||H("lazyLoad",r,e)}):vu(t,r,e)};var Cu=/^:(.+)/,Eu=/^\*$/,ku=new Map,Ta=t=>{let e=ku.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(Cu);a?n.push({index:i,name:a[1]}):Eu.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return ku.set(t,s),s},Ra=(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=Ta(f),u=Yb(o,l);u>a&&(a=u,i=f,c=Xb(o,l))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},Yb=(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(Cu.test(r[i]))o+=1;else if(Eu.test(r[i]))o+=.5;else return-1;return o},Xb=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},Ia=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},Pa=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},Na=(t=0,e=$.location.pathname)=>{let n=e.split("/")[t+1];if(n)return`/${n}`},wo,vo=0,Qb={level:vo,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},ee=(t,e,r={},n={})=>{let o=e||void 0,s=o.context.window||$,i=o.context.document||L,a={...Qb,...o.context.routerOptions,...n};vo=a.lastLevel;let c=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||"content");let f=_r(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=Ia(d),x=o.node,_=h&&h!==s.location.hash.slice(1),v=p!==wo;wo=p;let E,I,A;if(a.useParamsMatching){let C=Ra(p,o.routes,a.level);E=C.routePath,I=C.content,A=C.params}else E=Na(a.level,p),I=o.routes[E||"/"]||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:E,element:o});return}if(a.guards&&a.guards.length){let C={pathname:p,route:E,params:A,query:m,hash:h,element:o,state:r},B=Pa(a.guards,C);if(B===!1)return;if(typeof B=="string")return ee(B,e,r,{...n,guards:[]})}if(a.pushState&&s.history.pushState(r,null,p+(d||"")+(h||"")),v||!_){let C={route:E,hash:h,debugging:!1};Object.keys(A).length&&(C.params=A),Object.keys(m).length&&(C.query=m),a.updateState&&o.state.update(C,{preventContentUpdate:!0}),f&&a.removeOldElement&&o[f].remove();let B=o.__ref?.origin?.content,N={};if(B)for(let D in B){let F=B[D];D==="__ref"||D==="props"||D==="node"||D==="parent"||D==="key"||(typeof F=="string"||typeof F=="number"||typeof F=="boolean"||typeof F=="object"&&F!==null&&!F.node&&!F.__ref)&&(N[D]=F)}o.set({...N,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 C=i.getElementById(h);if(C){let B=C.getBoundingClientRect().top+x.scrollTop-(a.scrollToOffset||0);T.scrollTo({...a.scrollToOptions||{},top:B,left:0})}}H("routeChanged",o,a)},Jb=ee;var Ou={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>{let e=t.props;return qt(t,e.href)||qt(t,t.call("exec",e,t).href)},"aria-label":({props:t})=>t.aria?t.aria.label:t.text}},Zb={extends:"Link"},Au={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 v of x){if(!_||!_[v]){_=null;break}_=_[v]}_&&(m=_,d.routes&&(m.routes=d.routes))}(u.router||l.router||f.router||ee)(c,m,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",i)?i:!0,...p,...n.routerOptions})}catch(m){console.warn(m)}}}},tx={extends:[Ou,Au]};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 rx={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 nx={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"}}},ox={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var sx={extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},ix={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var ax={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}},cx={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var lx={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},fx={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 ux={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 px={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)},dx={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"},hx={extends:"SquareButton",round:"C"},mx={extends:"Button",childExtends:"IconText"},gx={tag:"nav",display:"flex",childExtends:"SquareButton"},yx={extends:["SquareButton","ClickableItem"],round:"Z"};var bx={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},xx={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},Sx={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"}};w();var _x={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})=>Ct(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"}}:{}})},vx={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 Cx={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:to("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:to("#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 Ex={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"}}},Ox={position:"relative",zIndex:999,style:{"&:hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},Ax={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()}}},Tx={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 Rx={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}}}};w();var pn={};$t(pn,{CDN_PROVIDERS:()=>Jt,DOMQL_EVENTS:()=>An,DOMQ_PROPERTIES:()=>Ve,ENV:()=>wd,ERRORS_REGISTRY:()=>Wf,HTML_TAGS:()=>Rn,METHODS:()=>On,METHODS_EXL:()=>Wo,NODE_ENV:()=>Yt,OPTIONS:()=>ut,PACKAGE_MANAGER_TO_CDN:()=>dr,PARSED_DOMQ_PROPERTIES:()=>Ho,PROPS_METHODS:()=>ze,STATE_METHODS:()=>Ot,STATE_PROPERTIES:()=>ld,SVG_TAGS:()=>We,TYPES:()=>Uo,addCaching:()=>Uc,addContext:()=>Bc,addExtend:()=>qd,addExtends:()=>At,addItemAfterEveryElement:()=>Wp,addProtoToArray:()=>Pr,addRef:()=>$c,applyCSS:()=>Iu,applyDependentState:()=>$s,applyEvent:()=>Mr,applyEventUpdate:()=>Ms,applyExtends:()=>ys,applyProps:()=>_s,arrayContainsOtherArray:()=>Up,arraysEqual:()=>Kp,arrayzeValue:()=>rn,cache:()=>Qd,call:()=>hi,captureSnapshot:()=>bi,checkForStateTypes:()=>Ns,checkIfInherits:()=>Qe,checkIfStringIsInArray:()=>Qp,clone:()=>ud,cloneAndMergeArrayExtend:()=>ls,cloneFunction:()=>Pd,concatAddExtends:()=>ps,copyJavaScriptToClipboard:()=>Am,copyStringToClipboard:()=>Om,createBasedOnType:()=>Fc,createElement:()=>Ps,createElementExtends:()=>Sc,createExtends:()=>us,createExtendsFromKeys:()=>In,createExtendsStack:()=>kc,createIfConditionFlag:()=>$r,createInheritedState:()=>Ds,createKey:()=>ss,createNestedObject:()=>Jo,createNestedObjectByKeyPath:()=>Fs,createObjectWithoutPrototype:()=>cc,createParent:()=>Lc,createPath:()=>Mc,createProps:()=>vs,createPropsStack:()=>Pc,createRoot:()=>Is,createScope:()=>Ln,createSnapshotId:()=>os,customDecodeURIComponent:()=>cd,customEncodeURIComponent:()=>ad,cutArrayAfterValue:()=>qp,cutArrayBeforeValue:()=>zp,debounce:()=>Od,debounceOnContext:()=>Ad,decodeNewlines:()=>sd,deepClone:()=>z,deepContains:()=>Xo,deepDestringifyFunctions:()=>ce,deepExtend:()=>bc,deepMerge:()=>U,deepMergeExtends:()=>fe,deepStringifyFunctions:()=>Go,defineSetter:()=>xh,detectInfiniteLoop:()=>rs,document:()=>L,encodeNewlines:()=>od,error:()=>fi,excludeKeysFromObject:()=>_d,exec:()=>O,extendCachedRegistry:()=>jd,extendStackRegistry:()=>ds,extractArrayExtend:()=>ms,fibonacciNumberByIndex:()=>dm,filterArrays:()=>Yp,filterArraysFast:()=>Xp,finalizeExtends:()=>Cc,findClosestNumber:()=>nf,findClosestNumberInFactory:()=>um,findInheritedState:()=>Xe,findKeyPosition:()=>ed,flattenExtend:()=>Pn,formatDate:()=>pm,generateHash:()=>mc,generateKey:()=>ns,generateMetaTags:()=>vm,get:()=>yh,getActiveRoute:()=>Na,getCDNUrl:()=>Zt,getCapitalCaseKeys:()=>Wd,getCdnProviderFromConfig:()=>oo,getChildStateInKey:()=>Ye,getChildren:()=>bh,getContext:()=>ai,getCookie:()=>Ld,getDB:()=>mi,getExtendsInElement:()=>Hd,getExtendsStack:()=>fs,getExtendsStackRegistry:()=>yc,getFrequencyInArray:()=>jp,getHashedExtend:()=>hs,getImportMapScript:()=>wm,getInObjectByPath:()=>es,getLocalStorage:()=>Bd,getNev:()=>Ed,getPageMetadata:()=>Em,getParentStateInKey:()=>Ke,getPath:()=>ri,getQuery:()=>gi,getRef:()=>ei,getRoot:()=>oi,getRootContext:()=>ii,getRootData:()=>si,getRootState:()=>ni,getRootStateInKey:()=>Ge,getSpreadChildren:()=>Gd,global:()=>Mp,hasFunction:()=>Yo,hasOwnProperty:()=>gd,inheritChildExtends:()=>wc,inheritChildPropsExtends:()=>_c,inheritParentProps:()=>Cs,inheritRecursiveChildExtends:()=>vc,init:()=>Me,initProps:()=>Fn,is:()=>Et,isArray:()=>S,isBoolean:()=>kn,isContextComponent:()=>xs,isCyclic:()=>Sd,isDOMNode:()=>Lt,isDate:()=>nc,isDefined:()=>Ct,isDevelopment:()=>Xt,isEmpty:()=>ic,isEmptyObject:()=>yd,isEqualDeep:()=>ac,isFunction:()=>b,isHtmlElement:()=>Bo,isLocal:()=>Cd,isMethod:()=>zt,isMobile:()=>Fd,isNode:()=>ve,isNot:()=>Ir,isNotProduction:()=>Fr,isNull:()=>rc,isNumber:()=>lt,isObject:()=>g,isObjectLike:()=>P,isPhoto:()=>Sm,isProduction:()=>He,isStaging:()=>kd,isState:()=>$n,isString:()=>y,isStringFunction:()=>Id,isTest:()=>lc,isTesting:()=>vd,isUndefined:()=>Y,isValidHtmlTag:()=>Ce,joinArrays:()=>Cn,jointStacks:()=>zd,keys:()=>zn,lastLevel:()=>vo,lastPathname:()=>wo,loadCssFile:()=>ym,loadJavascript:()=>bm,loadJavascriptFile:()=>hm,loadJavascriptFileEmbedSync:()=>gm,loadJavascriptFileSync:()=>mm,loadRemoteCSS:()=>xm,loadRemoteScript:()=>no,log:()=>ci,logGroupIf:()=>Dd,logIf:()=>Nd,lookdown:()=>Qs,lookdownAll:()=>Js,lookup:()=>Xs,lowercaseFirstLetter:()=>ae,makeObjectWithoutPrototype:()=>bd,map:()=>fd,mapStringsWithContextComponents:()=>gs,matchRoute:()=>Ra,matchesComponentNaming:()=>Tt,memoize:()=>Td,merge:()=>X,nextElement:()=>ui,objectToString:()=>Ko,objectizeStringProperty:()=>Ss,overwrite:()=>le,overwriteDeep:()=>at,overwriteShallow:()=>Dr,overwriteState:()=>Ls,parse:()=>qn,parseDeep:()=>Hr,parseQuery:()=>Ia,parseRoutePattern:()=>Ta,pickupElementFromProps:()=>Lr,pickupPropsFromElement:()=>Rc,previousElement:()=>pi,propExists:()=>Xd,propertizeElement:()=>Dn,propertizeUpdate:()=>ks,reinit:()=>Ru,remove:()=>Zs,removeChars:()=>Tm,removeCookie:()=>Md,removeDuplicateProps:()=>Os,removeDuplicatesInArray:()=>En,removeFromArray:()=>jo,removeFromObject:()=>Qo,removeNestedKeyByPath:()=>Zo,removeValueFromArray:()=>zo,removeValueFromArrayAll:()=>Hp,reorderArrayByValues:()=>Gp,replaceLiteralsWithObjectFields:()=>td,replaceOctalEscapeSequences:()=>nd,report:()=>gt,returnValueAsText:()=>Dc,router:()=>ee,runGuards:()=>Pa,scratchSystem:()=>lo,scratchUtils:()=>mr,self:()=>Bp,set:()=>an,setCookie:()=>$d,setHashedExtend:()=>gc,setInObjectByPath:()=>ts,setLocalStorage:()=>Ud,setNodeStyles:()=>Vn,setProps:()=>ti,setPropsPrototype:()=>Es,spotByPath:()=>Ys,stringIncludesAny:()=>qo,stringToObject:()=>md,swapItemsInArray:()=>Vp,syncProps:()=>As,toCamelCase:()=>Ri,toDashCase:()=>Ii,toDescriptionCase:()=>Im,toTitleCase:()=>Rm,toggleFullscreen:()=>fm,triggerEventOn:()=>H,triggerEventOnUpdate:()=>_t,trimStringFromSymbols:()=>Jp,unstackArrayOfObjects:()=>Vo,update:()=>Ic,updateProps:()=>Ts,variables:()=>di,verbose:()=>Hn,warn:()=>li,window:()=>$});w();w();var Ix=k(),Tu=(t=Ix,e)=>{let r=g(e.localFile)?e.localFile:{},n=z(r.designSystem||{});return U(t,n)},Px={emotion:wt,useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Me=(t,e=Px)=>{let r=e.emotion||wt,n=Tu(t||{},e),o=an({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=Ai(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)&&sa(o.svg,{document:e.document}),(p||u)&&aa(o.icons,{document:e.document}),o},ko={emotion:wt},Ru=(t,e=ko)=>{let r=e.emotion||wt,n=Tu(t||{},e),o=an({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},Iu=(t,e=ko)=>{(e.emotion||wt).injectGlobal(t)},ZA=(t,e=ko)=>{let r=e.emotion||wt;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)}},tT=(t,e=ko)=>{};w();var Fa={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},Nu=(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},Du=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=Fa:e.router=X(e.router||{},Fa);let r=e.router,n=async(s,i)=>{if(!$.location)return;let{pathname:a,search:c,hash:f}=$.location,l=a+c+f,u=s;if(r.customRouterElement){let p=Nu(s,r.customRouterElement);p&&(u=p,s.routes&&(u.routes=s.routes))}u.routes&&await ee(l,u,{},{initialRender:!0})},o=t.on&&!Y(t.on.renderRouter)||!Y(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.on?t.on.renderRouter=n:t.on={renderRouter:n}),Nx(e,r),r},Pu,Fu=(t,e)=>{if(Pu)return;Pu=!0;let r=e.router||Fa;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:ee;$.onpopstate=async o=>{let{pathname:s,search:i,hash:a}=$.location,c=s+i+a,f=t;if(r.customRouterElement){let l=Nu(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})}},Nx=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return U(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};w();var $a=$&&$.location?$.location.host.includes("dev."):Xt(),$u=$a?"http://localhost:8080/get":"https://api.symbols.app/get",Dx={endpoint:$u},Lu=async(t,e=Dx)=>{let r=e.endpoint||$u,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)}},Fx=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await Lu(t,r),o=$a||e.isDevelopment?ce(n):ce(n.releases[0]);r.serviceRoute?S(r.serviceRoute)?r.serviceRoute.forEach(s=>{at(e[s],o[s.toLowerCase()])}):at(e[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","packages","functions"].forEach(s=>{at(e[s],o[s.toLowerCase()])})}return e},$x=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await Lu(t,n),s=$a||e.isDevelopment?ce(o):ce(o.releases[0]);r(s)}},Mu=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await Fx(t,e)}catch(r){console.error(r)}},Bu=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&$x(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)}};w();var Lx={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"}},Mx=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}"]`},Uu=(t,e,r)=>{if(!t)return{};let n=b(t)?O(t,e,r):{...t};if(!g(n))return{};for(let o in n)b(n[o])&&(n[o]=O(n[o],e,r));return n};var Bx=(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},ju=(t,e)=>{if(!(!g(t)||!e))for(let r in t){let n=t[r];if(n==null)continue;let o=Lx[r];if(!o)continue;let s=Mx(o),i=e.querySelector(s)||Bx(o,e);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}};Ze();var Co={routes:t=>t,metadata:(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<"u"&&document;if(!n)return;let o=Uu(t,e,r);ju(o,n)},fetch:(t,e,r,n)=>{t&&jn(t,e,r,n)},$router: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}};var Vu={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},La={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},Ma={...Vu,router:La},Ux={state:{},pages:{},components:{},router:La,define:Co},xe=Ux;var jx=(t,e,r,n)=>{let o=(_o.default||_o)(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},Eo={TREE:ka,create:jx};w();w();var jt=Object.create(null);jt.open="0";jt.close="1";jt.ping="2";jt.pong="3";jt.message="4";jt.upgrade="5";jt.noop="6";var dn=Object.create(null);Object.keys(jt).forEach(t=>{dn[jt[t]]=t});var hn={type:"error",data:"parser error"};var Hu=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Wu=typeof ArrayBuffer=="function",Gu=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,mn=({type:t,data:e},r,n)=>Hu&&e instanceof Blob?r?n(e):zu(e,n):Wu&&(e instanceof ArrayBuffer||Gu(e))?r?n(e):zu(new Blob([e]),n):n(jt[t]+(e||"")),zu=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];e("b"+(n||""))},r.readAsDataURL(t)};function qu(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var Ba;function Ku(t,e){if(Hu&&t.data instanceof Blob)return t.data.arrayBuffer().then(qu).then(e);if(Wu&&(t.data instanceof ArrayBuffer||Gu(t.data)))return e(qu(t.data));mn(t,!1,r=>{Ba||(Ba=new TextEncoder),e(Ba.encode(r))})}var Yu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Yu.length;t++)gn[Yu.charCodeAt(t)]=t;var Xu=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=gn[t.charCodeAt(n)],i=gn[t.charCodeAt(n+1)],a=gn[t.charCodeAt(n+2)],c=gn[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 Vx=typeof ArrayBuffer=="function",yn=(t,e)=>{if(typeof t!="string")return{type:"message",data:Qu(t,e)};let r=t.charAt(0);return r==="b"?{type:"message",data:zx(t.substring(1),e)}:dn[r]?t.length>1?{type:dn[r],data:t.substring(1)}:{type:dn[r]}:hn},zx=(t,e)=>{if(Vx){let r=Xu(t);return Qu(r,e)}else return{base64:!0,data:t}},Qu=(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 Ju="",Zu=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{mn(s,!1,a=>{n[i]=a,++o===r&&e(n.join(Ju))})})},tp=(t,e)=>{let r=t.split(Ju),n=[];for(let o=0;o<r.length;o++){let s=yn(r[o],e);if(n.push(s),s.type==="error")break}return n};function ep(){return new TransformStream({transform(t,e){Ku(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 Ua;function Oo(t){return t.reduce((e,r)=>e+r.length,0)}function Ao(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 rp(t,e){Ua||(Ua=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(Oo(r)<1)break;let c=Ao(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(Oo(r)<2)break;let c=Ao(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(Oo(r)<8)break;let c=Ao(r,8),f=new DataView(c.buffer,c.byteOffset,c.length),l=f.getUint32(0);if(l>Math.pow(2,21)-1){a.enqueue(hn);break}o=l*Math.pow(2,32)+f.getUint32(4),n=3}else{if(Oo(r)<o)break;let c=Ao(r,o);a.enqueue(yn(s?c:Ua.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(hn);break}}}})}var ja=4;function Q(t){if(t)return qx(t)}function qx(t){for(var e in Q.prototype)t[e]=Q.prototype[e];return t}Q.prototype.on=Q.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};Q.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};Q.prototype.off=Q.prototype.removeListener=Q.prototype.removeAllListeners=Q.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};Q.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};Q.prototype.emitReserved=Q.prototype.emit;Q.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};Q.prototype.hasListeners=function(t){return!!this.listeners(t).length};var re=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),yt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),np="arraybuffer";function To(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var Hx=yt.setTimeout,Wx=yt.clearTimeout;function ne(t,e){e.useNativeTimers?(t.setTimeoutFn=Hx.bind(yt),t.clearTimeoutFn=Wx.bind(yt)):(t.setTimeoutFn=yt.setTimeout.bind(yt),t.clearTimeoutFn=yt.clearTimeout.bind(yt))}var Gx=1.33;function op(t){return typeof t=="string"?Kx(t):Math.ceil((t.byteLength||t.size)*Gx)}function Kx(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 Ro(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function sp(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function ip(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 Io=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type="TransportError"}},oe=class extends Q{constructor(e){super(),this.writable=!1,ne(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 Io(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=yn(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=sp(e);return r.length?"?"+r:""}};var bn=class extends oe{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)};tp(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,Zu(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]=Ro()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var ap=!1;try{ap=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var cp=ap;function Yx(){}var Va=class extends bn{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}},Se=class t extends Q{constructor(e,r,n){super(),this.createRequest=e,ne(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=To(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=Yx,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()}};Se.requestsCount=0;Se.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",lp);else if(typeof addEventListener=="function"){let t="onpagehide"in yt?"pagehide":"unload";addEventListener(t,lp,!1)}}function lp(){for(let t in Se.requests)Se.requests.hasOwnProperty(t)&&Se.requests[t].abort()}var Xx=(function(){let t=fp({xdomain:!1});return t&&t.responseType!==null})(),_e=class extends Va{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=Xx&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Se(fp,this.uri(),e)}};function fp(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||cp))return new XMLHttpRequest}catch{}if(!e)try{return new yt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var up=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",qa=class extends oe{get name(){return"websocket"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=up?{}:To(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;mn(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&re(()=>{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]=Ro()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},za=yt.WebSocket||yt.MozWebSocket,we=class extends qa{createSocket(e,r,n){return up?new za(e,r,n):r?new za(e,r):new za(e)}doWrite(e,r){this.ws.send(r)}};var wr=class extends oe{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=rp(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=ep();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&&re(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var Ha={websocket:we,webtransport:wr,polling:_e};var Qx=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Jx=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function vr(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=Qx.exec(t||""),s={},i=14;for(;i--;)s[Jx[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=Zx(s,s.path),s.queryKey=tS(s,s.query),s}function Zx(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 tS(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Wa=typeof addEventListener=="function"&&typeof removeEventListener=="function",Po=[];Wa&&addEventListener("offline",()=>{Po.forEach(t=>t())},!1);var Be=class t extends Q{constructor(e,r){if(super(),this.binaryType=np,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=vr(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=vr(r.host).host);ne(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=ip(this.opts.query)),Wa&&(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"})},Po.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=ja,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+=op(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,re(()=>{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(),Wa&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Po.indexOf(this._offlineEventListener);n!==-1&&Po.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};Be.protocol=ja;var No=class extends Be{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;Be.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;Be.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}},kr=class extends No{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=>Ha[o]).filter(o=>!!o)),super(e,n)}};var I2=kr.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=vr(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 Ja={};$t(Ja,{Decoder:()=>Xa,Encoder:()=>Ya,PacketType:()=>R,isPacketValid:()=>fS,protocol:()=>yp});var rS=typeof ArrayBuffer=="function",nS=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,dp=Object.prototype.toString,oS=typeof Blob=="function"||typeof Blob<"u"&&dp.call(Blob)==="[object BlobConstructor]",sS=typeof File=="function"||typeof File<"u"&&dp.call(File)==="[object FileConstructor]";function Sn(t){return rS&&(t instanceof ArrayBuffer||nS(t))||oS&&t instanceof Blob||sS&&t instanceof File}function xn(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(xn(t[r]))return!0;return!1}if(Sn(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return xn(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&xn(t[r]))return!0;return!1}function hp(t){let e=[],r=t.data,n=t;return n.data=Ga(r,e),n.attachments=e.length,{packet:n,buffers:e}}function Ga(t,e){if(!t)return t;if(Sn(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]=Ga(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]=Ga(t[n],e));return r}return t}function mp(t,e){return t.data=Ka(t.data,e),delete t.attachments,t}function Ka(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]=Ka(t[r],e);else if(typeof t=="object")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=Ka(t[r],e));return t}var gp=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],yp=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 Ya=class{constructor(e){this.replacer=e}encode(e){return(e.type===R.EVENT||e.type===R.ACK)&&xn(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=hp(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},Xa=class t extends Q{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 Qa(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Sn(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 Do(r);case R.DISCONNECT:return r===void 0;case R.CONNECT_ERROR:return typeof r=="string"||Do(r);case R.EVENT:case R.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&gp.indexOf(r[0])===-1);case R.ACK:case R.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Qa=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=mp(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function iS(t){return typeof t=="string"}var aS=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function cS(t){return t===void 0||aS(t)}function Do(t){return Object.prototype.toString.call(t)==="[object Object]"}function lS(t,e){switch(t){case R.CONNECT:return e===void 0||Do(e);case R.DISCONNECT:return e===void 0;case R.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&gp.indexOf(e[0])===-1);case R.ACK:return Array.isArray(e);case R.CONNECT_ERROR:return typeof e=="string"||Do(e);default:return!1}}function fS(t){return iS(t.nsp)&&cS(t.id)&&lS(t.type,t.data)}function kt(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var uS=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Cr=class extends Q{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(uS.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 Ue(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}Ue.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};Ue.prototype.reset=function(){this.attempts=0};Ue.prototype.setMin=function(t){this.ms=t};Ue.prototype.setMax=function(t){this.max=t};Ue.prototype.setJitter=function(t){this.jitter=t};var Er=class extends Q{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,ne(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 Ue({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||Ja;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 kr(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){re(()=>{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 Cr(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 _n={};function wn(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=_n[o]&&s in _n[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Er(n,e):(_n[o]||(_n[o]=new Er(n,e)),c=_n[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(wn,{Manager:Er,Socket:Cr,io:wn,connect:wn});w();var pS={success:"green",error:"red",warning:"yellow"},bp=(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)}},vn={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:pS[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 xp=process.env.NODE_ENV==="local",dS=(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)},hS=(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)},mS=(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":dS(t,o);break;case"update":case"set":hS(t,o,s,!0);break;default:break}return r},gS=async()=>{try{let t=xp?"http://localhost:8080":"https://api.symbols.app",e=await $.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)}},yS=(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"?Me(a):Dr(r[i],a):r[i]=a}),s&&(r.schema=s))},bS=(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=mS(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")&&Me(r.designSystem)},xS=async(t,e,r)=>{let n=await gS();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=wn(xp?"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",yS(t,e,r)),i.on("ops",bS(t,e,r)),i.on("clients",a=>{r.editor?.verbose&&bp(a,t,e)}),i.on("disconnect",a=>{r.editor?.verbose&&console.info("[sync] Disconnected from collab socket",a)}),i},Fo={onInitSync:xS};var Sp=(t,e)=>P(t.extends)?t.extends:[],_p=(t,e)=>{let{editor:r}=e;if(!r)return;(Y(r.liveSync)?Xt():r.liveSync)&&(S(t.extends)?t.extends.push(Fo):t.extends?t.extends=[t.extends,Fo]:t.extends=[Fo])};var wp=(t,e)=>{let{editor:r}=e;if(!r)return;(Y(r.verbose)?Xt()||e.verbose:r.verbose)&&(S(t.extends)?t.extends.push(vn):t.extends?t.extends=[t.extends,vn]:t.extends=[vn])};w();w();var SS=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],vp=(t,e={})=>{let r=e.parent||e.document||document,n=e.initOptions||{},o=n.emotion;n.emotion||(n.emotion=wt);let s=e.registry||Gl(n.emotion,e),i=e.designSystem?U(z(ma),e.designSystem):z(ma),a={};for(let f of SS)e[f]!==void 0&&(a[f]=e[f]);return[Me(i,{key:t,emotion:o,document:r,files:e.files,...Ma,...a,...n}),o,s]};var Ep=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},kp=(t="smbls")=>{let e={};for(let r in Le)Object.prototype.hasOwnProperty.call(Le,r)&&(Tt(r)?e[`smbls.${r}`]=Le[r]:e[r]=Le[r]);return e},Op=t=>t.components?{...kp(),...t.components}:kp(),Ap=t=>({...pn,...Da,...mr,...t.utils,...t.snippets,...t.functions}),Tp=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),Cp={},Rp=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=dr[s]||oo(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=Xt()&&n?`?${Math.random()}`:"",u=Zt(c,f,o)+l;try{if(Cp[c])return;Cp[c]=!0,await no(u,{document:r,type:"module"})}catch(p){if(console.error(`Failed to load ${c} from ${o}:`,p),o!=="symbols")try{let d=Zt(c,f,"symbols")+l;await no(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},Ip=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||oo(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=Xt()?`?${Math.random()}`:"";if(f&&f[a]){let d=f[a],h=Zt(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=Zt(a,d,"symbols")+p;await i.utils.loadRemoteScript(x,{window:u,document:l})}}}else{let d=Zt(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=Zt(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=X(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)},Pp=(t,e)=>{let[r,n,o]=vp(t,e);return[r,n,o]},Np=(t,e)=>{let r={};return e.state&&U(r,e.state),t&&t.state&&U(r,t.state),r.isRootState=!0,z(r)},Dp=(t,e)=>{g(t.routes)&&g(e.pages)&&X(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},Fp=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)}};var _S=async(t,e={})=>{let r=e.key=e.key||(y(t)?t:"smblsapp");e.define=e.define||Co,e.cssPropsRegistry=cn,e.window=Ep(e),e.sharedLibraries&&e.sharedLibraries.length&&Fp(e);let[n,o,s]=Pp(r,e);e.designSystem=n,e.registry=s,e.emotion=o;let i=Np(t,e);return e.state=i,e.pages=Dp(t,e),e.components=Op(e),e.utils=Ap(e),dr[e.packageManager]&&(e.dependencies=await Rp(e)),e.methods=Tp(e),e.routerOptions=Du(t,e),e.defaultExtends=[ya],e.snippets=e.snippets||{},e.functions=e.functions||{},e},Za=async(t,e)=>{g(e)||(e={}),ve(t)?(t={},e.parent=t):y(t)?(t={},e.key=t):g(t)||(t={}),await _S(t,e),t.extends=Sp(t,e),t.routes=e.pages,t.state=e.state,t.context=e,t.data=t.data||{},t.data.frameListeners=Xf(e),await Ip({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e),_p(t,e),wp(t,e);let r=e.document;if(!r||!r.createElement)return t;let n=e.parent||r.body;return await(Eo.default&&Eo.default.create||Eo.create)(t,n,e.key,{verbose:e.verbose,...e.domqlOptions})};var tc=(t,e)=>U(t,g(e)?e:{}),$p=(t,e=xe,r)=>{let n={...xe,...tc(e,r)},o=Za(t,n).then(s=>{Fu(s,n),n.on&&n.on.create&&n.on.create(o,o.state,o.context,n)});return o},ZR=(t,e=xe,r)=>{let n=$p(t,e,r),o={...xe,...tc(e,r)},s=o.key;return Bu(n,s,{utils:pn,...o}),n},tI=async(t,e=xe,r)=>{let n={...xe,...tc(e,r)},o=e.key;await Mu(o,n);let s=await Za(t,n);return n.on&&n.on.create&&await n.on.create(s,s.state,s.context,n),s},eI=(t={},e=xe,r)=>$p({deps:{isUndefined:Y},...t},U({domqlOptions:{onlyResolveExtends:!0}},e),r);export{Zb as A,_f as ANIMATION_PROPS,hw as ARIA_ROLES,ul as ATTR_TRANSFORMS,kx as Avatar,Fy as B,wf as BLOCK_PROPS,Jg as Block,ya as Box,Uy as Br,px as Button,gx as ButtonSet,Jt as CDN_PROVIDERS,ig as CLASS,Di as CONFIG,lg as CSS_MEDIA_VARS,Qt as CSS_NATIVE_COLOR_REGEX,cn as CSS_PROPS_REGISTRY,Jr as CSS_UNITS,cg as CSS_VARS,Ey as Caption,nx as Checkbox,ox as CheckboxHgroup,hx as CircleButton,fy as Clickable,ma as DEFAULT_CONFIG,Ma as DEFAULT_CONTEXT,Tf as DEFAULT_CSS_PROPERTIES_LIST,Vu as DESIGN_SYSTEM_OPTIONS,An as DOMQL_EVENTS,Ve as DOMQ_PROPERTIES,Th as DOM_EVENTS,Ly as Data,bx as Dialog,Sx as DialogFooter,xx as DialogHeader,Ex as DropdownList,Ox as DropdownParent,Ax as DropdownParentFocus,Tx as DropdownSiblingFocus,wd as ENV,Ie as FACTORY,Of as FLEX_PROPS,vf as FONT_PROPS,Yy as FileIcon,ty as Flex,uy as Focusable,py as FocusableComponent,Dy as Footnote,iy as Form,Af as GRID_PROPS,ry as Grid,oy as Gutter,xy as H1,Sy as H2,_y as H3,wy as H4,vy as H5,ky as H6,xi as HTML_ATTRIBUTES,Rn as HTML_TAGS,Py as Headline,qy as Hgroup,Wy as HgroupButton,Hy as HgroupRows,ly as Hoverable,By as Hr,$y as I,Gy as Icon,yx as IconButton,Ky as IconText,ay as Iframe,sy as Img,Zg as Inline,ey as InlineFlex,ny as InlineGrid,ex as Input,Ry as Italic,mx as KangorooButton,jy as Li,Ou as Link,On as METHODS,Wo as METHODS_EXL,da as MISC_PROPS,Yt as NODE_ENV,Rx as Notification,rx as NumberInput,ut as OPTIONS,zy as Ol,Cy as P,dr as PACKAGE_MANAGER_TO_CDN,Ho as PARSED_DOMQ_PROPERTIES,kf as POSITION_PROPS,ze as PROPS_METHODS,my as Picture,La as ROUTER_OPTIONS,sx as Radio,ix as RadioHgroup,Cx as Range,tx as RouteLink,Au as RouterLink,dy as SHAPES,Ot as STATE_METHODS,ld as STATE_PROPERTIES,We as SVG_TAGS,ux as Select,dx as SquareButton,Oy as Strong,Ny as Subhead,gy as Svg,Cf as THEME_PROPS,Ef as TIMING_PROPS,Uo as TYPES,by as Text,lx as Textarea,fx as TextareaWithButton,hy as Theme,Iy as Title,ax as Toggle,cx as ToggleHgroup,_x as Tooltip,wx as TooltipHidden,vx as TooltipParent,Ay as U,Vy as Ul,Ty as Underline,Sf as VALUE_TRANSFORMERS,yy as Video,_v as activateConfig,Uc as addCaching,Bc as addContext,qd as addExtend,At as addExtends,Wp as addItemAfterEveryElement,Pr as addProtoToArray,$c as addRef,Zm as animation,sa as appendSVGSprite,aa as appendSvgIconsSprite,gw as applyAttrTransforms,Iu as applyCSS,Ei as applyClassListOnNode,Jw as applyClasslist,$s as applyDependentState,na as applyDocument,Mr as applyEvent,Ms as applyEventUpdate,ys as applyExtends,df as applyHeadings,hr as applyMediaSequenceVars,_s as applyProps,ca as applyReset,Vi as applySequenceGlobalVars,De as applySequenceVars,Zi as applySpacingSequence,ra as applyTimingSequence,If as applyTrueProps,Xi as applyTypographySequence,Up as arrayContainsOtherArray,Kp as arraysEqual,rn as arrayzeValue,Qw as assignKeyAsClassname,Xm as breakpoints,Qd as cache,hi as call,bi as captureSnapshot,Jm as cases,im as changeLightness,pl as checkAttributeByTagName,Rh as checkEventFunctions,Ns as checkForStateTypes,Ji as checkIfBoxSize,Qe as checkIfInherits,Qp as checkIfStringIsInArray,Jh as classList,Qh as classify,ud as clone,ls as cloneAndMergeArrayExtend,Pd as cloneFunction,jm as color,me as colorStringToRgbaArray,ps as concatAddExtends,zi as convertSvgToSymbol,Am as copyJavaScriptToClipboard,Om as copyStringToClipboard,$p as create,ZR as createAsync,Fc as createBasedOnType,Ps as createElement,Sc as createElementExtends,Zh as createEmotion,us as createExtends,In as createExtendsFromKeys,kc as createExtendsStack,$r as createIfConditionFlag,Ds as createInheritedState,ss as createKey,Jo as createNestedObject,Fs as createNestedObjectByKeyPath,cc as createObjectWithoutPrototype,Lc as createParent,Mc as createPath,vs as createProps,Pc as createPropsStack,Is as createRoot,Ln as createScope,eI as createSkeleton,os as createSnapshotId,tI as createSync,cd as customDecodeURIComponent,ad as customEncodeURIComponent,qp as cutArrayAfterValue,zp as cutArrayBeforeValue,Od as debounce,Ad as debounceOnContext,sd as decodeNewlines,z as deepClone,Xo as deepContains,ce as deepDestringifyFunctions,bc as deepExtend,U as deepMerge,fe as deepMergeExtends,Go as deepStringifyFunctions,xh as defineSetter,ga as depth,rs as detectInfiniteLoop,Qm as devices,wt as emotion,od as encodeNewlines,fi as error,_d as excludeKeysFromObject,O as exec,mw as executeAttr,eC as exetuteClassPerComponent,jd as extendCachedRegistry,ds as extendStackRegistry,ms as extractArrayExtend,dm as fibonacciNumberByIndex,Yp as filterArrays,Xp as filterArraysFast,dl as filterAttributesByTagName,Cc as finalizeExtends,nf as findClosestNumber,um as findClosestNumberInFactory,cf as findHeadingLetter,ji as findHeadings,Xe as findInheritedState,ed as findKeyPosition,Pn as flattenExtend,Dm as font,Lm as font_face,Fm as font_family,$m as font_family_types,pm as formatDate,mc as generateHash,ns as generateKey,vm as generateMetaTags,Wt as generateSequence,hg as generateSequencePosition,so as generateSprite,Bi as generateSubSequence,yh as get,k as getActiveConfig,Zt as getCDNUrl,Wd as getCapitalCaseKeys,oo as getCdnProviderFromConfig,Ye as getChildStateInKey,bh as getChildren,Z as getColor,Jl as getColorShade,ai as getContext,Ld as getCookie,mi as getDB,tn as getDefaultOrFirstKey,Hd as getExtendsInElement,fs as getExtendsStack,yc as getExtendsStackRegistry,Ne as getFnPrefixAndValue,lm as getFontFace,en as getFontFaceEach,rf as getFontFaceEachString,Ai as getFontFaceString,Yi as getFontFamily,tf as getFontFormat,Qi as getFontSizeByKey,jp as getFrequencyInArray,hs as getHashedExtend,wm as getImportMapScript,es as getInObjectByPath,Bd as getLocalStorage,vt as getMediaColor,Gt as getMediaTheme,Ed as getNev,Em as getPageMetadata,Ke as getParentStateInKey,ri as getPath,gi as getQuery,ei as getRef,Zr as getRgbTone,oi as getRoot,ii as getRootContext,si as getRootData,ni as getRootState,Ge as getRootStateInKey,Ui as getSequenceValue,af as getSequenceValueBySymbols,ye as getSequenceValuePropertyPair,ea as getShadow,Fe as getSpacingBasedOnRatio,ct as getSpacingByKey,Gd as getSpreadChildren,Mi as getSubratio,Li as getSubratioDifference,Hi as getTheme,Mt as getTimingByKey,Pt as getTimingFunction,Mp as global,Vm as gradient,og as grid,Yo as hasFunction,gd as hasOwnProperty,rm as hexToRgb,Kl as hexToRgbArray,om as hexToRgba,Ql as hslToRgb,Hm as icons,wc as inheritChildExtends,_c as inheritChildPropsExtends,Cs as inheritParentProps,vc as inheritRecursiveChildExtends,Me as init,Fn as initProps,Et as is,S as isArray,kn as isBoolean,ot as isCSSVar,xs as isContextComponent,Sd as isCyclic,Lt as isDOMNode,nc as isDate,Ct as isDefined,Xt as isDevelopment,ic as isEmpty,yd as isEmptyObject,ac as isEqualDeep,b as isFunction,eo as isGoogleFontsUrl,Bo as isHtmlElement,Cd as isLocal,zt as isMethod,Fd as isMobile,ve as isNode,Ir as isNot,Fr as isNotProduction,rc as isNull,lt as isNumber,g as isObject,P as isObjectLike,Sm as isPhoto,He as isProduction,ge as isResolvedColor,Qr as isScalingUnit,kd as isStaging,$n as isState,y as isString,Id as isStringFunction,lc as isTest,vd as isTesting,Y as isUndefined,Ce as isValidHtmlTag,Cn as joinArrays,zd as jointStacks,zn as keys,ym as loadCssFile,bm as loadJavascript,hm as loadJavascriptFile,gm as loadJavascriptFileEmbedSync,mm as loadJavascriptFileSync,xm as loadRemoteCSS,no as loadRemoteScript,ci as log,Dd as logGroupIf,Nd as logIf,Qs as lookdown,Js as lookdownAll,Xs as lookup,ae as lowercaseFirstLetter,bd as makeObjectWithoutPrototype,fd as map,gs as mapStringsWithContextComponents,Tt as matchesComponentNaming,Mm as media,Td as memoize,X as merge,em as mixTwoColors,sm as mixTwoRgb,Zl as mixTwoRgba,ui as nextElement,Pe as numToLetterMap,Ko as objectToString,Ss as objectizeStringProperty,to as opacify,le as overwrite,at as overwriteDeep,Dr as overwriteShallow,Ls as overwriteState,qn as parse,fr as parseColorToken,Hr as parseDeep,Lr as pickupElementFromProps,Rc as pickupPropsFromElement,pi as previousElement,Xd as propExists,Dn as propertizeElement,ks as propertizeUpdate,Ru as reinit,Zs as remove,Tm as removeChars,Md as removeCookie,Os as removeDuplicateProps,En as removeDuplicatesInArray,jo as removeFromArray,Qo as removeFromObject,Zo as removeNestedKeyByPath,zo as removeValueFromArray,Hp as removeValueFromArrayAll,Gp as reorderArrayByValues,td as replaceLiteralsWithObjectFields,nd as replaceOctalEscapeSequences,ag as reset,fa as resolveColorsInGradient,Te as resolveFileUrl,qt as resolvePropValue,cm as returnSubThemeOrDefault,Dc as returnValueAsText,Yl as rgbArrayToHex,Xl as rgbToHSL,nm as rgbToHex,pf as runThroughMedia,lo as scratchSystem,mr as scratchUtils,Bp as self,Wm as semantic_icons,Re as sequence,an as set,of as setActiveConfig,tT as setClass,gr as setColor,$d as setCookie,Oi as setCustomFont,pr as setCustomFontMedia,Ng as setEach,Ki as setFont,ao as setFontFamily,ro as setFontImport,yr as setGradient,gc as setHashedExtend,ef as setInCustomFontMedia,ts as setInObjectByPath,Ud as setLocalStorage,Gi as setMediaTheme,Vn as setNodeStyles,ti as setProps,Es as setPropsPrototype,co as setSVG,$i as setScalingVar,br as setShadow,sf as setSubScalingVar,ia as setSvgIcon,Wi as setTheme,Pg as setValue,mg as setVariables,qm as shadow,Um as spacing,ta as splitSpacedValue,ur as splitTopLevelCommas,fo as splitTransition,Ys as spotByPath,qo as stringIncludesAny,md as stringToObject,tg as svg,eg as svg_data,Vp as swapItemsInArray,As as syncProps,rg as templates,zm as theme,Km as timing,Ri as toCamelCase,Ii as toDashCase,Im as toDescriptionCase,Rm as toTitleCase,fm as toggleFullscreen,bf as transformBackgroundImage,be as transformBorder,ua as transformBorderRadius,la as transformBoxShadow,Gl as transformDOMQLEmotion,xr as transformDuration,sC as transformEmotion,Wl as transformEmotionClass,tm as transformEmotionStyle,yf as transformShadow,st as transformSize,j as transformSizeRatio,gf as transformTextStroke,Rg as transformTransition,Pf as transformersByPrefix,xf as transfromGap,H as triggerEventOn,_t as triggerEventOnUpdate,Jp as trimStringFromSymbols,Pi as typography,Pm as unit,Vo as unstackArrayOfObjects,Ic as update,Ts as updateProps,ZA as updateVars,Kt as useCssInProps,Wg as usePropsAsCSS,Gg as useSelectorsAsCSS,di as variables,Hn as verbose,li as warn,$ as window};
36
36
  // @preserve-env