smbls 3.14.855 → 3.14.857

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.
Files changed (51) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/smbls.cjs +46 -46
  3. package/dist/smbls.cjs.map +3 -3
  4. package/dist/smbls.core.chunk-2ZCRFEWG.esm.js +36 -0
  5. package/dist/smbls.core.chunk-2ZCRFEWG.esm.js.map +1 -0
  6. package/dist/smbls.core.chunk-BH7NPZAA.esm.js +7 -0
  7. package/dist/smbls.core.chunk-BH7NPZAA.esm.js.map +6 -0
  8. package/dist/smbls.core.chunk-MMC3VKQX.esm.js +2 -0
  9. package/dist/smbls.core.chunk-MMC3VKQX.esm.js.map +1 -0
  10. package/dist/smbls.core.chunk-TG2NZ6VH.esm.js +36 -0
  11. package/dist/smbls.core.chunk-TG2NZ6VH.esm.js.map +1 -0
  12. package/dist/smbls.core.chunk-VG333WGF.esm.js +22 -0
  13. package/dist/smbls.core.chunk-VG333WGF.esm.js.map +6 -0
  14. package/dist/{smbls.core.dropdown-PXAJ2VAG.esm.js → smbls.core.dropdown-ZXDSXWKQ.esm.js} +2 -2
  15. package/dist/smbls.core.esm.js +1 -1
  16. package/dist/smbls.core.fetch-YW5A5WYS.esm.js +2 -0
  17. package/dist/smbls.core.fetch-YW5A5WYS.esm.js.map +1 -0
  18. package/dist/{smbls.core.fetchOnCreate-G5SI6QY4.esm.js → smbls.core.fetchOnCreate-IYA76D26.esm.js} +2 -2
  19. package/dist/{smbls.core.inspect-35DHLAA5.esm.js → smbls.core.inspect-ADIDT7QG.esm.js} +2 -2
  20. package/dist/smbls.core.sync-CDWW7LM4.esm.js +2 -0
  21. package/dist/smbls.core.sync-CDWW7LM4.esm.js.map +6 -0
  22. package/dist/{smbls.core.windows-XMCWCGON.esm.js → smbls.core.windows-5KS5J3M3.esm.js} +2 -2
  23. package/dist/smbls.embed.iife.js +1 -1
  24. package/dist/smbls.embed.iife.js.map +1 -1
  25. package/dist/smbls.esm.js +46 -46
  26. package/dist/smbls.esm.js.map +1 -1
  27. package/dist/smbls.iife-string.js +2 -2
  28. package/dist/smbls.iife.js +1 -1
  29. package/dist/smbls.iife.js.map +1 -1
  30. package/dist/smbls.server-utils.esm.js +9 -9
  31. package/dist/smbls.server-utils.esm.js.map +3 -3
  32. package/dist/smbls.tree-shake.json +9 -0
  33. package/package.json +5 -5
  34. package/dist/smbls.core.chunk-7RWDIF2S.esm.js +0 -36
  35. package/dist/smbls.core.chunk-7RWDIF2S.esm.js.map +0 -1
  36. package/dist/smbls.core.chunk-CCELIELA.esm.js +0 -2
  37. package/dist/smbls.core.chunk-CCELIELA.esm.js.map +0 -1
  38. package/dist/smbls.core.chunk-F7PSOVLR.esm.js +0 -36
  39. package/dist/smbls.core.chunk-F7PSOVLR.esm.js.map +0 -1
  40. package/dist/smbls.core.chunk-FNPJKVQM.esm.js +0 -22
  41. package/dist/smbls.core.chunk-FNPJKVQM.esm.js.map +0 -6
  42. package/dist/smbls.core.chunk-ULA4ERZ5.esm.js +0 -7
  43. package/dist/smbls.core.chunk-ULA4ERZ5.esm.js.map +0 -6
  44. package/dist/smbls.core.fetch-WPTPOQQO.esm.js +0 -2
  45. package/dist/smbls.core.fetch-WPTPOQQO.esm.js.map +0 -1
  46. package/dist/smbls.core.sync-ABZ7ZHXJ.esm.js +0 -2
  47. package/dist/smbls.core.sync-ABZ7ZHXJ.esm.js.map +0 -6
  48. /package/dist/{smbls.core.dropdown-PXAJ2VAG.esm.js.map → smbls.core.dropdown-ZXDSXWKQ.esm.js.map} +0 -0
  49. /package/dist/{smbls.core.fetchOnCreate-G5SI6QY4.esm.js.map → smbls.core.fetchOnCreate-IYA76D26.esm.js.map} +0 -0
  50. /package/dist/{smbls.core.inspect-35DHLAA5.esm.js.map → smbls.core.inspect-ADIDT7QG.esm.js.map} +0 -0
  51. /package/dist/{smbls.core.windows-XMCWCGON.esm.js.map → smbls.core.windows-5KS5J3M3.esm.js.map} +0 -0
package/dist/smbls.cjs CHANGED
@@ -1,40 +1,40 @@
1
- "use strict";var a4=Object.create;var bp=Object.defineProperty;var c4=Object.getOwnPropertyDescriptor;var l4=Object.getOwnPropertyNames;var f4=Object.getPrototypeOf,u4=Object.prototype.hasOwnProperty;var D=(t,e)=>()=>(t&&(e=t(t=0)),e);var n_=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),F=(t,e)=>{for(var n in e)bp(t,n,{get:e[n],enumerable:!0})},UT=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of l4(e))!u4.call(t,o)&&o!==n&&bp(t,o,{get:()=>e[o],enumerable:!(r=c4(e,o))||r.enumerable});return t};var VT=(t,e,n)=>(n=t!=null?a4(f4(t)):{},UT(e||!t||!t.__esModule?bp(n,"default",{value:t,enumerable:!0}):n,t)),d4=t=>UT(bp({},"__esModule",{value:!0}),t);var f_={};F(f_,{WRITE_JOURNAL:()=>ll,batch:()=>dl,countUntrackedReads:()=>g4,createComputed:()=>m4,createEffect:()=>y4,createSignal:()=>jn,getObserver:()=>a_,journalWrite:()=>ul,noteUntrackedRead:()=>Ie,setObserver:()=>p4,settled:()=>l_,untrack:()=>h4});function h4(t){let e=Qt;if(!e)return t();Qt=null;try{return t()}finally{Qt=e}}function Ie(){r_!==0&&_p++}function g4(t){let e=_p;r_++;let n;try{t()}finally{n=_p-e,--r_===0&&(_p=0)}return n}function jn(t){let e=new Set;function n(){return Qt&&(e.add(Qt),Qt._sources.add(s)),t}function r(i){i!==t&&(t=i,E4(e))}function o(){return t}let s={get:n,set:r,peek:o,_subscribers:e,_type:"signal"};return s}function m4(t){let e,n=!0,r=new Set,o={_sources:new Set,_type:"computed",_subscribers:r,_execute(){i_(o);let s=Qt;Qt=o;try{e=t(),n=!1}finally{Qt=s}},_notify(){n=!0,r.size>0&&KT(r)},get(){return Qt&&(r.add(Qt),Qt._sources.add(o)),n&&o._execute(),e},peek(){return n&&o._execute(),e}};return o._execute(),o}function ul(t){ll.push(t),ll.length>32&&ll.shift()}function y4(t,e){let n=e?.depth??0,r={_sources:new Set,_type:"effect",_depth:n,_label:e?.label,_disposed:!1,_subscribers:new Set,_execute(){if(r._disposed)return;i_(r);let o=Qt;Qt=r;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{Qt=o}},_notify(){r._disposed||(al>0?cl.push(r):wp>0?o_.push(r):c_(r))},dispose(){r._disposed=!0,i_(r)}};return r._execute(),r}function dl(t){al++;try{t()}finally{al--,al===0&&k4()}}function HT(){return typeof performance<"u"?performance.now():Date.now()}function c_(t){Xe.add(t),!xp&&(Sp||(Sp=!0,queueMicrotask(WT)))}function S4(){if(Xe.size===1){let[e]=Xe;return Xe.clear(),e._disposed?0:(e._execute(),1)}Hi.length=0;for(let e of Xe)Hi.push(e);Xe.clear(),Hi.sort((e,n)=>e._depth-n._depth);let t=0;for(let e=0;e<Hi.length;e++){let n=Hi[e];n._disposed||(n._execute(),t++)}return Hi.length=0,t}function WT(t=0,e=0){if(Sp=!1,Xe.size===0){fl.length&&s_();return}xp=!0;let n=HT(),r=!1;try{for(;Xe.size>0;){if(++t>zT){let o=new Map;for(let c of Xe){let l=c._label;if(typeof l=="function")try{l=l()}catch{l="<label error>"}if(l=l||"<unlabeled>",o.set(l,(o.get(l)||0)+1),o.size>=12)break}let s=[...o.entries()].map(([c,l])=>l>1?`${c} \xD7${l}`:c).join(", "),i=new Map;for(let c of ll)i.set(c,(i.get(c)||0)+1);let a=[...i.entries()].map(([c,l])=>l>1?`${c} \xD7${l}`:c).join(", ");console.error("[smbls] reactive effect cascade exceeded",zT,"passes in a single flush \u2014 breaking to avoid hanging the thread.","This usually means an effect (or an onUpdate/subscribeTo handler","it calls into) unconditionally writes back a signal it depends on.","Still queued at break (the loop participants):",s||"<queue empty>","\u2014 last notifying store writes:",a||"<none recorded>"),Xe.clear();break}if(e+=S4(),Xe.size>0&&(e>=_4||t>=w4)&&HT()-n>b4){r=!0,setTimeout(()=>WT(t,e),0);break}}}finally{r||(xp=!1,fl.length&&s_())}}function x4(){return Xe.size===0&&!Sp&&!xp&&cl.length===0&&al===0}function s_(){if(fl.length===0||!x4())return;let t=fl.splice(0);for(let e=0;e<t.length;e++)t[e]()}function l_(){return new Promise(t=>{fl.push(t),queueMicrotask(s_)})}function k4(){for(let t=0;t<cl.length;t++)c_(cl[t]);cl.length=0}function KT(t){wp++;try{for(let e of t)e._notify()}finally{if(wp--,wp===0&&o_.length>0){let e=o_.splice(0);for(let n=0;n<e.length;n++)c_(e[n])}}}function E4(t){KT(t)}function i_(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var Qt,al,cl,a_,p4,r_,_p,wp,o_,Xe,Sp,ll,xp,zT,b4,_4,w4,Hi,fl,u_=D(()=>{Qt=null,al=0,cl=[],a_=()=>Qt,p4=t=>{Qt=t};r_=0,_p=0;wp=0,o_=[];Xe=new Set,Sp=!1,ll=[];xp=!1,zT=1e3,b4=8,_4=256,w4=4;Hi=[];fl=[]});var y_={};F(y_,{RESERVED_STORE_METHODS:()=>pl,STORE_METHOD_NAMES:()=>m_,__resetStateShadowWarnings:()=>v4,createScopeStore:()=>O4,createStore:()=>Ep,getSignals:()=>T4,isStore:()=>C4,warnStateKeyShadowsMethod:()=>g_});function g_(t,e){let n=(e||"")+"::"+t;if(h_.has(n))return;h_.add(n);let r=e?`state.${e}`:"state",o=`[smbls/state] "${t}" is a reserved store-method name and was written as DATA at ${r}.${t}. The value is preserved and readable \u2014 data wins over the method \u2014 but "${r}.${t}(\u2026)" no longer reaches the store method on this node. Use "${r}.$${t}(\u2026)" for the method, or rename the data key. Reserved: ${m_.join(", ")}.`;typeof console<"u"&&console.warn&&console.warn(o)}function v4(){h_.clear()}function Cp(t,e,n){if(t===e)return!0;if(n>A4)return!1;if(Array.isArray(t)||Array.isArray(e)){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!Cp(t[r],e[r],n+1))return!1;return!0}if(Ap(t)&&Ap(e)){let r=Object.keys(t),o=Object.keys(e);if(r.length!==o.length)return!1;for(let s of r)if(!Object.prototype.hasOwnProperty.call(e,s)||!Cp(t[s],e[s],n+1))return!1;return!0}return!1}function Ep(t,e,n,r){n===void 0&&(n=0),r===void 0&&(r="");let o={},s={},i=b=>Object.prototype.hasOwnProperty.call(o,b)&&Object.prototype.hasOwnProperty.call(s,b),a=b=>{if(!r||!e||typeof e.isDataOnlyKey!="function")return!1;let w=r.indexOf(".");return!!e.isDataOnlyKey(w===-1?r:r.slice(0,w),b)},c=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let b in t){if(b==="__proto__"||!Object.prototype.hasOwnProperty.call(t,b))continue;if(b.startsWith("__")){s[b]=t[b];continue}pl.has(b)&&!a(b)&&g_(b,r);let w=t[b];n<c&&w&&typeof w=="object"&&!p_(w)?(s[b]=w,o[b]=jn(Ep(w,e,n+1,d_(r,b)))):(s[b]=w,o[b]=jn(w))}let l=new Proxy(s,{get(b,w){if(w===wn)return!0;if(w===vp)return o;if(w==="__raw")return b;if(w==="$update")return u;if(w==="$parse")return g;if(w==="$clean")return h;if(w==="$keys")return m;if(w==="$values")return y;if(w==="$replace")return x;if(w==="$add")return k;if(w==="$remove")return C;if(w==="$destroy")return _;if(w==="$quietUpdate")return d;if(w==="$settled")return p;if(pl.has(w)&&!Object.prototype.hasOwnProperty.call(o,w))switch(w){case"update":return u;case"parse":return g;case"clean":return h;case"keys":return m;case"values":return y;case"replace":return x;case"add":return k;case"remove":return C;case"destroy":return _;case"quietUpdate":return d}if(w==="__element")return b.__element;if(w==="parent")return b.parent;if(w==="root")return b.root;if(Object.prototype.hasOwnProperty.call(o,w)){let A=o[w].get();if(A!==void 0||!(w!=="root"&&b.root&&b.root!==l))return A}if(b[w]!==void 0)return typeof w=="string"&&Ie(),b[w];let S=typeof w=="string"&&!w.startsWith("__")&&w!=="then"&&w!=="constructor"&&a_()!=null;if(w!=="root"&&b.root&&b.root!==l){let A=b.root[w];return S&&!Object.prototype.hasOwnProperty.call(o,w)&&(o[w]=jn(void 0),o[w].get()),A}if(S)return o[w]=jn(void 0),o[w].get();typeof w=="string"&&w.charCodeAt(0)===95&&w.charCodeAt(1)===95&&Ie()},set(b,w,S){if(w==="__proto__")return!1;if(w==="__element"||w==="parent"||w==="root"||typeof w=="string"&&w.startsWith("__")&&!Object.prototype.hasOwnProperty.call(o,w))return b[w]=S,!0;pl.has(w)&&!a(w)&&g_(w,r);let A=d_(r,w);if(Object.prototype.hasOwnProperty.call(o,w))if(S&&typeof S=="object"&&!p_(S)){if(S===b[w])return!0;let T=o[w].peek(),O=T&&T[wn]?T.$parse():T;if(Cp(S,O,0))return!0;b[w]=S,ul(A),o[w].set(Ep(S,e,n+1,A))}else{if(Array.isArray(S)&&S!==b[w]&&Array.isArray(o[w].peek())&&Cp(S,o[w].peek(),0))return!0;o[w].peek()!==S&&ul(A),b[w]=S,o[w].set(S)}else b[w]=S,S&&typeof S=="object"&&!p_(S)?o[w]=jn(Ep(S,e,n+1,A)):o[w]=jn(S);return!0},has(b,w){return Ie(),typeof w=="string"&&w.charCodeAt(0)===36&&pl.has(w.slice(1))?!0:w in b},ownKeys(b){return Ie(),Object.keys(o).filter(i)},getOwnPropertyDescriptor(b,w){return Ie(),i(w)?{enumerable:!0,configurable:!0,value:o[w].peek()}:Object.getOwnPropertyDescriptor(b,w)},deleteProperty(b,w){if(Object.prototype.hasOwnProperty.call(o,w)){let S=o[w];S.peek()!==void 0&&ul(d_(r,w)),S.set(void 0),S._subscribers.size===0&&delete o[w]}return delete b[w],!0}});function f(b,w){let S=s.__element;return!S||typeof S.onBeforeStateUpdate!="function"||w?.preventBeforeStateUpdateListener?!0:S.onBeforeStateUpdate(S,l,S.context,{changes:b,options:w})!==!1}function u(b,w){if(b&&typeof b=="object"&&!f(b,w))return l;dl(()=>{for(let A in b)A!=="__proto__"&&(l[A]=b[A])});let S=s.__element;return S&&S.onUpdate&&!w?.quiet&&S.onUpdate(S,l,S.context),l}function d(b){return u(b,{quiet:!0})}function p(){return l_().then(()=>l)}function g(b){if(Ie(),b||(b=new Set),b.has(l))return"[Circular]";b.add(l);let w={};for(let S in o){if(S==="parent"||S==="root"||S.startsWith("__")||!Object.prototype.hasOwnProperty.call(s,S))continue;let A=o[S].peek();A&&A[wn]?w[S]=A.$parse(b):w[S]=A}return w}function h(){return dl(()=>{for(let b in o)delete l[b]}),l}function m(){return Ie(),Object.keys(o).filter(i)}function y(){return Ie(),Object.keys(o).filter(i).map(b=>o[b].peek())}function x(b,w){return b&&typeof b=="object"&&!f(b,w)||dl(()=>{for(let S in o)S in b||delete l[S];for(let S in b)S!=="__proto__"&&(l[S]=b[S])}),l}function k(b,w){let S=Object.prototype.hasOwnProperty.call(o,b)?o[b].peek():s[b];if(Array.isArray(S))return l[b]=[...S,w],l;if(S&&typeof S=="object"&&!Array.isArray(S)){if(Ap(w))S[wn]?S.$update(w):l[b]={...S,...w};else{let A=String(Object.keys(S).length);S[wn]?S.$update({[A]:w}):l[b]={...S,[A]:w}}return l}return l[b]=w,l}function C(b){return delete l[b],l}function _(){h(),s.__element=null,s.parent=null}return l}function C4(t){return t&&t[wn]===!0}function T4(t){return t[vp]}function O4(t,e){let n={},r={};if(t&&typeof t=="object")for(let a in t)r[a]=t[a],n[a]=jn(t[a]);let o=a=>{if(Object.prototype.hasOwnProperty.call(n,a))return n;let c=e;for(;c;){let l=c[vp];if(l&&Object.prototype.hasOwnProperty.call(l,a))return l;c=c[wn]?c[kp]:null}return null},s=()=>{let a=e;for(;a&&a[wn];)a=a[kp];return a&&typeof a=="object"?a:null};return new Proxy(r,{get(a,c){return c===wn?!0:c===vp?n:c===kp?e:c==="__raw"?a:Object.prototype.hasOwnProperty.call(n,c)?n[c].get():e&&c!=="then"&&c!=="constructor"?e[c]:a[c]},set(a,c,l){let f=o(c);if(f)return f===n&&(a[c]=l),f[c].set(l),!0;let u=s();return u&&Object.prototype.hasOwnProperty.call(u,c)?(u[c]=l,!0):(a[c]=l,n[c]=jn(l),!0)},has(a,c){if(Ie(),c in n||c in a)return!0;let l=e;for(;l;){if(c in l)return!0;l=l[wn]?l[kp]:null}return!1},ownKeys(){return Ie(),Object.keys(n)},getOwnPropertyDescriptor(a,c){return Ie(),c in n?{enumerable:!0,configurable:!0,value:n[c].peek()}:Object.getOwnPropertyDescriptor(a,c)}})}var wn,vp,m_,pl,h_,d_,p_,A4,Ap,kp,qT=D(()=>{u_();wn=Symbol("store"),vp=Symbol("signals"),m_=["update","parse","clean","keys","values","replace","add","remove","destroy","quietUpdate"],pl=new Set(m_),h_=new Set,d_=(t,e)=>t?t+"."+e:String(e);p_=t=>!t||typeof t!="object"||Array.isArray(t)||t[wn]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName||!Ap(t),A4=12,Ap=t=>{if(!t||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};kp=Symbol("scope.parent")});var Jo,Tp=D(()=>{Jo="3.14.790"});var Wi,Ki,b_,__=D(()=>{Tp();Wi="__SMBLS_SIGNAL_INSTANCES__",Ki=(t,e,n)=>{let r=e||(typeof globalThis<"u"?globalThis:null);if(!r)return null;let o=r[Wi]||(r[Wi]={versions:[],engines:0,reported:!1});return typeof o.engines!="number"&&(o.engines=o.versions.length),o.versions.push(t||Jo),n||o.engines++,o.engines>1&&!o.reported&&(o.reported=!0,console.error("[smbls] duplicate @symbo.ls/signal instance \u2014",o.engines,"copies of the reactive engine are loaded on this page:",o.versions.join(", ")+".","Each copy keeps its own observer and effect queue, so an effect created","by one copy never re-fires from another copy's store writes, and one","copy's cascade breaker cannot see the other's queue.","Copies of the SAME version adopt a single engine automatically, so","this means the versions above DIFFER: a fossil copy is resolving beside","the current one. That is a dependency-graph fault, not an application","bug \u2014 align the version wherever @symbo.ls/signal is imported, then","regenerate the lockfile so exactly one version resolves.")),o},b_=t=>{let e=t||(typeof globalThis<"u"?globalThis:null);e&&delete e[Wi]}});var qi,GT,w_,YT=D(()=>{Tp();__();qi="__SMBLS_SIGNAL_ENGINE__",GT=(t,e,n)=>{let r=e||Jo,o=n||(typeof globalThis<"u"?globalThis:null);if(!o)return t;let s=o[qi];return s&&s.engine&&s.version===r?(Ki(r,o,!0),s.engine):(s||(o[qi]={version:r,engine:t}),Ki(r,o,!1),t)},w_=t=>{let e=t||(typeof globalThis<"u"?globalThis:null);e&&delete e[qi]}});var $t,Sn,XT,K,Op,Me,hl,Qo,Rp,Pp,ur,Lp,Et,ZT,JT,QT,Dp,tO,R4,eO=D(()=>{u_();qT();YT();Tp();__();$t=GT({...f_,...y_,VERSION:Jo},Jo),Sn=$t.createSignal,XT=$t.createComputed,K=$t.createEffect,Op=$t.batch,Me=$t.getObserver,hl=$t.setObserver,Qo=$t.untrack||(t=>{let e=$t.getObserver();if(!e)return t();$t.setObserver(null);try{return t()}finally{$t.setObserver(e)}}),Rp=$t.settled||(()=>Promise.resolve()),Pp=$t.countUntrackedReads||(t=>(t(),0)),ur=$t.createStore,Lp=$t.createScopeStore,Et=$t.isStore,ZT=$t.getSignals,JT=$t.STORE_METHOD_NAMES,QT=$t.RESERVED_STORE_METHODS,Dp=$t.warnStateKeyShadowsMethod,tO=$t.__resetStateShadowWarnings,R4=$t.VERSION});var gl={};F(gl,{RESERVED_STORE_METHODS:()=>QT,SIGNAL_ENGINE_KEY:()=>qi,SIGNAL_INSTANCES_KEY:()=>Wi,STORE_METHOD_NAMES:()=>JT,VERSION:()=>R4,__resetSignalEngine:()=>w_,__resetSignalInstances:()=>b_,__resetStateShadowWarnings:()=>tO,batch:()=>Op,countUntrackedReads:()=>Pp,createComputed:()=>XT,createEffect:()=>K,createScopeStore:()=>Lp,createSignal:()=>Sn,createStore:()=>ur,getObserver:()=>Me,getSignals:()=>ZT,isStore:()=>Et,registerSignalInstance:()=>Ki,setObserver:()=>hl,settled:()=>Rp,untrack:()=>Qo,warnStateKeyShadowsMethod:()=>Dp});var Mt=D(()=>{eO()});var x_,k_,R,kt,yl=D(()=>{"use strict";x_=globalThis,k_=globalThis,R=globalThis,kt=R.document});var hr,bl,ge,_l=D(()=>{"use strict";yl();hr=t=>(typeof Node=="object"?t instanceof R.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,bl=t=>(typeof HTMLElement=="object"?t instanceof R.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,ge=t=>t===null||typeof t!="object"?!1:typeof R<"u"&&(R.Node&&t instanceof R.Node||R.Window&&t instanceof R.Window||t===R||kt!==void 0&&t===kt)});var E,v,me,L,Ip,Mp,I,Np,V,Ut,Xt,wl,ye,E_,Wt=D(()=>{"use strict";_l();E=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,v=t=>typeof t=="string",me=t=>typeof t=="number",L=t=>typeof t=="function",Ip=t=>t===!0||t===!1,Mp=t=>t===null,I=t=>Array.isArray(t),Np=t=>t instanceof Date,V=t=>t===null?!1:typeof t=="object",Ut=t=>t!==void 0,Xt=t=>t===void 0,wl={boolean:Ip,array:I,object:E,string:v,date:Np,number:me,null:Mp,function:L,objectLike:V,node:hr,htmlElement:bl,defined:Ut},ye=t=>(...e)=>e.some(n=>wl[n](t)),E_=t=>(...e)=>!e.some(n=>wl[n](t))});var v_,A_,C_,T_,Xi,Sl,O_,R_,xl,P_,L_,D_,I_,M_,N_,$_,Zi,kl,Ji=D(()=>{"use strict";Un();Wt();v_=(t,e)=>e.every(n=>t.includes(n)),A_=(t,e)=>{let n=0;for(let r=0;r<t.length;r++)t[r]===e&&n++;return n},C_=(t,e)=>{if(v(e)&&(e=parseInt(e)),me(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},T_=(t,e,n)=>{e<0||n<0||e>=t.length||n>=t.length||([t[e],t[n]]=[t[n],t[e]])},Xi=(...t)=>[].concat(...t),Sl=(t,e=[])=>t.reduce((n,r)=>bt(n,pt(r,{exclude:e}),e),{}),O_=(t,e)=>{let n=t.indexOf(e);return n!==-1?t.slice(0,n):t},R_=(t,e)=>{if(!I(t))return;let n=t.indexOf(e);return n!==-1?t.slice(n+1):t},xl=(t,e)=>{let n=t.indexOf(e);if(n>-1){let r=[...t];return r.splice(n,1),r}return t},P_=(t,e)=>t.filter(n=>n!==e),L_=(t,e)=>{let n=[];for(let r=0;r<t.length;r++)n.push(t[r]),r<t.length-1&&n.push(e);return n},D_=(t,e,n)=>{let r=[...t],o=r.indexOf(e),s=r.indexOf(n);if(o!==-1&&s!==-1){let i=r.splice(o,1)[0],a=s<o?s:s+1;r.splice(a,0,i)}return r},I_=(t,e)=>{if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},M_=(t,e)=>t.filter(n=>!e.includes(n)),N_=(t,e)=>{let n=new Set(e);return t.filter(r=>!n.has(r))},$_=(t,e)=>{if(!t)return 0;let n=0;for(let r=0;r<e.length;r++)t.includes(e[r])&&n++;return n},Zi=t=>I(t)?[...new Set(t)]:t,kl=(t,e)=>{for(let n in e)Object.defineProperty(t,n,{value:e[n],enumerable:!1,configurable:!0,writable:!0})}});function Zt(t,e,n={}){let{bracketsLength:r=2,authored:o=!1}=n,s=r===3?"{{{":"{{";if(!t.includes(s)||o!==!0&&!I4(this,t))return t;let i=D4[r],a=e||this.state||{},c=this;return t.replace(i,(l,f,u,d)=>{let p=u.trim();if(d){let g=c?.context,h=g?.functions?.[d]||g?.utils?.[d]||g?.methods?.[d]||g?.snippets?.[d]||c?.[d];if(h&&typeof h=="function")try{return String(h.call(c,p)??"")}catch{return""}return""}if(f){let g=(f.match(/\.\.\//g)||[]).length,h=a;for(let y=0;y<g;y++){if(!h||!h.parent)return"";h=h.parent}if(p==="parent")return String(h.value??"");let m=El(h,p);return m!=null&&typeof m=="object"?"":String(m??"")}else{let g=El(a,p);if(g!=null&&typeof g!="object")return String(g);let h=c?.context?.polyglot;if(h?.translations){let m=a?.root?.lang||a?.lang||c?.context?.state?.lang||h.defaultLang||"en",y=h.translations[m];if(y){let k=El(y,p);if(k!=null&&typeof k!="object")return String(k);for(let C in y){let _=y[C];if(_&&typeof _=="object"&&!Array.isArray(_)){let b=El(_,p);if(b!=null&&typeof b!="object")return String(b)}}}let x=El(h.translations,p);if(x!=null&&typeof x!="object")return String(x)}return""}})}var F_,vl,B_,D4,El,I4,es,j_,M4,U_,V_,z_,N4,H_,W_,Al=D(()=>{"use strict";F_=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),vl=(t,e)=>{for(let n of e)if(t.includes(n))return!0;return!1},B_=(t,e)=>{let n=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(n,"")},D4={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},El=(t,e)=>e.split(".").reduce((n,r)=>n?.[r],t),I4=(t,e)=>{if(!t||!t.__ref)return!0;let n=t;for(;n;){if(n.allowRuntimeTemplates===!0)return!0;let r=n.__ref&&n.__ref.__authoredTemplates;if(r&&r.has(e))return!0;n=n.parent}return!1};es=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,j_=(t,e)=>{let n=t.split(`
2
- `),r=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,l=!1;for(let f=0;f<n.length;f++)if(a.test(n[f])&&!l){if(l=!0,r=f+1,s=n[f].indexOf(e)+1,n[f].includes("{}")){o=r,i=n[f].indexOf("{}")+3;break}let u=n[f].slice(s+e.length);if(u.includes("{")||u.includes("["))c=1;else{o=f+1,i=n[f].length+1;break}}else if(l&&(c+=(n[f].match(/{/g)||[]).length,c+=(n[f].match(/\[/g)||[]).length,c-=(n[f].match(/}/g)||[]).length,c-=(n[f].match(/]/g)||[]).length,c===0)){o=f+1,i=n[f].lastIndexOf("}")!==-1?n[f].lastIndexOf("}")+2:n[f].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:r,endLineNumber:o}},M4=/\\([0-7]{1,3})/g,U_=t=>t.replace(M4,(e,n)=>String.fromCharCode(parseInt(n,8))),V_=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),z_=t=>t.replace(/\/\/\/\/\/n/g,`
3
- `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),N4=/[^a-zA-Z0-9\s]/g,H_=t=>t.replace(N4,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),W_=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var to,Cl,K_,ns,eo,no,q_,Qi,rs,Tl,G_,os=D(()=>{"use strict";to=new Set(["attr","style","text","html","content","data","classlist","state","scope","root","deps","extend","extends","$router","routes","children","childExtend","childExtends","childExtendRecursive","childExtendsRecursive","props","if","define","__name","__ref","__hash","__text","key","tag","query","parent","node","variables","on","fetch","component","context","preventContentUpdate","preventContentRecreate"]),Cl=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),K_=["ref","parent","__element","__depends","__ref","__children","root"],ns=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"]),eo=new Set(["update","__element"]),no=new Set(["set","reset","update","remove","updateContent","removeContent","lookup","lookdown","lookdownAll","whenConnected","getRef","getPath","setNodeStyles","spotByPath","keys","parse","setProps","parseDeep","variables","if","log","verbose","warn","error","call","nextElement","previousElement","getRootState","getRoot","getRootData","getRootContext","getContext","getQuery","getDB","getChildren","preventContentUpdate","preventContentRecreate"]),q_=t=>no.has(t),Qi=new Set(["log","warn","error","verbose"]),rs=t=>no.has(t)&&!Qi.has(t),Tl=new Set(["node","context","extends","__element","__ref",...no,...ns,...eo]),G_=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var X_,Z_,$4,J_,Y_,F4,B4,j4,ta,$p,Ol,Q_=D(()=>{"use strict";X_=["$R?.scope ?? $R?.context?.globalScope ?? {}","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && Object.getPrototypeOf(s) !== g) Object.setPrototypeOf(s, g); return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) Object.setPrototypeOf(s, g); return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { try { Object.setPrototypeOf(s, g) } catch (_) {} } return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { let __p = g, __cyc = false; while (__p) { if (__p === s) { __cyc = true; break } __p = Object.getPrototypeOf(__p) } if (!__cyc) { try { Object.setPrototypeOf(s, g) } catch (_) {} } } return s ?? g ?? {}; })()","(() => { const r = $R; const s = r?.scope; const g = r?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { let __p = g, __cyc = false; while (__p) { if (__p === s) { __cyc = true; break } __p = Object.getPrototypeOf(__p) } if (!__cyc) { try { Object.setPrototypeOf(s, g) } catch (_) {} } } return s ?? g ?? (r && typeof r === 'object' && r !== globalThis ? r : {}); })()"],Z_=(t,e)=>t.split("$R").join(e),$4=X_.map(t=>[Z_(t,"this"),t]),J_=t=>Z_(X_[X_.length-1],t),Y_="const __scope = ",F4=/^\(globalThis\[Symbol\.for\('smbls\.libraryScope'\)\] \|\| \(\(_, v\) => v\)\)\("(?:[^"\\]|\\.)*", /,B4=/^\s*(?:async\s*)?(?:\(([^()[\]{}'"`/]*)\)|([A-Za-z_$][\w$]*))\s*=>\s*\{\s*/,j4=/^[A-Za-z_$][\w$]*$/,ta=(t,e)=>typeof t=="string"&&new RegExp("^"+e+"\\d*$").test(t),$p=(t,e)=>{if(t.length>=2&&ta(t[0],"el"))return t[0];if(t.length>=2&&ta(t[1],"el"))return t[1];if(t.length>=1&&ta(t[0],"el")||ta(t[0],"element")||ta(t[0],"node"))return t[0];if(typeof e=="function"){let n=e();if(n&&t.includes(n))return n}return t.find(n=>ta(n,"element"))||null},Ol=t=>{if(typeof t!="string"||t.indexOf(Y_)===-1||t.indexOf("this")===-1)return t;let e=B4.exec(t);if(!e)return t;let n=e[0].length;if(!t.startsWith(Y_,n))return t;n+=Y_.length;let r=F4.exec(t.slice(n,n+400));r&&(n+=r[0].length);let o=$4.find(([l])=>t.startsWith(l,n));if(!o)return t;let s=n+o[0].length;if(t[s]!==(r?")":";"))return t;let a=(e[1]!==void 0?e[1]:e[2]).split(",").map(l=>l.split("=")[0].trim()).filter(Boolean);if(a.some(l=>!j4.test(l)))return t;let c=$p(a);return c?t.slice(0,n)+Z_(o[1],c)+t.slice(s):t}});var U4,Vn,Rl=D(()=>{"use strict";U4=Symbol.for("smbls.serverUtils"),Vn=(t,e)=>{let n=globalThis[U4];return typeof n!="function"?Promise.reject(new Error(`[smbls] ${t} is server-only in this build and no smbls runtime registered its loader`)):n().then(r=>r[t](...e))}});function n5(){let t=ss.get(this);return t?t.src.trim():Function.prototype.toString.call(this)}var nO,is,St,ew,Lt,bt,fO,nw,pt,Ll,V4,z4,rO,Dl,H4,W4,K4,se,uO,q4,Fp,dO,tw,ss,G4,Y4,X4,Z4,J4,oO,Q4,sO,t5,iO,Bp,e5,r5,o5,s5,aO,rw,Ne,as,i5,a5,be,pO,hO,gO,mO,yO,bO,_O,Il,Ml,ea,cs,cO,Pl,lO,ls,ow,sw,jp,iw,aw,Nl,fs,ie,Up,c5,cw,lw,Vp,fw,uw,dw,pw,hw,gw,mw,Un=D(()=>{"use strict";yl();Wt();Ji();Al();_l();os();Q_();Rl();nO="production",is=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,St=(t,e,n,r)=>{if(L(t))return e?typeof t.call!="function"?t:t.call(e,e,n||e.state,r||e.context):void 0;if(t!=null&&e?.context?.plugins&&(I(t)||E(t)&&!ge(t))){let o=e.context.plugins;for(let s of o)if(s.resolveHandler){let i=s.resolveHandler(t,e);if(typeof i=="function")return St(i,e,n,r)}}return t},ew=(t,e,n)=>{for(let r in e)t[r]=St(e[r],n)},Lt=(t,e,n=[])=>{let r=n instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(is(o)||(r?n.has(o):n.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},bt=(t,e,n=Tl)=>fO(t,e,n,null),fO=(t,e,n,r)=>{if(t===e)return t;if(r){for(let s=0;s<r.length;s+=2)if(r[s]===t&&r[s+1]===e)return t}let o=n instanceof Set;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||is(s)||s==="constructor"||s==="prototype"||(o?n.has(s):n.includes(s)))continue;let i=t[s],a=e[s];if(V(i)&&V(a)){let c=r||[];c.push(t,e),fO(i,a,n,c),c.length-=2}else i===void 0&&(t[s]=a)}return t},nw=(t,e=[])=>{let n=e instanceof Set,r={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(is(o)||(n?e.has(o):e.includes(o))||(r[o]=t[o]));return r},pt=(t,e={})=>{let{exclude:n=[],cleanUndefined:r=!1,cleanNull:o=!1,visited:s=new WeakMap,handleExtends:i=!1}=e;if(!V(t)||ge(t))return t;if(s.has(t))return s.get(t);let a=n instanceof Set?n:n.length>3?new Set(n):null,c=u=>a?a.has(u):n.includes(u),l=I(t)?[]:{};s.set(t,l);let f=[[t,l]];for(;f.length;){let[u,d]=f.pop();for(let p in u){if(!Object.prototype.hasOwnProperty.call(u,p)||is(p)||p==="__proto__"||c(p))continue;let g=u[p];if(!(r&&g===void 0)&&!(o&&g===null)){if(ge(g)){d[p]=g;continue}if(i&&p==="extends"&&I(g)){d[p]=Sl(g,n);continue}if(L(g)){d[p]=g;continue}if(V(g))if(s.has(g))d[p]=s.get(g);else{let h=I(g)?[]:{};s.set(g,h),d[p]=h,f.push([g,h])}else d[p]=g}}}return l},Ll=(t,e={})=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Vn("deepStringifyFunctions",[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 n in t){let r=t[n];if(L(r))e[n]=r.toString();else if(E(r))e[n]={},Ll(r,e[n]);else if(I(r)){let o=e[n]=[];for(let s=0;s<r.length;s++){let i=r[s];E(i)?(o[s]={},Ll(i,o[s])):L(i)?o[s]=i.toString():o[s]=i}}else e[n]=r}return e},V4=/^[A-Za-z_$][A-Za-z0-9_$]*$/,z4=t=>`'${String(t).replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\r/g,"\\r").replace(/\n/g,"\\n")}'`,rO=t=>{let e=String(t);return vl(e,[`
4
- `,"'"])?"`"+e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${")+"`":"'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\r/g,"\\r")+"'"},Dl=(t={},e=0)=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Vn("objectToString",[t,e]);if(t===null||typeof t!="object"||t instanceof RegExp)return String(t);let n=!1;for(let s in t){n=!0;break}if(!n)return"{}";let r=" ".repeat(e),o=`{
5
- `;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=V4.test(s)?s:z4(s);if(o+=`${r} ${a}: `,i instanceof RegExp)o+=String(i);else if(I(i)){o+=`[
1
+ "use strict";var $4=Object.create;var Ap=Object.defineProperty;var F4=Object.getOwnPropertyDescriptor;var B4=Object.getOwnPropertyNames;var j4=Object.getPrototypeOf,U4=Object.prototype.hasOwnProperty;var D=(t,e)=>()=>(t&&(e=t(t=0)),e);var d_=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),B=(t,e)=>{for(var n in e)Ap(t,n,{get:e[n],enumerable:!0})},nO=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of B4(e))!U4.call(t,o)&&o!==n&&Ap(t,o,{get:()=>e[o],enumerable:!(r=F4(e,o))||r.enumerable});return t};var rO=(t,e,n)=>(n=t!=null?$4(j4(t)):{},nO(e||!t||!t.__esModule?Ap(n,"default",{value:t,enumerable:!0}):n,t)),V4=t=>nO(Ap({},"__esModule",{value:!0}),t);var w_={};B(w_,{WRITE_JOURNAL:()=>ml,batch:()=>_l,countUntrackedReads:()=>W4,createComputed:()=>K4,createEffect:()=>q4,createSignal:()=>Hn,getObserver:()=>y_,journalWrite:()=>bl,noteUntrackedRead:()=>Ne,setObserver:()=>z4,settled:()=>__,untrack:()=>H4});function H4(t){let e=te;if(!e)return t();te=null;try{return t()}finally{te=e}}function Ne(){p_!==0&&Tp++}function W4(t){let e=Tp;p_++;let n;try{t()}finally{n=Tp-e,--p_===0&&(Tp=0)}return n}function Hn(t){let e=new Set;function n(){return te&&(e.add(te),te._sources.add(s)),t}function r(i){i!==t&&(t=i,t5(e))}function o(){return t}let s={get:n,set:r,peek:o,_subscribers:e,_type:"signal"};return s}function K4(t){let e,n=!0,r=new Set,o={_sources:new Set,_type:"computed",_subscribers:r,_execute(){m_(o);let s=te;te=o;try{e=t(),n=!1}finally{te=s}},_notify(){n=!0,r.size>0&&aO(r)},get(){return te&&(r.add(te),te._sources.add(o)),n&&o._execute(),e},peek(){return n&&o._execute(),e}};return o._execute(),o}function bl(t){ml.push(t),ml.length>32&&ml.shift()}function q4(t,e){let n=e?.depth??0,r={_sources:new Set,_type:"effect",_depth:n,_label:e?.label,_disposed:!1,_subscribers:new Set,_execute(){if(r._disposed)return;m_(r);let o=te;te=r;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{te=o}},_notify(){r._disposed||(hl>0?gl.push(r):Cp>0?h_.push(r):b_(r))},dispose(){r._disposed=!0,m_(r)}};return r._execute(),r}function _l(t){hl++;try{t()}finally{hl--,hl===0&&Q4()}}function sO(){return typeof performance<"u"?performance.now():Date.now()}function b_(t){Qe.add(t),!Rp&&(Op||(Op=!0,queueMicrotask(iO)))}function Z4(){if(Qe.size===1){let[e]=Qe;return Qe.clear(),e._disposed?0:(e._execute(),1)}Yi.length=0;for(let e of Qe)Yi.push(e);Qe.clear(),Yi.sort((e,n)=>e._depth-n._depth);let t=0;for(let e=0;e<Yi.length;e++){let n=Yi[e];n._disposed||(n._execute(),t++)}return Yi.length=0,t}function iO(t=0,e=0){if(Op=!1,Qe.size===0){yl.length&&g_();return}Rp=!0;let n=sO(),r=!1;try{for(;Qe.size>0;){if(++t>oO){let o=new Map;for(let c of Qe){let l=c._label;if(typeof l=="function")try{l=l()}catch{l="<label error>"}if(l=l||"<unlabeled>",o.set(l,(o.get(l)||0)+1),o.size>=12)break}let s=[...o.entries()].map(([c,l])=>l>1?`${c} \xD7${l}`:c).join(", "),i=new Map;for(let c of ml)i.set(c,(i.get(c)||0)+1);let a=[...i.entries()].map(([c,l])=>l>1?`${c} \xD7${l}`:c).join(", ");console.error("[smbls] reactive effect cascade exceeded",oO,"passes in a single flush \u2014 breaking to avoid hanging the thread.","This usually means an effect (or an onUpdate/subscribeTo handler","it calls into) unconditionally writes back a signal it depends on.","Still queued at break (the loop participants):",s||"<queue empty>","\u2014 last notifying store writes:",a||"<none recorded>"),Qe.clear();break}if(e+=Z4(),Qe.size>0&&(e>=Y4||t>=X4)&&sO()-n>G4){r=!0,setTimeout(()=>iO(t,e),0);break}}}finally{r||(Rp=!1,yl.length&&g_())}}function J4(){return Qe.size===0&&!Op&&!Rp&&gl.length===0&&hl===0}function g_(){if(yl.length===0||!J4())return;let t=yl.splice(0);for(let e=0;e<t.length;e++)t[e]()}function __(){return new Promise(t=>{yl.push(t),queueMicrotask(g_)})}function Q4(){for(let t=0;t<gl.length;t++)b_(gl[t]);gl.length=0}function aO(t){Cp++;try{for(let e of t)e._notify()}finally{if(Cp--,Cp===0&&h_.length>0){let e=h_.splice(0);for(let n=0;n<e.length;n++)b_(e[n])}}}function t5(t){aO(t)}function m_(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var te,hl,gl,y_,z4,p_,Tp,Cp,h_,Qe,Op,ml,Rp,oO,G4,Y4,X4,Yi,yl,S_=D(()=>{te=null,hl=0,gl=[],y_=()=>te,z4=t=>{te=t};p_=0,Tp=0;Cp=0,h_=[];Qe=new Set,Op=!1,ml=[];Rp=!1,oO=1e3,G4=8,Y4=256,X4=4;Yi=[];yl=[]});var T_={};B(T_,{RESERVED_STORE_METHODS:()=>wl,STORE_METHOD_NAMES:()=>A_,__resetStateShadowWarnings:()=>e5,createScopeStore:()=>s5,createStore:()=>Lp,getSignals:()=>o5,isStore:()=>r5,warnStateKeyShadowsMethod:()=>v_});function v_(t,e){let n=(e||"")+"::"+t;if(E_.has(n))return;E_.add(n);let r=e?`state.${e}`:"state",o=`[smbls/state] "${t}" is a reserved store-method name and was written as DATA at ${r}.${t}. The value is preserved and readable \u2014 data wins over the method \u2014 but "${r}.${t}(\u2026)" no longer reaches the store method on this node. Use "${r}.$${t}(\u2026)" for the method, or rename the data key. Reserved: ${A_.join(", ")}.`;typeof console<"u"&&console.warn&&console.warn(o)}function e5(){E_.clear()}function Mp(t,e,n){if(t===e)return!0;if(n>n5)return!1;if(Array.isArray(t)||Array.isArray(e)){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!Mp(t[r],e[r],n+1))return!1;return!0}if(Ip(t)&&Ip(e)){let r=Object.keys(t),o=Object.keys(e);if(r.length!==o.length)return!1;for(let s of r)if(!Object.prototype.hasOwnProperty.call(e,s)||!Mp(t[s],e[s],n+1))return!1;return!0}return!1}function Lp(t,e,n,r){n===void 0&&(n=0),r===void 0&&(r="");let o={},s={},i=w=>Object.prototype.hasOwnProperty.call(o,w)&&Object.prototype.hasOwnProperty.call(s,w),a=w=>{if(!r||!e||typeof e.isDataOnlyKey!="function")return!1;let b=r.indexOf(".");return!!e.isDataOnlyKey(b===-1?r:r.slice(0,b),w)},c=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let w in t){if(w==="__proto__"||!Object.prototype.hasOwnProperty.call(t,w))continue;if(w.startsWith("__")){s[w]=t[w];continue}wl.has(w)&&!a(w)&&v_(w,r);let b=t[w];n<c&&b&&typeof b=="object"&&!k_(b)?(s[w]=b,o[w]=Hn(Lp(b,e,n+1,x_(r,w)))):(s[w]=b,o[w]=Hn(b))}let l=new Proxy(s,{get(w,b){if(b===En)return!0;if(b===Dp)return o;if(b==="__raw")return w;if(b==="$update")return u;if(b==="$parse")return g;if(b==="$clean")return h;if(b==="$keys")return m;if(b==="$values")return y;if(b==="$replace")return x;if(b==="$add")return E;if(b==="$remove")return T;if(b==="$destroy")return S;if(b==="$quietUpdate")return d;if(b==="$settled")return p;if(wl.has(b)&&!Object.prototype.hasOwnProperty.call(o,b))switch(b){case"update":return u;case"parse":return g;case"clean":return h;case"keys":return m;case"values":return y;case"replace":return x;case"add":return E;case"remove":return T;case"destroy":return S;case"quietUpdate":return d}if(b==="__element")return w.__element;if(b==="parent")return w.parent;if(b==="root")return w.root;if(Object.prototype.hasOwnProperty.call(o,b)){let A=o[b].get();if(A!==void 0||!(b!=="root"&&w.root&&w.root!==l))return A}if(w[b]!==void 0)return typeof b=="string"&&Ne(),w[b];let _=typeof b=="string"&&!b.startsWith("__")&&b!=="then"&&b!=="constructor"&&y_()!=null;if(b!=="root"&&w.root&&w.root!==l){let A=w.root[b];return _&&!Object.prototype.hasOwnProperty.call(o,b)&&(o[b]=Hn(void 0),o[b].get()),A}if(_)return o[b]=Hn(void 0),o[b].get();typeof b=="string"&&b.charCodeAt(0)===95&&b.charCodeAt(1)===95&&Ne()},set(w,b,_){if(b==="__proto__")return!1;if(b==="__element"||b==="parent"||b==="root"||typeof b=="string"&&b.startsWith("__")&&!Object.prototype.hasOwnProperty.call(o,b))return w[b]=_,!0;wl.has(b)&&!a(b)&&v_(b,r);let A=x_(r,b);if(Object.prototype.hasOwnProperty.call(o,b))if(_&&typeof _=="object"&&!k_(_)){if(_===w[b])return!0;let C=o[b].peek(),O=C&&C[En]?C.$parse():C;if(Mp(_,O,0))return!0;w[b]=_,bl(A),o[b].set(Lp(_,e,n+1,A))}else{if(Array.isArray(_)&&_!==w[b]&&Array.isArray(o[b].peek())&&Mp(_,o[b].peek(),0))return!0;o[b].peek()!==_&&bl(A),w[b]=_,o[b].set(_)}else w[b]=_,_&&typeof _=="object"&&!k_(_)?o[b]=Hn(Lp(_,e,n+1,A)):o[b]=Hn(_);return!0},has(w,b){return Ne(),typeof b=="string"&&b.charCodeAt(0)===36&&wl.has(b.slice(1))?!0:b in w},ownKeys(w){return Ne(),Object.keys(o).filter(i)},getOwnPropertyDescriptor(w,b){return Ne(),i(b)?{enumerable:!0,configurable:!0,value:o[b].peek()}:Object.getOwnPropertyDescriptor(w,b)},deleteProperty(w,b){if(Object.prototype.hasOwnProperty.call(o,b)){let _=o[b];_.peek()!==void 0&&bl(x_(r,b)),_.set(void 0),_._subscribers.size===0&&delete o[b]}return delete w[b],!0}});function f(w,b){let _=s.__element;return!_||typeof _.onBeforeStateUpdate!="function"||b?.preventBeforeStateUpdateListener?!0:_.onBeforeStateUpdate(_,l,_.context,{changes:w,options:b})!==!1}function u(w,b){if(w&&typeof w=="object"&&!f(w,b))return l;_l(()=>{for(let A in w)A!=="__proto__"&&(l[A]=w[A])});let _=s.__element;return _&&_.onUpdate&&!b?.quiet&&_.onUpdate(_,l,_.context),l}function d(w){return u(w,{quiet:!0})}function p(){return __().then(()=>l)}function g(w){if(Ne(),w||(w=new Set),w.has(l))return"[Circular]";w.add(l);let b={};for(let _ in o){if(_==="parent"||_==="root"||_.startsWith("__")||!Object.prototype.hasOwnProperty.call(s,_))continue;let A=o[_].peek();A&&A[En]?b[_]=A.$parse(w):b[_]=A}return b}function h(){return _l(()=>{for(let w in o)delete l[w]}),l}function m(){return Ne(),Object.keys(o).filter(i)}function y(){return Ne(),Object.keys(o).filter(i).map(w=>o[w].peek())}function x(w,b){return w&&typeof w=="object"&&!f(w,b)||_l(()=>{for(let _ in o)_ in w||delete l[_];for(let _ in w)_!=="__proto__"&&(l[_]=w[_])}),l}function E(w,b){let _=Object.prototype.hasOwnProperty.call(o,w)?o[w].peek():s[w];if(Array.isArray(_))return l[w]=[..._,b],l;if(_&&typeof _=="object"&&!Array.isArray(_)){if(Ip(b))_[En]?_.$update(b):l[w]={..._,...b};else{let A=String(Object.keys(_).length);_[En]?_.$update({[A]:b}):l[w]={..._,[A]:b}}return l}return l[w]=b,l}function T(w){return delete l[w],l}function S(){h(),s.__element=null,s.parent=null}return l}function r5(t){return t&&t[En]===!0}function o5(t){return t[Dp]}function s5(t,e){let n={},r={};if(t&&typeof t=="object")for(let a in t)r[a]=t[a],n[a]=Hn(t[a]);let o=a=>{if(Object.prototype.hasOwnProperty.call(n,a))return n;let c=e;for(;c;){let l=c[Dp];if(l&&Object.prototype.hasOwnProperty.call(l,a))return l;c=c[En]?c[Pp]:null}return null},s=()=>{let a=e;for(;a&&a[En];)a=a[Pp];return a&&typeof a=="object"?a:null};return new Proxy(r,{get(a,c){return c===En?!0:c===Dp?n:c===Pp?e:c==="__raw"?a:Object.prototype.hasOwnProperty.call(n,c)?n[c].get():e&&c!=="then"&&c!=="constructor"?e[c]:a[c]},set(a,c,l){let f=o(c);if(f)return f===n&&(a[c]=l),f[c].set(l),!0;let u=s();return u&&Object.prototype.hasOwnProperty.call(u,c)?(u[c]=l,!0):(a[c]=l,n[c]=Hn(l),!0)},has(a,c){if(Ne(),c in n||c in a)return!0;let l=e;for(;l;){if(c in l)return!0;l=l[En]?l[Pp]:null}return!1},ownKeys(){return Ne(),Object.keys(n)},getOwnPropertyDescriptor(a,c){return Ne(),c in n?{enumerable:!0,configurable:!0,value:n[c].peek()}:Object.getOwnPropertyDescriptor(a,c)}})}var En,Dp,A_,wl,E_,x_,k_,n5,Ip,Pp,cO=D(()=>{S_();En=Symbol("store"),Dp=Symbol("signals"),A_=["update","parse","clean","keys","values","replace","add","remove","destroy","quietUpdate"],wl=new Set(A_),E_=new Set,x_=(t,e)=>t?t+"."+e:String(e);k_=t=>!t||typeof t!="object"||Array.isArray(t)||t[En]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName||!Ip(t),n5=12,Ip=t=>{if(!t||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};Pp=Symbol("scope.parent")});var os,Np=D(()=>{os="3.14.790"});var Xi,Zi,C_,O_=D(()=>{Np();Xi="__SMBLS_SIGNAL_INSTANCES__",Zi=(t,e,n)=>{let r=e||(typeof globalThis<"u"?globalThis:null);if(!r)return null;let o=r[Xi]||(r[Xi]={versions:[],engines:0,reported:!1});return typeof o.engines!="number"&&(o.engines=o.versions.length),o.versions.push(t||os),n||o.engines++,o.engines>1&&!o.reported&&(o.reported=!0,console.error("[smbls] duplicate @symbo.ls/signal instance \u2014",o.engines,"copies of the reactive engine are loaded on this page:",o.versions.join(", ")+".","Each copy keeps its own observer and effect queue, so an effect created","by one copy never re-fires from another copy's store writes, and one","copy's cascade breaker cannot see the other's queue.","Copies of the SAME version adopt a single engine automatically, so","this means the versions above DIFFER: a fossil copy is resolving beside","the current one. That is a dependency-graph fault, not an application","bug \u2014 align the version wherever @symbo.ls/signal is imported, then","regenerate the lockfile so exactly one version resolves.")),o},C_=t=>{let e=t||(typeof globalThis<"u"?globalThis:null);e&&delete e[Xi]}});var Ji,lO,R_,fO=D(()=>{Np();O_();Ji="__SMBLS_SIGNAL_ENGINE__",lO=(t,e,n)=>{let r=e||os,o=n||(typeof globalThis<"u"?globalThis:null);if(!o)return t;let s=o[Ji];return s&&s.engine&&s.version===r?(Zi(r,o,!0),s.engine):(s||(o[Ji]={version:r,engine:t}),Zi(r,o,!1),t)},R_=t=>{let e=t||(typeof globalThis<"u"?globalThis:null);e&&delete e[Ji]}});var $t,vn,uO,Y,$p,$e,Sl,ss,Fp,Bp,yr,jp,Et,dO,pO,hO,Up,gO,i5,mO=D(()=>{S_();cO();fO();Np();O_();$t=lO({...w_,...T_,VERSION:os},os),vn=$t.createSignal,uO=$t.createComputed,Y=$t.createEffect,$p=$t.batch,$e=$t.getObserver,Sl=$t.setObserver,ss=$t.untrack||(t=>{let e=$t.getObserver();if(!e)return t();$t.setObserver(null);try{return t()}finally{$t.setObserver(e)}}),Fp=$t.settled||(()=>Promise.resolve()),Bp=$t.countUntrackedReads||(t=>(t(),0)),yr=$t.createStore,jp=$t.createScopeStore,Et=$t.isStore,dO=$t.getSignals,pO=$t.STORE_METHOD_NAMES,hO=$t.RESERVED_STORE_METHODS,Up=$t.warnStateKeyShadowsMethod,gO=$t.__resetStateShadowWarnings,i5=$t.VERSION});var xl={};B(xl,{RESERVED_STORE_METHODS:()=>hO,SIGNAL_ENGINE_KEY:()=>Ji,SIGNAL_INSTANCES_KEY:()=>Xi,STORE_METHOD_NAMES:()=>pO,VERSION:()=>i5,__resetSignalEngine:()=>R_,__resetSignalInstances:()=>C_,__resetStateShadowWarnings:()=>gO,batch:()=>$p,countUntrackedReads:()=>Bp,createComputed:()=>uO,createEffect:()=>Y,createScopeStore:()=>jp,createSignal:()=>vn,createStore:()=>yr,getObserver:()=>$e,getSignals:()=>dO,isStore:()=>Et,registerSignalInstance:()=>Zi,setObserver:()=>Sl,settled:()=>Fp,untrack:()=>ss,warnStateKeyShadowsMethod:()=>Up});var Mt=D(()=>{mO()});var L_,D_,R,kt,El=D(()=>{"use strict";L_=globalThis,D_=globalThis,R=globalThis,kt=R.document});var wr,vl,ye,Al=D(()=>{"use strict";El();wr=t=>(typeof Node=="object"?t instanceof R.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,vl=t=>(typeof HTMLElement=="object"?t instanceof R.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,ye=t=>t===null||typeof t!="object"?!1:typeof R<"u"&&(R.Node&&t instanceof R.Node||R.Window&&t instanceof R.Window||t===R||kt!==void 0&&t===kt)});var k,v,be,L,Vp,zp,I,Hp,z,Ut,Zt,Tl,_e,I_,qt=D(()=>{"use strict";Al();k=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,v=t=>typeof t=="string",be=t=>typeof t=="number",L=t=>typeof t=="function",Vp=t=>t===!0||t===!1,zp=t=>t===null,I=t=>Array.isArray(t),Hp=t=>t instanceof Date,z=t=>t===null?!1:typeof t=="object",Ut=t=>t!==void 0,Zt=t=>t===void 0,Tl={boolean:Vp,array:I,object:k,string:v,date:Hp,number:be,null:zp,function:L,objectLike:z,node:wr,htmlElement:vl,defined:Ut},_e=t=>(...e)=>e.some(n=>Tl[n](t)),I_=t=>(...e)=>!e.some(n=>Tl[n](t))});var M_,N_,$_,F_,ea,Cl,B_,j_,Ol,U_,V_,z_,H_,W_,K_,q_,na,Rl,ra=D(()=>{"use strict";Wn();qt();M_=(t,e)=>e.every(n=>t.includes(n)),N_=(t,e)=>{let n=0;for(let r=0;r<t.length;r++)t[r]===e&&n++;return n},$_=(t,e)=>{if(v(e)&&(e=parseInt(e)),be(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},F_=(t,e,n)=>{e<0||n<0||e>=t.length||n>=t.length||([t[e],t[n]]=[t[n],t[e]])},ea=(...t)=>[].concat(...t),Cl=(t,e=[])=>t.reduce((n,r)=>bt(n,pt(r,{exclude:e}),e),{}),B_=(t,e)=>{let n=t.indexOf(e);return n!==-1?t.slice(0,n):t},j_=(t,e)=>{if(!I(t))return;let n=t.indexOf(e);return n!==-1?t.slice(n+1):t},Ol=(t,e)=>{let n=t.indexOf(e);if(n>-1){let r=[...t];return r.splice(n,1),r}return t},U_=(t,e)=>t.filter(n=>n!==e),V_=(t,e)=>{let n=[];for(let r=0;r<t.length;r++)n.push(t[r]),r<t.length-1&&n.push(e);return n},z_=(t,e,n)=>{let r=[...t],o=r.indexOf(e),s=r.indexOf(n);if(o!==-1&&s!==-1){let i=r.splice(o,1)[0],a=s<o?s:s+1;r.splice(a,0,i)}return r},H_=(t,e)=>{if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},W_=(t,e)=>t.filter(n=>!e.includes(n)),K_=(t,e)=>{let n=new Set(e);return t.filter(r=>!n.has(r))},q_=(t,e)=>{if(!t)return 0;let n=0;for(let r=0;r<e.length;r++)t.includes(e[r])&&n++;return n},na=t=>I(t)?[...new Set(t)]:t,Rl=(t,e)=>{for(let n in e)Object.defineProperty(t,n,{value:e[n],enumerable:!1,configurable:!0,writable:!0})}});function Jt(t,e,n={}){let{bracketsLength:r=2,authored:o=!1}=n,s=r===3?"{{{":"{{";if(!t.includes(s)||o!==!0&&!f5(this,t))return t;let i=l5[r],a=e||this.state||{},c=this;return t.replace(i,(l,f,u,d)=>{let p=u.trim();if(d){let g=c?.context,h=g?.functions?.[d]||g?.utils?.[d]||g?.methods?.[d]||g?.snippets?.[d]||c?.[d];if(h&&typeof h=="function")try{return String(h.call(c,p)??"")}catch{return""}return""}if(f){let g=(f.match(/\.\.\//g)||[]).length,h=a;for(let y=0;y<g;y++){if(!h||!h.parent)return"";h=h.parent}if(p==="parent")return String(h.value??"");let m=Pl(h,p);return m!=null&&typeof m=="object"?"":String(m??"")}else{let g=Pl(a,p);if(g!=null&&typeof g!="object")return String(g);let h=c?.context?.polyglot;if(h?.translations){let m=a?.root?.lang||a?.lang||c?.context?.state?.lang||h.defaultLang||"en",y=h.translations[m];if(y){let E=Pl(y,p);if(E!=null&&typeof E!="object")return String(E);for(let T in y){let S=y[T];if(S&&typeof S=="object"&&!Array.isArray(S)){let w=Pl(S,p);if(w!=null&&typeof w!="object")return String(w)}}}let x=Pl(h.translations,p);if(x!=null&&typeof x!="object")return String(x)}return""}})}var G_,Ll,Y_,l5,Pl,f5,as,X_,u5,Z_,J_,Q_,d5,tw,ew,Dl=D(()=>{"use strict";G_=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Ll=(t,e)=>{for(let n of e)if(t.includes(n))return!0;return!1},Y_=(t,e)=>{let n=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(n,"")},l5={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Pl=(t,e)=>e.split(".").reduce((n,r)=>n?.[r],t),f5=(t,e)=>{if(!t||!t.__ref)return!0;let n=t;for(;n;){if(n.allowRuntimeTemplates===!0)return!0;let r=n.__ref&&n.__ref.__authoredTemplates;if(r&&r.has(e))return!0;n=n.parent}return!1};as=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,X_=(t,e)=>{let n=t.split(`
2
+ `),r=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,l=!1;for(let f=0;f<n.length;f++)if(a.test(n[f])&&!l){if(l=!0,r=f+1,s=n[f].indexOf(e)+1,n[f].includes("{}")){o=r,i=n[f].indexOf("{}")+3;break}let u=n[f].slice(s+e.length);if(u.includes("{")||u.includes("["))c=1;else{o=f+1,i=n[f].length+1;break}}else if(l&&(c+=(n[f].match(/{/g)||[]).length,c+=(n[f].match(/\[/g)||[]).length,c-=(n[f].match(/}/g)||[]).length,c-=(n[f].match(/]/g)||[]).length,c===0)){o=f+1,i=n[f].lastIndexOf("}")!==-1?n[f].lastIndexOf("}")+2:n[f].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:r,endLineNumber:o}},u5=/\\([0-7]{1,3})/g,Z_=t=>t.replace(u5,(e,n)=>String.fromCharCode(parseInt(n,8))),J_=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),Q_=t=>t.replace(/\/\/\/\/\/n/g,`
3
+ `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),d5=/[^a-zA-Z0-9\s]/g,tw=t=>t.replace(d5,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),ew=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var so,Il,nw,cs,io,ao,rw,oa,ls,Sr,Ml,ow,fs=D(()=>{"use strict";so=new Set(["attr","style","text","html","content","data","classlist","state","scope","root","deps","extend","extends","$router","routes","children","childExtend","childExtends","childExtendRecursive","childExtendsRecursive","props","if","define","__name","__ref","__hash","__text","key","tag","query","parent","node","variables","on","fetch","component","context","preventContentUpdate","preventContentRecreate"]),Il=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),nw=["ref","parent","__element","__depends","__ref","__children","root"],cs=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"]),io=new Set(["update","__element"]),ao=new Set(["set","reset","update","remove","updateContent","removeContent","lookup","lookdown","lookdownAll","whenConnected","getRef","getPath","setNodeStyles","spotByPath","keys","parse","setProps","parseDeep","variables","if","log","verbose","warn","error","call","nextElement","previousElement","getRootState","getRoot","getRootData","getRootContext","getContext","getQuery","getDB","getChildren","preventContentUpdate","preventContentRecreate"]),rw=t=>ao.has(t),oa=new Set(["log","warn","error","verbose"]),ls=t=>ao.has(t)&&!oa.has(t),Sr=new Set(["__proto__","constructor","prototype"]),Ml=new Set(["node","context","extends","__element","__ref",...ao,...cs,...io]),ow=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var iw,aw,p5,cw,sw,h5,g5,m5,sa,Wp,Nl,lw=D(()=>{"use strict";iw=["$R?.scope ?? $R?.context?.globalScope ?? {}","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && Object.getPrototypeOf(s) !== g) Object.setPrototypeOf(s, g); return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) Object.setPrototypeOf(s, g); return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { try { Object.setPrototypeOf(s, g) } catch (_) {} } return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { let __p = g, __cyc = false; while (__p) { if (__p === s) { __cyc = true; break } __p = Object.getPrototypeOf(__p) } if (!__cyc) { try { Object.setPrototypeOf(s, g) } catch (_) {} } } return s ?? g ?? {}; })()","(() => { const r = $R; const s = r?.scope; const g = r?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { let __p = g, __cyc = false; while (__p) { if (__p === s) { __cyc = true; break } __p = Object.getPrototypeOf(__p) } if (!__cyc) { try { Object.setPrototypeOf(s, g) } catch (_) {} } } return s ?? g ?? (r && typeof r === 'object' && r !== globalThis ? r : {}); })()"],aw=(t,e)=>t.split("$R").join(e),p5=iw.map(t=>[aw(t,"this"),t]),cw=t=>aw(iw[iw.length-1],t),sw="const __scope = ",h5=/^\(globalThis\[Symbol\.for\('smbls\.libraryScope'\)\] \|\| \(\(_, v\) => v\)\)\("(?:[^"\\]|\\.)*", /,g5=/^\s*(?:async\s*)?(?:\(([^()[\]{}'"`/]*)\)|([A-Za-z_$][\w$]*))\s*=>\s*\{\s*/,m5=/^[A-Za-z_$][\w$]*$/,sa=(t,e)=>typeof t=="string"&&new RegExp("^"+e+"\\d*$").test(t),Wp=(t,e)=>{if(t.length>=2&&sa(t[0],"el"))return t[0];if(t.length>=2&&sa(t[1],"el"))return t[1];if(t.length>=1&&sa(t[0],"el")||sa(t[0],"element")||sa(t[0],"node"))return t[0];if(typeof e=="function"){let n=e();if(n&&t.includes(n))return n}return t.find(n=>sa(n,"element"))||null},Nl=t=>{if(typeof t!="string"||t.indexOf(sw)===-1||t.indexOf("this")===-1)return t;let e=g5.exec(t);if(!e)return t;let n=e[0].length;if(!t.startsWith(sw,n))return t;n+=sw.length;let r=h5.exec(t.slice(n,n+400));r&&(n+=r[0].length);let o=p5.find(([l])=>t.startsWith(l,n));if(!o)return t;let s=n+o[0].length;if(t[s]!==(r?")":";"))return t;let a=(e[1]!==void 0?e[1]:e[2]).split(",").map(l=>l.split("=")[0].trim()).filter(Boolean);if(a.some(l=>!m5.test(l)))return t;let c=Wp(a);return c?t.slice(0,n)+aw(o[1],c)+t.slice(s):t}});var y5,Kn,$l=D(()=>{"use strict";y5=Symbol.for("smbls.serverUtils"),Kn=(t,e)=>{let n=globalThis[y5];return typeof n!="function"?Promise.reject(new Error(`[smbls] ${t} is server-only in this build and no smbls runtime registered its loader`)):n().then(r=>r[t](...e))}});function L5(){let t=us.get(this);return t?t.src.trim():Function.prototype.toString.call(this)}var yO,ds,St,uw,Lt,bt,vO,dw,pt,Bl,b5,_5,bO,jl,w5,S5,x5,ie,AO,k5,Kp,TO,fw,us,E5,v5,A5,T5,C5,_O,O5,wO,R5,SO,qp,P5,D5,I5,M5,xO,pw,Fe,ps,N5,$5,we,CO,OO,RO,PO,LO,DO,IO,Ul,Vl,ia,hs,kO,Fl,EO,gs,hw,gw,Gp,mw,yw,zl,ms,ae,Yp,F5,bw,_w,Xp,ww,Sw,xw,kw,Ew,vw,Aw,Wn=D(()=>{"use strict";El();qt();ra();Dl();Al();fs();lw();$l();yO="production",ds=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,St=(t,e,n,r)=>{if(L(t))return e?typeof t.call!="function"?t:t.call(e,e,n||e.state,r||e.context):void 0;if(t!=null&&e?.context?.plugins&&(I(t)||k(t)&&!ye(t))){let o=e.context.plugins;for(let s of o)if(s.resolveHandler){let i=s.resolveHandler(t,e);if(typeof i=="function")return St(i,e,n,r)}}return t},uw=(t,e,n)=>{for(let r in e)t[r]=St(e[r],n)},Lt=(t,e,n=[])=>{let r=n instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(ds(o)||(r?n.has(o):n.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},bt=(t,e,n=Ml)=>vO(t,e,n,null),vO=(t,e,n,r)=>{if(t===e)return t;if(r){for(let s=0;s<r.length;s+=2)if(r[s]===t&&r[s+1]===e)return t}let o=n instanceof Set;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||ds(s)||s==="constructor"||s==="prototype"||(o?n.has(s):n.includes(s)))continue;let i=t[s],a=e[s];if(z(i)&&z(a)){let c=r||[];c.push(t,e),vO(i,a,n,c),c.length-=2}else i===void 0&&(t[s]=a)}return t},dw=(t,e=[])=>{let n=e instanceof Set,r={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(ds(o)||(n?e.has(o):e.includes(o))||(r[o]=t[o]));return r},pt=(t,e={})=>{let{exclude:n=[],cleanUndefined:r=!1,cleanNull:o=!1,visited:s=new WeakMap,handleExtends:i=!1}=e;if(!z(t)||ye(t))return t;if(s.has(t))return s.get(t);let a=n instanceof Set?n:n.length>3?new Set(n):null,c=u=>a?a.has(u):n.includes(u),l=I(t)?[]:{};s.set(t,l);let f=[[t,l]];for(;f.length;){let[u,d]=f.pop();for(let p in u){if(!Object.prototype.hasOwnProperty.call(u,p)||ds(p)||p==="__proto__"||c(p))continue;let g=u[p];if(!(r&&g===void 0)&&!(o&&g===null)){if(ye(g)){d[p]=g;continue}if(i&&p==="extends"&&I(g)){d[p]=Cl(g,n);continue}if(L(g)){d[p]=g;continue}if(z(g))if(s.has(g))d[p]=s.get(g);else{let h=I(g)?[]:{};s.set(g,h),d[p]=h,f.push([g,h])}else d[p]=g}}}return l},Bl=(t,e={})=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Kn("deepStringifyFunctions",[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 n in t){let r=t[n];if(L(r))e[n]=r.toString();else if(k(r))e[n]={},Bl(r,e[n]);else if(I(r)){let o=e[n]=[];for(let s=0;s<r.length;s++){let i=r[s];k(i)?(o[s]={},Bl(i,o[s])):L(i)?o[s]=i.toString():o[s]=i}}else e[n]=r}return e},b5=/^[A-Za-z_$][A-Za-z0-9_$]*$/,_5=t=>`'${String(t).replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\r/g,"\\r").replace(/\n/g,"\\n")}'`,bO=t=>{let e=String(t);return Ll(e,[`
4
+ `,"'"])?"`"+e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${")+"`":"'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\r/g,"\\r")+"'"},jl=(t={},e=0)=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Kn("objectToString",[t,e]);if(t===null||typeof t!="object"||t instanceof RegExp)return String(t);let n=!1;for(let s in t){n=!0;break}if(!n)return"{}";let r=" ".repeat(e),o=`{
5
+ `;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=b5.test(s)?s:_5(s);if(o+=`${r} ${a}: `,i instanceof RegExp)o+=String(i);else if(I(i)){o+=`[
6
6
  `;for(let c of i)c instanceof RegExp?o+=`${r} ${String(c)},
7
- `:V(c)&&c!==null?o+=`${r} ${Dl(c,e+2)},
8
- `:v(c)?o+=`${r} ${rO(c)},
7
+ `:z(c)&&c!==null?o+=`${r} ${jl(c,e+2)},
8
+ `:v(c)?o+=`${r} ${bO(c)},
9
9
  `:o+=`${r} ${c},
10
- `;o+=`${r} ]`}else V(i)?o+=Dl(i,e+1):v(i)?o+=rO(i):o+=i;o+=`,
11
- `}return o+=`${r}}`,o},H4=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/,/^(?:\*\s*)?[a-zA-Z_$][\w$]*\s*\((?:[^()]|\([^()]*\))*\)\s*\{[\s\S]*\}$/],W4=/^["[{]/,K4=/^(export|import)\s/,se=t=>{if(!t)return!1;let e=t.trim();if(e===""||e==="{}"||e==="[]")return!1;let n=e.includes("=>");if(!n&&e.charCodeAt(0)!==40&&!e.startsWith("function")&&!e.startsWith("async")&&!(e.charCodeAt(e.length-1)===125&&e.includes("("))||K4.test(e)||!H4.some(s=>s.test(e)))return!1;let o=e.charCodeAt(0);return!(o===123&&!n||o===91||W4.test(e)&&!n)},uO=t=>(0,eval)(t),q4=(t,e)=>{let n=/^(\s*(?:async\s+)?function\s*[\w$]*\s*\([^)]*\)\s*)\{/.exec(t);if(!n)return null;let r=n[0].length,o=[],s=r,i=1,a=null,c=t.length,l=new RegExp("^(?:const|let|var)\\s+"+e+"\\b");for(;s<c&&i>0;){let u=t[s];if(u==="/"&&t[s+1]==="/"){let d=t.indexOf(`
10
+ `;o+=`${r} ]`}else z(i)?o+=jl(i,e+1):v(i)?o+=bO(i):o+=i;o+=`,
11
+ `}return o+=`${r}}`,o},w5=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/,/^(?:\*\s*)?[a-zA-Z_$][\w$]*\s*\((?:[^()]|\([^()]*\))*\)\s*\{[\s\S]*\}$/],S5=/^["[{]/,x5=/^(export|import)\s/,ie=t=>{if(!t)return!1;let e=t.trim();if(e===""||e==="{}"||e==="[]")return!1;let n=e.includes("=>");if(!n&&e.charCodeAt(0)!==40&&!e.startsWith("function")&&!e.startsWith("async")&&!(e.charCodeAt(e.length-1)===125&&e.includes("("))||x5.test(e)||!w5.some(s=>s.test(e)))return!1;let o=e.charCodeAt(0);return!(o===123&&!n||o===91||S5.test(e)&&!n)},AO=t=>(0,eval)(t),k5=(t,e)=>{let n=/^(\s*(?:async\s+)?function\s*[\w$]*\s*\([^)]*\)\s*)\{/.exec(t);if(!n)return null;let r=n[0].length,o=[],s=r,i=1,a=null,c=t.length,l=new RegExp("^(?:const|let|var)\\s+"+e+"\\b");for(;s<c&&i>0;){let u=t[s];if(u==="/"&&t[s+1]==="/"){let d=t.indexOf(`
12
12
  `,s);s=d===-1?c:d;continue}if(u==="/"&&t[s+1]==="*"){let d=t.indexOf("*/",s+2);s=d===-1?c:d+2;continue}if(u==='"'||u==="'"||u==="`"){let d=u;for(s++;s<c;){if(t[s]==="\\"){s+=2;continue}if(t[s]===d){s++;break}if(d==="`"&&t[s]==="$"&&t[s+1]==="{"){s+=2;let p=1;for(;s<c&&p>0;)t[s]==="{"?p++:t[s]==="}"&&p--,s++;continue}s++}continue}if(u==="{"){i++,s++;continue}if(u==="}"){i--,s++;continue}if(i===1&&l.test(t.slice(s))){let d=s,p=0,g=s;for(;g<c;){let h=t[g];if(h==='"'||h==="'"||h==="`"){let m=h;for(g++;g<c;){if(t[g]==="\\"){g+=2;continue}if(t[g]===m){g++;break}g++}continue}if(h==="("||h==="["||h==="{"){p++,g++;continue}if(h===")"||h==="]"||h==="}"){if(p===0)break;p--,g++;continue}if(p===0&&(h===";"||h===`
13
- `)){g++;break}g++}o.push([d,g]),s=g;continue}s++}if(!o.length)return null;let f=t;for(let u=o.length-1;u>=0;u--)f=f.slice(0,o[u][0])+f.slice(o[u][1]);return f},Fp=(t,e,n,r)=>{let o=String(t).trimStart();if(/^(export|import)\s/.test(o))return t;t=Ol(t);try{return n.window.eval(`(${t})`)}catch(s){let i=s&&s.message?s.message:String(s),a=/await is only valid in async/.test(i),c=/Identifier '([^']+)' has already been declared/.exec(i),l=null;if(a){let f=String(t).trim();if(/^function[\s(]/.test(f))try{l=n.window.eval("(async "+f+")")}catch{}}else if(c){let f=String(t),u=c[1];for(let d=0;d<5;d++){let p=q4(f,u);if(!p||p===f)break;f=p;try{l=n.window.eval("("+f+")");break}catch(g){let h=/Identifier '([^']+)' has already been declared/.exec(g&&g.message||String(g));if(!h||h[1]!==u)break}}}if(!l&&/Unexpected (token '\{'|identifier)/.test(i))try{let f=n.window.eval("({"+t+"})");if(f&&typeof f=="object"){let u=Object.keys(f);u.length===1&&typeof f[u[0]]=="function"&&(l=f[u[0]])}}catch{}return l||(typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${e} \u2014 `+(r?"revived lazily, so its source compiled on this first use; it acts as the string it replaces (a call returns the source text, el.call treats it as not callable). Reason: ":"value will be left as a string. Reason: ")+i+`.
14
- First 200 chars of source: `+String(t).slice(0,200)),t)}},dO=1,tw=2,ss=new WeakMap,G4=/^(async\s+)?function(?![\w$])\s*(\*)?\s*([A-Za-z_$][\w$]*)?\s*\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*\{/,Y4=/^(async\s+)?[A-Za-z_$][\w$]*\s*=>/,X4=/^(async\s*)?\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*=>/,Z4=/^(async\s+)?([A-Za-z_$][\w$]*)\s*\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*\{/,J4=new Set(["if","for","while","switch","catch","with","do","return","typeof","void","delete","new","in","of","instanceof","function","class","const","let","var","await","yield","import","export","try","else","throw","case","default","break","continue","debugger","finally","super","this","null","true","false","async","get","set","static"]),oO=t=>t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===36||t===95,Q4=(t,e,n)=>{let r=t.indexOf(e,n);for(;r!==-1;){let o=r+e.length;if((r===0||!oO(t.charCodeAt(r-1)))&&(o>=t.length||!oO(t.charCodeAt(o))))return!0;r=t.indexOf(e,o)}return!1},sO=t=>{let e=t.length-1;for(;e>=0&&t.charCodeAt(e)<=32;)e--;return e<0?-1:t.charCodeAt(e)},t5=t=>{let e=t,n=0;for(;n<e.length&&e.charCodeAt(n)<=32;)n++;n&&(e=e.slice(n));let r=G4.exec(e);if(r){if(r[2]||sO(e)!==125)return null;let o=r[3]||"";return o&&Q4(e,o,r[0].indexOf("("))||e.indexOf("arguments.callee")!==-1?null:{src:t,name:o,kind:r[1]?tw:dO,async:!!r[1],fn:void 0}}return r=Y4.exec(e)||X4.exec(e),r?{src:t,name:"",kind:tw,async:!!r[1],fn:void 0}:(r=Z4.exec(e),r&&!J4.has(r[2])&&sO(e)===125?e.indexOf("arguments.callee")!==-1?null:{src:t,name:r[2],kind:tw,async:!!r[1],fn:void 0}:null)},iO=t=>t.index===-1?`"${t.key}"`:`array index ${t.index} (prop "${t.key}")`,Bp=t=>{let e=Fp(t.src,iO(t),t.opts,!0),n=null;return typeof e=="function"?n=e:(t.value=e,typeof e!="string"&&typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: ${iO(t)} did not evaluate to a function \u2014 the lazily revived function returns that value.
15
- First 200 chars of source: `+String(t.src).slice(0,200))),t.fn=n,t.opts=null,n},e5=(t,e,n)=>Reflect.construct(t,e,n);r5={length:{get(){let t=ss.get(this);if(!t)return 0;let e=t.fn===void 0?Bp(t):t.fn;return e?e.length:0},configurable:!0},name:{get(){let t=ss.get(this);return t?t.name:""},configurable:!0},toString:{value:n5,writable:!0,configurable:!0}},o5=Object.getPrototypeOf(async function(){}),s5=t=>{let e;return t.kind===dO?e=function(){let n=t.fn===void 0?Bp(t):t.fn;return n===null?t.value:new.target?e5(n,arguments,new.target):n.apply(this,arguments)}:e={lazy(){let n=t.fn===void 0?Bp(t):t.fn;return n===null?t.value:n.apply(this,arguments)}}.lazy,ss.set(e,t),Object.defineProperties(e,r5),t.async&&Object.setPrototypeOf(e,o5),e},aO=(t,e,n,r)=>{let o=t5(t);return o?(o.key=e,o.index=n,o.opts=r,s5(o)):Fp(t,n===-1?`"${e}"`:`array index ${n} (prop "${e}")`,r)},rw=t=>typeof t=="function"&&ss.has(t),Ne=t=>{let e=ss.get(t);return e?e.src.trim():Function.prototype.toString.call(t)},as=t=>{let e=typeof t=="function"?ss.get(t):void 0;return e?(e.fn===void 0?Bp(e):e.fn)===null:!1},i5=new Set(["components","pages","functions","methods","snippets","app","globalScope"]),a5={window:{eval:uO}},be=(t,e={},n=a5)=>{if(!t||typeof t!="object")return e;(!n||!n.window||typeof n.window.eval!="function")&&(n={...n,window:{eval:uO}});let r=n.lazy===!0,o=n.lazy==="context",s=(a,c,l)=>r||o&&(a===t?i5.has(c):l),i=[[t,e,r]];for(;i.length;){let[a,c,l]=i.pop();for(let f in a){if(!Object.prototype.hasOwnProperty.call(a,f))continue;let u=a[f];if(v(u))se(u)?c[f]=l?aO(u,f,-1,n):Fp(u,`"${f}"`,n):c[f]=u;else if(I(u)){let d=c[f]=[],p=s(a,f,l);for(let g=0;g<u.length;g++){let h=u[g];if(v(h))d.push(se(h)?p?aO(h,f,g,n):Fp(h,`array index ${g} (prop "${f}")`,n):h);else if(E(h)){let m=lO(h);if(m!==null)d.push(m);else{let y={};d.push(y),i.push([h,y,p])}}else d.push(h)}}else if(E(u)){let d=lO(u);if(d!==null){c[f]=d;continue}let p=c[f]&&typeof c[f]=="object"&&!I(c[f])?c[f]:c[f]={};i.push([u,p,s(a,f,l)])}else c[f]=u}}return ea(e)},pO="Set",hO="Map",gO="RegExp",mO="WeakMap",yO="WeakSet",bO="String",_O=t=>{if(!t||typeof t!="object"||t.__type!==bO||!v(t.value))return!1;let e=Object.keys(t);return e.length===2&&e.includes("value")},Il=_O,Ml=Symbol.for("smbls.revived"),ea=t=>{if(t&&typeof t=="object")try{t[Ml]=!0}catch{}return t},cs=t=>!!(t&&typeof t=="object"&&t[Ml]===!0),cO=t=>{let e=Object.keys(t);return e.length===1&&e[0]==="__type"},Pl=(t,e)=>{if(!t||typeof t!="object")return t;if(_O(t))return t.value;let n=s=>Pl(s,e||(e=new WeakMap));if(t.__type===pO&&I(t.values))return new Set(t.values.map(n));if(t.__type===hO&&I(t.entries))return new Map(t.entries.map(s=>I(s)?[n(s[0]),n(s[1])]:s));if(t.__type===mO&&cO(t))return new WeakMap;if(t.__type===yO&&cO(t))return new WeakSet;if(t.__type===gO&&v(t.source))try{return new RegExp(t.source,v(t.flags)?t.flags:"")}catch{return t}if(e||(e=new WeakMap),e.has(t))return e.get(t);let r=!1;if(I(t)){let s=new Array(t.length);e.set(t,s);for(let i=0;i<t.length;i++)s[i]=Pl(t[i],e),s[i]!==t[i]&&(r=!0);return r||e.set(t,t),r?s:t}let o={};e.set(t,o);for(let s of Object.keys(t))o[s]=Pl(t[s],e),o[s]!==t[s]&&(r=!0);return r||e.set(t,t),r?o:t},lO=t=>{if(!t||typeof t!="object")return null;let e=t.__type;if(e!==gO&&e!==pO&&e!==hO&&e!==mO&&e!==yO&&e!==bO)return null;let n=Pl(t);return n===t?null:n},ls=t=>{if(!t||typeof t!="object")return t;let e={},n=[];for(let i of Object.keys(t)){let a=t[i];v(a)&&se(a)?n.push([i,a]):e[i]=Pl(a)}if(n.length===0)return e;let r=i=>/^[A-Za-z_$][\w$]*$/.test(i),o=n.filter(([i])=>r(i)),s=Object.keys(e).filter(r).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
13
+ `)){g++;break}g++}o.push([d,g]),s=g;continue}s++}if(!o.length)return null;let f=t;for(let u=o.length-1;u>=0;u--)f=f.slice(0,o[u][0])+f.slice(o[u][1]);return f},Kp=(t,e,n,r)=>{let o=String(t).trimStart();if(/^(export|import)\s/.test(o))return t;t=Nl(t);try{return n.window.eval(`(${t})`)}catch(s){let i=s&&s.message?s.message:String(s),a=/await is only valid in async/.test(i),c=/Identifier '([^']+)' has already been declared/.exec(i),l=null;if(a){let f=String(t).trim();if(/^function[\s(]/.test(f))try{l=n.window.eval("(async "+f+")")}catch{}}else if(c){let f=String(t),u=c[1];for(let d=0;d<5;d++){let p=k5(f,u);if(!p||p===f)break;f=p;try{l=n.window.eval("("+f+")");break}catch(g){let h=/Identifier '([^']+)' has already been declared/.exec(g&&g.message||String(g));if(!h||h[1]!==u)break}}}if(!l&&/Unexpected (token '\{'|identifier)/.test(i))try{let f=n.window.eval("({"+t+"})");if(f&&typeof f=="object"){let u=Object.keys(f);u.length===1&&typeof f[u[0]]=="function"&&(l=f[u[0]])}}catch{}return l||(typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${e} \u2014 `+(r?"revived lazily, so its source compiled on this first use; it acts as the string it replaces (a call returns the source text, el.call treats it as not callable). Reason: ":"value will be left as a string. Reason: ")+i+`.
14
+ First 200 chars of source: `+String(t).slice(0,200)),t)}},TO=1,fw=2,us=new WeakMap,E5=/^(async\s+)?function(?![\w$])\s*(\*)?\s*([A-Za-z_$][\w$]*)?\s*\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*\{/,v5=/^(async\s+)?[A-Za-z_$][\w$]*\s*=>/,A5=/^(async\s*)?\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*=>/,T5=/^(async\s+)?([A-Za-z_$][\w$]*)\s*\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*\{/,C5=new Set(["if","for","while","switch","catch","with","do","return","typeof","void","delete","new","in","of","instanceof","function","class","const","let","var","await","yield","import","export","try","else","throw","case","default","break","continue","debugger","finally","super","this","null","true","false","async","get","set","static"]),_O=t=>t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===36||t===95,O5=(t,e,n)=>{let r=t.indexOf(e,n);for(;r!==-1;){let o=r+e.length;if((r===0||!_O(t.charCodeAt(r-1)))&&(o>=t.length||!_O(t.charCodeAt(o))))return!0;r=t.indexOf(e,o)}return!1},wO=t=>{let e=t.length-1;for(;e>=0&&t.charCodeAt(e)<=32;)e--;return e<0?-1:t.charCodeAt(e)},R5=t=>{let e=t,n=0;for(;n<e.length&&e.charCodeAt(n)<=32;)n++;n&&(e=e.slice(n));let r=E5.exec(e);if(r){if(r[2]||wO(e)!==125)return null;let o=r[3]||"";return o&&O5(e,o,r[0].indexOf("("))||e.indexOf("arguments.callee")!==-1?null:{src:t,name:o,kind:r[1]?fw:TO,async:!!r[1],fn:void 0}}return r=v5.exec(e)||A5.exec(e),r?{src:t,name:"",kind:fw,async:!!r[1],fn:void 0}:(r=T5.exec(e),r&&!C5.has(r[2])&&wO(e)===125?e.indexOf("arguments.callee")!==-1?null:{src:t,name:r[2],kind:fw,async:!!r[1],fn:void 0}:null)},SO=t=>t.index===-1?`"${t.key}"`:`array index ${t.index} (prop "${t.key}")`,qp=t=>{let e=Kp(t.src,SO(t),t.opts,!0),n=null;return typeof e=="function"?n=e:(t.value=e,typeof e!="string"&&typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: ${SO(t)} did not evaluate to a function \u2014 the lazily revived function returns that value.
15
+ First 200 chars of source: `+String(t.src).slice(0,200))),t.fn=n,t.opts=null,n},P5=(t,e,n)=>Reflect.construct(t,e,n);D5={length:{get(){let t=us.get(this);if(!t)return 0;let e=t.fn===void 0?qp(t):t.fn;return e?e.length:0},configurable:!0},name:{get(){let t=us.get(this);return t?t.name:""},configurable:!0},toString:{value:L5,writable:!0,configurable:!0}},I5=Object.getPrototypeOf(async function(){}),M5=t=>{let e;return t.kind===TO?e=function(){let n=t.fn===void 0?qp(t):t.fn;return n===null?t.value:new.target?P5(n,arguments,new.target):n.apply(this,arguments)}:e={lazy(){let n=t.fn===void 0?qp(t):t.fn;return n===null?t.value:n.apply(this,arguments)}}.lazy,us.set(e,t),Object.defineProperties(e,D5),t.async&&Object.setPrototypeOf(e,I5),e},xO=(t,e,n,r)=>{let o=R5(t);return o?(o.key=e,o.index=n,o.opts=r,M5(o)):Kp(t,n===-1?`"${e}"`:`array index ${n} (prop "${e}")`,r)},pw=t=>typeof t=="function"&&us.has(t),Fe=t=>{let e=us.get(t);return e?e.src.trim():Function.prototype.toString.call(t)},ps=t=>{let e=typeof t=="function"?us.get(t):void 0;return e?(e.fn===void 0?qp(e):e.fn)===null:!1},N5=new Set(["components","pages","functions","methods","snippets","app","globalScope"]),$5={window:{eval:AO}},we=(t,e={},n=$5)=>{if(!t||typeof t!="object")return e;(!n||!n.window||typeof n.window.eval!="function")&&(n={...n,window:{eval:AO}});let r=n.lazy===!0,o=n.lazy==="context",s=(a,c,l)=>r||o&&(a===t?N5.has(c):l),i=[[t,e,r]];for(;i.length;){let[a,c,l]=i.pop();for(let f in a){if(!Object.prototype.hasOwnProperty.call(a,f)||Sr.has(f))continue;let u=a[f];if(v(u))ie(u)?c[f]=l?xO(u,f,-1,n):Kp(u,`"${f}"`,n):c[f]=u;else if(I(u)){let d=c[f]=[],p=s(a,f,l);for(let g=0;g<u.length;g++){let h=u[g];if(v(h))d.push(ie(h)?p?xO(h,f,g,n):Kp(h,`array index ${g} (prop "${f}")`,n):h);else if(k(h)){let m=EO(h);if(m!==null)d.push(m);else{let y={};d.push(y),i.push([h,y,p])}}else d.push(h)}}else if(k(u)){let d=EO(u);if(d!==null){c[f]=d;continue}let p=c[f]&&typeof c[f]=="object"&&!I(c[f])?c[f]:c[f]={};i.push([u,p,s(a,f,l)])}else c[f]=u}}return ia(e)},CO="Set",OO="Map",RO="RegExp",PO="WeakMap",LO="WeakSet",DO="String",IO=t=>{if(!t||typeof t!="object"||t.__type!==DO||!v(t.value))return!1;let e=Object.keys(t);return e.length===2&&e.includes("value")},Ul=IO,Vl=Symbol.for("smbls.revived"),ia=t=>{if(t&&typeof t=="object")try{t[Vl]=!0}catch{}return t},hs=t=>!!(t&&typeof t=="object"&&t[Vl]===!0),kO=t=>{let e=Object.keys(t);return e.length===1&&e[0]==="__type"},Fl=(t,e)=>{if(!t||typeof t!="object")return t;if(IO(t))return t.value;let n=s=>Fl(s,e||(e=new WeakMap));if(t.__type===CO&&I(t.values))return new Set(t.values.map(n));if(t.__type===OO&&I(t.entries))return new Map(t.entries.map(s=>I(s)?[n(s[0]),n(s[1])]:s));if(t.__type===PO&&kO(t))return new WeakMap;if(t.__type===LO&&kO(t))return new WeakSet;if(t.__type===RO&&v(t.source))try{return new RegExp(t.source,v(t.flags)?t.flags:"")}catch{return t}if(e||(e=new WeakMap),e.has(t))return e.get(t);let r=!1;if(I(t)){let s=new Array(t.length);e.set(t,s);for(let i=0;i<t.length;i++)s[i]=Fl(t[i],e),s[i]!==t[i]&&(r=!0);return r||e.set(t,t),r?s:t}let o={};e.set(t,o);for(let s of Object.keys(t)){if(Sr.has(s)){r=!0;continue}o[s]=Fl(t[s],e),o[s]!==t[s]&&(r=!0)}return r||e.set(t,t),r?o:t},EO=t=>{if(!t||typeof t!="object")return null;let e=t.__type;if(e!==RO&&e!==CO&&e!==OO&&e!==PO&&e!==LO&&e!==DO)return null;let n=Fl(t);return n===t?null:n},gs=t=>{if(!t||typeof t!="object")return t;let e={},n=[];for(let i of Object.keys(t)){if(Sr.has(i))continue;let a=t[i];v(a)&&ie(a)?n.push([i,a]):e[i]=Fl(a)}if(n.length===0)return e;let r=i=>/^[A-Za-z_$][\w$]*$/.test(i),o=n.filter(([i])=>r(i)),s=Object.keys(e).filter(r).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
16
16
  `);try{let i=o.map(([l,f])=>`var ${l} = (${f});`).join(`
17
17
  `),a="{ "+o.map(([l])=>`${JSON.stringify(l)}: ${l}`).join(", ")+" }",c=R.eval(`(function(__gs__) { ${s}
18
18
  ${i}
19
19
  return ${a}; })`)(e);Object.assign(e,c)}catch{for(let[a,c]of o)try{let l=Object.keys(e).filter(r).map(f=>`var ${f} = __gs__[${JSON.stringify(f)}];`).join(`
20
20
  `);e[a]=R.eval(`(function(__gs__) { ${l}
21
- return (${c}); })`)(e)}catch{try{e[a]=R.eval(`(${c})`)}catch{e[a]=c}}}for(let[i,a]of n)if(!r(i))try{e[i]=R.eval(`(${a})`)}catch{e[i]=a}return e},ow=(t,e={verbose:!0})=>{try{return t?R.eval("("+t+")"):{}}catch(n){e.verbose&&console.warn(n)}},sw=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),jp=t=>{for(let e in t)return!1;return!0},iw=t=>E(t)&&jp(t),aw=()=>Object.create(null),Nl=(t,e,n={})=>{let r=n.exclude||[],o=n.preventUnderscore;for(let s in e)r.includes(s)||!o&&is(s)||s==="constructor"||s==="prototype"||e[s]!==void 0&&(t[s]=e[s]);return t},fs=(t,e,n=[])=>{let r=n instanceof Set;for(let o in e)is(o)||o==="constructor"||o==="prototype"||(r?n.has(o):n.includes(o))||(t[o]=e[o]);return t},ie=(t,e,n={},r=new WeakMap)=>{if(!V(t)||!V(e)||ge(t)||ge(e))return e;if(r.has(t))return r.get(t);r.set(t,t);let o=n.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!n.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&is(a)||a==="constructor"||a==="prototype")continue;let c=t[a],l=e[a];ge(l)?t[a]=l:V(c)&&V(l)?t[a]=ie(c,l,n,r):l!==void 0&&(t[a]=l)}return t},Up=(t,e,n=new Set)=>{if(typeof t!="object"||typeof e!="object"||t===null||e===null)return t===e;if(n.has(t)||n.has(e))return!0;n.add(t),n.add(e);let r=Object.keys(t),o=Object.keys(e);if(r.length!==o.length)return!1;for(let s=0;s<r.length;s++){let i=r[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!Up(t[i],e[i],n))return!1}return!0},c5=new Set(["node","__ref"]),cw=(t,e,n=c5)=>{if(t===e)return!0;if(!V(t)||!V(e)||ge(t)||ge(e))return t===e;let r=n instanceof Set?n:new Set(n),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)||r.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let l=a[c],f=i[c];if(ge(l)||ge(f)){if(l!==f)return!1}else if(V(l)&&V(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},lw=(t,e)=>{if(e==null)return t;if(ye(e)("string","number"))delete t[e];else if(I(e))for(let n=0;n<e.length;n++)delete t[e[n]];else throw new Error("Invalid input: props must be a string or an array of strings");return t},Vp=t=>{if(t===null||typeof t!="object")return t;let e=Object.create(null);for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=Vp(t[n]));return e},fw=(t,e)=>{if(t.length===0)return e;let n={},r=n;for(let o=0;o<t.length;o++)o===t.length-1&&e?r[t[o]]=e:(r[t[o]]={},r=r[t[o]]);return n},uw=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let o=0;o<e.length-1;o++){if(n[e[o]]===void 0)return;n=n[e[o]]}let r=e[e.length-1];n&&Object.prototype.hasOwnProperty.call(n,r)&&delete n[r]},dw=(t,e,n)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let o=0;o<e.length-1;o++)(!r[e[o]]||typeof r[e[o]]!="object")&&(r[e[o]]={}),r=r[e[o]];return r[e[e.length-1]]=n,t},pw=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let r=0;r<e.length;r++){if(n==null)return;n=n[e[r]]}return n},hw=t=>{let n=[],r=0;for(let o=0;o<t.length;o++)if(n.length<2)n.push(t[o]);else if(t[o]===n[o%2]?r++:(n=[t[o-1],t[o]],r=1),r>=20)return(nO==="test"||nO==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",n),!0},gw=t=>{let e=new WeakSet;function n(r){if(r&&typeof r=="object"){if(e.has(r))return!0;e.add(r);for(let o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&n(r[o]))return console.log(r,"cycle at "+o),!0}return!1}return n(t)},mw=(t,e)=>{let n=e instanceof Set?e:new Set(e),r={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&!n.has(o)&&(r[o]=t[o]);return r}});var $l,Fl,Bl,zp=D(()=>{"use strict";Un();$l=(function(){let t=0;function e(){return t++,t}return e})(),Fl=$l,Bl=(t,e,n)=>(St(n,t)||n||t.key||$l()).toString()});var xn,yw,ro,Hp,bw,_w,ww,oo,Sw,gr,tt,jl=D(()=>{"use strict";xn="production",yw=xn,ro=(t=xn)=>t==="production",Hp=(t=xn)=>t==="testing"||t==="test",bw=Hp,_w=(t=xn)=>t==="staging",ww=(t=xn)=>t==="local",oo=(t=xn)=>t==="development"||t==="dev"||t==="local",Sw=(t,e=xn)=>e[t],gr=(t=xn)=>!ro(t),tt=t=>{if(!t&&globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__===!0)return!1;let e=t&&"env"in t?t.env:typeof process<"u"&&process.env?"production":void 0;if(e&&e!=="production")return!0;let n=t&&"hostname"in t?t.hostname:typeof location<"u"?location.hostname:void 0;return typeof n=="string"&&n?n==="localhost"||n==="127.0.0.1"||n.endsWith(".localhost"):!1}});function Ul(t,e,n){let r;return function(){let o=this,s=arguments,i=function(){r=null,n||t.apply(o,s)},a=n&&!r;clearTimeout(r),r=setTimeout(i,e),a&&t.apply(o,s)}}function Ew(t,e=window){let n=function(){return t.apply(e,arguments)};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var xw,kw,l5,na,ra,oa,so,sa=D(()=>{"use strict";xw=(t,e,n=300)=>{let r;return(...o)=>{clearTimeout(r),r=setTimeout(()=>{e.apply(t,o)},n)}},kw=t=>{let e={};return(...n)=>{let r=n[0];if(r in e)return e[r];{let o=t(r);return e[r]=o,o}}},l5=/^\s*(?:async\s+)?(?:function\b|\([^)]*\)\s*=>|[a-zA-Z_$][\w$]*\s*=>)/,na=t=>l5.test(t),ra=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let n of e)if(n.resolveHandler)return!0;return!1},oa=(t,e)=>{if(typeof t=="function")return t;let n=e?.context?.plugins;if(!n)return t;for(let r of n)if(r.resolveHandler){let o=r.resolveHandler(t,e);if(typeof o=="function")return o}return t},so=(t,e,...n)=>{let r=e?.context?.plugins;if(!r)return!1;let o=!1;for(let s of r)typeof s[t]=="function"&&(s[t](e,...n),o=!0);return o}});var vw,wO=D(()=>{"use strict";Wt();Un();vw=(t,e)=>{let{__ref:n}=t,r=t.if;if(L(r)){let o;try{o=r(t,t.state,t.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete n.__if;return}o?n.__if=!0:delete n.__if}else r!=null&&typeof r=="object"?St(r,t)?n.__if=!0:delete n.__if:n.__if=!0}});var Aw,Cw,SO=D(()=>{"use strict";Aw=(t,...e)=>{t&&e.map(n=>console.log(n))},Cw=(t,e,...n)=>{t&&(console.group(e),n.map(r=>console.log(r)),console.groupEnd(e))}});function Lw(t){let e;try{if(!window.localStorage)return;e=window.localStorage.getItem(t)}catch{return}if(e!==null)try{return JSON.parse(e)}catch{return}}function Dw(t,e){if(e!=null)try{if(!window.localStorage)return;let n=typeof e=="object"?JSON.stringify(e):e;window.localStorage.setItem(t,n)}catch{}}var Tw,Ow,Rw,Pw,xO=D(()=>{"use strict";Wt();yl();Tw=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Ow=(t,e,n=365)=>{if(Xt(kt)||Xt(kt.cookie))return;let r=new Date;r.setTime(r.getTime()+n*24*60*60*1e3);let o=`expires=${r.toUTCString()}`;kt.cookie=`${t}=${e};${o};path=/`},Rw=t=>{if(Xt(kt)||Xt(kt.cookie))return;let e=`${t}=`,r=decodeURIComponent(kt.cookie).split(";");for(let o=0;o<r.length;o++){let s=r[o];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(e)===0)return s.substring(e.length,s.length)}return""},Pw=t=>{Xt(kt)||Xt(kt.cookie)||(kt.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var ia,kO,Iw,Mw=D(()=>{"use strict";ia={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"])},kO=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"]),Iw=t=>ia.body.has(t)});var Nw,EO,aa,Ze,ca,Hl,zn,$w,Wp,Wl,Fw,Kl,Kp,qp,ql,Gp,la,f5,Hn,vO,Vl,Gl,Bw,zl,jw,Uw,Yp,Xp,Zp,Jp,Qp,th,AO,eh=D(()=>{"use strict";Ji();Vw();Un();Wt();Nw="production",EO=t=>t.sourcemap!==!1&&Nw!=="production",aa=t=>{if(!t)return[];let e=[],n=t.extends;n&&(I(n)?e.push(...n):e.push(n));let r=t.extend;return r&&(I(r)?e.push(...r):e.push(r)),e},Ze=t=>{if(!I(t))return t;let e=[];for(let n=t.length-1;n>=0;n--){let r=t[n];e.push(I(r)?Ze(r):r)}return e},ca=t=>{if(t.includes("+"))return t.split("+").filter(Wn);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!Wn(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},Hl=(t,e,n)=>{let r=[],o=ca(n);o&&(r=[...o]);let s=Ze(aa(t));return s.length&&(r=[...r,...s]),r},zn=(t,e)=>{let{__ref:n}=e,{__extends:r}=n;if(!t)return r;let o=e.variant,s=e.context;if(o&&s?.components&&!Array.isArray(t)&&typeof t=="string"){let i=`${t}.${o}`;s.components[i]&&(t=i)}return r.includes(t)||(r=Array.isArray(t)?[...r,...t]:[...r,t],n.__extends=r),r},$w=(t,e)=>{if(!t)return e;let{extends:n}=e,r=I(n)?n:[n],o=I(t)?t:[t];return{...e,extends:Xi(o,r)}},Wp=()=>Math.random().toString(36).substring(2),Wl={},Fw={},Kl=t=>Wl[t.__hash],Kp=(t,e)=>{let n=Wp();return v(t)||(t.__hash=n),n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(Wl[n]=e),e},qp=(t,e)=>t.__hash?e.concat(Kl(t)):Kp(t,e),ql=(t,e,n,r=new Set,o,s)=>{for(let i of t)I(i)?ql(i,e,n,r,o,s):la(i,e,n,r,o,void 0,s);return e},Gp=(t,e,n,r=new Set,o,s,i)=>{let a=aa(t),c={...t};delete c.extends,delete c.extend;let l=!1;for(let f in c){l=!0;break}return l&&(e.push(c),o&&o.push(s)),a.length&&la(Ze(a),e,n,r,o,s,i),e},la=(t,e,n,r=new Set,o,s,i)=>{if(!t||r.has(t))return e;if(I(t))return ql(t,e,n,r,o,i);let a=s;return v(t)?(a=t,t=Gl(t,n)):i&&E(t)&&i.has(t)&&(a=i.get(t)),r.has(t)||(r.add(t),t?.extends||t?.extend?Gp(t,e,n,r,o,a,i):t&&(e.push(t),o&&o.push(a))),e},f5=new Set(["parent","node","__ref","__proto__","extends","extend","childExtends","childExtendsRecursive"]),Hn=(t,e,n,r,o)=>{e=pt(e);for(let s in e){if(f5.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,n&&r?E(a)&&!I(a)?(n[s]=n[s]||{},vO(n[s],a,r)):n[s]=r:n&&o?.[s]&&(n[s]=o[s]);else if(E(i)&&E(a)){let c=n?n[s]=n[s]||{}:void 0,l=o?.[s];Wn(s)?t[s]=Hn(i,a,c,r,l):Hn(i,a,c,r,l)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(I(i)&&I(a))t[s]=i.concat(a);else if(I(i)&&E(a)){let c=Hn({},i);t[s]=Hn(c,a)}}}}return t},vO=(t,e,n,r)=>{if(r||(r=new WeakSet),!r.has(e)){r.add(e);for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=e[o];E(s)&&!I(s)?(t[o]=t[o]||{},vO(t[o],s,n,r)):t[o]=n}}},Vl=(t,e,n)=>t.reduce((r,o,s)=>{let i=pt(o),a=n?n[s]:void 0;return Hn(r,i,e,a)},{}),Gl=(t,e,n={},r)=>{let o=e?.components||n.components,s=e?.pages||n.pages;if(v(t)){let i=o&&(o[t+"."+r]||o[t]||o["smbls."+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;n.verbose&&(Nw==="test"||Nw==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},Bw=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),zl=(t,e,n,r)=>{if(!t)return[];if(t.__hash)return Kl(t)||[];let s=la(t,[],e,new Set,n,void 0,r);return n?s:qp(t,s)},jw=(t,e)=>{if(!t)return e;let n=I(t)?t:[t];return Xi(n,e)},Uw=t=>{let e=[];function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&(Wn(o)&&e.push(o),o==="extends"&&(typeof r[o]=="string"?e.push(r[o]):Array.isArray(r[o])&&(e=e.concat(r[o]))),typeof r[o]=="object"&&r[o]!==null&&n(r[o]))}return n(t),e},Yp=(t,e,n={})=>{let{__ref:r}=t,o=t.context||e.context,s=t.variant,i=aa(t);if(i.length){let a=Ze(i),[c,...l]=a,f=typeof c=="string"&&s&&o?.components?`${c}.${s}`:null;f&&o.components[f]?zn([f,...l],t):zn(a,t)}return Xp(t,e,n),Zp(t,e,n),Jp(t,e,n),t.component&&zn(Ze(St(t.component,t)),t),o.defaultExtends&&zn(Ze(o.defaultExtends),t),Zi(r.__extends)},Xp=(t,e,n={})=>{let{__ref:r}=t;return n.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&zn(Ze(e.childProps.extends),t),r.__extends},Zp=(t,e,n={})=>{let{__ref:r}=t,o=n.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!o&&s&&zn(Ze(s),t),r.__extends},Jp=(t,e,n={})=>{let{__ref:r}=t,o=e.childExtendsRecursive,s=n.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key==="__text";return o&&!i&&!s&&zn(Ze(o),t),r.__extends},Qp=(t,e,n={})=>{let{__ref:r}=t,o=t.context||e.context,s=t.variant,i=EO(n),a=i?[...r.__extends]:null,c=Zi(r.__extends.map((l,f)=>Gl(l,o,n,f===0&&s)));if(i){let l=new WeakMap;for(let d=0;d<c.length;d++){let p=c[d],g=a[d];p&&E(p)&&v(g)&&l.set(p,g)}let f=[],u=zl(c,o,f,l);r.__extendsStack=u,r.__extendsNames=f}else{let l=zl(c,o);r.__extendsStack=l}return r.__extendsStack},th=(t,e,n={})=>{let{__ref:r}=t,{__extendsStack:o}=r;if(EO(n)){let s={},i=r.__extendsNames||[],a=Vl(o,s,i),c={};Hn(t,a,c,void 0,s),r.__sourcemap=c}else{let s=Vl(o);Hn(t,s)}return t},AO=(t,e,n={})=>(Yp(t,e,n),Qp(t,e,n),th(t,e,n),t)});function zw(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function Hw(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function Ww(t,e,n){let{context:r}=e||{},[o]=ca(n),s=n||o;return r?.components?.[s]||r?.pages?.[s]}var Wn,Vw=D(()=>{"use strict";eh();Wt();Wn=t=>{if(!v(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function CO(t,e){let{props:n,on:r}=e,o=es(t.split("on")[1]),s=r[o],i=n[t];L(s)?r[o]=(...a)=>{if(s(...a)!==!1&&L(i))return i(...a)}:r[o]=i}var TO=D(()=>{"use strict";Al();Wt()});function nh(t,e={}){let n=e.cachedKeys||[];for(let r in t){let o=t[r];if(r.length>2&&r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r[2]===r[2].toUpperCase()&&(L(o)||o!=null&&ra(this.context))){let g=es(r.slice(2));t.on&&(t.on[g]=o),delete t[r];continue}if(r==="childProps"){t.props[r]=o,delete t[r],n.push(r);continue}let a=this.define?.[r],c=this.context?.define?.[r],l=E(a)||L(a),f=E(c)||L(c);if(l||f)continue;let u=r.charAt(0);if(RO.has(u)){t.props[r]=o,delete t[r],n.push(r);continue}let d=Kw.test(r)||OO.test(r)||d5(o),p=to.has(r);!d&&!p&&(r in t.props||(t.props[r]=o),delete t[r],n.push(r))}return t}function rh(t=this,e){let n=e.cachedKeys||[];for(let r in t.props){let o=t.props[r],s=r.length>2&&r.charCodeAt(0)===111&&r.charCodeAt(1)===110,i=L(o)||o!=null&&ra(this.context);if(s&&i){CO(r,t),delete t.props[r];continue}if(n.includes(r)||r==="childProps")continue;let a=r.charAt(0);if(RO.has(a))continue;let c=this.define?.[r],l=this.context?.define?.[r],f=E(c)||L(c),u=E(l)||L(l),d=Kw.test(r)||OO.test(r),p=to.has(r);(d||p||f||u)&&(t[r]===void 0||o===null)&&(t[r]=o,t.props&&delete t.props[r])}return t}function oh(t=this){let e=[];return nh.call(this,t,{cachedKeys:e}),rh.call(this,t,{cachedKeys:e}),t}function qw(t={}){return t.on||(t.on={}),t.props||(t.props={}),oh.call(this,t)}function Yw(t,e){this.__element.update({props:t},e)}function Ql(t){let e={update:Yw.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var Kw,OO,RO,u5,d5,Zl,Yl,Gw,Jl,tf,ef,sh,Xl,Xw,Zw,Jw=D(()=>{"use strict";os();TO();Un();Wt();Al();sa();Kw=/^[A-Z]/,OO=/^\d+$/,RO=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),u5=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),d5=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(u5.has(e)||Kw.test(e))return!0;return!1},Zl=(t,e,n)=>{let{props:r,__ref:o}=t;if(o.__propsStack=[],r)o.__initialProps=r;else return{};return V(r)?{...r}:(o.__propsStack.push(r),{})};Yl=t=>ye(t)("string","number")?{inheritedString:t}:t,Gw=(t,e)=>!t||!e.length?!1:e.includes(t),Jl=(t,e)=>{let{__ref:n}=t,r=n.__propsStack||[],o=e.props;if(!o)return r;let s=o[t.key],i=o.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=Yl(i);r.unshift(c)}if(s){let c=Yl(s);r.unshift(c)}return r};tf=t=>{let e=new Set;return t.filter(n=>!n||eo.has(n)||e.has(n)?!1:(e.add(n),!0))},ef=(t,e,n)=>(e.props=t.reduce((r,o)=>{if(eo.has(o))return r;for(;L(o);)o=St(o,e);return bt(r,pt(o,{exclude:eo}))},{}),Ql(e),e.props),sh=(t,e)=>{let{props:n,__ref:r}=t,o=r.__propsStack||[];if(e?.props&&(o=[...Jl(t,e)]),E(n)?o.push(n):n==="inherit"&&e?.props?o.push(e.props):n&&o.push(n),I(r.__extendsStack))for(let s=0;s<r.__extendsStack.length;s++){let i=r.__extendsStack[s];i.props&&i.props!==n&&o.push(i.props)}return r.__propsStack=tf(o),r.__propsStack},Xl=(t,e)=>{let{__ref:n}=t,r=sh(t,e);r.length?ef(r,t):(n.__propsStack=[],t.props={})},Xw=function(t,e,n){let{__ref:r}=t;if(r.__if)Xl(t,e);else try{Xl(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",r.path?.join("."),o),t.props={},r.__propsStack=[]}return Ql(t),t},Zw=(t,e,n)=>{let{__ref:r}=e,s=[...r.__propsStack||[]],i=Jl(e,n);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),r.__propsStack=tf(s),r.__propsStack.length&&ef(r.__propsStack,e),e}});var PO,ih,ah,ch,lh,Qw,fh,uh,dh,tS,LO=D(()=>{"use strict";eh();zp();_l();Jw();Mw();Wt();PO="production",ih=(t,e,n)=>{let r=e.childExtends&&e.childExtends.tag,o=e.childProps&&e.childProps.tag,s=ia.body.has(n)&&n;return{text:t,tag:r||o||s||"string"}},ah=(t,e,n)=>{if(t===void 0)return(PO==="test"||PO==="development")&&console.warn(n,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:ye(t)("string","number")?ih(t,e,n):L(t)?{props:t}:t},ch=(t,e)=>{let n={};return n.origin=t,n.parent=e,n},lh=(t,e,n,r,o)=>{if(!e)return o;if(hr(e)){let s={key:":root",node:e};return o[`${n}_parent`]=s,s}return e},Qw=(t,e)=>{let{__ref:n}=t,{__ref:r}=e,o=e&&e.key===":root";n?.root||(n.root=o?t:r?.root)},fh=(t,e,n)=>{let{__ref:r}=e;return r||(r=e.ref={}),r.path||(r.path=[]),r.path.concat(n)},uh=(t,e,n,r,o)=>(r.context&&!o.context&&!t.context&&(o.context=r.context),r.context||e.context||o.context||t.context),dh=(t,e,n)=>{let r=ch(t,e);return t.__ref=r,r.__defineCache||(r.__defineCache={}),r.__exec||(r.__exec={}),r.__execProps||(r.__execProps={}),r.__class||(r.__class={}),r.__classNames||(r.__classNames={}),r.__attr||(r.__attr={}),r.__changes||(r.__changes=[]),r.__children||(r.__children=[]),r.__extends=Hl(t,e,n),r.path=fh(t,e,n),r},tS=(t,e,n,r,o)=>{let i=t?.__hash?{extends:[t]}:ah(t,e,n);if(!i)return;let a=lh(i,e,n,r,o),c=Bl(i,a,n);dh(i,a,c);let l=Zl(i,a,c),f=uh(i,a,c,r,o),u=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:u}}});var eS,ph,hh,gh,mh,nS,yh,rS,oS,sS,bh,DO,p5,NO,io,iS,IO,ao,us,MO,$O,FO,nf,Kn,BO=D(()=>{"use strict";Ji();os();jl();Un();Wt();eS=t=>{let{state:e,props:n,__ref:r}=t,o=n?.state||e;return ye(o)("string","number")?(r.__state=o,{value:o}):o===!0?(r.__state=t.key,{}):o?(r.__hasRootState=!0,o):!1},ph=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},hh=(t,e)=>{if(!t.includes("../"))return;let r=t.split("../").length-1;for(let o=0;o<r;o++){if(!e.parent)return null;e=e.parent}return e},gh=(t,e,n={})=>{let r=v(t)?t.split("/"):[t],o=r.length-1;for(let s=0;s<o;s++){let i=r[s],a=r[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 n.returnParent?e:e[t]},mh=(t,e,n={})=>{let o=t.__ref.__state;if(!yh(t))return;let s=ph(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=hh(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return gh(o,i,n)},nS=(t,e)=>{let n=t.__ref,r=mh(t,e);if(r===void 0)return t.state;if(ye(r)("object","array"))return pt(r);if(ye(r)("string","number","boolean"))return n.__stateType=typeof r,{value:r};console.warn(n.__state,"is not present. Replacing with",{})},yh=t=>{let{__ref:e}=t,n=e?.__state;return!!(n&&ye(n)("number","string","boolean"))},rS=function(t){return V(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},oS=(t,e)=>{if(!t)return e||{};let n=t.split("/"),r={},o=r,s=n.length-1;for(let i=0;i<=s;i++)o[n[i]]=i===s?e||{}:{},o=o[n[i]];return r},sS=(t,e)=>{let{__element:n}=e,r=n?.state;if(!r)return;let o=pt(r,ns),s={[t.key]:o},i=E(r.__depends)?{...r.__depends,...s}:s;return Array.isArray(r)?kl(r,{...Object.getPrototypeOf(r),__depends:i}):Object.setPrototypeOf(r,{...Object.getPrototypeOf(r),__depends:i}),o},bh=new Set(["parent","root"]),DO=new Set,p5=t=>{DO.has(t)||(DO.add(t),tt()&&console.warn(`[smbls/state] the declared state key "${t}" names a state bookkeeping slot (parent / root) and was NOT copied into the state. Rename the key (e.g. "`+t.split(".").pop()+'Data").'))},NO=(t,e,n,r)=>{if(t===e)return t;for(let o=0;o<r.length;o+=2)if(r[o]===t&&r[o+1]===e)return t;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||o.charCodeAt(0)===95&&o.charCodeAt(1)===95||o==="constructor"||o==="prototype")continue;let s=n?n+"."+o:o;if(bh.has(o)){p5(s);continue}let i=t[o],a=e[o];V(i)&&V(a)?(r.push(t,e),NO(i,a,s,r),r.length-=2):i===void 0&&(t[o]=a)}return t},io=(t,e)=>!V(t)||!V(e)?t:NO(t,e,"",[]),iS=(t,e,n={})=>{let{overwrite:r}=n;if(!r)return;let o=r==="shallow";if(r==="merge"){bt(t,e,ns);return}(o?fs:ie)(t,e,ns)},IO="__polyglotSeededKeys",ao=t=>{if(!E(t))return new Set;let e=t[IO];if(!(e instanceof Set)){e=new Set;try{Object.defineProperty(t,IO,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},us=(t,e,n)=>ao(t).has(e)?!0:!E(n)||n[e]===void 0,MO="__polyglotSeededValues",$O=t=>{if(!E(t))return new Map;let e=t[MO];if(!(e instanceof Map)){e=new Map;try{Object.defineProperty(t,MO,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},FO=t=>{if(t===null||typeof t!="object")return typeof t+":"+String(t);try{return"json:"+JSON.stringify(t)}catch{return null}},nf=(t,e,n)=>{if(!ao(t).has(e))return!1;let r=$O(t);if(!r.has(e))return!0;let o=E(n)||Array.isArray(n)?n[e]:void 0,s=FO(o);return s!==null&&s===r.get(e)},Kn=(t,e,...n)=>(ao(t).add(e),n.length&&$O(t).set(e,FO(n[0])),e)});var h5,aS,jO=D(()=>{"use strict";h5=(t,e)=>{let n=e;for(;n;){if(n===t)return!0;n=Object.getPrototypeOf(n)}return!1},aS=(t,e)=>{let{__ref:n}=t,r=t.context||e.context||n.root?.context;r&&!r.globalScope&&(r.globalScope={});let o=e.scope||n.root?.scope,s=r?.globalScope;if(!t.scope)o?t.scope=o:s?t.scope=Object.create(s):t.scope={};else if(typeof t.scope=="object"&&t.scope!==null&&Object.getPrototypeOf(t.scope)===Object.prototype){let i=o||s;i&&!h5(t.scope,i)&&Object.setPrototypeOf(t.scope,i)}}});var UO,_h,mr,wh,cS,lS=D(()=>{"use strict";Wt();sa();UO=(t,e)=>{let n="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[n]},_h=(t,e,n,r,o)=>{if(t=oa(t,e),!!L(t))try{let s=t.call(e,e,n||e.state,r||e.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{e.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(e.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),e.context?.strictMode)throw s}},mr=(t,e,n)=>{if(!e)throw new Error("Element is required");so(t,e,n);let r=UO(t,e);if(r){let{state:o,context:s}=e;return _h(r,e,o,s,n)}},wh=(t,e,n,r,o,s)=>{if(t=oa(t,n),!!L(t))try{let i=t.call(n,e,n,r||n.state,o||n.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{n.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(n.error=i,console.error("[DOMQL] Event update error:",i),n.context?.strictMode)throw i}},cS=(t,e,n,r)=>{so(t,n,e,r);let o=UO(t,n);if(o){let{state:s,context:i}=n;return wh(o,e,n,s,i,r)}}});var fS,rf,uS=D(()=>{"use strict";fS={},rf={}});var co,dS=D(()=>{"use strict";co=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 n=parseInt(e[1]),r=e[2];return r==="ms"?n:r==="s"?n*1e3:r==="m"?n*6e4:r==="h"?n*36e5:0}});var lo,ps,hs,pS,qn,hS,VO,zO,gS,mS,HO,of,WO,g5,yS,m5,bS,ds,KO,Sh,_S,qO,GO,YO,fa=D(()=>{"use strict";M();dS();lo="@symbo.ls/fetch:EARLY",ps=3e4,hs=(t,e)=>{let n=new URL(t);return n.searchParams.sort(),n.toString()+" "+(e||"")},pS=t=>{if(t==null)return!0;if(typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);if(e!==Object.prototype&&e!==null)return!1;for(let n in t){let r=t[n];if(!(r===void 0||typeof r=="string"||typeof r=="boolean")&&!(typeof r=="number"&&isFinite(r)))return!1}return!0},qn=()=>Symbol.for(lo),hS=(t,e)=>{let n=[];for(let r in t||{}){let o=r.toLowerCase(),s={name:r,header:o,param:t[r],found:!1,value:void 0};for(let i in e||{})i.toLowerCase()===o&&(s.found=!0,s.value=e[i]);n.push(s)}return n},VO=(t,e)=>{if(!t||typeof t!="object"||!e||typeof e!="object")return t;let n={...t};return n.query===void 0&&e.query!==void 0&&(n.query=e.query),n.rpc===void 0&&e.rpc!==void 0&&(n.rpc=e.rpc),n},zO=(t,e,n)=>{let r=qn();if(g5(n),!t||typeof t!="object"){let i=globalThis[r];return i&&i.seeded?{carried:{},rpc:!1,maxAge:ps,seeded:!0}:null}globalThis[r]||(globalThis[r]={entries:{}});let o={};for(let{header:i,found:a,value:c}of hS(t.query,e))a&&(o[i]=c);let s=typeof t.maxAge=="number"&&t.maxAge>=0?t.maxAge:ps;return{carried:o,rpc:t.rpc==="get",maxAge:s,seeded:!!globalThis[r].seeded}},gS=(t,e=ps,n)=>{let r=globalThis[qn()],o=r&&r.entries&&r.entries[t];return!o||(delete r.entries[t],!(Date.now()-o.time<=e))?null:o.seeded?(r.stale&&n&&(o.seeded.taken=bS(r,t,n())),Promise.resolve(o.seeded)):Promise.resolve(o.answer).then(s=>s&&s.ok&&!s.bodyUsed?s:null,()=>null)},mS=()=>{let t=globalThis[qn()];t&&t.entries&&(t.entries={})},HO=t=>(Array.isArray(t)?t:[]).filter(e=>e&&typeof e.url=="string"&&typeof e.body=="string").map(e=>({k:hs(e.url,e.lang||""),s:e.status||200,t:e.type||"application/json",b:e.body})),of='script[type="application/json"][data-fetch-seed]',WO=t=>{let e=HO(t);return e.length?'<script type="application/json" data-fetch-seed>'+gs(e)+"<\/script>":""},g5=t=>{let e=Gn(globalThis.document,of,{remove:!0}),n=t===!1?null:e&&e.value;if(!Array.isArray(n)||!n.length){let c=globalThis[qn()];c&&c.stale||(ds=null);return}let r=qn(),o=globalThis[r]||(globalThis[r]={entries:{}});o.entries||(o.entries={}),o.seeded=!0;let s=Date.now();for(let c of n)!c||typeof c.k!="string"||typeof c.b!="string"||o.entries[c.k]||(o.entries[c.k]={time:s,seeded:{seeded:!0,status:c.s||200,type:c.t||"application/json",body:c.b}});let i=ms(globalThis.document)||{stamp:null,time:null},a=m5(t,i.stamp,i.time);a?(o.stale=a,o.seedConfig=t&&typeof t=="object"?t:null):ds=null},yS="data-smbls-stale",m5=(t,e,n)=>{let r=globalThis.document&&globalThis.document.documentElement;if(r&&typeof r.hasAttribute=="function"&&r.hasAttribute(yS))return!0;if(!t||typeof t!="object")return!1;if(t.maxAge!=null&&n!==null){let o=co(t.maxAge);if(o>0&&Date.now()-n>o)return!0}if(typeof t.isStale!="function")return!1;try{let o=t.isStale(e,{time:n});return o&&typeof o.then=="function"?Promise.resolve(o).then(Boolean,()=>!1):!!o}catch{return!1}},bS=(t,e,n)=>{let r={key:e,again:n,result:null,cacheKey:null};if((t.taken||(t.taken=[])).push(r),ds){let o=ds;ds=null;for(let s of o)try{s()}catch{}}return r},ds=null,KO=t=>{let e=globalThis[qn()];return e&&e.seeded&&!e.stale||e&&e.stale&&e.revalidated?!1:e&&e.stale&&e.taken&&e.taken.length?(t(),!0):((ds||(ds=new Set)).add(t),!0)},Sh=(t,e)=>{let n=globalThis[qn()];!n||!t||typeof t!="object"||(e.result=t,(n.results||(n.results=new WeakMap)).set(t,e))},_S=(t,e)=>{let n=globalThis[qn()],r=n&&n.results&&t?n.results.get(t):null;r&&(r.cacheKey=e)},qO=()=>{let t=globalThis[qn()];return!!(t&&t.stale&&!t.revalidated)},GO=async()=>{let t=globalThis[qn()];if(!t||!t.stale||t.revalidated)return null;t.revalidated=!0;let e=await t.stale,n=t.taken||[];return t.taken=[],t.results=null,e?{taken:n,config:t.seedConfig||{}}:null},YO=t=>{let e=HO(t);if(!e.length)return"";let n=gs(e);return"<script>(function(){try{var k=Symbol.for("+JSON.stringify(lo)+"),r=globalThis[k]||(globalThis[k]={entries:{}}),t=Date.now(),l="+n+';r.seeded=true;r.entries=r.entries||{};for(var i=0;i<l.length;i++){var e=l[i];r.entries[e.k]={time:t,answer:Promise.resolve(new Response(e.b,{status:e.s,headers:{"content-type":e.t}}))}}}catch(e){}})()<\/script>'}});var XO,ZO,JO,wS=D(()=>{"use strict";fa();XO=()=>globalThis[Symbol.for(lo)],ZO=(t,e=ps,n,r)=>{let o=XO(),s=o&&o.entries&&o.entries[t];if(!s||!s.seeded||!(Date.now()-s.time<=e))return null;let i=r(s.seeded);return i?(delete o.entries[t],o.stale&&n&&Sh(i,bS(o,t,n())),i):null},JO=()=>{let t=XO();if(t&&t.seeded){for(let n in t.entries)if(t.entries[n]&&t.entries[n].seeded)return!0;return!1}let e=globalThis.document;return!!(e&&typeof e.querySelector=="function"&&e.querySelector(of))}});var QO,xh,t1,e1,n1,r1,SS=D(()=>{"use strict";QO=Symbol.for("@symbo.ls/fetch:IN_FLIGHT"),xh=()=>globalThis[QO]||(globalThis[QO]={count:0,waiters:[]}),t1=()=>{xh().count++},e1=()=>{let t=xh();if(t.count=t.count>0?t.count-1:0,t.count===0&&t.waiters.length){let e=t.waiters;t.waiters=[];for(let n of e)n()}},n1=()=>xh().count,r1=()=>{let t=xh();return t.count===0?Promise.resolve():new Promise(e=>{t.waiters.push(e)})}});var y5,o1,s1=D(()=>{"use strict";fa();y5=(t,e)=>{let n=new URL(t);return n.searchParams.delete("limit"),n.searchParams.sort(),n.toString()+" "+(e||"")},o1=(t,e,n,r=ps)=>{let o=globalThis[Symbol.for(lo)],s=o&&o.slices&&o.slices[y5(t,e)];if(!s||!(n>0))return null;for(let i=0;i<s.length;i++){let a=s[i],c=o.entries&&o.entries[a];if(!(!c||!(c.limit>=n)))return s.splice(i,1),delete o.entries[a],Date.now()-c.time<=r?Promise.resolve(c.answer).then(l=>{if(!l||!l.ok||l.bodyUsed)return null;let f=l.headers&&l.headers.get("content-type")||"application/json";return l.json().then(u=>Array.isArray(u)?{seeded:!0,status:l.status,type:f,body:JSON.stringify(u.slice(0,n))}:null)}).catch(()=>null):null}return null}});var vS={};F(vS,{buildUrl:()=>sf,headerEntries:()=>f1,restAdapter:()=>kh,selectQuery:()=>kS,setup:()=>C5,withQuery:()=>af});var sf,kS,a1,ES,b5,_5,w5,i1,c1,Je,l1,S5,x5,f1,xS,k5,E5,v5,A5,af,C5,kh,u1=D(()=>{"use strict";fa();wS();SS();s1();sf=(t,e,n)=>{let r=e&&!e.startsWith("/")?"/":"",o=new URL(`${t}${r}${e}`);if(n)for(let s in n){let i=n[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},kS=({params:t,select:e,limit:n,offset:r,order:o,single:s})=>{let i={...t};return e&&(i.select=e),n&&(i.limit=n),r&&(i.offset=r),s&&(i.single=!0),o&&(typeof o=="string"?i.order=o:Array.isArray(o)?i.order=o.map(a=>`${a.by}:${a.asc===!1?"desc":"asc"}`).join(","):o.by&&(i.order=`${o.by}:${o.asc===!1?"desc":"asc"}`)),i},a1=t=>Object.prototype.toString.call(t).slice(8,-1),ES=["auto","json","text","blob","arrayBuffer","stream","response"],b5={json:async t=>{let e=await t.text();return e?JSON.parse(e):null},text:t=>t.text(),blob:t=>t.blob(),arrayBuffer:t=>t.arrayBuffer(),stream:t=>t.body,response:t=>t},_5=t=>{let e=t.headers.get("content-type");return e&&e.includes("json")?t.json():t.text()},w5=async t=>{let e=await t.text(),n=t.headers.get("content-type");if(e&&n&&n.includes("json"))try{return JSON.parse(e)}catch{}return e},i1=(t,e)=>t?.message||t?.error||e.statusText||`HTTP ${e.status}`,c1=(t,e)=>{let n=t.body,r=e==="json"||e==="auto"&&/json/i.test(t.type);if(!r&&e!=="auto"&&e!=="text")return null;let o;try{o=r?n?JSON.parse(n):null:n}catch{return!1}return{data:o,error:null,status:t.status}},Je=async(t,e,n,r)=>{let o=n??"auto";if(!ES.includes(o))throw new TypeError(`@symbo.ls/fetch rest: unknown responseType "${o}" \u2014 use one of: ${ES.join(", ")}`);t1();try{return await l1(t,e,o,r)}finally{e1()}},l1=async(t,e,n,r)=>{let o=r?await r:null;if(o&&o.seeded===!0){let i=c1(o,n);if(o.taken&&i!==!1){let a=i||await l1(t,e,n,Promise.resolve(new Response(o.body,{status:o.status,headers:{"content-type":o.type}})));return Sh(a,o.taken),a}if(i)return i;o=i===!1?null:new Response(o.body,{status:o.status,headers:{"content-type":o.type}})}let s=o||await globalThis.fetch(t,e);if(n==="auto"){let i=await _5(s);return{data:i,error:s.ok?null:i1(i,s),status:s.status}}if(!s.ok){let i=await w5(n==="response"?s.clone():s);return{data:n==="response"?s:i,error:i1(i,s),status:s.status}}return{data:await b5[n](s),error:null,status:s.status}},S5=["FormData","Blob","File","URLSearchParams","ReadableStream","ArrayBuffer"],x5=t=>t!==null&&typeof t=="object"&&(ArrayBuffer.isView(t)||S5.includes(a1(t))),f1=t=>Array.isArray(t)?t:typeof t.entries=="function"?t.entries():Object.entries(t),xS=(...t)=>{let e={},n=new Map;for(let r of t)if(r)for(let[o,s]of f1(r)){let i=o.toLowerCase();if(n.has(i)&&delete e[n.get(i)],s==null){n.delete(i);continue}n.set(i,o),e[o]=s}return e},k5={"Content-Type":"application/json"},E5={"Content-Type":void 0},v5=t=>{if(!t||typeof t!="object")return null;let e={};for(let{header:n,param:r}of hS(t.query))e[n]=r;return{params:e,rpc:t.rpc==="get"}},A5="content-type",af=(t,e)=>{let n=Object.keys(e);if(!n.length)return t;let r=new URL(t);for(let o of n)r.searchParams.set(o,e[o]);return r.toString()},C5=async({url:t,headers:e,auth:n,fetchOptions:r,early:o,reads:s,seed:i})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return kh(t,e,n,r,o,s,i)},kh=(t,e={},n,r={},o,s,i)=>{let a=n?.token||null,c=zO(VO(o,s),e,i),l=v5(s),f=_=>{if(!l)return null;let b={},w={},S={};for(let A in _){let T=A.toLowerCase();if(T==="authorization")return null;if(T===A5)continue;w[A]=_[A];let O=l.params[T];O?S[O]=_[A]:b[A]=_[A]}return{headers:b,adoptHeaders:w,query:S}},u=(_,b,w)=>{if(!c)return null;let S="";for(let A in b){let T=A.toLowerCase();if(T==="accept-language")S=String(b[A]);else if(c.carried[T]!==b[A])return null}try{let A=_();return gS(hs(A,S),c.maxAge)||(w>0?o1(A,S,w,c.maxAge):null)}catch{return null}},d=(_,b,w,S,A,T,O)=>{if(!c||!c.seeded)return null;let B="";for(let $ in b){let N=$.toLowerCase();if(N==="accept-language")B=String(b[$]);else if(N!=="accept")return null}try{return gS(hs(_,B),c.maxAge,()=>g(w,S,A,_,T,O))}catch{return null}},p=(_,b,w,S,A,T,O)=>{if(!c||!c.seeded)return null;let B="";for(let N in b){let G=N.toLowerCase();if(G==="accept-language")B=String(b[N]);else if(G!=="accept")return null}let $=O??"auto";if(!ES.includes($))return null;try{return ZO(hs(_,B),c.maxAge,()=>g(w,S,A,_,T,O),N=>c1(N,$)||null)}catch{return null}},g=(_,b,w,S,A,T)=>({method:_,from:b,params:w,send:()=>Je(S,A,T,null)}),h=()=>a?{Authorization:`Bearer ${a}`}:null,m=_=>xS(e,h(),_),y=_=>({...r,..._}),x=(_,b,w)=>{if(!x5(b))return y({method:_,headers:xS(e,h(),k5,w),body:JSON.stringify(b)});let S={method:_,headers:xS(e,h(),E5,w),body:b};return a1(b)==="ReadableStream"&&(S.duplex="half"),y(S)},k=(_,b)=>{let w=b||t;if(_&&(_.startsWith("http://")||_.startsWith("https://")))return _;let S=_&&!_.startsWith("/")?"/":"";return`${w}${S}${_||""}`};return{name:"rest",setToken:_=>{a=_},getSession:async()=>{if(!n?.sessionUrl)return a?{token:a}:null;let _=await Je(k(n.sessionUrl,n.baseUrl),y({headers:m()}));return _.error?null:_.data},signIn:async _=>{if(!n?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let b=await Je(k(n.signInUrl,n.baseUrl),x("POST",_));return b.data?.token&&(a=b.data.token),b},signOut:async()=>(n?.signOutUrl&&await Je(k(n.signOutUrl,n.baseUrl),y({method:"POST",headers:m()})),a=null,{error:null}),select:({from:_,params:b,select:w,limit:S,offset:A,order:T,single:O,headers:B,baseUrl:$,responseType:N})=>{let G=sf($||t,_||"",kS({params:b,select:w,limit:S,offset:A,order:T,single:O})),Y=!A&&!O&&Number(S)>0?Number(S):0,nt=m(B),ot=f(nt);if(ot){let J=y({headers:ot.headers}),Z=af(G,ot.query);return Je(Z,J,N,d(Z,ot.headers,"select",_,b,J,N)||u(()=>G,ot.adoptHeaders,Y))}let st=y({headers:nt});return Je(G,st,N,d(G,st.headers,"select",_,b,st,N)||u(()=>G,st.headers,Y))},seeded:({method:_,from:b,params:w,select:S,limit:A,offset:T,order:O,single:B,headers:$,baseUrl:N,responseType:G,read:Y})=>{if(!c||!c.seeded)return null;if(_==="select"){let nt=sf(N||t,b||"",kS({params:w,select:S,limit:A,offset:T,order:O,single:B})),ot=m($),st=f(ot);if(st){let Z=y({headers:st.headers});return p(af(nt,st.query),st.headers,"select",b,w,Z,G)}let J=y({headers:ot});return p(nt,J.headers,"select",b,w,J,G)}if(_==="rpc"){if(!(Y===!0&&l&&l.rpc&&pS(w)))return null;let nt=f(m($));if(!nt)return null;let ot;try{ot=sf(N||t,`rpc/${b}`,w)}catch{return null}let st=y({method:"GET",headers:nt.headers});return p(af(ot,nt.query),nt.headers,"rpc",b,w,st,G)}return null},rpc:async({from:_,params:b,headers:w,baseUrl:S,responseType:A,read:T})=>{let O=pS(b),B=()=>sf(S||t,`rpc/${_}`,b),$=J=>Je(k(`rpc/${_}`,S),x("POST",b,w),A,J),N=m(w),G=T===!0&&l&&l.rpc&&O?f(N):null,Y=null;if(G)try{Y=B()}catch{Y=null}if(!Y)return $(c&&c.rpc&&O?u(B,N):null);let nt=y({method:"GET",headers:G.headers}),ot=af(Y,G.query),st=await Je(ot,nt,A,d(ot,G.headers,"rpc",_,b,nt,A)||u(()=>Y,G.adoptHeaders));return st.status===405?$(null):st},insert:({from:_,data:b,headers:w,baseUrl:S,responseType:A})=>Je(k(_,S),x("POST",b,w),A),update:({from:_,data:b,params:w,method:S,headers:A,baseUrl:T,responseType:O})=>{let B=w?.id||b?.id,$=B?`${_}/${B}`:_;return Je(k($,T),x(S||"PATCH",b,A),O)},upsert:({from:_,data:b,params:w,method:S,headers:A,baseUrl:T,responseType:O})=>{let B=w?.id||b?.id,$=B?`${_}/${B}`:_;return Je(k($,T),x(S||"PUT",b,A),O)},delete:({from:_,params:b,headers:w,baseUrl:S,responseType:A})=>{let T=b?.id,O=T?`${_}/${T}`:_;return Je(k(O,S),y({method:"DELETE",headers:m(w)}),A)}}}});var p1={};F(p1,{localAdapter:()=>d1,setup:()=>O5});var Eh,T5,O5,d1,h1=D(()=>{"use strict";Eh=(t,e)=>{if(!e)return!0;for(let n in e){let r=e[n];if(r===null){if(t[n]!==null&&t[n]!==void 0)return!1}else if(Array.isArray(r)){if(!r.includes(t[n]))return!1}else if(typeof r=="object"){for(let o in r)if(o==="gt"&&!(t[n]>r[o])||o==="gte"&&!(t[n]>=r[o])||o==="lt"&&!(t[n]<r[o])||o==="lte"&&!(t[n]<=r[o])||o==="neq"&&t[n]===r[o]||o==="like"&&!String(t[n]).includes(r[o]))return!1}else if(t[n]!==r)return!1}return!0},T5=(t,{order:e,limit:n,offset:r,single:o})=>{let s=[...t];if(e){let i=typeof e=="string"?e:e.by,a=e.asc!==!1;s.sort((c,l)=>c[i]<l[i]?a?-1:1:c[i]>l[i]?a?1:-1:0)}return r&&(s=s.slice(r)),n&&(s=s.slice(0,n)),o?{data:s[0]||null,error:null}:{data:s,error:null}},O5=async({data:t,...e})=>d1(t,e),d1=(t={},e={})=>{let n={},r={},o=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=f=>{if(!n[f])if(o)try{let u=localStorage.getItem(s+f);n[f]=u?JSON.parse(u):t[f]||[]}catch{n[f]=t[f]||[]}else n[f]=t[f]||[];return n[f]},a=f=>{if(o)try{localStorage.setItem(s+f,JSON.stringify(n[f]))}catch{}},c=(f,u,d,p)=>{let g=r[f];if(g)for(let h of g)h(d,p,{event:u,table:f})},l=Date.now();return{name:"local",store:n,select:async({from:f,params:u,...d})=>{let g=i(f).filter(h=>Eh(h,u));return T5(g,d)},insert:async({from:f,data:u})=>{let d=i(f),g=(Array.isArray(u)?u:[u]).map(h=>{let m={id:h.id||++l,...h};return d.push(m),m});a(f);for(let h of g)c(f,"INSERT",h,null);return{data:Array.isArray(u)?g:g[0],error:null}},update:async({from:f,data:u,params:d})=>{let p=i(f),g=[];for(let h=0;h<p.length;h++)if(Eh(p[h],d)){let m={...p[h]};Object.assign(p[h],u),g.push(p[h]),c(f,"UPDATE",p[h],m)}return a(f),{data:g,error:null}},upsert:async({from:f,data:u,params:d})=>{let p=i(f),g=Array.isArray(u)?u:[u],h=[];for(let m of g){let y=d||(m.id!==void 0?{id:m.id}:null),x=y?p.findIndex(k=>Eh(k,y)):-1;if(x>-1){let k={...p[x]};Object.assign(p[x],m),h.push(p[x]),c(f,"UPDATE",p[x],k)}else{let k={id:m.id||++l,...m};p.push(k),h.push(k),c(f,"INSERT",k,null)}}return a(f),{data:Array.isArray(u)?h:h[0],error:null}},delete:async({from:f,params:u})=>{let d=i(f),p=[];for(let g=d.length-1;g>=0;g--)Eh(d[g],u)&&(p.push(d[g]),d.splice(g,1),c(f,"DELETE",null,p[p.length-1]));return a(f),{data:p,error:null}},subscribe:({from:f,on:u},d)=>{r[f]||(r[f]=[]);let p=(g,h,m)=>{u&&u!=="*"&&u!==m.event||d(g,h,m)};return r[f].push(p),()=>{let g=r[f].indexOf(p);g>-1&&r[f].splice(g,1)}}}}});var ga={};F(ga,{EARLY_KEY:()=>lo,SEED_BLOCK:()=>of,STALE_ATTRIBUTE:()=>yS,createAdapter:()=>M5,createEarlySeedBlock:()=>WO,createEarlySeedScript:()=>YO,default:()=>n6,earlyKey:()=>hs,executeFetch:()=>BS,fetchFunctions:()=>J5,fetchPlugin:()=>e6,hasAdapter:()=>I5,initAdapterAuth:()=>Oh,parseDuration:()=>co,queryClient:()=>Z5,registerAdapter:()=>D5,requestsInFlight:()=>n1,resolveDb:()=>S1,revalidateSeed:()=>Q5,seedFromPage:()=>L1,seedIsStale:()=>qO,whenRequestsIdle:()=>r1,whenSeedTaken:()=>KO});var R5,w1,vh,ys,Ah,OS,P5,L5,D5,I5,M5,S1,NS,x1,kn,g1,Qe,Lh,AS,Dh,pa,da,Th,RS,Rh,k1,Ih,E1,N5,Ch,$5,m1,CS,v1,A1,ua,y1,F5,PS,B5,C1,Mh,ha,lf,uf,bs,$S,Oh,FS,En,Yn,cf,df,j5,LS,yr,Ph,DS,br,b1,T1,_r,U5,V5,z5,H5,TS,ff,W5,Nh,O1,IS,MS,R1,P1,K5,q5,G5,Y5,L1,X5,BS,Z5,_1,J5,Q5,t6,e6,n6,$h=D(()=>{"use strict";M();Mt();fa();wS();dS();u1();fa();SS();R5=["select","rpc","insert","update","upsert","delete","subscribe"],w1={rest:()=>Promise.resolve(vS),local:()=>Promise.resolve().then(()=>(h1(),p1))},vh=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),ys=(()=>{if(typeof globalThis<"u"&&globalThis[vh])return globalThis[vh];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,vh,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[vh]}catch{}return t})(),Ah=Symbol.for("@symbo.ls/fetch:PENDING_ADAPTERS"),OS=(()=>{if(typeof globalThis<"u"&&globalThis[Ah])return globalThis[Ah];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Ah,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Ah]}catch{}return t})(),P5=5e3,L5=t=>new Promise(e=>{if(ys[t])return e(ys[t]);let n=OS[t]||=[],r=!1,o=()=>{r||(r=!0,e(ys[t]||null))};n.push(o),setTimeout(o,P5)}),D5=(t,e)=>{ys[t]=e;let n=OS[t];if(n&&n.length){OS[t]=[];for(let r of n)r()}},I5=t=>typeof t=="string"&&!!(ys[t]||w1[t]),M5=t=>{let e={};for(let n of R5)t[n]&&(e[n]=t[n]);return e.name=t.name||"custom",e},S1=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...n}=t,r=typeof e=="string"?e:typeof t=="string"?t:null;if(!r)return null;let o=ys[r]||w1[r];if(!o&&(o=await L5(r),!o))throw new Error(`Unknown db adapter: "${r}". Use registerAdapter() for adapters with optional deps.`);let s=await o();if(!s||typeof s.setup!="function")throw new Error(`Adapter "${r}" loader returned a module without a setup() function. Got keys: [${Object.keys(s||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return s.setup(n)},NS=t=>!!t&&!!t.isolateFetchCache,x1=()=>({cache:new Map,subscribers:new Map,active:new Map,invalidatedAt:new Map,mounted:new Set}),kn=x1(),g1=new WeakMap,Qe=t=>{if(!NS(t))return kn;let e=g1.get(t);return e||g1.set(t,e=x1()),e},Lh=0,AS=new WeakMap,Dh=(t,e,n,r,o=t.page,s=t.cursor)=>{if(t.cache?.key)return t.cache.key;let{from:i,method:a,infinite:c}=t,l=n?`${n}:`:"",f=r?`:${r}`:"",u=o?":p"+JSON.stringify(o):"",d=s!=null?":c"+JSON.stringify(s):"";return`${i}:${a}:${l}${JSON.stringify(e||"")}${c?":infinite":""}${u}${d}${f}`},pa=(t,e)=>t.cache.get(e)||null,da=(t,e,n,r,o=++Lh,s=!1)=>{let i={data:n,error:r,time:Date.now(),stale:s,seq:o};t.cache.set(e,i);let a=t.subscribers.get(e);if(a)for(let c of a)L(c)&&c(i);return i},Th=(t,e,n)=>{let r=e?t.cache.get(e):null;return r&&!r.error&&r.seq>n?r:null},RS=(t,e,n)=>(t.invalidatedAt.get(e)||0)>n,Rh=(t,e)=>{t.invalidatedAt.set(e,++Lh)},k1=(t,e)=>{t.cache.delete(e),Rh(t,e)},Ih=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)}:v(t)?{staleTime:co(t),gcTime:3e5}:{staleTime:co(t.stale||t.staleTime)||6e4,gcTime:co(t.gc||t.gcTime||t.expire)||3e5,key:t.key},E1=t=>!!t.ref&&t.element.__ref===t.ref,N5=({config:t,element:e,context:n})=>{try{return $S(t,e,n)}catch{return null}},Ch=null,$5=()=>{Ch||(Ch=setInterval(()=>{let t=Date.now(),{cache:e,subscribers:n,active:r,invalidatedAt:o,mounted:s}=kn;for(let[i,a]of e){let c=n.get(i);!(c&&c.size>0)&&t-a.time>(a.gcTime||3e5)&&e.delete(i)}for(let[i]of o)!e.has(i)&&!r.has(i)&&o.delete(i);for(let i of s)E1(i)||s.delete(i)},3e4),Ch.unref&&Ch.unref())};$5();m1=3,CS=t=>Math.min(1e3*2**t,3e4),v1=(t,e)=>{let n=t.retry;return n===void 0&&e?{count:0}:n===!1?{count:0}:n===!0||n===void 0?{count:m1,delay:CS}:typeof n=="number"?{count:n,delay:CS}:{count:n.count??m1,delay:L(n.delay)?n.delay:typeof n.delay=="number"?()=>n.delay:CS}},A1=async(t,e)=>{let{count:n,delay:r}=e,o;for(let s=0;s<=n;s++)try{let i=await t();if(i?.error){if(o=i.error,s<n){let a=L(r)?r(s,o):r;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(o=i,s<n){let a=L(r)?r(s,i):r;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},ua={focus:new Set,online:new Set},y1=!1,F5=()=>{if(y1||typeof window>"u")return;y1=!0;let t=()=>{for(let n of ua.focus)n()},e=()=>{for(let n of ua.online)n()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},PS=(t,e)=>{let n=e.__ref;if(t===!0)return{from:n.__state||e.key,method:"select",query:!0,on:"create"};if(v(t))return{from:t,method:"select",query:!0,on:"create"};if(E(t)){let r={...t};return r.from=r.from||n.__state||e.key,r.method=r.method||"select",r.on=r.on||"create",r.query===void 0&&(r.query=!0),r}return null},B5=["insert","update","upsert","delete"],C1=t=>B5.includes(t),Mh=t=>t.mutation===!0?!0:t.mutation===!1||t.method!=="rpc"?!1:t.on==="submit"||t.on==="click"||t.invalidates!=null,ha=(t,e)=>{let n=t?.state?.root||e?.state?.root;if(n?.lang)return n.lang},lf=(t,e)=>{let r=(t?.state?.root||e?.state?.root)?.__fetchScope;return r?String(r):void 0},uf=(t,e,n)=>{let r;if(!t)r=void 0;else if(L(t))r=t(e,e.state);else{r={};for(let o in t){let s=t[o];r[o]=L(s)?s(e,e.state):s}}return r},bs=(t,e)=>L(t)?t(e,e.state):t,$S=(t,e,n)=>Dh(t,uf(t.params,e,n),lf(e,n),ha(e,n),bs(t.page,e),bs(t.cursor,e)),Oh=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let n=(r,o)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:r,session:o,loading:!1}})};try{let r=await t.getSession();n(r?.user||null,r)}catch(r){console.warn("[fetch] Failed to restore auth session:",r.message)}t.onAuthStateChange&&t.onAuthStateChange((r,o)=>{n(o?.user||null,o)})},FS=async(t,e)=>{if(L(t.select))return t.auth!==!1&&await Oh(t,e),t;if(t.__resolved)return t.auth!==!1&&await Oh(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=S1(t);let n=await t.__resolving;return delete t.__resolving,n?(n.auth=t.auth,n.url=t.url,n.key=t.key,t.__resolved=n,e.fetch=n,t.auth!==!1&&await Oh(n,e),n):null},En=(t,e,...n)=>{let r=L(t[e])?t[e]:null;r&&r.call(t,...n,t,t.state,t.context)},Yn=(t,e,n,...r)=>{let o=t&&L(t[n])?t[n]:null;o&&o.call(e,...r,e,e.state,e.context)},cf=t=>{let e={},n=t.node;if(!n)return e;if(n.tagName==="FORM"){let o=new FormData(n);for(let[s,i]of o.entries())e[s]=i;return e}let r=n.querySelectorAll("input, textarea, select");for(let o=0;o<r.length;o++){let s=r[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},df=t=>t.responseType==="stream"||t.responseType==="response",j5=["Blob","File","ArrayBuffer","ReadableStream","Response"],LS=t=>t!==null&&typeof t=="object"&&(ArrayBuffer.isView(t)||j5.includes(Object.prototype.toString.call(t).slice(8,-1))),yr=(t,e,n,r={})=>{if(!n&&LS(e))return;let o=n&&n.startsWith("~/"),s=o&&t.state?.root||t.state;if(s?.update)if(o){let i=n.slice(2);e&&typeof e=="object"&&!Array.isArray(e)&&!LS(e)&&i in e?s.update(e,{preventFetch:!0,...r}):s.update({[i]:e},{preventFetch:!0,...r})}else{let i=n?{[n]:e}:e;s.update(i,{preventFetch:!0,...r})}},Ph=Object.freeze({isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),DS=t=>({isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:t,status:"error",fetchStatus:"idle"}),br=(t,e)=>{let n=t?.__ref;n&&(n.__fetchStatus={...e,isError:!!e.error},n.__fetching=e.isFetching,n.__fetchError=e.error)},b1=(t,e,n)=>{let r=t.__pages&&t.__pages.length?t.__pages:[n];L(e.getNextPageParam)&&(t.__nextPageParam=e.getNextPageParam(r[r.length-1],r),t.__hasNextPage=t.__nextPageParam!=null),L(e.getPreviousPageParam)&&(t.__prevPageParam=e.getPreviousPageParam(r[0],r),t.__hasPreviousPage=t.__prevPageParam!=null)},T1=(t,e,n,r,o,s)=>{let{from:i,single:a,limit:c,offset:l,order:f,headers:u,baseUrl:d,responseType:p}=t,g={from:i,select:e,params:n,single:a,limit:c,offset:l,order:f,headers:u,baseUrl:d};if(p!==void 0&&(g.responseType=p),r&&(g.headers={...g.headers,"Accept-Language":r}),o!==void 0){if(E(o))o.offset!==void 0&&(g.offset=o.offset),o.limit!==void 0&&(g.limit=o.limit),o.cursor!==void 0&&(g.params={...g.params,cursor:o.cursor});else if(typeof o=="number"){let h=t.pageSize||c||20;g.offset=(o-1)*h,g.limit=h}}return s!==void 0&&(g.params={...g.params,cursor:s}),g},_r=async(t,e,n,r={})=>{let o=n?.fetch;if(!o||!e||!e.__ref)return;let s=e.__ref,i=lf(e,n);(!s.__fetchScopeOwner||s.__fetchScopeOwner.scope!==i)&&(s.__fetchScopeOwner={scope:i});let a=s.__fetchScopeOwner,c=()=>e.__ref===s&&s.__fetchScopeOwner===a&&lf(e,n)===i;if(t.enabled===!1||L(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||L(t.skip)&&t.skip(e,e.state))return;let l=await FS(o,n);if(!l||!c())return;let{from:f,method:u,query:d,params:p,cache:g,transform:h,single:m,auth:y,fields:x,as:k,limit:C,offset:_,order:b,headers:w,baseUrl:S,responseType:A,page:T,cursor:O,infinite:B,placeholderData:$,initialData:N,select:G,keepPreviousData:Y}=t,nt=H=>(L(G)&&(H=G(H,e,e.state)),h&&(H=h(H,e,e.state)),H),ot=H=>{br(e,DS(H)),En(e,"onFetchError",H),Yn(t,e,"onFetchError",H)},st=v(G)?G:void 0;if(d&&L(e.getQuery)){let H=e.getQuery(l.name||"paths");H&&(st=H.select||H.length&&H.join(",")||st)}let J=uf(p,e,n),Z=bs(T,e),Q=bs(O,e),it=Mh(t),rt=df(t)||it?null:Ih(g),gt=v1(t,it||C1(u)),q=ha(e,n),W=rt?Dh(t,J,i,q,Z,Q):null,Rt=Qe(n);if(!s.__fetchInitialized&&W&&(s.__fetchInitialized=!0,N!==void 0)){let H=L(N)?N():N;da(Rt,W,H,null)}if((u==="select"||u==="rpc")&&W&&rt&&!r.refresh&&!r.force){let H=pa(Rt,W);if(H&&!H.error){let Tt=Date.now()-H.time,X=H.stale||Tt>(rt.staleTime||0);B&&I(H.data)&&!s.__pages&&(s.__pages=[H.data],b1(s,t,H.data));let at=nt(H.data);if(!c())return;if(!X){br(e,Ph),yr(e,at,k),s.__seededOnCreate===W&&(s.__seededOnCreate=null,En(e,"onFetchComplete",at),Yn(t,e,"onFetchComplete",at));return}yr(e,at,k)}else if($!==void 0){let Tt=L($)?$(e,e.state):$;Tt!==void 0&&yr(e,Tt,k)}}let yt=W&&!r.force?Rt.active.get(W):null;if(yt&&!RS(Rt,W,AS.get(yt)||0)){try{let H=await Promise.race([yt,new Promise((Tt,X)=>setTimeout(()=>X("DEDUP_TIMEOUT"),15e3))]);if(!c())return;if(H?.error)ot(H.error);else if(H?.data!==void 0){let Tt=!B&&Th(Rt,W,AS.get(yt)||0),X=nt(Tt?Tt.data:H.data);if(!c())return;yr(e,X,k),En(e,"onFetchComplete",X),Yn(t,e,"onFetchComplete",X)}}catch(H){if(!c())return;H!=="DEDUP_TIMEOUT"&&ot(H)}return}let jt=!pa(Rt,W)?.data;br(e,{isFetching:!0,isLoading:jt,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),En(e,"onFetchStart"),Yn(t,e,"onFetchStart");let Ct=n?.analyze?.emitNetwork,Pt=Ct?typeof performance<"u"?performance.now():Date.now():0;Ct&&Ct({phase:"start",mode:"query",from:f,method:u,cacheKey:W,lang:q});let Ge=async()=>{if(!c())return;if(y!==!1&&l.auth!==!1&&l.getSession){let X=await l.getSession();if(!c())return;if(y===!0&&!X){let at={message:"Not authenticated"};return ot(at),{data:null,error:at}}}let H=l[u];if(!L(H))return{data:null,error:{message:`Method "${u}" not found on adapter`}};let Tt=T1(t,st,J,ha(e,n),Z,Q);if(u==="insert"||u==="update"||u==="upsert"){let X;if(x===!0||t.on==="submit")X=cf(e);else if(I(x)){let at=cf(e);X={};for(let Ye of x)X[Ye]=at[Ye]}else e.state?.parse?X=e.state.parse():E(e.state)&&(X={...e.state});h&&(X=h(X,e,e.state)),Tt.data=X}if(u==="rpc"){let X=J;if(t.on==="submit"){let at=cf(e);X=t.transformParams?t.transformParams(at,e,e.state):at}Tt.params=X,Tt.read=!it&&t.read!==!1}if(u==="subscribe"){if(L(s.__unsubscribe)){let at=s.__unsubscribe;s.__unsubscribe=null;try{at()}catch{}}let X=l.subscribe({from:f,params:J,on:t.subscribeOn},(at,Ye,e_)=>{c()&&(yr(e,at,k),En(e,"onFetchComplete",at),Yn(t,e,"onFetchComplete",at))});return c()?(s.__unsubscribe=X,{data:null,error:null,subscribed:!0}):(L(X)&&X(),{data:null,error:null,subscribed:!0})}return H(Tt)},It=++Lh,De=A1(Ge,gt);AS.set(De,It),W&&Rt.active.set(W,De);try{let H=await De;if(W&&H&&!it&&_S(H,W),it&&t.invalidates&&H&&!H.error&&!H.subscribed&&O1(Rt,t.invalidates,f),!c()||H?.subscribed)return;let{data:Tt,error:X}=H||{};if(X){W&&!Th(Rt,W,It)&&da(Rt,W,null,X,It),ot(X),Ct&&Ct({phase:"error",mode:"query",from:f,method:u,cacheKey:W,error:X.message||X,durationMs:(typeof performance<"u"?performance.now():Date.now())-Pt});return}if(Tt!==void 0){let at=Tt;if((u==="select"||u==="rpc")&&W){let e_=!B&&Th(Rt,W,It);if(e_)at=e_.data;else{let i4=da(Rt,W,Tt,null,It,RS(Rt,W,It));i4.gcTime=rt?.gcTime||3e5}}let Ye=at;if(B&&I(Tt)&&((!s.__pages||!r.direction)&&(s.__pages=[]),r.direction==="previous"?s.__pages.unshift(Tt):s.__pages.push(Tt),Ye=s.__pages.flat(),b1(s,t,Tt)),Ye=nt(Ye),!c())return;br(e,Ph),(!Y||Ye!==void 0)&&yr(e,Ye,k),En(e,"onFetchComplete",Ye),Yn(t,e,"onFetchComplete",Ye),Ct&&Ct({phase:"success",mode:"query",ok:!0,from:f,method:u,cacheKey:W,durationMs:(typeof performance<"u"?performance.now():Date.now())-Pt})}}catch(H){if(!c())return;ot(H),Ct&&Ct({phase:"error",mode:"query",from:f,method:u,cacheKey:W,error:H.message||String(H),durationMs:(typeof performance<"u"?performance.now():Date.now())-Pt})}finally{W&&Rt.active.get(W)===De&&Rt.active.delete(W)}},U5=(t,e,n)=>{let r=t.on,o=e.__ref;if(!o)return;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||_r;if(r==="submit"){let i=c=>{c.preventDefault(),s(t,e,n)},a=e.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(r==="click"){let i=()=>s(t,e,n),a=e.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else r==="stateChange"&&V5(t,e,n,s)},V5=(t,e,n,r)=>{let o=e.__ref,s,i=K(()=>{let a;try{a=JSON.stringify([uf(t.params,e,n)??null,L(t.enabled)?!!t.enabled(e,e.state):t.enabled!==!1,L(t.skip)?!!t.skip(e,e.state):t.skip===!0,bs(t.page,e)??null])}catch{return}if(s===void 0){s=a;return}a!==s&&(s=a,queueMicrotask(()=>r(t,e,n)))});Array.isArray(o.__effects)?o.__effects.push(i):o.__fetchListeners.push(()=>i.dispose())},z5=(t,e,n)=>{let r=e.__ref;r.__fetchCleanups||(r.__fetchCleanups=[]),F5();let o=t.refetchInterval;if(o){let c=typeof o=="number"?o:co(o);if(c>0){let l=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&_r(t,e,n,{force:!0})},c);r.__fetchCleanups.push(()=>clearInterval(l))}}let s=df(t),i=t.refetchOnWindowFocus===void 0?!s:t.refetchOnWindowFocus!==!1,a=t.refetchOnReconnect===void 0?!s:t.refetchOnReconnect!==!1;if(i){let c=()=>{let l=$S(t,e,n),f=pa(Qe(n),l),u=Ih(t.cache);(!f||f.stale||Date.now()-f.time>(u?.staleTime||0))&&_r(t,e,n,{force:!0})};ua.focus.add(c),r.__fetchCleanups.push(()=>ua.focus.delete(c))}if(a){let c=()=>_r(t,e,n,{force:!0});ua.online.add(c),r.__fetchCleanups.push(()=>ua.online.delete(c))}},H5=(t,e,n)=>{if(!e.optimistic)return null;let r=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():E(t.state)?{...t.state}:t.state;r.__optimisticSnapshot=s;let i=L(e.optimistic)?e.optimistic(n,s,t):e.optimistic;return i!==void 0&&yr(t,i,o),s},TS=(t,e)=>{let n=t.__ref;if(!n||!e.optimistic)return;let r=n.__optimisticSnapshot;r!==void 0&&(yr(t,r,e.as),delete n.__optimisticSnapshot)},ff=t=>{if(!t)return()=>!0;if(v(t))return e=>e.includes(t);if(I(t)){let e=t.join(":");return n=>n.includes(e)}return t instanceof RegExp?e=>(t.lastIndex=0,t.test(e)):L(t)?e=>{try{return!!t(e)}catch{return!1}}:()=>!1},W5=(t,e)=>{let n=[];for(let r of t.mounted){if(!E1(r)){t.mounted.delete(r);continue}let o=N5(r);o&&e(o)&&n.push(_r(r.config,r.element,r.context,{refresh:!0}))}return Promise.allSettled(n).then(()=>{})},Nh=(t,e)=>{mS();for(let[n,r]of t.cache)e(n)&&(r.stale=!0,Rh(t,n));for(let[n]of t.active)!t.cache.has(n)&&e(n)&&Rh(t,n);return W5(t,e)},O1=(t,e,n)=>{let r=(I(e)?e:[e]).map(o=>o===!0||o==="*"?s=>s.startsWith(n+":"):o?ff(o):()=>!1);return Nh(t,o=>r.some(s=>s(o)))},IS=(t,e)=>{for(let[n]of t.cache)e(n)&&k1(t,n);for(let[n]of t.active)e(n)&&Rh(t,n)},MS=()=>!0,R1=(t,e)=>pa(t,e)?.data??void 0,P1=(t,e,n)=>{let r=pa(t,e),o=L(n)?n(r?.data):n;da(t,e,o,null)},K5=async(t,e,n)=>{let r=n?.fetch;if(!r)return;let o=await FS(r,n);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:u,auth:d,headers:p,baseUrl:g,responseType:h,invalidates:m,optimistic:y,onMutate:x,onSuccess:k,onError:C,onSettled:_}=t,b;if(c===!0||u==="submit")b=cf(e);else if(I(c)){let T=cf(e);b={};for(let O of c)b[O]=T[O]}else e.state?.parse?b=e.state.parse():E(e.state)&&(b={...e.state});l&&(b=l(b,e,e.state)),L(x)&&x(b,e,e.state);let w=y?H5(e,t,b):null;br(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),En(e,"onFetchStart"),Yn(t,e,"onFetchStart");let S=n?.analyze?.emitNetwork,A=S?typeof performance<"u"?performance.now():Date.now():0;S&&S({phase:"start",mode:"mutation",from:a,method:i});try{if(d!==!1&&o.auth!==!1&&o.getSession){let nt=await o.getSession();if(d===!0&&!nt){w!==void 0&&TS(e,t);let ot={message:"Not authenticated"};En(e,"onFetchError",ot),Yn(t,e,"onFetchError",ot);return}}let T=o[i];if(!L(T))return;let O={from:a,data:b,headers:p,baseUrl:g};h!==void 0&&(O.responseType=h),t.params&&(O.params=uf(t.params,e,n));let B=ha(e,n);B&&(O.headers={...O.headers,"Accept-Language":B});let $=v1(t,!0),N=await A1(()=>T(O),$),{data:G,error:Y}=N||{};if(Y){w!==void 0&&TS(e,t),br(e,DS(Y)),En(e,"onFetchError",Y),L(C)&&C(Y,b,e),L(_)&&_(null,Y,b,e),S&&S({phase:"error",mode:"mutation",from:a,method:i,error:Y.message||String(Y),durationMs:(typeof performance<"u"?performance.now():Date.now())-A});return}if(delete s.__optimisticSnapshot,br(e,Ph),G!==void 0&&(f||!LS(G))){let nt=f?{[f]:G}:G;e.state?.update&&e.state.update(nt,{preventFetch:!0})}En(e,"onFetchComplete",G),Yn(t,e,"onFetchComplete",G),L(k)&&k(G,b,e),L(_)&&_(G,null,b,e),S&&S({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-A}),m&&O1(Qe(n),m,a)}catch(T){w!==void 0&&TS(e,t),br(e,DS(T)),En(e,"onFetchError",T),Yn(t,e,"onFetchError",T),L(C)&&C(T,b,e),L(_)&&_(null,T,b,e),S&&S({phase:"error",mode:"mutation",from:a,method:i,error:T.message||String(T),durationMs:(typeof performance<"u"?performance.now():Date.now())-A})}finally{s.__fetching=!1}},q5=t=>{let e=n=>{try{n()}catch{}};for(let n of t.__fetchCleanups||[])e(n);for(let n of t.__fetchListeners||[])e(n);L(t.__unsubscribe)&&e(t.__unsubscribe);for(let n of t.__fetchMounted||[])Qe(n.context).mounted.delete(n);t.__fetchCleanups=[],t.__fetchListeners=[],t.__unsubscribe=null,t.__fetchMounted=[]},G5=(t,e)=>{if(!t)return null;if(L(t.select))return t;if(t.__resolved)return t.__resolved;if(t.__resolving)return null;let n=typeof t.adapter=="string"?t.adapter:null;if(n!=="rest"||ys[n]||!t.url)return null;let{adapter:r,...o}=t,s=kh(o.url,o.headers,o.auth,o.fetchOptions,o.early,o.reads,o.seed);return s.auth=t.auth,s.url=t.url,s.key=t.key,t.__resolved=s,e.fetch=s,s},Y5=t=>t.on==="create"&&(t.method==="select"||t.method==="rpc")&&!Mh(t)&&!t.infinite&&!df(t),L1=t=>{let e=t&&t.context;if(!e||!e.fetch||NS(e))return;let n=t.__ref;if(!n||!t.fetch||!JO())return;let r;try{r=St(t.fetch,t)}catch{return}if(!r)return;let o=I(r)?r:[r];for(let s of o){let i;try{i=PS(St(s,t),t)}catch{continue}if(!i||!Y5(i)||i.enabled===!1||i.skip===!0)continue;try{if(L(i.enabled)&&!i.enabled(t,t.state)||L(i.skip)&&i.skip(t,t.state))continue}catch{continue}let a=Ih(i.cache);if(!a)continue;let c=G5(e.fetch,e);if(!c||!L(c.seeded))return;X5(i,a,c,t,e,n)}},X5=(t,e,n,r,o,s)=>{let i=v(t.select)?t.select:void 0,a,c,l,f,u;try{if(t.query&&L(r.getQuery)){let x=r.getQuery(n.name||"paths");x&&(i=x.select||x.length&&x.join(",")||i)}a=uf(t.params,r,o),c=bs(t.page,r),l=bs(t.cursor,r);let y=ha(r,o);f=Dh(t,a,lf(r,o),y,c,l),u=T1(t,i,a,y,c,l)}catch{return}let d=Qe(o),p=pa(d,f);if(p&&!p.error)return;t.method==="rpc"&&(u.read=t.read!==!1);let g=n.seeded({method:t.method,...u});if(!g||g.error||g.data===void 0)return;let h=da(d,f,g.data,null);h.gcTime=e.gcTime||3e5,_S(g,f),s.__fetchInitialized=!0;let m=g.data;try{L(t.select)&&(m=t.select(m,r,r.state)),t.transform&&(m=t.transform(m,r,r.state))}catch{return}br(r,Ph),yr(r,m,t.as),s.__seededOnCreate=f},BS=(t,e,n,r)=>{if(!t||!r?.fetch)return;let s=St(t,e);if(!s)return;let i=I(s)?s.map(f=>PS(St(f,e),e)).filter(Boolean):[PS(s,e)].filter(Boolean),a=e.__ref,c=Qe(r);if(a.__fetchMounted)for(let f of a.__fetchMounted)c.mounted.delete(f);a.__fetchMounted=[],!a.__fetchDisposer&&I(a.__effects)&&(a.__fetchDisposer={dispose:()=>q5(a)},a.__effects.push(a.__fetchDisposer));let l=!NS(r);for(let f of i){let u=C1(f.method),d=u?K5:_r,p=!u&&!Mh(f)&&f.method!=="subscribe";if(f.on==="create"?d(f,e,r):queueMicrotask(()=>U5({...f,__runner:d},e,r)),p&&f.on==="create"&&(l&&(f.refetchInterval||f.refetchOnWindowFocus!==!1||f.refetchOnReconnect!==!1)&&z5(f,e,r),!df(f))){let g={element:e,ref:a,config:f,context:r};c.mounted.add(g),a.__fetchMounted.push(g)}}a.refetch=f=>{for(let u of i)_r(u,e,r,{force:!0,...f})},a.fetchNextPage=()=>{let f=i[0];if(!f||!f.infinite)return;let u=a.__nextPageParam;if(u==null)return;let d={...f,cursor:u};_r(d,e,r,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let f=i[0];if(!f||!f.infinite)return;let u=a.__prevPageParam;if(u==null)return;let d={...f,cursor:u};_r(d,e,r,{direction:"previous",force:!0})}},Z5={invalidateQueries:t=>Nh(kn,ff(t)),removeQueries:t=>{IS(kn,t?ff(t):MS)},getQueryData:t=>R1(kn,t),setQueryData:(t,e)=>{P1(kn,t,e)},prefetchQuery:async(t,e)=>{let n=e?.fetch;if(!n)return;let r=Qe(e),o=await FS(n,e);if(!o)return;let s=t.method||"select",i=lf(null,e),a=ha(null,e),c=Dh({...t,method:s},t.params,i,a),l=o[s];if(!L(l))return;let f={from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single,headers:t.headers,baseUrl:t.baseUrl};a&&(f.headers={...f.headers,"Accept-Language":a}),t.responseType!==void 0&&(f.responseType=t.responseType),s==="rpc"&&(f.read=!Mh(t)&&t.read!==!1);let u=++Lh,d=await l(f);if(d?.data!==void 0&&!d?.error&&!df(t)&&!Th(r,c,u)){let p=da(r,c,d.data,null,u,RS(r,c,u));p.gcTime=Ih(t.cache)?.gcTime||3e5}return d},getCache:()=>kn.cache,clear:()=>IS(kn,MS),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[n]of kn.cache)n.match(/:([a-z]{2,3})$/i)&&(n.endsWith(e)||k1(kn,n))}},_1=(t,e)=>E(t)?$S({method:"select",...t},e,e?.context):t,J5={invalidateQueries(t){return Nh(Qe(this?.context),ff(t))},removeQueries(t){IS(Qe(this?.context),t?ff(t):MS)},getQueryData(t){return R1(Qe(this?.context),_1(t,this))},setQueryData(t,e){P1(Qe(this?.context),_1(t,this),e)}},Q5=async t=>{let e=await GO();if(!e)return null;let{taken:n,config:r}=e,o=new Set,s=[];for(let c of n)c.cacheKey?o.add(c.cacheKey):s.push(c);mS();let i=[],a=async c=>{try{let l=await c.again.send();if(!l||l.error)return;let f=c.result?c.result.data:void 0;if(t6(l.data,f))return;let{method:u,from:d,params:p}=c.again;i.push({method:u,from:d,params:p,data:l.data,previous:f})}catch{}};if(await Promise.all([o.size?Nh(kn,c=>o.has(c)):null,...s.map(a)]),i.length&&L(r.onRefresh))try{r.onRefresh(i,t)}catch(c){console.error("[@symbo.ls/fetch] seed.onRefresh failed:",c)}return{queries:o.size,reads:s.length,changed:i.length}},t6=(t,e)=>{if(t===e)return!0;try{return JSON.stringify(t)===JSON.stringify(e)}catch{return!1}},e6={name:"fetch",init(t){t.fetch&&L1(t)},create(t){let e=t.fetch;e&&(t.parent||Qe(t.context).active.clear(),BS(e,t,t.state,t.context))}},n6=BS});function hf(t){let e=this,{__ref:n}=e,r=[].concat(t),o=n.root[r[0]];if(!r||!r.length)return console.log(r,"on",e.key,"is undefined");for(;o.key===r[0]&&(r.shift(),!!r.length);)if(o=o[r[0]],!o)return;return o}function US(t){let e=this,{parent:n}=e;if(L(t))return n.state&&t(n,n.state,n.context)?n:n.parent?n.lookup(t):void 0;if(e[t])return e[t];for(;n.param!==t;){if(n[t])return n[t];if(n=n.parent,!n)return}return n}function VS(t){let e=this,{__ref:n}=e,r=n?.__children;if(r)for(let o=0;o<r.length;o++){let s=r[o],i=e[s];if(s===t)return i;if(L(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 zS(t,e=[]){let n=this,{__ref:r}=n,o=r?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=n[i];if(i===t)e.push(a);else if(L(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 jh(t={}){let e=this;if(e.node?.style){for(let n in t){let r=t[n],o=e[n];if(E(r)&&o)jh.call(o,r);else if(r!=null){let s=n.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(r).replace(/\s*!important\s*$/,"");e.node.style.setProperty(s,i,"important")}}return e}}function I1(t){let e=this;if(mr("beforeRemove",e,t)===!1)return e;L(e.node.remove)?e.node.remove():ro()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=xl(e.parent.__ref.__children,e.key)),mr("remove",e,t)}function HS(t){return this[t]}function WS(t,e){let n=this;if(t)return n.update(t,e),n}function KS(t){return t?this.__ref&&this.__ref[t]:this.__ref}function qS(){let t=this.getRef("__children");return Array.isArray(t)?t.map(e=>this[e]):[]}function gf(){return this.getRef().path}function yf(t){let e=null,n=r=>r.__element&&r.root?.isRootState;if(!this)e=D1();else if(n(this))e=this.root;else if(this.__ref&&this.__ref.path){let r=this.state&&n(this.state),o=L(this.state)&&this.parent.state&&n(this.parent.state);(r||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=D1()),t?e?.[t]:e}function bf(t){let e=this?.__ref?.root||this.getRootState()?.__element;if(!e)throw new Error(`[smbls] getRoot() could not resolve a root element for "${this?.key||"<unknown>"}" \u2014 it has no __ref (never went through create()) and no root state is registered. Answering undefined here used to no-op silently for every caller.`);return Object.keys(e).length>0&&t?e[t]:e}function _f(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function wf(t){let e=this.getRoot()?.context;return t?e[t]:e}function Sf(t){let e=this.context;return t?e[t]:e}function Uh(){let t=this,e=[];for(let n in t)!Object.prototype.hasOwnProperty.call(t,n)||to.has(n)&&!Cl.has(n)||e.push(n);return e}function Vh(t=[]){let e=this,n={},r=Uh.call(e),o=r.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<r.length;i++){let a=r[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||o&&a==="content")continue;let c=e[a];if(a==="state"){if(e.__ref&&!e.__ref.__hasRootState)continue;let l=L(c&&c.parse)?c.parse():c;n[a]=L(l)?l:JSON.parse(JSON.stringify(l||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;n[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:l,update:f,...u}=e[a];n[a]=u}else Ut(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=c)}return n}function pf(t=[],e=new WeakSet){let n=this;if(e.has(n))return;e.add(n);let r=Vh.call(n,t),o=t.length?new Set(t):null;for(let s in r){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(n,s))continue;let i=r[s];Array.isArray(i)?r[s]=i.map(a=>V(a)?pf.call(a,t,e):a):V(i)&&(r[s]=pf.call(i,t,e))}return r}function ya(...t){if(fo!=="test"&&fo!=="development")return;let e=this,{__ref:n}=e;return console.groupCollapsed(e.key),t.length?t.forEach(r=>console.log(`%c${r}:
22
- `,"font-weight: bold",e[r])):(console.log(n.path),e.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",e[o]))),console.log(e),console.groupEnd(e.key),e}function YS(...t){(fo==="test"||fo==="development")&&console.log(...t)}function xf(...t){(fo==="test"||fo==="development")&&console.warn(...t)}function _s(...t){if(fo==="test"||fo==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&ya.call(this),new Error(...t)}}function kf(){let t=this,{key:e,parent:n}=t,{__children:r}=n.__ref,o=r.indexOf(e),s=r[o+1];return n[s]}function Ef(t){let e=t||this,{key:n,parent:r}=e,{__children:o}=r.__ref;if(!o)return;let s=o.indexOf(n);return r[o[s-1]]}function vf(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let n=e.data.varCaches,r={},o;for(let s in t)t[s]!==n[s]&&(o=!0,r[s]=t[s]);return{changed:s=>{if(!o)return;let i=s(r,pt(n));for(let a in r)n[a]=r[a];return i},timeout:(s,i)=>{if(!o)return;let a=setTimeout(()=>{s(r),clearTimeout(a)},i)}}}function XS(t,...e){let n=this.context,r=n.utils?.[t]||n.functions?.[t]||n.methods?.[t]||n.snippets?.[t];if(r&&!as(r))try{let o=r.call(this,...e);return o&&typeof o.then=="function"&&o.catch(s=>{_s.call(this,s)}),o}catch(o){if(_s.call(this,o),n?.strictMode)throw o}}async function Af(){let t=this,e=t.context?.fetch;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:o}=await Fh();await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Fh();await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let n=Fh().then(({resolveDb:o})=>o(e));e.__resolving=n;let r=await n;if(e.__resolved=r,t.context.fetch=r,delete e.__resolving,r?.getSession){let{initAdapterAuth:o}=await Fh();await o(r,t.context)}return r}function Cf(t){let e=this,n=t||rf.useStateQuery||e.context?.useStateQuery;if(!n)return null;let r={};if(jS(e,r),n===!0)return r;let o=f6[n];return o?o(r):r}function ZS(t,e){return!!(no.has(t)||e?.context?.methods?.[t])}var fo,Bh,mf,ma,D1,GS,r6,Fh,jS,o6,M1,s6,i6,a6,c6,l6,f6,N1=D(()=>{"use strict";lS();os();Wt();Un();jl();Ji();uS();fo="production";Bh=null,mf=t=>{Bh=t||null},ma=(t,e)=>{t&&e&&Bh===t&&(Bh=e)},D1=()=>Bh||null;GS=(t,e,n,r)=>Object.defineProperty(t,e,{get:n,set:r});r6="[smbls] getDB needs @symbo.ls/fetch, which the smbls embed bundle does not include: add @symbo.ls/fetch to the page's importmap (the runtime import then resolves) or use the full smbls bundle.",Fh=()=>Promise.resolve().then(()=>($h(),ga)).catch(t=>{throw new Error(r6,{cause:t})});jS=(t,e)=>{let n=t.__ref;if(!n)return;let r=n.__state;r&&typeof r=="string"&&o6(e,r);let o=n.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&jS(c,e)}let s=n.contentElementKey||"content",i=t[s];i&&i.__ref&&jS(i,e)},o6=(t,e)=>{let r=e.replaceAll("../","").replaceAll("~/","").split("/"),o=t;for(let s=0;s<r.length;s++){let i=r[s];s===r.length-1?o[i]||(o[i]=!0):(o[i]===!0&&(o[i]={}),o[i]||(o[i]={}),o=o[i])}},M1=(t,e=0)=>{let n=" ".repeat(e),r=Object.entries(t);return r.length?r.map(([s,i])=>i===!0?`${n}${s}`:`${n}${s} {
23
- ${M1(i,e+1)}
21
+ return (${c}); })`)(e)}catch{try{e[a]=R.eval(`(${c})`)}catch{e[a]=c}}}for(let[i,a]of n)if(!r(i))try{e[i]=R.eval(`(${a})`)}catch{e[i]=a}return e},hw=(t,e={verbose:!0})=>{try{return t?R.eval("("+t+")"):{}}catch(n){e.verbose&&console.warn(n)}},gw=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),Gp=t=>{for(let e in t)return!1;return!0},mw=t=>k(t)&&Gp(t),yw=()=>Object.create(null),zl=(t,e,n={})=>{let r=n.exclude||[],o=n.preventUnderscore;for(let s in e)r.includes(s)||!o&&ds(s)||s==="constructor"||s==="prototype"||e[s]!==void 0&&(t[s]=e[s]);return t},ms=(t,e,n=[])=>{let r=n instanceof Set;for(let o in e)ds(o)||o==="constructor"||o==="prototype"||(r?n.has(o):n.includes(o))||(t[o]=e[o]);return t},ae=(t,e,n={},r=new WeakMap)=>{if(!z(t)||!z(e)||ye(t)||ye(e))return e;if(r.has(t))return r.get(t);r.set(t,t);let o=n.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!n.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&ds(a)||a==="constructor"||a==="prototype")continue;let c=t[a],l=e[a];ye(l)?t[a]=l:z(c)&&z(l)?t[a]=ae(c,l,n,r):l!==void 0&&(t[a]=l)}return t},Yp=(t,e,n=new Set)=>{if(typeof t!="object"||typeof e!="object"||t===null||e===null)return t===e;if(n.has(t)||n.has(e))return!0;n.add(t),n.add(e);let r=Object.keys(t),o=Object.keys(e);if(r.length!==o.length)return!1;for(let s=0;s<r.length;s++){let i=r[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!Yp(t[i],e[i],n))return!1}return!0},F5=new Set(["node","__ref"]),bw=(t,e,n=F5)=>{if(t===e)return!0;if(!z(t)||!z(e)||ye(t)||ye(e))return t===e;let r=n instanceof Set?n:new Set(n),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)||r.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let l=a[c],f=i[c];if(ye(l)||ye(f)){if(l!==f)return!1}else if(z(l)&&z(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},_w=(t,e)=>{if(e==null)return t;if(_e(e)("string","number"))delete t[e];else if(I(e))for(let n=0;n<e.length;n++)delete t[e[n]];else throw new Error("Invalid input: props must be a string or an array of strings");return t},Xp=t=>{if(t===null||typeof t!="object")return t;let e=Object.create(null);for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=Xp(t[n]));return e},ww=(t,e)=>{if(t.length===0)return e;let n={},r=n;for(let o=0;o<t.length;o++)o===t.length-1&&e?r[t[o]]=e:(r[t[o]]={},r=r[t[o]]);return n},Sw=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let o=0;o<e.length-1;o++){if(n[e[o]]===void 0)return;n=n[e[o]]}let r=e[e.length-1];n&&Object.prototype.hasOwnProperty.call(n,r)&&delete n[r]},xw=(t,e,n)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let o=0;o<e.length-1;o++)(!r[e[o]]||typeof r[e[o]]!="object")&&(r[e[o]]={}),r=r[e[o]];return r[e[e.length-1]]=n,t},kw=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let r=0;r<e.length;r++){if(n==null)return;n=n[e[r]]}return n},Ew=t=>{let n=[],r=0;for(let o=0;o<t.length;o++)if(n.length<2)n.push(t[o]);else if(t[o]===n[o%2]?r++:(n=[t[o-1],t[o]],r=1),r>=20)return(yO==="test"||yO==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",n),!0},vw=t=>{let e=new WeakSet;function n(r){if(r&&typeof r=="object"){if(e.has(r))return!0;e.add(r);for(let o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&n(r[o]))return console.log(r,"cycle at "+o),!0}return!1}return n(t)},Aw=(t,e)=>{let n=e instanceof Set?e:new Set(e),r={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&!n.has(o)&&(r[o]=t[o]);return r}});var Hl,Wl,Kl,Zp=D(()=>{"use strict";Wn();Hl=(function(){let t=0;function e(){return t++,t}return e})(),Wl=Hl,Kl=(t,e,n)=>(St(n,t)||n||t.key||Hl()).toString()});var An,Tw,co,Jp,Cw,Ow,Rw,lo,Pw,xr,nt,ql=D(()=>{"use strict";An="production",Tw=An,co=(t=An)=>t==="production",Jp=(t=An)=>t==="testing"||t==="test",Cw=Jp,Ow=(t=An)=>t==="staging",Rw=(t=An)=>t==="local",lo=(t=An)=>t==="development"||t==="dev"||t==="local",Pw=(t,e=An)=>e[t],xr=(t=An)=>!co(t),nt=t=>{if(!t&&globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__===!0)return!1;let e=t&&"env"in t?t.env:typeof process<"u"&&process.env?"production":void 0;if(e&&e!=="production")return!0;let n=t&&"hostname"in t?t.hostname:typeof location<"u"?location.hostname:void 0;return typeof n=="string"&&n?n==="localhost"||n==="127.0.0.1"||n.endsWith(".localhost"):!1}});function Gl(t,e,n){let r;return function(){let o=this,s=arguments,i=function(){r=null,n||t.apply(o,s)},a=n&&!r;clearTimeout(r),r=setTimeout(i,e),a&&t.apply(o,s)}}function Iw(t,e=window){let n=function(){return t.apply(e,arguments)};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var Lw,Dw,B5,aa,ca,la,fo,fa=D(()=>{"use strict";Lw=(t,e,n=300)=>{let r;return(...o)=>{clearTimeout(r),r=setTimeout(()=>{e.apply(t,o)},n)}},Dw=t=>{let e={};return(...n)=>{let r=n[0];if(r in e)return e[r];{let o=t(r);return e[r]=o,o}}},B5=/^\s*(?:async\s+)?(?:function\b|\([^)]*\)\s*=>|[a-zA-Z_$][\w$]*\s*=>)/,aa=t=>B5.test(t),ca=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let n of e)if(n.resolveHandler)return!0;return!1},la=(t,e)=>{if(typeof t=="function")return t;let n=e?.context?.plugins;if(!n)return t;for(let r of n)if(r.resolveHandler){let o=r.resolveHandler(t,e);if(typeof o=="function")return o}return t},fo=(t,e,...n)=>{let r=e?.context?.plugins;if(!r)return!1;let o=!1;for(let s of r)typeof s[t]=="function"&&(s[t](e,...n),o=!0);return o}});var Mw,MO=D(()=>{"use strict";qt();Wn();Mw=(t,e)=>{let{__ref:n}=t,r=t.if;if(L(r)){let o;try{o=r(t,t.state,t.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete n.__if;return}o?n.__if=!0:delete n.__if}else r!=null&&typeof r=="object"?St(r,t)?n.__if=!0:delete n.__if:n.__if=!0}});var Nw,$w,NO=D(()=>{"use strict";Nw=(t,...e)=>{t&&e.map(n=>console.log(n))},$w=(t,e,...n)=>{t&&(console.group(e),n.map(r=>console.log(r)),console.groupEnd(e))}});function Vw(t){let e;try{if(!window.localStorage)return;e=window.localStorage.getItem(t)}catch{return}if(e!==null)try{return JSON.parse(e)}catch{return}}function zw(t,e){if(e!=null)try{if(!window.localStorage)return;let n=typeof e=="object"?JSON.stringify(e):e;window.localStorage.setItem(t,n)}catch{}}var Fw,Bw,jw,Uw,$O=D(()=>{"use strict";qt();El();Fw=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Bw=(t,e,n=365)=>{if(Zt(kt)||Zt(kt.cookie))return;let r=new Date;r.setTime(r.getTime()+n*24*60*60*1e3);let o=`expires=${r.toUTCString()}`;kt.cookie=`${t}=${e};${o};path=/`},jw=t=>{if(Zt(kt)||Zt(kt.cookie))return;let e=`${t}=`,r=decodeURIComponent(kt.cookie).split(";");for(let o=0;o<r.length;o++){let s=r[o];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(e)===0)return s.substring(e.length,s.length)}return""},Uw=t=>{Zt(kt)||Zt(kt.cookie)||(kt.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var ua,FO,Hw,Ww=D(()=>{"use strict";ua={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"])},FO=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"]),Hw=t=>ua.body.has(t)});var Kw,BO,da,tn,pa,Zl,qn,qw,Qp,Jl,Gw,Ql,th,eh,tf,nh,ha,j5,Gn,jO,Yl,ef,Yw,Xl,Xw,Zw,rh,oh,sh,ih,ah,ch,UO,lh=D(()=>{"use strict";ra();Jw();Wn();qt();Kw="production",BO=t=>t.sourcemap!==!1&&Kw!=="production",da=t=>{if(!t)return[];let e=[],n=t.extends;n&&(I(n)?e.push(...n):e.push(n));let r=t.extend;return r&&(I(r)?e.push(...r):e.push(r)),e},tn=t=>{if(!I(t))return t;let e=[];for(let n=t.length-1;n>=0;n--){let r=t[n];e.push(I(r)?tn(r):r)}return e},pa=t=>{if(t.includes("+"))return t.split("+").filter(Yn);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!Yn(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},Zl=(t,e,n)=>{let r=[],o=pa(n);o&&(r=[...o]);let s=tn(da(t));return s.length&&(r=[...r,...s]),r},qn=(t,e)=>{let{__ref:n}=e,{__extends:r}=n;if(!t)return r;let o=e.variant,s=e.context;if(o&&s?.components&&!Array.isArray(t)&&typeof t=="string"){let i=`${t}.${o}`;s.components[i]&&(t=i)}return r.includes(t)||(r=Array.isArray(t)?[...r,...t]:[...r,t],n.__extends=r),r},qw=(t,e)=>{if(!t)return e;let{extends:n}=e,r=I(n)?n:[n],o=I(t)?t:[t];return{...e,extends:ea(o,r)}},Qp=()=>Math.random().toString(36).substring(2),Jl={},Gw={},Ql=t=>Jl[t.__hash],th=(t,e)=>{let n=Qp();return v(t)||(t.__hash=n),n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(Jl[n]=e),e},eh=(t,e)=>t.__hash?e.concat(Ql(t)):th(t,e),tf=(t,e,n,r=new Set,o,s)=>{for(let i of t)I(i)?tf(i,e,n,r,o,s):ha(i,e,n,r,o,void 0,s);return e},nh=(t,e,n,r=new Set,o,s,i)=>{let a=da(t),c={...t};delete c.extends,delete c.extend;let l=!1;for(let f in c){l=!0;break}return l&&(e.push(c),o&&o.push(s)),a.length&&ha(tn(a),e,n,r,o,s,i),e},ha=(t,e,n,r=new Set,o,s,i)=>{if(!t||r.has(t))return e;if(I(t))return tf(t,e,n,r,o,i);let a=s;return v(t)?(a=t,t=ef(t,n)):i&&k(t)&&i.has(t)&&(a=i.get(t)),r.has(t)||(r.add(t),t?.extends||t?.extend?nh(t,e,n,r,o,a,i):t&&(e.push(t),o&&o.push(a))),e},j5=new Set(["parent","node","__ref","__proto__","extends","extend","childExtends","childExtendsRecursive"]),Gn=(t,e,n,r,o)=>{e=pt(e);for(let s in e){if(j5.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,n&&r?k(a)&&!I(a)?(n[s]=n[s]||{},jO(n[s],a,r)):n[s]=r:n&&o?.[s]&&(n[s]=o[s]);else if(k(i)&&k(a)){let c=n?n[s]=n[s]||{}:void 0,l=o?.[s];Yn(s)?t[s]=Gn(i,a,c,r,l):Gn(i,a,c,r,l)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(I(i)&&I(a))t[s]=i.concat(a);else if(I(i)&&k(a)){let c=Gn({},i);t[s]=Gn(c,a)}}}}return t},jO=(t,e,n,r)=>{if(r||(r=new WeakSet),!r.has(e)){r.add(e);for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=e[o];k(s)&&!I(s)?(t[o]=t[o]||{},jO(t[o],s,n,r)):t[o]=n}}},Yl=(t,e,n)=>t.reduce((r,o,s)=>{let i=pt(o),a=n?n[s]:void 0;return Gn(r,i,e,a)},{}),ef=(t,e,n={},r)=>{let o=e?.components||n.components,s=e?.pages||n.pages;if(v(t)){let i=o&&(o[t+"."+r]||o[t]||o["smbls."+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;n.verbose&&(Kw==="test"||Kw==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},Yw=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),Xl=(t,e,n,r)=>{if(!t)return[];if(t.__hash)return Ql(t)||[];let s=ha(t,[],e,new Set,n,void 0,r);return n?s:eh(t,s)},Xw=(t,e)=>{if(!t)return e;let n=I(t)?t:[t];return ea(n,e)},Zw=t=>{let e=[];function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&(Yn(o)&&e.push(o),o==="extends"&&(typeof r[o]=="string"?e.push(r[o]):Array.isArray(r[o])&&(e=e.concat(r[o]))),typeof r[o]=="object"&&r[o]!==null&&n(r[o]))}return n(t),e},rh=(t,e,n={})=>{let{__ref:r}=t,o=t.context||e.context,s=t.variant,i=da(t);if(i.length){let a=tn(i),[c,...l]=a,f=typeof c=="string"&&s&&o?.components?`${c}.${s}`:null;f&&o.components[f]?qn([f,...l],t):qn(a,t)}return oh(t,e,n),sh(t,e,n),ih(t,e,n),t.component&&qn(tn(St(t.component,t)),t),o.defaultExtends&&qn(tn(o.defaultExtends),t),na(r.__extends)},oh=(t,e,n={})=>{let{__ref:r}=t;return n.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&qn(tn(e.childProps.extends),t),r.__extends},sh=(t,e,n={})=>{let{__ref:r}=t,o=n.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!o&&s&&qn(tn(s),t),r.__extends},ih=(t,e,n={})=>{let{__ref:r}=t,o=e.childExtendsRecursive,s=n.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key==="__text";return o&&!i&&!s&&qn(tn(o),t),r.__extends},ah=(t,e,n={})=>{let{__ref:r}=t,o=t.context||e.context,s=t.variant,i=BO(n),a=i?[...r.__extends]:null,c=na(r.__extends.map((l,f)=>ef(l,o,n,f===0&&s)));if(i){let l=new WeakMap;for(let d=0;d<c.length;d++){let p=c[d],g=a[d];p&&k(p)&&v(g)&&l.set(p,g)}let f=[],u=Xl(c,o,f,l);r.__extendsStack=u,r.__extendsNames=f}else{let l=Xl(c,o);r.__extendsStack=l}return r.__extendsStack},ch=(t,e,n={})=>{let{__ref:r}=t,{__extendsStack:o}=r;if(BO(n)){let s={},i=r.__extendsNames||[],a=Yl(o,s,i),c={};Gn(t,a,c,void 0,s),r.__sourcemap=c}else{let s=Yl(o);Gn(t,s)}return t},UO=(t,e,n={})=>(rh(t,e,n),ah(t,e,n),ch(t,e,n),t)});function Qw(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function tS(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function eS(t,e,n){let{context:r}=e||{},[o]=pa(n),s=n||o;return r?.components?.[s]||r?.pages?.[s]}var Yn,Jw=D(()=>{"use strict";lh();qt();Yn=t=>{if(!v(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function VO(t,e){let{props:n,on:r}=e,o=as(t.split("on")[1]),s=r[o],i=n[t];L(s)?r[o]=(...a)=>{if(s(...a)!==!1&&L(i))return i(...a)}:r[o]=i}var zO=D(()=>{"use strict";Dl();qt()});function fh(t,e={}){let n=e.cachedKeys||[];for(let r in t){let o=t[r];if(r.length>2&&r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r[2]===r[2].toUpperCase()&&(L(o)||o!=null&&ca(this.context))){let g=as(r.slice(2));t.on&&(t.on[g]=o),delete t[r];continue}if(r==="childProps"){t.props[r]=o,delete t[r],n.push(r);continue}let a=this.define?.[r],c=this.context?.define?.[r],l=k(a)||L(a),f=k(c)||L(c);if(l||f)continue;let u=r.charAt(0);if(WO.has(u)){t.props[r]=o,delete t[r],n.push(r);continue}let d=nS.test(r)||HO.test(r)||V5(o),p=so.has(r);!d&&!p&&(r in t.props||(t.props[r]=o),delete t[r],n.push(r))}return t}function uh(t=this,e){let n=e.cachedKeys||[];for(let r in t.props){let o=t.props[r],s=r.length>2&&r.charCodeAt(0)===111&&r.charCodeAt(1)===110,i=L(o)||o!=null&&ca(this.context);if(s&&i){VO(r,t),delete t.props[r];continue}if(n.includes(r)||r==="childProps")continue;let a=r.charAt(0);if(WO.has(a))continue;let c=this.define?.[r],l=this.context?.define?.[r],f=k(c)||L(c),u=k(l)||L(l),d=nS.test(r)||HO.test(r),p=so.has(r);(d||p||f||u)&&(t[r]===void 0||o===null)&&(t[r]=o,t.props&&delete t.props[r])}return t}function dh(t=this){let e=[];return fh.call(this,t,{cachedKeys:e}),uh.call(this,t,{cachedKeys:e}),t}function rS(t={}){return t.on||(t.on={}),t.props||(t.props={}),dh.call(this,t)}function sS(t,e){this.__element.update({props:t},e)}function af(t){let e={update:sS.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var nS,HO,WO,U5,V5,of,nf,oS,sf,cf,lf,ph,rf,iS,aS,cS=D(()=>{"use strict";fs();zO();Wn();qt();Dl();fa();nS=/^[A-Z]/,HO=/^\d+$/,WO=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),U5=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),V5=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(U5.has(e)||nS.test(e))return!0;return!1},of=(t,e,n)=>{let{props:r,__ref:o}=t;if(o.__propsStack=[],r)o.__initialProps=r;else return{};return z(r)?{...r}:(o.__propsStack.push(r),{})};nf=t=>_e(t)("string","number")?{inheritedString:t}:t,oS=(t,e)=>!t||!e.length?!1:e.includes(t),sf=(t,e)=>{let{__ref:n}=t,r=n.__propsStack||[],o=e.props;if(!o)return r;let s=o[t.key],i=o.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=nf(i);r.unshift(c)}if(s){let c=nf(s);r.unshift(c)}return r};cf=t=>{let e=new Set;return t.filter(n=>!n||io.has(n)||e.has(n)?!1:(e.add(n),!0))},lf=(t,e,n)=>(e.props=t.reduce((r,o)=>{if(io.has(o))return r;for(;L(o);)o=St(o,e);return bt(r,pt(o,{exclude:io}))},{}),af(e),e.props),ph=(t,e)=>{let{props:n,__ref:r}=t,o=r.__propsStack||[];if(e?.props&&(o=[...sf(t,e)]),k(n)?o.push(n):n==="inherit"&&e?.props?o.push(e.props):n&&o.push(n),I(r.__extendsStack))for(let s=0;s<r.__extendsStack.length;s++){let i=r.__extendsStack[s];i.props&&i.props!==n&&o.push(i.props)}return r.__propsStack=cf(o),r.__propsStack},rf=(t,e)=>{let{__ref:n}=t,r=ph(t,e);r.length?lf(r,t):(n.__propsStack=[],t.props={})},iS=function(t,e,n){let{__ref:r}=t;if(r.__if)rf(t,e);else try{rf(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",r.path?.join("."),o),t.props={},r.__propsStack=[]}return af(t),t},aS=(t,e,n)=>{let{__ref:r}=e,s=[...r.__propsStack||[]],i=sf(e,n);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),r.__propsStack=cf(s),r.__propsStack.length&&lf(r.__propsStack,e),e}});var KO,hh,gh,mh,yh,lS,bh,_h,wh,fS,qO=D(()=>{"use strict";lh();Zp();Al();cS();Ww();qt();KO="production",hh=(t,e,n)=>{let r=e.childExtends&&e.childExtends.tag,o=e.childProps&&e.childProps.tag,s=ua.body.has(n)&&n;return{text:t,tag:r||o||s||"string"}},gh=(t,e,n)=>{if(t===void 0)return(KO==="test"||KO==="development")&&console.warn(n,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:_e(t)("string","number")?hh(t,e,n):L(t)?{props:t}:t},mh=(t,e)=>{let n={};return n.origin=t,n.parent=e,n},yh=(t,e,n,r,o)=>{if(!e)return o;if(wr(e)){let s={key:":root",node:e};return o[`${n}_parent`]=s,s}return e},lS=(t,e)=>{let{__ref:n}=t,{__ref:r}=e,o=e&&e.key===":root";n?.root||(n.root=o?t:r?.root)},bh=(t,e,n)=>{let{__ref:r}=e;return r||(r=e.ref={}),r.path||(r.path=[]),r.path.concat(n)},_h=(t,e,n,r,o)=>(r.context&&!o.context&&!t.context&&(o.context=r.context),r.context||e.context||o.context||t.context),wh=(t,e,n)=>{let r=mh(t,e);return t.__ref=r,r.__defineCache||(r.__defineCache={}),r.__exec||(r.__exec={}),r.__execProps||(r.__execProps={}),r.__class||(r.__class={}),r.__classNames||(r.__classNames={}),r.__attr||(r.__attr={}),r.__changes||(r.__changes=[]),r.__children||(r.__children=[]),r.__extends=Zl(t,e,n),r.path=bh(t,e,n),r},fS=(t,e,n,r,o)=>{let i=t?.__hash?{extends:[t]}:gh(t,e,n);if(!i)return;let a=yh(i,e,n,r,o),c=Kl(i,a,n);wh(i,a,c);let l=of(i,a,c),f=_h(i,a,c,r,o),u=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:u}}});var uS,Sh,xh,kh,Eh,dS,vh,pS,hS,gS,Ah,GO,z5,ZO,uo,mS,YO,po,ys,XO,JO,QO,ff,Xn,t1=D(()=>{"use strict";ra();fs();ql();Wn();qt();uS=t=>{let{state:e,props:n,__ref:r}=t,o=n?.state||e;return _e(o)("string","number")?(r.__state=o,{value:o}):o===!0?(r.__state=t.key,{}):o?(r.__hasRootState=!0,o):!1},Sh=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},xh=(t,e)=>{if(!t.includes("../"))return;let r=t.split("../").length-1;for(let o=0;o<r;o++){if(!e.parent)return null;e=e.parent}return e},kh=(t,e,n={})=>{let r=v(t)?t.split("/"):[t],o=r.length-1;for(let s=0;s<o;s++){let i=r[s],a=r[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 n.returnParent?e:e[t]},Eh=(t,e,n={})=>{let o=t.__ref.__state;if(!vh(t))return;let s=Sh(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=xh(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return kh(o,i,n)},dS=(t,e)=>{let n=t.__ref,r=Eh(t,e);if(r===void 0)return t.state;if(_e(r)("object","array"))return pt(r);if(_e(r)("string","number","boolean"))return n.__stateType=typeof r,{value:r};console.warn(n.__state,"is not present. Replacing with",{})},vh=t=>{let{__ref:e}=t,n=e?.__state;return!!(n&&_e(n)("number","string","boolean"))},pS=function(t){return z(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},hS=(t,e)=>{if(!t)return e||{};let n=t.split("/"),r={},o=r,s=n.length-1;for(let i=0;i<=s;i++)o[n[i]]=i===s?e||{}:{},o=o[n[i]];return r},gS=(t,e)=>{let{__element:n}=e,r=n?.state;if(!r)return;let o=pt(r,cs),s={[t.key]:o},i=k(r.__depends)?{...r.__depends,...s}:s;return Array.isArray(r)?Rl(r,{...Object.getPrototypeOf(r),__depends:i}):Object.setPrototypeOf(r,{...Object.getPrototypeOf(r),__depends:i}),o},Ah=new Set(["parent","root"]),GO=new Set,z5=t=>{GO.has(t)||(GO.add(t),nt()&&console.warn(`[smbls/state] the declared state key "${t}" names a state bookkeeping slot (parent / root) and was NOT copied into the state. Rename the key (e.g. "`+t.split(".").pop()+'Data").'))},ZO=(t,e,n,r)=>{if(t===e)return t;for(let o=0;o<r.length;o+=2)if(r[o]===t&&r[o+1]===e)return t;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||o.charCodeAt(0)===95&&o.charCodeAt(1)===95||o==="constructor"||o==="prototype")continue;let s=n?n+"."+o:o;if(Ah.has(o)){z5(s);continue}let i=t[o],a=e[o];z(i)&&z(a)?(r.push(t,e),ZO(i,a,s,r),r.length-=2):i===void 0&&(t[o]=a)}return t},uo=(t,e)=>!z(t)||!z(e)?t:ZO(t,e,"",[]),mS=(t,e,n={})=>{let{overwrite:r}=n;if(!r)return;let o=r==="shallow";if(r==="merge"){bt(t,e,cs);return}(o?ms:ae)(t,e,cs)},YO="__polyglotSeededKeys",po=t=>{if(!k(t))return new Set;let e=t[YO];if(!(e instanceof Set)){e=new Set;try{Object.defineProperty(t,YO,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},ys=(t,e,n)=>po(t).has(e)?!0:!k(n)||n[e]===void 0,XO="__polyglotSeededValues",JO=t=>{if(!k(t))return new Map;let e=t[XO];if(!(e instanceof Map)){e=new Map;try{Object.defineProperty(t,XO,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},QO=t=>{if(t===null||typeof t!="object")return typeof t+":"+String(t);try{return"json:"+JSON.stringify(t)}catch{return null}},ff=(t,e,n)=>{if(!po(t).has(e))return!1;let r=JO(t);if(!r.has(e))return!0;let o=k(n)||Array.isArray(n)?n[e]:void 0,s=QO(o);return s!==null&&s===r.get(e)},Xn=(t,e,...n)=>(po(t).add(e),n.length&&JO(t).set(e,QO(n[0])),e)});var H5,yS,e1=D(()=>{"use strict";H5=(t,e)=>{let n=e;for(;n;){if(n===t)return!0;n=Object.getPrototypeOf(n)}return!1},yS=(t,e)=>{let{__ref:n}=t,r=t.context||e.context||n.root?.context;r&&!r.globalScope&&(r.globalScope={});let o=e.scope||n.root?.scope,s=r?.globalScope;if(!t.scope)o?t.scope=o:s?t.scope=Object.create(s):t.scope={};else if(typeof t.scope=="object"&&t.scope!==null&&Object.getPrototypeOf(t.scope)===Object.prototype){let i=o||s;i&&!H5(t.scope,i)&&Object.setPrototypeOf(t.scope,i)}}});var n1,Th,kr,Ch,bS,_S=D(()=>{"use strict";qt();fa();n1=(t,e)=>{let n="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[n]},Th=(t,e,n,r,o)=>{if(t=la(t,e),!!L(t))try{let s=t.call(e,e,n||e.state,r||e.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{e.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(e.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),e.context?.strictMode)throw s}},kr=(t,e,n)=>{if(!e)throw new Error("Element is required");fo(t,e,n);let r=n1(t,e);if(r){let{state:o,context:s}=e;return Th(r,e,o,s,n)}},Ch=(t,e,n,r,o,s)=>{if(t=la(t,n),!!L(t))try{let i=t.call(n,e,n,r||n.state,o||n.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{n.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(n.error=i,console.error("[DOMQL] Event update error:",i),n.context?.strictMode)throw i}},bS=(t,e,n,r)=>{fo(t,n,e,r);let o=n1(t,n);if(o){let{state:s,context:i}=n;return Ch(o,e,n,s,i,r)}}});var wS,uf,SS=D(()=>{"use strict";wS={},uf={}});var ho,xS=D(()=>{"use strict";ho=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 n=parseInt(e[1]),r=e[2];return r==="ms"?n:r==="s"?n*1e3:r==="m"?n*6e4:r==="h"?n*36e5:0}});var Zn,go,mo,kS,Tn,ES,r1,o1,vS,AS,s1,df,i1,a1,c1,l1,W5,TS,K5,CS,bs,f1,Oh,OS,u1,d1,p1,ga=D(()=>{"use strict";M();xS();Zn="@symbo.ls/fetch:EARLY",go=3e4,mo=(t,e)=>{let n=new URL(t);return n.searchParams.sort(),n.toString()+" "+(e||"")},kS=t=>{if(t==null)return!0;if(typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);if(e!==Object.prototype&&e!==null)return!1;for(let n in t){let r=t[n];if(!(r===void 0||typeof r=="string"||typeof r=="boolean")&&!(typeof r=="number"&&isFinite(r)))return!1}return!0},Tn=()=>Symbol.for(Zn),ES=(t,e)=>{let n=[];for(let r in t||{}){let o=r.toLowerCase(),s={name:r,header:o,param:t[r],found:!1,value:void 0};for(let i in e||{})i.toLowerCase()===o&&(s.found=!0,s.value=e[i]);n.push(s)}return n},r1=(t,e)=>{if(!t||typeof t!="object"||!e||typeof e!="object")return t;let n={...t};return n.query===void 0&&e.query!==void 0&&(n.query=e.query),n.rpc===void 0&&e.rpc!==void 0&&(n.rpc=e.rpc),n},o1=(t,e,n)=>{let r=Tn();if(W5(n),!t||typeof t!="object"){let i=globalThis[r];return i&&i.seeded?{carried:{},rpc:!1,maxAge:go,seeded:!0}:null}globalThis[r]||(globalThis[r]={entries:{}});let o={};for(let{header:i,found:a,value:c}of ES(t.query,e))a&&(o[i]=c);let s=typeof t.maxAge=="number"&&t.maxAge>=0?t.maxAge:go;return{carried:o,rpc:t.rpc==="get",maxAge:s,seeded:!!globalThis[r].seeded}},vS=(t,e=go,n)=>{let r=globalThis[Tn()],o=r&&r.entries&&r.entries[t];return!o||(delete r.entries[t],!(Date.now()-o.time<=e))?null:o.seeded?(r.stale&&n&&(o.seeded.taken=CS(r,t,n())),Promise.resolve(o.seeded)):o.ready?Promise.resolve(o.ready):Promise.resolve(o.answer).then(s=>s&&s.ok&&!s.bodyUsed?s:null,()=>null)},AS=()=>{let t=globalThis[Tn()];t&&t.entries&&(t.entries={})},s1=t=>(Array.isArray(t)?t:[]).filter(e=>e&&typeof e.url=="string"&&typeof e.body=="string").map(e=>({k:mo(e.url,e.lang||""),s:e.status||200,t:e.type||"application/json",b:e.body})),df='script[type="application/json"][data-fetch-seed]',i1=(t,e)=>{let n=s1(t);return n.length?(e&&typeof e=="object"&&Object.keys(e).length&&n.push({r:e}),'<script type="application/json" data-fetch-seed>'+_s(n)+"<\/script>"):""},a1=()=>{let t=globalThis[Tn()];return!t||!t.runs?null:Date.now()-t.runsTime<=go?t.runs:(t.runs=null,null)},c1=()=>!!a1(),l1=t=>{let e=a1(),n=e&&typeof t=="string"?e[t]:null;return Array.isArray(n)&&n.length?n:null},W5=t=>{let e=Jn(globalThis.document,df,{remove:!0}),n=t===!1?null:e&&e.value;if(!Array.isArray(n)||!n.length){let c=globalThis[Tn()];c&&c.stale||(bs=null);return}let r=Tn(),o=globalThis[r]||(globalThis[r]={entries:{}});o.entries||(o.entries={}),o.seeded=!0;let s=Date.now();for(let c of n){if(c&&c.r&&typeof c.r=="object"&&!Array.isArray(c.r)){o.runs=Object.assign(o.runs||{},c.r),o.runsTime=Date.now();continue}!c||typeof c.k!="string"||typeof c.b!="string"||o.entries[c.k]||(o.entries[c.k]={time:s,seeded:{seeded:!0,status:c.s||200,type:c.t||"application/json",body:c.b}})}let i=ws(globalThis.document)||{stamp:null,time:null},a=K5(t,i.stamp,i.time);a?(o.stale=a,o.seedConfig=t&&typeof t=="object"?t:null):bs=null},TS="data-smbls-stale",K5=(t,e,n)=>{let r=globalThis.document&&globalThis.document.documentElement;if(r&&typeof r.hasAttribute=="function"&&r.hasAttribute(TS))return!0;if(!t||typeof t!="object")return!1;if(t.maxAge!=null&&n!==null){let o=ho(t.maxAge);if(o>0&&Date.now()-n>o)return!0}if(typeof t.isStale!="function")return!1;try{let o=t.isStale(e,{time:n});return o&&typeof o.then=="function"?Promise.resolve(o).then(Boolean,()=>!1):!!o}catch{return!1}},CS=(t,e,n)=>{let r={key:e,again:n,result:null,cacheKey:null};if((t.taken||(t.taken=[])).push(r),bs){let o=bs;bs=null;for(let s of o)try{s()}catch{}}return r},bs=null,f1=t=>{let e=globalThis[Tn()];return e&&e.seeded&&!e.stale||e&&e.stale&&e.revalidated?!1:e&&e.stale&&e.taken&&e.taken.length?(t(),!0):((bs||(bs=new Set)).add(t),!0)},Oh=(t,e)=>{let n=globalThis[Tn()];!n||!t||typeof t!="object"||(e.result=t,(n.results||(n.results=new WeakMap)).set(t,e))},OS=(t,e)=>{let n=globalThis[Tn()],r=n&&n.results&&t?n.results.get(t):null;r&&(r.cacheKey=e)},u1=()=>{let t=globalThis[Tn()];return!!(t&&t.stale&&!t.revalidated)},d1=async()=>{let t=globalThis[Tn()];if(!t||!t.stale||t.revalidated)return null;t.revalidated=!0;let e=await t.stale,n=t.taken||[];return t.taken=[],t.results=null,e?{taken:n,config:t.seedConfig||{}}:null},p1=t=>{let e=s1(t);if(!e.length)return"";let n=_s(e);return"<script>(function(){try{var k=Symbol.for("+JSON.stringify(Zn)+"),r=globalThis[k]||(globalThis[k]={entries:{}}),t=Date.now(),l="+n+';r.seeded=true;r.entries=r.entries||{};for(var i=0;i<l.length;i++){var e=l[i];r.entries[e.k]={time:t,answer:Promise.resolve(new Response(e.b,{status:e.s,headers:{"content-type":e.t}}))}}}catch(e){}})()<\/script>'}});var q5,G5,RS,h1,g1,m1,y1,PS=D(()=>{"use strict";ga();q5=(t,e,n)=>{let r=new URL(t);return r.searchParams.delete(n||"limit"),r.searchParams.sort(),r.toString()+" "+(e||"")},G5=(t,e,n)=>{if(!t||!t.slices)return null;let r=new URL(e).searchParams;for(let o of t.sliceParams||["limit"]){let s=+r.get(o),i=s>0&&t.slices[q5(e,n,o)];if(i&&i.length)return{slots:i,limit:s}}return null},RS=(t,e,n,r)=>Array.isArray(t)?{seeded:!0,status:n,type:r,body:JSON.stringify(t.slice(0,e))}:null,h1=(t,e,n,r)=>{let o=globalThis[Symbol.for(Zn)],s=G5(o,t,e);if(!s)return null;let{slots:i,limit:a}=s;for(let c=0;c<i.length;c++){let l=o.entries&&o.entries[i[c]];if(!(!l||!r(l,a)))return delete o.entries[i[c]],i.splice(c,1),[l,a,Date.now()-l.time<=n]}return null},g1=(t,e,n=go)=>{let r=h1(t,e,n,(i,a)=>i.limit>=a);if(!r||!r[2])return null;let[o,s]=r;if(o.ready)try{return Promise.resolve(RS(JSON.parse(o.ready.body),s,o.ready.status,o.ready.type))}catch{return null}return Promise.resolve(o.answer).then(i=>{if(!i||!i.ok||i.bodyUsed)return null;let a=i.headers&&i.headers.get("content-type")||"application/json";return i.json().then(c=>RS(c,s,i.status,a))}).catch(()=>null)},m1=(t,e,n,r,o)=>{let s=globalThis[Symbol.for(Zn)];if(!s||!s.atInit||!s.entries)return null;let i=l=>l.ready&&Date.now()-l.time<=r,a=s.entries[t];if(a){let l=i(a)&&o(a.ready);return l&&delete s.entries[t],l||null}let c=null;return h1(e,n,r,(l,f)=>{if(!i(l))return!1;let u=l.ready;if(l.limit>=f)try{u=RS(JSON.parse(u.body),f,u.status,u.type)}catch{u=null}return c=u&&o(u),c&&l.limit<f&&(c.partial=!0),!!c}),c},y1=()=>{let t=globalThis[Symbol.for(Zn)];if(!t||!t.atInit||!t.entries)return!1;for(let e in t.entries)if(t.entries[e]&&t.entries[e].ready)return!0;return!1}});var b1,_1,w1,LS=D(()=>{"use strict";ga();PS();b1=()=>globalThis[Symbol.for(Zn)],_1=(t,e=go,n,r)=>{let o=b1(),s=o&&o.entries&&o.entries[t];if(!s||!s.seeded||!(Date.now()-s.time<=e))return null;let i=r(s.seeded);return i?(delete o.entries[t],o.stale&&n&&Oh(i,CS(o,t,n())),i):null},w1=()=>{let t=b1();if(t&&t.atInit&&y1())return!0;if(t&&t.seeded){for(let n in t.entries)if(t.entries[n]&&t.entries[n].seeded)return!0;return!1}let e=globalThis.document;return!!(e&&typeof e.querySelector=="function"&&e.querySelector(df))}});var S1,Rh,x1,k1,E1,v1,DS=D(()=>{"use strict";S1=Symbol.for("@symbo.ls/fetch:IN_FLIGHT"),Rh=()=>globalThis[S1]||(globalThis[S1]={count:0,waiters:[]}),x1=()=>{Rh().count++},k1=()=>{let t=Rh();if(t.count=t.count>0?t.count-1:0,t.count===0&&t.waiters.length){let e=t.waiters;t.waiters=[];for(let n of e)n()}},E1=()=>Rh().count,v1=()=>{let t=Rh();return t.count===0?Promise.resolve():new Promise(e=>{t.waiters.push(e)})}});var $S={};B($S,{buildUrl:()=>pf,headerEntries:()=>O1,restAdapter:()=>Lh,selectQuery:()=>MS,setup:()=>o6,withQuery:()=>hf});var pf,MS,T1,Ph,Y5,X5,Z5,A1,NS,en,C1,J5,Q5,O1,IS,t6,e6,n6,r6,hf,o6,Lh,R1=D(()=>{"use strict";ga();LS();DS();PS();pf=(t,e,n)=>{let r=e&&!e.startsWith("/")?"/":"",o=new URL(`${t}${r}${e}`);if(n)for(let s in n){let i=n[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},MS=({params:t,select:e,limit:n,offset:r,order:o,single:s})=>{let i={...t};return e&&(i.select=e),n&&(i.limit=n),r&&(i.offset=r),s&&(i.single=!0),o&&(typeof o=="string"?i.order=o:Array.isArray(o)?i.order=o.map(a=>`${a.by}:${a.asc===!1?"desc":"asc"}`).join(","):o.by&&(i.order=`${o.by}:${o.asc===!1?"desc":"asc"}`)),i},T1=t=>Object.prototype.toString.call(t).slice(8,-1),Ph=["auto","json","text","blob","arrayBuffer","stream","response"],Y5={json:async t=>{let e=await t.text();return e?JSON.parse(e):null},text:t=>t.text(),blob:t=>t.blob(),arrayBuffer:t=>t.arrayBuffer(),stream:t=>t.body,response:t=>t},X5=t=>{let e=t.headers.get("content-type");return e&&e.includes("json")?t.json():t.text()},Z5=async t=>{let e=await t.text(),n=t.headers.get("content-type");if(e&&n&&n.includes("json"))try{return JSON.parse(e)}catch{}return e},A1=(t,e)=>t?.message||t?.error||e.statusText||`HTTP ${e.status}`,NS=(t,e)=>{let n=t.body,r=e==="json"||e==="auto"&&/json/i.test(t.type);if(!r&&e!=="auto"&&e!=="text")return null;let o;try{o=r?n?JSON.parse(n):null:n}catch{return!1}return{data:o,error:null,status:t.status}},en=async(t,e,n,r)=>{let o=n??"auto";if(!Ph.includes(o))throw new TypeError(`@symbo.ls/fetch rest: unknown responseType "${o}" \u2014 use one of: ${Ph.join(", ")}`);x1();try{return await C1(t,e,o,r)}finally{k1()}},C1=async(t,e,n,r)=>{let o=r?await r:null;if(o&&o.seeded===!0){let i=NS(o,n);if(o.taken&&i!==!1){let a=i||await C1(t,e,n,Promise.resolve(new Response(o.body,{status:o.status,headers:{"content-type":o.type}})));return Oh(a,o.taken),a}if(i)return i;o=i===!1?null:new Response(o.body,{status:o.status,headers:{"content-type":o.type}})}let s=o||await globalThis.fetch(t,e);if(n==="auto"){let i=await X5(s);return{data:i,error:s.ok?null:A1(i,s),status:s.status}}if(!s.ok){let i=await Z5(n==="response"?s.clone():s);return{data:n==="response"?s:i,error:A1(i,s),status:s.status}}return{data:await Y5[n](s),error:null,status:s.status}},J5=["FormData","Blob","File","URLSearchParams","ReadableStream","ArrayBuffer"],Q5=t=>t!==null&&typeof t=="object"&&(ArrayBuffer.isView(t)||J5.includes(T1(t))),O1=t=>Array.isArray(t)?t:typeof t.entries=="function"?t.entries():Object.entries(t),IS=(...t)=>{let e={},n=new Map;for(let r of t)if(r)for(let[o,s]of O1(r)){let i=o.toLowerCase();if(n.has(i)&&delete e[n.get(i)],s==null){n.delete(i);continue}n.set(i,o),e[o]=s}return e},t6={"Content-Type":"application/json"},e6={"Content-Type":void 0},n6=t=>{if(!t||typeof t!="object")return null;let e={};for(let{header:n,param:r}of ES(t.query))e[n]=r;return{params:e,rpc:t.rpc==="get"}},r6="content-type",hf=(t,e)=>{let n=Object.keys(e);if(!n.length)return t;let r=new URL(t);for(let o of n)r.searchParams.set(o,e[o]);return r.toString()},o6=async({url:t,headers:e,auth:n,fetchOptions:r,early:o,reads:s,seed:i})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return Lh(t,e,n,r,o,s,i)},Lh=(t,e={},n,r={},o,s,i)=>{let a=n?.token||null,c=o1(r1(o,s),e,i),l=n6(s),f=b=>{if(!l)return null;let _={},A={},C={};for(let O in b){let N=O.toLowerCase();if(N==="authorization")return null;if(N===r6)continue;A[O]=b[O];let F=l.params[N];F?C[F]=b[O]:_[O]=b[O]}return{headers:_,adoptHeaders:A,query:C}},u=b=>{let _="";for(let A in b){let C=A.toLowerCase();if(C==="accept-language")_=String(b[A]);else if(c.carried[C]!==b[A])return null}return _},d=(b,_)=>{if(!c)return null;let A=u(_);if(A===null)return null;try{let C=b();return vS(mo(C,A),c.maxAge)||g1(C,A,c.maxAge)}catch{return null}},p=(b,_,A)=>{if(!c)return null;let C=u(_),O=A??"auto";if(C===null||!Ph.includes(O))return null;try{return m1(mo(b,C),b,C,c.maxAge,N=>NS(N,O)||null)}catch{return null}},g=(b,_,A,C,O,N,F)=>{if(!c||!c.seeded)return null;let $="";for(let Z in _){let U=Z.toLowerCase();if(U==="accept-language")$=String(_[Z]);else if(U!=="accept")return null}try{return vS(mo(b,$),c.maxAge,()=>m(A,C,O,b,N,F))}catch{return null}},h=(b,_,A,C,O,N,F)=>{if(!c||!c.seeded)return null;let $="";for(let U in _){let J=U.toLowerCase();if(J==="accept-language")$=String(_[U]);else if(J!=="accept")return null}let Z=F??"auto";if(!Ph.includes(Z))return null;try{return _1(mo(b,$),c.maxAge,()=>m(A,C,O,b,N,F),U=>NS(U,Z)||null)}catch{return null}},m=(b,_,A,C,O,N)=>({method:b,from:_,params:A,send:()=>en(C,O,N,null)}),y=()=>a?{Authorization:`Bearer ${a}`}:null,x=b=>IS(e,y(),b),E=b=>({...r,...b}),T=(b,_,A)=>{if(!Q5(_))return E({method:b,headers:IS(e,y(),t6,A),body:JSON.stringify(_)});let C={method:b,headers:IS(e,y(),e6,A),body:_};return T1(_)==="ReadableStream"&&(C.duplex="half"),E(C)},S=(b,_)=>{let A=_||t;if(b&&(b.startsWith("http://")||b.startsWith("https://")))return b;let C=b&&!b.startsWith("/")?"/":"";return`${A}${C}${b||""}`};return{name:"rest",setToken:b=>{a=b},getSession:async()=>{if(!n?.sessionUrl)return a?{token:a}:null;let b=await en(S(n.sessionUrl,n.baseUrl),E({headers:x()}));return b.error?null:b.data},signIn:async b=>{if(!n?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let _=await en(S(n.signInUrl,n.baseUrl),T("POST",b));return _.data?.token&&(a=_.data.token),_},signOut:async()=>(n?.signOutUrl&&await en(S(n.signOutUrl,n.baseUrl),E({method:"POST",headers:x()})),a=null,{error:null}),select:({from:b,params:_,select:A,limit:C,offset:O,order:N,single:F,headers:$,baseUrl:Z,responseType:U})=>{let J=pf(Z||t,b||"",MS({params:_,select:A,limit:C,offset:O,order:N,single:F})),ft=x($),et=f(ft);if(et){let G=E({headers:et.headers}),K=hf(J,et.query);return en(K,G,U,g(K,et.headers,"select",b,_,G,U)||d(()=>J,et.adoptHeaders))}let Q=E({headers:ft});return en(J,Q,U,g(J,Q.headers,"select",b,_,Q,U)||d(()=>J,Q.headers))},seeded:({method:b,from:_,params:A,select:C,limit:O,offset:N,order:F,single:$,headers:Z,baseUrl:U,responseType:J,read:ft})=>{if(!c)return null;if(b==="select"){let et=pf(U||t,_||"",MS({params:A,select:C,limit:O,offset:N,order:F,single:$})),Q=x(Z),G=f(Q);if(G){let it=E({headers:G.headers});return c.seeded&&h(hf(et,G.query),G.headers,"select",_,A,it,J)||p(et,G.adoptHeaders,J)}let K=E({headers:Q});return c.seeded&&h(et,K.headers,"select",_,A,K,J)||p(et,K.headers,J)}if(b==="rpc"){if(!(ft===!0&&l&&l.rpc&&kS(A)))return null;let et=f(x(Z));if(!et)return null;let Q;try{Q=pf(U||t,`rpc/${_}`,A)}catch{return null}let G=E({method:"GET",headers:et.headers});return c.seeded&&h(hf(Q,et.query),et.headers,"rpc",_,A,G,J)||p(Q,et.adoptHeaders,J)}return null},rpc:async({from:b,params:_,headers:A,baseUrl:C,responseType:O,read:N})=>{let F=kS(_),$=()=>pf(C||t,`rpc/${b}`,_),Z=K=>en(S(`rpc/${b}`,C),T("POST",_,A),O,K),U=x(A),J=N===!0&&l&&l.rpc&&F?f(U):null,ft=null;if(J)try{ft=$()}catch{ft=null}if(!ft)return Z(c&&c.rpc&&F?d($,U):null);let et=E({method:"GET",headers:J.headers}),Q=hf(ft,J.query),G=await en(Q,et,O,g(Q,J.headers,"rpc",b,_,et,O)||d(()=>ft,J.adoptHeaders));return G.status===405?Z(null):G},insert:({from:b,data:_,headers:A,baseUrl:C,responseType:O})=>en(S(b,C),T("POST",_,A),O),update:({from:b,data:_,params:A,method:C,headers:O,baseUrl:N,responseType:F})=>{let $=A?.id||_?.id,Z=$?`${b}/${$}`:b;return en(S(Z,N),T(C||"PATCH",_,O),F)},upsert:({from:b,data:_,params:A,method:C,headers:O,baseUrl:N,responseType:F})=>{let $=A?.id||_?.id,Z=$?`${b}/${$}`:b;return en(S(Z,N),T(C||"PUT",_,O),F)},delete:({from:b,params:_,headers:A,baseUrl:C,responseType:O})=>{let N=_?.id,F=N?`${b}/${N}`:b;return en(S(F,C),E({method:"DELETE",headers:x(A)}),O)}}}});var L1={};B(L1,{localAdapter:()=>P1,setup:()=>i6});var Dh,s6,i6,P1,D1=D(()=>{"use strict";Dh=(t,e)=>{if(!e)return!0;for(let n in e){let r=e[n];if(r===null){if(t[n]!==null&&t[n]!==void 0)return!1}else if(Array.isArray(r)){if(!r.includes(t[n]))return!1}else if(typeof r=="object"){for(let o in r)if(o==="gt"&&!(t[n]>r[o])||o==="gte"&&!(t[n]>=r[o])||o==="lt"&&!(t[n]<r[o])||o==="lte"&&!(t[n]<=r[o])||o==="neq"&&t[n]===r[o]||o==="like"&&!String(t[n]).includes(r[o]))return!1}else if(t[n]!==r)return!1}return!0},s6=(t,{order:e,limit:n,offset:r,single:o})=>{let s=[...t];if(e){let i=typeof e=="string"?e:e.by,a=e.asc!==!1;s.sort((c,l)=>c[i]<l[i]?a?-1:1:c[i]>l[i]?a?1:-1:0)}return r&&(s=s.slice(r)),n&&(s=s.slice(0,n)),o?{data:s[0]||null,error:null}:{data:s,error:null}},i6=async({data:t,...e})=>P1(t,e),P1=(t={},e={})=>{let n={},r={},o=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=f=>{if(!n[f])if(o)try{let u=localStorage.getItem(s+f);n[f]=u?JSON.parse(u):t[f]||[]}catch{n[f]=t[f]||[]}else n[f]=t[f]||[];return n[f]},a=f=>{if(o)try{localStorage.setItem(s+f,JSON.stringify(n[f]))}catch{}},c=(f,u,d,p)=>{let g=r[f];if(g)for(let h of g)h(d,p,{event:u,table:f})},l=Date.now();return{name:"local",store:n,select:async({from:f,params:u,...d})=>{let g=i(f).filter(h=>Dh(h,u));return s6(g,d)},insert:async({from:f,data:u})=>{let d=i(f),g=(Array.isArray(u)?u:[u]).map(h=>{let m={id:h.id||++l,...h};return d.push(m),m});a(f);for(let h of g)c(f,"INSERT",h,null);return{data:Array.isArray(u)?g:g[0],error:null}},update:async({from:f,data:u,params:d})=>{let p=i(f),g=[];for(let h=0;h<p.length;h++)if(Dh(p[h],d)){let m={...p[h]};Object.assign(p[h],u),g.push(p[h]),c(f,"UPDATE",p[h],m)}return a(f),{data:g,error:null}},upsert:async({from:f,data:u,params:d})=>{let p=i(f),g=Array.isArray(u)?u:[u],h=[];for(let m of g){let y=d||(m.id!==void 0?{id:m.id}:null),x=y?p.findIndex(E=>Dh(E,y)):-1;if(x>-1){let E={...p[x]};Object.assign(p[x],m),h.push(p[x]),c(f,"UPDATE",p[x],E)}else{let E={id:m.id||++l,...m};p.push(E),h.push(E),c(f,"INSERT",E,null)}}return a(f),{data:Array.isArray(u)?h:h[0],error:null}},delete:async({from:f,params:u})=>{let d=i(f),p=[];for(let g=d.length-1;g>=0;g--)Dh(d[g],u)&&(p.push(d[g]),d.splice(g,1),c(f,"DELETE",null,p[p.length-1]));return a(f),{data:p,error:null}},subscribe:({from:f,on:u},d)=>{r[f]||(r[f]=[]);let p=(g,h,m)=>{u&&u!=="*"&&u!==m.event||d(g,h,m)};return r[f].push(p),()=>{let g=r[f].indexOf(p);g>-1&&r[f].splice(g,1)}}}}});var Sa={};B(Sa,{EARLY_KEY:()=>Zn,SEED_BLOCK:()=>df,STALE_ATTRIBUTE:()=>TS,createAdapter:()=>d6,createEarlySeedBlock:()=>i1,createEarlySeedScript:()=>p1,default:()=>M6,earlyKey:()=>mo,executeFetch:()=>XS,fetchFunctions:()=>P6,fetchPlugin:()=>I6,fetchRunsOf:()=>h6,hasAdapter:()=>u6,initAdapterAuth:()=>Fh,parseDuration:()=>ho,queryClient:()=>R6,registerAdapter:()=>f6,requestsInFlight:()=>E1,resolveDb:()=>U1,revalidateSeed:()=>L6,seedFromPage:()=>tR,seedIsStale:()=>u1,whenRequestsIdle:()=>v1,whenSeedTaken:()=>f1});var a6,j1,Ih,Ss,Mh,US,c6,l6,f6,u6,d6,U1,Uh,VS,V1,p6,h6,z1,Cn,I1,nn,Vh,FS,zh,ba,ya,$h,zS,Bh,H1,Hh,W1,g6,Nh,m6,M1,BS,K1,q1,ma,N1,y6,G1,b6,Y1,bf,_a,mf,_f,xs,GS,Fh,YS,On,Qn,gf,wa,_6,HS,tr,jh,w6,WS,er,$1,X1,Er,S6,x6,k6,E6,jS,yf,v6,Wh,Z1,KS,qS,J1,Q1,A6,T6,F1,C6,tR,O6,XS,R6,B1,P6,L6,D6,I6,M6,Kh=D(()=>{"use strict";M();Mt();ga();LS();xS();R1();ga();DS();a6=["select","rpc","insert","update","upsert","delete","subscribe"],j1={rest:()=>Promise.resolve($S),local:()=>Promise.resolve().then(()=>(D1(),L1))},Ih=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),Ss=(()=>{if(typeof globalThis<"u"&&globalThis[Ih])return globalThis[Ih];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Ih,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Ih]}catch{}return t})(),Mh=Symbol.for("@symbo.ls/fetch:PENDING_ADAPTERS"),US=(()=>{if(typeof globalThis<"u"&&globalThis[Mh])return globalThis[Mh];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Mh,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Mh]}catch{}return t})(),c6=5e3,l6=t=>new Promise(e=>{if(Ss[t])return e(Ss[t]);let n=US[t]||=[],r=!1,o=()=>{r||(r=!0,e(Ss[t]||null))};n.push(o),setTimeout(o,c6)}),f6=(t,e)=>{Ss[t]=e;let n=US[t];if(n&&n.length){US[t]=[];for(let r of n)r()}},u6=t=>typeof t=="string"&&!!(Ss[t]||j1[t]),d6=t=>{let e={};for(let n of a6)t[n]&&(e[n]=t[n]);return e.name=t.name||"custom",e},U1=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...n}=t,r=typeof e=="string"?e:typeof t=="string"?t:null;if(!r)return null;let o=Ss[r]||j1[r];if(!o&&(o=await l6(r),!o))throw new Error(`Unknown db adapter: "${r}". Use registerAdapter() for adapters with optional deps.`);let s=await o();if(!s||typeof s.setup!="function")throw new Error(`Adapter "${r}" loader returned a module without a setup() function. Got keys: [${Object.keys(s||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return s.setup(n)},Uh=t=>!!t&&!!t.isolateFetchCache,VS=Symbol.for("@symbo.ls/fetch:runs"),V1=t=>(t.method==="select"||t.method==="rpc")&&!bf(t)&&!t.infinite&&!wa(t),p6=(t,e,n)=>{if(typeof n!="number")return;let r=t[VS];if(!r){r=new Map;try{Object.defineProperty(t,VS,{value:r,configurable:!0})}catch{return}}let o=r.get(e);o||r.set(e,o=new Set),o.add(n)},h6=(t,e=Rn)=>{let n=t&&t[VS],r={};if(!n)return r;for(let[o,s]of n){if(!o||!o.__ref)continue;let i;try{i=e(o)}catch{continue}if(typeof i!="string")continue;let a=r[i]||(r[i]=[]);for(let c of s)a.includes(c)||a.push(c);a.sort((c,l)=>c-l)}return r},z1=()=>({cache:new Map,subscribers:new Map,active:new Map,invalidatedAt:new Map,mounted:new Set}),Cn=z1(),I1=new WeakMap,nn=t=>{if(!Uh(t))return Cn;let e=I1.get(t);return e||I1.set(t,e=z1()),e},Vh=0,FS=new WeakMap,zh=(t,e,n,r,o=t.page,s=t.cursor)=>{if(t.cache?.key)return t.cache.key;let{from:i,method:a,infinite:c}=t,l=n?`${n}:`:"",f=r?`:${r}`:"",u=o?":p"+JSON.stringify(o):"",d=s!=null?":c"+JSON.stringify(s):"";return`${i}:${a}:${l}${JSON.stringify(e||"")}${c?":infinite":""}${u}${d}${f}`},ba=(t,e)=>t.cache.get(e)||null,ya=(t,e,n,r,o=++Vh,s=!1)=>{let i={data:n,error:r,time:Date.now(),stale:s,seq:o};t.cache.set(e,i);let a=t.subscribers.get(e);if(a)for(let c of a)L(c)&&c(i);return i},$h=(t,e,n)=>{let r=e?t.cache.get(e):null;return r&&!r.error&&r.seq>n?r:null},zS=(t,e,n)=>(t.invalidatedAt.get(e)||0)>n,Bh=(t,e)=>{t.invalidatedAt.set(e,++Vh)},H1=(t,e)=>{t.cache.delete(e),Bh(t,e)},Hh=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)}:v(t)?{staleTime:ho(t),gcTime:3e5}:{staleTime:ho(t.stale||t.staleTime)||6e4,gcTime:ho(t.gc||t.gcTime||t.expire)||3e5,key:t.key},W1=t=>!!t.ref&&t.element.__ref===t.ref,g6=({config:t,element:e,context:n})=>{try{return GS(t,e,n)}catch{return null}},Nh=null,m6=()=>{Nh||(Nh=setInterval(()=>{let t=Date.now(),{cache:e,subscribers:n,active:r,invalidatedAt:o,mounted:s}=Cn;for(let[i,a]of e){let c=n.get(i);!(c&&c.size>0)&&t-a.time>(a.gcTime||3e5)&&e.delete(i)}for(let[i]of o)!e.has(i)&&!r.has(i)&&o.delete(i);for(let i of s)W1(i)||s.delete(i)},3e4),Nh.unref&&Nh.unref())};m6();M1=3,BS=t=>Math.min(1e3*2**t,3e4),K1=(t,e)=>{let n=t.retry;return n===void 0&&e?{count:0}:n===!1?{count:0}:n===!0||n===void 0?{count:M1,delay:BS}:typeof n=="number"?{count:n,delay:BS}:{count:n.count??M1,delay:L(n.delay)?n.delay:typeof n.delay=="number"?()=>n.delay:BS}},q1=async(t,e)=>{let{count:n,delay:r}=e,o;for(let s=0;s<=n;s++)try{let i=await t();if(i?.error){if(o=i.error,s<n){let a=L(r)?r(s,o):r;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(o=i,s<n){let a=L(r)?r(s,i):r;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},ma={focus:new Set,online:new Set},N1=!1,y6=()=>{if(N1||typeof window>"u")return;N1=!0;let t=()=>{for(let n of ma.focus)n()},e=()=>{for(let n of ma.online)n()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},G1=(t,e)=>{let n=e.__ref;if(t===!0)return{from:n.__state||e.key,method:"select",query:!0,on:"create"};if(v(t))return{from:t,method:"select",query:!0,on:"create"};if(k(t)){let r={...t};return r.from=r.from||n.__state||e.key,r.method=r.method||"select",r.on=r.on||"create",r.query===void 0&&(r.query=!0),r}return null},b6=["insert","update","upsert","delete"],Y1=t=>b6.includes(t),bf=t=>t.mutation===!0?!0:t.mutation===!1||t.method!=="rpc"?!1:t.on==="submit"||t.on==="click"||t.invalidates!=null,_a=(t,e)=>{let n=t?.state?.root||e?.state?.root;if(n?.lang)return n.lang},mf=(t,e)=>{let r=(t?.state?.root||e?.state?.root)?.__fetchScope;return r?String(r):void 0},_f=(t,e,n)=>{let r;if(!t)r=void 0;else if(L(t))r=t(e,e.state);else{r={};for(let o in t){let s=t[o];r[o]=L(s)?s(e,e.state):s}}return r},xs=(t,e)=>L(t)?t(e,e.state):t,GS=(t,e,n)=>zh(t,_f(t.params,e,n),mf(e,n),_a(e,n),xs(t.page,e),xs(t.cursor,e)),Fh=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let n=(r,o)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:r,session:o,loading:!1}})};try{let r=await t.getSession();n(r?.user||null,r)}catch(r){console.warn("[fetch] Failed to restore auth session:",r.message)}t.onAuthStateChange&&t.onAuthStateChange((r,o)=>{n(o?.user||null,o)})},YS=async(t,e)=>{if(L(t.select))return t.auth!==!1&&await Fh(t,e),t;if(t.__resolved)return t.auth!==!1&&await Fh(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=U1(t);let n=await t.__resolving;return delete t.__resolving,n?(n.auth=t.auth,n.url=t.url,n.key=t.key,t.__resolved=n,e.fetch=n,t.auth!==!1&&await Fh(n,e),n):null},On=(t,e,...n)=>{let r=L(t[e])?t[e]:null;r&&r.call(t,...n,t,t.state,t.context)},Qn=(t,e,n,...r)=>{let o=t&&L(t[n])?t[n]:null;o&&o.call(e,...r,e,e.state,e.context)},gf=t=>{let e={},n=t.node;if(!n)return e;if(n.tagName==="FORM"){let o=new FormData(n);for(let[s,i]of o.entries())e[s]=i;return e}let r=n.querySelectorAll("input, textarea, select");for(let o=0;o<r.length;o++){let s=r[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},wa=t=>t.responseType==="stream"||t.responseType==="response",_6=["Blob","File","ArrayBuffer","ReadableStream","Response"],HS=t=>t!==null&&typeof t=="object"&&(ArrayBuffer.isView(t)||_6.includes(Object.prototype.toString.call(t).slice(8,-1))),tr=(t,e,n,r={})=>{if(!n&&HS(e))return;let o=n&&n.startsWith("~/"),s=o&&t.state?.root||t.state;if(s?.update)if(o){let i=n.slice(2);e&&typeof e=="object"&&!Array.isArray(e)&&!HS(e)&&i in e?s.update(e,{preventFetch:!0,...r}):s.update({[i]:e},{preventFetch:!0,...r})}else{let i=n?{[n]:e}:e;s.update(i,{preventFetch:!0,...r})}},jh=Object.freeze({isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),w6=Object.freeze({isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),WS=t=>({isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:t,status:"error",fetchStatus:"idle"}),er=(t,e)=>{let n=t?.__ref;n&&(n.__fetchStatus={...e,isError:!!e.error},n.__fetching=e.isFetching,n.__fetchError=e.error)},$1=(t,e,n)=>{let r=t.__pages&&t.__pages.length?t.__pages:[n];L(e.getNextPageParam)&&(t.__nextPageParam=e.getNextPageParam(r[r.length-1],r),t.__hasNextPage=t.__nextPageParam!=null),L(e.getPreviousPageParam)&&(t.__prevPageParam=e.getPreviousPageParam(r[0],r),t.__hasPreviousPage=t.__prevPageParam!=null)},X1=(t,e,n,r,o,s)=>{let{from:i,single:a,limit:c,offset:l,order:f,headers:u,baseUrl:d,responseType:p}=t,g={from:i,select:e,params:n,single:a,limit:c,offset:l,order:f,headers:u,baseUrl:d};if(p!==void 0&&(g.responseType=p),r&&(g.headers={...g.headers,"Accept-Language":r}),o!==void 0){if(k(o))o.offset!==void 0&&(g.offset=o.offset),o.limit!==void 0&&(g.limit=o.limit),o.cursor!==void 0&&(g.params={...g.params,cursor:o.cursor});else if(typeof o=="number"){let h=t.pageSize||c||20;g.offset=(o-1)*h,g.limit=h}}return s!==void 0&&(g.params={...g.params,cursor:s}),g},Er=async(t,e,n,r={})=>{let o=n?.fetch;if(!o||!e||!e.__ref)return;let s=e.__ref,i=mf(e,n);(!s.__fetchScopeOwner||s.__fetchScopeOwner.scope!==i)&&(s.__fetchScopeOwner={scope:i});let a=s.__fetchScopeOwner,c=()=>e.__ref===s&&s.__fetchScopeOwner===a&&mf(e,n)===i;if(t.enabled===!1||L(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||L(t.skip)&&t.skip(e,e.state))return;Uh(n)&&V1(t)&&p6(n,e,t.__slot);let l=await YS(o,n);if(!l||!c())return;let{from:f,method:u,query:d,params:p,cache:g,transform:h,single:m,auth:y,fields:x,as:E,limit:T,offset:S,order:w,headers:b,baseUrl:_,responseType:A,page:C,cursor:O,infinite:N,placeholderData:F,initialData:$,select:Z,keepPreviousData:U}=t,J=W=>(L(Z)&&(W=Z(W,e,e.state)),h&&(W=h(W,e,e.state)),W),ft=W=>{er(e,WS(W)),On(e,"onFetchError",W),Qn(t,e,"onFetchError",W)},et=v(Z)?Z:void 0;if(d&&L(e.getQuery)){let W=e.getQuery(l.name||"paths");W&&(et=W.select||W.length&&W.join(",")||et)}let Q=_f(p,e,n),G=xs(C,e),K=xs(O,e),it=bf(t),ot=wa(t)||it?null:Hh(g),gt=K1(t,it||Y1(u)),X=_a(e,n),q=ot?zh(t,Q,i,X,G,K):null,Rt=nn(n);if(!s.__fetchInitialized&&q&&(s.__fetchInitialized=!0,$!==void 0)){let W=L($)?$():$;ya(Rt,q,W,null)}if((u==="select"||u==="rpc")&&q&&ot&&!r.refresh&&!r.force){let W=ba(Rt,q);if(W&&!W.error){let Ct=Date.now()-W.time,tt=W.stale||Ct>(ot.staleTime||0);N&&I(W.data)&&!s.__pages&&(s.__pages=[W.data],$1(s,t,W.data));let at=J(W.data);if(!c())return;if(!tt){er(e,jh),tr(e,at,E),s.__seededOnCreate&&s.__seededOnCreate.delete(q)&&(On(e,"onFetchComplete",at),Qn(t,e,"onFetchComplete",at));return}tr(e,at,E)}else if(F!==void 0){let Ct=L(F)?F(e,e.state):F;Ct!==void 0&&tr(e,Ct,E)}}let yt=q&&!r.force?Rt.active.get(q):null;if(yt&&!zS(Rt,q,FS.get(yt)||0)){try{let W=await Promise.race([yt,new Promise((Ct,tt)=>setTimeout(()=>tt("DEDUP_TIMEOUT"),15e3))]);if(!c())return;if(W?.error)ft(W.error);else if(W?.data!==void 0){let Ct=!N&&$h(Rt,q,FS.get(yt)||0),tt=J(Ct?Ct.data:W.data);if(!c())return;tr(e,tt,E),On(e,"onFetchComplete",tt),Qn(t,e,"onFetchComplete",tt)}}catch(W){if(!c())return;W!=="DEDUP_TIMEOUT"&&ft(W)}return}let jt=!ba(Rt,q)?.data;er(e,{isFetching:!0,isLoading:jt,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),On(e,"onFetchStart"),Qn(t,e,"onFetchStart");let Tt=n?.analyze?.emitNetwork,Pt=Tt?typeof performance<"u"?performance.now():Date.now():0;Tt&&Tt({phase:"start",mode:"query",from:f,method:u,cacheKey:q,lang:X});let Ze=async()=>{if(!c())return;if(y!==!1&&l.auth!==!1&&l.getSession){let tt=await l.getSession();if(!c())return;if(y===!0&&!tt){let at={message:"Not authenticated"};return ft(at),{data:null,error:at}}}let W=l[u];if(!L(W))return{data:null,error:{message:`Method "${u}" not found on adapter`}};let Ct=X1(t,et,Q,_a(e,n),G,K);if(u==="insert"||u==="update"||u==="upsert"){let tt;if(x===!0||t.on==="submit")tt=gf(e);else if(I(x)){let at=gf(e);tt={};for(let Je of x)tt[Je]=at[Je]}else e.state?.parse?tt=e.state.parse():k(e.state)&&(tt={...e.state});h&&(tt=h(tt,e,e.state)),Ct.data=tt}if(u==="rpc"){let tt=Q;if(t.on==="submit"){let at=gf(e);tt=t.transformParams?t.transformParams(at,e,e.state):at}Ct.params=tt,Ct.read=!it&&t.read!==!1}if(u==="subscribe"){if(L(s.__unsubscribe)){let at=s.__unsubscribe;s.__unsubscribe=null;try{at()}catch{}}let tt=l.subscribe({from:f,params:Q,on:t.subscribeOn},(at,Je,u_)=>{c()&&(tr(e,at,E),On(e,"onFetchComplete",at),Qn(t,e,"onFetchComplete",at))});return c()?(s.__unsubscribe=tt,{data:null,error:null,subscribed:!0}):(L(tt)&&tt(),{data:null,error:null,subscribed:!0})}return W(Ct)},It=++Vh,Me=q1(Ze,gt);FS.set(Me,It),q&&Rt.active.set(q,Me);try{let W=await Me;if(q&&W&&!it&&OS(W,q),it&&t.invalidates&&W&&!W.error&&!W.subscribed&&Z1(Rt,t.invalidates,f),!c()||W?.subscribed)return;let{data:Ct,error:tt}=W||{};if(tt){q&&!$h(Rt,q,It)&&ya(Rt,q,null,tt,It),ft(tt),Tt&&Tt({phase:"error",mode:"query",from:f,method:u,cacheKey:q,error:tt.message||tt,durationMs:(typeof performance<"u"?performance.now():Date.now())-Pt});return}if(Ct!==void 0){let at=Ct;if((u==="select"||u==="rpc")&&q){let u_=!N&&$h(Rt,q,It);if(u_)at=u_.data;else{let N4=ya(Rt,q,Ct,null,It,zS(Rt,q,It));N4.gcTime=ot?.gcTime||3e5}}let Je=at;if(N&&I(Ct)&&((!s.__pages||!r.direction)&&(s.__pages=[]),r.direction==="previous"?s.__pages.unshift(Ct):s.__pages.push(Ct),Je=s.__pages.flat(),$1(s,t,Ct)),Je=J(Je),!c())return;er(e,jh),(!U||Je!==void 0)&&tr(e,Je,E),On(e,"onFetchComplete",Je),Qn(t,e,"onFetchComplete",Je),Tt&&Tt({phase:"success",mode:"query",ok:!0,from:f,method:u,cacheKey:q,durationMs:(typeof performance<"u"?performance.now():Date.now())-Pt})}}catch(W){if(!c())return;ft(W),Tt&&Tt({phase:"error",mode:"query",from:f,method:u,cacheKey:q,error:W.message||String(W),durationMs:(typeof performance<"u"?performance.now():Date.now())-Pt})}finally{q&&Rt.active.get(q)===Me&&Rt.active.delete(q)}},S6=(t,e,n)=>{let r=t.on,o=e.__ref;if(!o)return;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||Er;if(r==="submit"){let i=c=>{c.preventDefault(),s(t,e,n)},a=e.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(r==="click"){let i=()=>s(t,e,n),a=e.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else r==="stateChange"&&x6(t,e,n,s)},x6=(t,e,n,r)=>{let o=e.__ref,s,i=Y(()=>{let a;try{a=JSON.stringify([_f(t.params,e,n)??null,L(t.enabled)?!!t.enabled(e,e.state):t.enabled!==!1,L(t.skip)?!!t.skip(e,e.state):t.skip===!0,xs(t.page,e)??null])}catch{return}if(s===void 0){s=a;return}a!==s&&(s=a,queueMicrotask(()=>r(t,e,n)))});Array.isArray(o.__effects)?o.__effects.push(i):o.__fetchListeners.push(()=>i.dispose())},k6=(t,e,n)=>{let r=e.__ref;r.__fetchCleanups||(r.__fetchCleanups=[]),y6();let o=t.refetchInterval;if(o){let c=typeof o=="number"?o:ho(o);if(c>0){let l=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&Er(t,e,n,{force:!0})},c);r.__fetchCleanups.push(()=>clearInterval(l))}}let s=wa(t),i=t.refetchOnWindowFocus===void 0?!s:t.refetchOnWindowFocus!==!1,a=t.refetchOnReconnect===void 0?!s:t.refetchOnReconnect!==!1;if(i){let c=()=>{let l=GS(t,e,n),f=ba(nn(n),l),u=Hh(t.cache);(!f||f.stale||Date.now()-f.time>(u?.staleTime||0))&&Er(t,e,n,{force:!0})};ma.focus.add(c),r.__fetchCleanups.push(()=>ma.focus.delete(c))}if(a){let c=()=>Er(t,e,n,{force:!0});ma.online.add(c),r.__fetchCleanups.push(()=>ma.online.delete(c))}},E6=(t,e,n)=>{if(!e.optimistic)return null;let r=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():k(t.state)?{...t.state}:t.state;r.__optimisticSnapshot=s;let i=L(e.optimistic)?e.optimistic(n,s,t):e.optimistic;return i!==void 0&&tr(t,i,o),s},jS=(t,e)=>{let n=t.__ref;if(!n||!e.optimistic)return;let r=n.__optimisticSnapshot;r!==void 0&&(tr(t,r,e.as),delete n.__optimisticSnapshot)},yf=t=>{if(!t)return()=>!0;if(v(t))return e=>e.includes(t);if(I(t)){let e=t.join(":");return n=>n.includes(e)}return t instanceof RegExp?e=>(t.lastIndex=0,t.test(e)):L(t)?e=>{try{return!!t(e)}catch{return!1}}:()=>!1},v6=(t,e)=>{let n=[];for(let r of t.mounted){if(!W1(r)){t.mounted.delete(r);continue}let o=g6(r);o&&e(o)&&n.push(Er(r.config,r.element,r.context,{refresh:!0}))}return Promise.allSettled(n).then(()=>{})},Wh=(t,e)=>{AS();for(let[n,r]of t.cache)e(n)&&(r.stale=!0,Bh(t,n));for(let[n]of t.active)!t.cache.has(n)&&e(n)&&Bh(t,n);return v6(t,e)},Z1=(t,e,n)=>{let r=(I(e)?e:[e]).map(o=>o===!0||o==="*"?s=>s.startsWith(n+":"):o?yf(o):()=>!1);return Wh(t,o=>r.some(s=>s(o)))},KS=(t,e)=>{for(let[n]of t.cache)e(n)&&H1(t,n);for(let[n]of t.active)e(n)&&Bh(t,n)},qS=()=>!0,J1=(t,e)=>ba(t,e)?.data??void 0,Q1=(t,e,n)=>{let r=ba(t,e),o=L(n)?n(r?.data):n;ya(t,e,o,null)},A6=async(t,e,n)=>{let r=n?.fetch;if(!r)return;let o=await YS(r,n);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:u,auth:d,headers:p,baseUrl:g,responseType:h,invalidates:m,optimistic:y,onMutate:x,onSuccess:E,onError:T,onSettled:S}=t,w;if(c===!0||u==="submit")w=gf(e);else if(I(c)){let C=gf(e);w={};for(let O of c)w[O]=C[O]}else e.state?.parse?w=e.state.parse():k(e.state)&&(w={...e.state});l&&(w=l(w,e,e.state)),L(x)&&x(w,e,e.state);let b=y?E6(e,t,w):null;er(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),On(e,"onFetchStart"),Qn(t,e,"onFetchStart");let _=n?.analyze?.emitNetwork,A=_?typeof performance<"u"?performance.now():Date.now():0;_&&_({phase:"start",mode:"mutation",from:a,method:i});try{if(d!==!1&&o.auth!==!1&&o.getSession){let J=await o.getSession();if(d===!0&&!J){b!==void 0&&jS(e,t);let ft={message:"Not authenticated"};On(e,"onFetchError",ft),Qn(t,e,"onFetchError",ft);return}}let C=o[i];if(!L(C))return;let O={from:a,data:w,headers:p,baseUrl:g};h!==void 0&&(O.responseType=h),t.params&&(O.params=_f(t.params,e,n));let N=_a(e,n);N&&(O.headers={...O.headers,"Accept-Language":N});let F=K1(t,!0),$=await q1(()=>C(O),F),{data:Z,error:U}=$||{};if(U){b!==void 0&&jS(e,t),er(e,WS(U)),On(e,"onFetchError",U),L(T)&&T(U,w,e),L(S)&&S(null,U,w,e),_&&_({phase:"error",mode:"mutation",from:a,method:i,error:U.message||String(U),durationMs:(typeof performance<"u"?performance.now():Date.now())-A});return}if(delete s.__optimisticSnapshot,er(e,jh),Z!==void 0&&(f||!HS(Z))){let J=f?{[f]:Z}:Z;e.state?.update&&e.state.update(J,{preventFetch:!0})}On(e,"onFetchComplete",Z),Qn(t,e,"onFetchComplete",Z),L(E)&&E(Z,w,e),L(S)&&S(Z,null,w,e),_&&_({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-A}),m&&Z1(nn(n),m,a)}catch(C){b!==void 0&&jS(e,t),er(e,WS(C)),On(e,"onFetchError",C),Qn(t,e,"onFetchError",C),L(T)&&T(C,w,e),L(S)&&S(null,C,w,e),_&&_({phase:"error",mode:"mutation",from:a,method:i,error:C.message||String(C),durationMs:(typeof performance<"u"?performance.now():Date.now())-A})}finally{s.__fetching=!1}},T6=t=>{let e=n=>{try{n()}catch{}};for(let n of t.__fetchCleanups||[])e(n);for(let n of t.__fetchListeners||[])e(n);L(t.__unsubscribe)&&e(t.__unsubscribe);for(let n of t.__fetchMounted||[])nn(n.context).mounted.delete(n);t.__fetchCleanups=[],t.__fetchListeners=[],t.__unsubscribe=null,t.__fetchMounted=[]},F1=(t,e)=>{if(!t)return null;if(L(t.select))return t;if(t.__resolved)return t.__resolved;if(t.__resolving)return null;let n=typeof t.adapter=="string"?t.adapter:null;if(n!=="rest"||Ss[n]||!t.url)return null;let{adapter:r,...o}=t,s=Lh(o.url,o.headers,o.auth,o.fetchOptions,o.early,o.reads,o.seed);return s.auth=t.auth,s.url=t.url,s.key=t.key,t.__resolved=s,e.fetch=s,s},C6=t=>t.on==="create"&&(t.method==="select"||t.method==="rpc")&&!bf(t)&&!t.infinite&&!wa(t),tR=t=>{let e=t&&t.context;if(!e||!e.fetch||Uh(e))return;let n=t.__ref;if(!n||!t.fetch||!(w1()||c1()))return;let r;try{r=St(t.fetch,t)}catch{return}if(!r)return;let o=I(r)?r:[r],s=F1(e.fetch,e),i=s&&L(s.seeded)?l1(Rn(t)):null;for(let a=0;a<o.length;a++){let c;try{c=G1(St(o[a],t),t)}catch{continue}if(!c)continue;let l=!!i&&i.includes(a);if(l){if(!V1(c))continue}else{if(!C6(c)||c.enabled===!1||c.skip===!0)continue;try{if(L(c.enabled)&&!c.enabled(t,t.state)||L(c.skip)&&c.skip(t,t.state))continue}catch{continue}}let f=Hh(c.cache);if(!f)continue;let u=F1(e.fetch,e);if(!u||!L(u.seeded))return;O6(c,f,u,t,e,n,l)}},O6=(t,e,n,r,o,s,i)=>{let a=v(t.select)?t.select:void 0,c,l,f,u,d;try{if(t.query&&L(r.getQuery)){let x=r.getQuery(n.name||"paths");x&&(a=x.select||x.length&&x.join(",")||a)}c=_f(t.params,r,o),l=xs(t.page,r),f=xs(t.cursor,r);let y=_a(r,o);u=zh(t,c,mf(r,o),y,l,f),d=X1(t,a,c,y,l,f)}catch{return}let p=nn(o),g=ba(p,u),h,m=!1;if(g&&!g.error){if(!i||g.stale||Date.now()-g.time>(e.staleTime||0))return;h=g.data}else{t.method==="rpc"&&(d.read=t.read!==!1);let y=n.seeded({method:t.method,...d});if(!y||y.error||y.data===void 0)return;let x=ya(p,u,y.data,null);x.gcTime=e.gcTime||3e5,y.partial&&(x.stale=!0,m=!0),OS(y,u),h=y.data}s.__fetchInitialized=!0,m&&er(r,w6);try{L(t.select)&&(h=t.select(h,r,r.state)),t.transform&&(h=t.transform(h,r,r.state))}catch{return}if(m){tr(r,h,t.as);return}er(r,jh),tr(r,h,t.as),(s.__seededOnCreate||(s.__seededOnCreate=new Set)).add(u)},XS=(t,e,n,r)=>{if(!t||!r?.fetch)return;let s=St(t,e);if(!s)return;let i=[],a=I(s)?s:[s];for(let u=0;u<a.length;u++){let d=G1(I(s)?St(a[u],e):a[u],e);d&&(d.__slot=u,i.push(d))}let c=e.__ref,l=nn(r);if(c.__fetchMounted)for(let u of c.__fetchMounted)l.mounted.delete(u);c.__fetchMounted=[],!c.__fetchDisposer&&I(c.__effects)&&(c.__fetchDisposer={dispose:()=>T6(c)},c.__effects.push(c.__fetchDisposer));let f=!Uh(r);for(let u of i){let d=Y1(u.method),p=d?A6:Er,g=!d&&!bf(u)&&u.method!=="subscribe";if(u.on==="create"?p(u,e,r):queueMicrotask(()=>S6({...u,__runner:p},e,r)),g&&u.on==="create"&&(f&&(u.refetchInterval||u.refetchOnWindowFocus!==!1||u.refetchOnReconnect!==!1)&&k6(u,e,r),!wa(u))){let h={element:e,ref:c,config:u,context:r};l.mounted.add(h),c.__fetchMounted.push(h)}}c.refetch=u=>{for(let d of i)Er(d,e,r,{force:!0,...u})},c.fetchNextPage=()=>{let u=i[0];if(!u||!u.infinite)return;let d=c.__nextPageParam;if(d==null)return;let p={...u,cursor:d};Er(p,e,r,{direction:"next",force:!0})},c.fetchPreviousPage=()=>{let u=i[0];if(!u||!u.infinite)return;let d=c.__prevPageParam;if(d==null)return;let p={...u,cursor:d};Er(p,e,r,{direction:"previous",force:!0})}},R6={invalidateQueries:t=>Wh(Cn,yf(t)),removeQueries:t=>{KS(Cn,t?yf(t):qS)},getQueryData:t=>J1(Cn,t),setQueryData:(t,e)=>{Q1(Cn,t,e)},prefetchQuery:async(t,e)=>{let n=e?.fetch;if(!n)return;let r=nn(e),o=await YS(n,e);if(!o)return;let s=t.method||"select",i=mf(null,e),a=_a(null,e),c=zh({...t,method:s},t.params,i,a),l=o[s];if(!L(l))return;let f={from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single,headers:t.headers,baseUrl:t.baseUrl};a&&(f.headers={...f.headers,"Accept-Language":a}),t.responseType!==void 0&&(f.responseType=t.responseType),s==="rpc"&&(f.read=!bf(t)&&t.read!==!1);let u=++Vh,d=await l(f);if(d?.data!==void 0&&!d?.error&&!wa(t)&&!$h(r,c,u)){let p=ya(r,c,d.data,null,u,zS(r,c,u));p.gcTime=Hh(t.cache)?.gcTime||3e5}return d},getCache:()=>Cn.cache,clear:()=>KS(Cn,qS),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[n]of Cn.cache)n.match(/:([a-z]{2,3})$/i)&&(n.endsWith(e)||H1(Cn,n))}},B1=(t,e)=>k(t)?GS({method:"select",...t},e,e?.context):t,P6={invalidateQueries(t){return Wh(nn(this?.context),yf(t))},removeQueries(t){KS(nn(this?.context),t?yf(t):qS)},getQueryData(t){return J1(nn(this?.context),B1(t,this))},setQueryData(t,e){Q1(nn(this?.context),B1(t,this),e)}},L6=async t=>{let e=await d1();if(!e)return null;let{taken:n,config:r}=e,o=new Set,s=[];for(let c of n)c.cacheKey?o.add(c.cacheKey):s.push(c);AS();let i=[],a=async c=>{try{let l=await c.again.send();if(!l||l.error)return;let f=c.result?c.result.data:void 0;if(D6(l.data,f))return;let{method:u,from:d,params:p}=c.again;i.push({method:u,from:d,params:p,data:l.data,previous:f})}catch{}};if(await Promise.all([o.size?Wh(Cn,c=>o.has(c)):null,...s.map(a)]),i.length&&L(r.onRefresh))try{r.onRefresh(i,t)}catch(c){console.error("[@symbo.ls/fetch] seed.onRefresh failed:",c)}return{queries:o.size,reads:s.length,changed:i.length}},D6=(t,e)=>{if(t===e)return!0;try{return JSON.stringify(t)===JSON.stringify(e)}catch{return!1}},I6={name:"fetch",init(t){t.fetch&&tR(t)},create(t){let e=t.fetch;e&&(t.parent||nn(t.context).active.clear(),XS(e,t,t.state,t.context))}},M6=XS});function Sf(t){let e=this,{__ref:n}=e,r=[].concat(t),o=n.root[r[0]];if(!r||!r.length)return console.log(r,"on",e.key,"is undefined");for(;o.key===r[0]&&(r.shift(),!!r.length);)if(o=o[r[0]],!o)return;return o}function JS(t){let e=this,{parent:n}=e;if(L(t))return n.state&&t(n,n.state,n.context)?n:n.parent?n.lookup(t):void 0;if(e[t])return e[t];for(;n.param!==t;){if(n[t])return n[t];if(n=n.parent,!n)return}return n}function QS(t){let e=this,{__ref:n}=e,r=n?.__children;if(r)for(let o=0;o<r.length;o++){let s=r[o],i=e[s];if(s===t)return i;if(L(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 tx(t,e=[]){let n=this,{__ref:r}=n,o=r?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=n[i];if(i===t)e.push(a);else if(L(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 Yh(t={}){let e=this;if(e.node?.style){for(let n in t){let r=t[n],o=e[n];if(k(r)&&o)Yh.call(o,r);else if(r!=null){let s=n.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(r).replace(/\s*!important\s*$/,"");e.node.style.setProperty(s,i,"important")}}return e}}function nR(t){let e=this;if(kr("beforeRemove",e,t)===!1)return e;L(e.node.remove)?e.node.remove():co()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=Ol(e.parent.__ref.__children,e.key)),kr("remove",e,t)}function ex(t){return this[t]}function nx(t,e){let n=this;if(t)return n.update(t,e),n}function rx(t){return t?this.__ref&&this.__ref[t]:this.__ref}function ox(){let t=this.getRef("__children");return Array.isArray(t)?t.map(e=>this[e]):[]}function xf(){return this.getRef().path}function Ef(t){let e=null,n=r=>r.__element&&r.root?.isRootState;if(!this)e=eR();else if(n(this))e=this.root;else if(this.__ref&&this.__ref.path){let r=this.state&&n(this.state),o=L(this.state)&&this.parent.state&&n(this.parent.state);(r||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=eR()),t?e?.[t]:e}function vf(t){let e=this?.__ref?.root||this.getRootState()?.__element;if(!e)throw new Error(`[smbls] getRoot() could not resolve a root element for "${this?.key||"<unknown>"}" \u2014 it has no __ref (never went through create()) and no root state is registered. Answering undefined here used to no-op silently for every caller.`);return Object.keys(e).length>0&&t?e[t]:e}function Af(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function Tf(t){let e=this.getRoot()?.context;return t?e[t]:e}function Cf(t){let e=this.context;return t?e[t]:e}function Xh(){let t=this,e=[];for(let n in t)!Object.prototype.hasOwnProperty.call(t,n)||so.has(n)&&!Il.has(n)||e.push(n);return e}function Zh(t=[]){let e=this,n={},r=Xh.call(e),o=r.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<r.length;i++){let a=r[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||o&&a==="content")continue;let c=e[a];if(a==="state"){if(e.__ref&&!e.__ref.__hasRootState)continue;let l=L(c&&c.parse)?c.parse():c;n[a]=L(l)?l:JSON.parse(JSON.stringify(l||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;n[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:l,update:f,...u}=e[a];n[a]=u}else Ut(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=c)}return n}function wf(t=[],e=new WeakSet){let n=this;if(e.has(n))return;e.add(n);let r=Zh.call(n,t),o=t.length?new Set(t):null;for(let s in r){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(n,s))continue;let i=r[s];Array.isArray(i)?r[s]=i.map(a=>z(a)?wf.call(a,t,e):a):z(i)&&(r[s]=wf.call(i,t,e))}return r}function ka(...t){if(yo!=="test"&&yo!=="development")return;let e=this,{__ref:n}=e;return console.groupCollapsed(e.key),t.length?t.forEach(r=>console.log(`%c${r}:
22
+ `,"font-weight: bold",e[r])):(console.log(n.path),e.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",e[o]))),console.log(e),console.groupEnd(e.key),e}function ix(...t){(yo==="test"||yo==="development")&&console.log(...t)}function Of(...t){(yo==="test"||yo==="development")&&console.warn(...t)}function ks(...t){if(yo==="test"||yo==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&ka.call(this),new Error(...t)}}function Rf(){let t=this,{key:e,parent:n}=t,{__children:r}=n.__ref,o=r.indexOf(e),s=r[o+1];return n[s]}function Pf(t){let e=t||this,{key:n,parent:r}=e,{__children:o}=r.__ref;if(!o)return;let s=o.indexOf(n);return r[o[s-1]]}function Lf(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let n=e.data.varCaches,r={},o;for(let s in t)t[s]!==n[s]&&(o=!0,r[s]=t[s]);return{changed:s=>{if(!o)return;let i=s(r,pt(n));for(let a in r)n[a]=r[a];return i},timeout:(s,i)=>{if(!o)return;let a=setTimeout(()=>{s(r),clearTimeout(a)},i)}}}function ax(t,...e){let n=this.context,r=n.utils?.[t]||n.functions?.[t]||n.methods?.[t]||n.snippets?.[t];if(r&&!ps(r))try{let o=r.call(this,...e);return o&&typeof o.then=="function"&&o.catch(s=>{ks.call(this,s)}),o}catch(o){if(ks.call(this,o),n?.strictMode)throw o}}async function Df(){let t=this,e=t.context?.fetch;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:o}=await qh();await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await qh();await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let n=qh().then(({resolveDb:o})=>o(e));e.__resolving=n;let r=await n;if(e.__resolved=r,t.context.fetch=r,delete e.__resolving,r?.getSession){let{initAdapterAuth:o}=await qh();await o(r,t.context)}return r}function If(t){let e=this,n=t||uf.useStateQuery||e.context?.useStateQuery;if(!n)return null;let r={};if(ZS(e,r),n===!0)return r;let o=z6[n];return o?o(r):r}function cx(t,e){return!!(ao.has(t)||e?.context?.methods?.[t])}var yo,Gh,kf,xa,eR,sx,N6,qh,ZS,$6,rR,F6,B6,j6,U6,V6,z6,oR=D(()=>{"use strict";_S();fs();qt();Wn();ql();ra();SS();yo="production";Gh=null,kf=t=>{Gh=t||null},xa=(t,e)=>{t&&e&&Gh===t&&(Gh=e)},eR=()=>Gh||null;sx=(t,e,n,r)=>Object.defineProperty(t,e,{get:n,set:r});N6="[smbls] getDB needs @symbo.ls/fetch, which the smbls embed bundle does not include: add @symbo.ls/fetch to the page's importmap (the runtime import then resolves) or use the full smbls bundle.",qh=()=>Promise.resolve().then(()=>(Kh(),Sa)).catch(t=>{throw new Error(N6,{cause:t})});ZS=(t,e)=>{let n=t.__ref;if(!n)return;let r=n.__state;r&&typeof r=="string"&&$6(e,r);let o=n.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&ZS(c,e)}let s=n.contentElementKey||"content",i=t[s];i&&i.__ref&&ZS(i,e)},$6=(t,e)=>{let r=e.replaceAll("../","").replaceAll("~/","").split("/"),o=t;for(let s=0;s<r.length;s++){let i=r[s];s===r.length-1?o[i]||(o[i]=!0):(o[i]===!0&&(o[i]={}),o[i]||(o[i]={}),o=o[i])}},rR=(t,e=0)=>{let n=" ".repeat(e),r=Object.entries(t);return r.length?r.map(([s,i])=>i===!0?`${n}${s}`:`${n}${s} {
23
+ ${rR(i,e+1)}
24
24
  ${n}}`).join(`
25
- `):""},s6=t=>`{
26
- ${M1(t,1)}
27
- }`,i6=t=>{let e={fields:{},include:[]},n=(r,o)=>{let s=[];for(let i in r)if(r[i]===!0)s.push(i);else{let a=o?`${o}.${i}`:i;e.include.push(a),n(r[i],a)}s.length&&(e.fields[o||"_root"]=s)};return n(t,""),e},a6=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let l=e(s[c]),f=[];l.select&&f.push(`$select=${l.select}`),l.expand&&f.push(`$expand=${l.expand}`),a.push(f.length?`${c}(${f.join(";")})`:c)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:n,expand:r}=e(t),o=[];return n&&o.push(`$select=${n}`),r&&o.push(`$expand=${r}`),o.join("&")},c6=(t,e)=>{let n=[],r=[],o=new Set,s=(f,u,d)=>{o.add(u),d&&r.push(`LEFT JOIN ${u} ON ${u}.${d}_id = ${d}.id`);for(let p in f)f[p]===!0?n.push(`${u}.${p}`):s(f[p],p,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=n.length?n.join(", "):"*",l=r.length?`
25
+ `):""},F6=t=>`{
26
+ ${rR(t,1)}
27
+ }`,B6=t=>{let e={fields:{},include:[]},n=(r,o)=>{let s=[];for(let i in r)if(r[i]===!0)s.push(i);else{let a=o?`${o}.${i}`:i;e.include.push(a),n(r[i],a)}s.length&&(e.fields[o||"_root"]=s)};return n(t,""),e},j6=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let l=e(s[c]),f=[];l.select&&f.push(`$select=${l.select}`),l.expand&&f.push(`$expand=${l.expand}`),a.push(f.length?`${c}(${f.join(";")})`:c)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:n,expand:r}=e(t),o=[];return n&&o.push(`$select=${n}`),r&&o.push(`$expand=${r}`),o.join("&")},U6=(t,e)=>{let n=[],r=[],o=new Set,s=(f,u,d)=>{o.add(u),d&&r.push(`LEFT JOIN ${u} ON ${u}.${d}_id = ${d}.id`);for(let p in f)f[p]===!0?n.push(`${u}.${p}`):s(f[p],p,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=n.length?n.join(", "):"*",l=r.length?`
28
28
  `+r.join(`
29
29
  `):"";return`SELECT ${c}
30
- FROM ${a}${l}`},l6=t=>{let e=[],n=(r,o)=>{for(let s in r){let i=o?`${o}/${s}`:s;r[s]===!0?e.push(i):n(r[s],i)}};return n(t,""),e},f6={graphql:s6,"json-api":i6,odata:a6,sql:c6,paths:l6}});var u6,JS,$1=D(()=>{"use strict";zp();u6={snapshotId:Fl},JS=(t,e)=>{let n=t.__ref,{currentSnapshot:r,calleeElement:o}=e;if(!o||o===t){let a=u6.snapshotId();return n.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return r<i?[i,o,!0]:[i,o]}});var zh,QS,F1=D(()=>{zh=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),QS=t=>typeof t=="string"&&zh.has(t)});var Hh,ba,wr,vn,Wh,Kh,qh,ws,Ss,tx,B1=D(()=>{"use strict";Rl();Hh="smbls_lang",ba=t=>t&&t.storageLangKey||Hh,wr=(t,e)=>t||e&&e.defaultLang||"en",vn=(t,e=!0)=>{let n=t&&t.languages;if(typeof n=="function")try{n=n(t)}catch{n=null}return Array.isArray(n)&&n.length?n.filter(r=>typeof r=="string"):e?Object.keys(t&&t.translations||{}):[]},Wh=(t,e)=>{if(!e)return null;let n=vn(e),r=/^\/([^/?#]+)/.exec(String(t||""));if(!r)return null;let o=r[1].toLowerCase();for(let s of n)if(typeof s=="string"&&s.toLowerCase()===o)return s;return null},Kh=(t,e)=>{let n=vn(t),r=t&&t.addressLang,o=r&&typeof r=="object"&&!Array.isArray(r),s=o?r.mode:r,i={languages:n,address:s===!1?!1:s==="fallback"||s==="strict"?s:!0,fallback:wr(e,t)},a=o&&Array.isArray(r.except)?r.except.filter(c=>typeof c=="string"&&c):[];return a.length&&(i.except=a),i},qh=(t,e,n)=>{if(t&&t.except&&t.except.length){let o=String(e||"").split(/[?#]/)[0].split("/").filter(Boolean);for(let s=0;s<t.except.length;s++){let i=String(t.except[s]).split("/").filter(Boolean);if(i[i.length-1]==="*"&&i.pop(),i.length>o.length)continue;let a=!0;for(let c=0;c<i.length&&a;c++)i[c].charAt(0)!==":"&&i[c]!==o[c]&&(a=!1);if(a){t={languages:t.languages,address:t.address!==!1,fallback:t.fallback};break}}}let r=null;if(t&&t.address!==!1){let o=/^\/([^/?#]+)/.exec(String(e||"")),s=t&&t.languages||[];if(o){let i=o[1].toLowerCase();for(let a=0;a<s.length&&!r;a++)String(s[a]).toLowerCase()===i&&(r=s[a])}}return r&&(t.address!=="fallback"||!n)?r:t&&t.address==="strict"?t.fallback||"":n||t&&t.fallback||""},ws=({polyglot:t,pathname:e,stored:n,stateLang:r}={})=>qh(Kh(t,r),e,n),Ss=t=>{try{let e=t&&t.location||typeof globalThis<"u"&&globalThis.location;return e&&typeof e.pathname=="string"?e.pathname:""}catch{return""}},tx=({polyglot:t,translations:e,lang:n,pathname:r,attrs:o=""}={})=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Vn("polyglotStartupScript",[{polyglot:t,translations:e,lang:n,pathname:r,attrs:o}]);if(!e||typeof e!="object")return"";let s=t&&t.storagePrefix||"",i=t&&t.storageLangKey||"",a=[];for(let c in e){let l=e[c];l&&typeof l=="object"&&a.push(`localStorage.setItem(${JSON.stringify(s+c)},${JSON.stringify(JSON.stringify(l))})`)}if(i){let c=n||Wh(r,t)||wr(void 0,t);a.push(`if(!localStorage.getItem(${JSON.stringify(i)}))localStorage.setItem(${JSON.stringify(i)},${JSON.stringify(c)})`)}return a.length?`<script${o}>try{${a.join(";")}}catch(e){}<\/script>`:""}});function uo(t){let e=d6(),n=e.ready;e.depth++,e.ready=!0;try{return{value:t(),ready:e.ready}}finally{e.depth--,e.ready=n}}function _a(){let t=globalThis[Gh];t&&t.depth>0&&(t.ready=!1)}var Gh,d6,j1=D(()=>{"use strict";Gh=Symbol.for("@symbo.ls/utils:textReady"),d6=()=>{let t=globalThis[Gh];if(!t){t={depth:0,ready:!0};try{Object.defineProperty(globalThis,Gh,{value:t,configurable:!0})}catch{globalThis[Gh]=t}}return t}});async function ex(t){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(e){console.warn(`Error attempting to enable fullscreen mode: ${e.message} (${e.name})`)}}var U1=D(()=>{"use strict"});var wa,Sa,Tf,tn,po,xa,Of,An,Yh,p6,ho,h6,xs,ks,nx,V1=D(()=>{"use strict";Rl();wa=t=>t!=="latest"?`@${t}`:"",Sa=t=>t?`/${t}`:"",Tf=t=>{let e=typeof t=="string"?t.replace(/\/+$/,""):"";if(!e)return{name:"",subpath:""};let n=e.split("/"),r=e.startsWith("@")?2:1;return{name:n.slice(0,r).join("/"),subpath:n.slice(r).join("/")}},tn={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e,n)=>`${tn.skypack.url}/${t}${wa(e)}${Sa(n)}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e,n)=>`${tn.esmsh.url}/${t}${wa(e)}${Sa(n)}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e,n)=>`${tn.unpkg.url}/${t}${wa(e)}${Sa(n)}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e,n)=>`${tn.jsdelivr.url}/${t}${wa(e)}${Sa(n)}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e,n)=>`${tn.symbols.url}/${t}${wa(e)}${Sa(n)}/+esm`}},po={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},xa=(t={})=>{let{packageManager:e}=t;return po[e]||null},Of=t=>{if(typeof t!="string")return t;let e=t.trim().match(/^[\^~](\d.*)$/);return e?e[1]:t},An=(t,e="latest",n="esmsh")=>{let r=tn[n]||tn.esmsh,{name:o,subpath:s}=Tf(t);return r.formatUrl(o||t,Of(e),s)},Yh=(t,e="latest",n="esmsh")=>{let r=tn[n]||tn.esmsh,o=Of(e),{name:s,subpath:i}=Tf(t);return`${r.url}/${s||t}${wa(o)}${Sa(i)}/`},p6=/^node:|^@symbo-ls\//,ho=t=>typeof t=="string"&&p6.test(t),h6=/[<>…]/,xs=t=>typeof t=="string"&&h6.test(t),ks=t=>!!t&&typeof t=="object"&&!Array.isArray(t),nx=(t,e="skypack",n={})=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Vn("getImportMapScript",[t,e,n]);let r=t.dependencies;if(!ks(r))return"";let o=Object.keys(r);if(!o.length)return"";let s=n.pin||{},i={};for(let f of o){if(ho(f)||xs(f))continue;let u=s[f]||r[f]||"latest";i[f]=An(f,u,e),f.endsWith("/")||(i[f+"/"]=Yh(f,u,e))}if(!Object.keys(i).length)return"";let a='<script type="importmap">',c="<\/script>",l=`{
30
+ FROM ${a}${l}`},V6=t=>{let e=[],n=(r,o)=>{for(let s in r){let i=o?`${o}/${s}`:s;r[s]===!0?e.push(i):n(r[s],i)}};return n(t,""),e},z6={graphql:F6,"json-api":B6,odata:j6,sql:U6,paths:V6}});var H6,lx,sR=D(()=>{"use strict";Zp();H6={snapshotId:Wl},lx=(t,e)=>{let n=t.__ref,{currentSnapshot:r,calleeElement:o}=e;if(!o||o===t){let a=H6.snapshotId();return n.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return r<i?[i,o,!0]:[i,o]}});var Jh,fx,iR=D(()=>{Jh=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),fx=t=>typeof t=="string"&&Jh.has(t)});var Qh,Ea,vr,Be,tg,eg,ng,Es,vs,ux,dx=D(()=>{"use strict";$l();Qh="smbls_lang",Ea=t=>t&&t.storageLangKey||Qh,vr=(t,e)=>t||e&&e.defaultLang||"en",Be=(t,e=!0)=>{let n=t&&t.languages;if(typeof n=="function")try{n=n(t)}catch{n=null}return Array.isArray(n)&&n.length?n.filter(r=>typeof r=="string"):e?Object.keys(t&&t.translations||{}):[]},tg=(t,e)=>{if(!e)return null;let n=Be(e),r=/^\/([^/?#]+)/.exec(String(t||""));if(!r)return null;let o=r[1].toLowerCase();for(let s of n)if(typeof s=="string"&&s.toLowerCase()===o)return s;return null},eg=(t,e)=>{let n=Be(t),r=t&&t.addressLang,o=r&&typeof r=="object"&&!Array.isArray(r),s=o?r.mode:r,i={languages:n,address:s===!1?!1:s==="fallback"||s==="strict"?s:!0,fallback:vr(e,t)},a=o&&Array.isArray(r.except)?r.except.filter(c=>typeof c=="string"&&c):[];return a.length&&(i.except=a),i},ng=(t,e,n)=>{if(t&&t.except&&t.except.length){let o=String(e||"").split(/[?#]/)[0].split("/").filter(Boolean);for(let s=0;s<t.except.length;s++){let i=String(t.except[s]).split("/").filter(Boolean);if(i[i.length-1]==="*"&&i.pop(),i.length>o.length)continue;let a=!0;for(let c=0;c<i.length&&a;c++)i[c].charAt(0)!==":"&&i[c]!==o[c]&&(a=!1);if(a){t={languages:t.languages,address:t.address!==!1,fallback:t.fallback};break}}}let r=null;if(t&&t.address!==!1){let o=/^\/([^/?#]+)/.exec(String(e||"")),s=t&&t.languages||[];if(o){let i=o[1].toLowerCase();for(let a=0;a<s.length&&!r;a++)String(s[a]).toLowerCase()===i&&(r=s[a])}}return r&&(t.address!=="fallback"||!n)?r:t&&t.address==="strict"?t.fallback||"":n||t&&t.fallback||""},Es=({polyglot:t,pathname:e,stored:n,stateLang:r}={})=>ng(eg(t,r),e,n),vs=t=>{try{let e=t&&t.location||typeof globalThis<"u"&&globalThis.location;return e&&typeof e.pathname=="string"?e.pathname:""}catch{return""}},ux=({polyglot:t,translations:e,lang:n,pathname:r,attrs:o=""}={})=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Kn("polyglotStartupScript",[{polyglot:t,translations:e,lang:n,pathname:r,attrs:o}]);if(!e||typeof e!="object")return"";let s=t&&t.storagePrefix||"",i=t&&t.storageLangKey||"",a=[];for(let c in e){let l=e[c];l&&typeof l=="object"&&a.push(`localStorage.setItem(${JSON.stringify(s+c)},${JSON.stringify(JSON.stringify(l))})`)}if(i){let c=n||tg(r,t)||vr(void 0,t);a.push(`if(!localStorage.getItem(${JSON.stringify(i)}))localStorage.setItem(${JSON.stringify(i)},${JSON.stringify(c)})`)}return a.length?`<script${o}>try{${a.join(";")}}catch(e){}<\/script>`:""}});function bo(t){let e=W6(),n=e.ready;e.depth++,e.ready=!0;try{return{value:t(),ready:e.ready}}finally{e.depth--,e.ready=n}}function va(){let t=globalThis[rg];t&&t.depth>0&&(t.ready=!1)}var rg,W6,aR=D(()=>{"use strict";rg=Symbol.for("@symbo.ls/utils:textReady"),W6=()=>{let t=globalThis[rg];if(!t){t={depth:0,ready:!0};try{Object.defineProperty(globalThis,rg,{value:t,configurable:!0})}catch{globalThis[rg]=t}}return t}});var Rn,cR=D(()=>{"use strict";Rn=t=>{let e=t.__ref;if(e&&e.__hydrationPath!==void 0)return e.__hydrationPath;let n=t.parent,r=n&&n.__ref?Rn(n):null,o=r===null?"":r?r+"."+t.key:String(t.key);return e&&(e.__hydrationPath=o),o}});async function px(t){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(e){console.warn(`Error attempting to enable fullscreen mode: ${e.message} (${e.name})`)}}var lR=D(()=>{"use strict"});var Aa,Ta,Mf,rn,_o,Ca,Nf,Pn,og,K6,wo,q6,As,Ts,hx,fR=D(()=>{"use strict";$l();Aa=t=>t!=="latest"?`@${t}`:"",Ta=t=>t?`/${t}`:"",Mf=t=>{let e=typeof t=="string"?t.replace(/\/+$/,""):"";if(!e)return{name:"",subpath:""};let n=e.split("/"),r=e.startsWith("@")?2:1;return{name:n.slice(0,r).join("/"),subpath:n.slice(r).join("/")}},rn={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e,n)=>`${rn.skypack.url}/${t}${Aa(e)}${Ta(n)}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e,n)=>`${rn.esmsh.url}/${t}${Aa(e)}${Ta(n)}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e,n)=>`${rn.unpkg.url}/${t}${Aa(e)}${Ta(n)}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e,n)=>`${rn.jsdelivr.url}/${t}${Aa(e)}${Ta(n)}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e,n)=>`${rn.symbols.url}/${t}${Aa(e)}${Ta(n)}/+esm`}},_o={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},Ca=(t={})=>{let{packageManager:e}=t;return _o[e]||null},Nf=t=>{if(typeof t!="string")return t;let e=t.trim().match(/^[\^~](\d.*)$/);return e?e[1]:t},Pn=(t,e="latest",n="esmsh")=>{let r=rn[n]||rn.esmsh,{name:o,subpath:s}=Mf(t);return r.formatUrl(o||t,Nf(e),s)},og=(t,e="latest",n="esmsh")=>{let r=rn[n]||rn.esmsh,o=Nf(e),{name:s,subpath:i}=Mf(t);return`${r.url}/${s||t}${Aa(o)}${Ta(i)}/`},K6=/^node:|^@symbo-ls\//,wo=t=>typeof t=="string"&&K6.test(t),q6=/[<>…]/,As=t=>typeof t=="string"&&q6.test(t),Ts=t=>!!t&&typeof t=="object"&&!Array.isArray(t),hx=(t,e="skypack",n={})=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Kn("getImportMapScript",[t,e,n]);let r=t.dependencies;if(!Ts(r))return"";let o=Object.keys(r);if(!o.length)return"";let s=n.pin||{},i={};for(let f of o){if(wo(f)||As(f))continue;let u=s[f]||r[f]||"latest";i[f]=Pn(f,u,e),f.endsWith("/")||(i[f+"/"]=og(f,u,e))}if(!Object.keys(i).length)return"";let a='<script type="importmap">',c="<\/script>",l=`{
31
31
  "imports": ${JSON.stringify(i,null,2)}
32
- }`;return`${a}${l}${c}`}});var rx,z1=D(()=>{"use strict";rx=t=>{if(!t)return"";let e=new Date(t),n=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),r=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${r}, ${n}`}});var ox,H1=D(()=>{"use strict";ox=(t,e)=>{let n=setTimeout(()=>{let{props:r}=t;if(!e.clientHeight){let{node:{clientHeight:o}}=t;o&&(e.clientHeight=o)}if(e.active){if(r.height==="auto")return;t.update({height:e.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let o=setTimeout(()=>{t.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(o)},450)}else t.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(n)})}});var sx,W1=D(()=>{"use strict";sx=function(e){let n=[0,1];for(let r=2;r<=e;r++)n[r]=n[r-1]+n[r-2];return n[e]}});var ix,K1=D(()=>{"use strict";ix=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function ka(t,e={}){let{window:n=globalThis}=e,{document:r=n.document}=e;return new Promise((o,s)=>{let i=r.querySelector(`script[src="${t}"]`);if(i)return o(i);let a=r.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}`))},r.head.appendChild(a)})}async function dx(t,e={}){let{window:n=globalThis}=e,{document:r=n.document}=e;return new Promise((o,s)=>{let i=r.querySelector(`link[href="${t}"]`);if(i)return o(i);let a=r.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}`))},r.head.appendChild(a)})}var ax,cx,lx,fx,ux,q1=D(()=>{"use strict";ax=(t,e=!1,n=document,r="text/javascript")=>new Promise((o,s)=>{try{let i=n.createElement("script");i.type=r,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}`}))}),n.body.appendChild(i)}catch(i){s(i)}}),cx=(t,e=document,n="text/javascript")=>new Promise((r,o)=>{let s=e.createElement("script");s.type=n,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),r()},s.onerror=()=>{e.body.removeChild(i),o(new Error(`Failed to load: ${t}`))},e.body.appendChild(s)}),lx=(t,e=document,n,r="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=r,s.text=o.responseText,e.body.appendChild(s),typeof n=="function"&&n()}else throw new Error(`Failed to load the script ${t}`)},fx=(t,e=!1,n=document,r="text/javascript")=>new Promise((o,s)=>{try{let i=n.createElement("link");i.rel="stylesheet",i.href=t,i.addEventListener("load",a=>{o({status:!0})}),n.head.appendChild(i)}catch(i){s(i)}}),ux=(t,e=!1,n=document,r="text/javascript",o="smbls-script")=>{try{let s=n.createElement("script");s.type=r,s.async=e,s.id=o,s.innerHTML=t,n.body.appendChild(s)}catch(s){console.warn(s)}}});var G1,Cn,px=D(()=>{"use strict";G1=new Set,Cn=t=>{G1.has(t)||(G1.add(t),!(typeof console>"u"||!console.error)&&console.error(`[smbls] ${t}: this build has no shared-library support \u2014 \`smbls build\` found no shared library in the project (sharedLibraries.js, symbols.json sharedLibraries), so it left that code out. Declare the library there, or remove symbols.json build.treeShakeLibraries.`))}});function vs(t){let e=String(t||"").trim();if(!e)return{owner:hx,key:"",full:""};let n=null,r=e;if(e.includes("/")){let s=e.indexOf("/");n=e.slice(0,s),r=e.slice(s+1)}r=r.replace(/\.symbo\.ls$/iu,""),n||(n=hx);let o=r?`${n}/${r}`:"";return{owner:n,key:r,full:o}}async function Ca(t,e={}){if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return Cn("fetchLibraryData"),null;let n=e.provider||"kv";if(n==="same-origin")return Y6(t,e);if(n==="api")return sR(t,e);let r=await G6(t,e);return r||sR(t,e)}async function G6(t,e={}){let n=e.kvBaseUrl||g6,r=e.env||"production",o=`${n}/kv/${encodeURIComponent(t)}?env=${r}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function Y6(t,e={}){let n=e.sameOriginBase;if(!n)return null;let r=`${n}${y6}${encodeURIComponent(t)}`;try{let o=await fetch(r,{method:"GET"});return o.ok?await o.json():null}catch{return null}}async function sR(t,e={}){let n=e.apiBaseUrl||m6,{key:r}=vs(t);try{let o=`${n}/core/projects/libraries/available?search=${encodeURIComponent(r)}&limit=10`,s=await fetch(o,{method:"GET"});if(!s.ok)return null;let i=await s.json(),c=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(p=>{let{key:g}=vs(p?.key);return g.toLowerCase()===r.toLowerCase()});if(!c?.id&&!c?._id)return null;let l=c.id||c._id,f=`${n}/core/projects/${encodeURIComponent(l)}/data?branch=main`,u=await fetch(f,{method:"GET"});if(!u.ok)return null;let d=await u.json();return d?.data||d||null}catch{return null}}async function iR(t,e={}){if(E(t))return t;if(v(t)){let{full:n}=vs(t);if(!n)return null;try{let r=await Ca(n,e);return r||console.warn(`[smbls] Shared library "${n}" not found`),r}catch(r){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,r.message),null}}return null}async function $f(t,e={}){return!t||!t.length?[]:globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__?(Cn("resolveSharedLibraries"),[]):(await Promise.all(t.map(async r=>{if($e(r)){let o=await iR(fR(r),e);return o?{library:o,ignoreList:r.ignoreList}:null}return iR(r,e)}))).filter(Boolean)}var hx,g6,m6,y6,Ea,aR,b6,_6,Y1,Xh,X1,cR,w6,lR,S6,Lf,yx,$e,fR,gx,bx,x6,k6,_x,wx,uR,Z1,Es,Sx,E6,go,v6,dR,pR,J1,A6,C6,T6,O6,Q1,Zh,R6,hR,mx,P6,L6,tR,D6,I6,M6,N6,Jh,xx,$6,F6,B6,eR,Df,j6,Pf,Qh,va,Aa,nR,tg,Rf,U6,V6,rR,oR,If,z6,H6,W6,K6,q6,gR,mR,Mf,As,Nf,eg=D(()=>{"use strict";Wt();os();jl();Un();px();hx="system",g6="https://smbls-kv.nika-980.workers.dev",m6="https://api.symbols.app",y6="/v1/library-icons/";Ea=(t,e,n,r)=>{for(let o in e){let s=r?`${r}/${o}`:o;n&&n.has(s)||(o in t?E(t[o])&&E(e[o])&&Ea(t[o],e[o],n,s):t[o]=e[o])}},aR=(t,e,n)=>{if(!E(t)||!e.size)return t;let r=`${n}/`,o=!1;for(let i of e)if(i.startsWith(r)){o=!0;break}if(!o)return t;let s={};for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let a=`${n}/${i}`;e.has(a)||(s[i]=aR(t[i],e,a))}return s},b6=new Set,_6=new Set(["components","pages","functions","snippets","methods"]),Y1=(t,e)=>e===""&&_6.has(t),Xh=["fontFamily","fontfamily","font_family","FONT_FAMILY"],X1=t=>{let e=new Map;if(!E(t))return e;for(let n of Xh){let r=t[n];if(E(r))for(let o in r)!E(r[o])||!r[o].isDefault||(e.has(n)||e.set(n,new Set),e.get(n).add(o))}return e},cR=(t,e)=>{for(let n of Xh){let r=t[n];if(!E(r))continue;let o=e.get(n),s=null;for(let i in r){let a=r[i];if(!E(a)||!a.isDefault||o&&o.has(i))continue;let c={...a};delete c.isDefault,s||(s={...r}),s[i]=c}s&&(t[n]=s)}},w6=t=>{let e=new Map;if(!E(t))return e;for(let n of Xh){let r=t[n];E(r)&&e.set(n,new Set(Object.keys(r)))}return e},lR=(t,e)=>{if(E(t))for(let n of Xh){let r=t[n];if(!E(r))continue;let o=e.get(n),s=null;for(let i in r){let a=r[i];!E(a)||a.isSharedLibrary||o&&o.has(i)||(s||(s={...r}),s[i]={...a,isSharedLibrary:!0})}s&&(t[n]=s)}},S6=t=>t.replace(/\.js$/iu,""),Lf=t=>{let e=new Set;if(!Array.isArray(t))return e;for(let n of t){if(!v(n))continue;let r=n.split("/").map(o=>S6(o.trim())).filter(Boolean).join("/");r&&e.add(r)}return e},yx=(t,e={})=>({library:t,ignoreList:Array.isArray(e.ignoreList)?e.ignoreList:[]}),$e=t=>E(t)&&Array.isArray(t.ignoreList)&&("library"in t||"key"in t||"name"in t),fR=t=>t.library!==void 0?t.library:t.key??t.name,gx=new Set,bx=()=>{gx.clear()},x6=(t,e)=>{let n=e.filter(r=>!gx.has(r));if(n.length){for(let r of n)gx.add(r);tt()&&console.warn(`[smbls] shared library "${t}" ships ${n.map(r=>`methods.${r}`).join(", ")} \u2014 named like a built-in element method. Refused: the built-in wins; a library cannot replace an element method on the consuming app. If the app wants this version, declare it in the app's OWN methods.`)}},k6=(t,e,n)=>{let r=null;for(let o in t)if(rs(o)&&(e.has(`methods/${o}`)||n.push(o),!r)){r={};for(let s in t)rs(s)||(r[s]=t[s])}return r||t},_x=(t,e)=>{let n=Lf(t.sharedLibIgnore);return t.sharePages===!1&&n.add("pages"),n.size?new Set([...e,...n]):e},wx=["functions","methods","snippets"],uR=["components","pages"],Z1=Symbol.for("smbls.libraryScope"),Es="__libraryScopes",Sx=new Map,E6=()=>Math.random().toString(36).slice(2,10)+Date.now().toString(36).slice(-4),go=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),v6=/const __scope = |const __peers_* = |const _s_* = el\?\.scope|\?\.context\?\.globalScope\?\./,dR=t=>{try{return Ne(t)}catch{return null}},pR=t=>{if(typeof t!="function")return null;let e=dR(t);return v(e)&&v6.test(e)&&se(e)?e:null},J1=t=>v(t)&&se(t)||pR(t)!==null,A6=t=>{let e=t.globalScope;return E(e)&&Object.keys(e).some(n=>J1(e[n]))?!0:wx.some(n=>{let r=t[n];return!!r&&typeof r=="object"&&Object.keys(r).some(o=>J1(r[o]))})},C6=(t,e,n)=>{let r=t.globalScope,o=e.globalScope;if(n.has("globalScope")||!E(r)||!E(o)||!A6(e))return 0;let s=0;for(let i of Object.keys(o))n.has(`globalScope/${i}`)||go(r,i)&&s++;return s},T6=[[/const __scope = (\(\(\) => \{ const r = [\s\S]*?\}\)\(\));/g,"const __scope = $RESOLVE($1);"],[/const __scope = this \?\? \{\};/g,"const __scope = $RESOLVE(this ?? {});"],[/const (__peers_*) = (this && this !== globalThis && this\.context && this\.context\.globalScope \? this\.scope \?\? this\.context\.globalScope : this);/g,"const $1 = $RESOLVE($2);"],[/const (_s_*) = (el\?\.scope \?\? el\?\.context\?\.globalScope \?\? \{\});/g,"const $1 = $RESOLVE($2);"],[/(?<![\w$.])(this|[A-Za-z_$][\w$]*)\?\.context\?\.globalScope\?\./g,"$RESOLVE($1?.context?.globalScope)?."]],O6=t=>{let e=t.split(""),n=[],r=0,o=0,s=(a,c)=>{for(let l=a;l<c;l++)e[l]!==`
32
+ }`;return`${a}${l}${c}`}});var gx,uR=D(()=>{"use strict";gx=t=>{if(!t)return"";let e=new Date(t),n=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),r=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${r}, ${n}`}});var mx,dR=D(()=>{"use strict";mx=(t,e)=>{let n=setTimeout(()=>{let{props:r}=t;if(!e.clientHeight){let{node:{clientHeight:o}}=t;o&&(e.clientHeight=o)}if(e.active){if(r.height==="auto")return;t.update({height:e.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let o=setTimeout(()=>{t.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(o)},450)}else t.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(n)})}});var yx,pR=D(()=>{"use strict";yx=function(e){let n=[0,1];for(let r=2;r<=e;r++)n[r]=n[r-1]+n[r-2];return n[e]}});var bx,hR=D(()=>{"use strict";bx=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function Oa(t,e={}){let{window:n=globalThis}=e,{document:r=n.document}=e;return new Promise((o,s)=>{let i=r.querySelector(`script[src="${t}"]`);if(i)return o(i);let a=r.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}`))},r.head.appendChild(a)})}async function Ex(t,e={}){let{window:n=globalThis}=e,{document:r=n.document}=e;return new Promise((o,s)=>{let i=r.querySelector(`link[href="${t}"]`);if(i)return o(i);let a=r.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}`))},r.head.appendChild(a)})}var _x,wx,Sx,xx,kx,gR=D(()=>{"use strict";_x=(t,e=!1,n=document,r="text/javascript")=>new Promise((o,s)=>{try{let i=n.createElement("script");i.type=r,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}`}))}),n.body.appendChild(i)}catch(i){s(i)}}),wx=(t,e=document,n="text/javascript")=>new Promise((r,o)=>{let s=e.createElement("script");s.type=n,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),r()},s.onerror=()=>{e.body.removeChild(i),o(new Error(`Failed to load: ${t}`))},e.body.appendChild(s)}),Sx=(t,e=document,n,r="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=r,s.text=o.responseText,e.body.appendChild(s),typeof n=="function"&&n()}else throw new Error(`Failed to load the script ${t}`)},xx=(t,e=!1,n=document,r="text/javascript")=>new Promise((o,s)=>{try{let i=n.createElement("link");i.rel="stylesheet",i.href=t,i.addEventListener("load",a=>{o({status:!0})}),n.head.appendChild(i)}catch(i){s(i)}}),kx=(t,e=!1,n=document,r="text/javascript",o="smbls-script")=>{try{let s=n.createElement("script");s.type=r,s.async=e,s.id=o,s.innerHTML=t,n.body.appendChild(s)}catch(s){console.warn(s)}}});var mR,on,vx=D(()=>{"use strict";mR=new Set,on=t=>{mR.has(t)||(mR.add(t),!(typeof console>"u"||!console.error)&&console.error(`[smbls] ${t}: this build has no shared-library support \u2014 \`smbls build\` found no shared library in the project (sharedLibraries.js, symbols.json sharedLibraries), so it left that code out. Declare the library there, or remove symbols.json build.treeShakeLibraries.`))}});function Os(t){let e=String(t||"").trim();if(!e)return{owner:Ax,key:"",full:""};let n=null,r=e;if(e.includes("/")){let s=e.indexOf("/");n=e.slice(0,s),r=e.slice(s+1)}r=r.replace(/\.symbo\.ls$/iu,""),n||(n=Ax);let o=r?`${n}/${r}`:"";return{owner:n,key:r,full:o}}async function Da(t,e={}){if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return on("fetchLibraryData"),null;let n=e.provider||"kv";if(n==="same-origin")return PU(t,e);if(n==="api")return TR(t,e);let r=await RU(t,e);return r||TR(t,e)}async function RU(t,e={}){let n=e.kvBaseUrl||G6,r=e.env||"production",o=`${n}/kv/${encodeURIComponent(t)}?env=${r}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function PU(t,e={}){let n=e.sameOriginBase;if(!n)return null;let r=`${n}${X6}${encodeURIComponent(t)}`;try{let o=await fetch(r,{method:"GET"});return o.ok?await o.json():null}catch{return null}}async function TR(t,e={}){let n=e.apiBaseUrl||Y6,{key:r}=Os(t);try{let o=`${n}/core/projects/libraries/available?search=${encodeURIComponent(r)}&limit=10`,s=await fetch(o,{method:"GET"});if(!s.ok)return null;let i=await s.json(),c=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(p=>{let{key:g}=Os(p?.key);return g.toLowerCase()===r.toLowerCase()});if(!c?.id&&!c?._id)return null;let l=c.id||c._id,f=`${n}/core/projects/${encodeURIComponent(l)}/data?branch=main`,u=await fetch(f,{method:"GET"});if(!u.ok)return null;let d=await u.json();return d?.data||d||null}catch{return null}}async function CR(t,e={}){if(k(t))return t;if(v(t)){let{full:n}=Os(t);if(!n)return null;try{let r=await Da(n,e);return r||console.warn(`[smbls] Shared library "${n}" not found`),r}catch(r){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,r.message),null}}return null}async function Wf(t,e={}){return!t||!t.length?[]:globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__?(on("resolveSharedLibraries"),[]):(await Promise.all(t.map(async r=>{if(je(r)){let o=await CR(PR(r),e);return o?{library:o,ignoreList:r.ignoreList}:null}return CR(r,e)}))).filter(Boolean)}var Ax,G6,Y6,X6,Vt,ce,Z6,So,Ra,Ox,J6,Q6,tU,yR,ig,bR,OR,eU,RR,nU,Bf,Rx,je,PR,Tx,Px,rU,oU,ag,Lx,LR,_R,Cs,Dx,sU,iU,DR,IR,wR,aU,cU,lU,fU,SR,Ix,uU,MR,Cx,dU,pU,xR,hU,gU,mU,yU,cg,Mx,bU,_U,NR,kR,jf,wU,Ff,lg,Pa,La,ER,fg,$f,SU,xU,vR,AR,Uf,sg,kU,$R,FR,EU,vU,AU,TU,CU,OU,Nx,BR,Vf,Rs,zf,Hf,ug=D(()=>{"use strict";qt();fs();ql();Wn();vx();dx();Ax="system",G6="https://smbls-kv.nika-980.workers.dev",Y6="https://api.symbols.app",X6="/v1/library-icons/";Vt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),ce=Sr,Z6=t=>k(t)||t!==null&&typeof t=="object"&&!Array.isArray(t)&&Object.getPrototypeOf(t)===null,So=(t,e,n,r)=>{let o=Array.isArray(t);if(!o&&!Z6(t))return t;if(r&&r.has(t))return r.get(t);let s=r||new Map,i=o?[]:{};if(s.set(t,i),o)for(let a=0;a<t.length;a++)i[a]=So(t[a],e,n,s);else for(let a in t){if(!Vt(t,a)||ce.has(a))continue;let c=n?`${n}/${a}`:a;e&&e.has(c)||(i[a]=So(t[a],e,c,s))}return s.delete(t),i},Ra=(t,e,n,r)=>{for(let o in e){if(!Vt(e,o)||ce.has(o))continue;let s=r?`${r}/${o}`:o;n&&n.has(s)||(o in t?k(t[o])&&k(e[o])&&Ra(t[o],e[o],n,s):t[o]=So(e[o],n,s))}},Ox=(t,e,n)=>{if(!k(t)||!e.size)return t;let r=`${n}/`,o=!1;for(let i of e)if(i.startsWith(r)){o=!0;break}if(!o)return t;let s={};for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||ce.has(i))continue;let a=`${n}/${i}`;e.has(a)||(s[i]=Ox(t[i],e,a))}return s},J6=(t,e)=>{if(t!==e||!k(t))return t;let n={};for(let r in t)Vt(t,r)&&!ce.has(r)&&(n[r]=t[r]);return n},Q6=new Set,tU=new Set(["components","pages","functions","snippets","methods"]),yR=(t,e)=>e===""&&tU.has(t),ig=["fontFamily","fontfamily","font_family","FONT_FAMILY"],bR=t=>{let e=new Map;if(!k(t))return e;for(let n of ig){let r=t[n];if(k(r))for(let o in r)!k(r[o])||!r[o].isDefault||(e.has(n)||e.set(n,new Set),e.get(n).add(o))}return e},OR=(t,e)=>{for(let n of ig){let r=t[n];if(!k(r))continue;let o=e.get(n),s=null;for(let i in r){let a=r[i];if(!k(a)||!a.isDefault||o&&o.has(i))continue;let c={...a};delete c.isDefault,s||(s={...r}),s[i]=c}s&&(t[n]=s)}},eU=t=>{let e=new Map;if(!k(t))return e;for(let n of ig){let r=t[n];k(r)&&e.set(n,new Set(Object.keys(r)))}return e},RR=(t,e)=>{if(k(t))for(let n of ig){let r=t[n];if(!k(r))continue;let o=e.get(n),s=null;for(let i in r){let a=r[i];!k(a)||a.isSharedLibrary||o&&o.has(i)||(s||(s={...r}),s[i]={...a,isSharedLibrary:!0})}s&&(t[n]=s)}},nU=t=>t.replace(/\.js$/iu,""),Bf=t=>{let e=new Set;if(!Array.isArray(t))return e;for(let n of t){if(!v(n))continue;let r=n.split("/").map(o=>nU(o.trim())).filter(Boolean).join("/");r&&e.add(r)}return e},Rx=(t,e={})=>({library:t,ignoreList:Array.isArray(e.ignoreList)?e.ignoreList:[]}),je=t=>k(t)&&Array.isArray(t.ignoreList)&&("library"in t||"key"in t||"name"in t),PR=t=>t.library!==void 0?t.library:t.key??t.name,Tx=new Set,Px=()=>{Tx.clear()},rU=(t,e)=>{let n=e.filter(r=>!Tx.has(r));if(n.length){for(let r of n)Tx.add(r);nt()&&console.warn(`[smbls] shared library "${t}" ships ${n.map(r=>`methods.${r}`).join(", ")} \u2014 named like a built-in element method. Refused: the built-in wins; a library cannot replace an element method on the consuming app. If the app wants this version, declare it in the app's OWN methods.`)}},oU=(t,e,n)=>{let r=null;for(let o in t)if(ls(o)&&(e.has(`methods/${o}`)||n.push(o),!r)){r={};for(let s in t)!Vt(t,s)||ce.has(s)||ls(s)||(r[s]=t[s])}return r||t},ag=(t,e)=>{let n=Bf(t.sharedLibIgnore);return t.sharePages===!1&&n.add("pages"),n.size?new Set([...e,...n]):e},Lx=["functions","methods","snippets"],LR=["components","pages"],_R=Symbol.for("smbls.libraryScope"),Cs="__libraryScopes",Dx=new Map,sU=()=>Math.random().toString(36).slice(2,10)+Date.now().toString(36).slice(-4),iU=/const __scope = |const __peers_* = |const _s_* = el\?\.scope|\?\.context\?\.globalScope\?\./,DR=t=>{try{return Fe(t)}catch{return null}},IR=t=>{if(typeof t!="function")return null;let e=DR(t);return v(e)&&iU.test(e)&&ie(e)?e:null},wR=t=>v(t)&&ie(t)||IR(t)!==null,aU=t=>{let e=t.globalScope;return k(e)&&Object.keys(e).some(n=>wR(e[n]))?!0:Lx.some(n=>{let r=t[n];return!!r&&typeof r=="object"&&Object.keys(r).some(o=>wR(r[o]))})},cU=(t,e,n)=>{let r=t.globalScope,o=e.globalScope;if(n.has("globalScope")||!k(r)||!k(o)||!aU(e))return 0;let s=0;for(let i of Object.keys(o))n.has(`globalScope/${i}`)||Vt(r,i)&&s++;return s},lU=[[/const __scope = (\(\(\) => \{ const r = [\s\S]*?\}\)\(\));/g,"const __scope = $RESOLVE($1);"],[/const __scope = this \?\? \{\};/g,"const __scope = $RESOLVE(this ?? {});"],[/const (__peers_*) = (this && this !== globalThis && this\.context && this\.context\.globalScope \? this\.scope \?\? this\.context\.globalScope : this);/g,"const $1 = $RESOLVE($2);"],[/const (_s_*) = (el\?\.scope \?\? el\?\.context\?\.globalScope \?\? \{\});/g,"const $1 = $RESOLVE($2);"],[/(?<![\w$.])(this|[A-Za-z_$][\w$]*)\?\.context\?\.globalScope\?\./g,"$RESOLVE($1?.context?.globalScope)?."]],fU=t=>{let e=t.split(""),n=[],r=0,o=0,s=(a,c)=>{for(let l=a;l<c;l++)e[l]!==`
33
33
  `&&(e[l]="~")},i=()=>{let a=r;for(;r<t.length;){let c=t[r];if(c==="\\"){r+=2;continue}if(c==="`"){s(a,r),r++;return}if(c==="$"&&t[r+1]==="{"){s(a,r),r+=2,n.push(o),o++;return}r++}s(a,r)};for(;r<t.length;){let a=t[r];if(a==="/"&&t[r+1]==="/"){let c=t.indexOf(`
34
34
  `,r),l=c===-1?t.length:c;s(r,l),r=l;continue}if(a==="/"&&t[r+1]==="*"){let c=t.indexOf("*/",r+2),l=c===-1?t.length:c+2;s(r,l),r=l;continue}if(a==='"'||a==="'"){let c=a,l=++r;for(;r<t.length&&t[r]!==c&&t[r]!==`
35
- `;)t[r]==="\\"&&r++,r++;s(l,r),r++;continue}if(a==="`"){r++,i();continue}if(a==="{"){o++,r++;continue}if(a==="}"){if(o--,n.length&&o===n[n.length-1]){n.pop(),r++,i();continue}r++;continue}r++}return e.join("")},Q1=(t,e)=>{if(!v(t)||!t.includes("__scope = ")&&!t.includes("__peers")&&!/const _s_* = /.test(t)&&!t.includes("?.context?.globalScope?.")||!se(t))return t;let n=`(globalThis[Symbol.for('smbls.libraryScope')] || ((_, v) => v))(${JSON.stringify(e)}, `,r=t;for(let[o,s]of T6){let i=O6(r);r=r.replace(o,(...a)=>{let c=a[a.length-2];return i[c]==="~"||i[c]!==r[c]?a[0]:s.replace(/\$RESOLVE\(/g,n).replace(/\$(\d)/g,(l,f)=>a[Number(f)])})}return r},Zh=(t,e)=>{if(v(t))return Q1(t,e);let n=pR(t);return n===null?t:Q1(n,e)},R6={lazy:!0,window:globalThis},hR=(t,e)=>{let n=Zh(t,e);if(n===t||!v(n))return n;try{let r=be({v:n},{},R6).v;return typeof r!="function"?n:(Object.defineProperty(r,"toJSON",{value:()=>n,configurable:!0}),r)}catch{return n}},mx=t=>{if(!t||typeof t!="object")return!1;if(Array.isArray(t))return!0;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},P6=(t,e)=>{let n=new WeakMap,r=o=>{if(v(o)||typeof o=="function")return hR(o,e);if(Il(o)||!mx(o))return o;if(n.has(o))return n.get(o);let s=Array.isArray(o)?[]:Object.getPrototypeOf(o)===null?Object.create(null):{};n.set(o,s);for(let i of Object.keys(o))s[i]=r(o[i]);return s};return r(t)},L6=(t,e)=>{let n={...t},r={};for(let o of Object.keys(t.globalScope))r[o]=Zh(t.globalScope[o],e);n.globalScope=r;for(let o of wx){let s=t[o];if(!mx(s))continue;let i={};for(let a of Object.keys(s))i[a]=hR(s[a],e);n[o]=i}for(let o of uR)mx(t[o])&&(n[o]=P6(t[o],e));return n},tR=new WeakMap,D6=(t,e,n)=>{let r=tR.get(t);r||tR.set(t,r=new Map);let o=r.get(e);if(o)return o;let s=(i,a)=>go(n,i)&&n[i]===a;return o=new Proxy(t,{get(i,a){if(typeof a=="symbol"||go(i,a))return Reflect.get(i,a);let c=Reflect.get(i,a);return go(e,a)&&(c===void 0||s(a,c))||c===void 0?e[a]:c},set(i,a,c){return typeof a!="symbol"&&!go(i,a)&&go(e,a)?(e[a]=c,!0):Reflect.set(i,a,c)},has:(i,a)=>Reflect.has(i,a)||a in e}),r.set(e,o),o},I6=t=>!!t&&typeof t=="object"&&!!t.__raw&&typeof t.__raw=="object",M6=(t,e)=>{let n=Sx.get(t);return n?e===n.consumerGs?n.libGs:I6(e)?D6(e,n.libGs,n.consumerGs):e:e},N6=()=>{typeof globalThis[Z1]!="function"&&Object.defineProperty(globalThis,Z1,{value:M6,configurable:!0})},Jh=t=>{let e=t[Es];return Array.isArray(e)?e:null},xx=t=>$e(t)?t.library:t,$6=(t,e,n)=>{let r=Jh(t);return!!r&&r.some(o=>o&&o.index===e&&(!o.key||o.key===n.key)&&v(o.id)&&F6(t,o.id))},F6=(t,e)=>{let n=JSON.stringify(e),r=new Set,o=s=>{if(v(s))return s.includes(n);if(!s||typeof s!="object"||r.has(s))return!1;r.add(s);for(let i in s)if(o(s[i]))return!0;return!1};for(let s of["globalScope",...wx,...uR])if(o(t[s]))return!0;return!1},B6=(t,e)=>{let n={};for(let r of Object.keys(t))n[r]=Zh(t[r],e);return n},eR=new WeakMap,Df=(t,e=null)=>{let n=t&&Jh(t);if(!n||!n.length)return 0;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return Cn("bindLibraryGlobalScopes"),0;let r=t.globalScope;if(!E(r))return 0;let o=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[],s=eR.get(r);s||eR.set(r,s=new Set),N6();let i=0;for(let a of n){if(!a||!v(a.id)||s.has(a.id))continue;let c=xx(o[a.index]);if(!c||!E(c.globalScope)||a.key&&c.key!==a.key)continue;let l=p=>typeof p=="function"?dR(p):p,f=(p,g)=>{if(p===g)return!0;let h=l(p),m=l(g);return v(h)||v(m)?h===m:JSON.stringify(p)===JSON.stringify(g)},u=E(e)?(Array.isArray(a.landed)?a.landed:[]).filter(p=>v(p)&&go(c.globalScope,p)&&go(e,p)&&f(e[p],Zh(c.globalScope[p],a.id))):[],d=ls(B6(c.globalScope,a.id));Object.setPrototypeOf(d,r),Sx.set(a.id,{libGs:d,consumerGs:r});for(let p of u)r[p]=d[p];s.add(a.id),i++}return i},j6=/^@symbo[-.]ls\//,Pf=t=>t.includes("/")?t.slice(t.indexOf("/")+1):t,Qh=t=>[`@symbo-ls/${t}`,`@symbo.ls/${t}`],va=(t,e)=>{let n=[];if(!Array.isArray(t)||!t.length)return n;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return Cn("libraryPackageSpecs"),n;let r=new Map,o=(i,a,c)=>{for(let l of Qh(i)){let f=r.get(l);if(f===void 0){r.set(l,a),n.push([l,a]);continue}f!==a&&c&&typeof e=="function"&&e({spec:l,kept:f,refused:a})}},s=[];for(let i of t){let a=xx(i);if(!a||typeof a!="object"||a.__isStub)continue;let c=a.key||a.name||a.__libraryKey,l=[];for(let f of[a.key,a.name,a.__libraryKey,a.__libraryName]){if(typeof f!="string"||!f||f!==c&&!j6.test(f))continue;let u=Pf(f);u&&!l.includes(u)&&l.push(u)}l.forEach((f,u)=>{u===0&&c&&Pf(c)===f?o(f,a,!1):s.push([f,a])})}for(let[i,a]of s)o(i,a,!0);return n},Aa=({spec:t,kept:e,refused:n})=>{typeof console>"u"||console.warn(`[smbls] shared library "${n&&n.key}" also claims ${t}, which "${e&&e.key}" already owns; ${t} stays with "${e&&e.key}".`)},nR=["functions","methods","snippets"],tg=Symbol.for("smbls.libraryPackages"),Rf=new WeakMap,U6=t=>!!t&&typeof t=="object"&&!Array.isArray(t),V6=t=>({get globalScope(){return t()}}),rR=(t,e,n)=>{let r={};for(let o of Object.keys(t))r[o]=t[o];return Object.defineProperty(r,"context",{configurable:!0,enumerable:!1,writable:!0,value:V6(e)}),Rf.set(r,n),r},oR=t=>!U6(t)||!Rf.has(t)&&Object.prototype.hasOwnProperty.call(t,"context"),If=t=>{if(!t||typeof t!="object")return;let e=()=>t.globalScope;for(let r of nR){let o=t[r];oR(o)||Rf.get(o)===t||(t[r]=rR(o,e,t))}if(!globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__&&Array.isArray(t.sharedLibraries)){let r=Jh(t)||[];t.sharedLibraries=t.sharedLibraries.map((o,s)=>{let i=$e(o)&&o&&"library"in o,a=xx(o);if(!a||typeof a!="object"||a.__isStub||Rf.get(a)===t)return o;let c=r.find(u=>u&&u.index===s&&(!u.key||u.key===a.key)),l=()=>{let u=c&&Sx.get(c.id);return u&&u.consumerGs===t.globalScope?u.libGs:t.globalScope},f={...a};for(let u of nR)oR(a[u])||(f[u]=rR(a[u],l,t));return Rf.set(f,t),i?{...o,library:f}:f})}let n=t.globalScope;if(n&&typeof n=="object"){let r={};for(let[o,s]of va(t.sharedLibraries,Aa))r[o]=s;try{Object.defineProperty(n,tg,{configurable:!0,enumerable:!1,writable:!0,value:r})}catch{}}},z6=(t,e,n,r="library",o=-1)=>{let s=_x(e,n),i=!$6(t,o,e)&&C6(t,e,s)>0?`${r}#${E6()}`:null,a=i?L6(e,i):e,c=i?new Set(Object.keys(t.globalScope)):null,l=[];for(let f in a)if(Object.prototype.hasOwnProperty.call(a,f)&&!(f==="sharePages"||f==="sharedLibIgnore")&&f!==Es&&!f.startsWith("__")&&f!=="app"&&!s.has(f)){if(E(a[f])&&E(t[f])){if(f==="designSystem")Ea(t[f],a[f],s,f);else for(let u in a[f])if(!s.has(`${f}/${u}`)){if(f==="methods"&&rs(u)){u in t[f]||l.push(u);continue}u in t[f]?Y1(f,t[f][u])&&!Y1(f,a[f][u])&&(t[f][u]=a[f][u]):t[f][u]=a[f][u]}}else if(!(f in t)){let u=a[f],d=f==="methods"&&u&&typeof u=="object"?k6(u,s,l):u;t[f]=aR(d,s,f)}}i&&(Jh(t)||(t[Es]=[]),t[Es].push({id:i,index:o,key:v(e.key)?e.key:null,landed:Object.keys(a.globalScope).filter(f=>!c.has(f))})),l.length&&x6(r,l)},H6=(t,e,n)=>{if(t!==e){let r=fR(t);if(v(r)&&r)return r;if(t.key||t.name)return t.key||t.name}return e&&(e.key||e.name)||`sharedLibraries[${n}]`},W6=`${hx}/default`,K6=t=>v(t)&&t!==""&&vs(t).full===W6,q6=(t,e)=>{if(v(e.key)&&e.key)return e.key;if(t!==e){if(v(t.key)&&t.key)return t.key;if(v(t.name)&&t.name)return t.name}return null},gR=t=>{let e=[],n=[];for(let r=0;r<t.length;r++){let o=t[r],s=o,i=b6;if($e(s)&&(i=Lf(s.ignoreList),s=s.library),!E(s))continue;let a={entry:o,lib:s,ignore:i,index:r};K6(q6(o,s))?n.push(a):e.push(a)}return{linked:e,bases:n}},mR=(t,e,n)=>{let r=e(),o=X1(r),s=w6(r),{linked:i,bases:a}=gR(t);for(let f of i)n(f);let c=!o.size&&a.length?X1(e()):null;for(let f of a)n(f);return{claims:o.size?o:c&&c.size?c:null,ownFamilies:s}},Mf=(t,e)=>{if(!e||!e.length)return;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return Cn("mergeSharedLibraries");let n=t.designSystem,{claims:r,ownFamilies:o}=mR(e,()=>t.designSystem,({entry:s,lib:i,ignore:a,index:c})=>z6(t,i,a,H6(s,i,c),c));t.designSystem!==n&&(t.designSystem={...t.designSystem}),lR(t.designSystem,o),r&&cR(t.designSystem,r)},As=(t,e)=>{let n=E(t)?t:null;if(!Array.isArray(e)||!e.length)return n||{};if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return Cn("sharedLibraryFiles"),n||{};let r=n?{...n}:{},{linked:o,bases:s}=gR(e);for(let{lib:i,ignore:a}of[...o,...s]){let c=_x(i,a);if(c.has("files"))continue;let l=i.files;if(E(l))for(let f in l)Object.prototype.hasOwnProperty.call(l,f)&&(c.has(`files/${f}`)||f in r||(r[f]=l[f]))}return r},Nf=(t,e,n=Ea)=>{if(!E(t)||!Array.isArray(e)||!e.length)return t;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return Cn("mergeSharedLibraryDesignSystems"),t;let{claims:r,ownFamilies:o}=mR(e,()=>t,({lib:s,ignore:i})=>{let a=s.designSystem;if(!a||typeof a!="object")return;let c=_x(s,i);c.has("designSystem")||n(t,a,c,"designSystem")});return lR(t,o),r&&cR(t,r),t}});function Os(t,e){if(!e||typeof e!="object")return t;let n=o=>!nU(o)||!Object.prototype.hasOwnProperty.call(e,o)?o:rg(e[o])||o,r={...t};for(let[o,s]of Object.entries(r))rU.has(o)?r[o]=Array.isArray(s)?s.map(i=>bR(i,n)):bR(s,n):typeof s=="string"?r[o]=n(s):Array.isArray(s)&&(r[o]=s.map(i=>typeof i=="string"?n(i):i));return r}function kx(t,e){if(!t||!e)return;let n=e.split("."),r=t;for(let o of n){if(r==null||typeof r!="object")return;r=r[o]}return r}function oU(t,e){let n=kx(t,e);if(typeof n=="number")return Number.isFinite(n)?n:void 0;if(typeof n=="string"&&!na(n))return n}function sU(t,e,n){let o=(e.config||e.settings||{}).polyglot||e.polyglot,s=n?.lang||o?.defaultLang||"en",a=(o?.translations||{})[s]||{},c=[n?.state,e.state].filter(u=>u&&typeof u=="object"),l=u=>{for(let d of c){let p=oU(d,u);if(p!==void 0)return p}},f={...t};for(let[u,d]of Object.entries(f))typeof d!="string"||!d.includes("{{")||(f[u]=d.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(p,g,h)=>{let m=g.trim();if(h==="polyglot")return a[m]??kx(a,m)??p;if(h==="getLocalStateLang")return l(m+s)??p;let y=l(m);return y!==void 0?y:a[m]??kx(a,m)??p}));return f}function _R(t){if(!E(t))return{};let e={...t};for(let[n,r]of Object.entries(e))if(typeof r=="function"){let o=r.toString(),s=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[n]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){e[n]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){e[n]=`{{ ${a[1]} }}`;continue}delete e[n]}else if(typeof r=="string"){let o=r.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){e[n]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=r.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[n]=`{{ ${s[1]} | polyglot }}`;continue}if(r.includes("=>")&&r.includes("s.")){let i=r.match(/s\.(\w+(?:\.\w+)+)/);if(i){e[n]=`{{ ${i[1]} }}`;continue}}na(r)&&delete e[n]}return e}function Ox(t,e,n,{isProduction:r=!1,channel:o="production"}={}){if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Vn("getPageMetadata",[t,e,n,{isProduction:r,channel:o}]);let s=t.pages?.[e],i=E(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=_R(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=_R(f),d={};if(t.integrations?.seo?d={...t.integrations.seo,...u,...c}:Object.keys(u).length?d={...u,...c}:d={...c},!d.title){let m=t.name||t.key;m?r?d.title=m:o==="development"?d.title=`${m} / dev:symbo.ls`:o==="staging"?d.title=`${m} / staging:symbo.ls`:d.title=`${m} / symbo.ls`:d.title="Symbols demo"}d=sU(d,t,n),d.title&&(l.has("title")||!d["og:title"])&&(l.has("og:title")||(d["og:title"]=d.title)),d.description&&(l.has("description")||!d["og:description"])&&(l.has("og:description")||(d["og:description"]=d.description)),d.title&&!d["twitter:title"]&&(d["twitter:title"]=d.title),d.description&&!d["twitter:description"]&&(d["twitter:description"]=d.description);let p=l.has("og:url")?d["og:url"]:l.has("url")?d.url:void 0,g=n?.actualPathname||e;if(p)d["og:url"]=p;else if(d["og:url"]||d.url){let m=(d["og:url"]||d.url||"").replace(/\/$/,"");if(m&&g&&g!=="/"){let y=g.startsWith("/")?g:"/"+g;d["og:url"]=m+y}}d=Os(d,As(t.files,t.sharedLibraries));let h=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[m,y]of Object.entries(d))if(typeof y=="string"&&y.includes("{{")){let x=y.replace(/\{\{[^}]*\}\}/g,"").trim();x?d[m]=x:m==="title"?d[m]=h:delete d[m]}return d}var U,gs,Gn,Bf,jf,Uf,Vf,zf,Hf,X6,Ex,vx,ng,Ax,ms,Z6,Cx,yR,Tn,J6,Q6,Ta,Cs,mo,Ts,tU,eU,Tx,nU,Ff,rg,rU,bR,wR=D(()=>{"use strict";Wt();sa();eg();Rl();U=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,n=>e[n])},gs=t=>JSON.stringify(t).replace(/</g,"\\u003c").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"),Gn=(t,e,{remove:n=!1,warn:r}={})=>{if(!t||typeof t.querySelector!="function")return null;let o=null;try{o=t.querySelector(e)}catch{return null}if(!o)return null;n&&o.parentNode&&o.parentNode.removeChild(o);let s;try{s=JSON.parse(o.textContent||"")}catch(i){r&&r(i)}return{value:s,block:o}},Bf='script[type="application/json"][data-brender="registry"]',jf='script[type="application/json"][data-brender="registry-tree"]',Uf=t=>{if(!E(t)||t.f!=="tree"||!Array.isArray(t.e)||t.e.length%3)return null;let e=t.e,n=[],r={},o=0;for(let s=0,i=0;s<e.length;s+=3,i++){let a=e[s],c=e[s+1],l=e[s+2];if(!Number.isInteger(a)||a<0||a>i||typeof c!="string"||!Number.isInteger(l))return null;let f=a?n[i-a]+"."+c:c;o+=l,n.push(f),r[f]="br-"+o}return r},Vf='link[rel="preload"][data-smbls="design-system"]',zf='meta[name="smbls-design-system"][data-smbls="design-system"]',Hf='script[type="application/json"][data-smbls="design-system"]',X6=t=>E(t)&&E(t.config)&&Array.isArray(t.rules),Ex=(t,e)=>e&&e.defer===!0?'<meta name="smbls-design-system" content="'+U(t)+'" data-smbls="design-system">':'<link rel="preload" href="'+U(t)+'" as="fetch" crossorigin="anonymous" data-smbls="design-system">',vx=t=>X6(t)?'<script type="application/json" data-smbls="design-system">'+gs(t)+"<\/script>":"",ng='meta[name="brender-stamp"]',Ax=({stamp:t,time:e}={})=>'<meta name="brender-stamp" content="'+U(t)+'" data-time="'+(typeof e=="number"&&isFinite(e)?Math.round(e):"")+'">',ms=t=>{if(!t||typeof t.querySelector!="function")return null;let e=null;try{e=t.querySelector(ng)}catch{return null}if(!e)return null;let n=parseInt(e.getAttribute("data-time"),10);return{stamp:e.getAttribute("content")||"",time:isFinite(n)?n:null}},Z6=/<script\b(?:[^>"']|"[^"]*"|'[^']*')*\btype\s*=\s*["']?importmap["']?(?:[^>"']|"[^"]*"|'[^']*')*>[\s\S]*?<\/script\s*>/gi,Cx=(t,e)=>{let n=-1;for(let r of String(t).matchAll(Z6))n=r.index+r[0].length;return n===-1?null:t.slice(0,n)+`
36
- `+e+t.slice(n)},yR=t=>Object.entries(t||{}).filter(([e,n])=>n!==void 0).map(([e,n])=>`${e}="${U(n)}"`).join(" "),Tn=t=>{let e=5381,n=String(t);for(let r=0;r<n.length;r++)e=(e*33^n.charCodeAt(r))>>>0;return e.toString(36)},J6=new Set(["jsonLd","styles","scripts"]),Q6=new Set(["source"]),Ta=t=>{let e=[];if(Array.isArray(t.jsonLd))for(let n of t.jsonLd){if(n==null)continue;let r=typeof n=="string"?n:JSON.stringify(n),o=String(r).replace(/<\/script/gi,"<\\/script");e.push(`<script type="application/ld+json" data-smbls-jsonld="${Tn(r)}">${o}<\/script>`)}if(Array.isArray(t.styles))for(let n of t.styles){if(n==null||!String(n).trim())continue;let r=String(n).replace(/<\/style/gi,"<\\/style");e.push(`<style data-smbls-style="${Tn(r)}">${r}</style>`)}if(Array.isArray(t.scripts))for(let n of t.scripts){if(!n)continue;let r=typeof n=="string",o=r?n:n.src;if(!o&&!n.body)continue;let s=[];o&&s.push(`src="${U(o)}"`),r||(n.type&&s.push(`type="${U(n.type)}"`),n.async&&s.push("async"),n.defer&&s.push("defer"),n.integrity&&s.push(`integrity="${U(n.integrity)}"`),n.crossorigin&&s.push(`crossorigin="${U(n.crossorigin)}"`),n.referrerpolicy&&s.push(`referrerpolicy="${U(n.referrerpolicy)}"`),n.nomodule&&s.push("nomodule"));let i=` data-smbls-script="${U(o||Tn(n.body||""))}"`;if(!r&&n.body){let a=String(n.body).replace(/<\/script/gi,"<\\/script");e.push(`<script ${s.join(" ")}${i}>${a}<\/script>`)}else e.push(`<script ${s.join(" ")}${i}><\/script>`)}return e},Cs=t=>`${t.hreflang||""}|${t.href||""}`,mo=t=>E(t)?Tn(JSON.stringify(t)):String(t),Ts=t=>E(t)?Tn(JSON.stringify(t)):String(t),tU=(t,e,n)=>t==="favicons"?Array.isArray(e)&&(typeof n=="string"||E(n))?` data-smbls-favicon="${U(mo(n))}"`:"":(t==="icon"||t==="favicon")&&typeof e=="string"?` data-smbls-single-icon="${U(e)}"`:"",eU=t=>E(t)?` data-smbls-alternate="${U(Cs(t))}"`:"",Tx=(t,e)=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Vn("generateMetaTags",[t,e]);e||(t={...t,robots:"noindex"});let n=!1,r=Object.entries(t).reduce((o,[s,i])=>{if(!i&&i!==0&&i!==!1||J6.has(s)||Q6.has(s))return o;if(s==="title")return o.push(`<title>${U(i)}</title>`),o;if(s==="canonical")return o.push(`<link rel="canonical" href="${U(i)}">`),o;if(s==="manifest")return o.push(`<link rel="manifest" href="${U(i)}">`),o;if(s==="favicon"||s==="favicons"||s==="icon"||s==="icons")return(Array.isArray(i)?i:[i]).forEach(u=>{let d=tU(s,i,u);if(typeof u=="string")o.push(`<link rel="icon" href="${U(u)}"${d}>`);else if(typeof u=="object"){let p=yR(u);/rel=/.test(p)?o.push(`<link ${p}${d}>`):o.push(`<link rel="icon" ${p}${d}>`)}}),o;if(s==="alternate")return(Array.isArray(i)?i:[i]).forEach(u=>{if(u&&typeof u=="object"){let d=Object.entries(u).filter(([p,g])=>g!==void 0).map(([p,g])=>`${p}="${U(g)}"`).join(" ");o.push(`<link rel="alternate" ${d}${eU(u)}>`)}}),o;if(s==="theme-color"&&Array.isArray(i))return i.forEach(f=>{if(!E(f))return;let u=yR({name:"theme-color",content:f.content,media:f.media});o.push(`<meta ${u} data-smbls-theme-color="${U(Ts(f))}">`)}),o;let a=(f,u,d="name")=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")o.push(`<meta ${d}="${U(f)}" content="${U(u)}">`);else if(Array.isArray(u))u.forEach(p=>{if(typeof p=="string"||typeof p=="number"||typeof p=="boolean")o.push(`<meta ${d}="${U(f)}" content="${U(p)}">`);else if(typeof p=="object"){let g=Object.entries(p).filter(([h,m])=>m!==void 0).map(([h,m])=>`${h}="${U(m)}"`).join(" ");o.push(`<meta ${g}>`)}});else if(typeof u=="object"){let p=Object.entries(u).filter(([g,h])=>h!==void 0).map(([g,h])=>`${g}="${U(h)}"`).join(" ");o.push(`<meta ${p}>`)}};if(s.startsWith("http-equiv:")){let f=s.replace("http-equiv:","");return a(f,i,"http-equiv"),o}if(s.startsWith("itemprop:")){let f=s.replace("itemprop:","");return a(f,i,"itemprop"),o}let l=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(f=>s.startsWith(f));if(l){let f=s.replace(l,"");return a(`${l.replace(":","")}:${f}`,i,l==="twitter:"||l==="DC:"||l==="DCTERMS:"?"name":"property"),o}if(s.startsWith("apple:")||s.startsWith("msapplication:")){let f=s.startsWith("apple:")?"apple-":"msapplication-",u=s.replace(/^apple:|^msapplication:/,"");return a(`${f}${u}`,i,"name"),o}return s==="viewport"&&(n=!0),a(s,i),o},['<meta charset="UTF-8">']);return n||r.splice(1,0,'<meta name="viewport" content="width=device-width, initial-scale=1">'),r.push(...Ta(t)),r.join(`
37
- `)},nU=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http"),Ff=t=>typeof t=="string"&&t.length>0,rg=t=>{if(!t||typeof t!="object")return null;if(Ff(t.src))return t.src;let e=t.content;return!e||typeof e!="object"?null:Ff(e.src)?e.src:Ff(e.storageUrl)?e.storageUrl:null},rU=new Set(["icon","favicon","icons","favicons"]),bR=(t,e)=>{if(typeof t=="string")return e(t);if(!E(t))return t;let n={...t};return Ff(n.href)&&(n.href=e(n.href)),Ff(n.src)&&(n.src=e(n.src)),n}});var og,Rx,SR=D(()=>{"use strict";Wt();og=(t,e)=>(I(e)?e:Object.values(e)).reduce((n,r)=>Math.abs(r-t)<Math.abs(n-t)?r:n),Rx=(t,e)=>(t=parseFloat(t),E(e)&&(e=Object.values(e)),og(t,e))});var Px,Lx,Dx,Sr,Ix,Wf,Mx,Rs,Nx=D(()=>{"use strict";Wt();Px=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},Lx=async t=>{try{let e=new Blob([t],{type:"text/javascript"}),n=new window.ClipboardItem({"text/plain":e});await navigator.clipboard.write([n]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(e){console.error("Failed to copy JavaScript code: ",e)}},Dx=t=>t.replace(/[^a-zA-Z0-9_]/g,""),Sr=t=>(typeof t!="string"&&(t=String(t||"")),t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,n){return n===0?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")),Ix=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),Wf=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Mx=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},Rs=t=>{if(I(t))return t;if(v(t))return t.split(" ");if(E(t))return Object.values(t);if(me(t))return[t]}});var xR,kR,iU,vR,ER,aU,sg,cU,ig,$x,Fx,ag,Kf,AR=D(()=>{"use strict";Wt();eg();Nx();px();xR=/[A-Za-z_$][A-Za-z0-9_$-]*/g,kR=/[A-Za-z_$][A-Za-z0-9_$]*(?: [A-Za-z0-9_$]+){1,5}/g,iU=(t,e)=>{xR.lastIndex=0;let n;for(;n=xR.exec(t);){let o=n[0];if(e.add(o),o.indexOf("-")!==-1)for(let s of o.split("-"))s&&e.add(s)}kR.lastIndex=0;let r;for(;r=kR.exec(t);){let o=r[0].split(" ");for(let s=0;s<o.length-1;s++)for(let i=2;i<=6&&s+i<=o.length;i++)e.add(Sr(o.slice(s,s+i).join(" ")))}return e},vR=t=>$e(t)?t.library:t,ER=["components","pages","snippets"],aU=["name","icon"],sg=t=>{if(!E(t))return null;let e=t.key;if(!e)return null;let n=t.owner,r=E(n)?n.slug:n;return r?`${r}/${e}`:String(e)},cU=/^\s*(?:async\s+)?(?:function\b|\(|[A-Za-z_$][A-Za-z0-9_$]*\s*=>)/,ig=t=>{let e=new Set,n=r=>{if(Array.isArray(r)){for(let o of r)if(n(o))return!0;return!1}if(!E(r)||e.has(r))return!1;e.add(r);for(let o of aU){let s=r[o];if(typeof s=="string"&&cU.test(s))return!0}for(let o of Object.keys(r))if(n(r[o]))return!0;return!1};for(let r of ER)if(n(t[r]))return!0;for(let r of t.sharedLibraries||[]){let o=vR(r);if(E(o)){for(let s of ER)if(n(o[s]))return!0}}return!1},$x=t=>{if(!E(t)||!Array.isArray(t.sharedLibraries))return null;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return t.sharedLibraries.length&&Cn("planLibraryIconPrune"),null;let e=E(t.settings)?t.settings.libraryIconPrune:void 0;if(e===!1||e!==!0&&ig(t))return null;let n=[];for(let u of t.sharedLibraries){let d=vR(u),p=E(d)&&d.designSystem,g=E(p)&&p.icons;if(!E(g))continue;let h=sg(d);h&&n.push({id:h,icons:g,designSystem:p})}if(!n.length)return null;let r=new Set(n.map(u=>u.designSystem)),o=JSON.stringify(t,function(u,d){if(u!=="__ssr"&&!(u==="icons"&&r.has(this)))return d});if(typeof o!="string")return null;let s=iU(o,new Set),i=new Map,a=[],c=0,l=0,f=0;for(let u of n){let d=[];for(let p of Object.keys(u.icons)){if(s.has(p)){l++;continue}d.push(p);let g=u.icons[p];f+=p.length+(typeof g=="string"?g.length:0)}d.length&&(c+=d.length,i.set(u.icons,new Set(d)),a.push({id:u.id,icons:d}))}return c?{drops:i,prune:{libraries:a},report:{icons:c,kept:l,bytes:f}}:null},Fx=t=>function(e,n){let r=t.get(this);if(!(r&&r.has(e)))return n},ag=(t,e={})=>{let n=new Map;for(let a of t&&t.libraries||[])if(!(!a||!a.id||!Array.isArray(a.icons)))for(let c of a.icons)n.has(c)||n.set(c,a.id);if(!n.size)return null;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return Cn("createPrunedLibraryIconLoader"),null;let r=t&&typeof t.sameOriginBase=="string"&&t.sameOriginBase,o=r?{...e,provider:"same-origin",sameOriginBase:r}:e,s=new Map,i=a=>{let c=s.get(a);return c||(c=Promise.resolve().then(()=>Ca(a,o)).then(l=>{let f=E(l)&&E(l.designSystem)&&l.designSystem.icons;return E(f)?f:null}),s.set(a,c)),c};return a=>{let c=n.get(a);return c?i(c):null}},Kf=(t,e={})=>{if(!E(t))return!1;let n=t.__libraryIconPrune;if(!E(n))return!1;let r=t.designSystem;if(!E(r)||r.iconsLoader)return!1;let o=ag(n,e);return o?(r.iconsLoader=o,!0):!1}});var Bx,CR=D(()=>{"use strict";Bx=()=>{let t=document.styleSheets[0],e="";if(t)try{let n=t.cssRules||t.rules;for(let r=0;r<n.length;r++)e+=n[r].cssText}catch(n){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",n)}else console.log("No stylesheets found in document.styleSheets[0].");return e}});var _e,Oa,qf,Gf,TR=D(()=>{"use strict";_e=t=>{let e=t&&t.src;if(!e||typeof e!="string")return null;let n=t.context;if(!n)return null;let r=n.assets&&n.assets[e]||n.files&&n.files[e];if(!r)return null;if(typeof r=="string")return{src:r,type:null,variants:null};if(typeof r=="object"){if(typeof r.src=="string")return r;let o=r.content,s=o&&o.src;if(typeof s=="string")return{...r,src:s,type:r.type??o.type??null,variants:r.variants??o.variants??null}}return null},Oa=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return"";let n=t.some(o=>typeof o.width=="number"),r=[];for(let o of t)n&&typeof o.width=="number"?r.push(`${o.src} ${o.width}w`):n||(o.scale===1&&e?r.push(o.src):o.scale&&o.scale!==1&&r.push(`${o.src} ${o.scale}x`));return r.join(", ")},qf=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(n=>n.format===t.type);return Oa(e,{keepOneX:!1})},Gf=(t,e)=>{if(!t||typeof t!="object"||typeof t.src!="string")return[];if(!Array.isArray(t.variants)||!t.variants.length)return[{tag:"img",attr:{src:t.src,alt:e||""}}];let n=new Map;for(let a of t.variants)n.has(a.format)||n.set(a.format,[]),n.get(a.format).push(a);let r=[];for(let[a,c]of n)a!==t.type&&r.push({tag:"source",attr:{type:a,srcset:Oa(c,{keepOneX:!0})}});let o=n.get(t.type)||[],s=Oa(o,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...r,{tag:"img",attr:i}]}});var Ra={};F(Ra,{BRENDER_REGISTRY_BLOCK:()=>Bf,BRENDER_REGISTRY_TREE_BLOCK:()=>jf,BRENDER_STAMP_META:()=>ng,CDN_PROVIDERS:()=>tn,DESIGN_SYSTEM_BLOCK:()=>Hf,DESIGN_SYSTEM_DEFERRED:()=>zf,DESIGN_SYSTEM_LINK:()=>Vf,DOMQL_EVENTS:()=>G_,DOMQ_PROPERTIES:()=>to,ELEMENT_METHOD_OVERRIDE_POINTS:()=>Qi,ENV:()=>yw,HTML_TAGS:()=>ia,LIBRARY_PACKAGES:()=>tg,LIBRARY_SCOPES_KEY:()=>Es,METHODS:()=>no,METHODS_EXL:()=>Tl,NODE_ENV:()=>xn,OPTIONS:()=>rf,PACKAGE_MANAGER_TO_CDN:()=>po,PARSED_DOMQ_PROPERTIES:()=>Cl,POLYGLOT_LANG_STORAGE_KEY:()=>Hh,PROPS_METHODS:()=>eo,REVIVED_MARK:()=>Ml,STATE_DATA_MERGE_EXL:()=>bh,STATE_METHODS:()=>ns,STATE_PROPERTIES:()=>K_,SVG_TAGS:()=>kO,TYPES:()=>wl,UNIVERSAL_RESERVED_KEYS:()=>zh,__resetBuiltinMethodWarnings:()=>bx,addCaching:()=>dh,addContext:()=>uh,addExtend:()=>jw,addExtends:()=>zn,addItemAfterEveryElement:()=>L_,addProtoToArray:()=>kl,addRef:()=>ch,alternateLinkKey:()=>Cs,applyDependentState:()=>sS,applyEvent:()=>_h,applyEventUpdate:()=>wh,applyExtends:()=>AO,applyProps:()=>Xl,arrayContainsOtherArray:()=>v_,arraysEqual:()=>I_,arrayzeValue:()=>Rs,bareLibraryKey:()=>Pf,bindLibraryGlobalScopes:()=>Df,brenderStampMeta:()=>Ax,buildImgSrcset:()=>qf,buildSourcesAndImg:()=>Gf,cache:()=>fS,call:()=>XS,captureSnapshot:()=>JS,checkForStateTypes:()=>eS,checkIfInherits:()=>yh,checkIfStringIsInArray:()=>$_,clone:()=>nw,cloneAndMergeArrayExtend:()=>Vl,cloneFunction:()=>Ew,collectExtendsList:()=>aa,concatAddExtends:()=>$w,copyJavaScriptToClipboard:()=>Lx,copyStringToClipboard:()=>Px,createBasedOnType:()=>ah,createElement:()=>tS,createElementExtends:()=>Yp,createExtends:()=>Hl,createExtendsFromKeys:()=>ca,createExtendsStack:()=>Qp,createIfConditionFlag:()=>vw,createInheritedState:()=>nS,createKey:()=>Bl,createNestedObject:()=>fw,createNestedObjectByKeyPath:()=>oS,createObjectWithoutPrototype:()=>Vp,createParent:()=>lh,createPath:()=>fh,createProps:()=>Zl,createPropsStack:()=>sh,createPrunedLibraryIconLoader:()=>ag,createRoot:()=>Qw,createScope:()=>aS,createSnapshotId:()=>Fl,currentPathname:()=>Ss,customDecodeURIComponent:()=>W_,customEncodeURIComponent:()=>H_,cutArrayAfterValue:()=>R_,cutArrayBeforeValue:()=>O_,debounce:()=>Ul,debounceOnContext:()=>xw,decodeBrenderRegistry:()=>Uf,decodeNewlines:()=>z_,deepClone:()=>pt,deepContains:()=>cw,deepDefaults:()=>Ea,deepDestringifyFunctions:()=>be,deepExtend:()=>Gp,deepMerge:()=>bt,deepMergeExtends:()=>Hn,deepStringifyFunctions:()=>Ll,defineSetter:()=>GS,designSystemBlock:()=>vx,designSystemLink:()=>Ex,destringifyGlobalScope:()=>ls,detectHeightOnInit:()=>ox,detectInfiniteLoop:()=>hw,document:()=>kt,encodeNewlines:()=>V_,error:()=>_s,escapeHtml:()=>U,escapeRegExp:()=>F_,evaluateText:()=>uo,excludeKeysFromObject:()=>mw,exec:()=>St,exposeBagGlobalScopes:()=>If,extendCachedRegistry:()=>Fw,extendStackRegistry:()=>Wl,extractArrayExtend:()=>ql,faviconLinkKey:()=>mo,fetchLibraryData:()=>Ca,fibonacciNumberByIndex:()=>sx,fileEntryUrl:()=>rg,filterArrays:()=>M_,filterArraysFast:()=>N_,finalizeExtends:()=>th,findClosestNumber:()=>og,findClosestNumberInFactory:()=>Rx,findInheritedState:()=>mh,findKeyPosition:()=>j_,flattenExtend:()=>la,formatDate:()=>rx,generateHash:()=>Wp,generateHeadArrayTags:()=>Ta,generateKey:()=>$l,generateMetaTags:()=>Tx,get:()=>HS,getCDNDirUrl:()=>Yh,getCDNUrl:()=>An,getCapitalCaseKeys:()=>zw,getCdnProviderFromConfig:()=>xa,getChildStateInKey:()=>gh,getChildren:()=>qS,getContext:()=>Sf,getCookie:()=>Rw,getDB:()=>Af,getEmotionStylesheet:()=>Bx,getExtendsInElement:()=>Uw,getExtendsStack:()=>zl,getExtendsStackRegistry:()=>qp,getFrequencyInArray:()=>A_,getFunctionSource:()=>Ne,getHashedExtend:()=>Kl,getImportMapScript:()=>nx,getInObjectByPath:()=>pw,getLocalStorage:()=>Lw,getNev:()=>Sw,getPageMetadata:()=>Ox,getParentStateInKey:()=>hh,getPath:()=>gf,getQuery:()=>Cf,getRef:()=>KS,getRoot:()=>bf,getRootContext:()=>wf,getRootData:()=>_f,getRootState:()=>yf,getRootStateInKey:()=>ph,getSpreadChildren:()=>Hw,global:()=>x_,hasFunction:()=>se,hasHandlerPlugin:()=>ra,hasOwnProperty:()=>sw,hashContent:()=>Tn,inheritChildExtends:()=>Zp,inheritChildPropsExtends:()=>Xp,inheritParentProps:()=>Jl,inheritRecursiveChildExtends:()=>Jp,initProps:()=>Xw,insertAfterImportMap:()=>Cx,installPrunedLibraryIconLoader:()=>Kf,is:()=>ye,isArray:()=>I,isBoolean:()=>Ip,isBuiltinElementMethod:()=>q_,isContextComponent:()=>Ww,isCyclic:()=>gw,isDOMNode:()=>ge,isDate:()=>Np,isDefined:()=>Ut,isDevelopment:()=>oo,isEmpty:()=>jp,isEmptyObject:()=>iw,isEqualDeep:()=>Up,isFailedRevival:()=>as,isFunction:()=>L,isHtmlElement:()=>bl,isLazyFunction:()=>rw,isLocal:()=>ww,isLoudDevRuntime:()=>tt,isMalformedDependency:()=>xs,isMethod:()=>ZS,isMobile:()=>Tw,isNode:()=>hr,isNot:()=>E_,isNotProduction:()=>gr,isNull:()=>Mp,isNumber:()=>me,isObject:()=>E,isObjectLike:()=>V,isPhoto:()=>ix,isPolyglotRetranslatableKey:()=>nf,isPolyglotWritableKey:()=>us,isProduction:()=>ro,isProtectedElementMethod:()=>rs,isRevived:()=>cs,isStaging:()=>_w,isState:()=>rS,isString:()=>v,isStringFunction:()=>na,isStringTag:()=>Il,isTest:()=>Hp,isTesting:()=>bw,isUndefined:()=>Xt,isUniversallyReservedKey:()=>QS,isUnresolvableDependency:()=>ho,isValidDependencyMap:()=>ks,isValidHtmlTag:()=>Iw,isWrappedLibrary:()=>$e,joinArrays:()=>Xi,jointStacks:()=>Bw,jsonForScript:()=>gs,keys:()=>Uh,libraryIconPruneReplacer:()=>Fx,libraryIdentifier:()=>sg,libraryPackageSpecs:()=>va,librarySpecsFor:()=>Qh,loadCssFile:()=>fx,loadJavascript:()=>ux,loadJavascriptFile:()=>ax,loadJavascriptFileEmbedSync:()=>lx,loadJavascriptFileSync:()=>cx,loadRemoteCSS:()=>dx,loadRemoteScript:()=>ka,log:()=>YS,logGroupIf:()=>Cw,logIf:()=>Aw,lookdown:()=>VS,lookdownAll:()=>zS,lookup:()=>US,lowercaseFirstLetter:()=>es,makeObjectWithoutPrototype:()=>aw,map:()=>ew,mapStringsWithContextComponents:()=>Gl,markPolyglotSeeded:()=>Kn,markRevived:()=>ea,markTextNotReady:()=>_a,matchesComponentNaming:()=>Wn,memoize:()=>kw,merge:()=>Lt,mergeSharedLibraries:()=>Mf,mergeSharedLibraryDesignSystems:()=>Nf,mergeStateData:()=>io,nextElement:()=>kf,normalizeIgnoreList:()=>Lf,normalizeLibraryKey:()=>vs,objectToString:()=>Dl,objectizeStringProperty:()=>Yl,overwrite:()=>Nl,overwriteDeep:()=>ie,overwriteShallow:()=>fs,overwriteState:()=>iS,parse:()=>Vh,parseDeep:()=>pf,payloadHasComputedIconName:()=>ig,pickStartLang:()=>qh,pickupElementFromProps:()=>rh,pickupPropsFromElement:()=>nh,planLibraryIconPrune:()=>$x,polyglotAddressLang:()=>Wh,polyglotFallbackLang:()=>wr,polyglotLangStorageKey:()=>ba,polyglotLanguages:()=>vn,polyglotSeededKeys:()=>ao,polyglotStartLang:()=>ws,polyglotStartRule:()=>Kh,polyglotStartupScript:()=>tx,previousElement:()=>Ef,promoteActiveRootState:()=>ma,propExists:()=>Gw,propertizeElement:()=>oh,propertizeUpdate:()=>qw,readBrenderStamp:()=>ms,readJsonDataBlock:()=>Gn,remove:()=>I1,removeChars:()=>Dx,removeCookie:()=>Pw,removeDuplicateProps:()=>tf,removeDuplicatesInArray:()=>Zi,removeFromArray:()=>C_,removeFromObject:()=>lw,removeNestedKeyByPath:()=>uw,removeValueFromArray:()=>xl,removeValueFromArrayAll:()=>P_,reorderArrayByValues:()=>D_,repairLegacyArrowScopePreamble:()=>Ol,replaceLiteralsWithObjectFields:()=>Zt,replaceOctalEscapeSequences:()=>U_,resolveAsset:()=>_e,resolveFileReferences:()=>Os,resolveHandler:()=>oa,resolveSharedLibraries:()=>$f,returnValueAsText:()=>ih,runPluginHook:()=>so,scopeElementParam:()=>$p,scopeReceiverExpression:()=>J_,self:()=>k_,setActiveRootState:()=>mf,setCookie:()=>Ow,setHashedExtend:()=>Kp,setInObjectByPath:()=>dw,setLocalStorage:()=>Dw,setNodeStyles:()=>jh,setProps:()=>WS,setPropsPrototype:()=>Ql,sharedLibrary:()=>yx,sharedLibraryFiles:()=>As,splitPackageSpecifier:()=>Tf,spotByPath:()=>hf,srcsetFor:()=>Oa,stringIncludesAny:()=>vl,stringToObject:()=>ow,stripVersionRangePrefix:()=>Of,swapItemsInArray:()=>T_,syncProps:()=>ef,themeColorKey:()=>Ts,toCamelCase:()=>Sr,toDashCase:()=>Wf,toDescriptionCase:()=>Mx,toPriorityOrder:()=>Ze,toTitleCase:()=>Ix,toggleFullscreen:()=>ex,triggerEventOn:()=>mr,triggerEventOnUpdate:()=>cS,trimStringFromSymbols:()=>B_,unstackArrayOfObjects:()=>Sl,update:()=>Yw,updateProps:()=>Zw,variables:()=>vf,verbose:()=>ya,warn:()=>xf,warnLibraryAliasCollision:()=>Aa,window:()=>R});var M=D(()=>{"use strict";zp();jl();Wt();Un();sa();Ji();_l();wO();SO();Al();yl();xO();Mw();Vw();Jw();eh();LO();BO();os();jO();N1();uS();$1();lS();F1();Q_();B1();j1();U1();V1();z1();H1();W1();K1();q1();wR();SR();eg();AR();Nx();CR();TR()});var Fn,Yd,Xd,_b=D(()=>{Fn=Object.create(null);Fn.open="0";Fn.close="1";Fn.ping="2";Fn.pong="3";Fn.message="4";Fn.upgrade="5";Fn.noop="6";Yd=Object.create(null);Object.keys(Fn).forEach(t=>{Yd[Fn[t]]=t});Xd={type:"error",data:"parser error"}});function sB(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}function lB(t,e){if(iB&&t.data instanceof Blob)return t.data.arrayBuffer().then(sB).then(e);if(aB&&(t.data instanceof ArrayBuffer||cB(t.data)))return e(sB(t.data));Zd(t,!1,n=>{AC||(AC=new TextEncoder),e(AC.encode(n))})}var iB,aB,cB,Zd,oB,AC,fB=D(()=>{_b();iB=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",aB=typeof ArrayBuffer=="function",cB=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Zd=({type:t,data:e},n,r)=>iB&&e instanceof Blob?n?r(e):oB(e,r):aB&&(e instanceof ArrayBuffer||cB(e))?n?r(e):oB(new Blob([e]),r):r(Fn[t]+(e||"")),oB=(t,e)=>{let n=new FileReader;return n.onload=function(){let r=n.result.split(",")[1];e("b"+(r||""))},n.readAsDataURL(t)}});var uB,Jd,dB,pB=D(()=>{uB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Jd=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<uB.length;t++)Jd[uB.charCodeAt(t)]=t;dB=t=>{let e=t.length*.75,n=t.length,r,o=0,s,i,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);let l=new ArrayBuffer(e),f=new Uint8Array(l);for(r=0;r<n;r+=4)s=Jd[t.charCodeAt(r)],i=Jd[t.charCodeAt(r+1)],a=Jd[t.charCodeAt(r+2)],c=Jd[t.charCodeAt(r+3)],f[o++]=s<<2|i>>4,f[o++]=(i&15)<<4|a>>2,f[o++]=(a&3)<<6|c&63;return l}});var Hq,Qd,Wq,hB,gB=D(()=>{_b();pB();Hq=typeof ArrayBuffer=="function",Qd=(t,e)=>{if(typeof t!="string")return{type:"message",data:hB(t,e)};let n=t.charAt(0);return n==="b"?{type:"message",data:Wq(t.substring(1),e)}:Yd[n]?t.length>1?{type:Yd[n],data:t.substring(1)}:{type:Yd[n]}:Xd},Wq=(t,e)=>{if(Hq){let n=dB(t);return hB(n,e)}else return{base64:!0,data:t}},hB=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer});function _B(){return new TransformStream({transform(t,e){lB(t,n=>{let r=n.length,o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,r)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(r))}t.data&&typeof t.data!="string"&&(o[0]|=128),e.enqueue(o),e.enqueue(n)})}})}function wb(t){return t.reduce((e,n)=>e+n.length,0)}function Sb(t,e){if(t[0].length===e)return t.shift();let n=new Uint8Array(e),r=0;for(let o=0;o<e;o++)n[o]=t[0][r++],r===t[0].length&&(t.shift(),r=0);return t.length&&r<t[0].length&&(t[0]=t[0].slice(r)),n}function wB(t,e){CC||(CC=new TextDecoder);let n=[],r=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(n.push(i);;){if(r===0){if(wb(n)<1)break;let c=Sb(n,1);s=(c[0]&128)===128,o=c[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(wb(n)<2)break;let c=Sb(n,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),r=3}else if(r===2){if(wb(n)<8)break;let c=Sb(n,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(Xd);break}o=f*Math.pow(2,32)+l.getUint32(4),r=3}else{if(wb(n)<o)break;let c=Sb(n,o);a.enqueue(Qd(s?c:CC.decode(c),e)),r=0}if(o===0||o>t){a.enqueue(Xd);break}}}})}var mB,yB,bB,CC,TC,Yc=D(()=>{fB();gB();_b();mB="",yB=(t,e)=>{let n=t.length,r=new Array(n),o=0;t.forEach((s,i)=>{Zd(s,!1,a=>{r[i]=a,++o===n&&e(r.join(mB))})})},bB=(t,e)=>{let n=t.split(mB),r=[];for(let o=0;o<n.length;o++){let s=Qd(n[o],e);if(r.push(s),s.type==="error")break}return r};TC=4});function At(t){if(t)return Kq(t)}function Kq(t){for(var e in At.prototype)t[e]=At.prototype[e];return t}var Oi=D(()=>{At.prototype.on=At.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};At.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};At.prototype.off=At.prototype.removeListener=At.prototype.removeAllListeners=At.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===e||r.fn===e){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+t],this};At.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,e)}return this};At.prototype.emitReserved=At.prototype.emit;At.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};At.prototype.hasListeners=function(t){return!!this.listeners(t).length}});var qr,pe,SB,Ri=D(()=>{qr=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),pe=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),SB="arraybuffer"});function xb(t,...e){return e.reduce((n,r)=>(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}function Gr(t,e){e.useNativeTimers?(t.setTimeoutFn=qq.bind(pe),t.clearTimeoutFn=Gq.bind(pe)):(t.setTimeoutFn=pe.setTimeout.bind(pe),t.clearTimeoutFn=pe.clearTimeout.bind(pe))}function xB(t){return typeof t=="string"?Xq(t):Math.ceil((t.byteLength||t.size)*Yq)}function Xq(t){let e=0,n=0;for(let r=0,o=t.length;r<o;r++)e=t.charCodeAt(r),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(r++,n+=4);return n}function kb(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}var qq,Gq,Yq,Pi=D(()=>{Ri();qq=pe.setTimeout,Gq=pe.clearTimeout;Yq=1.33});function kB(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function EB(t){let e={},n=t.split("&");for(let r=0,o=n.length;r<o;r++){let s=n[r].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}var OC=D(()=>{});var Eb,Yr,tp=D(()=>{Yc();Oi();Pi();OC();Eb=class extends Error{constructor(e,n,r){super(e),this.description=n,this.context=r,this.type="TransportError"}},Yr=class extends At{constructor(e){super(),this.writable=!1,Gr(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,n,r){return super.emitReserved("error",new Eb(e,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let n=Qd(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,n={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_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 n=kB(e);return n.length?"?"+n:""}}});var Xc,RC=D(()=>{tp();Pi();Yc();Xc=class extends Yr{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let n=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};bB(e,this.socket.binaryType).forEach(n),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,yB(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=kb()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}}});var vB,AB,CB=D(()=>{vB=!1;try{vB=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}AB=vB});function Zq(){}function TB(){for(let t in Go.requests)Go.requests.hasOwnProperty(t)&&Go.requests[t].abort()}function OB(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||AB))return new XMLHttpRequest}catch{}if(!e)try{return new pe[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var PC,Go,Jq,Xr,vb=D(()=>{RC();Oi();Pi();Ri();CB();PC=class extends Xc{constructor(e){if(super(e),typeof location<"u"){let n=location.protocol==="https:",r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,n){let r=this.request({method:"POST",data:e});r.on("success",n),r.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",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=e}},Go=class t extends At{constructor(e,n,r){super(),this.createRequest=e,Gr(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var e;let n=xb(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.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=Zq,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()}};Go.requestsCount=0;Go.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",TB);else if(typeof addEventListener=="function"){let t="onpagehide"in pe?"pagehide":"unload";addEventListener(t,TB,!1)}}Jq=(function(){let t=OB({xdomain:!1});return t&&t.responseType!==null})(),Xr=class extends PC{constructor(e){super(e);let n=e&&e.forceBase64;this.supportsBinary=Jq&&!n}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Go(OB,this.uri(),e)}}});var RB,DC,LC,Zr,Ab=D(()=>{tp();Pi();Yc();Ri();RB=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",DC=class extends Yr{get name(){return"websocket"}doOpen(){let e=this.uri(),n=this.opts.protocols,r=RB?{}:xb(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,n,r)}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 n=0;n<e.length;n++){let r=e[n],o=n===e.length-1;Zd(r,this.supportsBinary,s=>{try{this.doWrite(r,s)}catch{}o&&qr(()=>{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",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=kb()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}},LC=pe.WebSocket||pe.MozWebSocket,Zr=class extends DC{createSocket(e,n,r){return RB?new LC(e,n,r):n?new LC(e,n):new LC(e)}doWrite(e,n){this.ws.send(n)}}});var Li,IC=D(()=>{tp();Ri();Yc();Li=class extends Yr{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 n=wB(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(n).getReader(),o=_B();o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();let s=()=>{r.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 n=0;n<e.length;n++){let r=e[n],o=n===e.length-1;this._writer.write(r).then(()=>{o&&qr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}});var MC,NC=D(()=>{vb();Ab();IC();MC={websocket:Zr,webtransport:Li,polling:Xr}});function Zc(t){if(t.length>8e3)throw"URI too long";let e=t,n=t.indexOf("["),r=t.indexOf("]");n!=-1&&r!=-1&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));let o=Qq.exec(t||""),s={},i=14;for(;i--;)s[tG[i]]=o[i]||"";return n!=-1&&r!=-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=eG(s,s.path),s.queryKey=nG(s,s.query),s}function eG(t,e){let n=/\/{2,9}/g,r=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function nG(t,e){let n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,s){o&&(n[o]=s)}),n}var Qq,tG,$C=D(()=>{Qq=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,tG=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"]});var FC,Cb,Di,Tb,Jc,BC=D(()=>{NC();Pi();OC();$C();Oi();Yc();Ri();FC=typeof addEventListener=="function"&&typeof removeEventListener=="function",Cb=[];FC&&addEventListener("offline",()=>{Cb.forEach(t=>t())},!1);Di=class t extends At{constructor(e,n){if(super(),this.binaryType=SB,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(n=e,e=null),e){let r=Zc(e);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=Zc(n.host).host);Gr(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{let o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),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},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=EB(this.opts.query)),FC&&(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"})},Cb.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let n=Object.assign({},this.opts.query);n.EIO=TC,n.transport=e,this.id&&(n.sid=this.id);let r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_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 n=this.createTransport(e);n.open(),this.setTransport(n)}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",n=>this._onClose("transport close",n))}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 n=new Error("server error");n.code=e.data,this._onError(n);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 n=1;for(let r=0;r<this.writeBuffer.length;r++){let o=this.writeBuffer[r].data;if(o&&(n+=xB(o)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,qr(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,n,r){return this._sendPacket("message",e,n,r),this}send(e,n,r){return this._sendPacket("message",e,n,r),this}_sendPacket(e,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;let s={type:e,data:n,options:r};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()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():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,n){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(),FC&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let r=Cb.indexOf(this._offlineEventListener);r!==-1&&Cb.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this._prevBufferLen=0}}};Di.protocol=TC;Tb=class extends Di{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 n=this.createTransport(e),r=!1;Di.priorWebsocketSuccess=!1;let o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",u=>{if(!r)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Di.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{let d=new Error("probe error");d.transport=n.name,this.emitReserved("upgradeError",d)}}))};function s(){r||(r=!0,f(),n.close(),n=null)}let i=u=>{let d=new Error("probe error: "+u);d.transport=n.name,s(),this.emitReserved("upgradeError",d)};function a(){i("transport closed")}function c(){i("socket closed")}function l(u){n&&u.name!==n.name&&s()}let f=()=>{n.removeListener("open",o),n.removeListener("error",i),n.removeListener("close",a),this.off("close",c),this.off("upgrading",l)};n.once("open",o),n.once("error",i),n.once("close",a),this.once("close",c),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let n=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&n.push(e[r]);return n}},Jc=class extends Tb{constructor(e,n={}){let r=typeof e=="object"?e:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>MC[o]).filter(o=>!!o)),super(e,r)}}});var ep,PB=D(()=>{RC();ep=class extends Xc{doPoll(){this._fetch().then(e=>{if(!e.ok)return this.onError("fetch read error",e.status,e);e.text().then(n=>this.onData(n))}).catch(e=>{this.onError("fetch read error",e)})}doWrite(e,n){this._fetch(e).then(r=>{if(!r.ok)return this.onError("fetch write error",r.status,r);n()}).catch(r=>{this.onError("fetch write error",r)})}_fetch(e){var n;let r=e!==void 0,o=new Headers(this.opts.extraHeaders);return r&&o.set("content-type","text/plain;charset=UTF-8"),(n=this.socket._cookieJar)===null||n===void 0||n.appendCookies(o),fetch(this.uri(),{method:r?"POST":"GET",body:r?e:null,headers:o,credentials:this.opts.withCredentials?"include":"omit"}).then(s=>{var i;return(i=this.socket._cookieJar)===null||i===void 0||i.parseCookies(s.headers.getSetCookie()),s})}}});var sht,Ob=D(()=>{BC();BC();tp();NC();Pi();$C();Ri();PB();vb();vb();Ab();Ab();IC();sht=Jc.protocol});function LB(t,e="",n){let r=t;n=n||typeof location<"u"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(typeof n<"u"?t=n.protocol+"//"+t:t="https://"+t),r=Zc(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";let s=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+e,r.href=r.protocol+"://"+s+(n&&n.port===r.port?"":":"+r.port),r}var DB=D(()=>{Ob()});function rp(t){return rG&&(t instanceof ArrayBuffer||oG(t))||sG&&t instanceof Blob||iG&&t instanceof File}function np(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(np(t[n]))return!0;return!1}if(rp(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return np(t.toJSON(),!0);for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&np(t[n]))return!0;return!1}var rG,oG,IB,sG,iG,jC=D(()=>{rG=typeof ArrayBuffer=="function",oG=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,IB=Object.prototype.toString,sG=typeof Blob=="function"||typeof Blob<"u"&&IB.call(Blob)==="[object BlobConstructor]",iG=typeof File=="function"||typeof File<"u"&&IB.call(File)==="[object FileConstructor]"});function MB(t){let e=[],n=t.data,r=t;return r.data=UC(n,e),r.attachments=e.length,{packet:r,buffers:e}}function UC(t,e){if(!t)return t;if(rp(t)){let n={_placeholder:!0,num:e.length};return e.push(t),n}else if(Array.isArray(t)){let n=new Array(t.length);for(let r=0;r<t.length;r++)n[r]=UC(t[r],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){let n={};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=UC(t[r],e));return n}return t}function NB(t,e){return t.data=VC(t.data,e),delete t.attachments,t}function VC(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 n=0;n<t.length;n++)t[n]=VC(t[n],e);else if(typeof t=="object")for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=VC(t[n],e));return t}var $B=D(()=>{jC()});var BB=n_((Eht,FB)=>{var Qc=1e3,tl=Qc*60,el=tl*60,Ii=el*24,aG=Ii*7,cG=Ii*365.25;FB.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return lG(t);if(n==="number"&&isFinite(t))return e.long?uG(t):fG(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function lG(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*cG;case"weeks":case"week":case"w":return n*aG;case"days":case"day":case"d":return n*Ii;case"hours":case"hour":case"hrs":case"hr":case"h":return n*el;case"minutes":case"minute":case"mins":case"min":case"m":return n*tl;case"seconds":case"second":case"secs":case"sec":case"s":return n*Qc;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function fG(t){var e=Math.abs(t);return e>=Ii?Math.round(t/Ii)+"d":e>=el?Math.round(t/el)+"h":e>=tl?Math.round(t/tl)+"m":e>=Qc?Math.round(t/Qc)+"s":t+"ms"}function uG(t){var e=Math.abs(t);return e>=Ii?Rb(t,e,Ii,"day"):e>=el?Rb(t,e,el,"hour"):e>=tl?Rb(t,e,tl,"minute"):e>=Qc?Rb(t,e,Qc,"second"):t+" ms"}function Rb(t,e,n,r){var o=e>=n*1.5;return Math.round(t/n)+" "+r+(o?"s":"")}});var UB=n_((vht,jB)=>{function dG(t){n.debug=n,n.default=n,n.coerce=c,n.disable=i,n.enable=o,n.enabled=a,n.humanize=BB(),n.destroy=l,Object.keys(t).forEach(f=>{n[f]=t[f]}),n.names=[],n.skips=[],n.formatters={};function e(f){let u=0;for(let d=0;d<f.length;d++)u=(u<<5)-u+f.charCodeAt(d),u|=0;return n.colors[Math.abs(u)%n.colors.length]}n.selectColor=e;function n(f){let u,d=null,p,g;function h(...m){if(!h.enabled)return;let y=h,x=Number(new Date),k=x-(u||x);y.diff=k,y.prev=u,y.curr=x,u=x,m[0]=n.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let C=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(b,w)=>{if(b==="%%")return"%";C++;let S=n.formatters[w];if(typeof S=="function"){let A=m[C];b=S.call(y,A),m.splice(C,1),C--}return b}),n.formatArgs.call(y,m),(y.log||n.log).apply(y,m)}return h.namespace=f,h.useColors=n.useColors(),h.color=n.selectColor(f),h.extend=r,h.destroy=n.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(p!==n.namespaces&&(p=n.namespaces,g=n.enabled(f)),g),set:m=>{d=m}}),typeof n.init=="function"&&n.init(h),h}function r(f,u){let d=n(this.namespace+(typeof u>"u"?":":u)+f);return d.log=this.log,d}function o(f){n.save(f),n.namespaces=f,n.names=[],n.skips=[];let u=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let d of u)d[0]==="-"?n.skips.push(d.slice(1)):n.names.push(d)}function s(f,u){let d=0,p=0,g=-1,h=0;for(;d<f.length;)if(p<u.length&&(u[p]===f[d]||u[p]==="*"))u[p]==="*"?(g=p,h=d,p++):(d++,p++);else if(g!==-1)p=g+1,h++,d=h;else return!1;for(;p<u.length&&u[p]==="*";)p++;return p===u.length}function i(){let f=[...n.names,...n.skips.map(u=>"-"+u)].join(",");return n.enable(""),f}function a(f){for(let u of n.skips)if(s(f,u))return!1;for(let u of n.names)if(s(f,u))return!0;return!1}function c(f){return f instanceof Error?f.stack||f.message:f}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}jB.exports=dG});var VB=n_((Pe,Pb)=>{Pe.formatArgs=hG;Pe.save=gG;Pe.load=mG;Pe.useColors=pG;Pe.storage=yG();Pe.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Pe.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function pG(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function hG(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Pb.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(n++,o==="%c"&&(r=n))}),t.splice(r,0,e)}Pe.log=console.debug||console.log||(()=>{});function gG(t){try{t?Pe.storage.setItem("debug",t):Pe.storage.removeItem("debug")}catch{}}function mG(){let t;try{t=Pe.storage.getItem("debug")||Pe.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function yG(){try{return localStorage}catch{}}Pb.exports=UB()(Pe);var{formatters:bG}=Pb.exports;bG.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var GC={};F(GC,{Decoder:()=>WC,Encoder:()=>HC,PacketType:()=>et,isPacketValid:()=>xG,protocol:()=>qC});function _G(t){return typeof t=="string"}function wG(t){return t===void 0||WB(t)}function Lb(t){return Object.prototype.toString.call(t)==="[object Object]"}function SG(t,e){switch(t){case et.CONNECT:return e===void 0||Lb(e);case et.DISCONNECT:return e===void 0;case et.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&HB.indexOf(e[0])===-1);case et.ACK:return Array.isArray(e);case et.CONNECT_ERROR:return typeof e=="string"||Lb(e);default:return!1}}function xG(t){return _G(t.nsp)&&wG(t.id)&&SG(t.type,t.data)}var zB,zC,HB,qC,et,HC,WC,KC,WB,Db=D(()=>{Oi();$B();jC();zB=VT(VB(),1),zC=(0,zB.default)("socket.io-parser"),HB=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],qC=5;(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"})(et||(et={}));HC=class{constructor(e){this.replacer=e}encode(e){return zC("encoding packet %j",e),(e.type===et.EVENT||e.type===et.ACK)&&np(e)?this.encodeAsBinary({type:e.type===et.EVENT?et.BINARY_EVENT:et.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===et.BINARY_EVENT||e.type===et.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(n+=e.nsp+","),e.id!=null&&(n+=e.id),e.data!=null&&(n+=JSON.stringify(e.data,this.replacer)),zC("encoded %j as %s",e,n),n}encodeAsBinary(e){let n=MB(e),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}},WC=class t extends At{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e=="function"?{reviver:e}:e)}add(e){let n;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(e);let r=n.type===et.BINARY_EVENT;r||n.type===et.BINARY_ACK?(n.type=r?et.EVENT:et.ACK,this.reconstructor=new KC(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(rp(e)||e.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let n=0,r={type:Number(e.charAt(0))};if(et[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===et.BINARY_EVENT||r.type===et.BINARY_ACK){let s=n+1;for(;e.charAt(++n)!=="-"&&n!=e.length;);let i=e.substring(s,n);if(i!=Number(i)||e.charAt(n)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!WB(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");r.attachments=a}if(e.charAt(n+1)==="/"){let s=n+1;for(;++n&&!(e.charAt(n)===","||n===e.length););r.nsp=e.substring(s,n)}else r.nsp="/";let o=e.charAt(n+1);if(o!==""&&Number(o)==o){let s=n+1;for(;++n;){let i=e.charAt(n);if(i==null||Number(i)!=i){--n;break}if(n===e.length)break}r.id=Number(e.substring(s,n+1))}if(e.charAt(++n)){let s=this.tryParse(e.substr(n));if(t.isPayloadValid(r.type,s))r.data=s;else throw new Error("invalid payload")}return zC("decoded %s as %j",e,r),r}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,n){switch(e){case et.CONNECT:return Lb(n);case et.DISCONNECT:return n===void 0;case et.CONNECT_ERROR:return typeof n=="string"||Lb(n);case et.EVENT:case et.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&HB.indexOf(n[0])===-1);case et.ACK:case et.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},KC=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 n=NB(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};WB=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}});function Ke(t,e,n){return t.on(e,n),function(){t.off(e,n)}}var YC=D(()=>{});var kG,Mi,XC=D(()=>{Db();YC();Oi();kG=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Mi=class extends At{constructor(e,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Ke(e,"open",this.onopen.bind(this)),Ke(e,"packet",this.onpacket.bind(this)),Ke(e,"error",this.onerror.bind(this)),Ke(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,...n){var r,o,s;if(kG.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;let i={type:et.EVENT,data:n};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){let f=this.ids++,u=n.pop();this._registerAckCallback(f,u),i.id=f}let a=(o=(r=this.io.engine)===null||r===void 0?void 0:r.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,n){var r;let o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[e]=n;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);n.call(this,new Error("operation has timed out"))},o),i=(...a)=>{this.io.clearTimeoutFn(s),n.apply(this,a)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...n){return new Promise((r,o)=>{let s=(i,a)=>i?o(i):r(a);s.withError=!0,n.push(s),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());let r={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?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...s)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.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:et.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,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(r=>String(r.id)===e)){let r=this.acks[e];delete this.acks[e],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case et.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 et.EVENT:case et.BINARY_EVENT:this.onevent(e);break;case et.ACK:case et.BINARY_ACK:this.onack(e);break;case et.DISCONNECT:this.ondisconnect();break;case et.CONNECT_ERROR:this.destroy();let r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){let n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let n=this._anyListeners.slice();for(let r of n)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let n=this,r=!1;return function(...o){r||(r=!0,n.packet({type:et.ACK,id:e,data:o}))}}onack(e){let n=this.acks[e.id];typeof n=="function"&&(delete this.acks[e.id],n.withError&&e.data.unshift(null),n.apply(this,e.data))}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,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:et.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 n=this._anyListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let n=this._anyOutgoingListeners.slice();for(let r of n)r.apply(this,e.data)}}}});function Ni(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}var KB=D(()=>{Ni.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-n:t+n}return Math.min(t,this.max)|0};Ni.prototype.reset=function(){this.attempts=0};Ni.prototype.setMin=function(t){this.ms=t};Ni.prototype.setMax=function(t){this.max=t};Ni.prototype.setJitter=function(t){this.jitter=t}});var $i,qB=D(()=>{Ob();XC();Db();YC();KB();Oi();$i=class extends At{constructor(e,n){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Gr(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Ni({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;let o=n.parser||GC;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.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 n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.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 Jc(this.uri,this.opts);let n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let o=Ke(n,"open",function(){r.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=Ke(n,"error",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),n.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(Ke(e,"ping",this.onping.bind(this)),Ke(e,"data",this.ondata.bind(this)),Ke(e,"error",this.onerror.bind(this)),Ke(e,"close",this.onclose.bind(this)),Ke(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){qr(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new Mi(this,e,n),this.nsps[e]=r),r}_destroy(e){let n=Object.keys(this.nsps);for(let r of n)if(this.nsps[r].active)return;this._close()}_packet(e){let n=this.encoder.encode(e);for(let r=0;r<n.length;r++)this.engine.write(n[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),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 n=this.backoff.duration();this._reconnecting=!0;let r=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()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}});var GB={};F(GB,{Fetch:()=>ep,Manager:()=>$i,NodeWebSocket:()=>Zr,NodeXHR:()=>Xr,Socket:()=>Mi,WebSocket:()=>Zr,WebTransport:()=>Li,XHR:()=>Xr,connect:()=>Ib,default:()=>Ib,io:()=>Ib,protocol:()=>qC});function Ib(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let n=LB(t,e.path||"/socket.io"),r=n.source,o=n.id,s=n.path,i=op[o]&&s in op[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new $i(r,e):(op[o]||(op[o]=new $i(r,e)),c=op[o]),n.query&&!e.query&&(e.query=n.queryKey),c.socket(n.path,e)}var op,YB=D(()=>{DB();qB();XC();Db();Ob();op={};Object.assign(Ib,{Manager:$i,Socket:Mi,io:Ib,connect:Ib})});var jT={};F(jT,{ANIMATION_PROPS:()=>Ek,ARIA_ROLES:()=>NH,ATTR_TRANSFORMS:()=>Po,BARE_SEQUENCE_TOKEN_RE:()=>Pn,BLOCK_PROPS:()=>vk,BREAKPOINTS_CONTAINER_NAME:()=>gL,BREAKPOINT_PROPS:()=>Dk,BRENDER_REGISTRY_BLOCK:()=>Bf,BRENDER_REGISTRY_TREE_BLOCK:()=>jf,BRENDER_STAMP_META:()=>ng,CDN_PROVIDERS:()=>tn,COMPOUND_CSS_KEYWORDS:()=>Ls,CONFIG:()=>Ns,CONFIG_MERGE_EXL:()=>ae,CSS_LONGHAND_SHORTHANDS:()=>cn,CSS_NAMED_COLOR_HEX:()=>La,CSS_NATIVE_COLOR_REGEX:()=>xr,CSS_PROPS_REGISTRY:()=>xt,CSS_SHORTHAND_LONGHANDS:()=>vt,CSS_UNITS:()=>Yi,DEFAULT_CONFIG:()=>ui,DEFAULT_CSS_PROPERTIES_LIST:()=>Bt,DELEGATED_EVENTS:()=>sc,DESIGN_SYSTEM_BLOCK:()=>Hf,DESIGN_SYSTEM_DEFERRED:()=>zf,DESIGN_SYSTEM_LINK:()=>Vf,DESIGN_SYSTEM_OPTIONS:()=>cT,DOMQL_EVENTS:()=>G_,DOMQ_PROPERTIES:()=>to,DOM_EVENTS:()=>oD,ELEMENT_METHOD_OVERRIDE_POINTS:()=>Qi,ENV:()=>yw,FACTORY:()=>Fe,FLEX_PROPS:()=>Rk,FONT_PROPS:()=>Ak,GRID_PROPS:()=>Pk,HOST_REGISTERED_PACKAGES:()=>z3,HTML_ATTRIBUTES:()=>Fr,HTML_TAGS:()=>ia,LIBRARY_PACKAGES:()=>tg,LIBRARY_SCOPES_KEY:()=>Es,LIFECYCLE_EVENTS:()=>Jn,LIVE_KEYS:()=>H0,METHODS:()=>no,METHODS_EXL:()=>Tl,MISC_PROPS:()=>Ck,MIXINS:()=>im,NODE_ENV:()=>xn,OPTIONS:()=>rf,PACKAGE_MANAGER_TO_CDN:()=>po,PARSED_DOMQ_PROPERTIES:()=>Cl,POLYGLOT_LANG_STORAGE_KEY:()=>Hh,POSITION_PROPS:()=>Tk,PREPARED_FORMAT:()=>Za,PRERENDER_REGISTRY_FORMATS:()=>hT,PROPS_METHODS:()=>eo,REGISTRY:()=>Gt,RESERVED_STORE_METHODS:()=>QT,REVIVED_MARK:()=>Ml,ROUTER_OPTIONS:()=>Ub,SIGNAL_ENGINE_KEY:()=>qi,SIGNAL_INSTANCES_KEY:()=>Wi,STANDARD_SCHEME_QUERIES:()=>Lg,STATE_DATA_MERGE_EXL:()=>bh,STATE_PROPERTIES:()=>K_,STORE_METHOD_NAMES:()=>JT,SVG_TAGS:()=>dc,THEME_PROPS:()=>Ok,TILING_POSITION_KEYWORDS:()=>Mu,TILING_SIZE_KEYWORDS:()=>Iu,TIMING_PROPS:()=>Xu,TYPES:()=>wl,UNIVERSAL_RESERVED_KEYS:()=>zh,VALUE_TRANSFORMERS:()=>Wg,VERSION:()=>HP,__resetBuiltinMethodWarnings:()=>bx,__resetSignalEngine:()=>w_,__resetSignalInstances:()=>b_,__resetSkinWarnings:()=>j0,__resetStateShadowWarnings:()=>tO,activateConfig:()=>DR,addCaching:()=>dh,addContext:()=>uh,addDelegatedEvent:()=>Ku,addExtend:()=>jw,addExtends:()=>zn,addItemAfterEveryElement:()=>L_,addMethods:()=>mc,addProtoToArray:()=>kl,addRef:()=>ch,adoptPrepared:()=>AA,aliasCaseVariants:()=>ja,alternateLinkKey:()=>Cs,animation:()=>f0,appendSVGSprite:()=>Ru,appendSvgIconsSprite:()=>qs,applyAttrTransforms:()=>oE,applyCSS:()=>TA,applyDependentState:()=>sS,applyDocument:()=>Ou,applyEvent:()=>_h,applyEventUpdate:()=>wh,applyExtends:()=>lc,applyHeadings:()=>$g,applyInitialState:()=>vm,applyMediaSequenceVars:()=>wo,applyProps:()=>Xl,applyReset:()=>Pu,applySequenceGlobalVars:()=>du,applySequenceVars:()=>Tr,applySkins:()=>Lu,applySpacingSequence:()=>yu,applyStateMethods:()=>Ae,applyThemeRoot:()=>Fu,applyTimingSequence:()=>Tu,applyTrueProps:()=>Fk,applyTypographySequence:()=>vu,arrayContainsOtherArray:()=>v_,arraysEqual:()=>I_,arrayzeValue:()=>Rs,assertEmitIntegrity:()=>ck,atSchemes:()=>ko,bareLibraryKey:()=>Pf,batch:()=>Op,bindLibraryGlobalScopes:()=>Df,breakpoints:()=>c0,breakpointsContainerName:()=>bm,brenderStampMeta:()=>Ax,buildImgSrcset:()=>qf,buildSkinVarStyles:()=>Gs,buildSourcesAndImg:()=>Gf,buildThemeVarStyles:()=>Oy,cache:()=>fS,cacheNode:()=>Oo,call:()=>XS,callStateMethod:()=>nd,camelToAttr:()=>Br,camelToLowerAttr:()=>cD,captureSnapshot:()=>JS,changeGlobalTheme:()=>Kg,changeLightness:()=>Wx,checkAttributeByTagName:()=>hn,checkEventFunctions:()=>rE,checkForStateTypes:()=>eS,checkIfBoxSize:()=>mu,checkIfInherits:()=>yh,checkIfStringIsInArray:()=>$_,class:()=>g0,clone:()=>nw,cloneAndMergeArrayExtend:()=>Vl,cloneFunction:()=>Ew,collectExtendsList:()=>aa,color:()=>e0,colorPairSchemes:()=>gu,colorStringToRgbaArray:()=>en,components:()=>Fc,compositeOverBackdrop:()=>Is,compoundLayers:()=>Ia,concatAddExtends:()=>$w,containerBreakpointQuery:()=>Lk,contrastRatio:()=>Na,convertSvgToSymbol:()=>hu,copyJavaScriptToClipboard:()=>Lx,copyStringToClipboard:()=>Px,countUntrackedReads:()=>Pp,create:()=>NT,createAsync:()=>FX,createBasedOnType:()=>ah,createComputed:()=>XT,createConfig:()=>su,createDefine:()=>Rj,createDomqlElement:()=>gp,createEffect:()=>K,createElement:()=>tS,createElementExtends:()=>Yp,createExtends:()=>Hl,createExtendsFromKeys:()=>ca,createExtendsStack:()=>Qp,createHTMLNode:()=>uc,createIfConditionFlag:()=>vw,createInheritedState:()=>nS,createKey:()=>Bl,createNestedObject:()=>fw,createNestedObjectByKeyPath:()=>oS,createObjectWithoutPrototype:()=>Vp,createParent:()=>lh,createPath:()=>fh,createPristineConfig:()=>Tg,createProps:()=>Zl,createPropsStack:()=>sh,createPrunedLibraryIconLoader:()=>ag,createRoot:()=>Qw,createScope:()=>aS,createScopeStore:()=>Lp,createSignal:()=>Sn,createSkeleton:()=>jX,createSnapshotId:()=>Fl,createState:()=>Zk,createStore:()=>ur,createSync:()=>BX,css:()=>Ve,cssCamelName:()=>zu,cssMediaVars:()=>Ag,cssPropName:()=>Ee,cssShorthandDepth:()=>Ja,cssShorthandStatesLonghand:()=>Qa,cssShorthandStatesThemeLonghand:()=>Bu,cssVars:()=>vg,currentPathname:()=>Ss,customDecodeURIComponent:()=>W_,customEncodeURIComponent:()=>H_,cutArrayAfterValue:()=>R_,cutArrayBeforeValue:()=>O_,debounce:()=>Ul,debounceOnContext:()=>xw,decodeBrenderRegistry:()=>Uf,decodeNewlines:()=>z_,deepClone:()=>pt,deepContains:()=>cw,deepDefaults:()=>Ea,deepDestringifyFunctions:()=>be,deepExtend:()=>Gp,deepMerge:()=>bt,deepMergeExtends:()=>Hn,deepStringifyFunctions:()=>Ll,defaultDefine:()=>rl,defineResolvedThemeSignal:()=>_o,defineSetter:()=>GS,defineThemeSignal:()=>bo,designSystemBlock:()=>vx,designSystemLink:()=>Ex,destringifyGlobalScope:()=>ls,destroy:()=>Fi,detectHeightOnInit:()=>ox,detectInfiniteLoop:()=>hw,detectTag:()=>tr,devices:()=>l0,dispose:()=>pn,effectiveGlobalTheme:()=>Ry,encodeNewlines:()=>V_,error:()=>_s,escapeHtml:()=>U,escapeRegExp:()=>F_,evaluateText:()=>uo,excludeKeysFromObject:()=>mw,exec:()=>St,executeAttr:()=>WH,exetuteClassPerComponent:()=>hH,exposeBagGlobalScopes:()=>If,extendCachedRegistry:()=>Fw,extendStackRegistry:()=>Wl,extractArrayExtend:()=>ql,extractConditionalAttrs:()=>sE,faviconLinkKey:()=>mo,fetchLibraryData:()=>Ca,fibonacciNumberByIndex:()=>sx,fileEntryUrl:()=>rg,filterArrays:()=>M_,filterArraysFast:()=>N_,filterAttributesByTagName:()=>HH,finalizeExtends:()=>th,findClosestNumber:()=>og,findClosestNumberInFactory:()=>Rx,findHeadingLetter:()=>Rg,findHeadings:()=>uu,findInheritedState:()=>mh,findKeyPosition:()=>j_,flattenExtend:()=>la,font:()=>Yx,fontFace:()=>Jx,fontFamily:()=>Xx,fontFamilyTypes:()=>Zx,forcedScheme:()=>zs,formatDate:()=>rx,generateHash:()=>Wp,generateHeadArrayTags:()=>Ta,generateKey:()=>$l,generateMetaTags:()=>Tx,generateSequence:()=>we,generateSequencePosition:()=>E0,generateSprite:()=>pu,generateSubSequence:()=>lu,get:()=>HS,getActiveConfig:()=>P,getActiveDocument:()=>Zn,getActiveLang:()=>zi,getCDNDirUrl:()=>Yh,getCDNUrl:()=>An,getCacheSize:()=>pk,getCapitalCaseKeys:()=>zw,getCdnProviderFromConfig:()=>xa,getChildStateInKey:()=>gh,getChildren:()=>qS,getColor:()=>dt,getColorShade:()=>dg,getContext:()=>Sf,getCookie:()=>Rw,getDB:()=>Af,getDefaultOrFirstKey:()=>Er,getEmitStats:()=>om,getEmotionStylesheet:()=>Bx,getExtendsInElement:()=>Uw,getExtendsStack:()=>zl,getExtendsStackRegistry:()=>qp,getFnPrefixAndValue:()=>Cr,getFontFace:()=>qx,getFontFaceEach:()=>Ms,getFontFaceEachString:()=>Sg,getFontFaceString:()=>tu,getFontFamily:()=>Eu,getFontFormat:()=>_g,getFontSizeByKey:()=>Au,getFrequencyInArray:()=>A_,getFunctionSource:()=>Ne,getHashedExtend:()=>Kl,getImportMapScript:()=>nx,getInObjectByPath:()=>pw,getLanguages:()=>cp,getLocalStateLang:()=>dp,getLocalStorage:()=>Lw,getMediaBorder:()=>wu,getMediaColor:()=>Kt,getMediaTheme:()=>an,getNev:()=>Sw,getObserver:()=>Me,getPageMetadata:()=>Ox,getParentStateInKey:()=>hh,getPath:()=>gf,getPendingLang:()=>ap,getQuery:()=>Cf,getRef:()=>KS,getResolvedThemeSignal:()=>LR,getRgbTone:()=>Rn,getRoot:()=>bf,getRootContext:()=>wf,getRootData:()=>_f,getRootState:()=>yf,getRootStateInKey:()=>ph,getSafeInk:()=>Mg,getSafeInkInfo:()=>R0,getSequenceValue:()=>$s,getSequenceValueBySymbols:()=>fu,getSequenceValuePropertyPair:()=>Xn,getShadow:()=>_u,getShapeByKey:()=>Cu,getSignals:()=>ZT,getSizeValue:()=>Ua,getSpacingBasedOnRatio:()=>Be,getSpacingByKey:()=>Vt,getSpreadChildren:()=>Hw,getSubratio:()=>cu,getSubratioDifference:()=>au,getSystemGlobalTheme:()=>fe,getTheme:()=>I0,getThemeSignal:()=>PR,getTimingByKey:()=>Se,getTimingFunction:()=>je,global:()=>x_,gradient:()=>n0,grid:()=>h0,hasFunction:()=>se,hasHandlerPlugin:()=>ra,hasOwnProperty:()=>sw,hashContent:()=>Tn,hexToRgb:()=>Ux,hexToRgbArray:()=>cg,hexToRgba:()=>zx,hslToRgb:()=>ug,icons:()=>s0,inForcedColors:()=>Fs,inheritChildExtends:()=>Zp,inheritChildPropsExtends:()=>Xp,inheritParentProps:()=>Jl,inheritRecursiveChildExtends:()=>Jp,init:()=>fr,initPolyglot:()=>Wb,initProps:()=>Xw,injectGlobal:()=>Ot,insertAfterImportMap:()=>Cx,installPrunedLibraryIconLoader:()=>Kf,is:()=>ye,isArray:()=>I,isBoolean:()=>Ip,isBuiltinElementMethod:()=>q_,isCSSVar:()=>Ft,isContextComponent:()=>Ww,isCyclic:()=>gw,isDOMNode:()=>ge,isDate:()=>Np,isDefined:()=>Ut,isDevelopment:()=>oo,isDomDocument:()=>dr,isEmpty:()=>jp,isEmptyObject:()=>iw,isEnumeratedTrueFalseAttr:()=>oi,isEqualDeep:()=>Up,isFailedRevival:()=>as,isForcedColorsQuery:()=>Bs,isFunction:()=>L,isGoogleFontsUrl:()=>$a,isHostObject:()=>pr,isHtmlElement:()=>bl,isInertCompoundValue:()=>hg,isIntendedSystemColorWord:()=>js,isLazyFunction:()=>rw,isLocal:()=>ww,isLoudDevRuntime:()=>tt,isMalformedDependency:()=>xs,isMethod:()=>ZS,isMobile:()=>Tw,isNativeColorToken:()=>Ds,isNode:()=>hr,isNot:()=>E_,isNotProduction:()=>gr,isNull:()=>Mp,isNumber:()=>me,isObject:()=>E,isObjectLike:()=>V,isPhoto:()=>ix,isPlainColor:()=>xo,isPolyglotRetranslatableKey:()=>nf,isPolyglotWritableKey:()=>us,isProduction:()=>ro,isProtectedElementMethod:()=>rs,isRawUnitValue:()=>ml,isResolvedColor:()=>nn,isRevived:()=>cs,isScalingUnit:()=>ts,isStaging:()=>_w,isState:()=>rS,isStore:()=>Et,isString:()=>v,isStringFunction:()=>na,isStringTag:()=>Il,isSvgTag:()=>$r,isTest:()=>Hp,isTesting:()=>bw,isTracking:()=>Qk,isUndefined:()=>Xt,isUniversallyReservedKey:()=>QS,isUnresolvableDependency:()=>ho,isValidDependencyMap:()=>ks,isValidHtmlTag:()=>Iw,isValidTag:()=>fc,isWasmLoaded:()=>U2,isWrappedLibrary:()=>$e,isWritableFamilyBucket:()=>S_,joinArrays:()=>Xi,joinCompoundLayers:()=>Ma,jointStacks:()=>Bw,jsonForScript:()=>gs,keyframes:()=>oc,keys:()=>Uh,libraryIconPruneReplacer:()=>Fx,libraryIdentifier:()=>sg,libraryPackageSpecs:()=>va,librarySpecsFor:()=>Qh,linearChannelToSrgb:()=>mg,literalPairCompound:()=>Hs,literalSchemeMap:()=>Rr,loadCssFile:()=>fx,loadJavascript:()=>ux,loadJavascriptFile:()=>ax,loadJavascriptFileEmbedSync:()=>lx,loadJavascriptFileSync:()=>cx,loadRemoteCSS:()=>dx,loadRemoteScript:()=>ka,loadTranslations:()=>Vi,loadWasm:()=>j2,log:()=>YS,logGroupIf:()=>Cw,logIf:()=>Aw,lookdown:()=>VS,lookdownAll:()=>zS,lookup:()=>US,lowercaseFirstLetter:()=>es,makeObjectWithoutPrototype:()=>aw,map:()=>ew,mapStringsWithContextComponents:()=>Gl,markPolyglotSeeded:()=>Kn,markRevived:()=>ea,markTextNotReady:()=>_a,matchesComponentNaming:()=>Wn,media:()=>Qx,memoize:()=>kw,merge:()=>Lt,mergeSharedLibraries:()=>Mf,mergeSharedLibraryDesignSystems:()=>Nf,mergeStateData:()=>io,mixTwoColors:()=>jx,mixTwoRgb:()=>Hx,mixTwoRgba:()=>pg,nextElement:()=>kf,normalizeIgnoreList:()=>Lf,normalizeLibraryKey:()=>vs,numToLetterMap:()=>on,objectToString:()=>Dl,objectizeStringProperty:()=>Yl,oklabToLinearSrgb:()=>yg,oklabToOklch:()=>Zf,oklchToGamutSafeSrgb:()=>Jf,oklchToOklab:()=>bg,opacify:()=>Da,overwrite:()=>Nl,overwriteDeep:()=>ie,overwriteShallow:()=>fs,overwriteState:()=>iS,parkHostObject:()=>Qr,parse:()=>Vh,parseColorToken:()=>te,parseDeep:()=>pf,payloadHasComputedIconName:()=>ig,pickStartLang:()=>qh,pickupElementFromProps:()=>rh,pickupPropsFromElement:()=>nh,planLibraryIconPrune:()=>$x,polyglotAddressLang:()=>Wh,polyglotFallbackLang:()=>wr,polyglotFunctions:()=>pp,polyglotLangStorageKey:()=>ba,polyglotLanguages:()=>vn,polyglotPlugin:()=>il,polyglotSeededKeys:()=>ao,polyglotStartLang:()=>ws,polyglotStartRule:()=>Kh,polyglotStartupScript:()=>tx,popConfig:()=>ht,popStaticCssPass:()=>ym,prepareContext:()=>IT,previousElement:()=>Ef,promoteActiveRootState:()=>ma,propExists:()=>Gw,propertizeElement:()=>oh,propertizeUpdate:()=>qw,pushConfig:()=>mt,pushStaticCssPass:()=>mm,quietColorProbe:()=>Us,quietSequenceProbe:()=>Ar,readBrenderStamp:()=>ms,readJsonDataBlock:()=>Gn,recordRules:()=>Hu,refreshContextProto:()=>yc,registerEvent:()=>ac,registerHostPackages:()=>H3,registerSignalInstance:()=>Ki,reinit:()=>CA,relativeLuminance:()=>Ps,remove:()=>gc,removeChars:()=>Dx,removeCookie:()=>Pw,removeDelegatedEvent:()=>qu,removeDuplicateProps:()=>tf,removeDuplicatesInArray:()=>Zi,removeFromArray:()=>C_,removeFromObject:()=>lw,removeNestedKeyByPath:()=>uw,removeValueFromArray:()=>xl,removeValueFromArrayAll:()=>P_,reorderArrayByValues:()=>D_,repairLegacyArrowScopePreamble:()=>Ol,replaceLiteralsWithObjectFields:()=>Zt,replaceOctalEscapeSequences:()=>U_,replayRules:()=>Wu,resetEmitStats:()=>ak,resolveAsset:()=>_e,resolveBorderValue:()=>ce,resolveColorRgb:()=>Vs,resolveColorsInGradient:()=>vo,resolveCompoundWords:()=>kr,resolveConfigDocument:()=>Gi,resolveDesignSystemClass:()=>kL,resolveFileReferences:()=>Os,resolveFileSource:()=>nE,resolveFileUrl:()=>rn,resolveGridTracks:()=>hL,resolveHandler:()=>oa,resolvePropValue:()=>Ro,resolveShadowNonColorWord:()=>za,resolveShadowValue:()=>Ws,resolveSharedLibraries:()=>$f,resolveStyleBlockTokens:()=>jk,returnSubThemeOrDefault:()=>Kx,returnValueAsText:()=>ih,reviveConfig:()=>Yg,rgbArrayToHex:()=>lg,rgbToHSL:()=>fg,rgbToHex:()=>Vx,runPluginHook:()=>so,runThroughMedia:()=>Ng,schemeGuardSelector:()=>Ig,schemeMediaQuery:()=>Dg,scopeElementParam:()=>$p,scopeReceiverExpression:()=>J_,scratchDefaultConfig:()=>Ba,scratchSystem:()=>qa,scratchUtils:()=>So,self:()=>k_,semanticIcons:()=>i0,sequence:()=>vr,serializeAttrValue:()=>rr,serializeConfig:()=>Gg,set:()=>Xs,setActiveConfig:()=>Cg,setActiveDocument:()=>ik,setActiveRootState:()=>mf,setAdaptiveSchemeVar:()=>Eo,setClass:()=>y7,setClassname:()=>gH,setColor:()=>Or,setCookie:()=>Ow,setCssEngineHook:()=>Ty,setCustomFont:()=>Qf,setCustomFontMedia:()=>yo,setEach:()=>$u,setFont:()=>ku,setFontFamily:()=>Wa,setFontImport:()=>Fa,setGradient:()=>Va,setHashedExtend:()=>Kp,setInCustomFontMedia:()=>wg,setInObjectByPath:()=>dw,setLang:()=>fp,setLocalStorage:()=>Dw,setMediaTheme:()=>Ha,setNodeStyles:()=>jh,setObserver:()=>hl,setProps:()=>WS,setPropsPrototype:()=>Ql,setSVG:()=>Ka,setScalingVar:()=>iu,setShadow:()=>Ao,setSubScalingVar:()=>Og,setSvgIcon:()=>Ks,setTheme:()=>Su,setValue:()=>z0,setVariables:()=>v0,setWasmEngine:()=>Vu,settled:()=>Rp,shadow:()=>o0,shape:()=>b0,sharedLibrary:()=>yx,sharedLibraryFiles:()=>As,sizes:()=>y0,skins:()=>_0,spacing:()=>t0,splitCompoundWords:()=>Yf,splitPackageSpecifier:()=>Tf,splitSelectorList:()=>Mr,splitSpacedValue:()=>bu,splitTopLevelCommas:()=>On,splitTopLevelSpaces:()=>ut,splitTransition:()=>Hg,spotByPath:()=>hf,srcsetFor:()=>Oa,srgbChannelToLinear:()=>gg,srgbToOklab:()=>Xf,stringIncludesAny:()=>vl,stringToObject:()=>ow,stripVersionRangePrefix:()=>Of,svg:()=>u0,svgData:()=>xg,svg_data:()=>d0,swapItemsInArray:()=>T_,syncProps:()=>ef,templates:()=>p0,theme:()=>r0,themeColorKey:()=>Ts,timing:()=>a0,toCamel:()=>ou,toCamelCase:()=>Sr,toDashCase:()=>Wf,toDescriptionCase:()=>Mx,toLinearChannel:()=>Pa,toPriorityOrder:()=>Ze,toTitleCase:()=>Ix,toggleFullscreen:()=>ex,transformBackgroundImage:()=>Ug,transformBorder:()=>Fg,transformBorderRadius:()=>Pr,transformBoxShadow:()=>Du,transformClassname:()=>vL,transformDuration:()=>Nu,transformGridTemplate:()=>zg,transformShadow:()=>jg,transformSize:()=>Nt,transformSizeRatio:()=>j,transformTextStroke:()=>Bg,transformTilingValue:()=>Ys,transformTransition:()=>V0,transformersByPrefix:()=>Bk,transfromGap:()=>Vg,translate:()=>lp,triggerEventOn:()=>mr,triggerEventOnUpdate:()=>cS,trimStringFromSymbols:()=>B_,typography:()=>eu,unit:()=>Gx,unstackArrayOfObjects:()=>Sl,untrack:()=>Qo,update:()=>hc,updateProps:()=>Zw,updateVars:()=>m7,upsertTranslation:()=>up,useCssInProps:()=>ee,useHostState:()=>Jk,usePropsAsCSS:()=>xL,useSelectorsAsCSS:()=>EL,variables:()=>vf,vars:()=>m0,verbose:()=>ya,viewTransition:()=>w0,warn:()=>xf,warnLibraryAliasCollision:()=>Aa,warnStateKeyShadowsMethod:()=>Dp,window:()=>R,wrapHoverRule:()=>Ir});module.exports=d4(jT);Mt();var sm={};F(sm,{CSS_LONGHAND_SHORTHANDS:()=>cn,CSS_SHORTHAND_LONGHANDS:()=>vt,assertEmitIntegrity:()=>ck,css:()=>Ve,cssCamelName:()=>zu,cssPropName:()=>Ee,cssShorthandDepth:()=>Ja,cssShorthandStatesLonghand:()=>Qa,cssShorthandStatesThemeLonghand:()=>Bu,getActiveDocument:()=>Zn,getCacheSize:()=>pk,getEmitStats:()=>om,injectGlobal:()=>Ot,keyframes:()=>oc,recordRules:()=>Hu,replayRules:()=>Wu,reset:()=>zP,resetEmitStats:()=>ak,setActiveDocument:()=>ik,setWasmEngine:()=>Vu,splitSelectorList:()=>Mr,wrapHoverRule:()=>Ir});var W0={};F(W0,{BARE_SEQUENCE_TOKEN_RE:()=>Pn,COMPOUND_CSS_KEYWORDS:()=>Ls,CONFIG:()=>Ns,CONFIG_MERGE_EXL:()=>ae,CSS_NAMED_COLOR_HEX:()=>La,CSS_NATIVE_COLOR_REGEX:()=>xr,CSS_UNITS:()=>Yi,FACTORY:()=>Fe,LIVE_KEYS:()=>H0,PREPARED_FORMAT:()=>Za,STANDARD_SCHEME_QUERIES:()=>Lg,TILING_POSITION_KEYWORDS:()=>Mu,TILING_SIZE_KEYWORDS:()=>Iu,VALUE_TRANSFORMERS:()=>Wg,__resetSkinWarnings:()=>j0,activateConfig:()=>DR,aliasCaseVariants:()=>ja,animation:()=>f0,appendSVGSprite:()=>Ru,appendSvgIconsSprite:()=>qs,applyDocument:()=>Ou,applyHeadings:()=>$g,applyMediaSequenceVars:()=>wo,applyReset:()=>Pu,applySequenceGlobalVars:()=>du,applySequenceVars:()=>Tr,applySkins:()=>Lu,applySpacingSequence:()=>yu,applyThemeRoot:()=>Fu,applyTimingSequence:()=>Tu,applyTypographySequence:()=>vu,atSchemes:()=>ko,breakpoints:()=>c0,buildSkinVarStyles:()=>Gs,changeGlobalTheme:()=>Kg,changeLightness:()=>Wx,checkIfBoxSize:()=>mu,class:()=>g0,color:()=>e0,colorPairSchemes:()=>gu,colorStringToRgbaArray:()=>en,compositeOverBackdrop:()=>Is,compoundLayers:()=>Ia,contrastRatio:()=>Na,convertSvgToSymbol:()=>hu,createConfig:()=>su,createPristineConfig:()=>Tg,cssMediaVars:()=>Ag,cssVars:()=>vg,defineResolvedThemeSignal:()=>_o,defineThemeSignal:()=>bo,devices:()=>l0,document:()=>OR,findHeadingLetter:()=>Rg,findHeadings:()=>uu,font:()=>Yx,fontFace:()=>Jx,fontFamily:()=>Xx,fontFamilyTypes:()=>Zx,forcedScheme:()=>zs,generateSequence:()=>we,generateSequencePosition:()=>E0,generateSprite:()=>pu,generateSubSequence:()=>lu,getActiveConfig:()=>P,getColor:()=>dt,getColorShade:()=>dg,getDefaultOrFirstKey:()=>Er,getFnPrefixAndValue:()=>Cr,getFontFace:()=>qx,getFontFaceEach:()=>Ms,getFontFaceEachString:()=>Sg,getFontFaceString:()=>tu,getFontFamily:()=>Eu,getFontFormat:()=>_g,getFontSizeByKey:()=>Au,getMediaBorder:()=>wu,getMediaColor:()=>Kt,getMediaTheme:()=>an,getResolvedThemeSignal:()=>LR,getRgbTone:()=>Rn,getSafeInk:()=>Mg,getSafeInkInfo:()=>R0,getSequenceValue:()=>$s,getSequenceValueBySymbols:()=>fu,getSequenceValuePropertyPair:()=>Xn,getShadow:()=>_u,getShapeByKey:()=>Cu,getSizeValue:()=>Ua,getSpacingBasedOnRatio:()=>Be,getSpacingByKey:()=>Vt,getSubratio:()=>cu,getSubratioDifference:()=>au,getTheme:()=>I0,getThemeSignal:()=>PR,getTimingByKey:()=>Se,getTimingFunction:()=>je,gradient:()=>n0,grid:()=>h0,hexToRgb:()=>Ux,hexToRgbArray:()=>cg,hexToRgba:()=>zx,hslToRgb:()=>ug,icons:()=>s0,inForcedColors:()=>Fs,isCSSVar:()=>Ft,isDomDocument:()=>dr,isForcedColorsQuery:()=>Bs,isGoogleFontsUrl:()=>$a,isHostObject:()=>pr,isInertCompoundValue:()=>hg,isIntendedSystemColorWord:()=>js,isNativeColorToken:()=>Ds,isPlainColor:()=>xo,isRawUnitValue:()=>ml,isResolvedColor:()=>nn,isScalingUnit:()=>ts,isWritableFamilyBucket:()=>S_,joinCompoundLayers:()=>Ma,linearChannelToSrgb:()=>mg,literalPairCompound:()=>Hs,literalSchemeMap:()=>Rr,media:()=>Qx,mixTwoColors:()=>jx,mixTwoRgb:()=>Hx,mixTwoRgba:()=>pg,numToLetterMap:()=>on,oklabToLinearSrgb:()=>yg,oklabToOklch:()=>Zf,oklchToGamutSafeSrgb:()=>Jf,oklchToOklab:()=>bg,opacify:()=>Da,parkHostObject:()=>Qr,parseColorToken:()=>te,popConfig:()=>ht,pushConfig:()=>mt,quietColorProbe:()=>Us,quietSequenceProbe:()=>Ar,relativeLuminance:()=>Ps,reset:()=>RR,resolveBorderValue:()=>ce,resolveColorRgb:()=>Vs,resolveColorsInGradient:()=>vo,resolveCompoundWords:()=>kr,resolveConfigDocument:()=>Gi,resolveFileUrl:()=>rn,resolveShadowNonColorWord:()=>za,resolveShadowValue:()=>Ws,returnSubThemeOrDefault:()=>Kx,reviveConfig:()=>Yg,rgbArrayToHex:()=>lg,rgbToHSL:()=>fg,rgbToHex:()=>Vx,runThroughMedia:()=>Ng,schemeGuardSelector:()=>Ig,schemeMediaQuery:()=>Dg,scratchDefaultConfig:()=>Ba,scratchSystem:()=>qa,scratchUtils:()=>So,semanticIcons:()=>i0,sequence:()=>vr,serializeConfig:()=>Gg,set:()=>Xs,setActiveConfig:()=>Cg,setAdaptiveSchemeVar:()=>Eo,setColor:()=>Or,setCustomFont:()=>Qf,setCustomFontMedia:()=>yo,setEach:()=>$u,setFont:()=>ku,setFontFamily:()=>Wa,setFontImport:()=>Fa,setGradient:()=>Va,setInCustomFontMedia:()=>wg,setMediaTheme:()=>Ha,setSVG:()=>Ka,setScalingVar:()=>iu,setShadow:()=>Ao,setSubScalingVar:()=>Og,setSvgIcon:()=>Ks,setTheme:()=>Su,setValue:()=>z0,setVariables:()=>v0,shadow:()=>o0,shape:()=>b0,sizes:()=>y0,skins:()=>_0,spacing:()=>t0,splitCompoundWords:()=>Yf,splitSpacedValue:()=>bu,splitTopLevelCommas:()=>On,splitTopLevelSpaces:()=>ut,splitTransition:()=>Hg,srgbChannelToLinear:()=>gg,srgbToOklab:()=>Xf,svg:()=>u0,svgData:()=>xg,svg_data:()=>d0,templates:()=>p0,theme:()=>r0,timing:()=>a0,toCamel:()=>ou,toLinearChannel:()=>Pa,transformBackgroundImage:()=>Ug,transformBorder:()=>Fg,transformBorderRadius:()=>Pr,transformBoxShadow:()=>Du,transformDuration:()=>Nu,transformGridTemplate:()=>zg,transformShadow:()=>jg,transformSize:()=>Nt,transformSizeRatio:()=>j,transformTextStroke:()=>Bg,transformTilingValue:()=>Ys,transformTransition:()=>V0,transfromGap:()=>Vg,typography:()=>eu,unit:()=>Gx,vars:()=>m0,viewTransition:()=>w0});var So={};F(So,{BARE_SEQUENCE_TOKEN_RE:()=>Pn,COMPOUND_CSS_KEYWORDS:()=>Ls,CSS_NAMED_COLOR_HEX:()=>La,CSS_NATIVE_COLOR_REGEX:()=>xr,CSS_UNITS:()=>Yi,applyMediaSequenceVars:()=>wo,applySequenceGlobalVars:()=>du,applySequenceVars:()=>Tr,changeLightness:()=>Wx,colorStringToRgbaArray:()=>en,compositeOverBackdrop:()=>Is,compoundLayers:()=>Ia,contrastRatio:()=>Na,convertSvgToSymbol:()=>hu,findHeadingLetter:()=>Rg,findHeadings:()=>uu,generateSequence:()=>we,generateSequencePosition:()=>E0,generateSprite:()=>pu,generateSubSequence:()=>lu,getColorShade:()=>dg,getDefaultOrFirstKey:()=>Er,getFnPrefixAndValue:()=>Cr,getFontFace:()=>qx,getFontFaceEach:()=>Ms,getFontFaceEachString:()=>Sg,getFontFaceString:()=>tu,getFontFormat:()=>_g,getRgbTone:()=>Rn,getSequenceValue:()=>$s,getSequenceValueBySymbols:()=>fu,getSequenceValuePropertyPair:()=>Xn,getSizeValue:()=>Ua,getSubratio:()=>cu,getSubratioDifference:()=>au,hexToRgb:()=>Ux,hexToRgbArray:()=>cg,hexToRgba:()=>zx,hslToRgb:()=>ug,isCSSVar:()=>Ft,isDomDocument:()=>dr,isGoogleFontsUrl:()=>$a,isHostObject:()=>pr,isInertCompoundValue:()=>hg,isNativeColorToken:()=>Ds,isRawUnitValue:()=>ml,isResolvedColor:()=>nn,isScalingUnit:()=>ts,isWritableFamilyBucket:()=>S_,joinCompoundLayers:()=>Ma,linearChannelToSrgb:()=>mg,mixTwoColors:()=>jx,mixTwoRgb:()=>Hx,mixTwoRgba:()=>pg,numToLetterMap:()=>on,oklabToLinearSrgb:()=>yg,oklabToOklch:()=>Zf,oklchToGamutSafeSrgb:()=>Jf,oklchToOklab:()=>bg,opacify:()=>Da,parkHostObject:()=>Qr,parseColorToken:()=>te,quietSequenceProbe:()=>Ar,relativeLuminance:()=>Ps,resolveCompoundWords:()=>kr,resolveConfigDocument:()=>Gi,resolveFileUrl:()=>rn,returnSubThemeOrDefault:()=>Kx,rgbArrayToHex:()=>lg,rgbToHSL:()=>fg,rgbToHex:()=>Vx,setCustomFont:()=>Qf,setCustomFontMedia:()=>yo,setFontImport:()=>Fa,setInCustomFontMedia:()=>wg,setScalingVar:()=>iu,setSubScalingVar:()=>Og,setVariables:()=>v0,splitCompoundWords:()=>Yf,splitTopLevelCommas:()=>On,splitTopLevelSpaces:()=>ut,srgbChannelToLinear:()=>gg,srgbToOklab:()=>Xf,toLinearChannel:()=>Pa});var dr=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0),pr=t=>{if(t===null||typeof t!="object")return!1;let e=Object.prototype.toString.call(t);return!!(e!=="[object Object]"&&e!=="[object Array]"||typeof t.nodeType=="number"||t.defaultView||t.window===t||t.self===t)},S_=t=>t!==null&&typeof t=="object"&&!pr(t),Qr=(t,e,n)=>{if(!t)return;if(dr(n)){t.__domDocument||(t.__domDocument=n);return}let r=`__host_${e}`;t[r]||(t[r]=n)},Gi=t=>t?dr(t.__domDocument)?t.__domDocument:dr(t.document)?t.document:null:null;var ts=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",Yi=["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"],P4=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),L4=new RegExp(`^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:${Yi.filter(t=>t!=="auto").map(P4).join("|")})$`),ml=t=>L4.test(String(t).trim());M();var La={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},en=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];let e=La[t.toLowerCase()];if(e&&(t=e),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&&kt&&R){let n=kt.body.appendChild(kt.createElement("fictum")),r="rgb(1, 2, 3)";if(n.style.color=r,n.style.color!==r){kt.body.removeChild(n);return}if(n.style.color=t,n.style.color===r||n.style.color==="")return kt.body.removeChild(n),[0,0,0,0];t=R.getComputedStyle(n).color,kt.body.removeChild(n)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(n=>+n)):[0,0,0,0]},jx=(t,e,n=.5)=>(t=en(t),e=en(e),pg(t,e,n)),Ux=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${n},${r},${o})`},cg=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[n,r,o]},Vx=(t,e,n)=>"#"+(1<<24|t<<16|e<<8|n).toString(16).slice(1),lg=([t,e,n])=>((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1),zx=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${n},${r},${o},${e})`},Hx=(t,e,n=.5)=>{let r=[];for(let o=0;o<3;o++)r[o]=~~(t[o]+(e[o]-t[o])*n);return`rgb(${r})`},Wx=(t,e)=>{let[n,r,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[n,r,s]},fg=(t,e,n)=>{let r=Math.max(t,e,n),o=r-Math.min(t,e,n),s=1-Math.abs(r+r-o-1),i=o&&(r==t?(e-n)/o:r==e?2+(n-t)/o:4+(t-e)/o);return[60*(i<0?i+6:i),s?o/s:0,(r+r-o)/2]},ug=(t,e,n,r=e*Math.min(n,1-n),o=(s,i=(s+t/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],dg=(t,e)=>{let n=parseInt(t,16),r=(n>>16)+e;r>255?r=255:r<0&&(r=0);let o=(n>>8&255)+e;o>255?o=255:o<0&&(o=0);let s=(n&255)+e;return s>255?s=255:s<0&&(s=0),((s|o<<8|r<<16)+16777216).toString(16).slice(1)},pg=(t,e,n=.5)=>{let r=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;r[o]=s(t[o]+(e[o]-t[o])*n)}return`rgba(${r})`},Da=(t,e)=>{let n=en(t);if(!n){gr()&&console.warn(t+" color is not rgba");return}return n[3]=e,`rgba(${n})`},Ft=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Ls=new Set(["currentcolor","transparent","thin","medium","thick"]),xr=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,lU=/^(?:#[0-9a-f]{3,8}|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix|light-dark)\([\s\S]*\))$/i,Ds=t=>lU.test(t),Yf=t=>t.indexOf("(")===-1?t.split(/\s+/):ut(t),hg=(t,e)=>{let n=t.length,r=0,o=0;for(let s=0;s<=n;s++){let i=s<n?t.charCodeAt(s):32;if(i===40){r++;continue}if(i===41){r>0&&r--;continue}if(!(r>0||!(i<=32||i===44||i>127&&/\s/.test(t[s])))){if(s>o&&!fU(t,o,s,e))return!1;o=s+1}}return!0},fU=(t,e,n,r)=>{let o=t.charCodeAt(e);if(o>=48&&o<=57)return!0;let s=t.slice(e,n);return Ds(s)||r!==void 0&&r.has(s)},Ia=(t,e)=>e?On(t).map(n=>Yf(n.trim())):[Yf(t)],Ma=t=>{let e=t[0].join(" ");for(let n=1;n<t.length;n++)e+=", "+t[n].join(" ");return e},kr=(t,e,{commas:n,keywords:r},o,s)=>{let i=xr.test(t);if(i&&hg(t,r))return t;let a=Ia(t,n),c=!1;try{for(let l of a)for(let f=0;f<l.length;f++){let u=l[f],d=uU(u,e,r,o,s);d!==u&&(l[f]=d,c=!0)}}catch(l){if(i)return t;throw l}return i&&!c?t:Ma(a)},uU=(t,e,n,r,o)=>t?Ft(t)?`var(${t})`:Ds(t)||n!==void 0&&n.has(t)?t:e(t,r,o):"",dU=/^([a-zA-Z]\w*(?:-[a-zA-Z]\w*)*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,te=t=>{if(!v(t))return null;if(xr.test(t))return{passthrough:t};if(Ft(t))return{cssVar:t};let e=t.match(dU);if(!e)return null;let[,n,r,o]=e,s=r!==void 0?`0.${r}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:n,alpha:s,tone:i}},nn=t=>v(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),On=t=>{let e=[],n="",r=0;for(let o of t){if(o==="("?r+=1:o===")"&&r>0&&(r-=1),o===","&&r===0){e.push(n),n="";continue}n+=o}return(n.length||!e.length)&&e.push(n),e},ut=t=>{let e=[],n="",r=0;for(let o of t){if(o==="("?r+=1:o===")"&&r>0&&(r-=1),r===0&&/\s/.test(o)){n.length&&e.push(n),n="";continue}n+=o}return n.length&&e.push(n),e},Pa=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),Ps=t=>.2126*Pa(t[0])+.7152*Pa(t[1])+.0722*Pa(t[2]),Na=(t,e)=>{let n=Ps(t)+.05,r=Ps(e)+.05;return n>r?n/r:r/n},gg=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),mg=t=>(t<=.0031308?t*12.92:1.055*Math.pow(t,1/2.4)-.055)*255,Xf=([t,e,n])=>{let[r,o,s]=[t,e,n].map(gg),i=.4122214708*r+.5363325363*o+.0514459929*s,a=.2119034982*r+.6806995451*o+.1073969566*s,c=.0883024619*r+.2817188376*o+.6299787005*s,l=Math.cbrt(i),f=Math.cbrt(a),u=Math.cbrt(c);return[.2104542553*l+.793617785*f-.0040720468*u,1.9779984951*l-2.428592205*f+.4505937099*u,.0259040371*l+.7827717662*f-.808675766*u]},yg=([t,e,n])=>{let r=t+.3963377774*e+.2158037573*n,o=t-.1055613458*e-.0638541728*n,s=t-.0894841775*e-1.291485548*n,i=r**3,a=o**3,c=s**3;return[4.0767416621*i-3.3077115913*a+.2309699292*c,-1.2684380046*i+2.6097574011*a-.3413193965*c,-.0041960863*i-.7034186147*a+1.707614701*c]},Zf=([t,e,n])=>{let r=Math.atan2(n,e)*180/Math.PI;return r<0&&(r+=360),[t,Math.sqrt(e*e+n*n),r]},bg=([t,e,n])=>{let r=n*Math.PI/180;return[t,e*Math.cos(r),e*Math.sin(r)]},Jf=(t,e,n,r=24)=>{let o=a=>yg(bg([t,a,n])),s=a=>a.every(c=>c>=-1e-4&&c<=1.0001),i=o(e);if(!s(i)){let a=0,c=e;for(let l=0;l<r;l++){let f=(a+c)/2;s(o(f))?a=f:c=f}i=o(a)}return i.map(a=>mg(Math.max(0,Math.min(1,a))))},Is=(t,e=1,n=[255,255,255])=>e>=1?t:t.map((r,o)=>r*e+n[o]*(1-e)),Rn=(t,e)=>{v(t)&&t.includes("rgb")&&(t=en(t).join(", ")),v(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),me(e)&&(e+="");let n=lg(t),r=e.slice(0,1);if(r==="-"||r==="+"){let o=dg(n,parseFloat(e));return cg(o).join(", ")}else{let[o,s,i]=t,[a,c]=fg(o/255,s/255,i/255),l=Math.max(0,Math.min(100,parseFloat(e)))/100;return ug(a,c,l).map(u=>Math.round(Math.max(0,Math.min(1,u))*255)).join(", ")}};var Kx=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var rn=(t,e)=>{if(!t||!e)return null;try{return new URL(t),null}catch{}let n=e[t];return n?n.content&&n.content.src:null},Er=(t,e)=>{if(!t)return;if(e!=null&&e!==""&&e!=="default"){let s=t[e];return s&&typeof s=="object"?s.value:void 0}let r=()=>Object.keys(t).find(s=>s!=="default"&&t[s]&&t[s].value&&!t[s].isSystemFallback&&!t[s].isSharedLibrary);if(t.__defaultKey){let s=t[t.__defaultKey];if(s&&s.isSystemFallback){let i=r();if(i)return t[i].value}if(s)return s.value}let o=r()||Object.keys(t).find(s=>s!=="default"&&t[s]&&t[s].value);return o&&t[o]&&t[o].value},_g=t=>{if(typeof t!="string"||!t)return null;let e=t.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(e)?e:null},$a=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),Fa=t=>`@import url('${t}');`,wg=t=>`@font-face { ${t} }`,Qf=(t,e,n,r={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=_g(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
35
+ `;)t[r]==="\\"&&r++,r++;s(l,r),r++;continue}if(a==="`"){r++,i();continue}if(a==="{"){o++,r++;continue}if(a==="}"){if(o--,n.length&&o===n[n.length-1]){n.pop(),r++,i();continue}r++;continue}r++}return e.join("")},SR=(t,e)=>{if(!v(t)||!t.includes("__scope = ")&&!t.includes("__peers")&&!/const _s_* = /.test(t)&&!t.includes("?.context?.globalScope?.")||!ie(t))return t;let n=`(globalThis[Symbol.for('smbls.libraryScope')] || ((_, v) => v))(${JSON.stringify(e)}, `,r=t;for(let[o,s]of lU){let i=fU(r);r=r.replace(o,(...a)=>{let c=a[a.length-2];return i[c]==="~"||i[c]!==r[c]?a[0]:s.replace(/\$RESOLVE\(/g,n).replace(/\$(\d)/g,(l,f)=>a[Number(f)])})}return r},Ix=(t,e)=>{if(v(t))return SR(t,e);let n=IR(t);return n===null?t:SR(n,e)},uU={lazy:!0,window:globalThis},MR=(t,e)=>{let n=Ix(t,e);if(n===t||!v(n))return n;try{let r=we({v:n},{},uU).v;return typeof r!="function"?n:(Object.defineProperty(r,"toJSON",{value:()=>n,configurable:!0}),r)}catch{return n}},Cx=t=>{if(!t||typeof t!="object")return!1;if(Array.isArray(t))return!0;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},dU=(t,e)=>{let n=new WeakMap,r=o=>{if(v(o)||typeof o=="function")return MR(o,e);if(Ul(o)||!Cx(o))return o;if(n.has(o))return n.get(o);let s=Array.isArray(o)?[]:Object.getPrototypeOf(o)===null?Object.create(null):{};n.set(o,s);for(let i of Object.keys(o))ce.has(i)||(s[i]=r(o[i]));return s};return r(t)},pU=(t,e)=>{let n={...t};n.globalScope=NR(t.globalScope,e);for(let r of Lx){let o=t[r];if(!Cx(o))continue;let s={};for(let i of Object.keys(o))ce.has(i)||(s[i]=MR(o[i],e));n[r]=s}for(let r of LR)Cx(t[r])&&(n[r]=dU(t[r],e));return n},xR=new WeakMap,hU=(t,e,n)=>{let r=xR.get(t);r||xR.set(t,r=new Map);let o=r.get(e);if(o)return o;let s=(i,a)=>Vt(n,i)&&n[i]===a;return o=new Proxy(t,{get(i,a){if(typeof a=="symbol"||Vt(i,a))return Reflect.get(i,a);let c=Reflect.get(i,a);return Vt(e,a)&&(c===void 0||s(a,c))||c===void 0?e[a]:c},set(i,a,c){return typeof a!="symbol"&&!Vt(i,a)&&Vt(e,a)?(e[a]=c,!0):Reflect.set(i,a,c)},has:(i,a)=>Reflect.has(i,a)||a in e}),r.set(e,o),o},gU=t=>!!t&&typeof t=="object"&&!!t.__raw&&typeof t.__raw=="object",mU=(t,e)=>{let n=Dx.get(t);return n?e===n.consumerGs?n.libGs:gU(e)?hU(e,n.libGs,n.consumerGs):e:e},yU=()=>{typeof globalThis[_R]!="function"&&Object.defineProperty(globalThis,_R,{value:mU,configurable:!0})},cg=t=>{let e=t[Cs];return Array.isArray(e)?e:null},Mx=t=>je(t)?t.library:t,bU=(t,e,n)=>{let r=cg(t);return!!r&&r.some(o=>o&&o.index===e&&(!o.key||o.key===n.key)&&v(o.id)&&_U(t,o.id))},_U=(t,e)=>{let n=JSON.stringify(e),r=new Set,o=s=>{if(v(s))return s.includes(n);if(!s||typeof s!="object"||r.has(s))return!1;r.add(s);for(let i in s)if(o(s[i]))return!0;return!1};for(let s of["globalScope",...Lx,...LR])if(o(t[s]))return!0;return!1},NR=(t,e)=>{let n={};for(let r of Object.keys(t))ce.has(r)||(n[r]=Ix(t[r],e));return n},kR=new WeakMap,jf=(t,e=null)=>{let n=t&&cg(t);if(!n||!n.length)return 0;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return on("bindLibraryGlobalScopes"),0;let r=t.globalScope;if(!k(r))return 0;let o=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[],s=kR.get(r);s||kR.set(r,s=new Set),yU();let i=0;for(let a of n){if(!a||!v(a.id)||s.has(a.id))continue;let c=Mx(o[a.index]);if(!c||!k(c.globalScope)||a.key&&c.key!==a.key)continue;let l=p=>typeof p=="function"?DR(p):p,f=(p,g)=>{if(p===g)return!0;let h=l(p),m=l(g);return v(h)||v(m)?h===m:JSON.stringify(p)===JSON.stringify(g)},u=k(e)?(Array.isArray(a.landed)?a.landed:[]).filter(p=>v(p)&&Vt(c.globalScope,p)&&Vt(e,p)&&f(e[p],Ix(c.globalScope[p],a.id))):[],d=gs(NR(c.globalScope,a.id));Object.setPrototypeOf(d,r),Dx.set(a.id,{libGs:d,consumerGs:r});for(let p of u)r[p]=d[p];s.add(a.id),i++}return i},wU=/^@symbo[-.]ls\//,Ff=t=>t.includes("/")?t.slice(t.indexOf("/")+1):t,lg=t=>[`@symbo-ls/${t}`,`@symbo.ls/${t}`],Pa=(t,e)=>{let n=[];if(!Array.isArray(t)||!t.length)return n;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return on("libraryPackageSpecs"),n;let r=new Map,o=(i,a,c)=>{for(let l of lg(i)){let f=r.get(l);if(f===void 0){r.set(l,a),n.push([l,a]);continue}f!==a&&c&&typeof e=="function"&&e({spec:l,kept:f,refused:a})}},s=[];for(let i of t){let a=Mx(i);if(!a||typeof a!="object"||a.__isStub)continue;let c=a.key||a.name||a.__libraryKey,l=[];for(let f of[a.key,a.name,a.__libraryKey,a.__libraryName]){if(typeof f!="string"||!f||f!==c&&!wU.test(f))continue;let u=Ff(f);u&&!l.includes(u)&&l.push(u)}l.forEach((f,u)=>{u===0&&c&&Ff(c)===f?o(f,a,!1):s.push([f,a])})}for(let[i,a]of s)o(i,a,!0);return n},La=({spec:t,kept:e,refused:n})=>{typeof console>"u"||console.warn(`[smbls] shared library "${n&&n.key}" also claims ${t}, which "${e&&e.key}" already owns; ${t} stays with "${e&&e.key}".`)},ER=["functions","methods","snippets"],fg=Symbol.for("smbls.libraryPackages"),$f=new WeakMap,SU=t=>!!t&&typeof t=="object"&&!Array.isArray(t),xU=t=>({get globalScope(){return t()}}),vR=(t,e,n)=>{let r={};for(let o of Object.keys(t))ce.has(o)||(r[o]=t[o]);return Object.defineProperty(r,"context",{configurable:!0,enumerable:!1,writable:!0,value:xU(e)}),$f.set(r,n),r},AR=t=>!SU(t)||!$f.has(t)&&Object.prototype.hasOwnProperty.call(t,"context"),Uf=t=>{if(!t||typeof t!="object")return;let e=()=>t.globalScope;for(let r of ER){let o=t[r];AR(o)||$f.get(o)===t||(t[r]=vR(o,e,t))}if(!globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__&&Array.isArray(t.sharedLibraries)){let r=cg(t)||[];t.sharedLibraries=t.sharedLibraries.map((o,s)=>{let i=je(o)&&o&&"library"in o,a=Mx(o);if(!a||typeof a!="object"||a.__isStub||$f.get(a)===t)return o;let c=r.find(u=>u&&u.index===s&&(!u.key||u.key===a.key)),l=()=>{let u=c&&Dx.get(c.id);return u&&u.consumerGs===t.globalScope?u.libGs:t.globalScope},f={...a};for(let u of ER)AR(a[u])||(f[u]=vR(a[u],l,t));return $f.set(f,t),i?{...o,library:f}:f})}let n=t.globalScope;if(n&&typeof n=="object"){let r={};for(let[o,s]of Pa(t.sharedLibraries,La))r[o]=s;try{Object.defineProperty(n,fg,{configurable:!0,enumerable:!1,writable:!0,value:r})}catch{}}},sg="polyglot/translations",kU=(t,e)=>{let n=t;for(let r of e.split(".")){if(!n||typeof n!="object"||!Vt(n,r))return!1;n=n[r]}return n!==void 0},$R=(t,e,n,r,o=!1)=>{for(let s in e){if(!Vt(e,s)||ce.has(s))continue;let i=`${r}/${s}`;if(!n.has(i))if(Vt(t,s))k(t[s])&&k(e[s])&&$R(t[s],e[s],n,i);else{if(o&&s.includes(".")&&kU(t,s))continue;t[s]=So(e[s],n,i)}}},FR=(t,e,n)=>{if(!("translations"in t)){t.translations=So(e,n,sg);return}let r=t.translations;if(!k(r)||!k(e)||t.fetch)return;let o=null;for(let s in e){if(!Vt(e,s)||ce.has(s))continue;let i=`${sg}/${s}`;if(!n.has(i)){if(Vt(r,s)){k(r[s])&&k(e[s])&&$R(r[s],e[s],n,i,!0);continue}k(e[s])&&(o||(o=new Set(Be(t,!1))),o.has(s)&&(r[s]=So(e[s],n,i)))}}},EU=(t,e)=>{let n={};for(let r in t){if(!Vt(t,r)||ce.has(r))continue;let o=`polyglot/${r}`;e.has(o)||(n[r]=r==="translations"?So(t[r],e,o):Ox(t[r],e,o))}return n},vU=(t,e,n,r="library",o=-1)=>{let s=ag(e,n),i=!bU(t,o,e)&&cU(t,e,s)>0?`${r}#${sU()}`:null,a=i?pU(e,i):e,c=i?new Set(Object.keys(t.globalScope)):null,l=[];for(let f in a)if(Object.prototype.hasOwnProperty.call(a,f)&&!(f==="sharePages"||f==="sharedLibIgnore")&&f!==Cs&&!f.startsWith("__")&&!ce.has(f)&&f!=="app"&&!s.has(f)){if(k(a[f])&&k(t[f]))if(f==="designSystem")Ra(t[f],a[f],s,f);else{for(let u in a[f])if(!ce.has(u)&&!s.has(`${f}/${u}`)&&!(f==="polyglot"&&u==="translations")){if(f==="methods"&&ls(u)){u in t[f]||l.push(u);continue}u in t[f]?yR(f,t[f][u])&&!yR(f,a[f][u])&&(t[f][u]=a[f][u]):t[f][u]=a[f][u]}f==="polyglot"&&Vt(a.polyglot,"translations")&&!s.has(sg)&&FR(t.polyglot,a.polyglot.translations,s)}else if(!(f in t)){let u=a[f],d=f==="methods"&&u&&typeof u=="object"?oU(u,s,l):u;f==="designSystem"?t[f]=So(d,s,f):f==="polyglot"&&k(d)?t[f]=EU(d,s):t[f]=J6(Ox(d,s,f),e[f])}}i&&(cg(t)||(t[Cs]=[]),t[Cs].push({id:i,index:o,key:v(e.key)?e.key:null,landed:Object.keys(a.globalScope).filter(f=>!c.has(f))})),l.length&&rU(r,l)},AU=(t,e,n)=>{if(t!==e){let r=PR(t);if(v(r)&&r)return r;if(t.key||t.name)return t.key||t.name}return e&&(e.key||e.name)||`sharedLibraries[${n}]`},TU=`${Ax}/default`,CU=t=>v(t)&&t!==""&&Os(t).full===TU,OU=(t,e)=>{if(v(e.key)&&e.key)return e.key;if(t!==e){if(v(t.key)&&t.key)return t.key;if(v(t.name)&&t.name)return t.name}return null},Nx=t=>{let e=[],n=[];for(let r=0;r<t.length;r++){let o=t[r],s=o,i=Q6;if(je(s)&&(i=Bf(s.ignoreList),s=s.library),!k(s))continue;let a={entry:o,lib:s,ignore:i,index:r};CU(OU(o,s))?n.push(a):e.push(a)}return{linked:e,bases:n}},BR=(t,e,n)=>{let r=e(),o=bR(r),s=eU(r),{linked:i,bases:a}=Nx(t);for(let f of i)n(f);let c=!o.size&&a.length?bR(e()):null;for(let f of a)n(f);return{claims:o.size?o:c&&c.size?c:null,ownFamilies:s}},Vf=(t,e)=>{if(!e||!e.length)return;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return on("mergeSharedLibraries");let{claims:n,ownFamilies:r}=BR(e,()=>t.designSystem,({entry:o,lib:s,ignore:i,index:a})=>vU(t,s,i,AU(o,s,a),a));RR(t.designSystem,r),n&&OR(t.designSystem,n)},Rs=(t,e)=>{let n=k(t)?t:null;if(!Array.isArray(e)||!e.length)return n||{};if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return on("sharedLibraryFiles"),n||{};let r=n?{...n}:{},{linked:o,bases:s}=Nx(e);for(let{lib:i,ignore:a}of[...o,...s]){let c=ag(i,a);if(c.has("files"))continue;let l=i.files;if(k(l))for(let f in l)!Object.prototype.hasOwnProperty.call(l,f)||ce.has(f)||c.has(`files/${f}`)||f in r||(r[f]=l[f])}return r},zf=(t,e,n=Ra)=>{if(!k(t)||!Array.isArray(e)||!e.length)return t;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return on("mergeSharedLibraryDesignSystems"),t;let{claims:r,ownFamilies:o}=BR(e,()=>t,({lib:s,ignore:i})=>{let a=s.designSystem;if(!a||typeof a!="object")return;let c=ag(s,i);c.has("designSystem")||n(t,a,c,"designSystem")});return RR(t,o),r&&OR(t,r),t},Hf=(t,e)=>{if(!k(t)||!Array.isArray(e)||!e.length)return t;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return on("mergeSharedLibraryTranslations"),t;let{linked:n,bases:r}=Nx(e);for(let{lib:o,ignore:s}of[...n,...r]){let i=o.polyglot;if(!k(i)||!Vt(i,"translations"))continue;let a=ag(o,s);a.has("polyglot")||a.has(sg)||FR(t,i.translations,a)}return t}});function Ds(t,e){if(!e||typeof e!="object")return t;let n=o=>!FU(o)||!Object.prototype.hasOwnProperty.call(e,o)?o:pg(e[o])||o,r={...t};for(let[o,s]of Object.entries(r))BU.has(o)?r[o]=Array.isArray(s)?s.map(i=>UR(i,n)):UR(s,n):typeof s=="string"?r[o]=n(s):Array.isArray(s)&&(r[o]=s.map(i=>typeof i=="string"?n(i):i));return r}function $x(t,e){if(!t||!e)return;let n=e.split("."),r=t;for(let o of n){if(r==null||typeof r!="object")return;r=r[o]}return r}function jU(t,e){let n=$x(t,e);if(typeof n=="number")return Number.isFinite(n)?n:void 0;if(typeof n=="string"&&!aa(n))return n}function UU(t,e,n){let o=(e.config||e.settings||{}).polyglot||e.polyglot,s=n?.lang||o?.defaultLang||"en",a=(o?.translations||{})[s]||{},c=[n?.state,e.state].filter(u=>u&&typeof u=="object"),l=u=>{for(let d of c){let p=jU(d,u);if(p!==void 0)return p}},f={...t};for(let[u,d]of Object.entries(f))typeof d!="string"||!d.includes("{{")||(f[u]=d.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(p,g,h)=>{let m=g.trim();if(h==="polyglot")return a[m]??$x(a,m)??p;if(h==="getLocalStateLang")return l(m+s)??p;let y=l(m);return y!==void 0?y:a[m]??$x(a,m)??p}));return f}function VR(t){if(!k(t))return{};let e={...t};for(let[n,r]of Object.entries(e))if(typeof r=="function"){let o=r.toString(),s=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[n]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){e[n]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){e[n]=`{{ ${a[1]} }}`;continue}delete e[n]}else if(typeof r=="string"){let o=r.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){e[n]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=r.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[n]=`{{ ${s[1]} | polyglot }}`;continue}if(r.includes("=>")&&r.includes("s.")){let i=r.match(/s\.(\w+(?:\.\w+)+)/);if(i){e[n]=`{{ ${i[1]} }}`;continue}}aa(r)&&delete e[n]}return e}function zx(t,e,n,{isProduction:r=!1,channel:o="production"}={}){if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Kn("getPageMetadata",[t,e,n,{isProduction:r,channel:o}]);let s=t.pages?.[e],i=k(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=VR(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=VR(f),d={};if(t.integrations?.seo?d={...t.integrations.seo,...u,...c}:Object.keys(u).length?d={...u,...c}:d={...c},!d.title){let m=t.name||t.key;m?r?d.title=m:o==="development"?d.title=`${m} / dev:symbo.ls`:o==="staging"?d.title=`${m} / staging:symbo.ls`:d.title=`${m} / symbo.ls`:d.title="Symbols demo"}d=UU(d,t,n),d.title&&(l.has("title")||!d["og:title"])&&(l.has("og:title")||(d["og:title"]=d.title)),d.description&&(l.has("description")||!d["og:description"])&&(l.has("og:description")||(d["og:description"]=d.description)),d.title&&!d["twitter:title"]&&(d["twitter:title"]=d.title),d.description&&!d["twitter:description"]&&(d["twitter:description"]=d.description);let p=l.has("og:url")?d["og:url"]:l.has("url")?d.url:void 0,g=n?.actualPathname||e;if(p)d["og:url"]=p;else if(d["og:url"]||d.url){let m=(d["og:url"]||d.url||"").replace(/\/$/,"");if(m&&g&&g!=="/"){let y=g.startsWith("/")?g:"/"+g;d["og:url"]=m+y}}d=Ds(d,Rs(t.files,t.sharedLibraries));let h=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[m,y]of Object.entries(d))if(typeof y=="string"&&y.includes("{{")){let x=y.replace(/\{\{[^}]*\}\}/g,"").trim();x?d[m]=x:m==="title"?d[m]=h:delete d[m]}return d}var V,_s,Jn,qf,Gf,Yf,Xf,Zf,Jf,LU,Fx,Bx,dg,jx,ws,DU,Ux,jR,Ln,IU,MU,Ia,Ps,xo,Ls,NU,$U,Vx,FU,Kf,pg,BU,UR,zR=D(()=>{"use strict";qt();fa();ug();$l();V=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,n=>e[n])},_s=t=>JSON.stringify(t).replace(/</g,"\\u003c").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"),Jn=(t,e,{remove:n=!1,warn:r}={})=>{if(!t||typeof t.querySelector!="function")return null;let o=null;try{o=t.querySelector(e)}catch{return null}if(!o)return null;n&&o.parentNode&&o.parentNode.removeChild(o);let s;try{s=JSON.parse(o.textContent||"")}catch(i){r&&r(i)}return{value:s,block:o}},qf='script[type="application/json"][data-brender="registry"]',Gf='script[type="application/json"][data-brender="registry-tree"]',Yf=t=>{if(!k(t)||t.f!=="tree"||!Array.isArray(t.e)||t.e.length%3)return null;let e=t.e,n=[],r={},o=0;for(let s=0,i=0;s<e.length;s+=3,i++){let a=e[s],c=e[s+1],l=e[s+2];if(!Number.isInteger(a)||a<0||a>i||typeof c!="string"||!Number.isInteger(l))return null;let f=a?n[i-a]+"."+c:c;o+=l,n.push(f),r[f]="br-"+o}return r},Xf='link[rel="preload"][data-smbls="design-system"]',Zf='meta[name="smbls-design-system"][data-smbls="design-system"]',Jf='script[type="application/json"][data-smbls="design-system"]',LU=t=>k(t)&&k(t.config)&&Array.isArray(t.rules),Fx=(t,e)=>e&&e.defer===!0?'<meta name="smbls-design-system" content="'+V(t)+'" data-smbls="design-system">':'<link rel="preload" href="'+V(t)+'" as="fetch" crossorigin="anonymous" data-smbls="design-system">',Bx=t=>LU(t)?'<script type="application/json" data-smbls="design-system">'+_s(t)+"<\/script>":"",dg='meta[name="brender-stamp"]',jx=({stamp:t,time:e}={})=>'<meta name="brender-stamp" content="'+V(t)+'" data-time="'+(typeof e=="number"&&isFinite(e)?Math.round(e):"")+'">',ws=t=>{if(!t||typeof t.querySelector!="function")return null;let e=null;try{e=t.querySelector(dg)}catch{return null}if(!e)return null;let n=parseInt(e.getAttribute("data-time"),10);return{stamp:e.getAttribute("content")||"",time:isFinite(n)?n:null}},DU=/<script\b(?:[^>"']|"[^"]*"|'[^']*')*\btype\s*=\s*["']?importmap["']?(?:[^>"']|"[^"]*"|'[^']*')*>[\s\S]*?<\/script\s*>/gi,Ux=(t,e)=>{let n=-1;for(let r of String(t).matchAll(DU))n=r.index+r[0].length;return n===-1?null:t.slice(0,n)+`
36
+ `+e+t.slice(n)},jR=t=>Object.entries(t||{}).filter(([e,n])=>n!==void 0).map(([e,n])=>`${e}="${V(n)}"`).join(" "),Ln=t=>{let e=5381,n=String(t);for(let r=0;r<n.length;r++)e=(e*33^n.charCodeAt(r))>>>0;return e.toString(36)},IU=new Set(["jsonLd","styles","scripts"]),MU=new Set(["source"]),Ia=t=>{let e=[];if(Array.isArray(t.jsonLd))for(let n of t.jsonLd){if(n==null)continue;let r=typeof n=="string"?n:JSON.stringify(n),o=String(r).replace(/<\/script/gi,"<\\/script");e.push(`<script type="application/ld+json" data-smbls-jsonld="${Ln(r)}">${o}<\/script>`)}if(Array.isArray(t.styles))for(let n of t.styles){if(n==null||!String(n).trim())continue;let r=String(n).replace(/<\/style/gi,"<\\/style");e.push(`<style data-smbls-style="${Ln(r)}">${r}</style>`)}if(Array.isArray(t.scripts))for(let n of t.scripts){if(!n)continue;let r=typeof n=="string",o=r?n:n.src;if(!o&&!n.body)continue;let s=[];o&&s.push(`src="${V(o)}"`),r||(n.type&&s.push(`type="${V(n.type)}"`),n.async&&s.push("async"),n.defer&&s.push("defer"),n.integrity&&s.push(`integrity="${V(n.integrity)}"`),n.crossorigin&&s.push(`crossorigin="${V(n.crossorigin)}"`),n.referrerpolicy&&s.push(`referrerpolicy="${V(n.referrerpolicy)}"`),n.nomodule&&s.push("nomodule"));let i=` data-smbls-script="${V(o||Ln(n.body||""))}"`;if(!r&&n.body){let a=String(n.body).replace(/<\/script/gi,"<\\/script");e.push(`<script ${s.join(" ")}${i}>${a}<\/script>`)}else e.push(`<script ${s.join(" ")}${i}><\/script>`)}return e},Ps=t=>`${t.hreflang||""}|${t.href||""}`,xo=t=>k(t)?Ln(JSON.stringify(t)):String(t),Ls=t=>k(t)?Ln(JSON.stringify(t)):String(t),NU=(t,e,n)=>t==="favicons"?Array.isArray(e)&&(typeof n=="string"||k(n))?` data-smbls-favicon="${V(xo(n))}"`:"":(t==="icon"||t==="favicon")&&typeof e=="string"?` data-smbls-single-icon="${V(e)}"`:"",$U=t=>k(t)?` data-smbls-alternate="${V(Ps(t))}"`:"",Vx=(t,e)=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Kn("generateMetaTags",[t,e]);e||(t={...t,robots:"noindex"});let n=!1,r=Object.entries(t).reduce((o,[s,i])=>{if(!i&&i!==0&&i!==!1||IU.has(s)||MU.has(s))return o;if(s==="title")return o.push(`<title>${V(i)}</title>`),o;if(s==="canonical")return o.push(`<link rel="canonical" href="${V(i)}">`),o;if(s==="manifest")return o.push(`<link rel="manifest" href="${V(i)}">`),o;if(s==="favicon"||s==="favicons"||s==="icon"||s==="icons")return(Array.isArray(i)?i:[i]).forEach(u=>{let d=NU(s,i,u);if(typeof u=="string")o.push(`<link rel="icon" href="${V(u)}"${d}>`);else if(typeof u=="object"){let p=jR(u);/rel=/.test(p)?o.push(`<link ${p}${d}>`):o.push(`<link rel="icon" ${p}${d}>`)}}),o;if(s==="alternate")return(Array.isArray(i)?i:[i]).forEach(u=>{if(u&&typeof u=="object"){let d=Object.entries(u).filter(([p,g])=>g!==void 0).map(([p,g])=>`${p}="${V(g)}"`).join(" ");o.push(`<link rel="alternate" ${d}${$U(u)}>`)}}),o;if(s==="theme-color"&&Array.isArray(i))return i.forEach(f=>{if(!k(f))return;let u=jR({name:"theme-color",content:f.content,media:f.media});o.push(`<meta ${u} data-smbls-theme-color="${V(Ls(f))}">`)}),o;let a=(f,u,d="name")=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")o.push(`<meta ${d}="${V(f)}" content="${V(u)}">`);else if(Array.isArray(u))u.forEach(p=>{if(typeof p=="string"||typeof p=="number"||typeof p=="boolean")o.push(`<meta ${d}="${V(f)}" content="${V(p)}">`);else if(typeof p=="object"){let g=Object.entries(p).filter(([h,m])=>m!==void 0).map(([h,m])=>`${h}="${V(m)}"`).join(" ");o.push(`<meta ${g}>`)}});else if(typeof u=="object"){let p=Object.entries(u).filter(([g,h])=>h!==void 0).map(([g,h])=>`${g}="${V(h)}"`).join(" ");o.push(`<meta ${p}>`)}};if(s.startsWith("http-equiv:")){let f=s.replace("http-equiv:","");return a(f,i,"http-equiv"),o}if(s.startsWith("itemprop:")){let f=s.replace("itemprop:","");return a(f,i,"itemprop"),o}let l=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(f=>s.startsWith(f));if(l){let f=s.replace(l,"");return a(`${l.replace(":","")}:${f}`,i,l==="twitter:"||l==="DC:"||l==="DCTERMS:"?"name":"property"),o}if(s.startsWith("apple:")||s.startsWith("msapplication:")){let f=s.startsWith("apple:")?"apple-":"msapplication-",u=s.replace(/^apple:|^msapplication:/,"");return a(`${f}${u}`,i,"name"),o}return s==="viewport"&&(n=!0),a(s,i),o},['<meta charset="UTF-8">']);return n||r.splice(1,0,'<meta name="viewport" content="width=device-width, initial-scale=1">'),r.push(...Ia(t)),r.join(`
37
+ `)},FU=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http"),Kf=t=>typeof t=="string"&&t.length>0,pg=t=>{if(!t||typeof t!="object")return null;if(Kf(t.src))return t.src;let e=t.content;return!e||typeof e!="object"?null:Kf(e.src)?e.src:Kf(e.storageUrl)?e.storageUrl:null},BU=new Set(["icon","favicon","icons","favicons"]),UR=(t,e)=>{if(typeof t=="string")return e(t);if(!k(t))return t;let n={...t};return Kf(n.href)&&(n.href=e(n.href)),Kf(n.src)&&(n.src=e(n.src)),n}});var hg,Hx,HR=D(()=>{"use strict";qt();hg=(t,e)=>(I(e)?e:Object.values(e)).reduce((n,r)=>Math.abs(r-t)<Math.abs(n-t)?r:n),Hx=(t,e)=>(t=parseFloat(t),k(e)&&(e=Object.values(e)),hg(t,e))});var Wx,Kx,qx,Ar,Gx,Qf,Yx,Is,Xx=D(()=>{"use strict";qt();Wx=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},Kx=async t=>{try{let e=new Blob([t],{type:"text/javascript"}),n=new window.ClipboardItem({"text/plain":e});await navigator.clipboard.write([n]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(e){console.error("Failed to copy JavaScript code: ",e)}},qx=t=>t.replace(/[^a-zA-Z0-9_]/g,""),Ar=t=>(typeof t!="string"&&(t=String(t||"")),t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,n){return n===0?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")),Gx=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),Qf=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Yx=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},Is=t=>{if(I(t))return t;if(v(t))return t.split(" ");if(k(t))return Object.values(t);if(be(t))return[t]}});var WR,KR,VU,GR,qR,zU,gg,HU,mg,Zx,Jx,yg,tu,YR=D(()=>{"use strict";qt();ug();Xx();vx();WR=/[A-Za-z_$][A-Za-z0-9_$-]*/g,KR=/[A-Za-z_$][A-Za-z0-9_$]*(?: [A-Za-z0-9_$]+){1,5}/g,VU=(t,e)=>{WR.lastIndex=0;let n;for(;n=WR.exec(t);){let o=n[0];if(e.add(o),o.indexOf("-")!==-1)for(let s of o.split("-"))s&&e.add(s)}KR.lastIndex=0;let r;for(;r=KR.exec(t);){let o=r[0].split(" ");for(let s=0;s<o.length-1;s++)for(let i=2;i<=6&&s+i<=o.length;i++)e.add(Ar(o.slice(s,s+i).join(" ")))}return e},GR=t=>je(t)?t.library:t,qR=["components","pages","snippets"],zU=["name","icon"],gg=t=>{if(!k(t))return null;let e=t.key;if(!e)return null;let n=t.owner,r=k(n)?n.slug:n;return r?`${r}/${e}`:String(e)},HU=/^\s*(?:async\s+)?(?:function\b|\(|[A-Za-z_$][A-Za-z0-9_$]*\s*=>)/,mg=t=>{let e=new Set,n=r=>{if(Array.isArray(r)){for(let o of r)if(n(o))return!0;return!1}if(!k(r)||e.has(r))return!1;e.add(r);for(let o of zU){let s=r[o];if(typeof s=="string"&&HU.test(s))return!0}for(let o of Object.keys(r))if(n(r[o]))return!0;return!1};for(let r of qR)if(n(t[r]))return!0;for(let r of t.sharedLibraries||[]){let o=GR(r);if(k(o)){for(let s of qR)if(n(o[s]))return!0}}return!1},Zx=t=>{if(!k(t)||!Array.isArray(t.sharedLibraries))return null;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return t.sharedLibraries.length&&on("planLibraryIconPrune"),null;let e=k(t.settings)?t.settings.libraryIconPrune:void 0;if(e===!1||e!==!0&&mg(t))return null;let n=[];for(let u of t.sharedLibraries){let d=GR(u),p=k(d)&&d.designSystem,g=k(p)&&p.icons;if(!k(g))continue;let h=gg(d);h&&n.push({id:h,icons:g,designSystem:p})}if(!n.length)return null;let r=new Set(n.map(u=>u.designSystem)),o=JSON.stringify(t,function(u,d){if(u!=="__ssr"&&!(u==="icons"&&r.has(this)))return d});if(typeof o!="string")return null;let s=VU(o,new Set),i=new Map,a=[],c=0,l=0,f=0;for(let u of n){let d=[];for(let p of Object.keys(u.icons)){if(s.has(p)){l++;continue}d.push(p);let g=u.icons[p];f+=p.length+(typeof g=="string"?g.length:0)}d.length&&(c+=d.length,i.set(u.icons,new Set(d)),a.push({id:u.id,icons:d}))}return c?{drops:i,prune:{libraries:a},report:{icons:c,kept:l,bytes:f}}:null},Jx=t=>function(e,n){let r=t.get(this);if(!(r&&r.has(e)))return n},yg=(t,e={})=>{let n=new Map;for(let a of t&&t.libraries||[])if(!(!a||!a.id||!Array.isArray(a.icons)))for(let c of a.icons)n.has(c)||n.set(c,a.id);if(!n.size)return null;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return on("createPrunedLibraryIconLoader"),null;let r=t&&typeof t.sameOriginBase=="string"&&t.sameOriginBase,o=r?{...e,provider:"same-origin",sameOriginBase:r}:e,s=new Map,i=a=>{let c=s.get(a);return c||(c=Promise.resolve().then(()=>Da(a,o)).then(l=>{let f=k(l)&&k(l.designSystem)&&l.designSystem.icons;return k(f)?f:null}),s.set(a,c)),c};return a=>{let c=n.get(a);return c?i(c):null}},tu=(t,e={})=>{if(!k(t))return!1;let n=t.__libraryIconPrune;if(!k(n))return!1;let r=t.designSystem;if(!k(r)||r.iconsLoader)return!1;let o=yg(n,e);return o?(r.iconsLoader=o,!0):!1}});var Qx,XR=D(()=>{"use strict";Qx=()=>{let t=document.styleSheets[0],e="";if(t)try{let n=t.cssRules||t.rules;for(let r=0;r<n.length;r++)e+=n[r].cssText}catch(n){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",n)}else console.log("No stylesheets found in document.styleSheets[0].");return e}});var Se,Ma,eu,nu,ZR=D(()=>{"use strict";Se=t=>{let e=t&&t.src;if(!e||typeof e!="string")return null;let n=t.context;if(!n)return null;let r=n.assets&&n.assets[e]||n.files&&n.files[e];if(!r)return null;if(typeof r=="string")return{src:r,type:null,variants:null};if(typeof r=="object"){if(typeof r.src=="string")return r;let o=r.content,s=o&&o.src;if(typeof s=="string")return{...r,src:s,type:r.type??o.type??null,variants:r.variants??o.variants??null}}return null},Ma=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return"";let n=t.some(o=>typeof o.width=="number"),r=[];for(let o of t)n&&typeof o.width=="number"?r.push(`${o.src} ${o.width}w`):n||(o.scale===1&&e?r.push(o.src):o.scale&&o.scale!==1&&r.push(`${o.src} ${o.scale}x`));return r.join(", ")},eu=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(n=>n.format===t.type);return Ma(e,{keepOneX:!1})},nu=(t,e)=>{if(!t||typeof t!="object"||typeof t.src!="string")return[];if(!Array.isArray(t.variants)||!t.variants.length)return[{tag:"img",attr:{src:t.src,alt:e||""}}];let n=new Map;for(let a of t.variants)n.has(a.format)||n.set(a.format,[]),n.get(a.format).push(a);let r=[];for(let[a,c]of n)a!==t.type&&r.push({tag:"source",attr:{type:a,srcset:Ma(c,{keepOneX:!0})}});let o=n.get(t.type)||[],s=Ma(o,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...r,{tag:"img",attr:i}]}});var Na={};B(Na,{BRENDER_REGISTRY_BLOCK:()=>qf,BRENDER_REGISTRY_TREE_BLOCK:()=>Gf,BRENDER_STAMP_META:()=>dg,CDN_PROVIDERS:()=>rn,DESIGN_SYSTEM_BLOCK:()=>Jf,DESIGN_SYSTEM_DEFERRED:()=>Zf,DESIGN_SYSTEM_LINK:()=>Xf,DOMQL_EVENTS:()=>ow,DOMQ_PROPERTIES:()=>so,ELEMENT_METHOD_OVERRIDE_POINTS:()=>oa,ENV:()=>Tw,HTML_TAGS:()=>ua,LIBRARY_PACKAGES:()=>fg,LIBRARY_SCOPES_KEY:()=>Cs,METHODS:()=>ao,METHODS_EXL:()=>Ml,NODE_ENV:()=>An,OPTIONS:()=>uf,PACKAGE_MANAGER_TO_CDN:()=>_o,PARSED_DOMQ_PROPERTIES:()=>Il,POLYGLOT_LANG_STORAGE_KEY:()=>Qh,PROPS_METHODS:()=>io,PROTOTYPE_KEYS:()=>Sr,REVIVED_MARK:()=>Vl,STATE_DATA_MERGE_EXL:()=>Ah,STATE_METHODS:()=>cs,STATE_PROPERTIES:()=>nw,SVG_TAGS:()=>FO,TYPES:()=>Tl,UNIVERSAL_RESERVED_KEYS:()=>Jh,__resetBuiltinMethodWarnings:()=>Px,addCaching:()=>wh,addContext:()=>_h,addExtend:()=>Xw,addExtends:()=>qn,addItemAfterEveryElement:()=>V_,addProtoToArray:()=>Rl,addRef:()=>mh,alternateLinkKey:()=>Ps,applyDependentState:()=>gS,applyEvent:()=>Th,applyEventUpdate:()=>Ch,applyExtends:()=>UO,applyProps:()=>rf,arrayContainsOtherArray:()=>M_,arraysEqual:()=>H_,arrayzeValue:()=>Is,bareLibraryKey:()=>Ff,bindLibraryGlobalScopes:()=>jf,brenderStampMeta:()=>jx,buildImgSrcset:()=>eu,buildSourcesAndImg:()=>nu,cache:()=>wS,call:()=>ax,captureSnapshot:()=>lx,checkForStateTypes:()=>uS,checkIfInherits:()=>vh,checkIfStringIsInArray:()=>q_,clone:()=>dw,cloneAndMergeArrayExtend:()=>Yl,cloneFunction:()=>Iw,collectExtendsList:()=>da,concatAddExtends:()=>qw,copyJavaScriptToClipboard:()=>Kx,copyStringToClipboard:()=>Wx,createBasedOnType:()=>gh,createElement:()=>fS,createElementExtends:()=>rh,createExtends:()=>Zl,createExtendsFromKeys:()=>pa,createExtendsStack:()=>ah,createIfConditionFlag:()=>Mw,createInheritedState:()=>dS,createKey:()=>Kl,createNestedObject:()=>ww,createNestedObjectByKeyPath:()=>hS,createObjectWithoutPrototype:()=>Xp,createParent:()=>yh,createPath:()=>bh,createProps:()=>of,createPropsStack:()=>ph,createPrunedLibraryIconLoader:()=>yg,createRoot:()=>lS,createScope:()=>yS,createSnapshotId:()=>Wl,currentPathname:()=>vs,customDecodeURIComponent:()=>ew,customEncodeURIComponent:()=>tw,cutArrayAfterValue:()=>j_,cutArrayBeforeValue:()=>B_,debounce:()=>Gl,debounceOnContext:()=>Lw,decodeBrenderRegistry:()=>Yf,decodeNewlines:()=>Q_,deepClone:()=>pt,deepContains:()=>bw,deepDefaults:()=>Ra,deepDestringifyFunctions:()=>we,deepExtend:()=>nh,deepMerge:()=>bt,deepMergeExtends:()=>Gn,deepStringifyFunctions:()=>Bl,defineSetter:()=>sx,designSystemBlock:()=>Bx,designSystemLink:()=>Fx,destringifyGlobalScope:()=>gs,detectHeightOnInit:()=>mx,detectInfiniteLoop:()=>Ew,document:()=>kt,elementPath:()=>Rn,encodeNewlines:()=>J_,error:()=>ks,escapeHtml:()=>V,escapeRegExp:()=>G_,evaluateText:()=>bo,excludeKeysFromObject:()=>Aw,exec:()=>St,exposeBagGlobalScopes:()=>Uf,extendCachedRegistry:()=>Gw,extendStackRegistry:()=>Jl,extractArrayExtend:()=>tf,faviconLinkKey:()=>xo,fetchLibraryData:()=>Da,fibonacciNumberByIndex:()=>yx,fileEntryUrl:()=>pg,filterArrays:()=>W_,filterArraysFast:()=>K_,finalizeExtends:()=>ch,findClosestNumber:()=>hg,findClosestNumberInFactory:()=>Hx,findInheritedState:()=>Eh,findKeyPosition:()=>X_,flattenExtend:()=>ha,formatDate:()=>gx,generateHash:()=>Qp,generateHeadArrayTags:()=>Ia,generateKey:()=>Hl,generateMetaTags:()=>Vx,get:()=>ex,getCDNDirUrl:()=>og,getCDNUrl:()=>Pn,getCapitalCaseKeys:()=>Qw,getCdnProviderFromConfig:()=>Ca,getChildStateInKey:()=>kh,getChildren:()=>ox,getContext:()=>Cf,getCookie:()=>jw,getDB:()=>Df,getEmotionStylesheet:()=>Qx,getExtendsInElement:()=>Zw,getExtendsStack:()=>Xl,getExtendsStackRegistry:()=>eh,getFrequencyInArray:()=>N_,getFunctionSource:()=>Fe,getHashedExtend:()=>Ql,getImportMapScript:()=>hx,getInObjectByPath:()=>kw,getLocalStorage:()=>Vw,getNev:()=>Pw,getPageMetadata:()=>zx,getParentStateInKey:()=>xh,getPath:()=>xf,getQuery:()=>If,getRef:()=>rx,getRoot:()=>vf,getRootContext:()=>Tf,getRootData:()=>Af,getRootState:()=>Ef,getRootStateInKey:()=>Sh,getSpreadChildren:()=>tS,global:()=>L_,hasFunction:()=>ie,hasHandlerPlugin:()=>ca,hasOwnProperty:()=>gw,hashContent:()=>Ln,inheritChildExtends:()=>sh,inheritChildPropsExtends:()=>oh,inheritParentProps:()=>sf,inheritRecursiveChildExtends:()=>ih,initProps:()=>iS,insertAfterImportMap:()=>Ux,installPrunedLibraryIconLoader:()=>tu,is:()=>_e,isArray:()=>I,isBoolean:()=>Vp,isBuiltinElementMethod:()=>rw,isContextComponent:()=>eS,isCyclic:()=>vw,isDOMNode:()=>ye,isDate:()=>Hp,isDefined:()=>Ut,isDevelopment:()=>lo,isEmpty:()=>Gp,isEmptyObject:()=>mw,isEqualDeep:()=>Yp,isFailedRevival:()=>ps,isFunction:()=>L,isHtmlElement:()=>vl,isLazyFunction:()=>pw,isLocal:()=>Rw,isLoudDevRuntime:()=>nt,isMalformedDependency:()=>As,isMethod:()=>cx,isMobile:()=>Fw,isNode:()=>wr,isNot:()=>I_,isNotProduction:()=>xr,isNull:()=>zp,isNumber:()=>be,isObject:()=>k,isObjectLike:()=>z,isPhoto:()=>bx,isPolyglotRetranslatableKey:()=>ff,isPolyglotWritableKey:()=>ys,isProduction:()=>co,isProtectedElementMethod:()=>ls,isRevived:()=>hs,isStaging:()=>Ow,isState:()=>pS,isString:()=>v,isStringFunction:()=>aa,isStringTag:()=>Ul,isTest:()=>Jp,isTesting:()=>Cw,isUndefined:()=>Zt,isUniversallyReservedKey:()=>fx,isUnresolvableDependency:()=>wo,isValidDependencyMap:()=>Ts,isValidHtmlTag:()=>Hw,isWrappedLibrary:()=>je,joinArrays:()=>ea,jointStacks:()=>Yw,jsonForScript:()=>_s,keys:()=>Xh,libraryIconPruneReplacer:()=>Jx,libraryIdentifier:()=>gg,libraryPackageSpecs:()=>Pa,librarySpecsFor:()=>lg,loadCssFile:()=>xx,loadJavascript:()=>kx,loadJavascriptFile:()=>_x,loadJavascriptFileEmbedSync:()=>Sx,loadJavascriptFileSync:()=>wx,loadRemoteCSS:()=>Ex,loadRemoteScript:()=>Oa,log:()=>ix,logGroupIf:()=>$w,logIf:()=>Nw,lookdown:()=>QS,lookdownAll:()=>tx,lookup:()=>JS,lowercaseFirstLetter:()=>as,makeObjectWithoutPrototype:()=>yw,map:()=>uw,mapStringsWithContextComponents:()=>ef,markPolyglotSeeded:()=>Xn,markRevived:()=>ia,markTextNotReady:()=>va,matchesComponentNaming:()=>Yn,memoize:()=>Dw,merge:()=>Lt,mergeSharedLibraries:()=>Vf,mergeSharedLibraryDesignSystems:()=>zf,mergeSharedLibraryTranslations:()=>Hf,mergeStateData:()=>uo,nextElement:()=>Rf,normalizeIgnoreList:()=>Bf,normalizeLibraryKey:()=>Os,objectToString:()=>jl,objectizeStringProperty:()=>nf,overwrite:()=>zl,overwriteDeep:()=>ae,overwriteShallow:()=>ms,overwriteState:()=>mS,parse:()=>Zh,parseDeep:()=>wf,payloadHasComputedIconName:()=>mg,pickStartLang:()=>ng,pickupElementFromProps:()=>uh,pickupPropsFromElement:()=>fh,planLibraryIconPrune:()=>Zx,polyglotAddressLang:()=>tg,polyglotFallbackLang:()=>vr,polyglotLangStorageKey:()=>Ea,polyglotLanguages:()=>Be,polyglotSeededKeys:()=>po,polyglotStartLang:()=>Es,polyglotStartRule:()=>eg,polyglotStartupScript:()=>ux,previousElement:()=>Pf,promoteActiveRootState:()=>xa,propExists:()=>oS,propertizeElement:()=>dh,propertizeUpdate:()=>rS,readBrenderStamp:()=>ws,readJsonDataBlock:()=>Jn,remove:()=>nR,removeChars:()=>qx,removeCookie:()=>Uw,removeDuplicateProps:()=>cf,removeDuplicatesInArray:()=>na,removeFromArray:()=>$_,removeFromObject:()=>_w,removeNestedKeyByPath:()=>Sw,removeValueFromArray:()=>Ol,removeValueFromArrayAll:()=>U_,reorderArrayByValues:()=>z_,repairLegacyArrowScopePreamble:()=>Nl,replaceLiteralsWithObjectFields:()=>Jt,replaceOctalEscapeSequences:()=>Z_,resolveAsset:()=>Se,resolveFileReferences:()=>Ds,resolveHandler:()=>la,resolveSharedLibraries:()=>Wf,returnValueAsText:()=>hh,runPluginHook:()=>fo,scopeElementParam:()=>Wp,scopeReceiverExpression:()=>cw,self:()=>D_,setActiveRootState:()=>kf,setCookie:()=>Bw,setHashedExtend:()=>th,setInObjectByPath:()=>xw,setLocalStorage:()=>zw,setNodeStyles:()=>Yh,setProps:()=>nx,setPropsPrototype:()=>af,sharedLibrary:()=>Rx,sharedLibraryFiles:()=>Rs,splitPackageSpecifier:()=>Mf,spotByPath:()=>Sf,srcsetFor:()=>Ma,stringIncludesAny:()=>Ll,stringToObject:()=>hw,stripVersionRangePrefix:()=>Nf,swapItemsInArray:()=>F_,syncProps:()=>lf,themeColorKey:()=>Ls,toCamelCase:()=>Ar,toDashCase:()=>Qf,toDescriptionCase:()=>Yx,toPriorityOrder:()=>tn,toTitleCase:()=>Gx,toggleFullscreen:()=>px,triggerEventOn:()=>kr,triggerEventOnUpdate:()=>bS,trimStringFromSymbols:()=>Y_,unstackArrayOfObjects:()=>Cl,update:()=>sS,updateProps:()=>aS,variables:()=>Lf,verbose:()=>ka,warn:()=>Of,warnLibraryAliasCollision:()=>La,window:()=>R});var M=D(()=>{"use strict";Zp();ql();qt();Wn();fa();ra();Al();MO();NO();Dl();El();$O();Ww();Jw();cS();lh();qO();t1();fs();e1();oR();SS();sR();_S();iR();lw();dx();aR();cR();lR();fR();uR();dR();pR();hR();gR();zR();HR();ug();YR();Xx();XR();ZR()});var Vn,rp,op,Cb=D(()=>{Vn=Object.create(null);Vn.open="0";Vn.close="1";Vn.ping="2";Vn.pong="3";Vn.message="4";Vn.upgrade="5";Vn.noop="6";rp=Object.create(null);Object.keys(Vn).forEach(t=>{rp[Vn[t]]=t});op={type:"error",data:"parser error"}});function IB(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}function FB(t,e){if(MB&&t.data instanceof Blob)return t.data.arrayBuffer().then(IB).then(e);if(NB&&(t.data instanceof ArrayBuffer||$B(t.data)))return e(IB(t.data));sp(t,!1,n=>{UT||(UT=new TextEncoder),e(UT.encode(n))})}var MB,NB,$B,sp,DB,UT,BB=D(()=>{Cb();MB=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",NB=typeof ArrayBuffer=="function",$B=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,sp=({type:t,data:e},n,r)=>MB&&e instanceof Blob?n?r(e):DB(e,r):NB&&(e instanceof ArrayBuffer||$B(e))?n?r(e):DB(new Blob([e]),r):r(Vn[t]+(e||"")),DB=(t,e)=>{let n=new FileReader;return n.onload=function(){let r=n.result.split(",")[1];e("b"+(r||""))},n.readAsDataURL(t)}});var jB,ip,UB,VB=D(()=>{jB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ip=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<jB.length;t++)ip[jB.charCodeAt(t)]=t;UB=t=>{let e=t.length*.75,n=t.length,r,o=0,s,i,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);let l=new ArrayBuffer(e),f=new Uint8Array(l);for(r=0;r<n;r+=4)s=ip[t.charCodeAt(r)],i=ip[t.charCodeAt(r+1)],a=ip[t.charCodeAt(r+2)],c=ip[t.charCodeAt(r+3)],f[o++]=s<<2|i>>4,f[o++]=(i&15)<<4|a>>2,f[o++]=(a&3)<<6|c&63;return l}});var CG,ap,OG,zB,HB=D(()=>{Cb();VB();CG=typeof ArrayBuffer=="function",ap=(t,e)=>{if(typeof t!="string")return{type:"message",data:zB(t,e)};let n=t.charAt(0);return n==="b"?{type:"message",data:OG(t.substring(1),e)}:rp[n]?t.length>1?{type:rp[n],data:t.substring(1)}:{type:rp[n]}:op},OG=(t,e)=>{if(CG){let n=UB(t);return zB(n,e)}else return{base64:!0,data:t}},zB=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer});function GB(){return new TransformStream({transform(t,e){FB(t,n=>{let r=n.length,o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,r)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(r))}t.data&&typeof t.data!="string"&&(o[0]|=128),e.enqueue(o),e.enqueue(n)})}})}function Ob(t){return t.reduce((e,n)=>e+n.length,0)}function Rb(t,e){if(t[0].length===e)return t.shift();let n=new Uint8Array(e),r=0;for(let o=0;o<e;o++)n[o]=t[0][r++],r===t[0].length&&(t.shift(),r=0);return t.length&&r<t[0].length&&(t[0]=t[0].slice(r)),n}function YB(t,e){VT||(VT=new TextDecoder);let n=[],r=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(n.push(i);;){if(r===0){if(Ob(n)<1)break;let c=Rb(n,1);s=(c[0]&128)===128,o=c[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(Ob(n)<2)break;let c=Rb(n,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),r=3}else if(r===2){if(Ob(n)<8)break;let c=Rb(n,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(op);break}o=f*Math.pow(2,32)+l.getUint32(4),r=3}else{if(Ob(n)<o)break;let c=Rb(n,o);a.enqueue(ap(s?c:VT.decode(c),e)),r=0}if(o===0||o>t){a.enqueue(op);break}}}})}var WB,KB,qB,VT,zT,nl=D(()=>{BB();HB();Cb();WB="",KB=(t,e)=>{let n=t.length,r=new Array(n),o=0;t.forEach((s,i)=>{sp(s,!1,a=>{r[i]=a,++o===n&&e(r.join(WB))})})},qB=(t,e)=>{let n=t.split(WB),r=[];for(let o=0;o<n.length;o++){let s=ap(n[o],e);if(r.push(s),s.type==="error")break}return r};zT=4});function At(t){if(t)return RG(t)}function RG(t){for(var e in At.prototype)t[e]=At.prototype[e];return t}var Di=D(()=>{At.prototype.on=At.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};At.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};At.prototype.off=At.prototype.removeListener=At.prototype.removeAllListeners=At.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===e||r.fn===e){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+t],this};At.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,e)}return this};At.prototype.emitReserved=At.prototype.emit;At.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};At.prototype.hasListeners=function(t){return!!this.listeners(t).length}});var Jr,ge,XB,Ii=D(()=>{Jr=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),ge=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),XB="arraybuffer"});function Pb(t,...e){return e.reduce((n,r)=>(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}function Qr(t,e){e.useNativeTimers?(t.setTimeoutFn=PG.bind(ge),t.clearTimeoutFn=LG.bind(ge)):(t.setTimeoutFn=ge.setTimeout.bind(ge),t.clearTimeoutFn=ge.clearTimeout.bind(ge))}function ZB(t){return typeof t=="string"?IG(t):Math.ceil((t.byteLength||t.size)*DG)}function IG(t){let e=0,n=0;for(let r=0,o=t.length;r<o;r++)e=t.charCodeAt(r),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(r++,n+=4);return n}function Lb(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}var PG,LG,DG,Mi=D(()=>{Ii();PG=ge.setTimeout,LG=ge.clearTimeout;DG=1.33});function JB(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function QB(t){let e={},n=t.split("&");for(let r=0,o=n.length;r<o;r++){let s=n[r].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}var HT=D(()=>{});var Db,to,cp=D(()=>{nl();Di();Mi();HT();Db=class extends Error{constructor(e,n,r){super(e),this.description=n,this.context=r,this.type="TransportError"}},to=class extends At{constructor(e){super(),this.writable=!1,Qr(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,n,r){return super.emitReserved("error",new Db(e,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let n=ap(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,n={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_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 n=JB(e);return n.length?"?"+n:""}}});var rl,WT=D(()=>{cp();Mi();nl();rl=class extends to{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let n=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};qB(e,this.socket.binaryType).forEach(n),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,KB(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Lb()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}}});var tj,ej,nj=D(()=>{tj=!1;try{tj=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}ej=tj});function MG(){}function rj(){for(let t in es.requests)es.requests.hasOwnProperty(t)&&es.requests[t].abort()}function oj(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||ej))return new XMLHttpRequest}catch{}if(!e)try{return new ge[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var KT,es,NG,eo,Ib=D(()=>{WT();Di();Mi();Ii();nj();KT=class extends rl{constructor(e){if(super(e),typeof location<"u"){let n=location.protocol==="https:",r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,n){let r=this.request({method:"POST",data:e});r.on("success",n),r.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",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=e}},es=class t extends At{constructor(e,n,r){super(),this.createRequest=e,Qr(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var e;let n=Pb(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.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=MG,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()}};es.requestsCount=0;es.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",rj);else if(typeof addEventListener=="function"){let t="onpagehide"in ge?"pagehide":"unload";addEventListener(t,rj,!1)}}NG=(function(){let t=oj({xdomain:!1});return t&&t.responseType!==null})(),eo=class extends KT{constructor(e){super(e);let n=e&&e.forceBase64;this.supportsBinary=NG&&!n}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new es(oj,this.uri(),e)}}});var sj,GT,qT,no,Mb=D(()=>{cp();Mi();nl();Ii();sj=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",GT=class extends to{get name(){return"websocket"}doOpen(){let e=this.uri(),n=this.opts.protocols,r=sj?{}:Pb(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,n,r)}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 n=0;n<e.length;n++){let r=e[n],o=n===e.length-1;sp(r,this.supportsBinary,s=>{try{this.doWrite(r,s)}catch{}o&&Jr(()=>{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",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Lb()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}},qT=ge.WebSocket||ge.MozWebSocket,no=class extends GT{createSocket(e,n,r){return sj?new qT(e,n,r):n?new qT(e,n):new qT(e)}doWrite(e,n){this.ws.send(n)}}});var Ni,YT=D(()=>{cp();Ii();nl();Ni=class extends to{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 n=YB(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(n).getReader(),o=GB();o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();let s=()=>{r.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 n=0;n<e.length;n++){let r=e[n],o=n===e.length-1;this._writer.write(r).then(()=>{o&&Jr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}});var XT,ZT=D(()=>{Ib();Mb();YT();XT={websocket:no,webtransport:Ni,polling:eo}});function ol(t){if(t.length>8e3)throw"URI too long";let e=t,n=t.indexOf("["),r=t.indexOf("]");n!=-1&&r!=-1&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));let o=$G.exec(t||""),s={},i=14;for(;i--;)s[FG[i]]=o[i]||"";return n!=-1&&r!=-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=BG(s,s.path),s.queryKey=jG(s,s.query),s}function BG(t,e){let n=/\/{2,9}/g,r=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function jG(t,e){let n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,s){o&&(n[o]=s)}),n}var $G,FG,JT=D(()=>{$G=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,FG=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"]});var QT,Nb,$i,$b,sl,tC=D(()=>{ZT();Mi();HT();JT();Di();nl();Ii();QT=typeof addEventListener=="function"&&typeof removeEventListener=="function",Nb=[];QT&&addEventListener("offline",()=>{Nb.forEach(t=>t())},!1);$i=class t extends At{constructor(e,n){if(super(),this.binaryType=XB,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(n=e,e=null),e){let r=ol(e);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=ol(n.host).host);Qr(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{let o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),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},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=QB(this.opts.query)),QT&&(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"})},Nb.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let n=Object.assign({},this.opts.query);n.EIO=zT,n.transport=e,this.id&&(n.sid=this.id);let r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_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 n=this.createTransport(e);n.open(),this.setTransport(n)}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",n=>this._onClose("transport close",n))}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 n=new Error("server error");n.code=e.data,this._onError(n);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 n=1;for(let r=0;r<this.writeBuffer.length;r++){let o=this.writeBuffer[r].data;if(o&&(n+=ZB(o)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,Jr(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,n,r){return this._sendPacket("message",e,n,r),this}send(e,n,r){return this._sendPacket("message",e,n,r),this}_sendPacket(e,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;let s={type:e,data:n,options:r};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()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():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,n){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(),QT&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let r=Nb.indexOf(this._offlineEventListener);r!==-1&&Nb.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this._prevBufferLen=0}}};$i.protocol=zT;$b=class extends $i{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 n=this.createTransport(e),r=!1;$i.priorWebsocketSuccess=!1;let o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",u=>{if(!r)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;$i.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{let d=new Error("probe error");d.transport=n.name,this.emitReserved("upgradeError",d)}}))};function s(){r||(r=!0,f(),n.close(),n=null)}let i=u=>{let d=new Error("probe error: "+u);d.transport=n.name,s(),this.emitReserved("upgradeError",d)};function a(){i("transport closed")}function c(){i("socket closed")}function l(u){n&&u.name!==n.name&&s()}let f=()=>{n.removeListener("open",o),n.removeListener("error",i),n.removeListener("close",a),this.off("close",c),this.off("upgrading",l)};n.once("open",o),n.once("error",i),n.once("close",a),this.once("close",c),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let n=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&n.push(e[r]);return n}},sl=class extends $b{constructor(e,n={}){let r=typeof e=="object"?e:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>XT[o]).filter(o=>!!o)),super(e,r)}}});var lp,ij=D(()=>{WT();lp=class extends rl{doPoll(){this._fetch().then(e=>{if(!e.ok)return this.onError("fetch read error",e.status,e);e.text().then(n=>this.onData(n))}).catch(e=>{this.onError("fetch read error",e)})}doWrite(e,n){this._fetch(e).then(r=>{if(!r.ok)return this.onError("fetch write error",r.status,r);n()}).catch(r=>{this.onError("fetch write error",r)})}_fetch(e){var n;let r=e!==void 0,o=new Headers(this.opts.extraHeaders);return r&&o.set("content-type","text/plain;charset=UTF-8"),(n=this.socket._cookieJar)===null||n===void 0||n.appendCookies(o),fetch(this.uri(),{method:r?"POST":"GET",body:r?e:null,headers:o,credentials:this.opts.withCredentials?"include":"omit"}).then(s=>{var i;return(i=this.socket._cookieJar)===null||i===void 0||i.parseCookies(s.headers.getSetCookie()),s})}}});var Jht,Fb=D(()=>{tC();tC();cp();ZT();Mi();JT();Ii();ij();Ib();Ib();Mb();Mb();YT();Jht=sl.protocol});function aj(t,e="",n){let r=t;n=n||typeof location<"u"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(typeof n<"u"?t=n.protocol+"//"+t:t="https://"+t),r=ol(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";let s=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+e,r.href=r.protocol+"://"+s+(n&&n.port===r.port?"":":"+r.port),r}var cj=D(()=>{Fb()});function up(t){return UG&&(t instanceof ArrayBuffer||VG(t))||zG&&t instanceof Blob||HG&&t instanceof File}function fp(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(fp(t[n]))return!0;return!1}if(up(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return fp(t.toJSON(),!0);for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&fp(t[n]))return!0;return!1}var UG,VG,lj,zG,HG,eC=D(()=>{UG=typeof ArrayBuffer=="function",VG=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,lj=Object.prototype.toString,zG=typeof Blob=="function"||typeof Blob<"u"&&lj.call(Blob)==="[object BlobConstructor]",HG=typeof File=="function"||typeof File<"u"&&lj.call(File)==="[object FileConstructor]"});function fj(t){let e=[],n=t.data,r=t;return r.data=nC(n,e),r.attachments=e.length,{packet:r,buffers:e}}function nC(t,e){if(!t)return t;if(up(t)){let n={_placeholder:!0,num:e.length};return e.push(t),n}else if(Array.isArray(t)){let n=new Array(t.length);for(let r=0;r<t.length;r++)n[r]=nC(t[r],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){let n={};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=nC(t[r],e));return n}return t}function uj(t,e){return t.data=rC(t.data,e),delete t.attachments,t}function rC(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 n=0;n<t.length;n++)t[n]=rC(t[n],e);else if(typeof t=="object")for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=rC(t[n],e));return t}var dj=D(()=>{eC()});var hj=d_((ygt,pj)=>{var il=1e3,al=il*60,cl=al*60,Fi=cl*24,WG=Fi*7,KG=Fi*365.25;pj.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return qG(t);if(n==="number"&&isFinite(t))return e.long?YG(t):GG(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function qG(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*KG;case"weeks":case"week":case"w":return n*WG;case"days":case"day":case"d":return n*Fi;case"hours":case"hour":case"hrs":case"hr":case"h":return n*cl;case"minutes":case"minute":case"mins":case"min":case"m":return n*al;case"seconds":case"second":case"secs":case"sec":case"s":return n*il;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function GG(t){var e=Math.abs(t);return e>=Fi?Math.round(t/Fi)+"d":e>=cl?Math.round(t/cl)+"h":e>=al?Math.round(t/al)+"m":e>=il?Math.round(t/il)+"s":t+"ms"}function YG(t){var e=Math.abs(t);return e>=Fi?Bb(t,e,Fi,"day"):e>=cl?Bb(t,e,cl,"hour"):e>=al?Bb(t,e,al,"minute"):e>=il?Bb(t,e,il,"second"):t+" ms"}function Bb(t,e,n,r){var o=e>=n*1.5;return Math.round(t/n)+" "+r+(o?"s":"")}});var mj=d_((bgt,gj)=>{function XG(t){n.debug=n,n.default=n,n.coerce=c,n.disable=i,n.enable=o,n.enabled=a,n.humanize=hj(),n.destroy=l,Object.keys(t).forEach(f=>{n[f]=t[f]}),n.names=[],n.skips=[],n.formatters={};function e(f){let u=0;for(let d=0;d<f.length;d++)u=(u<<5)-u+f.charCodeAt(d),u|=0;return n.colors[Math.abs(u)%n.colors.length]}n.selectColor=e;function n(f){let u,d=null,p,g;function h(...m){if(!h.enabled)return;let y=h,x=Number(new Date),E=x-(u||x);y.diff=E,y.prev=u,y.curr=x,u=x,m[0]=n.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let T=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(w,b)=>{if(w==="%%")return"%";T++;let _=n.formatters[b];if(typeof _=="function"){let A=m[T];w=_.call(y,A),m.splice(T,1),T--}return w}),n.formatArgs.call(y,m),(y.log||n.log).apply(y,m)}return h.namespace=f,h.useColors=n.useColors(),h.color=n.selectColor(f),h.extend=r,h.destroy=n.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(p!==n.namespaces&&(p=n.namespaces,g=n.enabled(f)),g),set:m=>{d=m}}),typeof n.init=="function"&&n.init(h),h}function r(f,u){let d=n(this.namespace+(typeof u>"u"?":":u)+f);return d.log=this.log,d}function o(f){n.save(f),n.namespaces=f,n.names=[],n.skips=[];let u=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let d of u)d[0]==="-"?n.skips.push(d.slice(1)):n.names.push(d)}function s(f,u){let d=0,p=0,g=-1,h=0;for(;d<f.length;)if(p<u.length&&(u[p]===f[d]||u[p]==="*"))u[p]==="*"?(g=p,h=d,p++):(d++,p++);else if(g!==-1)p=g+1,h++,d=h;else return!1;for(;p<u.length&&u[p]==="*";)p++;return p===u.length}function i(){let f=[...n.names,...n.skips.map(u=>"-"+u)].join(",");return n.enable(""),f}function a(f){for(let u of n.skips)if(s(f,u))return!1;for(let u of n.names)if(s(f,u))return!0;return!1}function c(f){return f instanceof Error?f.stack||f.message:f}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}gj.exports=XG});var yj=d_((De,jb)=>{De.formatArgs=JG;De.save=QG;De.load=tY;De.useColors=ZG;De.storage=eY();De.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();De.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function ZG(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function JG(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+jb.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(n++,o==="%c"&&(r=n))}),t.splice(r,0,e)}De.log=console.debug||console.log||(()=>{});function QG(t){try{t?De.storage.setItem("debug",t):De.storage.removeItem("debug")}catch{}}function tY(){let t;try{t=De.storage.getItem("debug")||De.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function eY(){try{return localStorage}catch{}}jb.exports=mj()(De);var{formatters:nY}=jb.exports;nY.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var lC={};B(lC,{Decoder:()=>iC,Encoder:()=>sC,PacketType:()=>rt,isPacketValid:()=>iY,protocol:()=>cC});function rY(t){return typeof t=="string"}function oY(t){return t===void 0||wj(t)}function Ub(t){return Object.prototype.toString.call(t)==="[object Object]"}function sY(t,e){switch(t){case rt.CONNECT:return e===void 0||Ub(e);case rt.DISCONNECT:return e===void 0;case rt.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&_j.indexOf(e[0])===-1);case rt.ACK:return Array.isArray(e);case rt.CONNECT_ERROR:return typeof e=="string"||Ub(e);default:return!1}}function iY(t){return rY(t.nsp)&&oY(t.id)&&sY(t.type,t.data)}var bj,oC,_j,cC,rt,sC,iC,aC,wj,Vb=D(()=>{Di();dj();eC();bj=rO(yj(),1),oC=(0,bj.default)("socket.io-parser"),_j=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],cC=5;(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"})(rt||(rt={}));sC=class{constructor(e){this.replacer=e}encode(e){return oC("encoding packet %j",e),(e.type===rt.EVENT||e.type===rt.ACK)&&fp(e)?this.encodeAsBinary({type:e.type===rt.EVENT?rt.BINARY_EVENT:rt.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===rt.BINARY_EVENT||e.type===rt.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(n+=e.nsp+","),e.id!=null&&(n+=e.id),e.data!=null&&(n+=JSON.stringify(e.data,this.replacer)),oC("encoded %j as %s",e,n),n}encodeAsBinary(e){let n=fj(e),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}},iC=class t extends At{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e=="function"?{reviver:e}:e)}add(e){let n;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(e);let r=n.type===rt.BINARY_EVENT;r||n.type===rt.BINARY_ACK?(n.type=r?rt.EVENT:rt.ACK,this.reconstructor=new aC(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(up(e)||e.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let n=0,r={type:Number(e.charAt(0))};if(rt[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===rt.BINARY_EVENT||r.type===rt.BINARY_ACK){let s=n+1;for(;e.charAt(++n)!=="-"&&n!=e.length;);let i=e.substring(s,n);if(i!=Number(i)||e.charAt(n)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!wj(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");r.attachments=a}if(e.charAt(n+1)==="/"){let s=n+1;for(;++n&&!(e.charAt(n)===","||n===e.length););r.nsp=e.substring(s,n)}else r.nsp="/";let o=e.charAt(n+1);if(o!==""&&Number(o)==o){let s=n+1;for(;++n;){let i=e.charAt(n);if(i==null||Number(i)!=i){--n;break}if(n===e.length)break}r.id=Number(e.substring(s,n+1))}if(e.charAt(++n)){let s=this.tryParse(e.substr(n));if(t.isPayloadValid(r.type,s))r.data=s;else throw new Error("invalid payload")}return oC("decoded %s as %j",e,r),r}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,n){switch(e){case rt.CONNECT:return Ub(n);case rt.DISCONNECT:return n===void 0;case rt.CONNECT_ERROR:return typeof n=="string"||Ub(n);case rt.EVENT:case rt.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&_j.indexOf(n[0])===-1);case rt.ACK:case rt.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},aC=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 n=uj(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};wj=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}});function Ye(t,e,n){return t.on(e,n),function(){t.off(e,n)}}var fC=D(()=>{});var aY,Bi,uC=D(()=>{Vb();fC();Di();aY=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Bi=class extends At{constructor(e,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Ye(e,"open",this.onopen.bind(this)),Ye(e,"packet",this.onpacket.bind(this)),Ye(e,"error",this.onerror.bind(this)),Ye(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,...n){var r,o,s;if(aY.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;let i={type:rt.EVENT,data:n};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){let f=this.ids++,u=n.pop();this._registerAckCallback(f,u),i.id=f}let a=(o=(r=this.io.engine)===null||r===void 0?void 0:r.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,n){var r;let o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[e]=n;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);n.call(this,new Error("operation has timed out"))},o),i=(...a)=>{this.io.clearTimeoutFn(s),n.apply(this,a)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...n){return new Promise((r,o)=>{let s=(i,a)=>i?o(i):r(a);s.withError=!0,n.push(s),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());let r={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?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...s)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.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:rt.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,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(r=>String(r.id)===e)){let r=this.acks[e];delete this.acks[e],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case rt.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 rt.EVENT:case rt.BINARY_EVENT:this.onevent(e);break;case rt.ACK:case rt.BINARY_ACK:this.onack(e);break;case rt.DISCONNECT:this.ondisconnect();break;case rt.CONNECT_ERROR:this.destroy();let r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){let n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let n=this._anyListeners.slice();for(let r of n)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let n=this,r=!1;return function(...o){r||(r=!0,n.packet({type:rt.ACK,id:e,data:o}))}}onack(e){let n=this.acks[e.id];typeof n=="function"&&(delete this.acks[e.id],n.withError&&e.data.unshift(null),n.apply(this,e.data))}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,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:rt.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 n=this._anyListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let n=this._anyOutgoingListeners.slice();for(let r of n)r.apply(this,e.data)}}}});function ji(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}var Sj=D(()=>{ji.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-n:t+n}return Math.min(t,this.max)|0};ji.prototype.reset=function(){this.attempts=0};ji.prototype.setMin=function(t){this.ms=t};ji.prototype.setMax=function(t){this.max=t};ji.prototype.setJitter=function(t){this.jitter=t}});var Ui,xj=D(()=>{Fb();uC();Vb();fC();Sj();Di();Ui=class extends At{constructor(e,n){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Qr(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new ji({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;let o=n.parser||lC;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.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 n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.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 sl(this.uri,this.opts);let n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let o=Ye(n,"open",function(){r.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=Ye(n,"error",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),n.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(Ye(e,"ping",this.onping.bind(this)),Ye(e,"data",this.ondata.bind(this)),Ye(e,"error",this.onerror.bind(this)),Ye(e,"close",this.onclose.bind(this)),Ye(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){Jr(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new Bi(this,e,n),this.nsps[e]=r),r}_destroy(e){let n=Object.keys(this.nsps);for(let r of n)if(this.nsps[r].active)return;this._close()}_packet(e){let n=this.encoder.encode(e);for(let r=0;r<n.length;r++)this.engine.write(n[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),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 n=this.backoff.duration();this._reconnecting=!0;let r=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()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}});var kj={};B(kj,{Fetch:()=>lp,Manager:()=>Ui,NodeWebSocket:()=>no,NodeXHR:()=>eo,Socket:()=>Bi,WebSocket:()=>no,WebTransport:()=>Ni,XHR:()=>eo,connect:()=>zb,default:()=>zb,io:()=>zb,protocol:()=>cC});function zb(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let n=aj(t,e.path||"/socket.io"),r=n.source,o=n.id,s=n.path,i=dp[o]&&s in dp[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Ui(r,e):(dp[o]||(dp[o]=new Ui(r,e)),c=dp[o]),n.query&&!e.query&&(e.query=n.queryKey),c.socket(n.path,e)}var dp,Ej=D(()=>{cj();xj();uC();Vb();Fb();dp={};Object.assign(zb,{Manager:Ui,Socket:Bi,io:zb,connect:zb})});var eO={};B(eO,{ANIMATION_PROPS:()=>Fk,ARIA_ROLES:()=>b9,ATTR_TRANSFORMS:()=>$o,BARE_SEQUENCE_TOKEN_RE:()=>Mn,BLOCK_PROPS:()=>Bk,BREAKPOINTS_CONTAINER_NAME:()=>FL,BREAKPOINT_PROPS:()=>qk,BRENDER_REGISTRY_BLOCK:()=>qf,BRENDER_REGISTRY_TREE_BLOCK:()=>Gf,BRENDER_STAMP_META:()=>dg,CDN_PROVIDERS:()=>rn,COMPOUND_CSS_KEYWORDS:()=>Ns,CONFIG:()=>js,CONFIG_MERGE_EXL:()=>le,CSS_LONGHAND_SHORTHANDS:()=>dn,CSS_NAMED_COLOR_HEX:()=>Fa,CSS_NATIVE_COLOR_REGEX:()=>Tr,CSS_PROPS_REGISTRY:()=>xt,CSS_SHORTHAND_LONGHANDS:()=>vt,CSS_UNITS:()=>ta,DEFAULT_CONFIG:()=>gi,DEFAULT_CSS_PROPERTIES_LIST:()=>Bt,DELEGATED_EVENTS:()=>uc,DESIGN_SYSTEM_BLOCK:()=>Jf,DESIGN_SYSTEM_DEFERRED:()=>Zf,DESIGN_SYSTEM_LINK:()=>Xf,DESIGN_SYSTEM_OPTIONS:()=>kC,DOMQL_EVENTS:()=>ow,DOMQ_PROPERTIES:()=>so,DOM_EVENTS:()=>TD,ELEMENT_METHOD_OVERRIDE_POINTS:()=>oa,ENV:()=>Tw,FACTORY:()=>Ue,FLEX_PROPS:()=>Hk,FONT_PROPS:()=>jk,GRID_PROPS:()=>Wk,HOST_REGISTERED_PACKAGES:()=>_4,HTML_ATTRIBUTES:()=>zr,HTML_TAGS:()=>ua,LIBRARY_PACKAGES:()=>fg,LIBRARY_SCOPES_KEY:()=>Cs,LIFECYCLE_EVENTS:()=>or,LIVE_KEYS:()=>ok,METHODS:()=>ao,METHODS_EXL:()=>Ml,MISC_PROPS:()=>Uk,MIXINS:()=>mm,NODE_ENV:()=>An,OPTIONS:()=>uf,PACKAGE_MANAGER_TO_CDN:()=>_o,PARSED_DOMQ_PROPERTIES:()=>Il,POLYGLOT_LANG_STORAGE_KEY:()=>Qh,POSITION_PROPS:()=>Vk,PREPARED_FORMAT:()=>rc,PRERENDER_REGISTRY_FORMATS:()=>OC,PROPS_METHODS:()=>io,PROTOTYPE_KEYS:()=>Sr,REGISTRY:()=>Yt,RESERVED_STORE_METHODS:()=>hO,REVIVED_MARK:()=>Vl,ROUTER_OPTIONS:()=>Zb,SIGNAL_ENGINE_KEY:()=>Ji,SIGNAL_INSTANCES_KEY:()=>Xi,STANDARD_SCHEME_QUERIES:()=>Vg,STATE_DATA_MERGE_EXL:()=>Ah,STATE_PROPERTIES:()=>nw,STORE_METHOD_NAMES:()=>pO,SVG_TAGS:()=>_c,THEME_PROPS:()=>zk,TILING_POSITION_KEYWORDS:()=>zu,TILING_SIZE_KEYWORDS:()=>Vu,TIMING_PROPS:()=>od,TYPES:()=>Tl,UNIVERSAL_RESERVED_KEYS:()=>Jh,VALUE_TRANSFORMERS:()=>em,VERSION:()=>pL,__resetBuiltinMethodWarnings:()=>Px,__resetSignalEngine:()=>R_,__resetSignalInstances:()=>C_,__resetSkinWarnings:()=>tk,__resetStateShadowWarnings:()=>gO,activateConfig:()=>nP,addCaching:()=>wh,addContext:()=>_h,addDelegatedEvent:()=>td,addExtend:()=>Xw,addExtends:()=>qn,addItemAfterEveryElement:()=>V_,addMethods:()=>kc,addProtoToArray:()=>Rl,addRef:()=>mh,adoptPrepared:()=>jA,aliasCaseVariants:()=>Ka,alternateLinkKey:()=>Ps,animation:()=>E0,appendSVGSprite:()=>Fu,appendSvgIconsSprite:()=>Zs,applyAttrTransforms:()=>bE,applyCSS:()=>VA,applyDependentState:()=>gS,applyDocument:()=>$u,applyEvent:()=>Th,applyEventUpdate:()=>Ch,applyExtends:()=>mc,applyHeadings:()=>qg,applyInitialState:()=>Im,applyMediaSequenceVars:()=>Ao,applyProps:()=>rf,applyReset:()=>Bu,applySequenceGlobalVars:()=>wu,applySequenceVars:()=>Dr,applySkins:()=>ju,applySpacingSequence:()=>vu,applyStateMethods:()=>Ce,applyThemeRoot:()=>Ku,applyTimingSequence:()=>Nu,applyTrueProps:()=>Jk,applyTypographySequence:()=>Du,arrayContainsOtherArray:()=>M_,arraysEqual:()=>H_,arrayzeValue:()=>Is,assertEmitIntegrity:()=>xk,atSchemes:()=>Oo,bareLibraryKey:()=>Ff,batch:()=>$p,bindLibraryGlobalScopes:()=>jf,breakpoints:()=>x0,breakpointsContainerName:()=>gc,brenderStampMeta:()=>jx,buildImgSrcset:()=>eu,buildSkinVarStyles:()=>Js,buildSourcesAndImg:()=>nu,buildThemeVarStyles:()=>Fy,cache:()=>wS,cacheNode:()=>Mo,call:()=>ax,callStateMethod:()=>fd,camelToAttr:()=>Hr,camelToLowerAttr:()=>PD,captureSnapshot:()=>lx,changeGlobalTheme:()=>nm,changeLightness:()=>s0,checkAttributeByTagName:()=>bn,checkEventFunctions:()=>yE,checkForStateTypes:()=>uS,checkIfBoxSize:()=>Eu,checkIfInherits:()=>vh,checkIfStringIsInArray:()=>q_,class:()=>O0,clone:()=>dw,cloneAndMergeArrayExtend:()=>Yl,cloneFunction:()=>Iw,collectExtendsList:()=>da,color:()=>g0,colorPairSchemes:()=>ku,colorStringToRgbaArray:()=>sn,components:()=>Wc,compositeOverBackdrop:()=>Fs,compoundLayers:()=>ja,concatAddExtends:()=>qw,containerBreakpointQuery:()=>Kk,contrastRatio:()=>Va,convertSvgToSymbol:()=>xu,copyJavaScriptToClipboard:()=>Kx,copyStringToClipboard:()=>Wx,countUntrackedReads:()=>Bp,create:()=>ZC,createAsync:()=>xZ,createBasedOnType:()=>gh,createComputed:()=>uO,createConfig:()=>pu,createDefine:()=>s3,createDomqlElement:()=>kp,createEffect:()=>Y,createElement:()=>fS,createElementExtends:()=>rh,createExtends:()=>Zl,createExtendsFromKeys:()=>pa,createExtendsStack:()=>ah,createHTMLNode:()=>bc,createIfConditionFlag:()=>Mw,createInheritedState:()=>dS,createKey:()=>Kl,createNestedObject:()=>ww,createNestedObjectByKeyPath:()=>hS,createObjectWithoutPrototype:()=>Xp,createParent:()=>yh,createPath:()=>bh,createPristineConfig:()=>Fg,createProps:()=>of,createPropsStack:()=>ph,createPrunedLibraryIconLoader:()=>yg,createRoot:()=>lS,createScope:()=>yS,createScopeStore:()=>jp,createSignal:()=>vn,createSkeleton:()=>EZ,createSnapshotId:()=>Wl,createState:()=>uE,createStore:()=>yr,createSync:()=>kZ,css:()=>We,cssCamelName:()=>Zu,cssMediaVars:()=>Ng,cssPropName:()=>Ae,cssShorthandDepth:()=>oc,cssShorthandStatesLonghand:()=>sc,cssShorthandStatesThemeLonghand:()=>qu,cssVars:()=>Mg,currentPathname:()=>vs,customDecodeURIComponent:()=>ew,customEncodeURIComponent:()=>tw,cutArrayAfterValue:()=>j_,cutArrayBeforeValue:()=>B_,debounce:()=>Gl,debounceOnContext:()=>Lw,decodeBrenderRegistry:()=>Yf,decodeNewlines:()=>Q_,deepClone:()=>pt,deepContains:()=>bw,deepDefaults:()=>Ra,deepDestringifyFunctions:()=>we,deepExtend:()=>nh,deepMerge:()=>bt,deepMergeExtends:()=>Gn,deepStringifyFunctions:()=>Bl,defaultDefine:()=>Hi,defineResolvedThemeSignal:()=>vo,defineSetter:()=>sx,defineThemeSignal:()=>Eo,designSystemBlock:()=>Bx,designSystemLink:()=>Fx,destringifyGlobalScope:()=>gs,destroy:()=>Vi,detectHeightOnInit:()=>mx,detectInfiniteLoop:()=>Ew,detectTag:()=>ir,devices:()=>k0,dispose:()=>yn,effectiveGlobalTheme:()=>By,elementPath:()=>Rn,encodeNewlines:()=>J_,error:()=>ks,escapeHtml:()=>V,escapeRegExp:()=>G_,evaluateText:()=>bo,excludeKeysFromObject:()=>Aw,exec:()=>St,executeAttr:()=>T9,exetuteClassPerComponent:()=>XH,exposeBagGlobalScopes:()=>Uf,extendCachedRegistry:()=>Gw,extendStackRegistry:()=>Jl,extractArrayExtend:()=>tf,extractConditionalAttrs:()=>_E,faviconLinkKey:()=>xo,fetchLibraryData:()=>Da,fibonacciNumberByIndex:()=>yx,fileEntryUrl:()=>pg,filterArrays:()=>W_,filterArraysFast:()=>K_,filterAttributesByTagName:()=>A9,finalizeExtends:()=>ch,findClosestNumber:()=>hg,findClosestNumberInFactory:()=>Hx,findHeadingLetter:()=>jg,findHeadings:()=>_u,findInheritedState:()=>Eh,findKeyPosition:()=>X_,flattenExtend:()=>ha,font:()=>l0,fontFace:()=>d0,fontFamily:()=>f0,fontFamilyTypes:()=>u0,forcedScheme:()=>qs,formatDate:()=>gx,generateHash:()=>Qp,generateHeadArrayTags:()=>Ia,generateKey:()=>Hl,generateMetaTags:()=>Vx,generateSequence:()=>xe,generateSequencePosition:()=>F0,generateSprite:()=>Su,generateSubSequence:()=>yu,get:()=>ex,getActiveConfig:()=>P,getActiveDocument:()=>rr,getActiveLang:()=>Gi,getCDNDirUrl:()=>og,getCDNUrl:()=>Pn,getCacheSize:()=>Tk,getCapitalCaseKeys:()=>Qw,getCdnProviderFromConfig:()=>Ca,getChildStateInKey:()=>kh,getChildren:()=>ox,getColor:()=>dt,getColorShade:()=>xg,getContext:()=>Cf,getCookie:()=>jw,getDB:()=>Df,getDefaultOrFirstKey:()=>Or,getEmitStats:()=>hm,getEmotionStylesheet:()=>Qx,getExtendsInElement:()=>Zw,getExtendsStack:()=>Xl,getExtendsStackRegistry:()=>eh,getFnPrefixAndValue:()=>Lr,getFontFace:()=>a0,getFontFaceEach:()=>Bs,getFontFaceEachString:()=>Pg,getFontFaceString:()=>cu,getFontFamily:()=>Lu,getFontFormat:()=>Og,getFontSizeByKey:()=>Iu,getFrequencyInArray:()=>N_,getFunctionSource:()=>Fe,getHashedExtend:()=>Ql,getImportMapScript:()=>hx,getInObjectByPath:()=>kw,getLanguages:()=>mp,getLocalStateLang:()=>wp,getLocalStorage:()=>Vw,getMediaBorder:()=>Cu,getMediaColor:()=>Gt,getMediaTheme:()=>un,getNev:()=>Pw,getObserver:()=>$e,getPageMetadata:()=>zx,getParentStateInKey:()=>xh,getPath:()=>xf,getPendingLang:()=>gp,getQuery:()=>If,getRef:()=>rx,getResolvedThemeSignal:()=>eP,getRgbTone:()=>In,getRoot:()=>vf,getRootContext:()=>Tf,getRootData:()=>Af,getRootState:()=>Ef,getRootStateInKey:()=>Sh,getSafeInk:()=>Wg,getSafeInkInfo:()=>H0,getSequenceValue:()=>Us,getSequenceValueBySymbols:()=>bu,getSequenceValuePropertyPair:()=>nr,getShadow:()=>Tu,getShapeByKey:()=>Mu,getSignals:()=>dO,getSizeValue:()=>qa,getSpacingBasedOnRatio:()=>Ve,getSpacingByKey:()=>Ht,getSpreadChildren:()=>tS,getSubratio:()=>mu,getSubratioDifference:()=>gu,getSystemGlobalTheme:()=>de,getTheme:()=>G0,getThemeSignal:()=>tP,getTimingByKey:()=>ke,getTimingFunction:()=>ze,global:()=>L_,gradient:()=>m0,grid:()=>C0,hasFunction:()=>ie,hasHandlerPlugin:()=>ca,hasOwnProperty:()=>gw,hashContent:()=>Ln,hexToRgb:()=>e0,hexToRgbArray:()=>bg,hexToRgba:()=>r0,hslToRgb:()=>Sg,icons:()=>_0,inForcedColors:()=>Vs,inheritChildExtends:()=>sh,inheritChildPropsExtends:()=>oh,inheritParentProps:()=>sf,inheritRecursiveChildExtends:()=>ih,init:()=>mr,initPolyglot:()=>e_,initProps:()=>iS,injectGlobal:()=>Ot,insertAfterImportMap:()=>Ux,installPrunedLibraryIconLoader:()=>tu,is:()=>_e,isArray:()=>I,isBoolean:()=>Vp,isBuiltinElementMethod:()=>rw,isCSSVar:()=>Ft,isContextComponent:()=>eS,isCyclic:()=>vw,isDOMNode:()=>ye,isDate:()=>Hp,isDefined:()=>Ut,isDevelopment:()=>lo,isDomDocument:()=>br,isEmpty:()=>Gp,isEmptyObject:()=>mw,isEnumeratedTrueFalseAttr:()=>ci,isEqualDeep:()=>Yp,isFailedRevival:()=>ps,isForcedColorsQuery:()=>zs,isFunction:()=>L,isGoogleFontsUrl:()=>za,isHostObject:()=>_r,isHtmlElement:()=>vl,isInertCompoundValue:()=>Eg,isIntendedSystemColorWord:()=>Hs,isLazyFunction:()=>pw,isLocal:()=>Rw,isLoudDevRuntime:()=>nt,isMalformedDependency:()=>As,isMethod:()=>cx,isMobile:()=>Fw,isNativeColorToken:()=>$s,isNode:()=>wr,isNot:()=>I_,isNotProduction:()=>xr,isNull:()=>zp,isNumber:()=>be,isObject:()=>k,isObjectLike:()=>z,isPhoto:()=>bx,isPlainColor:()=>Co,isPolyglotRetranslatableKey:()=>ff,isPolyglotWritableKey:()=>ys,isProduction:()=>co,isProtectedElementMethod:()=>ls,isRawUnitValue:()=>kl,isResolvedColor:()=>an,isRevived:()=>hs,isScalingUnit:()=>is,isStaging:()=>Ow,isState:()=>pS,isStore:()=>Et,isString:()=>v,isStringFunction:()=>aa,isStringTag:()=>Ul,isSvgTag:()=>Vr,isTest:()=>Jp,isTesting:()=>Cw,isTracking:()=>pE,isUndefined:()=>Zt,isUniversallyReservedKey:()=>fx,isUnresolvableDependency:()=>wo,isValidDependencyMap:()=>Ts,isValidHtmlTag:()=>Hw,isValidTag:()=>yc,isWasmLoaded:()=>mF,isWrappedLibrary:()=>je,isWritableFamilyBucket:()=>P_,joinArrays:()=>ea,joinCompoundLayers:()=>Ua,jointStacks:()=>Yw,jsonForScript:()=>_s,keyframes:()=>fc,keys:()=>Xh,libraryIconPruneReplacer:()=>Jx,libraryIdentifier:()=>gg,libraryPackageSpecs:()=>Pa,librarySpecsFor:()=>lg,linearChannelToSrgb:()=>Ag,literalPairCompound:()=>Gs,literalSchemeMap:()=>Mr,loadCssFile:()=>xx,loadJavascript:()=>kx,loadJavascriptFile:()=>_x,loadJavascriptFileEmbedSync:()=>Sx,loadJavascriptFileSync:()=>wx,loadRemoteCSS:()=>Ex,loadRemoteScript:()=>Oa,loadTranslations:()=>qi,loadWasm:()=>gF,log:()=>ix,logGroupIf:()=>$w,logIf:()=>Nw,lookdown:()=>QS,lookdownAll:()=>tx,lookup:()=>JS,lowercaseFirstLetter:()=>as,makeObjectWithoutPrototype:()=>yw,map:()=>uw,mapStringsWithContextComponents:()=>ef,markPolyglotSeeded:()=>Xn,markRevived:()=>ia,markTextNotReady:()=>va,matchesComponentNaming:()=>Yn,media:()=>p0,memoize:()=>Dw,merge:()=>Lt,mergeSharedLibraries:()=>Vf,mergeSharedLibraryDesignSystems:()=>zf,mergeSharedLibraryTranslations:()=>Hf,mergeStateData:()=>uo,mixTwoColors:()=>t0,mixTwoRgb:()=>o0,mixTwoRgba:()=>kg,nextElement:()=>Rf,normalizeIgnoreList:()=>Bf,normalizeLibraryKey:()=>Os,numToLetterMap:()=>ln,objectToString:()=>jl,objectizeStringProperty:()=>nf,oklabToLinearSrgb:()=>Tg,oklabToOklch:()=>su,oklchToGamutSafeSrgb:()=>iu,oklchToOklab:()=>Cg,opacify:()=>Ba,overwrite:()=>zl,overwriteDeep:()=>ae,overwriteShallow:()=>ms,overwriteState:()=>mS,parkHostObject:()=>oo,parse:()=>Zh,parseColorToken:()=>ee,parseDeep:()=>wf,payloadHasComputedIconName:()=>mg,pickStartLang:()=>ng,pickupElementFromProps:()=>uh,pickupPropsFromElement:()=>fh,planLibraryIconPrune:()=>Zx,polyglotAddressLang:()=>tg,polyglotFallbackLang:()=>vr,polyglotFunctions:()=>Sp,polyglotLangStorageKey:()=>Ea,polyglotLanguages:()=>Be,polyglotPlugin:()=>pl,polyglotSeededKeys:()=>po,polyglotStartLang:()=>Es,polyglotStartRule:()=>eg,polyglotStartupScript:()=>ux,popConfig:()=>ht,popStaticCssPass:()=>Tm,prepareContext:()=>YC,previousElement:()=>Pf,promoteActiveRootState:()=>xa,propExists:()=>oS,propertizeElement:()=>dh,propertizeUpdate:()=>rS,pushConfig:()=>mt,pushStaticCssPass:()=>Am,quietColorProbe:()=>Ws,quietSequenceProbe:()=>Pr,readBrenderStamp:()=>ws,readJsonDataBlock:()=>Jn,recordRules:()=>Ju,refreshContextProto:()=>Ec,registerEvent:()=>pc,registerHostPackages:()=>w4,registerSignalInstance:()=>Zi,reinit:()=>UA,relativeLuminance:()=>Ms,remove:()=>xc,removeChars:()=>qx,removeCookie:()=>Uw,removeDelegatedEvent:()=>ed,removeDuplicateProps:()=>cf,removeDuplicatesInArray:()=>na,removeFromArray:()=>$_,removeFromObject:()=>_w,removeNestedKeyByPath:()=>Sw,removeValueFromArray:()=>Ol,removeValueFromArrayAll:()=>U_,reorderArrayByValues:()=>z_,repairLegacyArrowScopePreamble:()=>Nl,replaceLiteralsWithObjectFields:()=>Jt,replaceOctalEscapeSequences:()=>Z_,replayRules:()=>Qu,resetEmitStats:()=>Sk,resolveAsset:()=>Se,resolveBorderValue:()=>fe,resolveColorRgb:()=>Ks,resolveColorsInGradient:()=>Po,resolveCompoundWords:()=>Cr,resolveConfigDocument:()=>Qi,resolveDesignSystemClass:()=>KL,resolveFileReferences:()=>Ds,resolveFileSource:()=>mE,resolveFileUrl:()=>cn,resolveGridTracks:()=>$L,resolveHandler:()=>la,resolvePropValue:()=>No,resolveShadowNonColorWord:()=>Ya,resolveShadowValue:()=>Ys,resolveSharedLibraries:()=>Wf,resolveStyleBlockTokens:()=>tE,returnSubThemeOrDefault:()=>i0,returnValueAsText:()=>hh,reviveConfig:()=>sm,rgbArrayToHex:()=>_g,rgbToHSL:()=>wg,rgbToHex:()=>n0,runPluginHook:()=>fo,runThroughMedia:()=>Kg,schemeGuardSelector:()=>Hg,schemeMediaQuery:()=>zg,scopeElementParam:()=>Wp,scopeReceiverExpression:()=>cw,scratchDefaultConfig:()=>Wa,scratchSystem:()=>Qa,scratchUtils:()=>To,self:()=>D_,semanticIcons:()=>w0,sequence:()=>Rr,serializeAttrValue:()=>lr,serializeConfig:()=>om,set:()=>ti,setActiveConfig:()=>$g,setActiveDocument:()=>wk,setActiveRootState:()=>kf,setAdaptiveSchemeVar:()=>Ro,setClass:()=>eq,setClassname:()=>ZH,setColor:()=>Ir,setCookie:()=>Bw,setCssEngineHook:()=>$y,setCustomFont:()=>au,setCustomFontMedia:()=>ko,setEach:()=>Wu,setFont:()=>Pu,setFontFamily:()=>Za,setFontImport:()=>Ha,setGradient:()=>Ga,setHashedExtend:()=>th,setInCustomFontMedia:()=>Rg,setInObjectByPath:()=>xw,setLang:()=>bp,setLocalStorage:()=>zw,setMediaTheme:()=>Xa,setNodeStyles:()=>Yh,setObserver:()=>Sl,setProps:()=>nx,setPropsPrototype:()=>af,setSVG:()=>Ja,setScalingVar:()=>hu,setShadow:()=>Lo,setSubScalingVar:()=>Bg,setSvgIcon:()=>Xs,setTheme:()=>Ou,setValue:()=>rk,setVariables:()=>B0,setWasmEngine:()=>Xu,settled:()=>Fp,shadow:()=>b0,shape:()=>L0,sharedLibrary:()=>Rx,sharedLibraryFiles:()=>Rs,sizes:()=>P0,skins:()=>D0,spacing:()=>h0,splitCompoundWords:()=>ru,splitPackageSpecifier:()=>Mf,splitSelectorList:()=>jr,splitSpacedValue:()=>Au,splitTopLevelCommas:()=>Dn,splitTopLevelSpaces:()=>ut,splitTransition:()=>tm,spotByPath:()=>Sf,srcsetFor:()=>Ma,srgbChannelToLinear:()=>vg,srgbToOklab:()=>ou,stringIncludesAny:()=>Ll,stringToObject:()=>hw,stripVersionRangePrefix:()=>Nf,svg:()=>v0,svgData:()=>Lg,svg_data:()=>A0,swapItemsInArray:()=>F_,syncProps:()=>lf,templates:()=>T0,theme:()=>y0,themeColorKey:()=>Ls,timing:()=>S0,toCamel:()=>du,toCamelCase:()=>Ar,toDashCase:()=>Qf,toDescriptionCase:()=>Yx,toLinearChannel:()=>$a,toPriorityOrder:()=>tn,toTitleCase:()=>Gx,toggleFullscreen:()=>px,transformBackgroundImage:()=>Zg,transformBorder:()=>Gg,transformBorderRadius:()=>Nr,transformBoxShadow:()=>Uu,transformClassname:()=>GL,transformDuration:()=>Hu,transformGridTemplate:()=>Qg,transformShadow:()=>Xg,transformSize:()=>Nt,transformSizeRatio:()=>j,transformTextStroke:()=>Yg,transformTilingValue:()=>Qs,transformTransition:()=>nk,transformersByPrefix:()=>Qk,transfromGap:()=>Jg,translate:()=>yp,triggerEventOn:()=>kr,triggerEventOnUpdate:()=>bS,trimStringFromSymbols:()=>Y_,typography:()=>lu,unit:()=>c0,unstackArrayOfObjects:()=>Cl,untrack:()=>ss,update:()=>Sc,updateProps:()=>aS,updateVars:()=>tq,upsertTranslation:()=>_p,useCssInProps:()=>ne,useHostState:()=>dE,usePropsAsCSS:()=>WL,useSelectorsAsCSS:()=>qL,variables:()=>Lf,vars:()=>R0,verbose:()=>ka,viewTransition:()=>I0,warn:()=>Of,warnLibraryAliasCollision:()=>La,warnStateKeyShadowsMethod:()=>Up,window:()=>R,wrapHoverRule:()=>Br});module.exports=V4(eO);Mt();var gm={};B(gm,{CSS_LONGHAND_SHORTHANDS:()=>dn,CSS_SHORTHAND_LONGHANDS:()=>vt,assertEmitIntegrity:()=>xk,css:()=>We,cssCamelName:()=>Zu,cssPropName:()=>Ae,cssShorthandDepth:()=>oc,cssShorthandStatesLonghand:()=>sc,cssShorthandStatesThemeLonghand:()=>qu,getActiveDocument:()=>rr,getCacheSize:()=>Tk,getEmitStats:()=>hm,injectGlobal:()=>Ot,keyframes:()=>fc,recordRules:()=>Ju,replayRules:()=>Qu,reset:()=>dL,resetEmitStats:()=>Sk,setActiveDocument:()=>wk,setWasmEngine:()=>Xu,splitSelectorList:()=>jr,wrapHoverRule:()=>Br});var sk={};B(sk,{BARE_SEQUENCE_TOKEN_RE:()=>Mn,COMPOUND_CSS_KEYWORDS:()=>Ns,CONFIG:()=>js,CONFIG_MERGE_EXL:()=>le,CSS_NAMED_COLOR_HEX:()=>Fa,CSS_NATIVE_COLOR_REGEX:()=>Tr,CSS_UNITS:()=>ta,FACTORY:()=>Ue,LIVE_KEYS:()=>ok,PREPARED_FORMAT:()=>rc,STANDARD_SCHEME_QUERIES:()=>Vg,TILING_POSITION_KEYWORDS:()=>zu,TILING_SIZE_KEYWORDS:()=>Vu,VALUE_TRANSFORMERS:()=>em,__resetSkinWarnings:()=>tk,activateConfig:()=>nP,aliasCaseVariants:()=>Ka,animation:()=>E0,appendSVGSprite:()=>Fu,appendSvgIconsSprite:()=>Zs,applyDocument:()=>$u,applyHeadings:()=>qg,applyMediaSequenceVars:()=>Ao,applyReset:()=>Bu,applySequenceGlobalVars:()=>wu,applySequenceVars:()=>Dr,applySkins:()=>ju,applySpacingSequence:()=>vu,applyThemeRoot:()=>Ku,applyTimingSequence:()=>Nu,applyTypographySequence:()=>Du,atSchemes:()=>Oo,breakpoints:()=>x0,buildSkinVarStyles:()=>Js,changeGlobalTheme:()=>nm,changeLightness:()=>s0,checkIfBoxSize:()=>Eu,class:()=>O0,color:()=>g0,colorPairSchemes:()=>ku,colorStringToRgbaArray:()=>sn,compositeOverBackdrop:()=>Fs,compoundLayers:()=>ja,contrastRatio:()=>Va,convertSvgToSymbol:()=>xu,createConfig:()=>pu,createPristineConfig:()=>Fg,cssMediaVars:()=>Ng,cssVars:()=>Mg,defineResolvedThemeSignal:()=>vo,defineThemeSignal:()=>Eo,devices:()=>k0,document:()=>JR,findHeadingLetter:()=>jg,findHeadings:()=>_u,font:()=>l0,fontFace:()=>d0,fontFamily:()=>f0,fontFamilyTypes:()=>u0,forcedScheme:()=>qs,generateSequence:()=>xe,generateSequencePosition:()=>F0,generateSprite:()=>Su,generateSubSequence:()=>yu,getActiveConfig:()=>P,getColor:()=>dt,getColorShade:()=>xg,getDefaultOrFirstKey:()=>Or,getFnPrefixAndValue:()=>Lr,getFontFace:()=>a0,getFontFaceEach:()=>Bs,getFontFaceEachString:()=>Pg,getFontFaceString:()=>cu,getFontFamily:()=>Lu,getFontFormat:()=>Og,getFontSizeByKey:()=>Iu,getMediaBorder:()=>Cu,getMediaColor:()=>Gt,getMediaTheme:()=>un,getResolvedThemeSignal:()=>eP,getRgbTone:()=>In,getSafeInk:()=>Wg,getSafeInkInfo:()=>H0,getSequenceValue:()=>Us,getSequenceValueBySymbols:()=>bu,getSequenceValuePropertyPair:()=>nr,getShadow:()=>Tu,getShapeByKey:()=>Mu,getSizeValue:()=>qa,getSpacingBasedOnRatio:()=>Ve,getSpacingByKey:()=>Ht,getSubratio:()=>mu,getSubratioDifference:()=>gu,getTheme:()=>G0,getThemeSignal:()=>tP,getTimingByKey:()=>ke,getTimingFunction:()=>ze,gradient:()=>m0,grid:()=>C0,hexToRgb:()=>e0,hexToRgbArray:()=>bg,hexToRgba:()=>r0,hslToRgb:()=>Sg,icons:()=>_0,inForcedColors:()=>Vs,isCSSVar:()=>Ft,isDomDocument:()=>br,isForcedColorsQuery:()=>zs,isGoogleFontsUrl:()=>za,isHostObject:()=>_r,isInertCompoundValue:()=>Eg,isIntendedSystemColorWord:()=>Hs,isNativeColorToken:()=>$s,isPlainColor:()=>Co,isRawUnitValue:()=>kl,isResolvedColor:()=>an,isScalingUnit:()=>is,isWritableFamilyBucket:()=>P_,joinCompoundLayers:()=>Ua,linearChannelToSrgb:()=>Ag,literalPairCompound:()=>Gs,literalSchemeMap:()=>Mr,media:()=>p0,mixTwoColors:()=>t0,mixTwoRgb:()=>o0,mixTwoRgba:()=>kg,numToLetterMap:()=>ln,oklabToLinearSrgb:()=>Tg,oklabToOklch:()=>su,oklchToGamutSafeSrgb:()=>iu,oklchToOklab:()=>Cg,opacify:()=>Ba,parkHostObject:()=>oo,parseColorToken:()=>ee,popConfig:()=>ht,pushConfig:()=>mt,quietColorProbe:()=>Ws,quietSequenceProbe:()=>Pr,relativeLuminance:()=>Ms,reset:()=>QR,resolveBorderValue:()=>fe,resolveColorRgb:()=>Ks,resolveColorsInGradient:()=>Po,resolveCompoundWords:()=>Cr,resolveConfigDocument:()=>Qi,resolveFileUrl:()=>cn,resolveShadowNonColorWord:()=>Ya,resolveShadowValue:()=>Ys,returnSubThemeOrDefault:()=>i0,reviveConfig:()=>sm,rgbArrayToHex:()=>_g,rgbToHSL:()=>wg,rgbToHex:()=>n0,runThroughMedia:()=>Kg,schemeGuardSelector:()=>Hg,schemeMediaQuery:()=>zg,scratchDefaultConfig:()=>Wa,scratchSystem:()=>Qa,scratchUtils:()=>To,semanticIcons:()=>w0,sequence:()=>Rr,serializeConfig:()=>om,set:()=>ti,setActiveConfig:()=>$g,setAdaptiveSchemeVar:()=>Ro,setColor:()=>Ir,setCustomFont:()=>au,setCustomFontMedia:()=>ko,setEach:()=>Wu,setFont:()=>Pu,setFontFamily:()=>Za,setFontImport:()=>Ha,setGradient:()=>Ga,setInCustomFontMedia:()=>Rg,setMediaTheme:()=>Xa,setSVG:()=>Ja,setScalingVar:()=>hu,setShadow:()=>Lo,setSubScalingVar:()=>Bg,setSvgIcon:()=>Xs,setTheme:()=>Ou,setValue:()=>rk,setVariables:()=>B0,shadow:()=>b0,shape:()=>L0,sizes:()=>P0,skins:()=>D0,spacing:()=>h0,splitCompoundWords:()=>ru,splitSpacedValue:()=>Au,splitTopLevelCommas:()=>Dn,splitTopLevelSpaces:()=>ut,splitTransition:()=>tm,srgbChannelToLinear:()=>vg,srgbToOklab:()=>ou,svg:()=>v0,svgData:()=>Lg,svg_data:()=>A0,templates:()=>T0,theme:()=>y0,timing:()=>S0,toCamel:()=>du,toLinearChannel:()=>$a,transformBackgroundImage:()=>Zg,transformBorder:()=>Gg,transformBorderRadius:()=>Nr,transformBoxShadow:()=>Uu,transformDuration:()=>Hu,transformGridTemplate:()=>Qg,transformShadow:()=>Xg,transformSize:()=>Nt,transformSizeRatio:()=>j,transformTextStroke:()=>Yg,transformTilingValue:()=>Qs,transformTransition:()=>nk,transfromGap:()=>Jg,typography:()=>lu,unit:()=>c0,vars:()=>R0,viewTransition:()=>I0});var To={};B(To,{BARE_SEQUENCE_TOKEN_RE:()=>Mn,COMPOUND_CSS_KEYWORDS:()=>Ns,CSS_NAMED_COLOR_HEX:()=>Fa,CSS_NATIVE_COLOR_REGEX:()=>Tr,CSS_UNITS:()=>ta,applyMediaSequenceVars:()=>Ao,applySequenceGlobalVars:()=>wu,applySequenceVars:()=>Dr,changeLightness:()=>s0,colorStringToRgbaArray:()=>sn,compositeOverBackdrop:()=>Fs,compoundLayers:()=>ja,contrastRatio:()=>Va,convertSvgToSymbol:()=>xu,findHeadingLetter:()=>jg,findHeadings:()=>_u,generateSequence:()=>xe,generateSequencePosition:()=>F0,generateSprite:()=>Su,generateSubSequence:()=>yu,getColorShade:()=>xg,getDefaultOrFirstKey:()=>Or,getFnPrefixAndValue:()=>Lr,getFontFace:()=>a0,getFontFaceEach:()=>Bs,getFontFaceEachString:()=>Pg,getFontFaceString:()=>cu,getFontFormat:()=>Og,getRgbTone:()=>In,getSequenceValue:()=>Us,getSequenceValueBySymbols:()=>bu,getSequenceValuePropertyPair:()=>nr,getSizeValue:()=>qa,getSubratio:()=>mu,getSubratioDifference:()=>gu,hexToRgb:()=>e0,hexToRgbArray:()=>bg,hexToRgba:()=>r0,hslToRgb:()=>Sg,isCSSVar:()=>Ft,isDomDocument:()=>br,isGoogleFontsUrl:()=>za,isHostObject:()=>_r,isInertCompoundValue:()=>Eg,isNativeColorToken:()=>$s,isRawUnitValue:()=>kl,isResolvedColor:()=>an,isScalingUnit:()=>is,isWritableFamilyBucket:()=>P_,joinCompoundLayers:()=>Ua,linearChannelToSrgb:()=>Ag,mixTwoColors:()=>t0,mixTwoRgb:()=>o0,mixTwoRgba:()=>kg,numToLetterMap:()=>ln,oklabToLinearSrgb:()=>Tg,oklabToOklch:()=>su,oklchToGamutSafeSrgb:()=>iu,oklchToOklab:()=>Cg,opacify:()=>Ba,parkHostObject:()=>oo,parseColorToken:()=>ee,quietSequenceProbe:()=>Pr,relativeLuminance:()=>Ms,resolveCompoundWords:()=>Cr,resolveConfigDocument:()=>Qi,resolveFileUrl:()=>cn,returnSubThemeOrDefault:()=>i0,rgbArrayToHex:()=>_g,rgbToHSL:()=>wg,rgbToHex:()=>n0,setCustomFont:()=>au,setCustomFontMedia:()=>ko,setFontImport:()=>Ha,setInCustomFontMedia:()=>Rg,setScalingVar:()=>hu,setSubScalingVar:()=>Bg,setVariables:()=>B0,splitCompoundWords:()=>ru,splitTopLevelCommas:()=>Dn,splitTopLevelSpaces:()=>ut,srgbChannelToLinear:()=>vg,srgbToOklab:()=>ou,toLinearChannel:()=>$a});var br=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0),_r=t=>{if(t===null||typeof t!="object")return!1;let e=Object.prototype.toString.call(t);return!!(e!=="[object Object]"&&e!=="[object Array]"||typeof t.nodeType=="number"||t.defaultView||t.window===t||t.self===t)},P_=t=>t!==null&&typeof t=="object"&&!_r(t),oo=(t,e,n)=>{if(!t)return;if(br(n)){t.__domDocument||(t.__domDocument=n);return}let r=`__host_${e}`;t[r]||(t[r]=n)},Qi=t=>t?br(t.__domDocument)?t.__domDocument:br(t.document)?t.document:null:null;var is=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",ta=["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"],a5=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),c5=new RegExp(`^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:${ta.filter(t=>t!=="auto").map(a5).join("|")})$`),kl=t=>c5.test(String(t).trim());M();var Fa={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},sn=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];let e=Fa[t.toLowerCase()];if(e&&(t=e),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&&kt&&R){let n=kt.body.appendChild(kt.createElement("fictum")),r="rgb(1, 2, 3)";if(n.style.color=r,n.style.color!==r){kt.body.removeChild(n);return}if(n.style.color=t,n.style.color===r||n.style.color==="")return kt.body.removeChild(n),[0,0,0,0];t=R.getComputedStyle(n).color,kt.body.removeChild(n)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(n=>+n)):[0,0,0,0]},t0=(t,e,n=.5)=>(t=sn(t),e=sn(e),kg(t,e,n)),e0=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${n},${r},${o})`},bg=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[n,r,o]},n0=(t,e,n)=>"#"+(1<<24|t<<16|e<<8|n).toString(16).slice(1),_g=([t,e,n])=>((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1),r0=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${n},${r},${o},${e})`},o0=(t,e,n=.5)=>{let r=[];for(let o=0;o<3;o++)r[o]=~~(t[o]+(e[o]-t[o])*n);return`rgb(${r})`},s0=(t,e)=>{let[n,r,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[n,r,s]},wg=(t,e,n)=>{let r=Math.max(t,e,n),o=r-Math.min(t,e,n),s=1-Math.abs(r+r-o-1),i=o&&(r==t?(e-n)/o:r==e?2+(n-t)/o:4+(t-e)/o);return[60*(i<0?i+6:i),s?o/s:0,(r+r-o)/2]},Sg=(t,e,n,r=e*Math.min(n,1-n),o=(s,i=(s+t/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],xg=(t,e)=>{let n=parseInt(t,16),r=(n>>16)+e;r>255?r=255:r<0&&(r=0);let o=(n>>8&255)+e;o>255?o=255:o<0&&(o=0);let s=(n&255)+e;return s>255?s=255:s<0&&(s=0),((s|o<<8|r<<16)+16777216).toString(16).slice(1)},kg=(t,e,n=.5)=>{let r=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;r[o]=s(t[o]+(e[o]-t[o])*n)}return`rgba(${r})`},Ba=(t,e)=>{let n=sn(t);if(!n){xr()&&console.warn(t+" color is not rgba");return}return n[3]=e,`rgba(${n})`},Ft=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Ns=new Set(["currentcolor","transparent","thin","medium","thick"]),Tr=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,WU=/^(?:#[0-9a-f]{3,8}|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix|light-dark)\([\s\S]*\))$/i,$s=t=>WU.test(t),ru=t=>t.indexOf("(")===-1?t.split(/\s+/):ut(t),Eg=(t,e)=>{let n=t.length,r=0,o=0;for(let s=0;s<=n;s++){let i=s<n?t.charCodeAt(s):32;if(i===40){r++;continue}if(i===41){r>0&&r--;continue}if(!(r>0||!(i<=32||i===44||i>127&&/\s/.test(t[s])))){if(s>o&&!KU(t,o,s,e))return!1;o=s+1}}return!0},KU=(t,e,n,r)=>{let o=t.charCodeAt(e);if(o>=48&&o<=57)return!0;let s=t.slice(e,n);return $s(s)||r!==void 0&&r.has(s)},ja=(t,e)=>e?Dn(t).map(n=>ru(n.trim())):[ru(t)],Ua=t=>{let e=t[0].join(" ");for(let n=1;n<t.length;n++)e+=", "+t[n].join(" ");return e},Cr=(t,e,{commas:n,keywords:r},o,s)=>{let i=Tr.test(t);if(i&&Eg(t,r))return t;let a=ja(t,n),c=!1;try{for(let l of a)for(let f=0;f<l.length;f++){let u=l[f],d=qU(u,e,r,o,s);d!==u&&(l[f]=d,c=!0)}}catch(l){if(i)return t;throw l}return i&&!c?t:Ua(a)},qU=(t,e,n,r,o)=>t?Ft(t)?`var(${t})`:$s(t)||n!==void 0&&n.has(t)?t:e(t,r,o):"",GU=/^([a-zA-Z]\w*(?:-[a-zA-Z]\w*)*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,ee=t=>{if(!v(t))return null;if(Tr.test(t))return{passthrough:t};if(Ft(t))return{cssVar:t};let e=t.match(GU);if(!e)return null;let[,n,r,o]=e,s=r!==void 0?`0.${r}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:n,alpha:s,tone:i}},an=t=>v(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),Dn=t=>{let e=[],n="",r=0;for(let o of t){if(o==="("?r+=1:o===")"&&r>0&&(r-=1),o===","&&r===0){e.push(n),n="";continue}n+=o}return(n.length||!e.length)&&e.push(n),e},ut=t=>{let e=[],n="",r=0;for(let o of t){if(o==="("?r+=1:o===")"&&r>0&&(r-=1),r===0&&/\s/.test(o)){n.length&&e.push(n),n="";continue}n+=o}return n.length&&e.push(n),e},$a=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),Ms=t=>.2126*$a(t[0])+.7152*$a(t[1])+.0722*$a(t[2]),Va=(t,e)=>{let n=Ms(t)+.05,r=Ms(e)+.05;return n>r?n/r:r/n},vg=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),Ag=t=>(t<=.0031308?t*12.92:1.055*Math.pow(t,1/2.4)-.055)*255,ou=([t,e,n])=>{let[r,o,s]=[t,e,n].map(vg),i=.4122214708*r+.5363325363*o+.0514459929*s,a=.2119034982*r+.6806995451*o+.1073969566*s,c=.0883024619*r+.2817188376*o+.6299787005*s,l=Math.cbrt(i),f=Math.cbrt(a),u=Math.cbrt(c);return[.2104542553*l+.793617785*f-.0040720468*u,1.9779984951*l-2.428592205*f+.4505937099*u,.0259040371*l+.7827717662*f-.808675766*u]},Tg=([t,e,n])=>{let r=t+.3963377774*e+.2158037573*n,o=t-.1055613458*e-.0638541728*n,s=t-.0894841775*e-1.291485548*n,i=r**3,a=o**3,c=s**3;return[4.0767416621*i-3.3077115913*a+.2309699292*c,-1.2684380046*i+2.6097574011*a-.3413193965*c,-.0041960863*i-.7034186147*a+1.707614701*c]},su=([t,e,n])=>{let r=Math.atan2(n,e)*180/Math.PI;return r<0&&(r+=360),[t,Math.sqrt(e*e+n*n),r]},Cg=([t,e,n])=>{let r=n*Math.PI/180;return[t,e*Math.cos(r),e*Math.sin(r)]},iu=(t,e,n,r=24)=>{let o=a=>Tg(Cg([t,a,n])),s=a=>a.every(c=>c>=-1e-4&&c<=1.0001),i=o(e);if(!s(i)){let a=0,c=e;for(let l=0;l<r;l++){let f=(a+c)/2;s(o(f))?a=f:c=f}i=o(a)}return i.map(a=>Ag(Math.max(0,Math.min(1,a))))},Fs=(t,e=1,n=[255,255,255])=>e>=1?t:t.map((r,o)=>r*e+n[o]*(1-e)),In=(t,e)=>{v(t)&&t.includes("rgb")&&(t=sn(t).join(", ")),v(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),be(e)&&(e+="");let n=_g(t),r=e.slice(0,1);if(r==="-"||r==="+"){let o=xg(n,parseFloat(e));return bg(o).join(", ")}else{let[o,s,i]=t,[a,c]=wg(o/255,s/255,i/255),l=Math.max(0,Math.min(100,parseFloat(e)))/100;return Sg(a,c,l).map(u=>Math.round(Math.max(0,Math.min(1,u))*255)).join(", ")}};var i0=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var cn=(t,e)=>{if(!t||!e)return null;try{return new URL(t),null}catch{}let n=e[t];return n?n.content&&n.content.src:null},Or=(t,e)=>{if(!t)return;if(e!=null&&e!==""&&e!=="default"){let s=t[e];return s&&typeof s=="object"?s.value:void 0}let r=()=>Object.keys(t).find(s=>s!=="default"&&t[s]&&t[s].value&&!t[s].isSystemFallback&&!t[s].isSharedLibrary);if(t.__defaultKey){let s=t[t.__defaultKey];if(s&&s.isSystemFallback){let i=r();if(i)return t[i].value}if(s)return s.value}let o=r()||Object.keys(t).find(s=>s!=="default"&&t[s]&&t[s].value);return o&&t[o]&&t[o].value},Og=t=>{if(typeof t!="string"||!t)return null;let e=t.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(e)?e:null},za=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),Ha=t=>`@import url('${t}');`,Rg=t=>`@font-face { ${t} }`,au=(t,e,n,r={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=Og(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
38
38
  `);return`
39
39
  font-family: '${t}';
40
40
  font-style: ${r.fontStyle||"normal"};${n?`
@@ -42,24 +42,24 @@ FROM ${a}${l}`},l6=t=>{let e=[],n=(r,o)=>{for(let s in r){let i=o?`${o}/${s}`:s;
42
42
  font-stretch: ${r.fontStretch};`:""}${r.fontDisplay?`
43
43
  font-display: ${r.fontDisplay};`:""}${r.unicodeRange?`
44
44
  unicode-range: ${r.unicodeRange};`:""}
45
- src: ${i};`},yo=(t,e,n,r)=>`@font-face {${Qf(t,e,n,r)}
46
- }`,Ms=(t,e,n)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:f}=e[o],u=Array.isArray(s)?s.map(d=>rn(d,n)||d):rn(s,n)||s;return Qf(t,u,i,{fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:f})}),qx=t=>Object.keys(t).map(n=>Ms(n,t[n].value)),Sg=(t,e,n)=>{if(e&&e.isVariable){let s=rn(e.url,n)||e.url;return $a(s)?Fa(s):yo(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap",unicodeRange:e.unicodeRange})}if(e[0])return Ms(t,e,n).map(wg);let o=Array.isArray(e.url)?e.url.map(s=>rn(s,n)||s):rn(e.url,n)||e.url;return yo(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch,unicodeRange:e.unicodeRange})},tu=(t,e)=>Object.keys(t).map(r=>Sg(r,t[r].value,e));M();M();M();M();Mt();var Ba={};F(Ba,{animation:()=>f0,breakpoints:()=>c0,class:()=>g0,color:()=>e0,devices:()=>l0,document:()=>OR,font:()=>Yx,fontFace:()=>Jx,fontFamily:()=>Xx,fontFamilyTypes:()=>Zx,gradient:()=>n0,grid:()=>h0,icons:()=>s0,media:()=>Qx,reset:()=>RR,semanticIcons:()=>i0,sequence:()=>vr,shadow:()=>o0,shape:()=>b0,sizes:()=>y0,skins:()=>_0,spacing:()=>t0,svg:()=>u0,svgData:()=>xg,svg_data:()=>d0,templates:()=>p0,theme:()=>r0,timing:()=>a0,typography:()=>eu,unit:()=>Gx,vars:()=>m0,viewTransition:()=>w0});var vr={"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 Gx={default:"em"};var pU={browserDefault:16,base:16,type:"font-size",ratio:vr["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},eu=pU;var Yx={};var Xx={},Zx={"sans-serif":"Helvetica, Arial, sans-serif",serif:"Times New Roman, Georgia, serif",monospace:"Courier New, monospace"},Jx={};var Qx={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var hU={base:eu.base,type:"spacing",ratio:vr.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},t0=hU;var e0={},n0={};var r0={};var o0={};var s0={},i0={};var gU={default:150,base:150,type:"timing",ratio:vr["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},a0=gU;var OR={};var c0={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},l0={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 f0={};var u0={},xg={},d0=xg;var p0={};var mU={},h0=mU;var g0={};var RR={},m0={},y0={},b0={},_0={},w0={};var vg={},Ag={},ae=new Set,kg=Ba,Eg={},ou=t=>t.replace(/_([a-z])/g,(e,n)=>n.toUpperCase());for(let t in kg){let e=t.toLowerCase();Eg[e]=kg[t];let n=ou(e);n!==e&&(Eg[n]=kg[t]),e!==t&&(Eg[t]=kg[t])}var Ns={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:vg,cssMediaVars:Ag,CSS_VARS:vg,CSS_MEDIA_VARS:Ag,cssSkinVars:{},cssSkinFallback:{},_scratchConfig:!0,...Eg},bo=(t,e)=>{if(!t)return null;if(t.__globalThemeSignal)return Ut(e)&&t.__globalThemeSignal.set(e),t.__globalThemeSignal;let n=Ut(e)?e:t.globalTheme,r=Sn(Ut(n)?n:"auto");return Object.defineProperty(t,"globalTheme",{get(){return r.get()},set(o){r.set(o)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"__globalThemeSignal",{value:r,enumerable:!1,configurable:!0,writable:!0}),r},PR=t=>t?bo(t):null,_o=(t,e)=>{if(!t)return null;if(t.__resolvedThemeSignal)return Ut(e)&&t.__resolvedThemeSignal.set(e),t.__resolvedThemeSignal;let n=Ut(e)?e:t.resolvedTheme,r=Sn(Ut(n)?n:null);return Object.defineProperty(t,"resolvedTheme",{get(){return r.get()},set(o){r.set(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"__resolvedThemeSignal",{value:r,enumerable:!1,configurable:!0,writable:!0}),r},LR=t=>t?_o(t):null;bo(Ns);_o(Ns);var nu=pt(Ns),Fe={active:"0",0:Ns},DR=t=>(Ut(t)&&(Fe.active=t),Fe[t||Fe.active]),ru=[],mt=t=>{t&&t._scratchConfig&&ru.push(t)},ht=()=>{ru.pop()},P=t=>ru.length?ru[ru.length-1]:Fe[t||Fe.active]||Ns,Cg=t=>{if(E(t))return Fe.active="1",Fe[1]=bt(t,pt(nu),ae),ja(Fe[1]),bo(Fe[1]),_o(Fe[1]),t},yU=["useReset","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig"],bU=["useVariable","globalTheme","verbose"],_U=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData","svg_data"]],ja=t=>{for(let e of _U){let n;for(let r of e){let o=t[r];E(o)&&(n=n?bt(n,o,ae):o)}if(n)for(let r of e)E(t[r])&&(t[r]=n)}},IR=t=>(t.cssVars={},t.cssMediaVars={},t.CSS_VARS=t.cssVars,t.CSS_MEDIA_VARS=t.cssMediaVars,t.cssSkinVars={},t.cssSkinFallback={},t._scratchConfig=!0,ja(t),bo(t),_o(t),t),Tg=()=>IR(pt(nu)),su=(t,e,{cleanBase:n=!1}={})=>{let r=n?null:P(),o=pt(!n&&r&&r._scratchConfig?r:nu);for(let i of yU)delete o[i];for(let i of bU)Object.prototype.hasOwnProperty.call(nu,i)?o[i]=nu[i]:delete o[i];let s=IR(bt(e||{},o,ae));return t&&(Fe[t]=s),s};var Pn=/^-?[A-Z][0-9]?$/,S0=0,Ar=t=>{S0++;try{return t()}finally{S0--}},on={"-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"},wU=Object.keys(on).reduce((t,e)=>(t[on[e]]=Number(e),t),{}),SU=(t,e,n,r)=>{if(Pn.test(e)){if(t&&Object.keys(t).length)return t[e]!==void 0;let o=wU[e.slice(0,1)];if(o===void 0)return!1;let{range:s}=n;return!Array.isArray(s)||s.length<2?!0:o>=Math.min(s[0],s[1])&&o<=Math.max(s[0],s[1])}if(r&&Object.keys(r).length)return!1},k0=(t,e)=>{let{key:n,variable:r,value:o,scaling:s,index:i,scalingVariable:a}=t;e.sequence[n]={key:n,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:r},e.scales[n]=s;let c=MR.has(e.unit)?"rem":e.unit;e.vars[r]=s+c},Cr=t=>{if(!t.includes("("))return t;let e=t.trim(),n=e.indexOf("("),r=e.slice(0,n),o=0,s=-1;for(let i=n;i<e.length;i++){let a=e[i];if(a==="(")o++;else if(a===")"&&(o--,o===0)){s=i;break}}return s===-1||/\s/.test(r)||e.slice(s+1).trim()!==""?[void 0,t]:[r,e.slice(n+1,s)]},x0="\0",xU=(t,e)=>{let n="",r=0,o="";for(let s of t){if(r===0&&s!=="("){n+=s;continue}o+=s,s==="("?r++:s===")"&&(r--,r===0&&(n+=x0+e.length+x0,e.push(o),o=""))}return n+o},kU=(t,e)=>t.indexOf(x0)===-1?t:t.replace(/\u0000(\d+)\u0000/g,(n,r)=>e[Number(r)]),EU=/^(calc|min|max|clamp)\((.*)\)$/,vU=(t,e)=>{let n=EU.exec(t);return n?`${n[1]}(${fu(n[2],e)})`:t.indexOf("(")!==-1?t:$s(t,e)},MR=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),iu=(t,e)=>{let{base:n,type:r,unit:o}=e,s=MR.has(o)?"rem":o,i=(ts(s)?1:n)+s;if(t===0)return i;let c="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-")),l=`${c}-ratio`;if(t>0){let f=on[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=on[t+1],u=Math.abs(t),d=Math.pow(NR,2*u),p=on[u];return p?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${p}) / ${d.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},Og=(t,e,n,r)=>{let{type:o}=r,i=t===2&&e.length===2?t+1:t,l=`${"--"+(r.varPrefix?r.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${n}) * var(${l+i}))`},au=(t,e)=>{let r=(t*e-t)/1.618,o=t*e-r,s=t+r,i=(o+s)/2;return[o,i,s]},cu=(t,e)=>au(t,e).map(n=>n/t),lu=(t,e)=>{let{key:n,base:r,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[u,d,p]=au(o,s);l>16?f=[u,d,p]:f=[u,p],f.forEach((g,h)=>{let m=~~(g/r*1e3)/1e3,y=i+(h+1),x=a+(h+1)/10,k=Og(h+1,f,i,e),C={key:n+(h+1),variable:y,value:g,scaling:m,scalingVariable:k,index:x};k0(C,e)})},NR=1.618,AU=(t,e,n)=>{if(t>=0)return e*Math.pow(n,t);let r=Math.abs(t),o=e*Math.pow(n,t),s=e*Math.pow(n,r)/Math.pow(NR,2*r);return Math.max(o,s)},we=t=>{let{type:e,base:n,ratio:r,range:o,subSequence:s}=t,i=Math.abs(o[0])+Math.abs(o[1]),c="--"+(t.varPrefix?t.varPrefix+"-":"")+(e&&e.replace(".","-"))+"-";for(let l=0;l<=i;l++){let f=o[1]-l,u=on[f],d=AU(f,n,r),p=~~(d/n*100)/100,g=c+u,h=iu(f,t),m={key:u,variable:g,value:d,base:n,scaling:p,scalingVariable:h,ratio:r,index:f};k0(m,t),s&&lu(m,t)}return t},E0=(t,e=0)=>{let{type:n,base:r,ratio:o,subSequence:s}=t,i=v(e)?e:on[e],a=v(e)?Object.entries(on).find(([,m])=>m===e)?.[0]:e;if(!i)return console.warn(`Position ${e} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...t},l=r*Math.pow(o,a),f=~~(l/r*100)/100,p="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-"))+"-"+i,g=iu(a,t),h={key:i,variable:p,value:l,base:r,scaling:f,scalingVariable:g,ratio:o,index:a};return k0(h,c),s&&lu(h,c),c},Ua=(t,e)=>{if(!t||!v(e)||!e)return;let n=t[e]||t[e.toLowerCase()];if(n!==void 0)return e.charCodeAt(0)===45?`calc(${n} * -1)`:n;if(e.charCodeAt(0)!==45||e.length<2)return;let r=e.slice(1),o=t[r]||t[r.toLowerCase()];if(o!==void 0)return`calc(${o} * -1)`},$s=(t="A",e)=>{let n=P(),{unit:r}=n;if(v(t)&&Ft(t))return`var(${t})`;if(v(t)&&/^(?:env|var|calc|min|max|clamp)\(/.test(t.trim()))return t;if(v(t)){let _=Ua(n.sizes,t);if(_!==void 0)return _}let{sequence:o,unit:s=r.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(ml(t)||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let d=`--${e.varPrefix?e.varPrefix+"-":""}${Wf(e.type.replace(".","-"))}-`,p=t.toUpperCase(),g=p.slice(0,1)==="-"?"-":"",h=g?p.slice(1):p,m="";h.includes("_")&&(m="_"+h.split("_")[1].toLowerCase(),h=h.split("_")[0]);let y=_=>a.test(_)?`var(${d}${_}${m})`:_;if(h.includes("+")){let[_,b]=h.split("+"),w=`${y(_)} + ${y(b)}`;return g?`calc((${w}) * -1)`:`calc(${w})`}else if(h.includes("*")){let[_,b]=h.split("*"),w=`${y(_)} * ${y(b)}`;return g?`calc((${w}) * -1)`:`calc(${w})`}else if(h.includes("-")){let[_,b]=h.split("-"),w=`${y(_)} - ${y(b)}`;return g?`calc((${w}) * -1)`:`calc(${w})`}!o[h]&&h.length===2&&(n.verbose&&console.warn(h,"- value is not found because `subSequence` is set to false"),h=h.slice(0,1));let x=o?o[h]:null,k=!!(i||n.useVariable);if((k?SU(o,h,e,n.sizes):!!x)===!1){if(S0>0)return;if(console.warn("can't find",o,h),tt())throw new Error(`[smbls] Unresolvable design-system token "${t}"`+(e.type?` for sequence "${e.type}"`:"")+" \u2014 not a registered `sizes` name and not a valid spacing/typography/timing sequence letter. The CSS property using it would silently be dropped in production. Register the token in `designSystem/sizes.js` (or the relevant sequence family) or fix the typo.");return}if(k){let _=`var(${d}${h}${m})`;return g?`calc(${_} * -1)`:_}return s==="ms"||s==="s"?g+x.val+s:g+x.scaling+s},fu=(t,e)=>{if(!["+","-","*","/",","].filter(i=>t.includes(i+" ")).length)return t;let r=/(\s+-\s+|\s*[+*/,]\s*)/,o=[];return xU(t,o).split(r).map(i=>{let a=kU(i,o),c=a.trim();return!c||["+","-","*","/",","].includes(c)?a:vU(c,e)}).join("")},Xn=(t,e,n,r)=>{if(typeof t!="string")return P().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!r&&t.includes("(")){if(/^(?:env|var)\(/.test(t.trim()))return{[e]:t};let s=Cr(t);r=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=fu(t,n):t=$s(t,n),{[e]:r?`${r}(${t})`:t}},Rg=(t,e)=>on[t-e],uu=t=>{let{h1Matches:e,sequence:n}=t;return new Array(6).fill(null).map((r,o)=>{let s=Rg(e,o);return n[s]})};M();var v0=(t,e)=>{let n=P(),{cssVars:r}=n;V(t.value)||(r[t.var]=t.value)},du=(t,e,n)=>{let r=P(),{unit:o}=r,s=e.unit||o.default,{base:i,ratio:a,type:c}=e,f="--"+(e.varPrefix?e.varPrefix+"-":"")+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let u=`${f}-ratio`;t[u]=a;let[d,p,g]=cu(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${p/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${g/a})`},$R=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Tr=(t,e={})=>{let n=P(),{unit:r,timing:o,cssVars:s}=n,i=t.unit||r.default,a=$R.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||du(s,t,e);for(let u in l){let d=l[u],p=(t.type===o.type?l[u].val:f[u])+a;if(!c){s[d.variable+"_default"]=p,s[d.variable]=d.scalingVariable;continue}e.useDefault===!1?s[d.variable]=p:(s[d.variable+"_default"]=p,s[d.variable]=`var(${d.variable+"_default"})`)}},wo=(t,e,n={})=>{let r=P(),{unit:o,media:s,cssVars:i}=r,a=e.slice(1),c=t[e],l=c.unit||t.unit||o.default,f=$R.has(l)?"rem":l,{mediaRegenerate:u}=t,{sequence:d,scales:p}=c,g=s[a];if(!g&&r.verbose&&console.warn("Can't find media query ",g),!u){let h=i[`@media ${g}`];h||(h=i[`@media ${g}`]={}),du(h,c,n);let m=t.unit||o.default;if(f!==m&&d)for(let y in d){let x=d[y],k=p[y]+f;h[x.variable+"_default"]=k,h[x.variable]=k}return}for(let h in d){let m=d[h],y=(ts(f)?p[h]:d[h].val)+f;!g&&r.verbose&&console.warn("Can't find query ",g);let x=i[`@media ${g}`];x||(x=i[`@media ${g}`]={}),x[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};M();var BR=gr(),pu=t=>{let e=P(),n="";for(let r in t)e.__svgCache[r]||(e.__svgCache[r]=!0,n+=t[r]);return n},CU=t=>{let e=t&&(t.default||t);if(!v(e))return BR&&console.warn("parseRootAttributes:",e,"is not a string"),{};let n=e.match(/<svg\s+(.*?)>/);if(!n||!n[1])return{};let o=n[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return o?o.reduce((s,i)=>{let[a,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{}):{}},TU=(t,e)=>{let n=[];if(t.replace(/id="([^"]*)"/g,(o,s)=>(n.push(s),o)),!n.length)return t;let r=t;for(let o of n){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${e}-${o}`;r=r.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return r},FR=new Set,hu=(t,e)=>{let n=e&&e.default?e.default:e;if(!v(n))return BR&&!FR.has(t)&&(FR.add(t),console.warn("convertSvgToSymbol:",t,"is not a string")),"";e=n;let r=e.match(/^<symbol\b[^>]*\bid="([^"]*)"/);if(r){let u=r[1];return u===t?e:e.replace(`id="${u}"`,`id="${t}"`)}let o=CU(e),{width:s,height:i}=o,a=o.viewBox||`0 0 ${s||24} ${i||24}`,f=TU(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${a}"`);return f=f.replace(/^<symbol\b[^>]*>/,u=>u.replace(/\s(width|height)="[^"]*"/g,"")),f=f.replace("</svg","</symbol"),f=PU(f),f},OU="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",RU=new RegExp(`<(${OU})\\b([^>]*?)\\s*/>`,"g"),PU=t=>t.replace(RU,"<$1$2></$1>");var qa={};F(qa,{STANDARD_SCHEME_QUERIES:()=>Lg,__resetSkinWarnings:()=>j0,appendSVGSprite:()=>Ru,appendSvgIconsSprite:()=>qs,applyDocument:()=>Ou,applyHeadings:()=>$g,applyReset:()=>Pu,applySkins:()=>Lu,applySpacingSequence:()=>yu,applyTimingSequence:()=>Tu,applyTypographySequence:()=>vu,atSchemes:()=>ko,buildSkinVarStyles:()=>Gs,checkIfBoxSize:()=>mu,colorPairSchemes:()=>gu,forcedScheme:()=>zs,getColor:()=>dt,getFontFamily:()=>Eu,getFontSizeByKey:()=>Au,getMediaBorder:()=>wu,getMediaColor:()=>Kt,getMediaTheme:()=>an,getSafeInk:()=>Mg,getSafeInkInfo:()=>R0,getShadow:()=>_u,getShapeByKey:()=>Cu,getSpacingBasedOnRatio:()=>Be,getSpacingByKey:()=>Vt,getTheme:()=>I0,getTimingByKey:()=>Se,getTimingFunction:()=>je,inForcedColors:()=>Fs,isForcedColorsQuery:()=>Bs,isIntendedSystemColorWord:()=>js,isPlainColor:()=>xo,literalPairCompound:()=>Hs,literalSchemeMap:()=>Rr,quietColorProbe:()=>Us,resolveBorderValue:()=>ce,resolveColorRgb:()=>Vs,resolveColorsInGradient:()=>vo,resolveShadowNonColorWord:()=>za,resolveShadowValue:()=>Ws,runThroughMedia:()=>Ng,schemeGuardSelector:()=>Ig,schemeMediaQuery:()=>Dg,setAdaptiveSchemeVar:()=>Eo,setColor:()=>Or,setFont:()=>ku,setFontFamily:()=>Wa,setGradient:()=>Va,setMediaTheme:()=>Ha,setSVG:()=>Ka,setShadow:()=>Ao,setSvgIcon:()=>Ks,setTheme:()=>Su,splitSpacedValue:()=>bu});M();var Lg={light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"},Dg=(t,e)=>{let n=e.media&&e.media[t]||Lg[t];return n?"@media "+(n==="print"?`${n}`:`screen and ${n}`):null},Ig=t=>{let e=t.scopeSelector||":root";return`${e===":root"?":root:not([data-theme])":`:root:not([data-theme]) ${e}:not([data-theme])`} &`},sn=new Set,zR=new Set(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"]),HR=["AccentColor","AccentColorText","ActiveText","ButtonBorder","ButtonFace","ButtonText","Canvas","CanvasText","Field","FieldText","GrayText","Highlight","HighlightText","LinkText","Mark","MarkText","SelectedItem","SelectedItemText","VisitedText","ActiveBorder","ActiveCaption","AppWorkspace","Background","ButtonHighlight","ButtonShadow","CaptionText","InactiveBorder","InactiveCaption","InactiveCaptionText","InfoBackground","InfoText","Menu","MenuText","Scrollbar","ThreeDDarkShadow","ThreeDFace","ThreeDHighlight","ThreeDLightShadow","ThreeDShadow","Window","WindowFrame","WindowText"],WR=new Set(HR.map(t=>t.toLowerCase())),LU=new Set(HR),A0=0,Fs=t=>{A0++;try{return t()}finally{A0--}},DU=/(^|[^\w-])(not\s+)?\(\s*forced-colors\s*(?::\s*(active|none)\s*)?\)/i,Bs=t=>{if(!v(t))return!1;let e=t.match(DU);return!e||e[2]||e[3]&&e[3].toLowerCase()==="none"?!1:!/^\s*(?:@media\s+)?not\b/i.test(t)},KR=t=>A0>0||LU.has(t),js=t=>v(t)&&WR.has(t.toLowerCase())&&KR(t),IU=/^(?:#[0-9a-f]{3,8}$|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix)\()/i,MU=/gradient\(|url\(|image-set\(|var\(/i,NU=new Set(["transparent","currentColor","currentcolor"]),xo=t=>{if(!v(t))return!1;let e=t.trim();return MU.test(e)?!1:IU.test(e)?!0:zR.has(e)||NU.has(e)},Pg=new Set,jR=t=>{if(!t)return!1;let{color:e,gradient:n}=t;return!!(E(e)&&Object.keys(e).length||E(n)&&Object.keys(n).length)},UR=new Set,C0=0,Us=t=>{C0++;try{return t()}finally{C0--}},$U=(t,e)=>{if(!v(t)||t.indexOf(" ")===-1)return null;let n=t.replace(/\s+/g,""),r=te(n);if(!r||r.passthrough||r.cssVar)return null;let{color:o,gradient:s}=e;return!o[r.name]&&!s[r.name]?null:n},T0=(t,e,n)=>{let r=$U(t,n);if(r){if(!UR.has(t)){UR.add(t);let a=n&&n.name?` (design system \`${n.name}\`)`:"";console.warn(`[scratch] color token \`${t}\` has a space before its alpha/tone modifier${a} \u2014 did you mean \`${r}\`? The space form never resolves, so the atomic class it mints carries no CSS value and paints invisibly. Dropped rather than shipped invisible.`)}return}let o=te(t);if(o&&o.name&&!o.passthrough&&!o.cssVar&&(o.alpha!==void 0||o.tone!==void 0)&&jR(n)&&!n.color[o.name]&&!n.gradient[o.name]){if(!C0&&!Pg.has(t)){Pg.add(t);let a=n&&n.name?` (design system \`${n.name}\`)`:"";console.warn(`[scratch] color token \`${t}\` does not resolve${a} \u2014 \`${o.name}\` is not in the palette. Dropped rather than emitted as a raw value, which is invalid CSS the browser discards silently. Define it in designSystem/color.js or use a palette token.`)}return}let s=v(e)?e.toLowerCase():"",i=WR.has(s);if(!zR.has(s)&&!i||i&&KR(e)||!jR(n))return t;if(!Pg.has(s)){Pg.add(s);let a=n&&n.name?` (design system \`${n.name}\`)`:"";console.warn(i?`[scratch] color \`${t}\` is a CSS system colour that is not in the palette${a}. Dropped rather than emitted as a raw browser colour: a system colour paints the value the user's desktop chose (\`highlight\` is the selection blue), so it ignores the design system and is not even stable across two machines. Define it in designSystem/color.js or use a palette token.`:`[scratch] color \`${t}\` is a CSS named colour that is not in the palette${a}. Dropped rather than emitted as a raw browser colour, which renders theme-blind and can be unreadable ("looks designed", so it ships unnoticed). Define it in designSystem/color.js or use a palette token.`)}},qR=(t,e,n)=>{let r=e!==void 0?e:1;if(!n)return`rgb(from ${t} r g b / ${r})`;if(n.charCodeAt(0)===43||n.charCodeAt(0)===45){let s=parseFloat(n),i=s<0?"-":"+",a=Math.abs(s);return`rgb(from ${t} calc(r ${i} ${a}) calc(g ${i} ${a}) calc(b ${i} ${a}) / ${r})`}return`hsl(from ${t} h s ${n}% / ${r})`},dt=(t,e,n)=>{let r=n||P();if(!v(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(Ft(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(I(t))[o,s,i]=t;else{let u=te(t);if(!u){let{color:d,gradient:p}=r,g=p[t]||d[t];return g?(e&&g[e]&&(g=g[e]),r.useVariable?`var(${g.var})`:g.value):T0(t,t,r)}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}=r,l=a[o]||c[o];if(!l)return T0(t,o,r);if(e)if(l[e]!==void 0)l=l[e];else if(I(l)){let u=e.charCodeAt(0)===64?e.slice(1):e;u==="dark"?l=l[1]!==void 0?l[1]:l[0]:(u!=="light"&&r.verbose&&console.warn(t," - array-form color tokens only support light/dark; falling back to the light slot for scheme",e),l=l[0])}else r.verbose&&console.warn(t," - does not have ",e);if(v(l)){if(sn.has(o))return l;sn.add(o);try{return dt(l,null,n)}finally{sn.delete(o)}}let f=l.rgb;if(!f){let u=r.useVariable?`var(${l.var})`:l.value;return(s||i)&&u?qR(u,s,i):u}return i&&!l[i]&&(f=Rn(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, ${l.alpha!==void 0?l.alpha:1})`:r.useVariable?`var(${l.var})`:l.value!==void 0?l.value:`rgb(${f})`},VR=t=>{let e=en(t);return!e||e.length<3||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===0&&t.toLowerCase()!=="transparent"?null:{rgb:[e[0],e[1],e[2]],alpha:e[3]!==void 0?e[3]:1}},FU=(t,e)=>{if(!e)return t;let n=t.rgb;if(e.tone){let o=Rn(n,e.tone);n=v(o)?o.split(",").map(s=>parseFloat(s.trim())):o}let r=e.alpha!==void 0?parseFloat(e.alpha):t.alpha;return{rgb:n,alpha:r}},Vs=(t,e,n)=>{let r=e||P();if(!v(t))return null;let o=te(t);if(o){if(o.passthrough){let d=en(o.passthrough);return d&&d.length>=3?{rgb:[d[0],d[1],d[2]],alpha:d[3]!==void 0?d[3]:1}:null}if(o.cssVar)return null}let s=o?o.name:t,{color:i,gradient:a}=r,c=i[s]||a[s];if(!c)return VR(t);if(v(c)){let d;if(sn.has(s))d=VR(c);else{sn.add(s);try{d=Vs(c,r,n)}finally{sn.delete(s)}}return d?FU(d,o):null}if(c.rgb===void 0&&E(c)){let d=`@${n||"light"}`;c=c[d]!==void 0?c[d]:c["@light"]}if(!c||c.rgb===void 0)return null;let l=c.rgb;o&&o.tone&&(l=Rn(l,o.tone));let f=v(l)?l.split(",").map(d=>parseFloat(d.trim())):l,u=o&&o.alpha!==void 0?parseFloat(o.alpha):c.alpha!==void 0?c.alpha:1;return{rgb:f,alpha:u}},GR=t=>E(t)&&t.value!==void 0&&(t.rgb!==void 0||t.var!==void 0),ko=t=>{let e=[];for(let n in t)n.charCodeAt(0)===64&&e.push(n.slice(1));return e},O0=t=>{if(!E(t)||t.value!==void 0)return null;for(let n in t)if(n!=="var"&&(n.charCodeAt(0)!==64||!GR(t[n])))return null;let e=ko(t);return e.length?e:null},BU=t=>v(t&&t.var)&&O0(t)!==null,jU=(t,e,n,r,o)=>{let s=O0(e);if(!s)return;if(v(e.var)){let c=`var(${e.var})`;return n||r?qR(c,n,r):c}if(s.length!==2||!s.includes("light")||!s.includes("dark"))return;let i=dt(t,"@light",o),a=dt(t,"@dark",o);if(!(!xo(i)||!xo(a)))return i===a?i:`light-dark(${i}, ${a})`},gu=(t,e)=>{if(!t)return null;let n=e||P(),r=te(t),o=r?r.name:t,s=o&&n.color&&n.color[o];if(I(s))return["light","dark"];if(!E(s)||s.value!==void 0)return null;let i=ko(s);return i.length?i:null},Rr=(t,e,n)=>{let r={},o=Ig(e);for(let s of t){let i=n(s);if(i!==void 0&&(r[`[data-theme="${s}"] &`]=i,s==="light"||s==="dark")){let a=Dg(s,e);a&&(r[a]={[o]:i})}}return r},zs=(t,e)=>t||(e.globalTheme==="auto"?null:e.globalTheme),Hs=(t,e,n,{commas:r,resolve:o,resolveScheme:s})=>{let i=Ia(t,r),a=null;for(let f of i)for(let u of f){let d=gu(u,n);if(d)for(let p of d)(a||(a=[])).includes(p)||a.push(p)}if(!a)return;let c=f=>Ma(i.map(u=>u.map(d=>{if(!gu(d,n))return d;let p=f(d);return v(p)?p:d}))),l=zs(e,n);return l?o(c(f=>Kt(f,l,n)),l):Rr(a,n,f=>s(f,c))},Kt=(t,e,n)=>{let r=n||P();if(e=zs(e,r),!v(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(Ft(t))return`var(${t})`;let o,s,i;if(I(t))o=t[0];else{let u=te(t);if(u){if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;o=u.name,s=u.alpha,i=u.tone}else o=t}let{color:a,gradient:c}=r,l=a[o]||c[o],f=E(l);if(f&&l.value)return dt(t,`@${e}`,n);if(f){if(r.useVariable&&l.var)return s||i?dt(t,null,n):`var(${l.var})`;if(e){if(!r.useVariable&&a[o]===l){let u=jU(t,l,s,i,n);if(u!==void 0)return u}return dt(t,`@${e}`,n)}else return Rr(ko(l),r,u=>dt(t,"@"+u,n))}else return T0(t,o,r)},Eo=(t,e,n,r)=>{let s=`--${r.varPrefix?r.varPrefix+"-":""}${e}-${n}`,i,a={};for(let c in t){if(c.charCodeAt(0)!==64)continue;let l=c.slice(1),f=t[c],u=f&&(f.value||f);!u||typeof u!="string"||(a[l]=u,(l==="light"||i===void 0)&&(i=u))}if(i!==void 0){r.cssVars[s]=i,r.cssMediaVars||(r.cssMediaVars={});for(let c in a){let l=`[data-theme="${c}"]`;if(r.cssMediaVars[l]||(r.cssMediaVars[l]={}),r.cssMediaVars[l][s]=a[c],c==="light"||c==="dark"){let f=`@media (prefers-color-scheme: ${c})`;r.cssMediaVars[f]||(r.cssMediaVars[f]={}),r.cssMediaVars[f][s]=a[c]}}return t.var=s,s}},Or=(t,e,n)=>{let r=P();if(GR(t))return r.useVariable&&t.var&&(r.cssVars[t.var]=t.value),t;if(!r.useVariable&&BU(t))return t;if(v(t)&&Ft(t)){let h=t.slice(2),m=h.trim().indexOf(" ")!==-1;if(t=m?h:dt(h),m||!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let y=h.trim().split(/\s+/),x=r.color[y[0]];if(x&&!x.value&&!x.rgb&&(v(x)||I(x)||E(x))&&!sn.has(y[0])){sn.add(y[0]);try{r.color[y[0]]=Or(x,y[0])}finally{sn.delete(y[0])}x=r.color[y[0]]}if(x&&x.value){let k=x.rgb,C=y[1]!==void 0?y[1]:"1",_=y[2];_&&(k=Rn(k,_)),t=`rgba(${k}, ${C})`}else{let k=y[2],C=y[1]!==void 0?y[1]:"1";if(k)try{let _=en(y[0]);_&&_.length>=3?t=`rgba(${Rn(_.slice(0,3).join(", "),k)}, ${C})`:t=y[0]}catch{t=y[0]}else t=y[0]}}}if(I(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),E(t)){let h={};for(let m in t)m!=="var"&&(h[m]=Or(t[m],e,m.slice(0,1)==="@"?m.slice(1):m));return r.useVariable&&Eo(h,"color",e,r),h}let s=`--${r.varPrefix?r.varPrefix+"-":""}color-${e}`+(n?`-${n}`:""),i=t.value||t;if(v(i)&&!i.includes("(")&&!i.startsWith("#")){let h=te(i);if(h&&h.name&&!h.passthrough&&!h.cssVar){let m=r.color[h.name];if(m&&!m.value&&!m.rgb&&(v(m)||I(m)||E(m))&&!sn.has(h.name)){sn.add(h.name);try{r.color[h.name]=Or(m,h.name)}finally{sn.delete(h.name)}}let y=r.color[h.name],x=O0(y);if(x){if(h.alpha===void 0&&h.tone===void 0)return y;let k={};for(let C of x){let _=y["@"+C],b=_.rgb;h.tone&&(b=Rn(b,h.tone));let w=h.alpha!==void 0?parseFloat(h.alpha):_.alpha!==void 0?_.alpha:1;k["@"+C]=`rgba(${b}, ${w})`}return Or(k,e,n)}if(y&&y.rgb){let k=y.rgb;h.tone&&(k=Rn(k,h.tone));let C=h.alpha!==void 0?parseFloat(h.alpha):y.alpha!==void 0?y.alpha:1;i=`rgba(${k}, ${C})`}}}let a=en(i),[c,l,f,u=1]=a,d=parseFloat(u.toFixed(2)),p=`${c}, ${l}, ${f}`,g=`rgba(${p}, ${d})`;return r.useVariable&&(r.cssVars[s]=g),{var:s,rgb:p,alpha:d,value:g}},UU=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),vo=(t,e)=>{let n=t.indexOf("(");if(n===-1)return t;let r=t.slice(0,n+1),o=t.slice(n+1,t.lastIndexOf(")")),s=")",i=On(o),a=!1,c=i.map(l=>(l=l.trim(),l.split(/\s+/).map(u=>{if(!u||/^\d/.test(u)||u==="0"||UU.has(u)||u==="transparent"||xr.test(u))return u;let d=dt(u);return nn(d)?(a=!0,d):u}).join(" ")));return a?r+c.join(", ")+s:t},Va=(t,e,n)=>{let r=P();if(E(t)&&t.value!==void 0&&t.var!==void 0)return r.useVariable&&(r.cssVars[t.var]=t.value),t;if(v(t)&&Ft(t)&&(t=dt(t.slice(2))),I(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),E(t)){let a={};for(let c in t)c!=="var"&&(a[c]=Va(t[c],e,c.slice(0,1)==="@"?c.slice(1):c));return r.useVariable&&Eo(a,"gradient",e,r),a}let s=`--${r.varPrefix?r.varPrefix+"-":""}gradient-${e}`+(n?`-${n}`:""),i=vo(t.value||t);return r.useVariable&&(r.cssVars[s]=i),{var:s,value:i}};M();var YR=new Set,qt=(t,e)=>{if(YR.has(t)||(YR.add(t),typeof console>"u"||!console.error))return;let n=e&&e.__ref&&e.__ref.path,r=n&&n.length?` (at <${n.join(".")}>)`:"";console.error(`[smbls] "${t}"${r} is not in this build: symbols.json build.treeShakeFeatures left it out because neither the project source nor its build settings use it. Add "${t}" to build.treeShakeFeatures.keep.`)};var Mg=(t,e,n={},r)=>{if(globalThis.__SMBLS_BUILD_DROP_F_safeInk__)return qt("safeInk");let o=r||P(),{min:s=4.5,large:i=!1,scheme:a,meta:c=!1,maxIterations:l=15}=n,f=i?3:s,u=a||(o.globalTheme&&o.globalTheme!=="auto"?o.globalTheme:"light"),d=v(e)?e:String(e),p=te(t),g=p&&!p.passthrough&&!p.cssVar?p.name:null,h=(rt,gt)=>c?{value:rt,...gt}:rt;if(g){let rt=o.color[`${g}Safe`];if(rt){let gt=`${d}@${u}`,q=rt[gt]!==void 0?rt[gt]:rt[d];if(q!==void 0){let W=q&&q.rgb!==void 0?o.useVariable&&q.var?`var(${q.var})`:q.value:dt(q,null,o);return h(W,{ratio:null,deviation:0,derived:!1,overridden:!0})}}}let m=dt(t,u?`@${u}`:null,o),y=Vs(t,o,u),x=Vs(e,o,u);if(!y||!x)return o.verbose&&console.warn("getSafeInk: could not resolve",t,e,"\u2014 returning hue unchanged"),h(m,{ratio:null,deviation:0,derived:!1,overridden:!1,unresolved:!0});let k=Is(x.rgb,x.alpha),C=Is(y.rgb,y.alpha,k),_=Na(C,k);if(_>=f-.02)return h(m,{ratio:_,deviation:0,derived:!1,overridden:!1});let[b,w,S]=Xf(y.rgb),[,A,T]=Zf([b,w,S]),O=Ps(k)>.5,B=O?b:1-b,$=rt=>{let gt=O?b-rt:b+rt,q=Math.max(0,Math.min(1,gt));return{rgb:Jf(q,A,T),L:q}},N=rt=>{let{rgb:gt}=$(rt),q=Is(gt.map(W=>Math.round(W)),y.alpha,k);return Na(q,k)},G=0,Y=B,nt=N(Y)>=f;if(nt)for(let rt=0;rt<l;rt++){let gt=(G+Y)/2;N(gt)>=f?Y=gt:G=gt}else G=Y;let{rgb:ot,L:st}=$(Y),J=ot.map(rt=>Math.round(rt)),Z=N(Y),Q=y.alpha<1?`rgba(${J.join(", ")}, ${y.alpha})`:`rgb(${J.join(", ")})`,it=Math.abs(st-b)*100;return h(Q,{rgb:J,ratio:Z,startRatio:_,deviation:it,derived:!0,overridden:!1,reachable:nt})},R0=(t,e,n={},r)=>Mg(t,e,{...n,meta:!0},r);M();M();var VU=t=>{let n=P().spacing||{},r=parseFloat(t.spacingRatio),o={...n,ratio:Number.isFinite(r)?r:n.ratio,sequence:{},scales:{}};return we(o),o},zU=t=>{for(let e in t){let n=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f}=t;Lt(n,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),we(n),wo(t,e)}},mu=t=>{let e=t.toLowerCase(),n=e.includes("width")||e.includes("height"),r=e.includes("border")||e.includes("outline");return n&&!r},yu=()=>{let t=P(),{spacing:e}=t;we(e),Tr(e),zU(e)},HU=t=>{let e=P(),{spacing:n}=e;return!t||!t.sequence?n:Object.keys(t.sequence).length>0?t:we(t)},Vt=(t,e="padding",n,r)=>{let o=HU(n);if(v(t)){if(!r&&/^(?:env|var)\(/.test(t.trim()))return{[e]:t};if(!r&&t.includes("(")){let i=Cr(t);r=i[0],t=i[1]}}let s=r?[t]:v(t)&&t.includes("(")?ut(t):Rs(t);if(I(s)){if(s.length>1){let i="";e==="borderWidth"&&(e="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},c=(l,f)=>Xn(s[f],e+l+i,o,r);return a[s.length].map((l,f)=>c(l,f))}return Xn(t,e,o,r)}},Be=(t,e,n,r)=>{let o=P(),{spacing:s}=o,i=n||t[e];if(!r&&v(i)&&/^(?:env|var)\(/.test(i.trim()))return{[e]:i};if(!r&&v(i)&&i.includes("(")){let a=Cr(i);r=a[0],i=a[1]}if(t.spacingRatio){let a=VU(t);return Vt(i,e,a,r)}return Vt(i,e,s,r)},bu=t=>{let e=n=>{let r=["+","-","*","/"].includes(n),o=Yi.some(i=>t.includes(i));return r||o?n:n.length<3&&/[A-Z]/.test(n)?n+"_default":n};return t.split(",").map(n=>n.trim()).map(e).join(",").split(" ").map(e).join(" ")};M();var WU={commas:!0},Ws=(t,e,n)=>v(t)?kr(t,KU,WU,e,n):t,KU=(t,e,n)=>{let r=Us(()=>dt(t,e));return nn(r)?r:za(t,n)},za=(t,e)=>{if(/^\d/.test(t)||t.includes("px")||t.slice(-2)==="em"||t==="inset"||t==="none"||js(t)||Ls.has(t.toLowerCase()))return t;e&&e(t);let n=Ar(()=>Vt(t,"shadow"));return n&&n.shadow?n.shadow:t},Ao=(t,e,n,r)=>{let o=P();if(E(t)&&t.value!==void 0&&t.var!==void 0)return o.useVariable&&(o.cssVars[t.var]=t.value),t;if(I(t)){let a={"@light":Ao(t[0],e,"light"),"@dark":Ao(t[1],e,"dark")};return o.useVariable&&Eo(a,"shadow",e,o),a}if(E(t)){let a={};for(let c in t)a[c]=Ao(t[c],e,c.startsWith("@")?c.slice(1):c);return o.useVariable&&Eo(a,"shadow",e,o),a}v(t)&&(t=Ws(t));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${e}`+(n?`-${n}`:"");return o.useVariable&&(o.cssVars[i]=t),{var:i,value:t}},_u=(t,e)=>{let n=P();if(e=zs(e,n),!v(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(Ft(t))return`var(${t})`;let[r]=I(t)?t:t.split(" "),s=n.shadow[r],i=E(s);if(!s)return n.verbose&&console.warn("Can't find color ",r),t;if(i&&!s.value&&n.useVariable&&s.var)return`var(${s.var})`;if(e){let a=s["@"+e]||s[e];if(a)return a.value!==void 0?a.value:a;n.verbose&&console.warn(t," - does not have ",e)}return i&&s.value?s.value:i?Rr(ko(s),n,a=>{let c=s["@"+a];return c&&(c.value!==void 0?c.value:c)}):(n.verbose&&console.warn("Can't find color",t),t)};M();var qU=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),GU={commas:!1,keywords:qU},ce=(t,e,n)=>{if(t==null)return;let r=t+"",o=r.trim();return o==="none"||o==="0"||o==="initial"||o==="inherit"||o==="unset"?r:kr(r,YU,GU,e,n)},YU=(t,e,n)=>{if(/^\d/.test(t))return t;let r=Us(()=>dt(t,e));if(nn(r))return r;if(js(t)||Ls.has(t.toLowerCase()))return t;n&&n(t);let o=Ar(()=>Vt(t,"border"));return o&&o.border?o.border:t},wu=(t,e,n)=>{let r=n||P();if(r.useVariable||!v(t))return ce(t);let o=Hs(t,e,r,{commas:!1,resolve:s=>ce(s),resolveScheme:s=>ce(t,"@"+s)});return o!==void 0?o:ce(t)};M();var XU=new Set(["black","white","red","green","blue","yellow","orange","purple","pink","brown","gray","grey","cyan","magenta","lime","olive","navy","teal","aqua","maroon","silver","fuchsia","transparent","currentColor","currentcolor","inherit","initial","unset","none","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),XR=["color","Color","background","Background","fill","Fill","stroke","Stroke"],tP=t=>{for(let e=0;e<XR.length;e++)if(t.includes(XR[e]))return!0;return!1},ZU={boxShadow:Ws,textShadow:Ws,border:ce,borderTop:ce,borderRight:ce,borderBottom:ce,borderLeft:ce,outline:ce,columnRule:ce},JU=t=>{if(!t)return!1;let e=te(t);return!e||!e.name||e.passthrough||e.cssVar?!1:e.alpha!==void 0||e.tone!==void 0},ZR=new Set,QU=(t,e,n,r,o,s)=>{if(!tt())return;let i=`${t}::${e}::${n||""}::${r}`;ZR.has(i)||(ZR.add(i),console.warn(`[smbls/scratch] theme param "${e}" on "${t}"`+(n?` (${n})`:"")+` did not fully resolve: "${r}" -> "${o}" still contains the unresolved token "${s}". This is not valid CSS \u2014 the browser will drop the whole declaration. Register "${s}" as a design-system color token or fix the typo.`))},D0=(t,e,n,r)=>{let o=ZU[e];if(!o)return dt(n,r);let s=null,i=o(n,r,a=>{!s&&JU(a)&&(s=a)});return s&&QU(t,e,r,n,i,s),i},I0=(t,e)=>an(t,e),tV=t=>E(t)&&V(t.value),eV=t=>{for(let e in t){let n=t[e];if(v(n)&&n.startsWith("var(--"))return!0}return!1},Su=(t,e)=>{let n=P();return tV(t)?!n.useVariable&&eV(t)?t:Ha(t.value,e):Ha(t,e)},eP=(t,e)=>{let n=new Set;for(let r of e){let o=r.slice(0,1);if(!(o==="@"||o==="."||o===":")&&tP(r))for(let s in t){if(n.has(s))continue;let i=t[s]?.[r];if(i===void 0)continue;let a=dt(i,`@${s}`);a!==void 0&&v(a)&&/^[a-z][a-zA-Z]+$/.test(a)&&!XU.has(a)&&n.add(s)}}return n},nP=t=>t.startsWith("[data-theme=")||t.startsWith("@media"),xu=(t,e)=>{for(let n in e){let r=e[n];E(r)?xu(t[n]||(t[n]={}),r):t[n]=r}return t},JR=(t,e,n,r,o)=>xu(t,Rr(r,o,s=>({[e]:n[s]}))),rP=(t,e,n,r)=>{let o={},s=Object.keys(e).filter(c=>e[c]!==n);if(!s.length)return n===void 0?void 0:(o[t]=n,o);let i=e.light!==void 0?e.light:n,a=e.dark!==void 0?e.dark:n;if(tP(t)&&xo(i)&&xo(a)){o[t]=i===a?i:`light-dark(${i}, ${a})`;let c=Object.keys(e).filter(l=>l!=="light"&&l!=="dark");JR(o,t,e,c,r)}else n!==void 0&&(o[t]=n),JR(o,t,e,s,r);return o},nV=new Set(["backdropFilter","WebkitBackdropFilter"]),oP=new WeakSet,sP=(t,e,n,r)=>{let o=n.globalTheme!==void 0?n.globalTheme:"auto",s=o&&o!=="auto"?String(o).replace(/^'|'$/g,""):null,i=new Set(r?Object.keys(r):[]);for(let l in t)if(t[l])for(let f of Object.keys(t[l]))i.add(f);let a=eP(t,i),c={};for(let l of i){let f=l.slice(0,1);if(f==="@")continue;if(f==="."||f===":"){let m={};for(let k in t)V(t[k]?.[l])&&(m[k]=t[k][l]);let y=r&&V(r[l])?r[l]:void 0;if(!Object.keys(m).length&&!y)continue;let x=f==="."?l.slice(1):l.replace(/^:+/,"");c[l]=sP(m,`${e}-${x}`,n,y);continue}let u=r&&!V(r[l])?r[l]:void 0,d=new Set(Object.keys(t));u!==void 0&&(d.add("light"),d.add("dark"),s&&d.add(s));let p={},g;for(let m of d){if(a.has(m))continue;let y=t[m]?.[l];if((y===void 0||V(y))&&(y=u),y===void 0)continue;let x=D0(e,l,y,`@${m}`);x!==void 0&&(p[m]=x,(s&&m===s||!s&&(m==="light"||g===void 0))&&(g=x))}let h=rP(l,p,g,n);h&&(xu(c,h),c[`.${l}`]=h)}return(c.background||c.color||c.backgroundColor)&&(c[".inversed"]={color:c.background||c.backgroundColor,background:c.color}),c},P0=(t,e,n,r)=>{let{cssVars:o}=n;n.cssMediaVars||(n.cssMediaVars={});let s=n.cssMediaVars,i=n.globalTheme!==void 0?n.globalTheme:"auto",a=i&&i!=="auto"?String(i).replace(/^'|'$/g,""):null,c={},l=new Set(r?Object.keys(r):[]);for(let u in t)if(t[u])for(let d of Object.keys(t[u]))l.add(d);let f=eP(t,l);for(let u of l){let d=u.slice(0,1),p=V(r?.[u])||Object.values(t).some(g=>V(g?.[u]));if(d==="."&&p){let g=u.slice(1),h={};for(let y in t)V(t[y]?.[u])&&(h[y]=t[y][u]);let m=V(r?.[u])?r[u]:void 0;c[u]=P0(h,`${e}-${g}`,n,m)}else if(d===":"&&p){let g=u.replace(/^:+/,""),h={};for(let y in t)V(t[y]?.[u])&&(h[y]=t[y][u]);let m=V(r?.[u])?r[u]:void 0;c[u]=P0(h,`${e}-${g}`,n,m)}else if(d!=="@"&&d!=="."&&d!==":"){let h=`--${n.varPrefix?n.varPrefix+"-":""}theme-${e}-${u}`,m=r&&!V(r[u])?r[u]:void 0,y=new Set(Object.keys(t));m!==void 0&&(y.add("light"),y.add("dark"),a&&y.add(a));let x,k=!1,C={};for(let _ of y){if(f.has(_))continue;let b=t[_]?.[u];if((b===void 0||V(b))&&(b=m),b===void 0)continue;let w=D0(e,u,b,`@${_}`);if(w===void 0)continue;k=!0,C[_]=w,(a&&_===a||!a&&(_==="light"||x===void 0))&&(x=w);let S=`[data-theme="${_}"]`;if(s[S]||(s[S]={}),s[S][h]=w,_==="dark"||_==="light"){let A=`@media (prefers-color-scheme: ${_})`;s[A]||(s[A]={}),s[A][h]=w}}if(x!==void 0&&(o[h]=x),!k)continue;if(nV.has(u)){let _=rP(u,C,x,n);_&&(xu(c,_),c[`.${u}`]=_);continue}c[u]=`var(${h})`,c[`.${u}`]={[u]:c[u]}}}(c.background||c.color||c.backgroundColor)&&(c[".inversed"]={color:c.background||c.backgroundColor,background:c.color});for(let u in c)nP(u)&&V(c[u])&&oP.add(c[u]);return c},Ha=(t,e,n,r)=>{let o=P(),{cssVars:s}=o,i={value:t},a=!n&&!r,c,l;if(V(t)){if(a&&o.useVariable){let f={},u={};for(let d in t)d.startsWith("@")?V(t[d])&&(f[d.slice(1)]=t[d]):u[d]=t[d];(Object.keys(f).length||Object.keys(u).length)&&(l=P0(f,e,o,u),Object.assign(i,l))}else if(a){let f={},u={};for(let d in t)d.startsWith("@")?V(t[d])&&(f[d.slice(1)]=t[d]):u[d]=t[d];c=sP(f,e,o,u),Object.assign(i,c)}for(let f in t){let u=f.slice(0,1),d=t[f];if(u==="@"||u===":"||u==="."){let p=u==="@"&&f;i[f]=Ha(d,e,f,r||p)}else if(!a){let p=D0(e,f,d,r),g=[...new Set([r,n].filter(x=>x).map(x=>x.slice(1)))],h=g.length?"-"+g.join("-"):"",y=`--${o.varPrefix?o.varPrefix+"-":""}theme-${e}${h}-${f}`;o.useVariable?(o.useThemeSuffixedVars&&(s[y]=p),i[f]=`var(${y})`):i[f]=p,i[`.${f}`]={[f]:i[f]}}}if(c)for(let f in c){let u=f.slice(0,1);(u==="."||u===":")&&V(t[f])&&(i[f]=c[f])}if(l)for(let f in l){let u=f.slice(0,1);(u==="."||u===":")&&V(t[f])&&(i[f]=l[f])}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(v(t)&&Ft(t)){let u=o.theme[t.slice(2)];return an(u,r)}return i},L0=(t,e)=>{let n={};for(let r in t){let o=r.slice(0,1);if(V(t[r]))if(nP(r)&&(e||oP.has(t[r])))n[r]=xu({},t[r]);else{if(o==="@")continue;o===":"?n[`&${r}`]=L0(t[r],e):o==="."&&(n[`&${r}`]=L0(t[r],e))}else n[r]=t[r]}return n},iP=(t,e)=>{let n=e.shift();return t[n]?iP(t[n],e):t},QR=(t,e)=>I(e)?iP(t,e):v(e)&&t[e]?t[e]:t;var an=(t,e)=>{let n=P();if(v(t)&&Ft(t)&&(t=an(t.slice(2))),!t||!v(t)){n.verbose&&console.warn(`${t} - Theme is not a string`);return}let[r,...o]=I(t)?t:t.split(" "),s=n.theme[r];return s&&o.length?s=QR(s,o):s&&e&&(s=QR(s,e)),L0(s,!n.useVariable)};M();M();var ku=(t,e)=>{let n=P(),r=`--font-${e}`;if(!t||I(t)&&!t[0])return;let o;if(t.isVariable){let s=rn(t.url,n.files)||t.url;$a(s)?o=Fa(s):o=yo(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap",unicodeRange:t.unicodeRange})}else if(t[0])o=Ms(e,t,n.files);else{let s=Array.isArray(t.url)?t.url.map(i=>rn(i,n.files)||i):rn(t.url,n.files)||t.url;o=yo(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch,unicodeRange:t.unicodeRange})}return{var:r,value:t,fontFace:o}},lP=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong","inherit","initial","unset","revert","revert-layer"]),rV=t=>lP.has(t.toLowerCase())||/[\s,'"(]/.test(t.trim()),aP=new Set,Eu=(t,e)=>{let n=P(),{fontFamily:r}=n,o=e||r,s=Er(o,t);if(s!==void 0||t==null||t===""||t==="default")return s;if(!v(t))return Er(o);if(!rV(t))return gr()&&!aP.has(t)&&(aP.add(t),console.warn(`[scratch] fontFamily \`${t}\` is not a font family key of this design system \u2014 rendering the default family. Name a key from designSystem fontFamily, a CSS generic family (\`monospace\`, \`serif\`, \u2026) or a quoted font name (\`"'${t}'"\`).`)),Er(o)},cP=t=>{let e=t.trim(),n=e.replace(/^(['"])(.*)\1$/,"$2").trim(),r=n.replace(/\s+/g," ").toLowerCase();return n!==e&&lP.has(r)?'"'+r+'"':r},Wa=(t,e)=>{let n=P(),{fontFamily:r,fontFamilyTypes:o}=n;if(E(t)&&v(t.value)&&v(t.var))return n.useVariable&&(n.cssVars[t.var]=t.value),t;let{value:s,type:i}=t;t.isDefault&&(!t.isSystemFallback||!r.__defaultKey)&&(r.__defaultKey=e),E(s)&&(s=Rs(s));let c=`--${n.varPrefix?n.varPrefix+"-":""}font-family-${e}`,l=p=>p&&!p.startsWith("--"),f=[...s].map(p=>String(p).trim()).filter(l),u=new Set;for(let p of f)for(let g of p.split(","))u.add(cP(g));for(let p of String(o[i]??"").split(",")){let g=p.trim();if(!l(g))continue;let h=cP(g);u.has(h)||(u.add(h),f.push(g))}let d=f.join(", ");return n.useVariable&&(n.cssVars[c]=d),{var:c,value:d,arr:s,type:i,isSystemFallback:!!t.isSystemFallback,isSharedLibrary:!!t.isSharedLibrary}};M();var Ng=t=>{let e=P(),{typography:n,media:r}=e;for(let o in t){let s=o.slice(0,1)==="@",i=t[o];if(!s)continue;let{mediaRegenerate:a}=t,c=o.slice(1),{type:l,base:f,ratio:u,range:d,subSequence:p,h1Matches:g,unit:h}=t;Lt(i,{type:l,base:f,ratio:u,range:d,subSequence:p,h1Matches:g,unit:h});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||h,x=!i.unit&&m.has(h)?"rem":y,k=r[c],C="@media "+(k==="print"?`${k}`:`screen and ${k}`);if(n.templates[C]={fontSize:i.base/n.browserDefault+x},!a){Lt(i,{sequence:{},scales:{},vars:{}}),we(i),wo(t,o);continue}Lt(i,{sequence:{},scales:{},templates:{},vars:{}}),we(i),wo(t,o)}},$g=t=>{let e=P();if(t.h1Matches){let n=t.unit,r=uu(t),{templates:o}=t;for(let s in r){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:e.useVariable?`var(${r[s]?.variable})`:`${r[s]?.scaling}${n}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},vu=()=>{let t=P(),{typography:e}=t;we(e),$g(e),Tr(e),Ng(e)},Au=t=>{let e=P(),{typography:n}=e;return Xn(t,"fontSize",n)};M();var Cu=t=>{if(!v(t))return;let n=P().shape;if(n)return n[t]!==void 0?n[t]:n[t.toLowerCase()]};M();var Tu=()=>{let t=P(),{timing:e}=t;we(e),Tr(e)},je=t=>{let e=P(),{timing:n}=e;return n[t]||n[Sr(t)]||t},Se=(t,e="timing")=>{let n=P(),{timing:r}=n;return Xn(t,e,r)};M();var Ou=()=>{let t=P(),{fontFamily:e,theme:n,typography:r}=t,o=t.document;return pr(o)?(Qr(t,"document",o),o=t.document={}):o||(o=t.document={}),Lt(o,{theme:n.document,fontFamily:Er(e),fontSize:r.base,lineHeight:r.lineHeight})};M();var $0={document:kt},fP=new WeakMap,uP=new WeakMap,oV=128,dP=1048576,M0=8192,F0=t=>t.nodeType===1&&t.localName==="symbol"&&t.getAttribute("id"),gP=t=>t.nodeType===8||t.nodeType===3&&!t.textContent.trim(),sV=(t,e)=>{let n=1,r=t.ownerDocument;if(r&&typeof r.createTreeWalker=="function"){let s=r.createTreeWalker(t,4294967295);for(;s.nextNode();)if(++n>e)return n;return n}let o=[t];for(;o.length;){let s=o.pop().childNodes||[];for(let i=0;i<s.length;i++){if(++n>e)return n;o.push(s[i])}}return n},N0=(t,e)=>{if(typeof t.importNode=="function")return t.importNode(e,!0);let n=e.cloneNode(!0);return typeof t.adoptNode=="function"?t.adoptNode(n):n},iV=(t,e)=>{if(typeof t.prepend=="function")return t.prepend(e);let n=t.firstChild!==void 0?t.firstChild:t.childNodes&&t.childNodes[0];return typeof t.insertBefore=="function"?t.insertBefore(e,n||null):t.appendChild(e)},Ka=(t,e)=>{let n=P();if(!t){n.verbose&&console.warn("setSVG: val is not defined",e);return}return n.useSvgSprite?hu(e,t):t},Ru=(t,e=$0)=>{let n=P(),r=Object.keys(t).length?{}:n.svg;for(let o in t)r[o]=t[o];yP(r,e)},Ks=(t,e)=>{let n=P();return n.useIconSprite&&!n.semanticIcons?.[e]?Ka(t,e):t},qs=(t,e=$0)=>{let n=P(),r=Object.keys(t).length?{}:n.icons;for(let o in t)r[o]=t[o];yP(r,e)},mP=(t,e={isRoot:!0})=>{if(!t||!t.createElementNS)return;let n=t.createElementNS("http://www.w3.org/2000/svg","svg");return e.isRoot&&(n.setAttribute("aria-hidden","true"),n.setAttribute("width","0"),n.setAttribute("height","0"),n.setAttribute("style","position:absolute"),n.setAttribute("id","svgSprite")),n},aV=t=>{let e=t&&t.defaultView;return e&&typeof e.DOMParser=="function"?e.DOMParser:typeof DOMParser<"u"?DOMParser:null},cV=(t,e)=>{let n=aV(t);if(n){let r=`<svg xmlns="http://www.w3.org/2000/svg">${e}</svg>`,s=new n().parseFromString(r,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},lV=(t,e,n)=>{let r=String(n),o=uP.get(e),s=o?.entries.get(r);if(s)return o.entries.delete(r),o.entries.set(r,s),s.root;let i=cV(t,r);if(i||(i=mP(t,{isRoot:!1}),i.innerHTML=r),r.length>dP)return i;let a=sV(i,M0);if(a>M0)return i;for(o||(o={entries:new Map,units:0,nodes:0},uP.set(e,o));o.entries.size>=oV||o.units+r.length>dP||o.nodes+a>M0;){let c=o.entries.keys().next().value,l=o.entries.get(c);o.units-=c.length,o.nodes-=l.nodes,o.entries.delete(c)}return o.entries.set(r,{root:i,nodes:a}),o.units+=r.length,o.nodes+=a,i},pP=t=>{let e=new Map;for(let n of t.children){let r=F0(n);if(!r)continue;let o=e.get(r)||[];o.push(n),e.set(r,o)}return e},fV=t=>t.replace(/["\\\u0000-\u001f\u007f]/g,e=>`\\${e.charCodeAt(0).toString(16)} `),hP=(t,e,n,r)=>{let o=0,s=e.childElementCount>8?pP(n):null,i=a=>{if(!s)try{return[...n.querySelectorAll(`symbol[id="${fV(a)}"]`)].filter(c=>c.parentNode===n)}catch{s=pP(n)}return s.get(a)};for(let a of e.childNodes){if(gP(a))continue;let c=F0(a);if(!c&&r){let u=o++,d=r.nodes[u];if(!d&&r.complete||d?.parentNode===n)continue;let p=N0(t,d||a);n.appendChild(p),r.nodes[u]=p;continue}let l=c&&i(c),f=l&&l[0];if(!f)f=N0(t,a),n.appendChild(f);else if(!f.isEqualNode(a)){let u=N0(t,a);n.replaceChild(u,f),f=u}if(l)for(let u=1;u<l.length;u++)l[u].remove();c&&s&&s.set(c,[f])}},yP=(t,e=$0)=>{let n=P(),r=e.document||kt;if(!r||!r.documentElement)return n.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),pu(t);let o=r.querySelector("#svgSprite"),s="";for(let d in t)s+=t[d];let i=o||mP(r);if(!i||!i.nodeType)return;let a=d=>lV(r,i,d),c=a(s),l=fP.get(i);l||fP.set(i,l=new WeakMap);let f=l.get(n);if(f||l.set(n,f=new Map),[...c.childNodes].some(d=>!gP(d)&&!F0(d))){let d=[];for(let p in t)d.push(p);for(let p of d){let g=f.get(p);g||f.set(p,g={nodes:[],complete:!1}),hP(r,d.length===1?c:a(t[p]),i,g),g.complete=!0}}else{hP(r,c,i);for(let d in t)f.has(d)||f.set(d,{nodes:[],complete:!0})}o||iV(r.body,i);for(let d in t)n.__svgCache[d]=!0};M();var Pu=(t={})=>{let e=P(),n=e.typography||{},r=e.document||{},o=E(e.reset)?e.reset:e.reset={};if(o[":root"]){let c=o,l=n.templates||{};c.body={...e.useDocumentTheme?an("document"):{},...l.body},c.h1=l.h1,c.h2=l.h2,c.h3=l.h3,c.h4=l.h4,c.h5=l.h5,c.h6=l.h6}let{body:s,...i}=n.templates||{},a=e.useDocumentTheme?an("document"):{};if(o.html&&ie(o.html,a),n.unit)for(let c in i){if(c.slice(0,6)!=="@media")continue;let l=i[c];delete i[c],!(!l||!l.fontSize)&&(o[c]||(o[c]={}),o[c].html||(o[c].html={}),o[c].html.fontSize===void 0&&(o[c].html.fontSize=l.fontSize))}if(n.unit){let c=e.media||{};for(let l in n){if(l.charAt(0)!=="@")continue;let f=n[l];if(!f||f.unit===n.unit||!f.unit)continue;let u=f.unit,d=f.base||n.base,p=f.browserDefault||n.browserDefault,g=l.slice(1),h=c[g];if(!h)continue;let m="@media "+(h==="print"?h:"screen and "+h);o[m]||(o[m]={}),o[m].html||(o[m].html={}),o[m].html.fontSize=d/p+u}}return bt(Lt(o,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",textSizeAdjust:"100%",WebkitTextSizeAdjust:"100%",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:r.fontFamily,lineHeight:r.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:r.fontFamily,fontSize:n.unit?"1"+e.unit.default:n.base/n.browserDefault+e.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}},ae)};M();var uV=new Set(["fallback"]),B0=new Set,bP=(t,e)=>{B0.has(t)||(B0.add(t),tt()&&console.warn(e))},j0=()=>{B0.clear()},_P=t=>{for(let e in t)delete t[e];return t},Lu=()=>{let t=P(),e=E(t.cssSkinVars)?_P(t.cssSkinVars):t.cssSkinVars={},n=E(t.cssSkinFallback)?_P(t.cssSkinFallback):t.cssSkinFallback={},r=t.skins;if(!E(r))return e;let o=t.varPrefix?t.varPrefix+"-":"",s=t.color||{},i=t.cssVars||{},a=c=>v(c)&&Object.prototype.hasOwnProperty.call(s,c)?`var(--${o}color-${c})`:c;for(let c in r){let l=r[c];if(!E(l))continue;let f={};for(let u in l){if(uV.has(u))continue;let d=l[u];if(E(d))for(let p in d){let g=`--${o}theme-${u}-${p}`;t.useVariable!==!1&&!(g in i)&&bP(`${c}/${u}/${p}`,`[scratch] skin "${c}" rewrites theme "${u}" param "${p}", which the theme does not declare \u2014 no element reads ${g}, so the skin changes nothing there. Declare "${p}" on the "${u}" theme (its no-skin value).`),f[g]=a(d[p])}}e[c]=f,v(l.fallback)&&(n[c]=l.fallback)}for(let c in n){let l=n[c];e[l]||(bP(`${c}/fallback/${l}`,`[scratch] skin "${c}" falls back to "${l}", which is not a declared skin \u2014 the reduced-transparency fallback is skipped.`),delete n[c])}return e},wP=(t,e)=>{let n=`[data-skin="${t}"]`;return!e||e===":root"?`:root${n}, ${n}`:`${e}${n}, ${n} ${e}, ${e} ${n}`},Gs=(t,e,n)=>{let r={};if(!E(t))return r;for(let s in t)r[wP(s,n)]=t[s];let o={};for(let s in e||{}){let i=t[e[s]];i&&(o[wP(s,n)]=i)}return Object.keys(o).length&&(r["@media (prefers-reduced-transparency: reduce)"]=o),r};M();var Fg=(t,e)=>wu(t,e),Bg=t=>{if(v(t))return xr.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(Ft(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let n=dt(e);return nn(n)?n:e}).join(" ")},jg=(t,e)=>_u(t,e),Du=(t,e)=>{if(!v(t))return;let n=P();if(!n.useVariable){let r=dV(t,e,n);if(r!==void 0)return r}return U0(t,e)},dV=(t,e,n)=>Hs(t,e==="auto"?null:e,n,{commas:!0,resolve:U0,resolveScheme:(r,o)=>U0(o(s=>dt(s,"@"+r,n)),null)}),U0=(t,e)=>kr(t,hV,pV,e),pV={commas:!0,keywords:new Set(["inset","none"])},hV=(t,e)=>{if(!nn(dt(t)))return za(t);let n=Kt(t,e);return E(n)?Object.values(n).filter(r=>r.includes(": "+e))[0]:n},Ug=(t,e)=>{if(!v(t))return;let n=P();return On(t).map(r=>{let o=r.trim();if(Ft(o))return`var(${o})`;if(/^var\(/.test(o)||o.includes("url"))return o;if(n.gradient?.[o]){let s=Kt(o,e);if(v(s))return s;if(E(s)){for(let i in s)if(v(s[i]))return s[i]}return o}return o.includes("gradient")?vo(o,e):o.includes("/")||o.startsWith("http")||o.includes(".")&&!te(o)?`url(${o})`:o}).join(", ")},Iu=new Set(["auto","cover","contain"]),Mu=new Set(["center","top","bottom","left","right"]),gV=(t,e,n,r)=>{if(n.has(t))return t;let o=Ar(()=>Be(r,e,t));return o&&o[e]!==void 0?o[e]:t},Ys=(t,e,n,r)=>v(t)?On(t).map(o=>ut(o.trim()).map(s=>gV(s,e,n,r)).join(" ")).join(", "):t,Vg=t=>v(t)&&ut(t).map(e=>Vt(e,"gap").gap).join(" "),zg=t=>{if(!v(t))return t;let e=P();return ut(t).map(n=>Pn.test(n)?$s(n,e.spacing):n).join(" ")},V0=t=>{if(!v(t))return;let e=t.split(" ");return e.length?e.map(n=>Ft(n)?`var(${n})`:n.length<3||n.includes("ms")?Se(n).timing||n:je(n)?je(n):n).join(" "):t},Nu=(t,e,n)=>{if(v(t))return t.split(",").map(r=>Se(r).timing||r).join(",")},Hg=t=>{if(!v(t))return;let e=t.split(",");if(e.length)return e.map(V0).join(",")};function Nt(t,e,n={},r={}){let o=St.call(this,e||n[t]);if(o==null)return;let s;if(v(o)){if(/^(?:env|var)\(/.test(o.trim()))return{[t]:o};if(o.includes("(")){let c=Cr(o);s=c[0],o=c[1]}let i=n.scaleBoxSize,a=mu(t);!i&&a&&!r.ratio&&(o=bu(o))}return r.ratio?Be(n,t,o,s):Vt(o,t,void 0,s)}var j=(t,e=null,n)=>Nt(t,e,n,{ratio:!0}),mV=(t,e,n)=>v(t)?ut(t).map(r=>Pn.test(r)?Be(e,n,r)[n]:r).join(" "):t,Pr=(t,e,n,r="borderRadius")=>{if(v(t))return{[r]:ut(t).map(o=>{let s=Cu(o);return s!==void 0?mV(s,e,n):Be(e,n,o)[n]}).join(" ")}};M();var Ga="__smblsThemeRootOwner",Ya=t=>{let e=t&&t.__prefersListener,n=t&&t.__prefersMq;if(e&&n)try{typeof n.removeEventListener=="function"?n.removeEventListener("change",e):typeof n.removeListener=="function"&&n.removeListener(e)}catch{try{n.removeListener(e)}catch{}}t&&(t.__prefersListener=null,t.__prefersMq=null)},SP=(t,e,n)=>{if(!(!t||!e)){Ya(t),t.__prefersListener=n,t.__prefersMq=e;try{e.addEventListener("change",n)}catch{e.addListener(n)}}},yV=(t,e)=>{let n=P(),{cssVars:r}=n,o=e.startsWith("--")?e:`--${e}`;return r[o]=t,t},le=t=>t,bV=(t,e)=>{if(v(t)||me(t)){let n=P();if(n.cssVars&&e){let r=n.varPrefix?n.varPrefix+"-":"";n.cssVars[`--${r}size-${e}`]=t}}return t},Wg={color:Or,gradient:Va,font:ku,fontFamily:Wa,fontfamily:Wa,theme:Su,icons:Ks,semanticIcons:le,semanticicons:le,svg:Ka,svgData:le,typography:le,shadow:Ao,spacing:le,media:le,grid:le,class:le,timing:le,reset:le,unit:le,animation:le,vars:yV,sizes:bV,shape:le,skins:le,viewTransition:le},_V=(t,e,n,r)=>{Qr(t,n,e);let o={};for(let s of r)t[s]===e&&(t[s]=o);return t.verbose&&console.warn("[scratch] design-system family",n,"resolved to a host object; parked it and allocated a plain bucket"),o},z0=(t,e,n)=>{let r=P(),o=ou(t),s=o.toLowerCase(),i=r[o]||r[s]||r[t],a=pr(i)?_V(r,i,s,[o,s,t]):i,c=Wg[o]||Wg[s];if(c)try{let l=c(e,n);return a&&(a[n]=l),a}catch(l){r.verbose&&console.warn("Error setting",s,"value",e,n,l)}if(!c){let l=a||(r[s]={});return l[n]=e,l}r.verbose&&console.warn("Can not find",s,"method in scratch")},$u=(t,e)=>{let n=P(),r=t.toLowerCase();if(pr(e))return Qr(n,r,e),n.verbose&&console.warn("[scratch] ignoring host object passed as the",r,"design-system family"),n[r]||n[t];if(e==null)return n.verbose&&console.warn("[scratch] skipping empty design-system family",r),n[r]||n[t];let o=Object.keys(e).sort((s,i)=>{let a=E(e[s])||I(e[s])?1:0,c=E(e[i])||I(e[i])?1:0;return a-c});if(r==="color"){let s=n[r]||(n[r]={});for(let i of o)i in s||(s[i]=e[i])}return o.forEach(s=>{try{return z0(r,e[s],s)}catch(i){n.verbose&&console.warn("Error setting",r,"value",e[s],s,i)}}),n[r]||n[t]},Kg=(t,e)=>{let n=e||P();n.globalTheme=t;let o=Gi(n)||(typeof document<"u"?document:null),s=o&&o.defaultView||(typeof window<"u"?window:null);if(o){let a=n.themeRoot||o.documentElement,c=t&&t!=="auto";if(a[Ga]=n,c)Ya(n),a.setAttribute("data-theme",t),n.resolvedTheme=t,t==="dark"||t==="light"?a.style.colorScheme=t:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let l=u=>{let d=u.matches?"dark":"light";a.setAttribute("data-theme",d),n.resolvedTheme=d},f=s.matchMedia("(prefers-color-scheme: dark)");l(f),a.style.colorScheme="light dark",SP(n,f,l)}else Ya(n),a.setAttribute("data-theme","light"),n.resolvedTheme="light",a.style.colorScheme="light"}let i=n.varPrefix?`--${n.varPrefix}-theme-`:"--theme-";for(let a in n.cssVars)a.startsWith(i)&&delete n.cssVars[a];for(let a in n.cssMediaVars)delete n.cssMediaVars[a];if(o&&n.cssVars){let a=n.scopeSelector||":root",c=o.styleSheets;for(let l=0;l<c.length;l++)try{let f=c[l].cssRules;for(let u=0;u<f.length;u++)if(f[u].selectorText===a){for(let d in n.cssVars)f[u].style.setProperty(d,n.cssVars[d]);return n}}catch{}}return n},Fu=t=>{let n=Gi(t)||(typeof document<"u"?document:null),r=n&&n.defaultView||(typeof window<"u"?window:null),o=n&&(t.themeRoot||n.documentElement);if(o&&typeof o.setAttribute=="function")if(t.globalTheme&&t.globalTheme!=="auto")Ya(t),o.setAttribute("data-theme",t.globalTheme),t.resolvedTheme=t.globalTheme,o[Ga]=t,t.globalTheme==="dark"||t.globalTheme==="light"?o.style.colorScheme=t.globalTheme:o.style.colorScheme="light dark";else if(o[Ga]&&o[Ga]!==t&&o.hasAttribute("data-theme"))Ya(t),t.resolvedTheme=o.getAttribute("data-theme");else if(r&&r.matchMedia){let i=c=>{let l=c.matches?"dark":"light";o.setAttribute("data-theme",l),t.resolvedTheme=l},a=r.matchMedia("(prefers-color-scheme: dark)");i(a),o.style.colorScheme="light dark",o[Ga]=t,SP(t,a,i)}else Ya(t),o.setAttribute("data-theme","light"),t.resolvedTheme="light",o.style.colorScheme="light",o[Ga]=t},wV={},Xs=(t,e=wV)=>{let n=e.config||P(),{version:r,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:u,useDocumentTheme:d,useDefaultConfig:p,semanticIcons:g,hoverMedia:h,focusableRing:m,files:y,assets:x,...k}=t;e.newConfig&&(n=Cg(e.newConfig)),dr(k.document)&&(n.__domDocument=k.document,delete k.document),dr(n.document)&&(n.__domDocument||(n.__domDocument=n.document),n.document={}),y!==void 0&&(n.files=y),x!==void 0&&(n.assets=x),o!==void 0&&(n.verbose=o),s!==void 0&&(n.useVariable=s),i!==void 0&&(n.useReset=i),c!==void 0&&(n.useFontImport=c),a!==void 0&&(n.useSvgSprite=a),l!==void 0&&(n.useIconSprite=l),d!==void 0&&(n.useDocumentTheme=d),f!==void 0&&(n.globalTheme=f),u!==void 0&&(n.themeRoot=u),t.useThemeSuffixedVars!==void 0&&(n.useThemeSuffixedVars=t.useThemeSuffixedVars),p!==void 0&&(n.useDefaultConfig=p),g!==void 0&&(n.semanticIcons=g),h!==void 0&&(n.hoverMedia=h),m!==void 0&&(n.focusableRing=m),n.verbose&&console.log(n),Fu(n),n.__svgCache||(n.__svgCache={}),ja(k);let C=Object.keys(k).filter(S=>!S.startsWith("__")),_=new Set(C);C.forEach(S=>{let A=S.toLowerCase();A!==S&&_.has(A)&&bt(k[A],k[S],ae)});let b=new Set;if(C.forEach(S=>{let A=S.toLowerCase(),T=A!==S&&_.has(A)?A:S;b.has(T)||(b.add(T),$u(T,k[T]))}),n.varPrefix&&(n.typography&&(n.typography.varPrefix=n.varPrefix),n.spacing&&(n.spacing.varPrefix=n.varPrefix),n.timing&&(n.timing.varPrefix=n.varPrefix)),k.typography)try{vu()}catch(S){n.verbose&&console.warn("Error applying typography sequence",S)}if(k.spacing)try{yu()}catch(S){n.verbose&&console.warn("Error applying spacing sequence",S)}if(k.timing)try{Tu()}catch(S){n.verbose&&console.warn("Error applying timing sequence",S)}try{Lu()}catch(S){n.verbose&&console.warn("Error applying skins",S)}Ou();let w=Pu();return w&&(n.reset=w),n};var Za=1,H0=["font","files","assets","themeRoot"],SV=new Set(H0),Xa="$smbls",qg=t=>{if(t===null||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},xV=t=>t.startsWith("__")||SV.has(t),Gg=t=>{if(!qg(t))return null;let e=new Map,n=!1,r=s=>{if(n)return;if(s===void 0)return{[Xa]:"u"};if(s===null||typeof s=="string"||typeof s=="boolean")return s;if(typeof s=="number")return Number.isFinite(s)&&!Object.is(s,-0)?s:{[Xa]:"n",v:Object.is(s,-0)?"-0":String(s)};if(typeof s!="object"){n=!0;return}let i=e.get(s);if(i!==void 0)return{[Xa]:"r",i};if(Array.isArray(s)){e.set(s,e.size);let c=new Array(s.length);for(let l=0;l<s.length;l++){if(!(l in s)){n=!0;return}c[l]=r(s[l])}return c}if(!qg(s)||Object.prototype.hasOwnProperty.call(s,Xa)){n=!0;return}e.set(s,e.size);let a={};for(let c of Object.keys(s))a[c]=r(s[c]);return a},o={};for(let s of Object.keys(t))if(!xV(s)&&(o[s]=r(t[s]),n))return null;return o},kV=(t,e)=>{let n=Object.keys(e),r=0;for(let o in t){if(r===n.length)return!0;if(o!==n[r])return!1;r++}return r===n.length},Yg=(t,e)=>{let n=[],r=(s,i)=>{if(s===null||typeof s!="object")return s;if(Array.isArray(s)){let l=new Array(s.length);n.push(l);for(let f=0;f<s.length;f++)l[f]=r(s[f]);return l}let a=s[Xa];if(typeof a=="string"){if(a==="u")return;if(a==="n")return s.v==="-0"?-0:Number(s.v);if(a==="r")return n[s.i]}let c=i;if(c&&!kV(s,c))for(let l of Object.keys(c))delete c[l];else c||(c={});n.push(c);for(let l in s)c[l]=r(s[l]);return c},o=new Set;for(let s in t){let i=t[s],a=e[s],c=qg(a)&&!o.has(a)&&qg(i)&&typeof i[Xa]!="string"?a:null;c&&o.add(c);let l=r(i,c);l!==a&&(e[s]=l)}return e};var z=(t,e)=>e.split(" ").map(n=>t+"-"+n),G0="top right bottom left",Y0=G0+" block block-start block-end inline inline-start inline-end",xe="start end",Dr="width style color",Xg=t=>z(t,Y0),EV=(()=>{let t=z("border","width style color image");for(let e of Y0.split(" "))t.push("border-"+e,...z("border-"+e,Dr));return t})(),xP=t=>[...z("border-"+t,Dr+" start end"),...z("border-"+t+"-start",Dr),...z("border-"+t+"-end",Dr)],vt={animation:z("animation","name duration timing-function delay iteration-count direction fill-mode play-state timeline range range-start range-end"),background:z("background","image position position-x position-y size repeat origin clip attachment color"),border:EV};for(let t of["width","style","color"])vt["border-"+t]=Y0.split(" ").map(e=>"border-"+e+"-"+t);for(let t of G0.split(" "))vt["border-"+t]=z("border-"+t,Dr);vt["border-block"]=xP("block");vt["border-inline"]=xP("inline");Object.assign(vt,{"border-image":z("border-image","source slice width outset repeat"),"border-radius":"top-left top-right bottom-right bottom-left start-start start-end end-start end-end".split(" ").map(t=>"border-"+t+"-radius"),columns:z("column","width count"),"column-rule":z("column-rule",Dr),container:z("container","name type"),"contain-intrinsic-size":z("contain-intrinsic","width height"),flex:z("flex","grow shrink basis"),"flex-flow":z("flex","direction wrap"),font:[...z("font","style variant weight stretch size"),"line-height",...z("font","family size-adjust kerning feature-settings variation-settings optical-sizing")],gap:["row-gap","column-gap"],grid:z("grid","template template-rows template-columns template-areas auto-rows auto-columns auto-flow"),"grid-template":z("grid-template","rows columns areas"),"grid-area":z("grid","row column row-start row-end column-start column-end"),"grid-row":z("grid-row",xe),"grid-column":z("grid-column",xe),inset:[...G0.split(" "),...z("inset","block block-start block-end inline inline-start inline-end")],"inset-block":z("inset-block",xe),"inset-inline":z("inset-inline",xe),"list-style":z("list-style","type position image"),margin:Xg("margin"),"margin-block":z("margin-block",xe),"margin-inline":z("margin-inline",xe),mask:z("mask","image mode repeat position clip origin size composite"),offset:z("offset","position path distance rotate anchor"),outline:z("outline",Dr),overflow:z("overflow","x y"),"overscroll-behavior":z("overscroll-behavior","x y"),padding:Xg("padding"),"padding-block":z("padding-block",xe),"padding-inline":z("padding-inline",xe)});for(let t of["content","items","self"])vt["place-"+t]=["align-"+t,"justify-"+t];Object.assign(vt,{"scroll-margin":Xg("scroll-margin"),"scroll-padding":Xg("scroll-padding"),"text-decoration":z("text-decoration","line style color thickness"),"text-emphasis":z("text-emphasis","style color"),transition:z("transition","property duration timing-function delay behavior")});var vV="block-start block-end inline-start inline-end".split(" ");for(let t of vV)vt["border-"+t]=z("border-"+t,Dr);for(let t of["block","inline"])for(let e of Dr.split(" "))vt["border-"+t+"-"+e]=z("border-"+t,xe.split(" ").map(n=>n+"-"+e).join(" "));Object.assign(vt,{"animation-range":z("animation-range",xe),"background-position":z("background-position","x y"),"font-variant":z("font-variant","alternates caps east-asian emoji ligatures numeric position"),"font-synthesis":z("font-synthesis","weight style small-caps"),marker:z("marker","start mid end"),"position-try":z("position-try","order fallbacks"),"scroll-margin-block":z("scroll-margin-block",xe),"scroll-margin-inline":z("scroll-margin-inline",xe),"scroll-padding-block":z("scroll-padding-block",xe),"scroll-padding-inline":z("scroll-padding-inline",xe),"scroll-timeline":z("scroll-timeline","name axis"),"view-timeline":z("view-timeline","name axis inset"),"text-box":z("text-box","trim edge"),"text-wrap":z("text-wrap","mode style"),"white-space":["white-space-collapse","text-wrap-mode"]});vt.font.push("font-language-override");var Lr=t=>"corner-"+t+"-shape";vt["corner-shape"]=[..."top-left top-right bottom-right bottom-left start-start start-end end-start end-end".split(" "),..."top right bottom left block-start block-end inline-start inline-end".split(" ")].map(Lr);Object.assign(vt,{"corner-top-shape":["top-left","top-right"].map(Lr),"corner-right-shape":["top-right","bottom-right"].map(Lr),"corner-bottom-shape":["bottom-left","bottom-right"].map(Lr),"corner-left-shape":["top-left","bottom-left"].map(Lr),"corner-block-start-shape":["start-start","start-end"].map(Lr),"corner-block-end-shape":["end-start","end-end"].map(Lr),"corner-inline-start-shape":["start-start","end-start"].map(Lr),"corner-inline-end-shape":["start-end","end-end"].map(Lr)});for(let t in vt){let e=vt[t],n=new Set(e);for(let r=0;r<e.length;r++){let o=vt[e[r]];if(o)for(let s of o)n.has(s)||(n.add(s),e.push(s))}}var cn={};for(let t in vt)for(let e of vt[t])(cn[e]||(cn[e]=[])).push(t);var K0=new Map,kP=t=>{let e=K0.get(t);if(e!==void 0)return e;K0.set(t,0),e=0;let n=cn[t];if(n)for(let r=0;r<n.length;r++)e=Math.max(e,kP(n[r])+1);return K0.set(t,e),e};function Ja(t){if(typeof t!="string")return 0;let e=t.charCodeAt(0)===45&&t.charCodeAt(1)!==45?t.replace(/^-(webkit|moz|ms|o)-/,""):t;return Object.prototype.hasOwnProperty.call(cn,e)?kP(e):0}var AV=/^(?:margin|padding|inset|scroll-margin|scroll-padding)(?:-(?:block|inline))?$|^border(?:-(?:block|inline))?-(?:width|style|color)$|^(?:border-radius|corner(?:-[a-z]+)*-shape|gap|overflow|overscroll-behavior|place-(?:content|items|self)|background-position|contain-intrinsic-size)$/,EP=/^(?:border(?:-(?:top|right|bottom|left|block|inline)(?:-(?:start|end))?)?|outline|column-rule)$/,CV=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","auto"]),q0=t=>ut(String(t).replace(/\s*!important\s*$/,""));function Qa(t,e,n){let r=vt[t];if(!r||r.indexOf(n)===-1)return!1;if(AV.test(t))return!0;if(!EP.test(t)||typeof e=="function"||e==null||n.indexOf("border-image")===0)return!1;let o=q0(e);return o.length>=3?!0:/-style$/.test(n)&&o.some(s=>CV.has(s.toLowerCase()))}var TV=new Set(["thin","medium","thick"]),OV=t=>/^[+-]?\.?\d/.test(t)||TV.has(t.toLowerCase())||/^(?:calc|min|max|clamp)\(/i.test(t)||/^var\(--(?:[a-zA-Z0-9]{1,6}-)?spacing-/.test(t),RV=t=>t==="transparent"||t==="currentcolor"||Object.prototype.hasOwnProperty.call(La,t),PV=t=>Ds(t)||/^var\(--(?:(?!theme-|shadow-)[a-zA-Z0-9]{1,6}-)?color-/.test(t)||RV(t.toLowerCase()),LV=/-(width|style|color)$/;function Bu(t,e,n){if(Qa(t,e,n))return!0;let r=vt[t];if(!r||r.indexOf(n)===-1||typeof e=="function"||e==null)return!1;if(EP.test(t)){if(n.indexOf("border-image")===0)return!1;let o=LV.exec(n);if(!o)return!1;let s=q0(e);return s.length===1&&/^(?:0|none)$/i.test(s[0])?o[1]!=="color":o[1]==="width"&&s.some(OV)}if(t==="background"&&n==="background-color"){let o=q0(e);return o.length===1&&PV(o[0])}return!1}var nc=new Map,FP=null,X0=null,DV=null;function Vu(t){t.batchAtomicCss&&(X0=t.batchAtomicCss),t.compoundCssClass&&(DV=t.compoundCssClass)}var IV=new Set,AP=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0);function ik(t){try{let e=P();e&&(e.__domDocument=t)}catch{}t&&IV.add(t)}function Zn(){try{let t=P();if(t){if(AP(t.__domDocument))return t.__domDocument;if(AP(t.document))return t.document}}catch{}return typeof document<"u"?document:null}var ke={atomic:0,variable:0,global:0,keyframes:0,duplicate:0,invalid:0,dropped:0};function om(){return{...ke}}function ak(){for(let t in ke)ke[t]=0;em=!1}var em=!1,Qg=(t,e)=>`${t} ${e}${t===1?"":"s"}`;function MV(t){let e=Date.parse(t);if(!isFinite(e))return"";let n=Math.floor((Date.now()-e)/864e5);return n<1?" (today)":` (${Qg(n,"day")} ago)`}function NV(){try{let t=GV();if(!t.length)return-1;let e=0;for(let n=0;n<t.length;n++)e+=t[n].cssRules?t[n].cssRules.length:0;return e}catch{return-1}}function $V(t,e){if(em)return!1;em=!0;let n="n/a \u2014 running from src/ (unbuilt), so no dist is in play",r="this IS the source",o="@symbo.ls/css";return console.error(`[@symbo.ls/css] CSS EMIT FAILURE (${t}) \u2014 the engine emitted ${Qg(ke.variable,"variable rule")} and ${Qg(ke.atomic,"atomic rule")}, while the design system held ${Qg(e,"CSS variable")}.
45
+ src: ${i};`},ko=(t,e,n,r)=>`@font-face {${au(t,e,n,r)}
46
+ }`,Bs=(t,e,n)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:f}=e[o],u=Array.isArray(s)?s.map(d=>cn(d,n)||d):cn(s,n)||s;return au(t,u,i,{fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:f})}),a0=t=>Object.keys(t).map(n=>Bs(n,t[n].value)),Pg=(t,e,n)=>{if(e&&e.isVariable){let s=cn(e.url,n)||e.url;return za(s)?Ha(s):ko(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap",unicodeRange:e.unicodeRange})}if(e[0])return Bs(t,e,n).map(Rg);let o=Array.isArray(e.url)?e.url.map(s=>cn(s,n)||s):cn(e.url,n)||e.url;return ko(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch,unicodeRange:e.unicodeRange})},cu=(t,e)=>Object.keys(t).map(r=>Pg(r,t[r].value,e));M();M();M();M();Mt();var Wa={};B(Wa,{animation:()=>E0,breakpoints:()=>x0,class:()=>O0,color:()=>g0,devices:()=>k0,document:()=>JR,font:()=>l0,fontFace:()=>d0,fontFamily:()=>f0,fontFamilyTypes:()=>u0,gradient:()=>m0,grid:()=>C0,icons:()=>_0,media:()=>p0,reset:()=>QR,semanticIcons:()=>w0,sequence:()=>Rr,shadow:()=>b0,shape:()=>L0,sizes:()=>P0,skins:()=>D0,spacing:()=>h0,svg:()=>v0,svgData:()=>Lg,svg_data:()=>A0,templates:()=>T0,theme:()=>y0,timing:()=>S0,typography:()=>lu,unit:()=>c0,vars:()=>R0,viewTransition:()=>I0});var Rr={"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 c0={default:"em"};var YU={browserDefault:16,base:16,type:"font-size",ratio:Rr["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},lu=YU;var l0={};var f0={},u0={"sans-serif":"Helvetica, Arial, sans-serif",serif:"Times New Roman, Georgia, serif",monospace:"Courier New, monospace"},d0={};var p0={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var XU={base:lu.base,type:"spacing",ratio:Rr.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},h0=XU;var g0={},m0={};var y0={};var b0={};var _0={},w0={};var ZU={default:150,base:150,type:"timing",ratio:Rr["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},S0=ZU;var JR={};var x0={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},k0={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 E0={};var v0={},Lg={},A0=Lg;var T0={};var JU={},C0=JU;var O0={};var QR={},R0={},P0={},L0={},D0={},I0={};var Mg={},Ng={},le=new Set,Dg=Wa,Ig={},du=t=>t.replace(/_([a-z])/g,(e,n)=>n.toUpperCase());for(let t in Dg){let e=t.toLowerCase();Ig[e]=Dg[t];let n=du(e);n!==e&&(Ig[n]=Dg[t]),e!==t&&(Ig[t]=Dg[t])}var js={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:Mg,cssMediaVars:Ng,CSS_VARS:Mg,CSS_MEDIA_VARS:Ng,cssSkinVars:{},cssSkinFallback:{},_scratchConfig:!0,...Ig},Eo=(t,e)=>{if(!t)return null;if(t.__globalThemeSignal)return Ut(e)&&t.__globalThemeSignal.set(e),t.__globalThemeSignal;let n=Ut(e)?e:t.globalTheme,r=vn(Ut(n)?n:"auto");return Object.defineProperty(t,"globalTheme",{get(){return r.get()},set(o){r.set(o)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"__globalThemeSignal",{value:r,enumerable:!1,configurable:!0,writable:!0}),r},tP=t=>t?Eo(t):null,vo=(t,e)=>{if(!t)return null;if(t.__resolvedThemeSignal)return Ut(e)&&t.__resolvedThemeSignal.set(e),t.__resolvedThemeSignal;let n=Ut(e)?e:t.resolvedTheme,r=vn(Ut(n)?n:null);return Object.defineProperty(t,"resolvedTheme",{get(){return r.get()},set(o){r.set(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"__resolvedThemeSignal",{value:r,enumerable:!1,configurable:!0,writable:!0}),r},eP=t=>t?vo(t):null;Eo(js);vo(js);var fu=pt(js),Ue={active:"0",0:js},nP=t=>(Ut(t)&&(Ue.active=t),Ue[t||Ue.active]),uu=[],mt=t=>{t&&t._scratchConfig&&uu.push(t)},ht=()=>{uu.pop()},P=t=>uu.length?uu[uu.length-1]:Ue[t||Ue.active]||js,$g=t=>{if(k(t))return Ue.active="1",Ue[1]=bt(t,pt(fu),le),Ka(Ue[1]),Eo(Ue[1]),vo(Ue[1]),t},QU=["useReset","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig"],tV=["useVariable","globalTheme","verbose"],eV=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData","svg_data"]],Ka=t=>{for(let e of eV){let n;for(let r of e){let o=t[r];k(o)&&(n=n?bt(n,o,le):o)}if(n)for(let r of e)k(t[r])&&(t[r]=n)}},rP=t=>(t.cssVars={},t.cssMediaVars={},t.CSS_VARS=t.cssVars,t.CSS_MEDIA_VARS=t.cssMediaVars,t.cssSkinVars={},t.cssSkinFallback={},t._scratchConfig=!0,Ka(t),Eo(t),vo(t),t),Fg=()=>rP(pt(fu)),pu=(t,e,{cleanBase:n=!1}={})=>{let r=n?null:P(),o=pt(!n&&r&&r._scratchConfig?r:fu);for(let i of QU)delete o[i];for(let i of tV)Object.prototype.hasOwnProperty.call(fu,i)?o[i]=fu[i]:delete o[i];let s=rP(bt(e||{},o,le));return t&&(Ue[t]=s),s};var Mn=/^-?[A-Z][0-9]?$/,M0=0,Pr=t=>{M0++;try{return t()}finally{M0--}},ln={"-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"},nV=Object.keys(ln).reduce((t,e)=>(t[ln[e]]=Number(e),t),{}),rV=(t,e,n,r)=>{if(Mn.test(e)){if(t&&Object.keys(t).length)return t[e]!==void 0;let o=nV[e.slice(0,1)];if(o===void 0)return!1;let{range:s}=n;return!Array.isArray(s)||s.length<2?!0:o>=Math.min(s[0],s[1])&&o<=Math.max(s[0],s[1])}if(r&&Object.keys(r).length)return!1},$0=(t,e)=>{let{key:n,variable:r,value:o,scaling:s,index:i,scalingVariable:a}=t;e.sequence[n]={key:n,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:r},e.scales[n]=s;let c=oP.has(e.unit)?"rem":e.unit;e.vars[r]=s+c},Lr=t=>{if(!t.includes("("))return t;let e=t.trim(),n=e.indexOf("("),r=e.slice(0,n),o=0,s=-1;for(let i=n;i<e.length;i++){let a=e[i];if(a==="(")o++;else if(a===")"&&(o--,o===0)){s=i;break}}return s===-1||/\s/.test(r)||e.slice(s+1).trim()!==""?[void 0,t]:[r,e.slice(n+1,s)]},N0="\0",oV=(t,e)=>{let n="",r=0,o="";for(let s of t){if(r===0&&s!=="("){n+=s;continue}o+=s,s==="("?r++:s===")"&&(r--,r===0&&(n+=N0+e.length+N0,e.push(o),o=""))}return n+o},sV=(t,e)=>t.indexOf(N0)===-1?t:t.replace(/\u0000(\d+)\u0000/g,(n,r)=>e[Number(r)]),iV=/^(calc|min|max|clamp)\((.*)\)$/,aV=(t,e)=>{let n=iV.exec(t);return n?`${n[1]}(${bu(n[2],e)})`:t.indexOf("(")!==-1?t:Us(t,e)},oP=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),hu=(t,e)=>{let{base:n,type:r,unit:o}=e,s=oP.has(o)?"rem":o,i=(is(s)?1:n)+s;if(t===0)return i;let c="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-")),l=`${c}-ratio`;if(t>0){let f=ln[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=ln[t+1],u=Math.abs(t),d=Math.pow(sP,2*u),p=ln[u];return p?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${p}) / ${d.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},Bg=(t,e,n,r)=>{let{type:o}=r,i=t===2&&e.length===2?t+1:t,l=`${"--"+(r.varPrefix?r.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${n}) * var(${l+i}))`},gu=(t,e)=>{let r=(t*e-t)/1.618,o=t*e-r,s=t+r,i=(o+s)/2;return[o,i,s]},mu=(t,e)=>gu(t,e).map(n=>n/t),yu=(t,e)=>{let{key:n,base:r,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[u,d,p]=gu(o,s);l>16?f=[u,d,p]:f=[u,p],f.forEach((g,h)=>{let m=~~(g/r*1e3)/1e3,y=i+(h+1),x=a+(h+1)/10,E=Bg(h+1,f,i,e),T={key:n+(h+1),variable:y,value:g,scaling:m,scalingVariable:E,index:x};$0(T,e)})},sP=1.618,cV=(t,e,n)=>{if(t>=0)return e*Math.pow(n,t);let r=Math.abs(t),o=e*Math.pow(n,t),s=e*Math.pow(n,r)/Math.pow(sP,2*r);return Math.max(o,s)},xe=t=>{let{type:e,base:n,ratio:r,range:o,subSequence:s}=t,i=Math.abs(o[0])+Math.abs(o[1]),c="--"+(t.varPrefix?t.varPrefix+"-":"")+(e&&e.replace(".","-"))+"-";for(let l=0;l<=i;l++){let f=o[1]-l,u=ln[f],d=cV(f,n,r),p=~~(d/n*100)/100,g=c+u,h=hu(f,t),m={key:u,variable:g,value:d,base:n,scaling:p,scalingVariable:h,ratio:r,index:f};$0(m,t),s&&yu(m,t)}return t},F0=(t,e=0)=>{let{type:n,base:r,ratio:o,subSequence:s}=t,i=v(e)?e:ln[e],a=v(e)?Object.entries(ln).find(([,m])=>m===e)?.[0]:e;if(!i)return console.warn(`Position ${e} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...t},l=r*Math.pow(o,a),f=~~(l/r*100)/100,p="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-"))+"-"+i,g=hu(a,t),h={key:i,variable:p,value:l,base:r,scaling:f,scalingVariable:g,ratio:o,index:a};return $0(h,c),s&&yu(h,c),c},qa=(t,e)=>{if(!t||!v(e)||!e)return;let n=t[e]||t[e.toLowerCase()];if(n!==void 0)return e.charCodeAt(0)===45?`calc(${n} * -1)`:n;if(e.charCodeAt(0)!==45||e.length<2)return;let r=e.slice(1),o=t[r]||t[r.toLowerCase()];if(o!==void 0)return`calc(${o} * -1)`},Us=(t="A",e)=>{let n=P(),{unit:r}=n;if(v(t)&&Ft(t))return`var(${t})`;if(v(t)&&/^(?:env|var|calc|min|max|clamp)\(/.test(t.trim()))return t;if(v(t)){let S=qa(n.sizes,t);if(S!==void 0)return S}let{sequence:o,unit:s=r.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(kl(t)||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let d=`--${e.varPrefix?e.varPrefix+"-":""}${Qf(e.type.replace(".","-"))}-`,p=t.toUpperCase(),g=p.slice(0,1)==="-"?"-":"",h=g?p.slice(1):p,m="";h.includes("_")&&(m="_"+h.split("_")[1].toLowerCase(),h=h.split("_")[0]);let y=S=>a.test(S)?`var(${d}${S}${m})`:S;if(h.includes("+")){let[S,w]=h.split("+"),b=`${y(S)} + ${y(w)}`;return g?`calc((${b}) * -1)`:`calc(${b})`}else if(h.includes("*")){let[S,w]=h.split("*"),b=`${y(S)} * ${y(w)}`;return g?`calc((${b}) * -1)`:`calc(${b})`}else if(h.includes("-")){let[S,w]=h.split("-"),b=`${y(S)} - ${y(w)}`;return g?`calc((${b}) * -1)`:`calc(${b})`}!o[h]&&h.length===2&&(n.verbose&&console.warn(h,"- value is not found because `subSequence` is set to false"),h=h.slice(0,1));let x=o?o[h]:null,E=!!(i||n.useVariable);if((E?rV(o,h,e,n.sizes):!!x)===!1){if(M0>0)return;if(console.warn("can't find",o,h),nt())throw new Error(`[smbls] Unresolvable design-system token "${t}"`+(e.type?` for sequence "${e.type}"`:"")+" \u2014 not a registered `sizes` name and not a valid spacing/typography/timing sequence letter. The CSS property using it would silently be dropped in production. Register the token in `designSystem/sizes.js` (or the relevant sequence family) or fix the typo.");return}if(E){let S=`var(${d}${h}${m})`;return g?`calc(${S} * -1)`:S}return s==="ms"||s==="s"?g+x.val+s:g+x.scaling+s},bu=(t,e)=>{if(!["+","-","*","/",","].filter(i=>t.includes(i+" ")).length)return t;let r=/(\s+-\s+|\s*[+*/,]\s*)/,o=[];return oV(t,o).split(r).map(i=>{let a=sV(i,o),c=a.trim();return!c||["+","-","*","/",","].includes(c)?a:aV(c,e)}).join("")},nr=(t,e,n,r)=>{if(typeof t!="string")return P().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!r&&t.includes("(")){if(/^(?:env|var)\(/.test(t.trim()))return{[e]:t};let s=Lr(t);r=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=bu(t,n):t=Us(t,n),{[e]:r?`${r}(${t})`:t}},jg=(t,e)=>ln[t-e],_u=t=>{let{h1Matches:e,sequence:n}=t;return new Array(6).fill(null).map((r,o)=>{let s=jg(e,o);return n[s]})};M();var B0=(t,e)=>{let n=P(),{cssVars:r}=n;z(t.value)||(r[t.var]=t.value)},wu=(t,e,n)=>{let r=P(),{unit:o}=r,s=e.unit||o.default,{base:i,ratio:a,type:c}=e,f="--"+(e.varPrefix?e.varPrefix+"-":"")+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let u=`${f}-ratio`;t[u]=a;let[d,p,g]=mu(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${p/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${g/a})`},iP=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Dr=(t,e={})=>{let n=P(),{unit:r,timing:o,cssVars:s}=n,i=t.unit||r.default,a=iP.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||wu(s,t,e);for(let u in l){let d=l[u],p=(t.type===o.type?l[u].val:f[u])+a;if(!c){s[d.variable+"_default"]=p,s[d.variable]=d.scalingVariable;continue}e.useDefault===!1?s[d.variable]=p:(s[d.variable+"_default"]=p,s[d.variable]=`var(${d.variable+"_default"})`)}},Ao=(t,e,n={})=>{let r=P(),{unit:o,media:s,cssVars:i}=r,a=e.slice(1),c=t[e],l=c.unit||t.unit||o.default,f=iP.has(l)?"rem":l,{mediaRegenerate:u}=t,{sequence:d,scales:p}=c,g=s[a];if(!g&&r.verbose&&console.warn("Can't find media query ",g),!u){let h=i[`@media ${g}`];h||(h=i[`@media ${g}`]={}),wu(h,c,n);let m=t.unit||o.default;if(f!==m&&d)for(let y in d){let x=d[y],E=p[y]+f;h[x.variable+"_default"]=E,h[x.variable]=E}return}for(let h in d){let m=d[h],y=(is(f)?p[h]:d[h].val)+f;!g&&r.verbose&&console.warn("Can't find query ",g);let x=i[`@media ${g}`];x||(x=i[`@media ${g}`]={}),x[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};M();var cP=xr(),Su=t=>{let e=P(),n="";for(let r in t)e.__svgCache[r]||(e.__svgCache[r]=!0,n+=t[r]);return n},lV=t=>{let e=t&&(t.default||t);if(!v(e))return cP&&console.warn("parseRootAttributes:",e,"is not a string"),{};let n=e.match(/<svg\s+(.*?)>/);if(!n||!n[1])return{};let o=n[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return o?o.reduce((s,i)=>{let[a,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{}):{}},fV=(t,e)=>{let n=[];if(t.replace(/id="([^"]*)"/g,(o,s)=>(n.push(s),o)),!n.length)return t;let r=t;for(let o of n){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${e}-${o}`;r=r.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return r},aP=new Set,xu=(t,e)=>{let n=e&&e.default?e.default:e;if(!v(n))return cP&&!aP.has(t)&&(aP.add(t),console.warn("convertSvgToSymbol:",t,"is not a string")),"";e=n;let r=e.match(/^<symbol\b[^>]*\bid="([^"]*)"/);if(r){let u=r[1];return u===t?e:e.replace(`id="${u}"`,`id="${t}"`)}let o=lV(e),{width:s,height:i}=o,a=o.viewBox||`0 0 ${s||24} ${i||24}`,f=fV(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${a}"`);return f=f.replace(/^<symbol\b[^>]*>/,u=>u.replace(/\s(width|height)="[^"]*"/g,"")),f=f.replace("</svg","</symbol"),f=pV(f),f},uV="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",dV=new RegExp(`<(${uV})\\b([^>]*?)\\s*/>`,"g"),pV=t=>t.replace(dV,"<$1$2></$1>");var Qa={};B(Qa,{STANDARD_SCHEME_QUERIES:()=>Vg,__resetSkinWarnings:()=>tk,appendSVGSprite:()=>Fu,appendSvgIconsSprite:()=>Zs,applyDocument:()=>$u,applyHeadings:()=>qg,applyReset:()=>Bu,applySkins:()=>ju,applySpacingSequence:()=>vu,applyTimingSequence:()=>Nu,applyTypographySequence:()=>Du,atSchemes:()=>Oo,buildSkinVarStyles:()=>Js,checkIfBoxSize:()=>Eu,colorPairSchemes:()=>ku,forcedScheme:()=>qs,getColor:()=>dt,getFontFamily:()=>Lu,getFontSizeByKey:()=>Iu,getMediaBorder:()=>Cu,getMediaColor:()=>Gt,getMediaTheme:()=>un,getSafeInk:()=>Wg,getSafeInkInfo:()=>H0,getShadow:()=>Tu,getShapeByKey:()=>Mu,getSpacingBasedOnRatio:()=>Ve,getSpacingByKey:()=>Ht,getTheme:()=>G0,getTimingByKey:()=>ke,getTimingFunction:()=>ze,inForcedColors:()=>Vs,isForcedColorsQuery:()=>zs,isIntendedSystemColorWord:()=>Hs,isPlainColor:()=>Co,literalPairCompound:()=>Gs,literalSchemeMap:()=>Mr,quietColorProbe:()=>Ws,resolveBorderValue:()=>fe,resolveColorRgb:()=>Ks,resolveColorsInGradient:()=>Po,resolveShadowNonColorWord:()=>Ya,resolveShadowValue:()=>Ys,runThroughMedia:()=>Kg,schemeGuardSelector:()=>Hg,schemeMediaQuery:()=>zg,setAdaptiveSchemeVar:()=>Ro,setColor:()=>Ir,setFont:()=>Pu,setFontFamily:()=>Za,setGradient:()=>Ga,setMediaTheme:()=>Xa,setSVG:()=>Ja,setShadow:()=>Lo,setSvgIcon:()=>Xs,setTheme:()=>Ou,splitSpacedValue:()=>Au});M();var Vg={light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"},zg=(t,e)=>{let n=e.media&&e.media[t]||Vg[t];return n?"@media "+(n==="print"?`${n}`:`screen and ${n}`):null},Hg=t=>{let e=t.scopeSelector||":root";return`${e===":root"?":root:not([data-theme])":`:root:not([data-theme]) ${e}:not([data-theme])`} &`},fn=new Set,dP=new Set(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"]),pP=["AccentColor","AccentColorText","ActiveText","ButtonBorder","ButtonFace","ButtonText","Canvas","CanvasText","Field","FieldText","GrayText","Highlight","HighlightText","LinkText","Mark","MarkText","SelectedItem","SelectedItemText","VisitedText","ActiveBorder","ActiveCaption","AppWorkspace","Background","ButtonHighlight","ButtonShadow","CaptionText","InactiveBorder","InactiveCaption","InactiveCaptionText","InfoBackground","InfoText","Menu","MenuText","Scrollbar","ThreeDDarkShadow","ThreeDFace","ThreeDHighlight","ThreeDLightShadow","ThreeDShadow","Window","WindowFrame","WindowText"],hP=new Set(pP.map(t=>t.toLowerCase())),hV=new Set(pP),j0=0,Vs=t=>{j0++;try{return t()}finally{j0--}},gV=/(^|[^\w-])(not\s+)?\(\s*forced-colors\s*(?::\s*(active|none)\s*)?\)/i,zs=t=>{if(!v(t))return!1;let e=t.match(gV);return!e||e[2]||e[3]&&e[3].toLowerCase()==="none"?!1:!/^\s*(?:@media\s+)?not\b/i.test(t)},gP=t=>j0>0||hV.has(t),Hs=t=>v(t)&&hP.has(t.toLowerCase())&&gP(t),mV=/^(?:#[0-9a-f]{3,8}$|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix)\()/i,yV=/gradient\(|url\(|image-set\(|var\(/i,bV=new Set(["transparent","currentColor","currentcolor"]),Co=t=>{if(!v(t))return!1;let e=t.trim();return yV.test(e)?!1:mV.test(e)?!0:dP.has(e)||bV.has(e)},Ug=new Set,lP=t=>{if(!t)return!1;let{color:e,gradient:n}=t;return!!(k(e)&&Object.keys(e).length||k(n)&&Object.keys(n).length)},fP=new Set,U0=0,Ws=t=>{U0++;try{return t()}finally{U0--}},_V=(t,e)=>{if(!v(t)||t.indexOf(" ")===-1)return null;let n=t.replace(/\s+/g,""),r=ee(n);if(!r||r.passthrough||r.cssVar)return null;let{color:o,gradient:s}=e;return!o[r.name]&&!s[r.name]?null:n},V0=(t,e,n)=>{let r=_V(t,n);if(r){if(!fP.has(t)){fP.add(t);let a=n&&n.name?` (design system \`${n.name}\`)`:"";console.warn(`[scratch] color token \`${t}\` has a space before its alpha/tone modifier${a} \u2014 did you mean \`${r}\`? The space form never resolves, so the atomic class it mints carries no CSS value and paints invisibly. Dropped rather than shipped invisible.`)}return}let o=ee(t);if(o&&o.name&&!o.passthrough&&!o.cssVar&&(o.alpha!==void 0||o.tone!==void 0)&&lP(n)&&!n.color[o.name]&&!n.gradient[o.name]){if(!U0&&!Ug.has(t)){Ug.add(t);let a=n&&n.name?` (design system \`${n.name}\`)`:"";console.warn(`[scratch] color token \`${t}\` does not resolve${a} \u2014 \`${o.name}\` is not in the palette. Dropped rather than emitted as a raw value, which is invalid CSS the browser discards silently. Define it in designSystem/color.js or use a palette token.`)}return}let s=v(e)?e.toLowerCase():"",i=hP.has(s);if(!dP.has(s)&&!i||i&&gP(e)||!lP(n))return t;if(!Ug.has(s)){Ug.add(s);let a=n&&n.name?` (design system \`${n.name}\`)`:"";console.warn(i?`[scratch] color \`${t}\` is a CSS system colour that is not in the palette${a}. Dropped rather than emitted as a raw browser colour: a system colour paints the value the user's desktop chose (\`highlight\` is the selection blue), so it ignores the design system and is not even stable across two machines. Define it in designSystem/color.js or use a palette token.`:`[scratch] color \`${t}\` is a CSS named colour that is not in the palette${a}. Dropped rather than emitted as a raw browser colour, which renders theme-blind and can be unreadable ("looks designed", so it ships unnoticed). Define it in designSystem/color.js or use a palette token.`)}},mP=(t,e,n)=>{let r=e!==void 0?e:1;if(!n)return`rgb(from ${t} r g b / ${r})`;if(n.charCodeAt(0)===43||n.charCodeAt(0)===45){let s=parseFloat(n),i=s<0?"-":"+",a=Math.abs(s);return`rgb(from ${t} calc(r ${i} ${a}) calc(g ${i} ${a}) calc(b ${i} ${a}) / ${r})`}return`hsl(from ${t} h s ${n}% / ${r})`},dt=(t,e,n)=>{let r=n||P();if(!v(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(Ft(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(I(t))[o,s,i]=t;else{let u=ee(t);if(!u){let{color:d,gradient:p}=r,g=p[t]||d[t];return g?(e&&g[e]&&(g=g[e]),r.useVariable?`var(${g.var})`:g.value):V0(t,t,r)}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}=r,l=a[o]||c[o];if(!l)return V0(t,o,r);if(e)if(l[e]!==void 0)l=l[e];else if(I(l)){let u=e.charCodeAt(0)===64?e.slice(1):e;u==="dark"?l=l[1]!==void 0?l[1]:l[0]:(u!=="light"&&r.verbose&&console.warn(t," - array-form color tokens only support light/dark; falling back to the light slot for scheme",e),l=l[0])}else r.verbose&&console.warn(t," - does not have ",e);if(v(l)){if(fn.has(o))return l;fn.add(o);try{return dt(l,null,n)}finally{fn.delete(o)}}let f=l.rgb;if(!f){let u=r.useVariable?`var(${l.var})`:l.value;return(s||i)&&u?mP(u,s,i):u}return i&&!l[i]&&(f=In(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, ${l.alpha!==void 0?l.alpha:1})`:r.useVariable?`var(${l.var})`:l.value!==void 0?l.value:`rgb(${f})`},uP=t=>{let e=sn(t);return!e||e.length<3||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===0&&t.toLowerCase()!=="transparent"?null:{rgb:[e[0],e[1],e[2]],alpha:e[3]!==void 0?e[3]:1}},wV=(t,e)=>{if(!e)return t;let n=t.rgb;if(e.tone){let o=In(n,e.tone);n=v(o)?o.split(",").map(s=>parseFloat(s.trim())):o}let r=e.alpha!==void 0?parseFloat(e.alpha):t.alpha;return{rgb:n,alpha:r}},Ks=(t,e,n)=>{let r=e||P();if(!v(t))return null;let o=ee(t);if(o){if(o.passthrough){let d=sn(o.passthrough);return d&&d.length>=3?{rgb:[d[0],d[1],d[2]],alpha:d[3]!==void 0?d[3]:1}:null}if(o.cssVar)return null}let s=o?o.name:t,{color:i,gradient:a}=r,c=i[s]||a[s];if(!c)return uP(t);if(v(c)){let d;if(fn.has(s))d=uP(c);else{fn.add(s);try{d=Ks(c,r,n)}finally{fn.delete(s)}}return d?wV(d,o):null}if(c.rgb===void 0&&k(c)){let d=`@${n||"light"}`;c=c[d]!==void 0?c[d]:c["@light"]}if(!c||c.rgb===void 0)return null;let l=c.rgb;o&&o.tone&&(l=In(l,o.tone));let f=v(l)?l.split(",").map(d=>parseFloat(d.trim())):l,u=o&&o.alpha!==void 0?parseFloat(o.alpha):c.alpha!==void 0?c.alpha:1;return{rgb:f,alpha:u}},yP=t=>k(t)&&t.value!==void 0&&(t.rgb!==void 0||t.var!==void 0),Oo=t=>{let e=[];for(let n in t)n.charCodeAt(0)===64&&e.push(n.slice(1));return e},z0=t=>{if(!k(t)||t.value!==void 0)return null;for(let n in t)if(n!=="var"&&(n.charCodeAt(0)!==64||!yP(t[n])))return null;let e=Oo(t);return e.length?e:null},SV=t=>v(t&&t.var)&&z0(t)!==null,xV=(t,e,n,r,o)=>{let s=z0(e);if(!s)return;if(v(e.var)){let c=`var(${e.var})`;return n||r?mP(c,n,r):c}if(s.length!==2||!s.includes("light")||!s.includes("dark"))return;let i=dt(t,"@light",o),a=dt(t,"@dark",o);if(!(!Co(i)||!Co(a)))return i===a?i:`light-dark(${i}, ${a})`},ku=(t,e)=>{if(!t)return null;let n=e||P(),r=ee(t),o=r?r.name:t,s=o&&n.color&&n.color[o];if(I(s))return["light","dark"];if(!k(s)||s.value!==void 0)return null;let i=Oo(s);return i.length?i:null},Mr=(t,e,n)=>{let r={},o=Hg(e);for(let s of t){let i=n(s);if(i!==void 0&&(r[`[data-theme="${s}"] &`]=i,s==="light"||s==="dark")){let a=zg(s,e);a&&(r[a]={[o]:i})}}return r},qs=(t,e)=>t||(e.globalTheme==="auto"?null:e.globalTheme),Gs=(t,e,n,{commas:r,resolve:o,resolveScheme:s})=>{let i=ja(t,r),a=null;for(let f of i)for(let u of f){let d=ku(u,n);if(d)for(let p of d)(a||(a=[])).includes(p)||a.push(p)}if(!a)return;let c=f=>Ua(i.map(u=>u.map(d=>{if(!ku(d,n))return d;let p=f(d);return v(p)?p:d}))),l=qs(e,n);return l?o(c(f=>Gt(f,l,n)),l):Mr(a,n,f=>s(f,c))},Gt=(t,e,n)=>{let r=n||P();if(e=qs(e,r),!v(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(Ft(t))return`var(${t})`;let o,s,i;if(I(t))o=t[0];else{let u=ee(t);if(u){if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;o=u.name,s=u.alpha,i=u.tone}else o=t}let{color:a,gradient:c}=r,l=a[o]||c[o],f=k(l);if(f&&l.value)return dt(t,`@${e}`,n);if(f){if(r.useVariable&&l.var)return s||i?dt(t,null,n):`var(${l.var})`;if(e){if(!r.useVariable&&a[o]===l){let u=xV(t,l,s,i,n);if(u!==void 0)return u}return dt(t,`@${e}`,n)}else return Mr(Oo(l),r,u=>dt(t,"@"+u,n))}else return V0(t,o,r)},Ro=(t,e,n,r)=>{let s=`--${r.varPrefix?r.varPrefix+"-":""}${e}-${n}`,i,a={};for(let c in t){if(c.charCodeAt(0)!==64)continue;let l=c.slice(1),f=t[c],u=f&&(f.value||f);!u||typeof u!="string"||(a[l]=u,(l==="light"||i===void 0)&&(i=u))}if(i!==void 0){r.cssVars[s]=i,r.cssMediaVars||(r.cssMediaVars={});for(let c in a){let l=`[data-theme="${c}"]`;if(r.cssMediaVars[l]||(r.cssMediaVars[l]={}),r.cssMediaVars[l][s]=a[c],c==="light"||c==="dark"){let f=`@media (prefers-color-scheme: ${c})`;r.cssMediaVars[f]||(r.cssMediaVars[f]={}),r.cssMediaVars[f][s]=a[c]}}return t.var=s,s}},Ir=(t,e,n)=>{let r=P();if(yP(t))return r.useVariable&&t.var&&(r.cssVars[t.var]=t.value),t;if(!r.useVariable&&SV(t))return t;if(v(t)&&Ft(t)){let h=t.slice(2),m=h.trim().indexOf(" ")!==-1;if(t=m?h:dt(h),m||!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let y=h.trim().split(/\s+/),x=r.color[y[0]];if(x&&!x.value&&!x.rgb&&(v(x)||I(x)||k(x))&&!fn.has(y[0])){fn.add(y[0]);try{r.color[y[0]]=Ir(x,y[0])}finally{fn.delete(y[0])}x=r.color[y[0]]}if(x&&x.value){let E=x.rgb,T=y[1]!==void 0?y[1]:"1",S=y[2];S&&(E=In(E,S)),t=`rgba(${E}, ${T})`}else{let E=y[2],T=y[1]!==void 0?y[1]:"1";if(E)try{let S=sn(y[0]);S&&S.length>=3?t=`rgba(${In(S.slice(0,3).join(", "),E)}, ${T})`:t=y[0]}catch{t=y[0]}else t=y[0]}}}if(I(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),k(t)){let h={};for(let m in t)m!=="var"&&(h[m]=Ir(t[m],e,m.slice(0,1)==="@"?m.slice(1):m));return r.useVariable&&Ro(h,"color",e,r),h}let s=`--${r.varPrefix?r.varPrefix+"-":""}color-${e}`+(n?`-${n}`:""),i=t.value||t;if(v(i)&&!i.includes("(")&&!i.startsWith("#")){let h=ee(i);if(h&&h.name&&!h.passthrough&&!h.cssVar){let m=r.color[h.name];if(m&&!m.value&&!m.rgb&&(v(m)||I(m)||k(m))&&!fn.has(h.name)){fn.add(h.name);try{r.color[h.name]=Ir(m,h.name)}finally{fn.delete(h.name)}}let y=r.color[h.name],x=z0(y);if(x){if(h.alpha===void 0&&h.tone===void 0)return y;let E={};for(let T of x){let S=y["@"+T],w=S.rgb;h.tone&&(w=In(w,h.tone));let b=h.alpha!==void 0?parseFloat(h.alpha):S.alpha!==void 0?S.alpha:1;E["@"+T]=`rgba(${w}, ${b})`}return Ir(E,e,n)}if(y&&y.rgb){let E=y.rgb;h.tone&&(E=In(E,h.tone));let T=h.alpha!==void 0?parseFloat(h.alpha):y.alpha!==void 0?y.alpha:1;i=`rgba(${E}, ${T})`}}}let a=sn(i),[c,l,f,u=1]=a,d=parseFloat(u.toFixed(2)),p=`${c}, ${l}, ${f}`,g=`rgba(${p}, ${d})`;return r.useVariable&&(r.cssVars[s]=g),{var:s,rgb:p,alpha:d,value:g}},kV=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),Po=(t,e)=>{let n=t.indexOf("(");if(n===-1)return t;let r=t.slice(0,n+1),o=t.slice(n+1,t.lastIndexOf(")")),s=")",i=Dn(o),a=!1,c=i.map(l=>(l=l.trim(),l.split(/\s+/).map(u=>{if(!u||/^\d/.test(u)||u==="0"||kV.has(u)||u==="transparent"||Tr.test(u))return u;let d=dt(u);return an(d)?(a=!0,d):u}).join(" ")));return a?r+c.join(", ")+s:t},Ga=(t,e,n)=>{let r=P();if(k(t)&&t.value!==void 0&&t.var!==void 0)return r.useVariable&&(r.cssVars[t.var]=t.value),t;if(v(t)&&Ft(t)&&(t=dt(t.slice(2))),I(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),k(t)){let a={};for(let c in t)c!=="var"&&(a[c]=Ga(t[c],e,c.slice(0,1)==="@"?c.slice(1):c));return r.useVariable&&Ro(a,"gradient",e,r),a}let s=`--${r.varPrefix?r.varPrefix+"-":""}gradient-${e}`+(n?`-${n}`:""),i=Po(t.value||t);return r.useVariable&&(r.cssVars[s]=i),{var:s,value:i}};M();var bP=new Set,zt=(t,e)=>{if(bP.has(t)||(bP.add(t),typeof console>"u"||!console.error))return;let n=e&&e.__ref&&e.__ref.path,r=n&&n.length?` (at <${n.join(".")}>)`:"";console.error(`[smbls] "${t}"${r} is not in this build: symbols.json build.treeShakeFeatures left it out because neither the project source nor its build settings use it. Add "${t}" to build.treeShakeFeatures.keep.`)};var Wg=(t,e,n={},r)=>{if(globalThis.__SMBLS_BUILD_DROP_F_safeInk__)return zt("safeInk");let o=r||P(),{min:s=4.5,large:i=!1,scheme:a,meta:c=!1,maxIterations:l=15}=n,f=i?3:s,u=a||(o.globalTheme&&o.globalTheme!=="auto"?o.globalTheme:"light"),d=v(e)?e:String(e),p=ee(t),g=p&&!p.passthrough&&!p.cssVar?p.name:null,h=(ot,gt)=>c?{value:ot,...gt}:ot;if(g){let ot=o.color[`${g}Safe`];if(ot){let gt=`${d}@${u}`,X=ot[gt]!==void 0?ot[gt]:ot[d];if(X!==void 0){let q=X&&X.rgb!==void 0?o.useVariable&&X.var?`var(${X.var})`:X.value:dt(X,null,o);return h(q,{ratio:null,deviation:0,derived:!1,overridden:!0})}}}let m=dt(t,u?`@${u}`:null,o),y=Ks(t,o,u),x=Ks(e,o,u);if(!y||!x)return o.verbose&&console.warn("getSafeInk: could not resolve",t,e,"\u2014 returning hue unchanged"),h(m,{ratio:null,deviation:0,derived:!1,overridden:!1,unresolved:!0});let E=Fs(x.rgb,x.alpha),T=Fs(y.rgb,y.alpha,E),S=Va(T,E);if(S>=f-.02)return h(m,{ratio:S,deviation:0,derived:!1,overridden:!1});let[w,b,_]=ou(y.rgb),[,A,C]=su([w,b,_]),O=Ms(E)>.5,N=O?w:1-w,F=ot=>{let gt=O?w-ot:w+ot,X=Math.max(0,Math.min(1,gt));return{rgb:iu(X,A,C),L:X}},$=ot=>{let{rgb:gt}=F(ot),X=Fs(gt.map(q=>Math.round(q)),y.alpha,E);return Va(X,E)},Z=0,U=N,J=$(U)>=f;if(J)for(let ot=0;ot<l;ot++){let gt=(Z+U)/2;$(gt)>=f?U=gt:Z=gt}else Z=U;let{rgb:ft,L:et}=F(U),Q=ft.map(ot=>Math.round(ot)),G=$(U),K=y.alpha<1?`rgba(${Q.join(", ")}, ${y.alpha})`:`rgb(${Q.join(", ")})`,it=Math.abs(et-w)*100;return h(K,{rgb:Q,ratio:G,startRatio:S,deviation:it,derived:!0,overridden:!1,reachable:J})},H0=(t,e,n={},r)=>Wg(t,e,{...n,meta:!0},r);M();M();var EV=t=>{let n=P().spacing||{},r=parseFloat(t.spacingRatio),o={...n,ratio:Number.isFinite(r)?r:n.ratio,sequence:{},scales:{}};return xe(o),o},vV=t=>{for(let e in t){let n=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f}=t;Lt(n,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),xe(n),Ao(t,e)}},Eu=t=>{let e=t.toLowerCase(),n=e.includes("width")||e.includes("height"),r=e.includes("border")||e.includes("outline");return n&&!r},vu=()=>{let t=P(),{spacing:e}=t;xe(e),Dr(e),vV(e)},AV=t=>{let e=P(),{spacing:n}=e;return!t||!t.sequence?n:Object.keys(t.sequence).length>0?t:xe(t)},Ht=(t,e="padding",n,r)=>{let o=AV(n);if(v(t)){if(!r&&/^(?:env|var)\(/.test(t.trim()))return{[e]:t};if(!r&&t.includes("(")){let i=Lr(t);r=i[0],t=i[1]}}let s=r?[t]:v(t)&&t.includes("(")?ut(t):Is(t);if(I(s)){if(s.length>1){let i="";e==="borderWidth"&&(e="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},c=(l,f)=>nr(s[f],e+l+i,o,r);return a[s.length].map((l,f)=>c(l,f))}return nr(t,e,o,r)}},Ve=(t,e,n,r)=>{let o=P(),{spacing:s}=o,i=n||t[e];if(!r&&v(i)&&/^(?:env|var)\(/.test(i.trim()))return{[e]:i};if(!r&&v(i)&&i.includes("(")){let a=Lr(i);r=a[0],i=a[1]}if(t.spacingRatio){let a=EV(t);return Ht(i,e,a,r)}return Ht(i,e,s,r)},Au=t=>{let e=n=>{let r=["+","-","*","/"].includes(n),o=ta.some(i=>t.includes(i));return r||o?n:n.length<3&&/[A-Z]/.test(n)?n+"_default":n};return t.split(",").map(n=>n.trim()).map(e).join(",").split(" ").map(e).join(" ")};M();var TV={commas:!0},Ys=(t,e,n)=>v(t)?Cr(t,CV,TV,e,n):t,CV=(t,e,n)=>{let r=Ws(()=>dt(t,e));return an(r)?r:Ya(t,n)},Ya=(t,e)=>{if(/^\d/.test(t)||t.includes("px")||t.slice(-2)==="em"||t==="inset"||t==="none"||Hs(t)||Ns.has(t.toLowerCase()))return t;e&&e(t);let n=Pr(()=>Ht(t,"shadow"));return n&&n.shadow?n.shadow:t},Lo=(t,e,n,r)=>{let o=P();if(k(t)&&t.value!==void 0&&t.var!==void 0)return o.useVariable&&(o.cssVars[t.var]=t.value),t;if(I(t)){let a={"@light":Lo(t[0],e,"light"),"@dark":Lo(t[1],e,"dark")};return o.useVariable&&Ro(a,"shadow",e,o),a}if(k(t)){let a={};for(let c in t)a[c]=Lo(t[c],e,c.startsWith("@")?c.slice(1):c);return o.useVariable&&Ro(a,"shadow",e,o),a}v(t)&&(t=Ys(t));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${e}`+(n?`-${n}`:"");return o.useVariable&&(o.cssVars[i]=t),{var:i,value:t}},Tu=(t,e)=>{let n=P();if(e=qs(e,n),!v(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(Ft(t))return`var(${t})`;let[r]=I(t)?t:t.split(" "),s=n.shadow[r],i=k(s);if(!s)return n.verbose&&console.warn("Can't find color ",r),t;if(i&&!s.value&&n.useVariable&&s.var)return`var(${s.var})`;if(e){let a=s["@"+e]||s[e];if(a)return a.value!==void 0?a.value:a;n.verbose&&console.warn(t," - does not have ",e)}return i&&s.value?s.value:i?Mr(Oo(s),n,a=>{let c=s["@"+a];return c&&(c.value!==void 0?c.value:c)}):(n.verbose&&console.warn("Can't find color",t),t)};M();var OV=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),RV={commas:!1,keywords:OV},fe=(t,e,n)=>{if(t==null)return;let r=t+"",o=r.trim();return o==="none"||o==="0"||o==="initial"||o==="inherit"||o==="unset"?r:Cr(r,PV,RV,e,n)},PV=(t,e,n)=>{if(/^\d/.test(t))return t;let r=Ws(()=>dt(t,e));if(an(r))return r;if(Hs(t)||Ns.has(t.toLowerCase()))return t;n&&n(t);let o=Pr(()=>Ht(t,"border"));return o&&o.border?o.border:t},Cu=(t,e,n)=>{let r=n||P();if(r.useVariable||!v(t))return fe(t);let o=Gs(t,e,r,{commas:!1,resolve:s=>fe(s),resolveScheme:s=>fe(t,"@"+s)});return o!==void 0?o:fe(t)};M();var LV=new Set(["black","white","red","green","blue","yellow","orange","purple","pink","brown","gray","grey","cyan","magenta","lime","olive","navy","teal","aqua","maroon","silver","fuchsia","transparent","currentColor","currentcolor","inherit","initial","unset","none","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),_P=["color","Color","background","Background","fill","Fill","stroke","Stroke"],kP=t=>{for(let e=0;e<_P.length;e++)if(t.includes(_P[e]))return!0;return!1},DV={boxShadow:Ys,textShadow:Ys,border:fe,borderTop:fe,borderRight:fe,borderBottom:fe,borderLeft:fe,outline:fe,columnRule:fe},IV=t=>{if(!t)return!1;let e=ee(t);return!e||!e.name||e.passthrough||e.cssVar?!1:e.alpha!==void 0||e.tone!==void 0},wP=new Set,MV=(t,e,n,r,o,s)=>{if(!nt())return;let i=`${t}::${e}::${n||""}::${r}`;wP.has(i)||(wP.add(i),console.warn(`[smbls/scratch] theme param "${e}" on "${t}"`+(n?` (${n})`:"")+` did not fully resolve: "${r}" -> "${o}" still contains the unresolved token "${s}". This is not valid CSS \u2014 the browser will drop the whole declaration. Register "${s}" as a design-system color token or fix the typo.`))},q0=(t,e,n,r)=>{let o=DV[e];if(!o)return dt(n,r);let s=null,i=o(n,r,a=>{!s&&IV(a)&&(s=a)});return s&&MV(t,e,r,n,i,s),i},G0=(t,e)=>un(t,e),NV=t=>k(t)&&z(t.value),$V=t=>{for(let e in t){let n=t[e];if(v(n)&&n.startsWith("var(--"))return!0}return!1},Ou=(t,e)=>{let n=P();return NV(t)?!n.useVariable&&$V(t)?t:Xa(t.value,e):Xa(t,e)},EP=(t,e)=>{let n=new Set;for(let r of e){let o=r.slice(0,1);if(!(o==="@"||o==="."||o===":")&&kP(r))for(let s in t){if(n.has(s))continue;let i=t[s]?.[r];if(i===void 0)continue;let a=dt(i,`@${s}`);a!==void 0&&v(a)&&/^[a-z][a-zA-Z]+$/.test(a)&&!LV.has(a)&&n.add(s)}}return n},vP=t=>t.startsWith("[data-theme=")||t.startsWith("@media"),Ru=(t,e)=>{for(let n in e){let r=e[n];k(r)?Ru(t[n]||(t[n]={}),r):t[n]=r}return t},SP=(t,e,n,r,o)=>Ru(t,Mr(r,o,s=>({[e]:n[s]}))),AP=(t,e,n,r)=>{let o={},s=Object.keys(e).filter(c=>e[c]!==n);if(!s.length)return n===void 0?void 0:(o[t]=n,o);let i=e.light!==void 0?e.light:n,a=e.dark!==void 0?e.dark:n;if(kP(t)&&Co(i)&&Co(a)){o[t]=i===a?i:`light-dark(${i}, ${a})`;let c=Object.keys(e).filter(l=>l!=="light"&&l!=="dark");SP(o,t,e,c,r)}else n!==void 0&&(o[t]=n),SP(o,t,e,s,r);return o},FV=new Set(["backdropFilter","WebkitBackdropFilter"]),TP=new WeakSet,CP=(t,e,n,r)=>{let o=n.globalTheme!==void 0?n.globalTheme:"auto",s=o&&o!=="auto"?String(o).replace(/^'|'$/g,""):null,i=new Set(r?Object.keys(r):[]);for(let l in t)if(t[l])for(let f of Object.keys(t[l]))i.add(f);let a=EP(t,i),c={};for(let l of i){let f=l.slice(0,1);if(f==="@")continue;if(f==="."||f===":"){let m={};for(let E in t)z(t[E]?.[l])&&(m[E]=t[E][l]);let y=r&&z(r[l])?r[l]:void 0;if(!Object.keys(m).length&&!y)continue;let x=f==="."?l.slice(1):l.replace(/^:+/,"");c[l]=CP(m,`${e}-${x}`,n,y);continue}let u=r&&!z(r[l])?r[l]:void 0,d=new Set(Object.keys(t));u!==void 0&&(d.add("light"),d.add("dark"),s&&d.add(s));let p={},g;for(let m of d){if(a.has(m))continue;let y=t[m]?.[l];if((y===void 0||z(y))&&(y=u),y===void 0)continue;let x=q0(e,l,y,`@${m}`);x!==void 0&&(p[m]=x,(s&&m===s||!s&&(m==="light"||g===void 0))&&(g=x))}let h=AP(l,p,g,n);h&&(Ru(c,h),c[`.${l}`]=h)}return(c.background||c.color||c.backgroundColor)&&(c[".inversed"]={color:c.background||c.backgroundColor,background:c.color}),c},W0=(t,e,n,r)=>{let{cssVars:o}=n;n.cssMediaVars||(n.cssMediaVars={});let s=n.cssMediaVars,i=n.globalTheme!==void 0?n.globalTheme:"auto",a=i&&i!=="auto"?String(i).replace(/^'|'$/g,""):null,c={},l=new Set(r?Object.keys(r):[]);for(let u in t)if(t[u])for(let d of Object.keys(t[u]))l.add(d);let f=EP(t,l);for(let u of l){let d=u.slice(0,1),p=z(r?.[u])||Object.values(t).some(g=>z(g?.[u]));if(d==="."&&p){let g=u.slice(1),h={};for(let y in t)z(t[y]?.[u])&&(h[y]=t[y][u]);let m=z(r?.[u])?r[u]:void 0;c[u]=W0(h,`${e}-${g}`,n,m)}else if(d===":"&&p){let g=u.replace(/^:+/,""),h={};for(let y in t)z(t[y]?.[u])&&(h[y]=t[y][u]);let m=z(r?.[u])?r[u]:void 0;c[u]=W0(h,`${e}-${g}`,n,m)}else if(d!=="@"&&d!=="."&&d!==":"){let h=`--${n.varPrefix?n.varPrefix+"-":""}theme-${e}-${u}`,m=r&&!z(r[u])?r[u]:void 0,y=new Set(Object.keys(t));m!==void 0&&(y.add("light"),y.add("dark"),a&&y.add(a));let x,E=!1,T={};for(let S of y){if(f.has(S))continue;let w=t[S]?.[u];if((w===void 0||z(w))&&(w=m),w===void 0)continue;let b=q0(e,u,w,`@${S}`);if(b===void 0)continue;E=!0,T[S]=b,(a&&S===a||!a&&(S==="light"||x===void 0))&&(x=b);let _=`[data-theme="${S}"]`;if(s[_]||(s[_]={}),s[_][h]=b,S==="dark"||S==="light"){let A=`@media (prefers-color-scheme: ${S})`;s[A]||(s[A]={}),s[A][h]=b}}if(x!==void 0&&(o[h]=x),!E)continue;if(FV.has(u)){let S=AP(u,T,x,n);S&&(Ru(c,S),c[`.${u}`]=S);continue}c[u]=`var(${h})`,c[`.${u}`]={[u]:c[u]}}}(c.background||c.color||c.backgroundColor)&&(c[".inversed"]={color:c.background||c.backgroundColor,background:c.color});for(let u in c)vP(u)&&z(c[u])&&TP.add(c[u]);return c},Xa=(t,e,n,r)=>{let o=P(),{cssVars:s}=o,i={value:t},a=!n&&!r,c,l;if(z(t)){if(a&&o.useVariable){let f={},u={};for(let d in t)d.startsWith("@")?z(t[d])&&(f[d.slice(1)]=t[d]):u[d]=t[d];(Object.keys(f).length||Object.keys(u).length)&&(l=W0(f,e,o,u),Object.assign(i,l))}else if(a){let f={},u={};for(let d in t)d.startsWith("@")?z(t[d])&&(f[d.slice(1)]=t[d]):u[d]=t[d];c=CP(f,e,o,u),Object.assign(i,c)}for(let f in t){let u=f.slice(0,1),d=t[f];if(u==="@"||u===":"||u==="."){let p=u==="@"&&f;i[f]=Xa(d,e,f,r||p)}else if(!a){let p=q0(e,f,d,r),g=[...new Set([r,n].filter(x=>x).map(x=>x.slice(1)))],h=g.length?"-"+g.join("-"):"",y=`--${o.varPrefix?o.varPrefix+"-":""}theme-${e}${h}-${f}`;o.useVariable?(o.useThemeSuffixedVars&&(s[y]=p),i[f]=`var(${y})`):i[f]=p,i[`.${f}`]={[f]:i[f]}}}if(c)for(let f in c){let u=f.slice(0,1);(u==="."||u===":")&&z(t[f])&&(i[f]=c[f])}if(l)for(let f in l){let u=f.slice(0,1);(u==="."||u===":")&&z(t[f])&&(i[f]=l[f])}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(v(t)&&Ft(t)){let u=o.theme[t.slice(2)];return un(u,r)}return i},K0=(t,e)=>{let n={};for(let r in t){let o=r.slice(0,1);if(z(t[r]))if(vP(r)&&(e||TP.has(t[r])))n[r]=Ru({},t[r]);else{if(o==="@")continue;o===":"?n[`&${r}`]=K0(t[r],e):o==="."&&(n[`&${r}`]=K0(t[r],e))}else n[r]=t[r]}return n},OP=(t,e)=>{let n=e.shift();return t[n]?OP(t[n],e):t},xP=(t,e)=>I(e)?OP(t,e):v(e)&&t[e]?t[e]:t;var un=(t,e)=>{let n=P();if(v(t)&&Ft(t)&&(t=un(t.slice(2))),!t||!v(t)){n.verbose&&console.warn(`${t} - Theme is not a string`);return}let[r,...o]=I(t)?t:t.split(" "),s=n.theme[r];return s&&o.length?s=xP(s,o):s&&e&&(s=xP(s,e)),K0(s,!n.useVariable)};M();M();var Pu=(t,e)=>{let n=P(),r=`--font-${e}`;if(!t||I(t)&&!t[0])return;let o;if(t.isVariable){let s=cn(t.url,n.files)||t.url;za(s)?o=Ha(s):o=ko(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap",unicodeRange:t.unicodeRange})}else if(t[0])o=Bs(e,t,n.files);else{let s=Array.isArray(t.url)?t.url.map(i=>cn(i,n.files)||i):cn(t.url,n.files)||t.url;o=ko(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch,unicodeRange:t.unicodeRange})}return{var:r,value:t,fontFace:o}},LP=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong","inherit","initial","unset","revert","revert-layer"]),BV=t=>LP.has(t.toLowerCase())||/[\s,'"(]/.test(t.trim()),RP=new Set,Lu=(t,e)=>{let n=P(),{fontFamily:r}=n,o=e||r,s=Or(o,t);if(s!==void 0||t==null||t===""||t==="default")return s;if(!v(t))return Or(o);if(!BV(t))return xr()&&!RP.has(t)&&(RP.add(t),console.warn(`[scratch] fontFamily \`${t}\` is not a font family key of this design system \u2014 rendering the default family. Name a key from designSystem fontFamily, a CSS generic family (\`monospace\`, \`serif\`, \u2026) or a quoted font name (\`"'${t}'"\`).`)),Or(o)},PP=t=>{let e=t.trim(),n=e.replace(/^(['"])(.*)\1$/,"$2").trim(),r=n.replace(/\s+/g," ").toLowerCase();return n!==e&&LP.has(r)?'"'+r+'"':r},Za=(t,e)=>{let n=P(),{fontFamily:r,fontFamilyTypes:o}=n;if(k(t)&&v(t.value)&&v(t.var))return n.useVariable&&(n.cssVars[t.var]=t.value),t;let{value:s,type:i}=t;t.isDefault&&(!t.isSystemFallback||!r.__defaultKey)&&(r.__defaultKey=e),k(s)&&(s=Is(s));let c=`--${n.varPrefix?n.varPrefix+"-":""}font-family-${e}`,l=p=>p&&!p.startsWith("--"),f=[...s].map(p=>String(p).trim()).filter(l),u=new Set;for(let p of f)for(let g of p.split(","))u.add(PP(g));for(let p of String(o[i]??"").split(",")){let g=p.trim();if(!l(g))continue;let h=PP(g);u.has(h)||(u.add(h),f.push(g))}let d=f.join(", ");return n.useVariable&&(n.cssVars[c]=d),{var:c,value:d,arr:s,type:i,isSystemFallback:!!t.isSystemFallback,isSharedLibrary:!!t.isSharedLibrary}};M();var Kg=t=>{let e=P(),{typography:n,media:r}=e;for(let o in t){let s=o.slice(0,1)==="@",i=t[o];if(!s)continue;let{mediaRegenerate:a}=t,c=o.slice(1),{type:l,base:f,ratio:u,range:d,subSequence:p,h1Matches:g,unit:h}=t;Lt(i,{type:l,base:f,ratio:u,range:d,subSequence:p,h1Matches:g,unit:h});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||h,x=!i.unit&&m.has(h)?"rem":y,E=r[c],T="@media "+(E==="print"?`${E}`:`screen and ${E}`);if(n.templates[T]={fontSize:i.base/n.browserDefault+x},!a){Lt(i,{sequence:{},scales:{},vars:{}}),xe(i),Ao(t,o);continue}Lt(i,{sequence:{},scales:{},templates:{},vars:{}}),xe(i),Ao(t,o)}},qg=t=>{let e=P();if(t.h1Matches){let n=t.unit,r=_u(t),{templates:o}=t;for(let s in r){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:e.useVariable?`var(${r[s]?.variable})`:`${r[s]?.scaling}${n}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},Du=()=>{let t=P(),{typography:e}=t;xe(e),qg(e),Dr(e),Kg(e)},Iu=t=>{let e=P(),{typography:n}=e;return nr(t,"fontSize",n)};M();var Mu=t=>{if(!v(t))return;let n=P().shape;if(n)return n[t]!==void 0?n[t]:n[t.toLowerCase()]};M();var Nu=()=>{let t=P(),{timing:e}=t;xe(e),Dr(e)},ze=t=>{let e=P(),{timing:n}=e;return n[t]||n[Ar(t)]||t},ke=(t,e="timing")=>{let n=P(),{timing:r}=n;return nr(t,e,r)};M();var $u=()=>{let t=P(),{fontFamily:e,theme:n,typography:r}=t,o=t.document;return _r(o)?(oo(t,"document",o),o=t.document={}):o||(o=t.document={}),Lt(o,{theme:n.document,fontFamily:Or(e),fontSize:r.base,lineHeight:r.lineHeight})};M();var Z0={document:kt},DP=new WeakMap,IP=new WeakMap,jV=128,MP=1048576,Y0=8192,J0=t=>t.nodeType===1&&t.localName==="symbol"&&t.getAttribute("id"),FP=t=>t.nodeType===8||t.nodeType===3&&!t.textContent.trim(),UV=(t,e)=>{let n=1,r=t.ownerDocument;if(r&&typeof r.createTreeWalker=="function"){let s=r.createTreeWalker(t,4294967295);for(;s.nextNode();)if(++n>e)return n;return n}let o=[t];for(;o.length;){let s=o.pop().childNodes||[];for(let i=0;i<s.length;i++){if(++n>e)return n;o.push(s[i])}}return n},X0=(t,e)=>{if(typeof t.importNode=="function")return t.importNode(e,!0);let n=e.cloneNode(!0);return typeof t.adoptNode=="function"?t.adoptNode(n):n},VV=(t,e)=>{if(typeof t.prepend=="function")return t.prepend(e);let n=t.firstChild!==void 0?t.firstChild:t.childNodes&&t.childNodes[0];return typeof t.insertBefore=="function"?t.insertBefore(e,n||null):t.appendChild(e)},Ja=(t,e)=>{let n=P();if(!t){n.verbose&&console.warn("setSVG: val is not defined",e);return}return n.useSvgSprite?xu(e,t):t},Fu=(t,e=Z0)=>{let n=P(),r=Object.keys(t).length?{}:n.svg;for(let o in t)r[o]=t[o];jP(r,e)},Xs=(t,e)=>{let n=P();return n.useIconSprite&&!n.semanticIcons?.[e]?Ja(t,e):t},Zs=(t,e=Z0)=>{let n=P(),r=Object.keys(t).length?{}:n.icons;for(let o in t)r[o]=t[o];jP(r,e)},BP=(t,e={isRoot:!0})=>{if(!t||!t.createElementNS)return;let n=t.createElementNS("http://www.w3.org/2000/svg","svg");return e.isRoot&&(n.setAttribute("aria-hidden","true"),n.setAttribute("width","0"),n.setAttribute("height","0"),n.setAttribute("style","position:absolute"),n.setAttribute("id","svgSprite")),n},zV=t=>{let e=t&&t.defaultView;return e&&typeof e.DOMParser=="function"?e.DOMParser:typeof DOMParser<"u"?DOMParser:null},HV=(t,e)=>{let n=zV(t);if(n){let r=`<svg xmlns="http://www.w3.org/2000/svg">${e}</svg>`,s=new n().parseFromString(r,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},WV=(t,e,n)=>{let r=String(n),o=IP.get(e),s=o?.entries.get(r);if(s)return o.entries.delete(r),o.entries.set(r,s),s.root;let i=HV(t,r);if(i||(i=BP(t,{isRoot:!1}),i.innerHTML=r),r.length>MP)return i;let a=UV(i,Y0);if(a>Y0)return i;for(o||(o={entries:new Map,units:0,nodes:0},IP.set(e,o));o.entries.size>=jV||o.units+r.length>MP||o.nodes+a>Y0;){let c=o.entries.keys().next().value,l=o.entries.get(c);o.units-=c.length,o.nodes-=l.nodes,o.entries.delete(c)}return o.entries.set(r,{root:i,nodes:a}),o.units+=r.length,o.nodes+=a,i},NP=t=>{let e=new Map;for(let n of t.children){let r=J0(n);if(!r)continue;let o=e.get(r)||[];o.push(n),e.set(r,o)}return e},KV=t=>t.replace(/["\\\u0000-\u001f\u007f]/g,e=>`\\${e.charCodeAt(0).toString(16)} `),$P=(t,e,n,r)=>{let o=0,s=e.childElementCount>8?NP(n):null,i=a=>{if(!s)try{return[...n.querySelectorAll(`symbol[id="${KV(a)}"]`)].filter(c=>c.parentNode===n)}catch{s=NP(n)}return s.get(a)};for(let a of e.childNodes){if(FP(a))continue;let c=J0(a);if(!c&&r){let u=o++,d=r.nodes[u];if(!d&&r.complete||d?.parentNode===n)continue;let p=X0(t,d||a);n.appendChild(p),r.nodes[u]=p;continue}let l=c&&i(c),f=l&&l[0];if(!f)f=X0(t,a),n.appendChild(f);else if(!f.isEqualNode(a)){let u=X0(t,a);n.replaceChild(u,f),f=u}if(l)for(let u=1;u<l.length;u++)l[u].remove();c&&s&&s.set(c,[f])}},jP=(t,e=Z0)=>{let n=P(),r=e.document||kt;if(!r||!r.documentElement)return n.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),Su(t);let o=r.querySelector("#svgSprite"),s="";for(let d in t)s+=t[d];let i=o||BP(r);if(!i||!i.nodeType)return;let a=d=>WV(r,i,d),c=a(s),l=DP.get(i);l||DP.set(i,l=new WeakMap);let f=l.get(n);if(f||l.set(n,f=new Map),[...c.childNodes].some(d=>!FP(d)&&!J0(d))){let d=[];for(let p in t)d.push(p);for(let p of d){let g=f.get(p);g||f.set(p,g={nodes:[],complete:!1}),$P(r,d.length===1?c:a(t[p]),i,g),g.complete=!0}}else{$P(r,c,i);for(let d in t)f.has(d)||f.set(d,{nodes:[],complete:!0})}o||VV(r.body,i);for(let d in t)n.__svgCache[d]=!0};M();var Bu=(t={})=>{let e=P(),n=e.typography||{},r=e.document||{},o=k(e.reset)?e.reset:e.reset={};if(o[":root"]){let c=o,l=n.templates||{};c.body={...e.useDocumentTheme?un("document"):{},...l.body},c.h1=l.h1,c.h2=l.h2,c.h3=l.h3,c.h4=l.h4,c.h5=l.h5,c.h6=l.h6}let{body:s,...i}=n.templates||{},a=e.useDocumentTheme?un("document"):{};if(o.html&&ae(o.html,a),n.unit)for(let c in i){if(c.slice(0,6)!=="@media")continue;let l=i[c];delete i[c],!(!l||!l.fontSize)&&(o[c]||(o[c]={}),o[c].html||(o[c].html={}),o[c].html.fontSize===void 0&&(o[c].html.fontSize=l.fontSize))}if(n.unit){let c=e.media||{};for(let l in n){if(l.charAt(0)!=="@")continue;let f=n[l];if(!f||f.unit===n.unit||!f.unit)continue;let u=f.unit,d=f.base||n.base,p=f.browserDefault||n.browserDefault,g=l.slice(1),h=c[g];if(!h)continue;let m="@media "+(h==="print"?h:"screen and "+h);o[m]||(o[m]={}),o[m].html||(o[m].html={}),o[m].html.fontSize=d/p+u}}return bt(Lt(o,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",textSizeAdjust:"100%",WebkitTextSizeAdjust:"100%",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:r.fontFamily,lineHeight:r.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:r.fontFamily,fontSize:n.unit?"1"+e.unit.default:n.base/n.browserDefault+e.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}},le)};M();var qV=new Set(["fallback"]),Q0=new Set,UP=(t,e)=>{Q0.has(t)||(Q0.add(t),nt()&&console.warn(e))},tk=()=>{Q0.clear()},VP=t=>{for(let e in t)delete t[e];return t},ju=()=>{let t=P(),e=k(t.cssSkinVars)?VP(t.cssSkinVars):t.cssSkinVars={},n=k(t.cssSkinFallback)?VP(t.cssSkinFallback):t.cssSkinFallback={},r=t.skins;if(!k(r))return e;let o=t.varPrefix?t.varPrefix+"-":"",s=t.color||{},i=t.cssVars||{},a=c=>v(c)&&Object.prototype.hasOwnProperty.call(s,c)?`var(--${o}color-${c})`:c;for(let c in r){let l=r[c];if(!k(l))continue;let f={};for(let u in l){if(qV.has(u))continue;let d=l[u];if(k(d))for(let p in d){let g=`--${o}theme-${u}-${p}`;t.useVariable!==!1&&!(g in i)&&UP(`${c}/${u}/${p}`,`[scratch] skin "${c}" rewrites theme "${u}" param "${p}", which the theme does not declare \u2014 no element reads ${g}, so the skin changes nothing there. Declare "${p}" on the "${u}" theme (its no-skin value).`),f[g]=a(d[p])}}e[c]=f,v(l.fallback)&&(n[c]=l.fallback)}for(let c in n){let l=n[c];e[l]||(UP(`${c}/fallback/${l}`,`[scratch] skin "${c}" falls back to "${l}", which is not a declared skin \u2014 the reduced-transparency fallback is skipped.`),delete n[c])}return e},zP=(t,e)=>{let n=`[data-skin="${t}"]`;return!e||e===":root"?`:root${n}, ${n}`:`${e}${n}, ${n} ${e}, ${e} ${n}`},Js=(t,e,n)=>{let r={};if(!k(t))return r;for(let s in t)r[zP(s,n)]=t[s];let o={};for(let s in e||{}){let i=t[e[s]];i&&(o[zP(s,n)]=i)}return Object.keys(o).length&&(r["@media (prefers-reduced-transparency: reduce)"]=o),r};M();var Gg=(t,e)=>Cu(t,e),Yg=t=>{if(v(t))return Tr.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(Ft(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let n=dt(e);return an(n)?n:e}).join(" ")},Xg=(t,e)=>Tu(t,e),Uu=(t,e)=>{if(!v(t))return;let n=P();if(!n.useVariable){let r=GV(t,e,n);if(r!==void 0)return r}return ek(t,e)},GV=(t,e,n)=>Gs(t,e==="auto"?null:e,n,{commas:!0,resolve:ek,resolveScheme:(r,o)=>ek(o(s=>dt(s,"@"+r,n)),null)}),ek=(t,e)=>Cr(t,XV,YV,e),YV={commas:!0,keywords:new Set(["inset","none"])},XV=(t,e)=>{if(!an(dt(t)))return Ya(t);let n=Gt(t,e);return k(n)?Object.values(n).filter(r=>r.includes(": "+e))[0]:n},Zg=(t,e)=>{if(!v(t))return;let n=P();return Dn(t).map(r=>{let o=r.trim();if(Ft(o))return`var(${o})`;if(/^var\(/.test(o)||o.includes("url"))return o;if(n.gradient?.[o]){let s=Gt(o,e);if(v(s))return s;if(k(s)){for(let i in s)if(v(s[i]))return s[i]}return o}return o.includes("gradient")?Po(o,e):o.includes("/")||o.startsWith("http")||o.includes(".")&&!ee(o)?`url(${o})`:o}).join(", ")},Vu=new Set(["auto","cover","contain"]),zu=new Set(["center","top","bottom","left","right"]),ZV=(t,e,n,r)=>{if(n.has(t))return t;let o=Pr(()=>Ve(r,e,t));return o&&o[e]!==void 0?o[e]:t},Qs=(t,e,n,r)=>v(t)?Dn(t).map(o=>ut(o.trim()).map(s=>ZV(s,e,n,r)).join(" ")).join(", "):t,Jg=t=>v(t)&&ut(t).map(e=>Ht(e,"gap").gap).join(" "),Qg=t=>{if(!v(t))return t;let e=P();return ut(t).map(n=>Mn.test(n)?Us(n,e.spacing):n).join(" ")},nk=t=>{if(!v(t))return;let e=t.split(" ");return e.length?e.map(n=>Ft(n)?`var(${n})`:n.length<3||n.includes("ms")?ke(n).timing||n:ze(n)?ze(n):n).join(" "):t},Hu=(t,e,n)=>{if(v(t))return t.split(",").map(r=>ke(r).timing||r).join(",")},tm=t=>{if(!v(t))return;let e=t.split(",");if(e.length)return e.map(nk).join(",")};function Nt(t,e,n={},r={}){let o=St.call(this,e||n[t]);if(o==null)return;let s;if(v(o)){if(/^(?:env|var)\(/.test(o.trim()))return{[t]:o};if(o.includes("(")){let c=Lr(o);s=c[0],o=c[1]}let i=n.scaleBoxSize,a=Eu(t);!i&&a&&!r.ratio&&(o=Au(o))}return r.ratio?Ve(n,t,o,s):Ht(o,t,void 0,s)}var j=(t,e=null,n)=>Nt(t,e,n,{ratio:!0}),JV=(t,e,n)=>v(t)?ut(t).map(r=>Mn.test(r)?Ve(e,n,r)[n]:r).join(" "):t,Nr=(t,e,n,r="borderRadius")=>{if(v(t))return{[r]:ut(t).map(o=>{let s=Mu(o);return s!==void 0?JV(s,e,n):Ve(e,n,o)[n]}).join(" ")}};M();var tc="__smblsThemeRootOwner",ec=t=>{let e=t&&t.__prefersListener,n=t&&t.__prefersMq;if(e&&n)try{typeof n.removeEventListener=="function"?n.removeEventListener("change",e):typeof n.removeListener=="function"&&n.removeListener(e)}catch{try{n.removeListener(e)}catch{}}t&&(t.__prefersListener=null,t.__prefersMq=null)},HP=(t,e,n)=>{if(!(!t||!e)){ec(t),t.__prefersListener=n,t.__prefersMq=e;try{e.addEventListener("change",n)}catch{e.addListener(n)}}},QV=(t,e)=>{let n=P(),{cssVars:r}=n,o=e.startsWith("--")?e:`--${e}`;return r[o]=t,t},ue=t=>t,tz=(t,e)=>{if(v(t)||be(t)){let n=P();if(n.cssVars&&e){let r=n.varPrefix?n.varPrefix+"-":"";n.cssVars[`--${r}size-${e}`]=t}}return t},em={color:Ir,gradient:Ga,font:Pu,fontFamily:Za,fontfamily:Za,theme:Ou,icons:Xs,semanticIcons:ue,semanticicons:ue,svg:Ja,svgData:ue,typography:ue,shadow:Lo,spacing:ue,media:ue,grid:ue,class:ue,timing:ue,reset:ue,unit:ue,animation:ue,vars:QV,sizes:tz,shape:ue,skins:ue,viewTransition:ue},ez=(t,e,n,r)=>{oo(t,n,e);let o={};for(let s of r)t[s]===e&&(t[s]=o);return t.verbose&&console.warn("[scratch] design-system family",n,"resolved to a host object; parked it and allocated a plain bucket"),o},rk=(t,e,n)=>{let r=P(),o=du(t),s=o.toLowerCase(),i=r[o]||r[s]||r[t],a=_r(i)?ez(r,i,s,[o,s,t]):i,c=em[o]||em[s];if(c)try{let l=c(e,n);return a&&(a[n]=l),a}catch(l){r.verbose&&console.warn("Error setting",s,"value",e,n,l)}if(!c){let l=a||(r[s]={});return l[n]=e,l}r.verbose&&console.warn("Can not find",s,"method in scratch")},Wu=(t,e)=>{let n=P(),r=t.toLowerCase();if(_r(e))return oo(n,r,e),n.verbose&&console.warn("[scratch] ignoring host object passed as the",r,"design-system family"),n[r]||n[t];if(e==null)return n.verbose&&console.warn("[scratch] skipping empty design-system family",r),n[r]||n[t];let o=Object.keys(e).sort((s,i)=>{let a=k(e[s])||I(e[s])?1:0,c=k(e[i])||I(e[i])?1:0;return a-c});if(r==="color"){let s=n[r]||(n[r]={});for(let i of o)i in s||(s[i]=e[i])}return o.forEach(s=>{try{return rk(r,e[s],s)}catch(i){n.verbose&&console.warn("Error setting",r,"value",e[s],s,i)}}),n[r]||n[t]},nm=(t,e)=>{let n=e||P();n.globalTheme=t;let o=Qi(n)||(typeof document<"u"?document:null),s=o&&o.defaultView||(typeof window<"u"?window:null);if(o){let a=n.themeRoot||o.documentElement,c=t&&t!=="auto";if(a[tc]=n,c)ec(n),a.setAttribute("data-theme",t),n.resolvedTheme=t,t==="dark"||t==="light"?a.style.colorScheme=t:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let l=u=>{let d=u.matches?"dark":"light";a.setAttribute("data-theme",d),n.resolvedTheme=d},f=s.matchMedia("(prefers-color-scheme: dark)");l(f),a.style.colorScheme="light dark",HP(n,f,l)}else ec(n),a.setAttribute("data-theme","light"),n.resolvedTheme="light",a.style.colorScheme="light"}let i=n.varPrefix?`--${n.varPrefix}-theme-`:"--theme-";for(let a in n.cssVars)a.startsWith(i)&&delete n.cssVars[a];for(let a in n.cssMediaVars)delete n.cssMediaVars[a];if(o&&n.cssVars){let a=n.scopeSelector||":root",c=o.styleSheets;for(let l=0;l<c.length;l++)try{let f=c[l].cssRules;for(let u=0;u<f.length;u++)if(f[u].selectorText===a){for(let d in n.cssVars)f[u].style.setProperty(d,n.cssVars[d]);return n}}catch{}}return n},Ku=t=>{let n=Qi(t)||(typeof document<"u"?document:null),r=n&&n.defaultView||(typeof window<"u"?window:null),o=n&&(t.themeRoot||n.documentElement);if(o&&typeof o.setAttribute=="function")if(t.globalTheme&&t.globalTheme!=="auto")ec(t),o.setAttribute("data-theme",t.globalTheme),t.resolvedTheme=t.globalTheme,o[tc]=t,t.globalTheme==="dark"||t.globalTheme==="light"?o.style.colorScheme=t.globalTheme:o.style.colorScheme="light dark";else if(o[tc]&&o[tc]!==t&&o.hasAttribute("data-theme"))ec(t),t.resolvedTheme=o.getAttribute("data-theme");else if(r&&r.matchMedia){let i=c=>{let l=c.matches?"dark":"light";o.setAttribute("data-theme",l),t.resolvedTheme=l},a=r.matchMedia("(prefers-color-scheme: dark)");i(a),o.style.colorScheme="light dark",o[tc]=t,HP(t,a,i)}else ec(t),o.setAttribute("data-theme","light"),t.resolvedTheme="light",o.style.colorScheme="light",o[tc]=t},nz={},ti=(t,e=nz)=>{let n=e.config||P(),{version:r,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:u,useDocumentTheme:d,useDefaultConfig:p,semanticIcons:g,hoverMedia:h,focusableRing:m,files:y,assets:x,...E}=t;e.newConfig&&(n=$g(e.newConfig)),br(E.document)&&(n.__domDocument=E.document,delete E.document),br(n.document)&&(n.__domDocument||(n.__domDocument=n.document),n.document={}),y!==void 0&&(n.files=y),x!==void 0&&(n.assets=x),o!==void 0&&(n.verbose=o),s!==void 0&&(n.useVariable=s),i!==void 0&&(n.useReset=i),c!==void 0&&(n.useFontImport=c),a!==void 0&&(n.useSvgSprite=a),l!==void 0&&(n.useIconSprite=l),d!==void 0&&(n.useDocumentTheme=d),f!==void 0&&(n.globalTheme=f),u!==void 0&&(n.themeRoot=u),t.useThemeSuffixedVars!==void 0&&(n.useThemeSuffixedVars=t.useThemeSuffixedVars),p!==void 0&&(n.useDefaultConfig=p),g!==void 0&&(n.semanticIcons=g),h!==void 0&&(n.hoverMedia=h),m!==void 0&&(n.focusableRing=m),n.verbose&&console.log(n),Ku(n),n.__svgCache||(n.__svgCache={}),Ka(E);let T=Object.keys(E).filter(_=>!_.startsWith("__")),S=new Set(T);T.forEach(_=>{let A=_.toLowerCase();A!==_&&S.has(A)&&bt(E[A],E[_],le)});let w=new Set;if(T.forEach(_=>{let A=_.toLowerCase(),C=A!==_&&S.has(A)?A:_;w.has(C)||(w.add(C),Wu(C,E[C]))}),n.varPrefix&&(n.typography&&(n.typography.varPrefix=n.varPrefix),n.spacing&&(n.spacing.varPrefix=n.varPrefix),n.timing&&(n.timing.varPrefix=n.varPrefix)),E.typography)try{Du()}catch(_){n.verbose&&console.warn("Error applying typography sequence",_)}if(E.spacing)try{vu()}catch(_){n.verbose&&console.warn("Error applying spacing sequence",_)}if(E.timing)try{Nu()}catch(_){n.verbose&&console.warn("Error applying timing sequence",_)}try{ju()}catch(_){n.verbose&&console.warn("Error applying skins",_)}$u();let b=Bu();return b&&(n.reset=b),n};var rc=1,ok=["font","files","assets","themeRoot"],rz=new Set(ok),nc="$smbls",rm=t=>{if(t===null||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},oz=t=>t.startsWith("__")||rz.has(t),om=t=>{if(!rm(t))return null;let e=new Map,n=!1,r=s=>{if(n)return;if(s===void 0)return{[nc]:"u"};if(s===null||typeof s=="string"||typeof s=="boolean")return s;if(typeof s=="number")return Number.isFinite(s)&&!Object.is(s,-0)?s:{[nc]:"n",v:Object.is(s,-0)?"-0":String(s)};if(typeof s!="object"){n=!0;return}let i=e.get(s);if(i!==void 0)return{[nc]:"r",i};if(Array.isArray(s)){e.set(s,e.size);let c=new Array(s.length);for(let l=0;l<s.length;l++){if(!(l in s)){n=!0;return}c[l]=r(s[l])}return c}if(!rm(s)||Object.prototype.hasOwnProperty.call(s,nc)){n=!0;return}e.set(s,e.size);let a={};for(let c of Object.keys(s))a[c]=r(s[c]);return a},o={};for(let s of Object.keys(t))if(!oz(s)&&(o[s]=r(t[s]),n))return null;return o},sz=(t,e)=>{let n=Object.keys(e),r=0;for(let o in t){if(r===n.length)return!0;if(o!==n[r])return!1;r++}return r===n.length},sm=(t,e)=>{let n=[],r=(s,i)=>{if(s===null||typeof s!="object")return s;if(Array.isArray(s)){let l=new Array(s.length);n.push(l);for(let f=0;f<s.length;f++)l[f]=r(s[f]);return l}let a=s[nc];if(typeof a=="string"){if(a==="u")return;if(a==="n")return s.v==="-0"?-0:Number(s.v);if(a==="r")return n[s.i]}let c=i;if(c&&!sz(s,c))for(let l of Object.keys(c))delete c[l];else c||(c={});n.push(c);for(let l in s)c[l]=r(s[l]);return c},o=new Set;for(let s in t){let i=t[s],a=e[s],c=rm(a)&&!o.has(a)&&rm(i)&&typeof i[nc]!="string"?a:null;c&&o.add(c);let l=r(i,c);l!==a&&(e[s]=l)}return e};var H=(t,e)=>e.split(" ").map(n=>t+"-"+n),ck="top right bottom left",lk=ck+" block block-start block-end inline inline-start inline-end",Ee="start end",Fr="width style color",im=t=>H(t,lk),iz=(()=>{let t=H("border","width style color image");for(let e of lk.split(" "))t.push("border-"+e,...H("border-"+e,Fr));return t})(),WP=t=>[...H("border-"+t,Fr+" start end"),...H("border-"+t+"-start",Fr),...H("border-"+t+"-end",Fr)],vt={animation:H("animation","name duration timing-function delay iteration-count direction fill-mode play-state timeline range range-start range-end"),background:H("background","image position position-x position-y size repeat origin clip attachment color"),border:iz};for(let t of["width","style","color"])vt["border-"+t]=lk.split(" ").map(e=>"border-"+e+"-"+t);for(let t of ck.split(" "))vt["border-"+t]=H("border-"+t,Fr);vt["border-block"]=WP("block");vt["border-inline"]=WP("inline");Object.assign(vt,{"border-image":H("border-image","source slice width outset repeat"),"border-radius":"top-left top-right bottom-right bottom-left start-start start-end end-start end-end".split(" ").map(t=>"border-"+t+"-radius"),columns:H("column","width count"),"column-rule":H("column-rule",Fr),container:H("container","name type"),"contain-intrinsic-size":H("contain-intrinsic","width height"),flex:H("flex","grow shrink basis"),"flex-flow":H("flex","direction wrap"),font:[...H("font","style variant weight stretch size"),"line-height",...H("font","family size-adjust kerning feature-settings variation-settings optical-sizing")],gap:["row-gap","column-gap"],grid:H("grid","template template-rows template-columns template-areas auto-rows auto-columns auto-flow"),"grid-template":H("grid-template","rows columns areas"),"grid-area":H("grid","row column row-start row-end column-start column-end"),"grid-row":H("grid-row",Ee),"grid-column":H("grid-column",Ee),inset:[...ck.split(" "),...H("inset","block block-start block-end inline inline-start inline-end")],"inset-block":H("inset-block",Ee),"inset-inline":H("inset-inline",Ee),"list-style":H("list-style","type position image"),margin:im("margin"),"margin-block":H("margin-block",Ee),"margin-inline":H("margin-inline",Ee),mask:H("mask","image mode repeat position clip origin size composite"),offset:H("offset","position path distance rotate anchor"),outline:H("outline",Fr),overflow:H("overflow","x y"),"overscroll-behavior":H("overscroll-behavior","x y"),padding:im("padding"),"padding-block":H("padding-block",Ee),"padding-inline":H("padding-inline",Ee)});for(let t of["content","items","self"])vt["place-"+t]=["align-"+t,"justify-"+t];Object.assign(vt,{"scroll-margin":im("scroll-margin"),"scroll-padding":im("scroll-padding"),"text-decoration":H("text-decoration","line style color thickness"),"text-emphasis":H("text-emphasis","style color"),transition:H("transition","property duration timing-function delay behavior")});var az="block-start block-end inline-start inline-end".split(" ");for(let t of az)vt["border-"+t]=H("border-"+t,Fr);for(let t of["block","inline"])for(let e of Fr.split(" "))vt["border-"+t+"-"+e]=H("border-"+t,Ee.split(" ").map(n=>n+"-"+e).join(" "));Object.assign(vt,{"animation-range":H("animation-range",Ee),"background-position":H("background-position","x y"),"font-variant":H("font-variant","alternates caps east-asian emoji ligatures numeric position"),"font-synthesis":H("font-synthesis","weight style small-caps"),marker:H("marker","start mid end"),"position-try":H("position-try","order fallbacks"),"scroll-margin-block":H("scroll-margin-block",Ee),"scroll-margin-inline":H("scroll-margin-inline",Ee),"scroll-padding-block":H("scroll-padding-block",Ee),"scroll-padding-inline":H("scroll-padding-inline",Ee),"scroll-timeline":H("scroll-timeline","name axis"),"view-timeline":H("view-timeline","name axis inset"),"text-box":H("text-box","trim edge"),"text-wrap":H("text-wrap","mode style"),"white-space":["white-space-collapse","text-wrap-mode"]});vt.font.push("font-language-override");var $r=t=>"corner-"+t+"-shape";vt["corner-shape"]=[..."top-left top-right bottom-right bottom-left start-start start-end end-start end-end".split(" "),..."top right bottom left block-start block-end inline-start inline-end".split(" ")].map($r);Object.assign(vt,{"corner-top-shape":["top-left","top-right"].map($r),"corner-right-shape":["top-right","bottom-right"].map($r),"corner-bottom-shape":["bottom-left","bottom-right"].map($r),"corner-left-shape":["top-left","bottom-left"].map($r),"corner-block-start-shape":["start-start","start-end"].map($r),"corner-block-end-shape":["end-start","end-end"].map($r),"corner-inline-start-shape":["start-start","end-start"].map($r),"corner-inline-end-shape":["start-end","end-end"].map($r)});for(let t in vt){let e=vt[t],n=new Set(e);for(let r=0;r<e.length;r++){let o=vt[e[r]];if(o)for(let s of o)n.has(s)||(n.add(s),e.push(s))}}var dn={};for(let t in vt)for(let e of vt[t])(dn[e]||(dn[e]=[])).push(t);var ik=new Map,KP=t=>{let e=ik.get(t);if(e!==void 0)return e;ik.set(t,0),e=0;let n=dn[t];if(n)for(let r=0;r<n.length;r++)e=Math.max(e,KP(n[r])+1);return ik.set(t,e),e};function oc(t){if(typeof t!="string")return 0;let e=t.charCodeAt(0)===45&&t.charCodeAt(1)!==45?t.replace(/^-(webkit|moz|ms|o)-/,""):t;return Object.prototype.hasOwnProperty.call(dn,e)?KP(e):0}var cz=/^(?:margin|padding|inset|scroll-margin|scroll-padding)(?:-(?:block|inline))?$|^border(?:-(?:block|inline))?-(?:width|style|color)$|^(?:border-radius|corner(?:-[a-z]+)*-shape|gap|overflow|overscroll-behavior|place-(?:content|items|self)|background-position|contain-intrinsic-size)$/,qP=/^(?:border(?:-(?:top|right|bottom|left|block|inline)(?:-(?:start|end))?)?|outline|column-rule)$/,lz=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","auto"]),ak=t=>ut(String(t).replace(/\s*!important\s*$/,""));function sc(t,e,n){let r=vt[t];if(!r||r.indexOf(n)===-1)return!1;if(cz.test(t))return!0;if(!qP.test(t)||typeof e=="function"||e==null||n.indexOf("border-image")===0)return!1;let o=ak(e);return o.length>=3?!0:/-style$/.test(n)&&o.some(s=>lz.has(s.toLowerCase()))}var fz=new Set(["thin","medium","thick"]),uz=t=>/^[+-]?\.?\d/.test(t)||fz.has(t.toLowerCase())||/^(?:calc|min|max|clamp)\(/i.test(t)||/^var\(--(?:[a-zA-Z0-9]{1,6}-)?spacing-/.test(t),dz=t=>t==="transparent"||t==="currentcolor"||Object.prototype.hasOwnProperty.call(Fa,t),pz=t=>$s(t)||/^var\(--(?:(?!theme-|shadow-)[a-zA-Z0-9]{1,6}-)?color-/.test(t)||dz(t.toLowerCase()),hz=/-(width|style|color)$/;function qu(t,e,n){if(sc(t,e,n))return!0;let r=vt[t];if(!r||r.indexOf(n)===-1||typeof e=="function"||e==null)return!1;if(qP.test(t)){if(n.indexOf("border-image")===0)return!1;let o=hz.exec(n);if(!o)return!1;let s=ak(e);return s.length===1&&/^(?:0|none)$/i.test(s[0])?o[1]!=="color":o[1]==="width"&&s.some(uz)}if(t==="background"&&n==="background-color"){let o=ak(e);return o.length===1&&pz(o[0])}return!1}var cc=new Map,aL=null,fk=null,gz=null;function Xu(t){t.batchAtomicCss&&(fk=t.batchAtomicCss),t.compoundCssClass&&(gz=t.compoundCssClass)}var mz=new Set,YP=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0);function wk(t){try{let e=P();e&&(e.__domDocument=t)}catch{}t&&mz.add(t)}function rr(){try{let t=P();if(t){if(YP(t.__domDocument))return t.__domDocument;if(YP(t.document))return t.document}}catch{}return typeof document<"u"?document:null}var ve={atomic:0,variable:0,global:0,keyframes:0,duplicate:0,invalid:0,dropped:0};function hm(){return{...ve}}function Sk(){for(let t in ve)ve[t]=0;um=!1}var um=!1,lm=(t,e)=>`${t} ${e}${t===1?"":"s"}`;function yz(t){let e=Date.parse(t);if(!isFinite(e))return"";let n=Math.floor((Date.now()-e)/864e5);return n<1?" (today)":` (${lm(n,"day")} ago)`}function bz(){try{let t=Rz();if(!t.length)return-1;let e=0;for(let n=0;n<t.length;n++)e+=t[n].cssRules?t[n].cssRules.length:0;return e}catch{return-1}}function _z(t,e){if(um)return!1;um=!0;let n="n/a \u2014 running from src/ (unbuilt), so no dist is in play",r="this IS the source",o="@symbo.ls/css";return console.error(`[@symbo.ls/css] CSS EMIT FAILURE (${t}) \u2014 the engine emitted ${lm(ve.variable,"variable rule")} and ${lm(ve.atomic,"atomic rule")}, while the design system held ${lm(e,"CSS variable")}.
47
47
  The document will render UNSTYLED and nothing else will report an error.
48
48
  This is what a STALE dist/ looks like: an obsolete emitter against a current design system.
49
49
  package : ${o}
50
50
  built : ${n}
51
51
  source : ${r}
52
- emitted : ${JSON.stringify(ke)}
53
- sheets : the style[data-smbls] tiers currently hold ${NV()} rule(s)
52
+ emitted : ${JSON.stringify(ve)}
53
+ sheets : the style[data-smbls] tiers currently hold ${bz()} rule(s)
54
54
  FIX : cd smbls && npm run check:stale # every package whose src is newer than its dist
55
55
  then rebuild the listed packages and clear the app's .parcel-cache
56
- Do NOT trust any browser measurement taken on this page until that reads clean.`),!0}function BP(){try{let t=P(),e=t&&(t.CSS_VARS||t.cssVars);return e?Object.keys(e).length:0}catch{return 0}}function Z0(t){em||ke.variable>0||ke.atomic>0||jP(Math.max(t,BP()))}function ck(t){let e=t&&(t.CSS_VARS||t.cssVars);return jP(e?Object.keys(e).length:BP())}function jP(t){let e=om();if(t===0)return{ok:!0,reason:"no-design-system",stats:e,varCount:t};if(!dk())return{ok:!0,reason:"no-sheet",stats:e,varCount:t};if(e.variable>0||e.atomic>0)return{ok:!0,reason:null,stats:e,varCount:t};let n=e.invalid>0?"every rule was rejected as malformed":"no rule was ever produced";return $V(n,t),{ok:!1,reason:n,stats:e,varCount:t}}var FV={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk"};function BV(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}var ec=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,CP=new Map,Ee=t=>{if(ec(t))return t;let e=CP.get(t);return e===void 0&&(e=BV(t),CP.set(t,e)),e},TP=new Map,zu=t=>{if(ec(t))return t;let e=TP.get(t);return e===void 0&&(e=t.replace(/-([a-z])/g,(n,r)=>r.toUpperCase()),TP.set(t,e)),e};function nm(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e.toString(36)}function jV(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():nm(e)}var UV={"backdrop-filter":"-webkit-backdrop-filter","user-select":"-webkit-user-select","mask-image":"-webkit-mask-image","mask-size":"-webkit-mask-size","mask-repeat":"-webkit-mask-repeat","mask-position":"-webkit-mask-position","mask-clip":"-webkit-mask-clip","mask-origin":"-webkit-mask-origin","background-clip":"-webkit-background-clip"};function Zs(t,e){let n=UV[t];return n?`${t}:${e};${n}:${e};`:`${t}:${e};`}function J0(t){let e="";for(let n in t){let r=t[n];if(typeof r!="object"||r===null)continue;let o="";for(let s in r)r[s]!=null&&(o+=Zs(Ee(s),r[s]));e+=`${n}{${o}}`}return e}function Q0(t){return t.charCodeAt(0)===64&&!rc(t)}function OP(t){let e="";for(let n in t){let r=t[n];if(!Q0(n)||typeof r!="object"||r===null)continue;let o="";for(let s in r){let i=r[s];i==null||typeof i=="object"||(o+=Zs(Ee(s),i))}e+=`${n}{${o}}`}return e}var VV="@media (hover: hover)",zV=/(?:^|[^\\]):hover(?![\w-])/;function lk(){try{let t=P();if(t&&t.hoverMedia===!1)return!1}catch{}return!0}function Ir(t,e,n){return n===!1||!zV.test(e)||n===void 0&&!lk()?t:`${VV}{${t}}`}var fk=new Map;function HV(t,e,n,r){let o=nc.get(t);if(!o){let c=FV[e]||nm(e),l=jV(n);o=r?`_${r}_${c}-${l}`:`_${c}-${l}`,nc.set(t,o)}let i=typeof n=="string"&&(n.indexOf("}")!==-1||n.indexOf("{")!==-1)?null:`.${o}{${Zs(Ee(e),n)}}`,a={className:o,rule:i,tier:i===null?null:uk(i,!0,"atomic")};return fk.set(t,a),a}function RP(t,e,n){let r=(n?n+"":"")+t+":"+e,o=fk.get(r)||HV(r,t,e,n);return o.rule!==null&&ln(o.rule,void 0,"atomic",!0,o.tier),o.className}var PP=new WeakMap,LP=new WeakMap;function ln(t,e,n,r,o){let s=o||uk(t,r,n);Uu&&!e&&Uu.push([t,n||"global",s]);let i=qV(e,s);if(!i)return ke.dropped++,"dropped";let a=i.sheet,c=i.rules;if(c||(c=PP.get(a),c||(c=new Set,PP.set(a,c)),i.rules=c),c.has(t))return ke.duplicate++,ke[n||"global"]++,"duplicate";let l=LP.get(a);if(l&&l.has(t))return ke.invalid++,"invalid";try{a.insertRule(t,a.cssRules.length)}catch{return l||(l=new Set,LP.set(a,l)),l.add(t),ke.invalid++,"invalid"}return c.add(t),ke[n||"global"]++,"inserted"}var Ue="0:0",tk="1:0",UP="0:99",DP=/\((max|min)-width:\s*([\d.]+)(px|em|rem)?\)/g;function uk(t,e,n){if(typeof t!="string"||!t)return Ue;if(t.charCodeAt(0)===64){if(!t.startsWith("@media")&&!t.startsWith("@supports")&&!t.startsWith("@container"))return Ue;let i=1/0,a=-1/0;DP.lastIndex=0;let c;for(;c=DP.exec(t);){let l=parseFloat(c[2])*(c[3]==="em"||c[3]==="rem"?16:1);c[1]==="max"?i=Math.min(i,l):a=Math.max(a,l)}return i!==1/0?"2:"+-i:a!==-1/0?"3:"+a:tk}if(t.charCodeAt(0)!==46)return n==="atomic"&&!e?UP:Ue;if(!/^\.[\w-]+\{/.test(t))return tk;if(!e)return Ue;let r=t.indexOf("{"),o=t.indexOf(":",r);if(o===-1)return Ue;let s=Ja(t.slice(r+1,o).trim());return s?"0:"+s:Ue}var tc=null,WV=()=>{if(tc)return tc;let t=0;for(let e in cn)t=Math.max(t,Ja(e));tc=[Ue];for(let e=1;e<=t;e++)tc.push("0:"+e);return tc.push(UP,tk),tc},IP=t=>{let e=t.indexOf(":");return[Number(t.slice(0,e)),Number(t.slice(e+1))]},MP=(t,e)=>{let[n,r]=IP(t),[o,s]=IP(e);return n!==o?n<o:r<s},KV=t=>t.getAttribute("data-tier")||Ue,ek=new WeakMap,tm=!1,ju=null,nk=0;function qV(t,e){if(tm&&!t){let n=ju&&ek.get(ju),r=n&&n.get(e);if(r&&r.epoch===nk)return r;let o=rm(ju,e);return o&&(o.epoch=nk),o}return rm(t||Zn(),e)}function dk(t,e){let n=rm(t||Zn(),e);return n?n.sheet:null}function rm(t,e){if(!t||!t.head)return null;let n=e||Ue,r=ek.get(t);r||(r=new Map,ek.set(t,r));let o=r.get(n);if(o&&o.node.parentNode===t.head&&o.node.sheet===o.sheet)return o;if(n!==Ue){let c=WV();for(let l=0;l<c.length&&MP(c[l],n);l++)rm(t,c[l])}let s=n===Ue?t.head.querySelector("style[data-smbls]:not([data-tier])"):t.head.querySelector(`style[data-smbls][data-tier="${n}"]`);if(!s){s=t.createElement("style"),s.setAttribute("data-smbls",""),n!==Ue&&s.setAttribute("data-tier",n);let c=t.head.querySelectorAll("style[data-smbls]"),l=null;for(let u=0;u<c.length;u++)if(MP(n,KV(c[u]))){l=c[u];break}let f=c.length?c[c.length-1]:null;if(l)t.head.insertBefore(s,l);else if(f)t.head.insertBefore(s,f.nextSibling);else{let u=t.head.querySelector('style[data-brender], style[data-emotion="smbls"]');u?t.head.insertBefore(s,u):t.head.appendChild(s)}}let i=s.sheet;if(!i)return r.delete(n),null;let a={sheet:i,node:s,rules:null,epoch:0};return r.set(n,a),n===Ue&&(FP=i),a}function GV(t){let e=t||Zn();if(!e||!e.head)return[];let n=[],r=e.head.querySelectorAll("style[data-smbls]");for(let o=0;o<r.length;o++)r[o].sheet&&n.push(r[o].sheet);return n}var YV=8;function Ve(t,e,n,r){if(!t||typeof t!="object")return"";if(tm)return NP(t,n,r);tm=!0,ju=Zn(),nk++;try{return NP(t,n,r)}finally{tm=!1,ju=null}}function NP(t,e,n){let r=!!(n&&n.state),o=null,s=0,i=[],a=[],c=Object.keys(t);for(let f=0;f<c.length;f++){let u=c[f],d=t[u];d==null||d===!1||d===""||(typeof d=="object"?a.push([u,d]):X0&&!ec(u)?(o||(o=[]),o.push(u,String(d)),s++):i.push(RP(u,String(d),e)))}if(o&&s>=YV){let f=o.join("\0"),u=X0(f),d=u.indexOf("\0"),p=u.substring(0,d),g=u.substring(d+1);if(g){let h=g.split(`
57
- `);for(let m=0;m<h.length;m++)h[m]&&ln(h[m],void 0,"atomic",!0)}i.push(p)}else if(o)for(let f=0;f<o.length;f+=2)i.push(RP(o[f],o[f+1],e));let l=[];for(let f=0;f<a.length;f++)l.push(QV(a[f][0],a[f][1],e,r));return i.concat(l).join(" ").trim()}var $P=new Map,XV=/^&?:(hover|focus|focus-visible|focus-within|active)(?![\w-])/;function rc(t){return/^@(media|supports|container)\b/.test(t)}function Mr(t){let e=[],n=0,r=0;for(let o=0;o<t.length;o++){let s=t.charCodeAt(o);s===40?n++:s===41?n--:s===44&&n===0&&(e.push(t.slice(r,o).trim()),r=o+1)}return e.push(t.slice(r).trim()),e}function ZV(t){return typeof t!="string"||!t||rc(t)?!1:Mr(t).every(e=>XV.test(e))}var VP=t=>{let e=Object.prototype.toString.call(t);return e==="[object Object]"||e==="[object Array]"},rk=32,ok=1024,sk=!1;function Jg(t,e,n){if(sk)return;sk=!0;let r=[e,...n],o=r.length>12?[...r.slice(0,6),`\u2026${r.length-9} more\u2026`,...r.slice(-3)]:r;console.warn(`[@symbo.ls/css] ${t} at ${o.join(" > ")} \u2014 skipped. A style block may hold only CSS values and nested plain blocks; the rest of this rule is still emitted. (One warning per page.)`)}function JV(t){try{return JSON.stringify(t)}catch{let n=[],r=0;return JSON.stringify(t,function(o,s){if(!s||typeof s!="object")return s;for(;n.length&&n[n.length-1]!==this;)n.pop();if(!(n.length&&(n.includes(s)||!VP(s)||n.length>rk||++r>ok)))return n.push(s),s})}}function QV(t,e,n,r){let o=JV(e),s=t.indexOf(":hover")!==-1||o.indexOf(":hover")!==-1,i=s&&lk(),a=(n?n+"":"")+t+o+(s&&!i?"rawhover":"")+(r?"state":""),c=nc.get(a);if(c){let _=$P.get(c);if(_)for(let b=0;b<_.length;b+=2)ln(_[b],void 0,"atomic",void 0,_[b+1]);return c}c=n?`_${n}_c${nm(a)}`:`_c${nm(a)}`;let l=r?`.${c}.${c}`:`.${c}`,f=ZV(t)?`${l}.${c}`:l,u="",d=[],p=_=>typeof _=="string"&&(_.indexOf("{")!==-1||_.indexOf("}")!==-1),g=new Set,h=0,m=(_,b)=>{g.add(b);let w="",S=Object.keys(b);for(let A=0;A<S.length;A++){let T=S[A],O=b[T];if(O!=null)if(typeof O=="object"){let B=[..._,T];g.has(O)?Jg("a style value that loops back to one of its own ancestors",t,B):VP(O)?B.length>rk?Jg(`a style block nested more than ${rk} levels deep`,t,B):++h>ok?Jg(`a style object with more than ${ok} nested blocks`,t,B):m(B,O):Jg(`a ${Object.prototype.toString.call(O).slice(8,-1)} (not a style block)`,t,B)}else{if(p(O))continue;w+=Zs(Ee(T),O)}}g.delete(b),w&&(_.length===0?u+=w:d.push({chain:_,body:w}))};m([],e);let y=_=>_.startsWith(":")||_.startsWith("["),x=(_,b=!0)=>{let w=b&&_.length===1?f:l;if(!_.length)return w;let S=Mr(_[0]).map(A=>A.includes("&")?A.replace(/&/g,w):y(A)?`${w}${A}`:`${w} ${A}`);for(let A=1;A<_.length;A++){let T=Mr(_[A]),O=[];for(let B of S)for(let $ of T)$.includes("&")?O.push($.replace(/&/g,B)):y($)?O.push(B+$):O.push(B+" "+$);S=O}return S.join(", ")},k=[],C=(_,b)=>{let w=_.filter(rc),S=x(_.filter(O=>!rc(O)),w.length===0),A=`${S}{${b}}`;for(let O=w.length-1;O>=0;O--)A=`${w[O]}{${A}}`;A=Ir(A,S,i);let T=uk(A,void 0,"atomic");k.push(A,T),ln(A,void 0,"atomic",void 0,T)};u&&C([t],u);for(let _ of d)C([t,..._.chain],_.body);return $P.set(c,k),nc.set(a,c),c}var Uu=null;function Hu(t){let e=Uu,n=[];Uu=n;try{t()}finally{Uu=e}return n}function Wu(t){if(!Array.isArray(t))return;dk();let e=0;for(let n of t){if(!Array.isArray(n)||typeof n[0]!="string")continue;let r=n[1]||"global";r==="variable"&&e++,ln(n[0],void 0,r,void 0,n[2]||void 0)}e>0&&Z0(e)}function Ot(t){if(t==null||typeof t!="string"&&typeof t!="object")return;if(dk(),typeof t=="string"){let s=t.indexOf("--")!==-1;ln(t,void 0,s?"variable":"global"),s&&Z0(1);return}let e=lk(),n=0,r=Object.keys(t),o=s=>{let i=s.match(/max-width:\s*(\d+)/);return i?parseInt(i[1]):0};r.sort((s,i)=>{let a=s.startsWith("@media"),c=i.startsWith("@media");return!a&&!c?0:a?c?o(i)-o(s):1:-1});for(let s of r){let i=t[s];if(s.startsWith("@keyframes")){let a=J0(i);a&&ln(`${s}{${a}}`,void 0,"keyframes");continue}if(rc(s))for(let a in i){let c=i[a];if(a.startsWith("@keyframes")){let l=J0(c);l&&ln(`${s}{${a}{${l}}}`,void 0,"keyframes");continue}if(typeof c=="object"&&c!==null){let l="",f=0,u=a.charCodeAt(0)===64;for(let d in c){let p=c[d];p!=null&&(u&&typeof p=="object"||(ec(d)&&f++,l+=Zs(Ee(d),p)))}u&&(l+=OP(c)),n+=f,ln(Ir(`${s}{${a}{${l}}}`,a,e),void 0,f?"variable":"global")}else if(c!=null){let l=ec(a);l&&n++,ln(`${s}{${Zs(Ee(a),c)}}`,void 0,l?"variable":"global")}}else{let a="",c=!1,l=0,f=s.charCodeAt(0)===64;for(let u in i){let d=i[u];if(d!=null)if(typeof d=="object"){if(f&&Q0(u))continue;c=!0}else ec(u)&&l++,a+=Zs(Ee(u),d)}if(f&&(a+=OP(i)),n+=l,a&&ln(Ir(`${s}{${a}}`,s,e),void 0,l?"variable":"global"),c){let u=[],d=[];for(let p in i)if(typeof i[p]=="object"&&i[p]!==null){if(f&&Q0(p))continue;rc(p)?u.push(p):d.push(p)}u.sort((p,g)=>{let h=m=>{let y=m.match(/max-width:\s*(\d+)/);return y?parseInt(y[1]):0};return h(g)-h(p)});for(let p of d)Ot({[`${s} ${p}`]:i[p]});for(let p of u)Ot({[p]:{[s]:i[p]}})}}}n>0&&Z0(n)}function oc(t,e){return ln(`@keyframes ${t}{${J0(e)}}`,void 0,"keyframes"),t}function zP(){nc.clear(),fk.clear(),FP=null,sk=!1}function pk(){return nc.size}var HP="3.14.855";M();var Zm={};F(Zm,{DELEGATED_EVENTS:()=>sc,LIFECYCLE_EVENTS:()=>Jn,MIXINS:()=>im,MOUNT_YIELD_BUDGET_MS:()=>li,NON_BUBBLING_EVENTS:()=>am,REGISTRY:()=>Gt,SVG_TAGS:()=>dc,addDelegatedEvent:()=>Ku,addMethods:()=>mc,adoptHydrationNode:()=>VE,applyExtends:()=>lc,attachElement:()=>No,cacheNode:()=>Oo,create:()=>Yt,createHTMLNode:()=>uc,detectTag:()=>tr,dispose:()=>pn,dropMountWork:()=>wd,elementPath:()=>zm,flushMounts:()=>kc,globalEventKeyInfo:()=>dm,holdMountFlush:()=>ai,inertOutsidePlugin:()=>Xm,isSvgTag:()=>$r,isValidTag:()=>fc,mountIdle:()=>Bo,mountPending:()=>Gm,mountYieldBudget:()=>ar,refreshContextProto:()=>yc,registerEvent:()=>ac,registerGlobalEvent:()=>pm,releaseMount:()=>We,remove:()=>gc,removeDelegatedEvent:()=>qu,settleBuiltAttributes:()=>$o,update:()=>hc,whenConnected:()=>Co,whenMountIdle:()=>Te,whenMounted:()=>Vr,yieldToMain:()=>cr});var ct={viewEvents:null,chains:null,rows:null,hydration:null,mount:null};var Gt=new Set(["extends","children","content","childrenAs","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","vars","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","subscribeTo","autoGrow","srcObject","allowRuntimeTemplates","__name","__ref","__hash","__text","parent","node"]),im={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},Jn=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","mounted","contentUpdate","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","beforeRemove","remove","bridgeMount","bridgeUpdate","bridgeDestroy"]),am=new Set(["load","error","abort","scroll","canplay","canplaythrough","ended","pause","play","playing","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","durationchange","loadeddata","loadedmetadata","progress","emptied","resize"]),cm=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),sc=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseenter","mouseleave","mouseover","mouseout","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointerover","pointerout","touchstart","touchend","touchmove","keydown","keyup","keypress","input","change","submit","reset","focus","blur","focusin","focusout","wheel","contextmenu","drag","dragstart","dragend","dragenter","dragleave","dragover","drop"]);M();var Js=new Set;function ic(t){let e=t&&t.node;if(!e)return!1;let n=e.nodeType===11?t.__ref?.__fragmentAnchor:e;return n?n.isConnected!==!1:!1}function Co(t,e){let n=t&&t.node,r=t&&t.__ref;if(!(!n||!r||typeof e!="function")){if(ic(t)){e(t);return}(r.__onConnected||(r.__onConnected=[])).push(e),Js.add(t)}}function lm(){if(Js.size)for(let t of Js){let e=t.__ref,n=t.node;if(!e||!n){Js.delete(t);continue}if(!ic(t))continue;Js.delete(t);let r=e.__onConnected;if(e.__onConnected=null,!!r)for(let o=0;o<r.length;o++)try{r[o](t)}catch(s){typeof console<"u"&&console.error&&console.error("[smbls] whenConnected callback failed:",s?.message||s)}}}function WP(t){Js.size&&Js.delete(t)&&t.__ref&&(t.__ref.__onConnected=null)}var mk=new WeakMap,tz={passive:!0},ez={passive:!0,capture:!0},YP=(t,e)=>cm.has(t)?e?ez:tz:e||!1;function XP(t){let e=mk.get(t);return e||(e={handlers:new Map,installed:new Set},mk.set(t,e)),e}function nz(t,e){let n=XP(e);if(n.installed.has(t))return;n.installed.add(t);let r=t==="focus"||t==="blur"||t==="focusin"||t==="focusout"||t==="mouseenter"||t==="mouseleave"||t==="pointerenter"||t==="pointerleave",o=t==="mouseenter"||t==="mouseleave"||t==="pointerenter"||t==="pointerleave";e.addEventListener(t,s=>{if(o){let a=s.target,c=n.handlers.get(t),l=c&&a?c.get(a):null;if(!l||s.relatedTarget&&typeof a.contains=="function"&&a.contains(s.relatedTarget))return;l(s);return}let i=s.target;for(;i&&i!==e;){let a=n.handlers.get(t);if(a){let c=a.get(i);if(c&&(c(s),s.cancelBubble))return}i=i.parentNode}},YP(t,r))}function Ku(t,e,n,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let o=XP(r);nz(t,r),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,n)}function qu(t,e,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let r=mk.get(n);if(!r)return;let o=r.handlers.get(t);o&&o.delete(e)}function fn(t){if(t.charCodeAt(0)!==111||t.charCodeAt(1)!==110)return!1;let e=t.charCodeAt(2);return e>=65&&e<=90}function fm(t){return t.charAt(2).toLowerCase()+t.slice(3)}var rz=/^[A-Za-z_$][\w$]*$/;function Gu(t,e){return typeof e!="string"||!rz.test(e)?e:function(r){return t.call(e,r)}}function oz(t){return sc.has(t)&&!Jn.has(t)}function um(t,e){let{context:n}=t,r=n?.designSystem;return o=>{r&&mt(r);try{let s=e.call(t,o,t,t.state,n);if(s&&typeof s.then=="function"){s.catch(i=>{t.error=i,console.error("[DOMQL] Async event error:",i)}).finally(()=>{r&&ht()});return}}catch(s){if(t.error=s,console.error("[DOMQL] Event error:",s),n?.strictMode)throw s}r&&ht()}}var ZP=t=>!!t&&(t.capture===!0||typeof t.passive=="boolean"||t.once===!0);function sz(t,e){return ZP(e)?{capture:e.capture===!0,passive:typeof e.passive=="boolean"?e.passive:cm.has(t),once:e.once===!0}:YP(t,!1)}function iz(t,e,n){return r=>{let o=r.target;if(o&&o.nodeType!==1&&(o=o.parentElement),!o||typeof o.closest!="function")return;let s;try{s=o.closest(e)}catch{return}s&&t.contains(s)&&n(r)}}function ac(t,e,n,r){let{node:o,context:s}=e;if(!o)return;let i=um(e,n),a=r&&typeof r.selector=="string"&&r.selector;a&&(i=iz(o,a,i));let l=!am.has(t)&&oz(t)&&!ZP(r),f=l?null:sz(t,r);if(l){let u=s?.rootNode||o.ownerDocument?.documentElement;Ku(t,o,i,u)}else o.addEventListener(t,i,f);e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(l){let u=s?.rootNode||o.ownerDocument?.documentElement;qu(t,o,u)}else o.removeEventListener(t,i,f)})}var hk=[["onDocument","document"],["onWindow","window"],["onVisualViewport","visualViewport"],["onMediaQuery","mediaQuery"]];function dm(t){if(typeof t!="string")return null;for(let e=0;e<hk.length;e++){let n=hk[e][0];if(t.length<=n.length||!t.startsWith(n))continue;let r=t.charCodeAt(n.length);if(!(r<65||r>90))return{target:hk[e][1],eventName:t.slice(n.length).toLowerCase()}}return null}function az(t,e,n){let r=e,o=!1,s,i=!1,a=null;return e&&typeof e=="object"&&typeof e!="function"&&(r=e.handler,o=!!e.capture,i=!!e.once,typeof e.passive=="boolean"&&(s=e.passive),typeof e.query=="string"&&(a=e.query)),r=Gu(t,r),typeof r!="function"?null:(s===void 0&&(s=cm.has(n)),{handler:r,capture:o,passive:s,once:i,query:a})}function cz(t,e,n){let r=t.node?.ownerDocument||t.context?.document||(typeof document<"u"?document:null);if(!r||typeof r.addEventListener!="function")return null;if(e==="document")return r;let o=r.defaultView||(typeof window<"u"?window:null);if(!o)return null;if(e==="window")return typeof o.addEventListener=="function"?o:null;if(e==="visualViewport"){let s=o.visualViewport;return s&&typeof s.addEventListener=="function"?s:null}if(e==="mediaQuery"){let s=n&&n.query;if(typeof s!="string"||!s.trim()||typeof o.matchMedia!="function")return null;try{return o.matchMedia(s)||null}catch{return null}}return null}var gk=/^@media\s+/i,lz=/^[@[.#&:>*~+]/,KP=new Set;function qP(t,e){!tt()||KP.has(t)||(KP.add(t),console.warn(`[smbls] onMediaQueryChange: "${t}" ${e} \u2014 no listener is registered.`))}function fz(t,e){if(typeof e!="string")return null;let n=e.trim();if(!n)return null;let r=t.context?.designSystem?.media,o=i=>{let a=r&&typeof r=="object"?r[i]:void 0;return typeof a=="string"&&a.trim()?a.trim():null},s=n;if(n.charCodeAt(0)===64&&!gk.test(n)){if(s=o(n.slice(1)),!s)return qP(n,"is not a key of designSystem.media"),null}else s=o(n)||n;return gk.test(s)?s.replace(gk,"").trim()||null:lz.test(s)?(qP(n,`names "${s}", which is not a media query`),null):s}function uz(t,e,n,r){try{return t.addEventListener(e,n,r),!0}catch{return typeof t.addListener=="function"?(t.addListener(n),!0):!1}}function JP(t,e,n,r){try{t.removeEventListener(e,n,r)}catch{typeof t.removeListener=="function"&&t.removeListener(n)}}function pm(t,e,n){if(e.__ref){if(Array.isArray(n)){if(t.target!=="mediaQuery")return;for(let o=0;o<n.length;o++)GP(t,e,n[o]);return}GP(t,e,n)}}function GP(t,e,n){let r=e.__ref,o=az(e,n,t.eventName);if(!o||t.target==="mediaQuery"&&t.eventName!=="change"||t.target==="mediaQuery"&&(o.query=fz(e,o.query),!o.query))return;let s=cz(e,t.target,o);if(!s)return;let i=t.target+":"+(o.query?o.query+":":"")+t.eventName+":"+(o.capture?1:0);if(r.__globalEvents&&r.__globalEvents.has(i))return;let a=um(e,o.handler),c=t.target==="window"&&t.eventName==="load",l=!1,f=p=>{if(ic(e)){if(c){if(l)return;l=!0}a(p)}},u={capture:o.capture,passive:o.passive,once:o.once};if(!uz(s,t.eventName,f,u))return;r.__globalEvents||(r.__globalEvents=new Map);let d={target:s,eventName:t.eventName,listener:f,options:u};r.__globalEvents.set(i,d),r.__eventCleanup||(r.__eventCleanup=[]),r.__eventCleanup.push(()=>{JP(s,t.eventName,f,u),r.__globalEvents&&r.__globalEvents.delete(i)}),c&&dz(e,i,d,()=>l)}function dz(t,e,n,r){let o=n.target.document;!o||o.readyState!=="complete"||Co(t,()=>queueMicrotask(()=>{let s=t.__ref;if(r()||!s||!s.__globalEvents||s.__globalEvents.get(e)!==n)return;let i=n.target,a=typeof i.Event=="function"?i.Event:typeof Event=="function"?Event:null;a&&(n.listener(new a("load")),n.options.once&&r()&&JP(i,"load",n.listener,n.options))}))}var yk=Symbol("handlerChain.none"),pz=new Set(["inView","leaveView"]),hz=new Set(["bridgeMount","bridgeUpdate","bridgeDestroy"]),cc=new WeakMap,QP=new WeakMap,Sk=!1,bk=t=>t!==null&&typeof t=="object"&&t.always===!0;function gz(t){let e=fm(t);return pz.has(e)?!0:Jn.has(e)&&!hz.has(e)}var tL=new Set;function mz(t){tL.has(t)||!tt()||(tL.add(t),console.warn(`[smbls] \`${t}: { always: true, \u2026 }\` \u2014 \`always\` composes the lifecycle hooks (onInit, onRender, onCreate, onMounted, onUpdate, onRemove, \u2026; not the bridge hooks) and onInView / onLeaveView only. \`${t}\` keeps the default merge: an extender's own \`${t}\` replaces this one. Run the shared step from a lifecycle hook, or call it from the extender's handler.`))}function _k(t){return t&&typeof t=="object"?{handler:t.handler,options:t}:{handler:t,options:null}}function Yu(t,e){let n={always:t,own:e,list:e?t.concat(e):t,next:null,prims:null,cleared:null},r=function(...s){return _z(n,this,s)};return cc.set(r,n),Sk=!0,r}function wk(t){let e=QP.get(t);return e||(e=Yu([_k(t)],null),QP.set(t,e)),e}function yz(t,e){let n=cc.get(t);if(e==null||e===!1)return n.own?n.cleared||(n.cleared=Yu(n.always,null)):t;if(typeof e!="object"&&typeof e!="function"){let i=n.prims||(n.prims=new Map),a=i.get(e);return a||i.set(e,a=Yu(n.always,_k(e))),a}let r=n.next||(n.next=new WeakMap),o=r.get(e);if(o)return o;let s=bk(e)?cc.get(wk(e)):typeof e=="function"?cc.get(e):void 0;return o=s?Yu(n.always.concat(s.always),s.own):Yu(n.always,_k(e)),r.set(e,o),o}function bz(t,e,n){let r=bk(e),o=!r&&Sk&&typeof e=="function"&&cc.has(e);if(!r&&!o&&!bk(n))return yk;if(!gz(t))return mz(t),yk;let s=r?wk(e):o?e:null;return s?yz(s,n):wk(n)}function eL(t,e,n,r){if(!fn(e))return!1;let o=bz(e,n,r);return o===yk?!1:(t[e]=o,!0)}function xk(t){if(typeof t=="function"){let e=Sk?cc.get(t):void 0;return e?e.list:[{handler:t,options:null}]}return typeof t=="string"?[{handler:t,options:null}]:t&&typeof t=="object"?[{handler:t.handler,options:t}]:[]}function _z(t,e,n){let r=t.list,o,s=!1,i=null,a=!1,c;for(let l=0;l<r.length;l++){let f=r[l].handler;if(typeof f!="function")continue;let u;try{u=f.apply(e,n)}catch(d){a?console.error("[smbls] lifecycle handler error:",d):(a=!0,c=d);continue}u===!1?s=!0:u&&typeof u.then=="function"&&(i||(i=[])).push(u),o=u}if(a){if(i)for(let l of i)l.then(null,f=>console.error("[smbls] lifecycle handler error:",f));throw c}return s?!1:i?i.length===1?i[0]:wz(i):o}function wz(t){return Promise.allSettled(t).then(e=>{let n=null;for(let r of e)r.status==="rejected"&&(n?console.error("[smbls] lifecycle handler error:",r.reason):n=r);if(n)throw n.reason})}var Sz=1e-6,nL=new WeakMap;function xz(t,e,n){let r=t.defaultView,o=r&&r.IntersectionObserver;if(typeof o!="function")return null;let s=nL.get(t);s||nL.set(t,s=new Map);let i=e+"|"+n,a=s.get(i);if(a)return a;a={id:i,byKey:s,threshold:e,targets:new Map,observer:null};try{let c=n?{threshold:e,rootMargin:n}:{threshold:e};a.observer=new o(l=>kz(a,l),c)}catch{return null}return s.set(i,a),a}function kz(t,e){for(let n=0;n<e.length;n++){let r=e[n],o=t.targets.get(r.target);if(!o)continue;let s=!!r.isIntersecting&&r.intersectionRatio>=t.threshold-Sz;if(s===o.inView)continue;o.inView=s;let i=s?"in":"leave",a=o.subs.slice();for(let c=0;c<a.length;c++){let l=a[c];if(!(l.kind!==i||l.dead)){l.once&&oL(t,o,l);try{l.run(r)}catch(f){Ez(f)}}}}}function Ez(t){typeof globalThis.reportError=="function"?globalThis.reportError(t):queueMicrotask(()=>{throw t})}function oL(t,e,n){if(n.dead)return;n.dead=!0;let r=e.subs.indexOf(n);r!==-1&&e.subs.splice(r,1),!e.subs.length&&(t.targets.delete(e.node),t.observer.unobserve(e.node),!t.targets.size&&(t.observer.disconnect(),t.byKey.delete(t.id)))}function rL(t,e,n,r,o){let s=Gu(t,o.handler),i=o.options;if(typeof s!="function")return;let a=i&&i.threshold,c=typeof a=="number"&&a>=0&&a<=1?a:0,l=i&&typeof i.rootMargin=="string"?i.rootMargin.trim():"",f=xz(n,c,l);if(!f)return;let u=f.targets.get(e);u||(u={node:e,inView:!1,subs:[]},f.targets.set(e,u),f.observer.observe(e));let d={kind:r,once:!!(i&&i.once===!0),run:um(t,s),dead:!1};u.subs.push(d);let p=t.__ref;p.__eventCleanup||(p.__eventCleanup=[]),p.__eventCleanup.push(()=>oL(f,u,d))}function sL(t){if(globalThis.__SMBLS_BUILD_DROP_F_viewEvents__)return qt("viewEvents",t);let e=t.node;if(!e||e.nodeType!==1)return;let n=e.ownerDocument,r=n&&n.defaultView;if(!r||typeof r.IntersectionObserver!="function")return;let o=xk(t.onInView);for(let i=0;i<o.length;i++)rL(t,e,n,"in",o[i]);let s=xk(t.onLeaveView);for(let i=0;i<s.length;i++)rL(t,e,n,"leave",s[i])}Mt();Mt();function un(t,e){let n=t&&t.context&&t.context.designSystem;if(!n)return e();mt(n);try{return e()}finally{ht()}}var ve=Qo||(t=>{let e=Me();if(!e)return t();hl(null);try{return t()}finally{hl(e)}});M();M();var lL=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],vz=["none","forwards","backwards","both"],Az=["normal","reverse","alternate","alternate-reverse"],Cz=["running","paused"],Tz=/^(?:translate(?:3d|x|y|z)?\((?:\s*0[a-z%]*\s*,?)+\)|scale(?:3d|x|y|z)?\((?:\s*1(?:\.0+)?\s*,?)+\)|rotate(?:3d|x|y|z)?\((?:\s*0[a-z%]*\s*,?)+\)|skew(?:x|y)?\((?:\s*0[a-z%]*\s*,?)+\)|matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\))$/,Oz=t=>{let e=String(t).trim().toLowerCase();if(e===""||e==="none"||e==="initial"||e==="unset")return!0;let n=e.match(/[a-z0-9]+\([^()]*\)/g);return!n||n.join("").replace(/\s+/g,"")!==e.replace(/\s+/g,"")?!1:n.every(r=>Tz.test(r.replace(/\s+/g,"")))},iL=t=>/^(?:\s*0[a-z%]*)+\s*$/.test(String(t).toLowerCase())||/^(none|initial|unset)$/.test(String(t).trim().toLowerCase()),Rz={transform:Oz,translate:iL,rotate:t=>iL(t)||/^\s*(?:[xyz]\s+)?0(?:deg|rad|turn|grad)?\s*$/.test(String(t).toLowerCase()),scale:t=>/^(none|initial|unset)$/.test(String(t).trim().toLowerCase())||/^(?:\s*1(?:\.0+)?)+\s*$/.test(String(t)),opacity:t=>/^(initial|unset)$/.test(String(t).trim().toLowerCase())||Number(t)===1},Pz=t=>{let e=String(t).trim().toLowerCase();if(e==="from")return 0;if(e==="to")return 100;let n=e.match(/^(\d+(?:\.\d+)?)%$/);return n?Number(n[1]):null},Lz=t=>{if(!E(t))return null;let e=null,n=-1;for(let r in t){let o=Pz(r);o==null||!E(t[r])||o>=n&&(n=o,e=t[r])}return e},Dz=t=>{let e=Lz(t);if(!e)return!1;let n=Object.keys(e);if(!n.length)return!1;for(let r of n){let o=Rz[r];if(!o)return!1;let s=e[r];if(s==null||typeof s=="object"||typeof s=="function"||!o(s))return!1}return!0},Iz=(t,e)=>{if(E(t))return t;let{animation:n}=e.context&&e.context.designSystem||{},r=n&&n[t];return E(r)?r:null},Mz=["reverse","alternate","alternate-reverse"],fL=(t,e,n)=>{let r=n||e.animationDirection;return r&&Mz.includes(String(r))?"both":Dz(Iz(t,e))?"backwards":"both"},Nz=0,aL=new Map,kk=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{};if(E(t)){let o=JSON.stringify(t),s=aL.get(o);if(s)return s;let i=`smbls-anim-${Nz++}`,a=oc(i,t);return aL.set(o,a),a}let r=n&&n[t];return E(r)?oc(t,r):t},uL=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)m?s$/i,$z=/^(?:\d+(?:\.\d*)?|\.\d+)$/,dL=/^(?:cubic-bezier|steps|linear)\(/,Fz=/^(?:calc|min|max|clamp)\(/,Bz=t=>t.includes("(")||t.startsWith("--"),jz=(t,e)=>{if(!Pn.test(t))return!1;let n=e&&e.sequence;if(!E(n))return!1;let r=t.charCodeAt(0)===45?t.slice(1):t;return!!(n[r]||r.length===2&&n[r[0]])},Uz=t=>{if(!v(t))return!1;let e=t.trim();return lL.includes(e)||dL.test(e)||e.startsWith("var(")},Vz=(t,e)=>!!e&&Uz(e[t]||e[Sr(t)]),zz=["duration","timingFunction","delay","iterationCount","direction","fillMode","playState"],Hz=t=>ut(String(t)),Wz=(t,e,n)=>{let r={duration:null,delay:null,timingFunction:null,iterationCount:null,direction:null,fillMode:null,playState:null},o=null,s=[],i=[],a=(u,d)=>r[u]!=null?!1:(r[u]=d,!0),c=(u,d)=>{a(u,d)||s.push(d)};for(let u of Hz(t))e&&e[u]?o=u:uL.test(u)||jz(u,n)?a("duration",u)||a("delay",u):lL.includes(u)||Vz(u,n)?c("timingFunction",u):dL.test(u)?a("timingFunction",u):u==="infinite"?c("iterationCount",u):$z.test(u)?a("iterationCount",Number(u)):Az.includes(u)?c("direction",u):vz.includes(u)?c("fillMode",u):Cz.includes(u)?c("playState",u):Bz(u)?i.push(u):s.push(u);let l=o||s[0]||i.shift()||null,f=new Set;for(let u of i){let d=zz.find(p=>r[p]==null);if(!d)break;r[d]=u.startsWith("--")?`var(${u})`:u,f.add(d)}return{name:l,...r,opaqueSlots:f}},Kz=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{},{timing:r}=P()||{};return On(String(t)).map(o=>o.trim()).filter(Boolean).map(o=>Wz(o,n,r))},cL=(t,e)=>uL.test(t)||e&&!Fz.test(t)&&!/^(?:var|env)\(/.test(t)?t:Se(t).timing||t,qz=(t,e)=>{let n=r=>t.opaqueSlots.has(r);return{animationName:t.name==null?void 0:kk(t.name,e),animationDuration:t.duration!=null?cL(t.duration,n("duration")):Se(e.animationDuration||"A").timing,animationDelay:t.delay!=null?cL(t.delay,n("delay")):Se(e.animationDelay||"0s").timing,animationTimingFunction:t.timingFunction!=null?n("timingFunction")?t.timingFunction:je(t.timingFunction):je(e.animationTimingFunction||"ease"),animationFillMode:t.fillMode||e.animationFillMode||fL(t.name,e,t.direction),animationIterationCount:t.iterationCount!=null?t.iterationCount:e.animationIterationCount||1,animationPlayState:t.playState||e.animationPlayState,animationDirection:t.direction||e.animationDirection}},Gz={animationName:"none",animationPlayState:"running",animationDirection:"normal"},Yz=(t,e)=>{let n=t.map(o=>qz(o,e));if(n.length===1)return n[0];let r={};for(let o in n[0]){let s=n.map(i=>i[o]);s.every(i=>i==null)||(r[o]=s.map(i=>i??Gz[o]).join(", "))}return r},Ek={animation:(t,e)=>{if(t!=null){if(v(t)&&/[\s,]/.test(t)){let n=Kz(t,e);if(n.length)return Yz(n,e)}return{animationName:kk(t,e),animationDuration:Se(e.animationDuration||"A").timing,animationDelay:Se(e.animationDelay||"0s").timing,animationTimingFunction:je(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||fL(t,e),animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}}},animationName:(t,e)=>({animationName:kk(t,e)}),animationDuration:t=>({animationDuration:Se(t).timing}),animationDelay:t=>({animationDelay:Se(t).timing}),animationTimingFunction:t=>({animationTimingFunction:je(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};M();var hm=(t,e,n)=>{if(typeof e=="number"&&(e=String(e)),!v(e))return;let[r,o]=ut(e);return{...j(t+"Start",r,n),...j(t+"End",o||r,n)}},vk={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>j("height",t,e),width:(t,e)=>j("width",t,e),boxSizing:t=>Xt(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("height",e),...Nt("width",n||e)}},inlineSize:(t,e)=>j("inlineSize",t,e),blockSize:(t,e)=>j("blockSize",t,e),minWidth:(t,e)=>j("minWidth",t,e),maxWidth:(t,e)=>j("maxWidth",t,e),widthRange:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("minWidth",e),...Nt("maxWidth",n||e)}},minHeight:(t,e)=>j("minHeight",t,e),maxHeight:(t,e)=>j("maxHeight",t,e),heightRange:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("minHeight",e),...Nt("maxHeight",n||e)}},size:t=>{if(!v(t))return;let[e,n]=ut(t);return{...j("inlineSize",e),...j("blockSize",n||e)}},minBlockSize:(t,e)=>j("minBlockSize",t,e),minInlineSize:(t,e)=>j("minInlineSize",t,e),maxBlockSize:(t,e)=>j("maxBlockSize",t,e),maxInlineSize:(t,e)=>j("maxInlineSize",t,e),minSize:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("minInlineSize",e),...Nt("minBlockSize",n||e)}},maxSize:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("maxInlineSize",e),...Nt("maxBlockSize",n||e)}},borderWidth:(t,e)=>j("borderWidth",t,e),borderTopWidth:(t,e)=>j("borderTopWidth",t,e),borderRightWidth:(t,e)=>j("borderRightWidth",t,e),borderBottomWidth:(t,e)=>j("borderBottomWidth",t,e),borderLeftWidth:(t,e)=>j("borderLeftWidth",t,e),textDecorationThickness:(t,e)=>j("textDecorationThickness",t,e),textUnderlineOffset:(t,e)=>j("textUnderlineOffset",t,e),padding:(t,e)=>j("padding",t,e),paddingInline:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("paddingInlineStart",e),...Nt("paddingInlineEnd",n||e)}},paddingBlock:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("paddingBlockStart",e),...Nt("paddingBlockEnd",n||e)}},paddingTop:(t,e)=>j("paddingBlockStart",t,e),paddingBottom:(t,e)=>j("paddingBlockEnd",t,e),paddingLeft:(t,e)=>j("paddingInlineStart",t,e),paddingRight:(t,e)=>j("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>j("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>j("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>j("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>j("paddingInlineEnd",t,e),margin:(t,e)=>j("margin",t,e),marginInline:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("marginInlineStart",e),...Nt("marginInlineEnd",n||e)}},marginBlock:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("marginBlockStart",e),...Nt("marginBlockEnd",n||e)}},marginTop:(t,e)=>j("marginBlockStart",t,e),marginBottom:(t,e)=>j("marginBlockEnd",t,e),marginLeft:(t,e)=>j("marginInlineStart",t,e),marginRight:(t,e)=>j("marginInlineEnd",t,e),marginInlineStart:(t,e)=>j("marginInlineStart",t,e),marginInlineEnd:(t,e)=>j("marginInlineEnd",t,e),marginBlockStart:(t,e)=>j("marginBlockStart",t,e),marginBlockEnd:(t,e)=>j("marginBlockEnd",t,e),scrollMargin:(t,e)=>j("scrollMargin",t,e),scrollMarginTop:(t,e)=>j("scrollMarginTop",t,e),scrollMarginRight:(t,e)=>j("scrollMarginRight",t,e),scrollMarginBottom:(t,e)=>j("scrollMarginBottom",t,e),scrollMarginLeft:(t,e)=>j("scrollMarginLeft",t,e),scrollMarginBlock:(t,e)=>hm("scrollMarginBlock",t,e),scrollMarginInline:(t,e)=>hm("scrollMarginInline",t,e),scrollMarginBlockStart:(t,e)=>j("scrollMarginBlockStart",t,e),scrollMarginBlockEnd:(t,e)=>j("scrollMarginBlockEnd",t,e),scrollMarginInlineStart:(t,e)=>j("scrollMarginInlineStart",t,e),scrollMarginInlineEnd:(t,e)=>j("scrollMarginInlineEnd",t,e),scrollPadding:(t,e)=>j("scrollPadding",t,e),scrollPaddingTop:(t,e)=>j("scrollPaddingTop",t,e),scrollPaddingRight:(t,e)=>j("scrollPaddingRight",t,e),scrollPaddingBottom:(t,e)=>j("scrollPaddingBottom",t,e),scrollPaddingLeft:(t,e)=>j("scrollPaddingLeft",t,e),scrollPaddingBlock:(t,e)=>hm("scrollPaddingBlock",t,e),scrollPaddingInline:(t,e)=>hm("scrollPaddingInline",t,e),scrollPaddingBlockStart:(t,e)=>j("scrollPaddingBlockStart",t,e),scrollPaddingBlockEnd:(t,e)=>j("scrollPaddingBlockEnd",t,e),scrollPaddingInlineStart:(t,e)=>j("scrollPaddingInlineStart",t,e),scrollPaddingInlineEnd:(t,e)=>j("scrollPaddingInlineEnd",t,e),gap:t=>({gap:Vg(t)}),columnGap:(t,e)=>Be(e,"columnGap",t),rowGap:(t,e)=>Be(e,"rowGap",t),flexWrap:t=>{if(t!=null)return{display:"flex",flexWrap:t}},flexFlow:(t,e)=>{let n=e.reverse;if(!v(t))return;let[r,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(r="row"),(t.startsWith("y")||t==="column")&&(r="column"),{display:"flex",flexFlow:(r||"")+(!r.includes("-reverse")&&n?"-reverse":"")+" "+(o||"")}},flexAlign:t=>{if(!v(t))return;let[e,n]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:n}},round:(t,e)=>Pr(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>Pr(t??e.round,e,"borderRadius"),borderTopLeftRadius:(t,e)=>Pr(t,e,"borderTopLeftRadius","borderTopLeftRadius"),borderTopRightRadius:(t,e)=>Pr(t,e,"borderTopRightRadius","borderTopRightRadius"),borderBottomLeftRadius:(t,e)=>Pr(t,e,"borderBottomLeftRadius","borderBottomLeftRadius"),borderBottomRightRadius:(t,e)=>Pr(t,e,"borderBottomRightRadius","borderBottomRightRadius"),backgroundSize:(t,e)=>({backgroundSize:Ys(t,"backgroundSize",Iu,e)}),backgroundPosition:(t,e)=>({backgroundPosition:Ys(t,"backgroundPosition",Mu,e)}),maskSize:(t,e)=>({maskSize:Ys(t,"maskSize",Iu,e)}),maskPosition:(t,e)=>({maskPosition:Ys(t,"maskPosition",Mu,e)})};var Ak={fontSize:t=>Au(t)||t,fontFamily:t=>({fontFamily:Eu(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t}),lineClamp:t=>{if(t!=null)return t==="none"?{WebkitLineClamp:"none",lineClamp:"none"}:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:String(t),lineClamp:String(t),overflow:"hidden"}}};var Ck={overflow:t=>({overflow:t}),cursor:(t,e,n,r)=>{if(!t)return;let o=r.assets&&r.assets[t];if(o&&o.content)t=`url(${o.content.src})`;else{let s=r.files&&r.files[t];s&&s.content&&(t=`url(${s.content.src})`)}return{cursor:t}},opacity:t=>t!=null?{opacity:String(t)}:void 0,visibility:t=>t!=null?{visibility:t}:void 0,pointerEvents:t=>t!=null?{pointerEvents:t}:void 0};var Tk={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:ut(t).map(n=>Vt(n,"k").k).join(" ")}},left:t=>Vt(t,"left"),top:t=>Vt(t,"top"),right:t=>Vt(t,"right"),bottom:t=>Vt(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=ut(t).map(n=>Vt(n,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=ut(t).map(n=>Vt(n,"k").k);return{left:e[0],right:e[1]||e[0]}}};M();var gm=0,mm=()=>{gm++},ym=()=>{gm>0&&gm--},fe=({context:t,state:e})=>{let n=t?.designSystem,r=e?.root?.globalTheme||n?.globalTheme;return r&&r!=="auto"?r:gm>0?null:n&&n.resolvedTheme||null},ue=(t,e)=>{if(e==null||e==="")return;if(!E(e))return{[t]:e};let n={},r=!1;for(let o in e){let s=e[o];if(!(s==null||s==="")){if(E(s)){let i=ue(t,s);i&&(n[o]=i,r=!0);continue}n[o]={[t]:s},r=!0}}return r?n:void 0},pL=t=>{let e={};for(let n in t){let r=t[n];e[n]=E(r)?pL(r):v(r)?r+" !important":r}return e},Qs=t=>(e,n)=>{let r=n&&v(e)&&!P().useVariable,o=Fg(e,r?fe(n):null);return E(o)?ue(t,o):{[t]:o}},Ok={theme:(t,e)=>{if(t)return e.themeModifier?an(t,`@${e.themeModifier}`):an(t)},color:(t,e)=>{let n=fe(e);if(t)return ue("color",Kt(t,n))},background:(t,e)=>{let n=fe(e);if(t)return v(t)&&t.includes("gradient")&&t.includes("(")?{background:vo(t,n)}:ue("background",Kt(t,n))},backgroundColor:(t,e)=>{let n=fe(e);if(t)return ue("backgroundColor",Kt(t,n))},backgroundImage:(t,e,n,r)=>{let o=fe(e);if(!t)return;let s=r.assets&&r.assets[t];if(s&&s.content)t=s.content.src;else{let i=r.files&&r.files[t];i&&i.content&&(t=i.content.src)}return ue("backgroundImage",Ug(t,o))},textStroke:t=>{let e=Bg(t);if(e!=null)return{WebkitTextStroke:e}},outline:Qs("outline"),outlineWidth:(t,e)=>j("outlineWidth",t,e),outlineColor:(t,e)=>{let n=fe(e);if(t)return ue("outlineColor",Kt(t,n))},outlineOffset:(t,e)=>j("outlineOffset",t,e),border:Qs("border"),borderColor:(t,e)=>{let n=fe(e);if(t)return ue("borderColor",Kt(t,n))},borderTopColor:(t,e)=>{let n=fe(e);if(t)return ue("borderTopColor",Kt(t,n))},borderBottomColor:(t,e)=>{let n=fe(e);if(t)return ue("borderBottomColor",Kt(t,n))},borderLeftColor:(t,e)=>{let n=fe(e);if(t)return ue("borderLeftColor",Kt(t,n))},borderRightColor:(t,e)=>{let n=fe(e);if(t)return ue("borderRightColor",Kt(t,n))},borderLeft:Qs("borderLeft"),borderTop:Qs("borderTop"),borderRight:Qs("borderRight"),borderBottom:Qs("borderBottom"),shadow:(t,e)=>{let n=fe(e);if(t)return ue("boxShadow",jg(t,n))},boxShadow:(t,e)=>{if(!v(t))return;let[n,r]=t.split("!importan"),o=fe(e),s=r?" !important":"",i=Du(n.trim(),o);return v(i)?{boxShadow:i+s}:ue("boxShadow",s?pL(i):i)},textShadow:(t,e)=>ue("textShadow",Du(t,e?fe(e):null)),columnRule:Qs("columnRule")};var Xu={transition:t=>{let e=Hg(t);if(e!=null)return{transition:e}},transitionDuration:t=>({transitionDuration:Nu(t)}),transitionDelay:t=>({transitionDelay:Nu(t)}),transitionTimingFunction:t=>({transitionTimingFunction:je(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};M();var Rk={flow:(t,e)=>{let n=e.reverse;if(!v(t))return;let[r,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(r="row"),(t.startsWith("y")||t==="column")&&(r="column"),{display:"flex",flexFlow:(r||"")+(!r.includes("-reverse")&&n?"-reverse":"")+" "+(o||"")}},wrap:(t,e)=>{if(t!=null)return{display:"flex",flexWrap:t}},align:(t,e)=>{if(!v(t))return;let[n,r]=t.split(" ");return{display:"flex",alignItems:n,justifyContent:r}}};M();var Xz=/(^|[^\w.-])([A-Za-z_][\w-]*)/g,hL=t=>{if(!v(t))return t;let e=P().sizes;return e?t.replace(Xz,(n,r,o)=>{let s=e[o];return s==null?n:r+String(s)}):t},Qn=t=>hL(zg(t)),Pk={gridTemplateColumns:t=>({gridTemplateColumns:Qn(t)}),gridTemplateRows:t=>({gridTemplateRows:Qn(t)}),gridAutoColumns:t=>({gridAutoColumns:Qn(t)}),gridAutoRows:t=>({gridAutoRows:Qn(t)}),area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:Qn(t)}),templateColumns:t=>({gridTemplateColumns:Qn(t)}),autoColumns:t=>({gridAutoColumns:Qn(t)}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:Qn(t)}),templateRows:t=>({gridTemplateRows:Qn(t)}),autoRows:t=>({gridAutoRows:Qn(t)}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var gL="breakpoints",Zz=new Set(["window","media"]),mL=/^-?[A-Za-z_][\w-]*$/,yL=new Set(["none","and","or","not","initial","inherit","unset","revert","revert-layer","default"]),Jz=t=>{let e=t&&t.containerName;if(typeof e!="string")return null;let n=e.trim().split(/\s+/)[0];return n&&mL.test(n)&&!yL.has(n)?n:null},bm=(t,e)=>{if(typeof t=="function")try{t=t(e,e&&e.state,e&&e.context)}catch{return null}if(typeof t!="string")return null;let n=t.trim();return!n||Zz.has(n)?null:n==="container"?Jz(e)||gL:mL.test(n)&&!yL.has(n)?n:null},Qz=/^@media\s+/i,tH=/^(?:only\s+)?(?:screen|all)\s+and\s+/i,eH=/(?:^|[^\w-])(?:(?:min|max)-)?(?:width|inline-size)(?![\w-])/i,nH=/height|block-size|aspect-ratio|orientation|device-|resolution/i,Lk=t=>{if(typeof t!="string")return null;let e=t.trim().replace(Qz,"").replace(tH,"").trim();if(!e||e.indexOf(",")!==-1)return null;let n=e.split(/\s+(?:and|or)\s+/i);for(let r of n){let o=r.trim();if(o.charCodeAt(0)!==40||o.charCodeAt(o.length-1)!==41)return null;let s=o.slice(1,-1);if(s.indexOf("(")!==-1||s.indexOf(")")!==-1||!eH.test(s)||nH.test(s))return null}return e},Dk={breakpointsFrom:(t,e)=>{let n=bm(t,e);if(!n)return;let r={},o=e&&e.container!=null;return!o&&(!e||e.containerType==null)&&(r.containerType="inline-size"),!o&&(!e||e.containerName==null)&&(r.containerName=n),r}};var xt={...Ek,...vk,...Ak,...Ck,...Tk,...Ok,...Xu,...Rk,...Pk,...Dk};var Bt=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","anchorName","anchorScope","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationRange","animationRangeEnd","animationRangeStart","animationTimeline","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","containIntrinsicBlockSize","containIntrinsicHeight","containIntrinsicInlineSize","containIntrinsicSize","containIntrinsicWidth","container","containerName","containerType","content","contentVisibility","counterIncrement","counterReset","cursor","direction","display","emptyCells","fieldSizing","fill","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","interpolateSize","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","overscrollBehavior","overscrollBehaviorX","overscrollBehaviorY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","positionAnchor","positionArea","positionTry","positionTryFallbacks","positionTryOrder","positionVisibility","resize","right","rotate","rowGap","scrollBehavior","scrollMargin","scrollMarginBlock","scrollMarginBlockEnd","scrollMarginBlockStart","scrollMarginBottom","scrollMarginInline","scrollMarginInlineEnd","scrollMarginInlineStart","scrollMarginLeft","scrollMarginRight","scrollMarginTop","scrollPadding","scrollPaddingBlock","scrollPaddingBlockEnd","scrollPaddingBlockStart","scrollPaddingBottom","scrollPaddingInline","scrollPaddingInlineEnd","scrollPaddingInlineStart","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop","scrollSnapAlign","scrollSnapStop","scrollSnapType","scrollTimeline","scrollTimelineAxis","scrollTimelineName","scrollbarColor","scrollbarGutter","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","stroke","tabSize","tableLayout","textAlign","textAlignLast","textBox","textBoxEdge","textBoxTrim","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","textWrap","textWrapMode","textWrapStyle","timelineScope","top","touchAction","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","viewTimeline","viewTimelineAxis","viewTimelineInset","viewTimelineName","viewTransitionClass","viewTransitionName","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);M();var rH=/^[a-z][0-9]?$/,bL=/var\(\s*(--[A-Za-z0-9-]+)/g,oH=t=>{let e=new Set,n=new Set;if(!t||typeof t!="object")return{knownLetters:e,knownVars:n};for(let r in t){let o=t[r];if(!(!o||typeof o!="object")){if(o.sequence&&typeof o.sequence=="object")for(let s in o.sequence)e.add(s);if(o.vars&&typeof o.vars=="object")for(let s in o.vars)n.add(s)}}return{knownLetters:e,knownVars:n}},sH=Object.prototype.propertyIsEnumerable,_L=(t,e)=>{if(!t||typeof t!="object")return!1;for(let n in t){let r=t[n];if(!r||typeof r!="object")continue;let o=r.sequence;if(o&&typeof o=="object"&&sH.call(o,e))return!0}return!1},Ik=/[(),\s]+/,Mk=(t,e)=>{let n=null,r=t.split(Ik);for(let o=0;o<r.length;o++){let s=r[o];s&&e(s)&&(n||(n=[])).push(s)}return n},Nk=(t,e)=>Pn.test(t)&&e(t.charCodeAt(0)===45?t.slice(1):t),iH=(t,e)=>{if(!e.size)return[];let n=o=>e.has(o),r=Mk(t,o=>Nk(o,n));return r?[...new Set(r)]:[]},aH=(t,e)=>{if(!e.size)return[];let n=[];bL.lastIndex=0;let r;for(;r=bL.exec(t);){let o=r[1];if(e.has(o))continue;let s=o.lastIndexOf("-");if(s===-1)continue;let i=o.slice(s+1);if(!rH.test(i))continue;let a=o.slice(0,s+1)+i.toUpperCase();a!==o&&e.has(a)&&n.push({varName:o,corrected:a})}return n},_m=new Set,wL=(t,e,n)=>{if(!tt()||!v(e)||!e)return;let r;try{r=P()}catch{return}let{knownLetters:o,knownVars:s}=oH(r);if(!o.size&&!s.size)return;let i=iH(e,o),a=aH(e,s);if(!i.length&&!a.length)return;let c=n?.__ref?.path?n.__ref.path.join("."):n?.key||"?";for(let l of i){let f=`${c}::${t}::bare::${l}::${e}`;_m.has(f)||(_m.add(f),console.warn(`[smbls/css-in-props] "${t}" on <${c}> looks like it contains an un-wrapped design-system token ("${l}") \u2014 "${t}" has no registered resolver, so its value is forwarded to the browser untouched. A bare letter token there is invalid CSS, so the browser drops the ENTIRE "${t}" declaration (not just this argument). Wrap it in var(--<family>-${l.replace("-","")}) (or calc(-1 * var(--<family>-${l.replace("-","")})) for a negative). Value: "${e}"`))}for(let{varName:l,corrected:f}of a){let u=`${c}::${t}::case::${l}::${e}`;_m.has(u)||(_m.add(u),console.warn(`[smbls/css-in-props] "${t}" on <${c}> references ${l}, which the active design system never emits. CSS custom-property names are case-sensitive \u2014 the real variable is ${f}, so this reference silently never resolves. Value: "${e}"`))}};M();var cH=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,lH=(t,e,n)=>{let{context:r}=n;if(!r.designSystem?.media)return;let o=t.slice(1),s=r.designSystem.media[o],i=Bs(s||t)?Fs(()=>ee(e,n)):ee(e,n);if(!s)return{[t]:i};if(/^@(media|supports|container)\b/.test(s))return{[s]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(cH),c=a?a[1]||a[2]:o,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let f=r.designSystem?.scopeSelector||":root",u=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${u} &`]:i}}return l},SL=(t,e,n)=>({[t]:ee(e,n)}),Zu=(t,e,n)=>{let r=`&${t}`,o=ee(e,n);if(t.includes(",")&&o){let s={},i={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?i[a]=o[a]:s[a]=o[a];if(Object.keys(i).length){let a=r.split(",").map(l=>l.trim()),c={};Object.keys(s).length&&(c[r]=s);for(let l in i){let f=a.map(u=>`${u} ${l}`).join(", ");c[f]=i[l]}return c}}return{[r]:o}},$k=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return L(n)?n.call(e,e):!!n},fH=(t,e,n)=>{let r=t.slice(1),o=$k(r,n);if(o===void 0&&(o=!!n[r]),!!o)return ee(e,n)},uH=(t,e,n)=>({[t]:e}),dH=(t,e,n)=>{let r=t.slice(1),o=n[r]===!0||n.state?.[r];if(!o)if(typeof n[r]=="function")try{o=n[r](n,n.state,n.context)}catch{}else{let s=$k(r,n);s!==void 0&&(o=s)}if(o)return ee(e,n)},pH=(t,e,n)=>{let r=t.slice(1),o=n[r]===!0||n.state?.[r];if(!o)if(typeof n[r]=="function")try{o=n[r](n,n.state,n.context)}catch{}else{let s=$k(r,n);s!==void 0&&(o=s)}if(!o)return ee(e,n)},Fk=(t,e)=>ee(t,e),Bk={"@":lH,":":Zu,"[":Zu,"*":Zu,"+":Zu,"~":Zu,"&":SL,">":SL,$:fH,"-":uH,".":dH,"!":pH};var wm=ro(),xL=(t,e,n)=>{let r=e?.context?.designSystem;r&&mt(r);try{let o={},s={},i=(a,c)=>{if(n.unpack){o={...o,...c};return}o[a]=c};for(let a in t){let c=t[a];if(c!==null)if(a==="class"&&v(c)){let l=kL(c,e);l&&(n.unpack?Lt(o,l):o.designSystemClass=l)}else if(a==="true"){let l=St(c,e);Lt(o,Fk(l,e))}else if(e.classlist?.[a]){let l=e.classlist[a],f=L(l)?l(e,e.state,e.context):l;f&&i(a,f),!wm&&E(o[a])&&(o[a].label=a)}else if(xt[a]){let l=St(c,e);if(l===null)continue;I(l)&&(l=l.reduce((u,d)=>Lt(u,d),{}));let f=xt[a](l,e,e.state,e.context);I(f)&&(f=f.reduce((u,d)=>Lt(u,d),{})),f&&i(a,f),!wm&&E(o[a])&&(o[a].label=a)}else if(Bt.has(a)){let l=St(c,e);if(l===null)continue;typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),wm||wL(a,l,e),i(a,{[a]:l}),!wm&&E(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{r&&ht()}},kL=(t,e)=>{if(!v(t))return;let n=e?.context?.designSystem?.class;if(!n)return;let r;for(let o of t.split(" ")){if(!o)continue;let s=n[o];if(!E(s))continue;let i=pt(s);r=r?ie(r,i):i}if(r)return ee(r,e)},EL=(t,e)=>{let n={};for(let r in t){let o=Bk[r.slice(0,1)];if(o){let s=o(r,t[r],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]&&typeof n[i]=="object"&&typeof s[i]=="object"?ie(n[i],s[i]):n[i]=s[i])}}return n},ee=(t,e,n={unpack:!0})=>{let[r,o]=xL(t,e,n),s=EL(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(n.unpack)return Nl(r,s);r._selectors=s}return r},hH=(t,e)=>{let n={};if(t.class)for(let r in t.class)n[r]=t.class[r](e);return n};M();var vL=t=>{if(E(t))return ee(t,t)},gH=(t,e)=>{let n=vL(t);return typeof e=="function"?e(n):Ve(n)};M();var AL=/\s*!important\s*$/,mH=()=>{let t;try{t=P()}catch{t=null}let e=t&&t.sizes&&typeof t.sizes=="object"?t.sizes:null,n=null,r=s=>{n||(n=new Map);let i=n.get(s);return i===void 0&&(i=_L(t,s),n.set(s,i)),i},o=s=>Ua(e,s)!==void 0;return{isToken:s=>s.charCodeAt(0)!==35&&(Nk(s,r)||o(s))}},yH=(t,e)=>{let n=String(t).split(Ik);for(let r=0;r<n.length;r++)if(n[r]===e)return!0;return!1},bH=(t,e)=>{let n=typeof globalThis<"u"?globalThis.CSS:void 0;if(!n||typeof n.supports!="function")return!1;try{return n.supports(Ee(t),e)}catch{return!1}},CL=new Set,_H=(t,e,n)=>{if(!tt())return;let r=t?.__ref?.path?t.__ref.path.join("."):t?.key||"?",o=r+"::"+e+"::"+n;CL.has(o)||(CL.add(o),console.warn(`[smbls/css-in-props] style.${e} on <${r}> holds a design-system token the "${e}" transformer could not resolve to one inline value, so it is written as is and the browser drops it. Move the key out of \`style\` to the element itself, or write the resolved CSS. Value: "${n}"`))},wH=(t,e)=>{if(!t||typeof t!="object")return!1;let n=!1;for(let r in t){let o=t[r];if(o!=null){if(typeof o=="object"||typeof o=="function")return!1;for(let s of e)if(yH(o,s))return!1;n=!0}}return n},SH=(t,e,n,r)=>{if(!v(e)||!e||t.charCodeAt(0)===45&&t.charCodeAt(1)===45)return null;let o=xt[t];if(!o||!Bt.has(t))return null;let s=AL.test(e),i=s?e.replace(AL,""):e,a=Mk(i,r.isToken);if(!a||bH(t,i))return null;let c;try{c=o(i,n,n?.state,n?.context)}catch{c=null}if(Array.isArray(c)){let f={};for(let u of c)u&&typeof u=="object"&&Object.assign(f,u);c=f}if(!wH(c,a))return _H(n,t,e),null;let l={};for(let f in c){let u=c[f];u!=null&&(l[f]=s?String(u)+" !important":u)}return l},TL=(t,e,n)=>{let r={},o=!1;for(let s in t){let i=t[s];if(s.charCodeAt(0)===38&&i&&typeof i=="object"&&!Array.isArray(i)){let c=TL(i,e,n);c!==i&&(o=!0),r[s]=c;continue}let a=SH(s,i,e,n);a?(o=!0,Object.assign(r,a)):r[s]=i}return o?r:t},jk=(t,e)=>!t||typeof t!="object"||Array.isArray(t)?t:TL(t,e,mH());if(!vt||!cn)throw new Error("@symbo.ls/element: the installed @symbo.ls/css does not export CSS_SHORTHAND_LONGHANDS / CSS_LONGHAND_SHORTHANDS (the CSS shorthand family table, packages/css/src/cssLonghands.js). This element needs the @symbo.ls/css published in the same release \u2014 update @symbo.ls/css.");var Sm=vt,To=cn,xm=Qa||(()=>!1),OL=Bu||xm,RL=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Nr=Ee||(t=>RL(t)?t:t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())),Ju=zu||(t=>RL(t)?t:t.replace(/-([a-z])/g,(e,n)=>n.toUpperCase()));function LL(t){let e=[];return t.extends&&(Array.isArray(t.extends)?e.push(...t.extends):e.push(t.extends)),t.extend&&(Array.isArray(t.extend)?e.push(...t.extend):e.push(t.extend)),e}function lc(t,e,n){let r=LL(e);if(!r.length)return;let s=(t.context||n?.context||{}).components||{};for(let i=0;i<r.length;i++){let a=DL(r[i],s);a&&a!==e&&IL(t,a,n,new Set([e]))}}function DL(t,e){if(typeof t=="string"){if(t.includes(">")){let n=t.split(">").map(o=>o.trim()),r=e[n[0]]||e[`smbls.${n[0]}`];for(let o=1;o<n.length&&r;o++)r=r[n[o]];return r||null}return e[t]||e[`smbls.${t}`]||null}return typeof t=="object"&&t!==null?t:null}function IL(t,e,n,r=new Set){if(r.has(e))return;r.add(e);let o=LL(e);if(o.length){let a=(t.context||n?.context||{}).components||{};for(let c=0;c<o.length;c++){let l=DL(o[c],a);l&&IL(t,l,n,r)}}let s=Vk(t);for(let i in e){if(i==="extends"||i==="extend")continue;let a=e[i];s&&s.mark(i);let c=ct.chains;c!==null&&c(t,i,t[i],a)||(t[i]===void 0?a&&typeof a=="object"&&!Array.isArray(a)&&typeof a!="function"?t[i]={...a}:t[i]=a:typeof t[i]=="object"&&typeof a=="object"&&!Array.isArray(t[i])&&!Array.isArray(a)&&t[i]!==null&&a!==null?t[i]=ze(t[i],a):t[i]=a)}}var Uk=class{constructor(){this.rank=0,this.ranks=null}mark(e){xH(e)&&(this.ranks||(this.ranks=new Map),this.ranks.set(e,this.rank))}get(e){return this.ranks?this.ranks.get(e):void 0}get size(){return this.ranks?this.ranks.size:0}},km=new Set;for(let t of[To,Sm])for(let e in t)km.add(e),km.add(Ju(e));var PL=new Map;function xH(t){let e=t.charCodeAt(0);if(e>=65&&e<=90||e>=48&&e<=57)return!1;let n=PL.get(t);return n===void 0&&(n=!!xt[t]||km.has(t)||t.indexOf("-")>=0&&!(t.charCodeAt(0)===45&&t.charCodeAt(1)===45)&&km.has(Nr(t)),PL.set(t,n)),n}function Vk(t){let e=t&&t.__ref;if(!e)return null;let n=e.__mergeLayer;return n||(n=e.__mergeLayer=new Uk),n.rank++,n}function ML(t){let e=t&&t.__ref&&t.__ref.__mergeLayer;if(!e||!e.ranks)return;let n;for(let r of e.ranks.values())if(n===void 0)n=r;else if(r!==n)return;e.ranks=null}function ze(t,e){let n={...t},r=ct.chains;for(let o in e){let s=n[o],i=e[o];r!==null&&r(n,o,s,i)||(s&&i&&typeof s=="object"&&typeof i=="object"&&!Array.isArray(s)&&!Array.isArray(i)&&typeof s!="function"&&typeof i!="function"?n[o]=ze(s,i):n[o]=i)}return n}Mt();Mt();Mt();var ti="http://www.w3.org/2000/svg",dc=new Set(["svg","path","circle","ellipse","line","polyline","polygon","rect","g","defs","use","symbol","clipPath","mask","pattern","image","text","tspan","textPath","marker","linearGradient","radialGradient","stop","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","animate","animateMotion","animateTransform","set","foreignObject","desc","title","metadata"]),kH=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","string","fragment","shadow"]);function fc(t){return kH.has(t)||dc.has(t)}function $r(t){return dc.has(t)}function tr(t){let{tag:e,key:n}=t;if(typeof e=="function")try{e=e(t,t.state,t.context)}catch(s){e=void 0,typeof console<"u"&&console.error&&console.error(`[smbls] \`tag:\` factory threw on "${n||"<anon>"}" \u2014 falling back to key-based tag detection:`,s?.message||s)}if(e===!0&&(e=n),typeof e=="string"&&fc(e))return e;if(!n||typeof n!="string")return"div";let r=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template","th","tr","td","thead","tbody","tfoot","caption","col","colgroup"]),o=n.toLowerCase();return o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),fc(o)&&!r.has(o)?o:"div"}var NL={};function uc(t,e){let n=e?.context?.document||globalThis.document;if(!n)return null;if(t==="string")return n.createTextNode(e?.text||"");if(t==="fragment")return n.createDocumentFragment();if($r(t)){let r=e?.parent;if(t==="svg"||r?.node?.namespaceURI===ti)return n.createElementNS(ti,t);if(t!=="svg")return n.createElement("div")}return n.createElement(t)}function Oo(t){let e=t.tag=tr(t),r=$r(e)&&(e==="svg"||t.parent?.node?.namespaceURI===ti)?"svg:"+e:e,o=t?.context?.document||globalThis.document,s=NL[r];if(s||(s=NL[r]=uc(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?uc(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}function Qu(t,e){return e&&e.parentNode===t?e.nextSibling:t.firstChild}Mt();sa();var $L=new WeakMap,FL=null,BL=null;function EH(t,e){let n=t===FL?BL:$L.get(t);(!n||n.length!==t.length)&&(n={length:t.length,hooks:new Map},$L.set(t,n)),FL=t,BL=n;let r=n.hooks.get(e);if(r===void 0){r=!1;for(let o of t)if(typeof o[e]=="function"){r=!0;break}n.hooks.set(e,r)}return r}function zk(t,e){let n=t&&t.context&&t.context.plugins;return!!(n&&n.length&&EH(n,e))}function er(t,e,...n){return zk(e,t)?so(t,e,...n):!1}function dn(t,e,n){er("error",t,{hook:e,error:n})||console.error(`[DOMQL] Lifecycle "${e}" error:`,n)}var vH=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function UL(t,e,n){return ve(()=>un(t,()=>e.call(t,n,t,t.state,t.context)))}function AH(t,e){if(!tt())return;let n=e.__children&&e.__children.length>0;!n&&t.html==null||console.warn(`[smbls] bridge host "${e.path.join(".")}" renders DOMQL ${n?"children":"html"} inside the node it hands to its library \u2014 the library owns that subtree and may replace them. Keep DOMQL children beside the host, not in it.`)}function VL(t){let e=t.__ref,n=t.node;if(!e||!n||e.__bridge||typeof t.onBridgeMount!="function")return;if(globalThis.__SMBLS_BUILD_DROP_F_bridge__)return qt("bridge",t);if(!("scrollHeight"in n))return;let r=e.__bridge={settled:!1,failed:!1,disposed:!1,destroyed:!1,instance:void 0,effect:null};e.contentManaged=!0,AH(t,e);let o;try{o=UL(t,t.onBridgeMount,n)}catch(s){if(r.failed=!0,dn(t,"onBridgeMount",s),t.context?.strictMode)throw s;return}if(o&&typeof o.then=="function"){o.then(s=>jL(t,r,s),s=>{r.failed=!0,dn(t,"onBridgeMount",s)});return}jL(t,r,o)}function jL(t,e,n){if(e.settled=!0,e.instance=n,e.disposed){HL(t,e);return}if(Object.defineProperty(t,"bridge",{value:n,writable:!0,configurable:!0,enumerable:!1}),typeof t.onBridgeUpdate!="function")return;let r=t.__ref;e.effect=K(()=>{e.disposed||un(t,()=>{try{let o=t.onBridgeUpdate.call(t,e.instance,t,t.state,t.context);o&&typeof o.then=="function"&&o.catch(s=>dn(t,"onBridgeUpdate",s))}catch(o){dn(t,"onBridgeUpdate",o)}})},{depth:r.path.length,label:()=>r.path.join(".")+"::onBridgeUpdate"}),r.__effects.push(e.effect)}function zL(t){if(globalThis.__SMBLS_BUILD_DROP_F_bridge__)return;let e=t.__ref?.__bridge;!e||e.disposed||(e.disposed=!0,e.effect&&e.effect.dispose(),e.settled&&HL(t,e))}function HL(t,e){if(e.destroyed)return;e.destroyed=!0;let n=e.instance;if(e.instance=void 0,vH(t,"bridge")&&(t.bridge=void 0),typeof t.onBridgeDestroy=="function")try{let r=UL(t,t.onBridgeDestroy,n);r&&typeof r.then=="function"&&r.catch(o=>dn(t,"onBridgeDestroy",o))}catch(r){dn(t,"onBridgeDestroy",r)}}function pc(t){return t.__mount||(t.__mount={pending:0,tail:null,holder:null,waiters:null,chunkGen:0,attachLater:!1,held:!1})}function td(t){let e=t.__mount;return e?e.pending:0}Mt();function hc(t={},e={}){let n=this,r=n.__ref;if(!r)return;if((typeof t=="string"||typeof t=="number")&&(t={text:t}),!e.preventListeners&&typeof n.onBeforeUpdate=="function"&&Em(r))try{let a=n.onBeforeUpdate(n,n.state,n.context,e);if(a&&typeof a.then=="function")a.then(()=>nr(r,!1),c=>{nr(r,!0),er("error",n,{hook:"onBeforeUpdate",error:c})||console.error("[DOMQL] onBeforeUpdate error:",c)});else if(nr(r,!1),a===!1)return n}catch(a){throw nr(r,!0),a}let o=!t||Object.keys(t).length===0,s=[],i=!1;Op(()=>{if(t.state&&Et(n.state)&&n.state.$update(t.state),t.text!==void 0&&(n.text=t.text,!r.__exec.text&&n.node&&ei(n,t.text??"")),t.html!==void 0&&(n.html=t.html,!r.__exec.html&&n.node&&(n.node.innerHTML=t.html)),t.style&&n.node?.style){if(!r.__exec.style){let a=ri(n,t.style);for(let c in a){let l=a[c];if(l==null)continue;let f=Nr(c),u=String(l).replace(/\s*!important\s*$/,"");n.node.style.setProperty(f,u,"important")}}n.style||(n.style={}),Object.assign(n.style,t.style)}if(t.attr&&n.node?.setAttribute){for(let a in t.attr){let c=t.attr[a];ni(n.node,a,c)}n.attr||(n.attr={}),Object.assign(n.attr,t.attr)}if(t.data&&n.node?.dataset){for(let a in t.data)n.node.dataset[a]=t.data[a];n.data||(n.data={}),Object.assign(n.data,t.data)}if(t.vars&&typeof t.vars=="object"&&!Array.isArray(t.vars)){let a=n.vars&&typeof n.vars=="object"&&!Array.isArray(n.vars)?n.vars:null;n.vars={...a,...t.vars},i=!0}for(let a in t){if(Gt.has(a)||a==="state")continue;let c=t[a],l=n[a];if(l&&l.__ref&&typeof l.update=="function")l.update(c,e);else if(typeof c=="object"&&c!==null){let f=a.charCodeAt(0);f>=65&&f<=90&&Yt(c,n,a,e)}else a!=="text"&&a!=="html"&&a!=="style"&&a!=="attr"&&a!=="data"&&(n[a]=c,typeof c!="function"&&s.push(a))}});for(let a=0;a<s.length;a++)Kk(n,s[a]);if(n.node){let a=i;for(let c=0;!a&&c<s.length;c++)Hk(s[c])&&(a=!0);a&&Wk(n)}if(n.node&&o&&r.__effects&&r.__effects.length)for(let a=0;a<r.__effects.length;a++){let c=r.__effects[a];c&&!c._disposed&&!c._isSubscribeToEffect&&typeof c._execute=="function"&&c._execute()}else if(n.node&&r.__conditionalRunners)for(let a of r.__conditionalRunners)a();return er("update",n),!e.preventListeners&&typeof n.onUpdate=="function"&&n.onUpdate(n,n.state,n.context,e),n}Mt();function pn(t){if(!t)return;let e=t.__ref;if(!e)return;if(e.__onConnected&&WP(t),Me())return ve(()=>pn(t));e.__disposed=!0;let n=e.__if===!1&&!e.__ifInitialized;if(!n)try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(o){console.error("[smbls] onBeforeRemove error:",o)}if(e.__bridge&&zL(t),e.__effects){for(let o=0;o<e.__effects.length;o++)e.__effects[o].dispose();e.__effects.length=0}if(typeof e.__releaseMedia=="function"&&(e.__releaseMedia(),e.__releaseMedia=null),e.__eventCleanup){for(let o=0;o<e.__eventCleanup.length;o++)e.__eventCleanup[o]();e.__eventCleanup.length=0}if(e.__children){let o=e.__children.slice();e.__children.length=0;for(let s=0;s<o.length;s++){let i=t[o[s]];i&&i.__ref&&pn(i)}}if(e.__ifParked&&e.__ifParked.size){let o=[...e.__ifParked];e.__ifParked.clear();for(let s=0;s<o.length;s++){let i=t[o[s]];i&&i.__ref&&i.parent===t&&pn(i)}}e.__keepNode?e.__keepNode=!1:t.node?.parentNode?t.node.remove():t.tag==="fragment"&&e.__fragmentAnchor?.parentNode&&e.__fragmentAnchor.remove();let r=t.state?.$destroy||t.state?.destroy;if(typeof r=="function"&&t.state.__element===t&&r.call(t.state),t.parent?.__ref?.__children){let o=t.parent.__ref.__children.indexOf(t.key);o!==-1&&t.parent.__ref.__children.splice(o,1),t.parent.__ref.__ifParked&&t.parent.__ref.__ifParked.delete(t.key),delete t.parent[t.key]}if(!n)try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(o){console.error("[smbls] onRemove error:",o)}e.__mount&&e.__mount.tail&&ct.mount.abandon(t,e),t.node=null,t.parent=null,t.__ref=null}function gc(){pn(this)}M();M();function Yk(t,e,n){let r=t?.context?.analyze;if(!r||!r.emit||e==="warn"&&!r.shouldCapture("warnings")||e==="error"&&!r.shouldCapture("errors"))return;let o=n.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");r.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:e==="error"?"error":"warning",level:e,hook:e==="error"?"el.error":"el.warn",element:{key:t.key!=null?String(t.key):null,name:t.__name||null,tag:t.tag||null},message:o||null,args:n})}var WL=new Set;function KL(t,e,n){let r=String(e);if(WL.has(r))return;WL.add(r);let o=t?.__ref?.path,s=Array.isArray(o)&&o.length?o.join("."):t?.key!=null?String(t.key):"(unknown element)",i=n!=null?`resolves to a non-function (${typeof n}) \u2014 it cannot be called`:"is not registered in context.methods, context.functions, or context.utils, and is not an element method",a=`[smbls] el.call('${r}') at <${s}>: "${r}" ${i}. Returning undefined (unchanged behavior) \u2014 check the name for typos or register the function on the project. Warned once per name; repeat misses are silent.`;Yk(t,"error",[a]),console.error(a)}var GL=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),CH=new Set,YL=t=>GL(qk,t)&&!(Qi||CH).has(t),qL=new Set;function XL(t,e){qL.has(t)||(qL.add(t),tt()&&console.warn(`[smbls] ${e}: context.methods.${t} is named like a built-in element method and is not the app's own override (it was not on the element prototype when it was built) \u2014 ignored; the built-in keeps winning. Declare an intentional override in the app's OWN methods.`))}function TH(...t){return Yk(this,"warn",t),xf.apply(this,t)}function OH(...t){return Yk(this,"error",t),_s.apply(this,t)}var qk={update:hc,remove:gc,getDB:Af,getQuery:Cf,getRootData:_f,getPath:gf,nextElement:kf,previousElement:Ef,verbose:ya,warn:TH,error:OH,variables:vf,spotByPath:hf,set(t,e,n){let r=this.__ref;if(r){if(r.__setLocked){r.__setQueued={content:t,options:e};return}r.__setLocked=!0}let o,s=t!=null?ct.hydration:null,i=s&&typeof s.handBack=="function"?this.context?.__hydration:null,a=i&&r?.__children&&this.content?.__ref?s.handBack(i,this.content):null;try{if(this.removeContent(),t!=null){let c=this.context?.__create;try{c&&(o=c(t,this,"content",e,n))}finally{a&&s.settleHandBack(i,a)}}this.__ref&&(this.__ref.contentManaged=!0)}finally{if(r){r.__setLocked=!1;let c=r.__setQueued;c&&(r.__setQueued=null,this.set(c.content,c.options))}}return o},reset(t){let e=this.context?.__create;if(!e)return this;let n=this.parent,r=this.key,o=this.parse();return this.remove(),e(o,n,r,t)},lookup(t){let e=this.parent;for(;e;){if(typeof t=="function"){if(t(e))return e}else if(typeof t=="string"){if(e.key===t)return e;if(e[t]&&e[t].__ref)return e[t]}e=e.parent}return null},whenConnected(t){return Co(this,t)},lookdown(t){let e=this.__ref;if(!e?.__children)return null;for(let n of e.__children){let r=this[n];if(!r)continue;if(typeof t=="function"){if(t(r))return r}else if(typeof t=="string"&&r.key===t)return r;let o=r.lookdown?.(t);if(o)return o}return null},lookdownAll(t,e=[]){let n=this.__ref;if(!n?.__children)return e;for(let r of n.__children){let o=this[r];o&&(typeof t=="function"?t(o)&&e.push(o):typeof t=="string"&&o.key===t&&e.push(o),o.lookdownAll?.(t,e))}return e},getRef(t){return t?this.__ref&&this.__ref[t]:this.__ref},getChildren(){let t=this.__ref&&this.__ref.__children;return Array.isArray(t)?t.map(e=>this[e]):[]},getRoot:bf,getRootState:yf,getRootContext:wf,getContext:Sf,parse(t){let e={},n=t?new Set(t):null,r=this.__ref?.__exec;for(let o in this)if(!(o==="parent"||o==="node"||o==="__ref")&&!n?.has(o)){if(r&&r[o]!==void 0){e[o]=r[o];continue}typeof this[o]!="function"&&(e[o]=this[o])}return e},parseDeep(t){let e=this.parse(t),n=this.__ref;if(n?.__children)for(let r of n.__children)this[r]?.parseDeep&&(e[r]=this[r].parseDeep(t));return e},keys(){return Object.keys(this)},log(...t){if(t.length){let e={};for(let n of t)e[n]=this[n];console.log(e)}else console.log(this)},setProps(t,e){return this.update(t,e)},setNodeStyles(t){if(this.node?.style)for(let e in t){let n=t[e];if(n==null)continue;let r=e.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),o=String(n).replace(/\s*!important\s*$/,"");this.node.style.setProperty(r,o,"important")}},call(t,...e){let n=this.context,r=YL(t);r&&n?.methods?.[t]&&n.methods[t]!==this[t]&&XL(t,"el.call");let o=r?this[t]:n?.methods?.[t]||n?.functions?.[t]||n?.utils?.[t]||this[t];if(typeof o=="function"){let s=as;if(!s||!s(o))return o.call(this,...e);tt()&&KL(this,t,Ne(o));return}tt()&&KL(this,t,o)},removeContent(){let t=this.__ref;if(!t?.__children)return;let e=this.content;if(e?.remove){e.remove(),delete this.content;let n=t.__children.indexOf("content");n!==-1&&t.__children.splice(n,1)}e?.node?.parentNode&&e.node.parentNode.removeChild(e.node)}},Gk=new WeakMap;function RH(t){if(!t)return qk;let e=Gk.get(t);if(e)return e;e=Object.create(qk);let n=t.methods;if(n)for(let r in n)e[r]=n[r];return Gk.set(t,e),e}function mc(t){let e=RH(t.context);Object.setPrototypeOf(t,e)}function yc(t){if(!t)return!1;let e=Gk.get(t);if(!e)return!1;let n=t.methods;if(!n)return!1;for(let r in n){if(YL(r)&&!GL(e,r)){XL(r,"refreshContextProto");continue}e[r]=n[r]}return!0}M();M();var tE={};F(tE,{STATE_METHODS:()=>ZL,applyInitialState:()=>vm,applyStateMethods:()=>Ae,callStateMethod:()=>nd,createState:()=>Zk,isTracking:()=>Qk,useHostState:()=>Jk});Mt();Mt();var ZL=new Set(["update","parse","clean","destroy","create","add","toggle","remove","set","replace","setByPath","setPathCollection","removeByPath","removePathCollection","getByPath","reset","apply","applyReplace","applyFunction","quietUpdate","quietReplace","rootUpdate","parentUpdate","keys","values","__element","__children","parent","root"]),ed=(t,e,n)=>{Object.defineProperty(t,e,{value:n,enumerable:!1,configurable:!0,writable:!0})},Ln=(t,e,n,{onlyIfAbsent:r}={})=>{ed(t,"$"+e,n),!(r&&Object.prototype.hasOwnProperty.call(t,e))&&ed(t,e,n)},nd=(t,e,...n)=>{if(!t)return;let r=t["$"+e];if(typeof r=="function")return r.apply(t,n);let o=t[e];if(typeof o=="function")return o.apply(t,n)},Ae=(t,e)=>{if(Et(e)){let o=e.__raw||e;Ln(o,"toggle",function(s,i={}){e[s]=!e[s]},{onlyIfAbsent:!0}),Ln(o,"set",function(s,i={}){let a=e.__element;return typeof s=="object"&&s!==null&&a&&typeof a.onBeforeStateUpdate=="function"&&!i.preventBeforeStateUpdateListener&&a.onBeforeStateUpdate(a,e,a.context,{changes:s,options:i})===!1||(e.$clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.$update(s,{...i,preventBeforeStateUpdateListener:!0})),e},{onlyIfAbsent:!0}),Ln(o,"setByPath",function(s,i,a={}){let c=s.split("."),l=e;for(let f=0;f<c.length-1;f++)l[c[f]]===void 0&&(l[c[f]]={}),l=l[c[f]];return l[c[c.length-1]]=i,e}),Ln(o,"getByPath",function(s){let i=s.split("."),a=e;for(let c=0;c<i.length;c++){if(a==null)return;a=a[i[c]]}return a}),Ln(o,"removeByPath",function(s,i={}){let a=s.split("."),c=e;for(let l=0;l<a.length-1;l++){if(c==null)return e;c=c[a[l]]}return c&&delete c[a[a.length-1]],e}),Ln(o,"reset",function(s={}){let i=e.$parse();return e.$set(i,s)}),Ln(o,"apply",function(s,i={}){if(typeof s=="function"){let a=s(e);return e.$update(a,i)}}),Ln(o,"applyFunction",function(s,i={}){if(typeof s=="function")return s(e),e.$update(e.$parse(),i)}),Ln(o,"rootUpdate",function(s,i={}){let a=e;for(;a?.parent&&Et(a.parent);)a=a.parent;return nd(a,"update",s,i)}),Ln(o,"parentUpdate",function(s,i={}){if(e.parent)return nd(e.parent,"update",s,i)}),Ln(o,"quietReplace",function(s,i={}){return e.$replace(s,{quiet:!0,...i})}),Object.getOwnPropertyDescriptor(o,"root")||Object.defineProperty(o,"root",{get:function(){let s=e,i=Et(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,Et(s)&&(i=s);return i||s},enumerable:!1,configurable:!0});return}if(!e||typeof e!="object")return;let n=()=>{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&delete e[o]},r={update(o){if(!o||typeof o!="object")return e;for(let s in o)e[s]=o[s];return e},apply(o){if(typeof o!="function")return e;let s=o(e);return s?e.$update(s):e},parse(){return{...e}},toggle(o){return e[o]=!e[o],e},set(o){if(!o||typeof o!="object")return e;n();for(let s in o)e[s]=o[s];return e},replace(o){return e.$set(o)},clean(){return n(),e}};ed(e,"$settled",function(){return Rp().then(()=>e)});for(let o in r)if(ed(e,"$"+o,r[o]),typeof e[o]!="function"){if(Object.prototype.hasOwnProperty.call(e,o)){Dp(o,"");continue}ed(e,o,r[o])}};var Zk=function(t,e,n){return t.state=vm(t,e,n),t.state},vm=function(t,e,n){let{__ref:r}=t,o=t.state;if(o==null||o===!1){let s=e?.state||{};return Ae(t,s),s}if(typeof o=="string")return r&&(r.__state=o),r.__stateType="string",PH(o,t,e);if(typeof o=="number"||typeof o=="boolean"){r&&(r.__state=o,r.__stateType=typeof o,r.__hasRootState=!0);let s=ur({value:o});return s.__element=t,e?.state&&(s.parent=e.state),Ae(t,s),s}if(typeof o=="function"&&(o=o(t,e?.state)||{}),typeof o=="object"&&!Et(o)){r&&(r.__hasRootState=!0),o.isRootState&&r&&(r.__hasRootState=!0);let s=ur({...o});if(s.__element=t,!Object.getOwnPropertyDescriptor(s,"root")){let i=e?.state?.root||e?.state||s;Object.defineProperty(s,"root",{get:()=>i,enumerable:!1,configurable:!0})}return e?.state&&(s.parent=e.state,e.state.__children&&(e.state.__children[t.key]=s)),Ae(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,n),s}return Et(o)?(o.__element=t,o):e?.state||{}};function Xk(t,e){if(!e)return t;let n=e.split("/"),r=t;for(let o of n){if(r==null)return{};r=r[o]}return r??{}}function PH(t,e,n){if(!n?.state)return{};if(t===".")return n.state;if(t.startsWith("../")){let o=t.slice(3),s=n.state?.parent;return o&&s?Xk(s,o):s??n.state??{}}if(t.startsWith("~/")){let o=n.state;for(;o?.parent;)o=o.parent;let s=t.slice(2);return s?Xk(o,s):o??{}}let r=Xk(n.state,t);if(r&&typeof r=="object"&&!Et(r)&&!Object.getOwnPropertyDescriptor(r,"root")){let o=n.state?.root||n.state;Object.defineProperty(r,"root",{get:()=>o,enumerable:!1,configurable:!0})}return r}Mt();var Jk=(t,e)=>{if(!t)return QL;let n=DH(t,e);return!n||!n.state?QL:MH(n.state)},Qk=()=>Me()!=null,LH=128;function DH(t,e){let n=typeof e=="function"?e:typeof e=="string"?s=>!!s?.[e]:s=>!!s?.state,r=t,o=null;for(let s=0;s<LH&&r;s++){if(n(r)&&r.state)return r;if(r.state&&!o&&(o=r),!r.parent||r.parent===r)break;r=r.parent}return o}var IH={get(t,e){return t[e]}},JL=new WeakMap,MH=t=>{let e=JL.get(t);return e||(e=new Proxy(t,IH),JL.set(t,e)),e},QL=new Proxy(Object.create(null),{get(){},has(){return!1}});M();var NH=["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"],$H=["alignment-baseline","baseline-shift","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","mask-type","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","transform-origin","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"],FH=["requiredExtensions","systemLanguage"],tD={circle:["cx","cy","r","pathLength"],ellipse:["cx","cy","rx","ry","pathLength"],line:["x1","y1","x2","y2","pathLength"],path:["d","pathLength"],polygon:["points","pathLength"],polyline:["points","pathLength"],rect:["x","y","width","height","rx","ry","pathLength"],g:[],defs:[],switch:[],symbol:["viewBox","preserveAspectRatio","refX","refY","x","y","width","height"],use:["href","xlink:href","x","y","width","height"],image:["href","xlink:href","x","y","width","height","preserveAspectRatio","crossorigin"],foreignObject:["x","y","width","height"],text:["x","y","dx","dy","rotate","textLength","lengthAdjust"],tspan:["x","y","dx","dy","rotate","textLength","lengthAdjust"],textPath:["href","xlink:href","path","startOffset","method","spacing","side","textLength","lengthAdjust"],linearGradient:["x1","y1","x2","y2","gradientUnits","gradientTransform","spreadMethod","href","xlink:href"],radialGradient:["cx","cy","r","fx","fy","fr","gradientUnits","gradientTransform","spreadMethod","href","xlink:href"],stop:["offset"],pattern:["x","y","width","height","patternUnits","patternContentUnits","patternTransform","viewBox","preserveAspectRatio","href","xlink:href"],clipPath:["clipPathUnits"],mask:["x","y","width","height","maskUnits","maskContentUnits"],marker:["viewBox","preserveAspectRatio","refX","refY","markerUnits","markerWidth","markerHeight","orient"],filter:["x","y","width","height","filterUnits","primitiveUnits"]},BH=new Set(["linearGradient","radialGradient","stop","clipPath","mask","marker","pattern","filter","symbol"]),jH=()=>{let t={};for(let e in tD)t[e]=[...tD[e],...BH.has(e)?[]:FH,...$H];return t},Fr={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","enterkeyhint","exportparts","headingoffset","headingreset","hidden","id","inputmode","lang","nonce","part","placeholder","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions","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","ping","referrerpolicy","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","loading","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["command","commandfor","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["name","open"],del:["cite","datetime"],dialog:["closedby","open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["accept-charset","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","controls","crossorigin","decoding","fetchpriority","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alpha","alt","autocomplete","capture","checked","colorspace","crossorigin","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","blocking","crossorigin","disabled","fetchpriority","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"],q:["cite"],slot:["name"],script:["async","blocking","charset","crossorigin","defer","fetchpriority","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:["blocking","media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],template:["for","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootmode","shadowrootserializable","shadowrootslotassignment"],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","loading","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","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness","paint-order","panose-1","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage","tableValues","targetX","targetY","text-anchor","text-decoration","textLength","text-rendering","to","transform","u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em","v-alphabetic","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","v-hanging","v-ideographic","viewBox","viewTarget","visibility","v-mathematical","widths","word-spacing","writing-mode","x1","x2","x","xChannelSelector","x-height","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xmlns","xmlns:xlink","xml:space","y1","y2","y","yChannelSelector","z","zoomAndPan"],...jH()},oD=["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"],sD=t=>t.startsWith("aria")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?"aria-"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>"-"+e.toLowerCase()):t.startsWith("data")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?"data-"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>"-"+e.toLowerCase()):null,eD=new Map,Br=t=>{let e=eD.get(t);return e===void 0&&(e=sD(t)||cD(t),eD.set(t,e)),e},iD=new Set(["tabIndex","readOnly","maxLength","minLength","autoComplete","autoFocus","autoPlay","contentEditable","spellCheck","colSpan","rowSpan","srcSet","crossOrigin","accessKey","inputMode","enterKeyHint","formAction","noValidate","autoCapitalize","autoCorrect","writingSuggestions","headingOffset","headingReset","exportParts"]),eE=new Set;for(let t in Fr)t==="default"||t==="aria"||t==="svg"||Fr[t].forEach(e=>{e.startsWith("on")||eE.add(e)});var aD=t=>{let e=t.charCodeAt(0);if(e<97||e>122||!/[A-Z]/.test(t))return null;let n=t.replace(/[A-Z]/g,o=>"-"+o.toLowerCase());if(eE.has(n))return n;let r=t.toLowerCase();return eE.has(r)?r:null},cD=t=>iD.has(t)?t.toLowerCase():aD(t),UH=new Set(["draggable","contenteditable","spellcheck","autocorrect","writingsuggestions","translate"]),VH=new Map([["autocorrect",["on","off"]],["translate",["yes","no"]]]),oi=t=>typeof t=="string"&&(UH.has(t)||t.startsWith("aria-")),rr=(t,e)=>{if(e!==!0&&e!==!1)return e;if(oi(t)){let n=VH.get(t);return n?e?n[0]:n[1]:e?"true":"false"}return e===!0?"":e},nD=new Map,hn=(t,e)=>{let n=Fr.default,r=Object.prototype.hasOwnProperty.call(Fr,t)?Fr[t]:null,o=r?r.length:-1,s=nD.get(t);(!s||s.def!==n||s.defLen!==n.length||s.own!==r||s.ownLen!==o)&&(s={def:n,defLen:n.length,own:r,ownLen:o,answers:new Map},nD.set(t,s));let i=s.answers.get(e);return i===void 0&&(i=zH(t,e),s.answers.set(e,i)),i},zH=(t,e)=>{if(e.startsWith("aria-")||e.startsWith("data-")||sD(e)||iD.has(e)||Fr.default.includes(e))return!0;if(Object.prototype.hasOwnProperty.call(Fr,t)){let n=Fr[t];if(n.includes(e))return!0;let r=aD(e);return r!==null&&n.includes(r)}return!1},rE=t=>{if(!v(t))return!1;let e=t.toLowerCase();return oD.includes(e)},HH=(t,e,n)=>{let r={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(n&&o in n)continue;if(o==="aria"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])Ut(e[o][a])&&(r["aria-"+a]=e[o][a]);continue}if(o==="data"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])if(Ut(e[o][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());r["data-"+c]=e[o][a]}continue}let s=hn(t,o),i=rE(o);if(Ut(e[o])&&(s||i)){let a=Br(o)||o;r[a]=e[o]}}return r},WH=(t,e)=>{let n={};if(t.attr)for(let r in t.attr)n[r]=t.attr[r](e,e.state,e.context);if(t.aria&&typeof t.aria=="object")for(let r in t.aria){let o=t.aria[r];typeof o=="function"&&(n["aria-"+r]=o(e,e.state,e.context))}if(t.data&&typeof t.data=="object")for(let r in t.data){let o=t.data[r];if(typeof o=="function"){let s=r.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());n["data-"+s]=o(e,e.state,e.context)}}return n},Ro=(t,e)=>{let n=t.call("exec",e,t);if(n)return v(n)&&n.includes("{{")&&(n=t.call("replaceLiteralsWithObjectFields",n)),n},nE=(t,e)=>{let n=(t.preSrc||"")+(Ro(t,e)||"");if(!n)return;try{return new URL(n),n}catch{}let{context:r}=t;if(!r.files&&!r.assets)return n;if(n.startsWith("/assets/")){let o=n.slice(8),s=r.assets&&(r.assets[n]||r.assets[o]);return s&&s.content?s.content.src:n}if(n.startsWith("/files/")){let o=n.slice(7),s=r.files&&(r.files[n]||r.files[o]);return s&&s.content?s.content.src:n}if(r.assets){let o=r.assets[n];if(o&&o.content)return o.content.src}if(r.files){let o=r.files[n];if(o&&o.content)return o.content.src}return n},Po={src:t=>nE(t,t.src),href:t=>Ro(t,t.href),action:t=>Ro(t,t.action),poster:t=>nE(t,t.poster),data:t=>Ro(t,t.data)},oE=t=>{let e=t.tag||"div",n={};for(let r in Po)if(t[r]!==void 0&&hn(e,r)){let o=Po[r](t);o!==void 0&&(n[r]=o)}return n},rD=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return L(n)?n.call(e,e):!!n},KH=(t,e,n)=>{if(t==="$"){let o=rD(e,n);return o===void 0&&(o=!!n[e]),o}let r=n[e]===!0||n.state[e];if(!r){let o=rD(e,n);o!==void 0&&(r=o)}return t==="."?!!r:!r},qH=new Set(["$",".","!"]),sE=(t,e,n,r=KH)=>{let o={},s=(i,a,c,l)=>{let f=a;o[i]=u=>{if(r(c,l,u))return L(f)?f(u,u.state,u.context):f}};for(let i in t){let a=i.charAt(0);if(!qH.has(a))continue;let c=t[i];if(!c||typeof c!="object")continue;let l=i.slice(1);for(let f in c){if(n&&f in n)continue;if(f==="aria"&&c[f]&&typeof c[f]=="object"){for(let g in c[f])s("aria-"+g,c[f][g],a,l);continue}if(f==="data"&&c[f]&&typeof c[f]=="object"){for(let g in c[f]){let h=g.replace(/([A-Z])/g,m=>"-"+m.toLowerCase());s("data-"+h,c[f][g],a,l)}continue}let u=hn(e,f),d=rE(f);if(!u&&!d)continue;let p=Br(f)||f;s(p,c[f],a,l)}}return o};var Am="3.14.809";var lD="__SMBLS_ELEMENT_ID_ENGINE__",fD=(t,e,n)=>{let r=e||Am,o=n||(typeof globalThis<"u"?globalThis:null);if(!o)return t;let s=o[lD];return s&&s.engine&&s.version===r?s.engine:(s||(o[lD]={version:r,engine:t}),t)};var GH=new Set(["rows","cols","wrap","fill","stroke","offset"]),Cm=(t,e)=>GH.has(e)&&hn(t,e),Lo=(t,e)=>!!(xt[e]||Bt&&Bt.has(e))&&!Cm(t,e);var HD=fD({uniqId:1,scopedStyleId:0},Am),_c=[],Do=new Set,EE=!1,WD=0,xc=null,sd=null;function vc(){return typeof Date<"u"&&typeof Date.now=="function"?Date.now():0}function KD(){return typeof document<"u"&&document.visibilityState==="hidden"}var YH=250,XH=1e3;function ZH(){return sd&&(sd!==(typeof requestAnimationFrame=="function"?requestAnimationFrame:null)||KD())?!0:vc()-WD>=XH}function JH(){if(EE=!0,WD=vc(),sd=null,typeof requestAnimationFrame!="function"){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(kc,0);xc=t?()=>t(e):null;return}if(KD()){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(kc,YH);xc=t?()=>t(e):null}else{let t=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:null;sd=requestAnimationFrame;let e=requestAnimationFrame(kc);xc=t?()=>t(e):null}}function dd(){if(EE){if(!ZH())return;let t=xc;if(xc=null,t)try{t()}catch{}}JH()}var qD=300,GD=15e4,yE=0;function ai(){yE++;let t=!1;return()=>{t||(t=!0,!(--yE>0)&&(_c.length||Do.size)&&dd())}}function kc(){if(EE=!1,xc=null,sd=null,yE>0||(!globalThis.__SMBLS_BUILD_DROP_F_autoGrow__&&Do.size&&rW(),!_c.length))return;let t=_c.splice(0,_c.length);for(let e=0;e<t.length;e++){let n=t[e];if(n.node){if(!n.node.isConnected){let r=n.__ref||(n.__ref={});r.__mountAttempts=(r.__mountAttempts||0)+1,r.__mountFirstAttemptAt==null&&(r.__mountFirstAttemptAt=vc());let o=vc()-r.__mountFirstAttemptAt;r.__mountAttempts<=qD&&o<GD?(_c.push(n),dd()):console.warn("[DOMQL] onMounted dropped after",r.__mountAttempts,"attempts /",o,"ms \u2014 node never connected:",n.key||n.tag||n);continue}typeof n.onBridgeMount=="function"&&VL(n),typeof n.onMounted=="function"&&Jt("Mounted",n,n.__ref?.__mountOptions||{})}}}function bE(t,e){let n=!globalThis.__SMBLS_BUILD_DROP_F_autoGrow__&&t.__ref?.__autoGrow;n&&n.active&&ud(t,!0),!(typeof t.onMounted!="function"&&typeof t.onBridgeMount!="function")&&(t.__ref.__mountOptions=e,_c.push(t),dd())}function Om(t,e){typeof t.onContentUpdate=="function"&&(er("contentUpdate",t,e),un(t,()=>{try{t.onContentUpdate(t,t.state,t.context,e)}catch(n){if(dn(t,"onContentUpdate",n),t.context?.strictMode)throw n}}))}function QH(t){return t.toLowerCase()}function YD(t){let e=t.charCodeAt(0);return e===58||e===64||e===38||e===91}function Rm(t){if(typeof t=="string")return t||void 0;if(typeof t=="number"||typeof t=="bigint")return String(t)}function XD(t,e,n,r){return Mm(r,Rm(t)||(e&&typeof e=="object"?Rm(e.key):void 0)||String(n))}function Mm(t,e){if(!t||typeof e!="string")return e;let n=e;for(;t9(t,n);)n="$"+n;return n!==e&&e9(t,e,n),n}function t9(t,e){if(Gt.has(e)&&e!=="content")return!0;if(!(e in t))return!1;let n=t[e];return!(n&&typeof n=="object"&&n.__ref&&n.parent===t)}var uD=new Set;function e9(t,e,n){if(!tt())return;let r=t.__ref&&t.__ref.path&&t.__ref.path.join(".")||t.key||"<root>",o=r+"::"+e;uD.has(o)||(uD.add(o),console.warn(`[smbls] a child keyed "${e}" at ${r} names a property of its parent; it lives at el["${n}"] (data-key="${n}") so the parent keeps its own "${e}". Prefix the data keys to keep plain el.<key> access.`))}function Yt(t,e,n,r={},o){if(Me())return ve(()=>Yt(t,e,n,r,o));if(t==null||t===!1)return null;let s=x9(t);(typeof t=="string"||typeof t=="number")&&(t={text:t}),n=Rm(n);let i=Rm(t.key),a=Object.create(null);a.key=n||(i&&e?Mm(e,i):i)||`_${HD.uniqId++}`,a.parent=e||null,a.context=t.context||e?.context||r.context||{},a.context.__create||(a.context.__create=Yt);let c=a.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||a,path:e?.__ref?.path?[...e.__ref.path,a.key]:[a.key],origin:t,__mount:null,__plainRows:null,__ifParked:null};s&&(c.__runtimeSource=s);let l=o;o&&(o.holdTail||o.deferAttach)&&(o.holdTail&&ct.mount!==null&&ct.mount.hold(a),o.deferAttach&&(pc(c).attachLater=!0),l=void 0);let f=t;if(t=JD(a,t,n,i,e,r),a.if!=null){let g;if(typeof a.if=="function")try{g=a.if(a,a.state,a.context)}catch(h){if(g=!1,c.__ifError=h,typeof console<"u"&&console.warn){let m=a.key||a.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${m} \u2014 treating as false:`,h?.message||h)}}else g=a.if;c.__if=!!g}if(c.__if)typeof a.if=="function"&&(c.__ifInitialized=!0);else{if(e){e[a.key]=a;let h=e.__ref;h&&(h.__ifParked||(h.__ifParked=new Set)).add(a.key)}let g=i9(t,n,a.context?.components);return g.length&&(c.__ifLateMerge={definition:f,key:n,ownKey:i,names:g,options:r}),typeof a.if=="function"&&iI(a,c,a.if),a}a.tag||(a.tag=tr(a)),Jt("Init",a,r);let u=ct.hydration,d=a.node=u!==null&&u.adopt(a)||Oo(a);if(!d)return a;if(a.tag==="fragment"){let h=(a.context?.document||globalThis.document).createComment("");d.appendChild(h),c.__fragmentAnchor=h}if(Jt("AttachNode",a,r),d.setAttribute&&a.key&&d.getAttribute("data-key")!==String(a.key)&&d.setAttribute("data-key",a.key),e){let g=e[a.key];e[a.key]=a;let h=e.__ref?.__children;h&&(g===void 0||!h.includes(a.key))&&h.push(a.key)}d.setAttribute&&a.context?.scopeSelector&&a.context.scopeSelector!==":root"&&a.context.key&&a.key===a.context.key&&d.setAttribute("data-smbls-app",a.context.key),a.id&&d.setAttribute&&(d.id=a.id),vI(a,r),oI(a),sI(a);try{CI(a,r)}catch(g){Nm(a,g)}let p=c.__mount;return p!==null&&p.pending>0?(p.attachLater||(r.mountWhole===!0&&!(o&&o.holdTail)&&n9(a,e)?p.held=!0:Ac(a,e,l)),p.tail=()=>ct.mount.finish(a,r),a):(Ec(a,!0),(p===null||!p.attachLater)&&Ac(a,e,l),vE(a,r),a)}function No(t){let e=t&&t.__ref&&t.__ref.__mount;return!e||!e.attachLater||(e.attachLater=!1,!t.node)?!1:(Ac(t,t.parent),!0)}function n9(t,e){if(!e||e.tag==="fragment")return!1;let n=t.node;if(!n||n.nodeType===11)return!1;let r=e.node||(e.nodeType?e:null);return!!r&&n.parentNode!==r}function ZD(t){let e=t.__ref,n=e&&e.__mount;if(!n||!n.held)return;n.held=!1;let r=t.node,o=t.parent;if(!r||!o)return;let s=o.__ref;if(!s){Ac(t,o);return}let i=o.node;if(!i)return;let a=s.__children,c=a?a.lastIndexOf(t.key):-1,l;for(let f=c-1;f>=0;f--){let u=o[a[f]],d=u&&(jr(u)||(u.tag==="fragment"&&u.__ref?u.__ref.__fragmentAnchor:null));if(d&&d.parentNode===i){l=d.nextSibling;break}}l===void 0&&(l=Qu(i,s.__textNode)),Ac(t,o,l?{position:"before",node:l}:void 0)}function Nm(t,e){if(typeof console<"u"&&console.error){let n=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] createChildren failed at ${n}:`,e?.message||e,e?.stack?`
56
+ Do NOT trust any browser measurement taken on this page until that reads clean.`),!0}function cL(){try{let t=P(),e=t&&(t.CSS_VARS||t.cssVars);return e?Object.keys(e).length:0}catch{return 0}}function uk(t){um||ve.variable>0||ve.atomic>0||lL(Math.max(t,cL()))}function xk(t){let e=t&&(t.CSS_VARS||t.cssVars);return lL(e?Object.keys(e).length:cL())}function lL(t){let e=hm();if(t===0)return{ok:!0,reason:"no-design-system",stats:e,varCount:t};if(!Ak())return{ok:!0,reason:"no-sheet",stats:e,varCount:t};if(e.variable>0||e.atomic>0)return{ok:!0,reason:null,stats:e,varCount:t};let n=e.invalid>0?"every rule was rejected as malformed":"no rule was ever produced";return _z(n,t),{ok:!1,reason:n,stats:e,varCount:t}}var wz={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk"};function Sz(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}var ac=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,XP=new Map,Ae=t=>{if(ac(t))return t;let e=XP.get(t);return e===void 0&&(e=Sz(t),XP.set(t,e)),e},ZP=new Map,Zu=t=>{if(ac(t))return t;let e=ZP.get(t);return e===void 0&&(e=t.replace(/-([a-z])/g,(n,r)=>r.toUpperCase()),ZP.set(t,e)),e};function dm(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e.toString(36)}function xz(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():dm(e)}var kz={"backdrop-filter":"-webkit-backdrop-filter","user-select":"-webkit-user-select","mask-image":"-webkit-mask-image","mask-size":"-webkit-mask-size","mask-repeat":"-webkit-mask-repeat","mask-position":"-webkit-mask-position","mask-clip":"-webkit-mask-clip","mask-origin":"-webkit-mask-origin","background-clip":"-webkit-background-clip"};function ei(t,e){let n=kz[t];return n?`${t}:${e};${n}:${e};`:`${t}:${e};`}function dk(t){let e="";for(let n in t){let r=t[n];if(typeof r!="object"||r===null)continue;let o="";for(let s in r)r[s]!=null&&(o+=ei(Ae(s),r[s]));e+=`${n}{${o}}`}return e}function pk(t){return t.charCodeAt(0)===64&&!lc(t)}function JP(t){let e="";for(let n in t){let r=t[n];if(!pk(n)||typeof r!="object"||r===null)continue;let o="";for(let s in r){let i=r[s];i==null||typeof i=="object"||(o+=ei(Ae(s),i))}e+=`${n}{${o}}`}return e}var Ez="@media (hover: hover)",vz=/(?:^|[^\\]):hover(?![\w-])/;function kk(){try{let t=P();if(t&&t.hoverMedia===!1)return!1}catch{}return!0}function Br(t,e,n){return n===!1||!vz.test(e)||n===void 0&&!kk()?t:`${Ez}{${t}}`}var Ek=new Map;function Az(t,e,n,r){let o=cc.get(t);if(!o){let c=wz[e]||dm(e),l=xz(n);o=r?`_${r}_${c}-${l}`:`_${c}-${l}`,cc.set(t,o)}let i=typeof n=="string"&&(n.indexOf("}")!==-1||n.indexOf("{")!==-1)?null:`.${o}{${ei(Ae(e),n)}}`,a={className:o,rule:i,tier:i===null?null:vk(i,!0,"atomic")};return Ek.set(t,a),a}function QP(t,e,n){let r=(n?n+"":"")+t+":"+e,o=Ek.get(r)||Az(r,t,e,n);return o.rule!==null&&pn(o.rule,void 0,"atomic",!0,o.tier),o.className}var tL=new WeakMap,eL=new WeakMap;function pn(t,e,n,r,o){let s=o||vk(t,r,n);Yu&&!e&&Yu.push([t,n||"global",s]);let i=Oz(e,s);if(!i)return ve.dropped++,"dropped";let a=i.sheet,c=i.rules;if(c||(c=tL.get(a),c||(c=new Set,tL.set(a,c)),i.rules=c),c.has(t))return ve.duplicate++,ve[n||"global"]++,"duplicate";let l=eL.get(a);if(l&&l.has(t))return ve.invalid++,"invalid";try{a.insertRule(t,a.cssRules.length)}catch{return l||(l=new Set,eL.set(a,l)),l.add(t),ve.invalid++,"invalid"}return c.add(t),ve[n||"global"]++,"inserted"}var He="0:0",hk="1:0",fL="0:99",nL=/\((max|min)-width:\s*([\d.]+)(px|em|rem)?\)/g;function vk(t,e,n){if(typeof t!="string"||!t)return He;if(t.charCodeAt(0)===64){if(!t.startsWith("@media")&&!t.startsWith("@supports")&&!t.startsWith("@container"))return He;let i=1/0,a=-1/0;nL.lastIndex=0;let c;for(;c=nL.exec(t);){let l=parseFloat(c[2])*(c[3]==="em"||c[3]==="rem"?16:1);c[1]==="max"?i=Math.min(i,l):a=Math.max(a,l)}return i!==1/0?"2:"+-i:a!==-1/0?"3:"+a:hk}if(t.charCodeAt(0)!==46)return n==="atomic"&&!e?fL:He;if(!/^\.[\w-]+\{/.test(t))return hk;if(!e)return He;let r=t.indexOf("{"),o=t.indexOf(":",r);if(o===-1)return He;let s=oc(t.slice(r+1,o).trim());return s?"0:"+s:He}var ic=null,Tz=()=>{if(ic)return ic;let t=0;for(let e in dn)t=Math.max(t,oc(e));ic=[He];for(let e=1;e<=t;e++)ic.push("0:"+e);return ic.push(fL,hk),ic},rL=t=>{let e=t.indexOf(":");return[Number(t.slice(0,e)),Number(t.slice(e+1))]},oL=(t,e)=>{let[n,r]=rL(t),[o,s]=rL(e);return n!==o?n<o:r<s},Cz=t=>t.getAttribute("data-tier")||He,gk=new WeakMap,fm=!1,Gu=null,mk=0;function Oz(t,e){if(fm&&!t){let n=Gu&&gk.get(Gu),r=n&&n.get(e);if(r&&r.epoch===mk)return r;let o=pm(Gu,e);return o&&(o.epoch=mk),o}return pm(t||rr(),e)}function Ak(t,e){let n=pm(t||rr(),e);return n?n.sheet:null}function pm(t,e){if(!t||!t.head)return null;let n=e||He,r=gk.get(t);r||(r=new Map,gk.set(t,r));let o=r.get(n);if(o&&o.node.parentNode===t.head&&o.node.sheet===o.sheet)return o;if(n!==He){let c=Tz();for(let l=0;l<c.length&&oL(c[l],n);l++)pm(t,c[l])}let s=n===He?t.head.querySelector("style[data-smbls]:not([data-tier])"):t.head.querySelector(`style[data-smbls][data-tier="${n}"]`);if(!s){s=t.createElement("style"),s.setAttribute("data-smbls",""),n!==He&&s.setAttribute("data-tier",n);let c=t.head.querySelectorAll("style[data-smbls]"),l=null;for(let u=0;u<c.length;u++)if(oL(n,Cz(c[u]))){l=c[u];break}let f=c.length?c[c.length-1]:null;if(l)t.head.insertBefore(s,l);else if(f)t.head.insertBefore(s,f.nextSibling);else{let u=t.head.querySelector('style[data-brender], style[data-emotion="smbls"]');u?t.head.insertBefore(s,u):t.head.appendChild(s)}}let i=s.sheet;if(!i)return r.delete(n),null;let a={sheet:i,node:s,rules:null,epoch:0};return r.set(n,a),n===He&&(aL=i),a}function Rz(t){let e=t||rr();if(!e||!e.head)return[];let n=[],r=e.head.querySelectorAll("style[data-smbls]");for(let o=0;o<r.length;o++)r[o].sheet&&n.push(r[o].sheet);return n}var Pz=8;function We(t,e,n,r){if(!t||typeof t!="object")return"";if(fm)return sL(t,n,r);fm=!0,Gu=rr(),mk++;try{return sL(t,n,r)}finally{fm=!1,Gu=null}}function sL(t,e,n){let r=!!(n&&n.state),o=null,s=0,i=[],a=[],c=Object.keys(t);for(let f=0;f<c.length;f++){let u=c[f],d=t[u];d==null||d===!1||d===""||(typeof d=="object"?a.push([u,d]):fk&&!ac(u)?(o||(o=[]),o.push(u,String(d)),s++):i.push(QP(u,String(d),e)))}if(o&&s>=Pz){let f=o.join("\0"),u=fk(f),d=u.indexOf("\0"),p=u.substring(0,d),g=u.substring(d+1);if(g){let h=g.split(`
57
+ `);for(let m=0;m<h.length;m++)h[m]&&pn(h[m],void 0,"atomic",!0)}i.push(p)}else if(o)for(let f=0;f<o.length;f+=2)i.push(QP(o[f],o[f+1],e));let l=[];for(let f=0;f<a.length;f++)l.push(Mz(a[f][0],a[f][1],e,r));return i.concat(l).join(" ").trim()}var iL=new Map,Lz=/^&?:(hover|focus|focus-visible|focus-within|active)(?![\w-])/;function lc(t){return/^@(media|supports|container)\b/.test(t)}function jr(t){let e=[],n=0,r=0;for(let o=0;o<t.length;o++){let s=t.charCodeAt(o);s===40?n++:s===41?n--:s===44&&n===0&&(e.push(t.slice(r,o).trim()),r=o+1)}return e.push(t.slice(r).trim()),e}function Dz(t){return typeof t!="string"||!t||lc(t)?!1:jr(t).every(e=>Lz.test(e))}var uL=t=>{let e=Object.prototype.toString.call(t);return e==="[object Object]"||e==="[object Array]"},yk=32,bk=1024,_k=!1;function cm(t,e,n){if(_k)return;_k=!0;let r=[e,...n],o=r.length>12?[...r.slice(0,6),`\u2026${r.length-9} more\u2026`,...r.slice(-3)]:r;console.warn(`[@symbo.ls/css] ${t} at ${o.join(" > ")} \u2014 skipped. A style block may hold only CSS values and nested plain blocks; the rest of this rule is still emitted. (One warning per page.)`)}function Iz(t){try{return JSON.stringify(t)}catch{let n=[],r=0;return JSON.stringify(t,function(o,s){if(!s||typeof s!="object")return s;for(;n.length&&n[n.length-1]!==this;)n.pop();if(!(n.length&&(n.includes(s)||!uL(s)||n.length>yk||++r>bk)))return n.push(s),s})}}function Mz(t,e,n,r){let o=Iz(e),s=t.indexOf(":hover")!==-1||o.indexOf(":hover")!==-1,i=s&&kk(),a=(n?n+"":"")+t+o+(s&&!i?"rawhover":"")+(r?"state":""),c=cc.get(a);if(c){let S=iL.get(c);if(S)for(let w=0;w<S.length;w+=2)pn(S[w],void 0,"atomic",void 0,S[w+1]);return c}c=n?`_${n}_c${dm(a)}`:`_c${dm(a)}`;let l=r?`.${c}.${c}`:`.${c}`,f=Dz(t)?`${l}.${c}`:l,u="",d=[],p=S=>typeof S=="string"&&(S.indexOf("{")!==-1||S.indexOf("}")!==-1),g=new Set,h=0,m=(S,w)=>{g.add(w);let b="",_=Object.keys(w);for(let A=0;A<_.length;A++){let C=_[A],O=w[C];if(O!=null)if(typeof O=="object"){let N=[...S,C];g.has(O)?cm("a style value that loops back to one of its own ancestors",t,N):uL(O)?N.length>yk?cm(`a style block nested more than ${yk} levels deep`,t,N):++h>bk?cm(`a style object with more than ${bk} nested blocks`,t,N):m(N,O):cm(`a ${Object.prototype.toString.call(O).slice(8,-1)} (not a style block)`,t,N)}else{if(p(O))continue;b+=ei(Ae(C),O)}}g.delete(w),b&&(S.length===0?u+=b:d.push({chain:S,body:b}))};m([],e);let y=S=>S.startsWith(":")||S.startsWith("["),x=(S,w=!0)=>{let b=w&&S.length===1?f:l;if(!S.length)return b;let _=jr(S[0]).map(A=>A.includes("&")?A.replace(/&/g,b):y(A)?`${b}${A}`:`${b} ${A}`);for(let A=1;A<S.length;A++){let C=jr(S[A]),O=[];for(let N of _)for(let F of C)F.includes("&")?O.push(F.replace(/&/g,N)):y(F)?O.push(N+F):O.push(N+" "+F);_=O}return _.join(", ")},E=[],T=(S,w)=>{let b=S.filter(lc),_=x(S.filter(O=>!lc(O)),b.length===0),A=`${_}{${w}}`;for(let O=b.length-1;O>=0;O--)A=`${b[O]}{${A}}`;A=Br(A,_,i);let C=vk(A,void 0,"atomic");E.push(A,C),pn(A,void 0,"atomic",void 0,C)};u&&T([t],u);for(let S of d)T([t,...S.chain],S.body);return iL.set(c,E),cc.set(a,c),c}var Yu=null;function Ju(t){let e=Yu,n=[];Yu=n;try{t()}finally{Yu=e}return n}function Qu(t){if(!Array.isArray(t))return;Ak();let e=0;for(let n of t){if(!Array.isArray(n)||typeof n[0]!="string")continue;let r=n[1]||"global";r==="variable"&&e++,pn(n[0],void 0,r,void 0,n[2]||void 0)}e>0&&uk(e)}function Ot(t){if(t==null||typeof t!="string"&&typeof t!="object")return;if(Ak(),typeof t=="string"){let s=t.indexOf("--")!==-1;pn(t,void 0,s?"variable":"global"),s&&uk(1);return}let e=kk(),n=0,r=Object.keys(t),o=s=>{let i=s.match(/max-width:\s*(\d+)/);return i?parseInt(i[1]):0};r.sort((s,i)=>{let a=s.startsWith("@media"),c=i.startsWith("@media");return!a&&!c?0:a?c?o(i)-o(s):1:-1});for(let s of r){let i=t[s];if(s.startsWith("@keyframes")){let a=dk(i);a&&pn(`${s}{${a}}`,void 0,"keyframes");continue}if(lc(s))for(let a in i){let c=i[a];if(a.startsWith("@keyframes")){let l=dk(c);l&&pn(`${s}{${a}{${l}}}`,void 0,"keyframes");continue}if(typeof c=="object"&&c!==null){let l="",f=0,u=a.charCodeAt(0)===64;for(let d in c){let p=c[d];p!=null&&(u&&typeof p=="object"||(ac(d)&&f++,l+=ei(Ae(d),p)))}u&&(l+=JP(c)),n+=f,pn(Br(`${s}{${a}{${l}}}`,a,e),void 0,f?"variable":"global")}else if(c!=null){let l=ac(a);l&&n++,pn(`${s}{${ei(Ae(a),c)}}`,void 0,l?"variable":"global")}}else{let a="",c=!1,l=0,f=s.charCodeAt(0)===64;for(let u in i){let d=i[u];if(d!=null)if(typeof d=="object"){if(f&&pk(u))continue;c=!0}else ac(u)&&l++,a+=ei(Ae(u),d)}if(f&&(a+=JP(i)),n+=l,a&&pn(Br(`${s}{${a}}`,s,e),void 0,l?"variable":"global"),c){let u=[],d=[];for(let p in i)if(typeof i[p]=="object"&&i[p]!==null){if(f&&pk(p))continue;lc(p)?u.push(p):d.push(p)}u.sort((p,g)=>{let h=m=>{let y=m.match(/max-width:\s*(\d+)/);return y?parseInt(y[1]):0};return h(g)-h(p)});for(let p of d)Ot({[`${s} ${p}`]:i[p]});for(let p of u)Ot({[p]:{[s]:i[p]}})}}}n>0&&uk(n)}function fc(t,e){return pn(`@keyframes ${t}{${dk(e)}}`,void 0,"keyframes"),t}function dL(){cc.clear(),Ek.clear(),aL=null,_k=!1}function Tk(){return cc.size}var pL="3.14.857";M();var iy={};B(iy,{DELEGATED_EVENTS:()=>uc,LIFECYCLE_EVENTS:()=>or,MIXINS:()=>mm,MOUNT_YIELD_BUDGET_MS:()=>pi,NON_BUBBLING_EVENTS:()=>ym,REGISTRY:()=>Yt,SVG_TAGS:()=>_c,addDelegatedEvent:()=>td,addMethods:()=>kc,adoptHydrationNode:()=>nv,applyExtends:()=>mc,attachElement:()=>Vo,cacheNode:()=>Mo,create:()=>Xt,createHTMLNode:()=>bc,detectTag:()=>ir,dispose:()=>yn,dropMountWork:()=>Cd,elementPath:()=>Rn,flushMounts:()=>Rc,globalEventKeyInfo:()=>xm,holdMountFlush:()=>ui,inertOutsidePlugin:()=>sy,isSvgTag:()=>Vr,isValidTag:()=>yc,mountIdle:()=>Ko,mountPending:()=>ny,mountYieldBudget:()=>pr,refreshContextProto:()=>Ec,registerEvent:()=>pc,registerGlobalEvent:()=>km,releaseMount:()=>Ge,remove:()=>xc,removeDelegatedEvent:()=>ed,settleBuiltAttributes:()=>Ho,update:()=>Sc,whenConnected:()=>Do,whenMountIdle:()=>Re,whenMounted:()=>qr,yieldToMain:()=>hr});var st={viewEvents:null,chains:null,rows:null,hydration:null,mount:null,containerVw:null};var Yt=new Set(["extends","children","content","childrenAs","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","vars","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","subscribeTo","autoGrow","srcObject","allowRuntimeTemplates","__name","__ref","__hash","__text","parent","node"]),mm={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},or=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","mounted","contentUpdate","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","beforeRemove","remove","bridgeMount","bridgeUpdate","bridgeDestroy"]),ym=new Set(["load","error","abort","scroll","canplay","canplaythrough","ended","pause","play","playing","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","durationchange","loadeddata","loadedmetadata","progress","emptied","resize"]),bm=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),uc=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseenter","mouseleave","mouseover","mouseout","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointerover","pointerout","touchstart","touchend","touchmove","keydown","keyup","keypress","input","change","submit","reset","focus","blur","focusin","focusout","wheel","contextmenu","drag","dragstart","dragend","dragenter","dragleave","dragover","drop"]);M();var ni=new Set;function dc(t){let e=t&&t.node;if(!e)return!1;let n=e.nodeType===11?t.__ref?.__fragmentAnchor:e;return n?n.isConnected!==!1:!1}function Do(t,e){let n=t&&t.node,r=t&&t.__ref;if(!(!n||!r||typeof e!="function")){if(dc(t)){e(t);return}(r.__onConnected||(r.__onConnected=[])).push(e),ni.add(t)}}function _m(){if(ni.size)for(let t of ni){let e=t.__ref,n=t.node;if(!e||!n){ni.delete(t);continue}if(!dc(t))continue;ni.delete(t);let r=e.__onConnected;if(e.__onConnected=null,!!r)for(let o=0;o<r.length;o++)try{r[o](t)}catch(s){typeof console<"u"&&console.error&&console.error("[smbls] whenConnected callback failed:",s?.message||s)}}}function hL(t){ni.size&&ni.delete(t)&&t.__ref&&(t.__ref.__onConnected=null)}var Rk=new WeakMap,Nz={passive:!0},$z={passive:!0,capture:!0},bL=(t,e)=>bm.has(t)?e?$z:Nz:e||!1;function _L(t){let e=Rk.get(t);return e||(e={handlers:new Map,installed:new Set},Rk.set(t,e)),e}function Fz(t,e){let n=_L(e);if(n.installed.has(t))return;n.installed.add(t);let r=t==="focus"||t==="blur"||t==="focusin"||t==="focusout"||t==="mouseenter"||t==="mouseleave"||t==="pointerenter"||t==="pointerleave",o=t==="mouseenter"||t==="mouseleave"||t==="pointerenter"||t==="pointerleave";e.addEventListener(t,s=>{if(o){let a=s.target,c=n.handlers.get(t),l=c&&a?c.get(a):null;if(!l||s.relatedTarget&&typeof a.contains=="function"&&a.contains(s.relatedTarget))return;l(s);return}let i=s.target;for(;i&&i!==e;){let a=n.handlers.get(t);if(a){let c=a.get(i);if(c&&(c(s),s.cancelBubble))return}i=i.parentNode}},bL(t,r))}function td(t,e,n,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let o=_L(r);Fz(t,r),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,n)}function ed(t,e,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let r=Rk.get(n);if(!r)return;let o=r.handlers.get(t);o&&o.delete(e)}function hn(t){if(t.charCodeAt(0)!==111||t.charCodeAt(1)!==110)return!1;let e=t.charCodeAt(2);return e>=65&&e<=90}function wm(t){return t.charAt(2).toLowerCase()+t.slice(3)}var Bz=/^[A-Za-z_$][\w$]*$/;function nd(t,e){return typeof e!="string"||!Bz.test(e)?e:function(r){return t.call(e,r)}}function jz(t){return uc.has(t)&&!or.has(t)}function Sm(t,e){let{context:n}=t,r=n?.designSystem;return o=>{r&&mt(r);try{let s=e.call(t,o,t,t.state,n);if(s&&typeof s.then=="function"){s.catch(i=>{t.error=i,console.error("[DOMQL] Async event error:",i)}).finally(()=>{r&&ht()});return}}catch(s){if(t.error=s,console.error("[DOMQL] Event error:",s),n?.strictMode)throw s}r&&ht()}}var wL=t=>!!t&&(t.capture===!0||typeof t.passive=="boolean"||t.once===!0);function Uz(t,e){return wL(e)?{capture:e.capture===!0,passive:typeof e.passive=="boolean"?e.passive:bm.has(t),once:e.once===!0}:bL(t,!1)}function Vz(t,e,n){return r=>{let o=r.target;if(o&&o.nodeType!==1&&(o=o.parentElement),!o||typeof o.closest!="function")return;let s;try{s=o.closest(e)}catch{return}s&&t.contains(s)&&n(r)}}function pc(t,e,n,r){let{node:o,context:s}=e;if(!o)return;let i=Sm(e,n),a=r&&typeof r.selector=="string"&&r.selector;a&&(i=Vz(o,a,i));let l=!ym.has(t)&&jz(t)&&!wL(r),f=l?null:Uz(t,r);if(l){let u=s?.rootNode||o.ownerDocument?.documentElement;td(t,o,i,u)}else o.addEventListener(t,i,f);e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(l){let u=s?.rootNode||o.ownerDocument?.documentElement;ed(t,o,u)}else o.removeEventListener(t,i,f)})}var Ck=[["onDocument","document"],["onWindow","window"],["onVisualViewport","visualViewport"],["onMediaQuery","mediaQuery"]];function xm(t){if(typeof t!="string")return null;for(let e=0;e<Ck.length;e++){let n=Ck[e][0];if(t.length<=n.length||!t.startsWith(n))continue;let r=t.charCodeAt(n.length);if(!(r<65||r>90))return{target:Ck[e][1],eventName:t.slice(n.length).toLowerCase()}}return null}function zz(t,e,n){let r=e,o=!1,s,i=!1,a=null;return e&&typeof e=="object"&&typeof e!="function"&&(r=e.handler,o=!!e.capture,i=!!e.once,typeof e.passive=="boolean"&&(s=e.passive),typeof e.query=="string"&&(a=e.query)),r=nd(t,r),typeof r!="function"?null:(s===void 0&&(s=bm.has(n)),{handler:r,capture:o,passive:s,once:i,query:a})}function Hz(t,e,n){let r=t.node?.ownerDocument||t.context?.document||(typeof document<"u"?document:null);if(!r||typeof r.addEventListener!="function")return null;if(e==="document")return r;let o=r.defaultView||(typeof window<"u"?window:null);if(!o)return null;if(e==="window")return typeof o.addEventListener=="function"?o:null;if(e==="visualViewport"){let s=o.visualViewport;return s&&typeof s.addEventListener=="function"?s:null}if(e==="mediaQuery"){let s=n&&n.query;if(typeof s!="string"||!s.trim()||typeof o.matchMedia!="function")return null;try{return o.matchMedia(s)||null}catch{return null}}return null}var Ok=/^@media\s+/i,Wz=/^[@[.#&:>*~+]/,gL=new Set;function mL(t,e){!nt()||gL.has(t)||(gL.add(t),console.warn(`[smbls] onMediaQueryChange: "${t}" ${e} \u2014 no listener is registered.`))}function Kz(t,e){if(typeof e!="string")return null;let n=e.trim();if(!n)return null;let r=t.context?.designSystem?.media,o=i=>{let a=r&&typeof r=="object"?r[i]:void 0;return typeof a=="string"&&a.trim()?a.trim():null},s=n;if(n.charCodeAt(0)===64&&!Ok.test(n)){if(s=o(n.slice(1)),!s)return mL(n,"is not a key of designSystem.media"),null}else s=o(n)||n;return Ok.test(s)?s.replace(Ok,"").trim()||null:Wz.test(s)?(mL(n,`names "${s}", which is not a media query`),null):s}function qz(t,e,n,r){try{return t.addEventListener(e,n,r),!0}catch{return typeof t.addListener=="function"?(t.addListener(n),!0):!1}}function SL(t,e,n,r){try{t.removeEventListener(e,n,r)}catch{typeof t.removeListener=="function"&&t.removeListener(n)}}function km(t,e,n){if(e.__ref){if(Array.isArray(n)){if(t.target!=="mediaQuery")return;for(let o=0;o<n.length;o++)yL(t,e,n[o]);return}yL(t,e,n)}}function yL(t,e,n){let r=e.__ref,o=zz(e,n,t.eventName);if(!o||t.target==="mediaQuery"&&t.eventName!=="change"||t.target==="mediaQuery"&&(o.query=Kz(e,o.query),!o.query))return;let s=Hz(e,t.target,o);if(!s)return;let i=t.target+":"+(o.query?o.query+":":"")+t.eventName+":"+(o.capture?1:0);if(r.__globalEvents&&r.__globalEvents.has(i))return;let a=Sm(e,o.handler),c=t.target==="window"&&t.eventName==="load",l=!1,f=p=>{if(dc(e)){if(c){if(l)return;l=!0}a(p)}},u={capture:o.capture,passive:o.passive,once:o.once};if(!qz(s,t.eventName,f,u))return;r.__globalEvents||(r.__globalEvents=new Map);let d={target:s,eventName:t.eventName,listener:f,options:u};r.__globalEvents.set(i,d),r.__eventCleanup||(r.__eventCleanup=[]),r.__eventCleanup.push(()=>{SL(s,t.eventName,f,u),r.__globalEvents&&r.__globalEvents.delete(i)}),c&&Gz(e,i,d,()=>l)}function Gz(t,e,n,r){let o=n.target.document;!o||o.readyState!=="complete"||Do(t,()=>queueMicrotask(()=>{let s=t.__ref;if(r()||!s||!s.__globalEvents||s.__globalEvents.get(e)!==n)return;let i=n.target,a=typeof i.Event=="function"?i.Event:typeof Event=="function"?Event:null;a&&(n.listener(new a("load")),n.options.once&&r()&&SL(i,"load",n.listener,n.options))}))}var Pk=Symbol("handlerChain.none"),Yz=new Set(["inView","leaveView"]),Xz=new Set(["bridgeMount","bridgeUpdate","bridgeDestroy"]),hc=new WeakMap,xL=new WeakMap,Mk=!1,Lk=t=>t!==null&&typeof t=="object"&&t.always===!0;function Zz(t){let e=wm(t);return Yz.has(e)?!0:or.has(e)&&!Xz.has(e)}var kL=new Set;function Jz(t){kL.has(t)||!nt()||(kL.add(t),console.warn(`[smbls] \`${t}: { always: true, \u2026 }\` \u2014 \`always\` composes the lifecycle hooks (onInit, onRender, onCreate, onMounted, onUpdate, onRemove, \u2026; not the bridge hooks) and onInView / onLeaveView only. \`${t}\` keeps the default merge: an extender's own \`${t}\` replaces this one. Run the shared step from a lifecycle hook, or call it from the extender's handler.`))}function Dk(t){return t&&typeof t=="object"?{handler:t.handler,options:t}:{handler:t,options:null}}function rd(t,e){let n={always:t,own:e,list:e?t.concat(e):t,next:null,prims:null,cleared:null},r=function(...s){return eH(n,this,s)};return hc.set(r,n),Mk=!0,r}function Ik(t){let e=xL.get(t);return e||(e=rd([Dk(t)],null),xL.set(t,e)),e}function Qz(t,e){let n=hc.get(t);if(e==null||e===!1)return n.own?n.cleared||(n.cleared=rd(n.always,null)):t;if(typeof e!="object"&&typeof e!="function"){let i=n.prims||(n.prims=new Map),a=i.get(e);return a||i.set(e,a=rd(n.always,Dk(e))),a}let r=n.next||(n.next=new WeakMap),o=r.get(e);if(o)return o;let s=Lk(e)?hc.get(Ik(e)):typeof e=="function"?hc.get(e):void 0;return o=s?rd(n.always.concat(s.always),s.own):rd(n.always,Dk(e)),r.set(e,o),o}function tH(t,e,n){let r=Lk(e),o=!r&&Mk&&typeof e=="function"&&hc.has(e);if(!r&&!o&&!Lk(n))return Pk;if(!Zz(t))return Jz(t),Pk;let s=r?Ik(e):o?e:null;return s?Qz(s,n):Ik(n)}function EL(t,e,n,r){if(!hn(e))return!1;let o=tH(e,n,r);return o===Pk?!1:(t[e]=o,!0)}function Nk(t){if(typeof t=="function"){let e=Mk?hc.get(t):void 0;return e?e.list:[{handler:t,options:null}]}return typeof t=="string"?[{handler:t,options:null}]:t&&typeof t=="object"?[{handler:t.handler,options:t}]:[]}function eH(t,e,n){let r=t.list,o,s=!1,i=null,a=!1,c;for(let l=0;l<r.length;l++){let f=r[l].handler;if(typeof f!="function")continue;let u;try{u=f.apply(e,n)}catch(d){a?console.error("[smbls] lifecycle handler error:",d):(a=!0,c=d);continue}u===!1?s=!0:u&&typeof u.then=="function"&&(i||(i=[])).push(u),o=u}if(a){if(i)for(let l of i)l.then(null,f=>console.error("[smbls] lifecycle handler error:",f));throw c}return s?!1:i?i.length===1?i[0]:nH(i):o}function nH(t){return Promise.allSettled(t).then(e=>{let n=null;for(let r of e)r.status==="rejected"&&(n?console.error("[smbls] lifecycle handler error:",r.reason):n=r);if(n)throw n.reason})}var rH=1e-6,vL=new WeakMap;function oH(t,e,n){let r=t.defaultView,o=r&&r.IntersectionObserver;if(typeof o!="function")return null;let s=vL.get(t);s||vL.set(t,s=new Map);let i=e+"|"+n,a=s.get(i);if(a)return a;a={id:i,byKey:s,threshold:e,targets:new Map,observer:null};try{let c=n?{threshold:e,rootMargin:n}:{threshold:e};a.observer=new o(l=>sH(a,l),c)}catch{return null}return s.set(i,a),a}function sH(t,e){for(let n=0;n<e.length;n++){let r=e[n],o=t.targets.get(r.target);if(!o)continue;let s=!!r.isIntersecting&&r.intersectionRatio>=t.threshold-rH;if(s===o.inView)continue;o.inView=s;let i=s?"in":"leave",a=o.subs.slice();for(let c=0;c<a.length;c++){let l=a[c];if(!(l.kind!==i||l.dead)){l.once&&TL(t,o,l);try{l.run(r)}catch(f){iH(f)}}}}}function iH(t){typeof globalThis.reportError=="function"?globalThis.reportError(t):queueMicrotask(()=>{throw t})}function TL(t,e,n){if(n.dead)return;n.dead=!0;let r=e.subs.indexOf(n);r!==-1&&e.subs.splice(r,1),!e.subs.length&&(t.targets.delete(e.node),t.observer.unobserve(e.node),!t.targets.size&&(t.observer.disconnect(),t.byKey.delete(t.id)))}function AL(t,e,n,r,o){let s=nd(t,o.handler),i=o.options;if(typeof s!="function")return;let a=i&&i.threshold,c=typeof a=="number"&&a>=0&&a<=1?a:0,l=i&&typeof i.rootMargin=="string"?i.rootMargin.trim():"",f=oH(n,c,l);if(!f)return;let u=f.targets.get(e);u||(u={node:e,inView:!1,subs:[]},f.targets.set(e,u),f.observer.observe(e));let d={kind:r,once:!!(i&&i.once===!0),run:Sm(t,s),dead:!1};u.subs.push(d);let p=t.__ref;p.__eventCleanup||(p.__eventCleanup=[]),p.__eventCleanup.push(()=>TL(f,u,d))}function CL(t){if(globalThis.__SMBLS_BUILD_DROP_F_viewEvents__)return zt("viewEvents",t);let e=t.node;if(!e||e.nodeType!==1)return;let n=e.ownerDocument,r=n&&n.defaultView;if(!r||typeof r.IntersectionObserver!="function")return;let o=Nk(t.onInView);for(let i=0;i<o.length;i++)AL(t,e,n,"in",o[i]);let s=Nk(t.onLeaveView);for(let i=0;i<s.length;i++)AL(t,e,n,"leave",s[i])}Mt();Mt();function gn(t,e){let n=t&&t.context&&t.context.designSystem;if(!n)return e();mt(n);try{return e()}finally{ht()}}var Te=ss||(t=>{let e=$e();if(!e)return t();Sl(null);try{return t()}finally{Sl(e)}});M();M();var LL=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],aH=["none","forwards","backwards","both"],cH=["normal","reverse","alternate","alternate-reverse"],lH=["running","paused"],fH=/^(?:translate(?:3d|x|y|z)?\((?:\s*0[a-z%]*\s*,?)+\)|scale(?:3d|x|y|z)?\((?:\s*1(?:\.0+)?\s*,?)+\)|rotate(?:3d|x|y|z)?\((?:\s*0[a-z%]*\s*,?)+\)|skew(?:x|y)?\((?:\s*0[a-z%]*\s*,?)+\)|matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\))$/,uH=t=>{let e=String(t).trim().toLowerCase();if(e===""||e==="none"||e==="initial"||e==="unset")return!0;let n=e.match(/[a-z0-9]+\([^()]*\)/g);return!n||n.join("").replace(/\s+/g,"")!==e.replace(/\s+/g,"")?!1:n.every(r=>fH.test(r.replace(/\s+/g,"")))},OL=t=>/^(?:\s*0[a-z%]*)+\s*$/.test(String(t).toLowerCase())||/^(none|initial|unset)$/.test(String(t).trim().toLowerCase()),dH={transform:uH,translate:OL,rotate:t=>OL(t)||/^\s*(?:[xyz]\s+)?0(?:deg|rad|turn|grad)?\s*$/.test(String(t).toLowerCase()),scale:t=>/^(none|initial|unset)$/.test(String(t).trim().toLowerCase())||/^(?:\s*1(?:\.0+)?)+\s*$/.test(String(t)),opacity:t=>/^(initial|unset)$/.test(String(t).trim().toLowerCase())||Number(t)===1},pH=t=>{let e=String(t).trim().toLowerCase();if(e==="from")return 0;if(e==="to")return 100;let n=e.match(/^(\d+(?:\.\d+)?)%$/);return n?Number(n[1]):null},hH=t=>{if(!k(t))return null;let e=null,n=-1;for(let r in t){let o=pH(r);o==null||!k(t[r])||o>=n&&(n=o,e=t[r])}return e},gH=t=>{let e=hH(t);if(!e)return!1;let n=Object.keys(e);if(!n.length)return!1;for(let r of n){let o=dH[r];if(!o)return!1;let s=e[r];if(s==null||typeof s=="object"||typeof s=="function"||!o(s))return!1}return!0},mH=(t,e)=>{if(k(t))return t;let{animation:n}=e.context&&e.context.designSystem||{},r=n&&n[t];return k(r)?r:null},yH=["reverse","alternate","alternate-reverse"],DL=(t,e,n)=>{let r=n||e.animationDirection;return r&&yH.includes(String(r))?"both":gH(mH(t,e))?"backwards":"both"},bH=0,RL=new Map,$k=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{};if(k(t)){let o=JSON.stringify(t),s=RL.get(o);if(s)return s;let i=`smbls-anim-${bH++}`,a=fc(i,t);return RL.set(o,a),a}let r=n&&n[t];return k(r)?fc(t,r):t},IL=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)m?s$/i,_H=/^(?:\d+(?:\.\d*)?|\.\d+)$/,ML=/^(?:cubic-bezier|steps|linear)\(/,wH=/^(?:calc|min|max|clamp)\(/,SH=t=>t.includes("(")||t.startsWith("--"),xH=(t,e)=>{if(!Mn.test(t))return!1;let n=e&&e.sequence;if(!k(n))return!1;let r=t.charCodeAt(0)===45?t.slice(1):t;return!!(n[r]||r.length===2&&n[r[0]])},kH=t=>{if(!v(t))return!1;let e=t.trim();return LL.includes(e)||ML.test(e)||e.startsWith("var(")},EH=(t,e)=>!!e&&kH(e[t]||e[Ar(t)]),vH=["duration","timingFunction","delay","iterationCount","direction","fillMode","playState"],AH=t=>ut(String(t)),TH=(t,e,n)=>{let r={duration:null,delay:null,timingFunction:null,iterationCount:null,direction:null,fillMode:null,playState:null},o=null,s=[],i=[],a=(u,d)=>r[u]!=null?!1:(r[u]=d,!0),c=(u,d)=>{a(u,d)||s.push(d)};for(let u of AH(t))e&&e[u]?o=u:IL.test(u)||xH(u,n)?a("duration",u)||a("delay",u):LL.includes(u)||EH(u,n)?c("timingFunction",u):ML.test(u)?a("timingFunction",u):u==="infinite"?c("iterationCount",u):_H.test(u)?a("iterationCount",Number(u)):cH.includes(u)?c("direction",u):aH.includes(u)?c("fillMode",u):lH.includes(u)?c("playState",u):SH(u)?i.push(u):s.push(u);let l=o||s[0]||i.shift()||null,f=new Set;for(let u of i){let d=vH.find(p=>r[p]==null);if(!d)break;r[d]=u.startsWith("--")?`var(${u})`:u,f.add(d)}return{name:l,...r,opaqueSlots:f}},CH=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{},{timing:r}=P()||{};return Dn(String(t)).map(o=>o.trim()).filter(Boolean).map(o=>TH(o,n,r))},PL=(t,e)=>IL.test(t)||e&&!wH.test(t)&&!/^(?:var|env)\(/.test(t)?t:ke(t).timing||t,OH=(t,e)=>{let n=r=>t.opaqueSlots.has(r);return{animationName:t.name==null?void 0:$k(t.name,e),animationDuration:t.duration!=null?PL(t.duration,n("duration")):ke(e.animationDuration||"A").timing,animationDelay:t.delay!=null?PL(t.delay,n("delay")):ke(e.animationDelay||"0s").timing,animationTimingFunction:t.timingFunction!=null?n("timingFunction")?t.timingFunction:ze(t.timingFunction):ze(e.animationTimingFunction||"ease"),animationFillMode:t.fillMode||e.animationFillMode||DL(t.name,e,t.direction),animationIterationCount:t.iterationCount!=null?t.iterationCount:e.animationIterationCount||1,animationPlayState:t.playState||e.animationPlayState,animationDirection:t.direction||e.animationDirection}},RH={animationName:"none",animationPlayState:"running",animationDirection:"normal"},PH=(t,e)=>{let n=t.map(o=>OH(o,e));if(n.length===1)return n[0];let r={};for(let o in n[0]){let s=n.map(i=>i[o]);s.every(i=>i==null)||(r[o]=s.map(i=>i??RH[o]).join(", "))}return r},Fk={animation:(t,e)=>{if(t!=null){if(v(t)&&/[\s,]/.test(t)){let n=CH(t,e);if(n.length)return PH(n,e)}return{animationName:$k(t,e),animationDuration:ke(e.animationDuration||"A").timing,animationDelay:ke(e.animationDelay||"0s").timing,animationTimingFunction:ze(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||DL(t,e),animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}}},animationName:(t,e)=>({animationName:$k(t,e)}),animationDuration:t=>({animationDuration:ke(t).timing}),animationDelay:t=>({animationDelay:ke(t).timing}),animationTimingFunction:t=>({animationTimingFunction:ze(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};M();var Em=(t,e,n)=>{if(typeof e=="number"&&(e=String(e)),!v(e))return;let[r,o]=ut(e);return{...j(t+"Start",r,n),...j(t+"End",o||r,n)}},Bk={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>j("height",t,e),width:(t,e)=>j("width",t,e),boxSizing:t=>Zt(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("height",e),...Nt("width",n||e)}},inlineSize:(t,e)=>j("inlineSize",t,e),blockSize:(t,e)=>j("blockSize",t,e),minWidth:(t,e)=>j("minWidth",t,e),maxWidth:(t,e)=>j("maxWidth",t,e),widthRange:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("minWidth",e),...Nt("maxWidth",n||e)}},minHeight:(t,e)=>j("minHeight",t,e),maxHeight:(t,e)=>j("maxHeight",t,e),heightRange:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("minHeight",e),...Nt("maxHeight",n||e)}},size:t=>{if(!v(t))return;let[e,n]=ut(t);return{...j("inlineSize",e),...j("blockSize",n||e)}},minBlockSize:(t,e)=>j("minBlockSize",t,e),minInlineSize:(t,e)=>j("minInlineSize",t,e),maxBlockSize:(t,e)=>j("maxBlockSize",t,e),maxInlineSize:(t,e)=>j("maxInlineSize",t,e),minSize:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("minInlineSize",e),...Nt("minBlockSize",n||e)}},maxSize:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("maxInlineSize",e),...Nt("maxBlockSize",n||e)}},borderWidth:(t,e)=>j("borderWidth",t,e),borderTopWidth:(t,e)=>j("borderTopWidth",t,e),borderRightWidth:(t,e)=>j("borderRightWidth",t,e),borderBottomWidth:(t,e)=>j("borderBottomWidth",t,e),borderLeftWidth:(t,e)=>j("borderLeftWidth",t,e),textDecorationThickness:(t,e)=>j("textDecorationThickness",t,e),textUnderlineOffset:(t,e)=>j("textUnderlineOffset",t,e),padding:(t,e)=>j("padding",t,e),paddingInline:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("paddingInlineStart",e),...Nt("paddingInlineEnd",n||e)}},paddingBlock:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("paddingBlockStart",e),...Nt("paddingBlockEnd",n||e)}},paddingTop:(t,e)=>j("paddingBlockStart",t,e),paddingBottom:(t,e)=>j("paddingBlockEnd",t,e),paddingLeft:(t,e)=>j("paddingInlineStart",t,e),paddingRight:(t,e)=>j("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>j("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>j("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>j("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>j("paddingInlineEnd",t,e),margin:(t,e)=>j("margin",t,e),marginInline:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("marginInlineStart",e),...Nt("marginInlineEnd",n||e)}},marginBlock:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("marginBlockStart",e),...Nt("marginBlockEnd",n||e)}},marginTop:(t,e)=>j("marginBlockStart",t,e),marginBottom:(t,e)=>j("marginBlockEnd",t,e),marginLeft:(t,e)=>j("marginInlineStart",t,e),marginRight:(t,e)=>j("marginInlineEnd",t,e),marginInlineStart:(t,e)=>j("marginInlineStart",t,e),marginInlineEnd:(t,e)=>j("marginInlineEnd",t,e),marginBlockStart:(t,e)=>j("marginBlockStart",t,e),marginBlockEnd:(t,e)=>j("marginBlockEnd",t,e),scrollMargin:(t,e)=>j("scrollMargin",t,e),scrollMarginTop:(t,e)=>j("scrollMarginTop",t,e),scrollMarginRight:(t,e)=>j("scrollMarginRight",t,e),scrollMarginBottom:(t,e)=>j("scrollMarginBottom",t,e),scrollMarginLeft:(t,e)=>j("scrollMarginLeft",t,e),scrollMarginBlock:(t,e)=>Em("scrollMarginBlock",t,e),scrollMarginInline:(t,e)=>Em("scrollMarginInline",t,e),scrollMarginBlockStart:(t,e)=>j("scrollMarginBlockStart",t,e),scrollMarginBlockEnd:(t,e)=>j("scrollMarginBlockEnd",t,e),scrollMarginInlineStart:(t,e)=>j("scrollMarginInlineStart",t,e),scrollMarginInlineEnd:(t,e)=>j("scrollMarginInlineEnd",t,e),scrollPadding:(t,e)=>j("scrollPadding",t,e),scrollPaddingTop:(t,e)=>j("scrollPaddingTop",t,e),scrollPaddingRight:(t,e)=>j("scrollPaddingRight",t,e),scrollPaddingBottom:(t,e)=>j("scrollPaddingBottom",t,e),scrollPaddingLeft:(t,e)=>j("scrollPaddingLeft",t,e),scrollPaddingBlock:(t,e)=>Em("scrollPaddingBlock",t,e),scrollPaddingInline:(t,e)=>Em("scrollPaddingInline",t,e),scrollPaddingBlockStart:(t,e)=>j("scrollPaddingBlockStart",t,e),scrollPaddingBlockEnd:(t,e)=>j("scrollPaddingBlockEnd",t,e),scrollPaddingInlineStart:(t,e)=>j("scrollPaddingInlineStart",t,e),scrollPaddingInlineEnd:(t,e)=>j("scrollPaddingInlineEnd",t,e),gap:t=>({gap:Jg(t)}),columnGap:(t,e)=>Ve(e,"columnGap",t),rowGap:(t,e)=>Ve(e,"rowGap",t),flexWrap:t=>{if(t!=null)return{display:"flex",flexWrap:t}},flexFlow:(t,e)=>{let n=e.reverse;if(!v(t))return;let[r,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(r="row"),(t.startsWith("y")||t==="column")&&(r="column"),{display:"flex",flexFlow:(r||"")+(!r.includes("-reverse")&&n?"-reverse":"")+" "+(o||"")}},flexAlign:t=>{if(!v(t))return;let[e,n]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:n}},round:(t,e)=>Nr(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>Nr(t??e.round,e,"borderRadius"),borderTopLeftRadius:(t,e)=>Nr(t,e,"borderTopLeftRadius","borderTopLeftRadius"),borderTopRightRadius:(t,e)=>Nr(t,e,"borderTopRightRadius","borderTopRightRadius"),borderBottomLeftRadius:(t,e)=>Nr(t,e,"borderBottomLeftRadius","borderBottomLeftRadius"),borderBottomRightRadius:(t,e)=>Nr(t,e,"borderBottomRightRadius","borderBottomRightRadius"),backgroundSize:(t,e)=>({backgroundSize:Qs(t,"backgroundSize",Vu,e)}),backgroundPosition:(t,e)=>({backgroundPosition:Qs(t,"backgroundPosition",zu,e)}),maskSize:(t,e)=>({maskSize:Qs(t,"maskSize",Vu,e)}),maskPosition:(t,e)=>({maskPosition:Qs(t,"maskPosition",zu,e)})};var jk={fontSize:t=>Iu(t)||t,fontFamily:t=>({fontFamily:Lu(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t}),lineClamp:t=>{if(t!=null)return t==="none"?{WebkitLineClamp:"none",lineClamp:"none"}:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:String(t),lineClamp:String(t),overflow:"hidden"}}};var Uk={overflow:t=>({overflow:t}),cursor:(t,e,n,r)=>{if(!t)return;let o=r.assets&&r.assets[t];if(o&&o.content)t=`url(${o.content.src})`;else{let s=r.files&&r.files[t];s&&s.content&&(t=`url(${s.content.src})`)}return{cursor:t}},opacity:t=>t!=null?{opacity:String(t)}:void 0,visibility:t=>t!=null?{visibility:t}:void 0,pointerEvents:t=>t!=null?{pointerEvents:t}:void 0};var Vk={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:ut(t).map(n=>Ht(n,"k").k).join(" ")}},left:t=>Ht(t,"left"),top:t=>Ht(t,"top"),right:t=>Ht(t,"right"),bottom:t=>Ht(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=ut(t).map(n=>Ht(n,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=ut(t).map(n=>Ht(n,"k").k);return{left:e[0],right:e[1]||e[0]}}};M();var vm=0,Am=()=>{vm++},Tm=()=>{vm>0&&vm--},de=({context:t,state:e})=>{let n=t?.designSystem,r=e?.root?.globalTheme||n?.globalTheme;return r&&r!=="auto"?r:vm>0?null:n&&n.resolvedTheme||null},pe=(t,e)=>{if(e==null||e==="")return;if(!k(e))return{[t]:e};let n={},r=!1;for(let o in e){let s=e[o];if(!(s==null||s==="")){if(k(s)){let i=pe(t,s);i&&(n[o]=i,r=!0);continue}n[o]={[t]:s},r=!0}}return r?n:void 0},NL=t=>{let e={};for(let n in t){let r=t[n];e[n]=k(r)?NL(r):v(r)?r+" !important":r}return e},ri=t=>(e,n)=>{let r=n&&v(e)&&!P().useVariable,o=Gg(e,r?de(n):null);return k(o)?pe(t,o):{[t]:o}},zk={theme:(t,e)=>{if(t)return e.themeModifier?un(t,`@${e.themeModifier}`):un(t)},color:(t,e)=>{let n=de(e);if(t)return pe("color",Gt(t,n))},background:(t,e)=>{let n=de(e);if(t)return v(t)&&t.includes("gradient")&&t.includes("(")?{background:Po(t,n)}:pe("background",Gt(t,n))},backgroundColor:(t,e)=>{let n=de(e);if(t)return pe("backgroundColor",Gt(t,n))},backgroundImage:(t,e,n,r)=>{let o=de(e);if(!t)return;let s=r.assets&&r.assets[t];if(s&&s.content)t=s.content.src;else{let i=r.files&&r.files[t];i&&i.content&&(t=i.content.src)}return pe("backgroundImage",Zg(t,o))},textStroke:t=>{let e=Yg(t);if(e!=null)return{WebkitTextStroke:e}},outline:ri("outline"),outlineWidth:(t,e)=>j("outlineWidth",t,e),outlineColor:(t,e)=>{let n=de(e);if(t)return pe("outlineColor",Gt(t,n))},outlineOffset:(t,e)=>j("outlineOffset",t,e),border:ri("border"),borderColor:(t,e)=>{let n=de(e);if(t)return pe("borderColor",Gt(t,n))},borderTopColor:(t,e)=>{let n=de(e);if(t)return pe("borderTopColor",Gt(t,n))},borderBottomColor:(t,e)=>{let n=de(e);if(t)return pe("borderBottomColor",Gt(t,n))},borderLeftColor:(t,e)=>{let n=de(e);if(t)return pe("borderLeftColor",Gt(t,n))},borderRightColor:(t,e)=>{let n=de(e);if(t)return pe("borderRightColor",Gt(t,n))},borderLeft:ri("borderLeft"),borderTop:ri("borderTop"),borderRight:ri("borderRight"),borderBottom:ri("borderBottom"),shadow:(t,e)=>{let n=de(e);if(t)return pe("boxShadow",Xg(t,n))},boxShadow:(t,e)=>{if(!v(t))return;let[n,r]=t.split("!importan"),o=de(e),s=r?" !important":"",i=Uu(n.trim(),o);return v(i)?{boxShadow:i+s}:pe("boxShadow",s?NL(i):i)},textShadow:(t,e)=>pe("textShadow",Uu(t,e?de(e):null)),columnRule:ri("columnRule")};var od={transition:t=>{let e=tm(t);if(e!=null)return{transition:e}},transitionDuration:t=>({transitionDuration:Hu(t)}),transitionDelay:t=>({transitionDelay:Hu(t)}),transitionTimingFunction:t=>({transitionTimingFunction:ze(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};M();var Hk={flow:(t,e)=>{let n=e.reverse;if(!v(t))return;let[r,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(r="row"),(t.startsWith("y")||t==="column")&&(r="column"),{display:"flex",flexFlow:(r||"")+(!r.includes("-reverse")&&n?"-reverse":"")+" "+(o||"")}},wrap:(t,e)=>{if(t!=null)return{display:"flex",flexWrap:t}},align:(t,e)=>{if(!v(t))return;let[n,r]=t.split(" ");return{display:"flex",alignItems:n,justifyContent:r}}};M();var LH=/(^|[^\w.-])([A-Za-z_][\w-]*)/g,$L=t=>{if(!v(t))return t;let e=P().sizes;return e?t.replace(LH,(n,r,o)=>{let s=e[o];return s==null?n:r+String(s)}):t},sr=t=>$L(Qg(t)),Wk={gridTemplateColumns:t=>({gridTemplateColumns:sr(t)}),gridTemplateRows:t=>({gridTemplateRows:sr(t)}),gridAutoColumns:t=>({gridAutoColumns:sr(t)}),gridAutoRows:t=>({gridAutoRows:sr(t)}),area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:sr(t)}),templateColumns:t=>({gridTemplateColumns:sr(t)}),autoColumns:t=>({gridAutoColumns:sr(t)}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:sr(t)}),templateRows:t=>({gridTemplateRows:sr(t)}),autoRows:t=>({gridAutoRows:sr(t)}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var FL="breakpoints",DH=new Set(["window","media"]),BL=/^-?[A-Za-z_][\w-]*$/,jL=new Set(["none","and","or","not","initial","inherit","unset","revert","revert-layer","default"]),IH=t=>{let e=t&&t.containerName;if(typeof e!="string")return null;let n=e.trim().split(/\s+/)[0];return n&&BL.test(n)&&!jL.has(n)?n:null},gc=(t,e)=>{if(typeof t=="function")try{t=t(e,e&&e.state,e&&e.context)}catch{return null}if(typeof t!="string")return null;let n=t.trim();return!n||DH.has(n)?null:n==="container"?IH(e)||FL:BL.test(n)&&!jL.has(n)?n:null},MH=/^@media\s+/i,NH=/^(?:only\s+)?(?:screen|all)\s+and\s+/i,$H=/(?:^|[^\w-])(?:(?:min|max)-)?(?:width|inline-size)(?![\w-])/i,FH=/height|block-size|aspect-ratio|orientation|device-|resolution/i,Kk=t=>{if(typeof t!="string")return null;let e=t.trim().replace(MH,"").replace(NH,"").trim();if(!e||e.indexOf(",")!==-1)return null;let n=e.split(/\s+(?:and|or)\s+/i);for(let r of n){let o=r.trim();if(o.charCodeAt(0)!==40||o.charCodeAt(o.length-1)!==41)return null;let s=o.slice(1,-1);if(s.indexOf("(")!==-1||s.indexOf(")")!==-1||!$H.test(s)||FH.test(s))return null}return e},qk={breakpointsFrom:(t,e)=>{let n=gc(t,e);if(!n)return;let r={},o=e&&e.container!=null;return!o&&(!e||e.containerType==null)&&(r.containerType="inline-size"),!o&&(!e||e.containerName==null)&&(r.containerName=n),r}};var xt={...Fk,...Bk,...jk,...Uk,...Vk,...zk,...od,...Hk,...Wk,...qk};var Bt=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","anchorName","anchorScope","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationRange","animationRangeEnd","animationRangeStart","animationTimeline","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","containIntrinsicBlockSize","containIntrinsicHeight","containIntrinsicInlineSize","containIntrinsicSize","containIntrinsicWidth","container","containerName","containerType","content","contentVisibility","counterIncrement","counterReset","cursor","direction","display","emptyCells","fieldSizing","fill","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","interpolateSize","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","overscrollBehavior","overscrollBehaviorX","overscrollBehaviorY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","positionAnchor","positionArea","positionTry","positionTryFallbacks","positionTryOrder","positionVisibility","resize","right","rotate","rowGap","scrollBehavior","scrollMargin","scrollMarginBlock","scrollMarginBlockEnd","scrollMarginBlockStart","scrollMarginBottom","scrollMarginInline","scrollMarginInlineEnd","scrollMarginInlineStart","scrollMarginLeft","scrollMarginRight","scrollMarginTop","scrollPadding","scrollPaddingBlock","scrollPaddingBlockEnd","scrollPaddingBlockStart","scrollPaddingBottom","scrollPaddingInline","scrollPaddingInlineEnd","scrollPaddingInlineStart","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop","scrollSnapAlign","scrollSnapStop","scrollSnapType","scrollTimeline","scrollTimelineAxis","scrollTimelineName","scrollbarColor","scrollbarGutter","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","stroke","tabSize","tableLayout","textAlign","textAlignLast","textBox","textBoxEdge","textBoxTrim","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","textWrap","textWrapMode","textWrapStyle","timelineScope","top","touchAction","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","viewTimeline","viewTimelineAxis","viewTimelineInset","viewTimelineName","viewTransitionClass","viewTransitionName","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);M();var BH=/^[a-z][0-9]?$/,UL=/var\(\s*(--[A-Za-z0-9-]+)/g,jH=t=>{let e=new Set,n=new Set;if(!t||typeof t!="object")return{knownLetters:e,knownVars:n};for(let r in t){let o=t[r];if(!(!o||typeof o!="object")){if(o.sequence&&typeof o.sequence=="object")for(let s in o.sequence)e.add(s);if(o.vars&&typeof o.vars=="object")for(let s in o.vars)n.add(s)}}return{knownLetters:e,knownVars:n}},UH=Object.prototype.propertyIsEnumerable,VL=(t,e)=>{if(!t||typeof t!="object")return!1;for(let n in t){let r=t[n];if(!r||typeof r!="object")continue;let o=r.sequence;if(o&&typeof o=="object"&&UH.call(o,e))return!0}return!1},Gk=/[(),\s]+/,Yk=(t,e)=>{let n=null,r=t.split(Gk);for(let o=0;o<r.length;o++){let s=r[o];s&&e(s)&&(n||(n=[])).push(s)}return n},Xk=(t,e)=>Mn.test(t)&&e(t.charCodeAt(0)===45?t.slice(1):t),VH=(t,e)=>{if(!e.size)return[];let n=o=>e.has(o),r=Yk(t,o=>Xk(o,n));return r?[...new Set(r)]:[]},zH=(t,e)=>{if(!e.size)return[];let n=[];UL.lastIndex=0;let r;for(;r=UL.exec(t);){let o=r[1];if(e.has(o))continue;let s=o.lastIndexOf("-");if(s===-1)continue;let i=o.slice(s+1);if(!BH.test(i))continue;let a=o.slice(0,s+1)+i.toUpperCase();a!==o&&e.has(a)&&n.push({varName:o,corrected:a})}return n},Cm=new Set,zL=(t,e,n)=>{if(!nt()||!v(e)||!e)return;let r;try{r=P()}catch{return}let{knownLetters:o,knownVars:s}=jH(r);if(!o.size&&!s.size)return;let i=VH(e,o),a=zH(e,s);if(!i.length&&!a.length)return;let c=n?.__ref?.path?n.__ref.path.join("."):n?.key||"?";for(let l of i){let f=`${c}::${t}::bare::${l}::${e}`;Cm.has(f)||(Cm.add(f),console.warn(`[smbls/css-in-props] "${t}" on <${c}> looks like it contains an un-wrapped design-system token ("${l}") \u2014 "${t}" has no registered resolver, so its value is forwarded to the browser untouched. A bare letter token there is invalid CSS, so the browser drops the ENTIRE "${t}" declaration (not just this argument). Wrap it in var(--<family>-${l.replace("-","")}) (or calc(-1 * var(--<family>-${l.replace("-","")})) for a negative). Value: "${e}"`))}for(let{varName:l,corrected:f}of a){let u=`${c}::${t}::case::${l}::${e}`;Cm.has(u)||(Cm.add(u),console.warn(`[smbls/css-in-props] "${t}" on <${c}> references ${l}, which the active design system never emits. CSS custom-property names are case-sensitive \u2014 the real variable is ${f}, so this reference silently never resolves. Value: "${e}"`))}};M();var HH=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,WH=(t,e,n)=>{let{context:r}=n;if(!r.designSystem?.media)return;let o=t.slice(1),s=r.designSystem.media[o],i=zs(s||t)?Vs(()=>ne(e,n)):ne(e,n);if(!s)return{[t]:i};if(/^@(media|supports|container)\b/.test(s))return{[s]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(HH),c=a?a[1]||a[2]:o,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let f=r.designSystem?.scopeSelector||":root",u=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${u} &`]:i}}return l},HL=(t,e,n)=>({[t]:ne(e,n)}),sd=(t,e,n)=>{let r=`&${t}`,o=ne(e,n);if(t.includes(",")&&o){let s={},i={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?i[a]=o[a]:s[a]=o[a];if(Object.keys(i).length){let a=r.split(",").map(l=>l.trim()),c={};Object.keys(s).length&&(c[r]=s);for(let l in i){let f=a.map(u=>`${u} ${l}`).join(", ");c[f]=i[l]}return c}}return{[r]:o}},Zk=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return L(n)?n.call(e,e):!!n},KH=(t,e,n)=>{let r=t.slice(1),o=Zk(r,n);if(o===void 0&&(o=!!n[r]),!!o)return ne(e,n)},qH=(t,e,n)=>({[t]:e}),GH=(t,e,n)=>{let r=t.slice(1),o=n[r]===!0||n.state?.[r];if(!o)if(typeof n[r]=="function")try{o=n[r](n,n.state,n.context)}catch{}else{let s=Zk(r,n);s!==void 0&&(o=s)}if(o)return ne(e,n)},YH=(t,e,n)=>{let r=t.slice(1),o=n[r]===!0||n.state?.[r];if(!o)if(typeof n[r]=="function")try{o=n[r](n,n.state,n.context)}catch{}else{let s=Zk(r,n);s!==void 0&&(o=s)}if(!o)return ne(e,n)},Jk=(t,e)=>ne(t,e),Qk={"@":WH,":":sd,"[":sd,"*":sd,"+":sd,"~":sd,"&":HL,">":HL,$:KH,"-":qH,".":GH,"!":YH};var Om=co(),WL=(t,e,n)=>{let r=e?.context?.designSystem;r&&mt(r);try{let o={},s={},i=(a,c)=>{if(n.unpack){o={...o,...c};return}o[a]=c};for(let a in t){let c=t[a];if(c!==null)if(a==="class"&&v(c)){let l=KL(c,e);l&&(n.unpack?Lt(o,l):o.designSystemClass=l)}else if(a==="true"){let l=St(c,e);Lt(o,Jk(l,e))}else if(e.classlist?.[a]){let l=e.classlist[a],f=L(l)?l(e,e.state,e.context):l;f&&i(a,f),!Om&&k(o[a])&&(o[a].label=a)}else if(xt[a]){let l=St(c,e);if(l===null)continue;I(l)&&(l=l.reduce((u,d)=>Lt(u,d),{}));let f=xt[a](l,e,e.state,e.context);I(f)&&(f=f.reduce((u,d)=>Lt(u,d),{})),f&&i(a,f),!Om&&k(o[a])&&(o[a].label=a)}else if(Bt.has(a)){let l=St(c,e);if(l===null)continue;typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),Om||zL(a,l,e),i(a,{[a]:l}),!Om&&k(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{r&&ht()}},KL=(t,e)=>{if(!v(t))return;let n=e?.context?.designSystem?.class;if(!n)return;let r;for(let o of t.split(" ")){if(!o)continue;let s=n[o];if(!k(s))continue;let i=pt(s);r=r?ae(r,i):i}if(r)return ne(r,e)},qL=(t,e)=>{let n={};for(let r in t){let o=Qk[r.slice(0,1)];if(o){let s=o(r,t[r],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]&&typeof n[i]=="object"&&typeof s[i]=="object"?ae(n[i],s[i]):n[i]=s[i])}}return n},ne=(t,e,n={unpack:!0})=>{let[r,o]=WL(t,e,n),s=qL(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(n.unpack)return zl(r,s);r._selectors=s}return r},XH=(t,e)=>{let n={};if(t.class)for(let r in t.class)n[r]=t.class[r](e);return n};M();var GL=t=>{if(k(t))return ne(t,t)},ZH=(t,e)=>{let n=GL(t);return typeof e=="function"?e(n):We(n)};M();var YL=/\s*!important\s*$/,JH=()=>{let t;try{t=P()}catch{t=null}let e=t&&t.sizes&&typeof t.sizes=="object"?t.sizes:null,n=null,r=s=>{n||(n=new Map);let i=n.get(s);return i===void 0&&(i=VL(t,s),n.set(s,i)),i},o=s=>qa(e,s)!==void 0;return{isToken:s=>s.charCodeAt(0)!==35&&(Xk(s,r)||o(s))}},QH=(t,e)=>{let n=String(t).split(Gk);for(let r=0;r<n.length;r++)if(n[r]===e)return!0;return!1},t9=(t,e)=>{let n=typeof globalThis<"u"?globalThis.CSS:void 0;if(!n||typeof n.supports!="function")return!1;try{return n.supports(Ae(t),e)}catch{return!1}},XL=new Set,e9=(t,e,n)=>{if(!nt())return;let r=t?.__ref?.path?t.__ref.path.join("."):t?.key||"?",o=r+"::"+e+"::"+n;XL.has(o)||(XL.add(o),console.warn(`[smbls/css-in-props] style.${e} on <${r}> holds a design-system token the "${e}" transformer could not resolve to one inline value, so it is written as is and the browser drops it. Move the key out of \`style\` to the element itself, or write the resolved CSS. Value: "${n}"`))},n9=(t,e)=>{if(!t||typeof t!="object")return!1;let n=!1;for(let r in t){let o=t[r];if(o!=null){if(typeof o=="object"||typeof o=="function")return!1;for(let s of e)if(QH(o,s))return!1;n=!0}}return n},r9=(t,e,n,r)=>{if(!v(e)||!e||t.charCodeAt(0)===45&&t.charCodeAt(1)===45)return null;let o=xt[t];if(!o||!Bt.has(t))return null;let s=YL.test(e),i=s?e.replace(YL,""):e,a=Yk(i,r.isToken);if(!a||t9(t,i))return null;let c;try{c=o(i,n,n?.state,n?.context)}catch{c=null}if(Array.isArray(c)){let f={};for(let u of c)u&&typeof u=="object"&&Object.assign(f,u);c=f}if(!n9(c,a))return e9(n,t,e),null;let l={};for(let f in c){let u=c[f];u!=null&&(l[f]=s?String(u)+" !important":u)}return l},ZL=(t,e,n)=>{let r={},o=!1;for(let s in t){let i=t[s];if(s.charCodeAt(0)===38&&i&&typeof i=="object"&&!Array.isArray(i)){let c=ZL(i,e,n);c!==i&&(o=!0),r[s]=c;continue}let a=r9(s,i,e,n);a?(o=!0,Object.assign(r,a)):r[s]=i}return o?r:t},tE=(t,e)=>!t||typeof t!="object"||Array.isArray(t)?t:ZL(t,e,JH());if(!vt||!dn)throw new Error("@symbo.ls/element: the installed @symbo.ls/css does not export CSS_SHORTHAND_LONGHANDS / CSS_LONGHAND_SHORTHANDS (the CSS shorthand family table, packages/css/src/cssLonghands.js). This element needs the @symbo.ls/css published in the same release \u2014 update @symbo.ls/css.");var Rm=vt,Io=dn,Pm=sc||(()=>!1),JL=qu||Pm,QL=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Ur=Ae||(t=>QL(t)?t:t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())),id=Zu||(t=>QL(t)?t:t.replace(/-([a-z])/g,(e,n)=>n.toUpperCase()));function eD(t){let e=[];return t.extends&&(Array.isArray(t.extends)?e.push(...t.extends):e.push(t.extends)),t.extend&&(Array.isArray(t.extend)?e.push(...t.extend):e.push(t.extend)),e}function mc(t,e,n){let r=eD(e);if(!r.length)return;let s=(t.context||n?.context||{}).components||{};for(let i=0;i<r.length;i++){let a=nD(r[i],s);a&&a!==e&&rD(t,a,n,new Set([e]))}}function nD(t,e){if(typeof t=="string"){if(t.includes(">")){let n=t.split(">").map(o=>o.trim()),r=e[n[0]]||e[`smbls.${n[0]}`];for(let o=1;o<n.length&&r;o++)r=r[n[o]];return r||null}return e[t]||e[`smbls.${t}`]||null}return typeof t=="object"&&t!==null?t:null}function rD(t,e,n,r=new Set){if(r.has(e))return;r.add(e);let o=eD(e);if(o.length){let a=(t.context||n?.context||{}).components||{};for(let c=0;c<o.length;c++){let l=nD(o[c],a);l&&rD(t,l,n,r)}}let s=nE(t);for(let i in e){if(i==="extends"||i==="extend")continue;let a=e[i];s&&s.mark(i);let c=st.chains;c!==null&&c(t,i,t[i],a)||(t[i]===void 0?a&&typeof a=="object"&&!Array.isArray(a)&&typeof a!="function"?t[i]={...a}:t[i]=a:typeof t[i]=="object"&&typeof a=="object"&&!Array.isArray(t[i])&&!Array.isArray(a)&&t[i]!==null&&a!==null?t[i]=Ke(t[i],a):t[i]=a)}}var eE=class{constructor(){this.rank=0,this.ranks=null}mark(e){o9(e)&&(this.ranks||(this.ranks=new Map),this.ranks.set(e,this.rank))}get(e){return this.ranks?this.ranks.get(e):void 0}get size(){return this.ranks?this.ranks.size:0}},Lm=new Set;for(let t of[Io,Rm])for(let e in t)Lm.add(e),Lm.add(id(e));var tD=new Map;function o9(t){let e=t.charCodeAt(0);if(e>=65&&e<=90||e>=48&&e<=57)return!1;let n=tD.get(t);return n===void 0&&(n=!!xt[t]||Lm.has(t)||t.indexOf("-")>=0&&!(t.charCodeAt(0)===45&&t.charCodeAt(1)===45)&&Lm.has(Ur(t)),tD.set(t,n)),n}function nE(t){let e=t&&t.__ref;if(!e)return null;let n=e.__mergeLayer;return n||(n=e.__mergeLayer=new eE),n.rank++,n}function oD(t){let e=t&&t.__ref&&t.__ref.__mergeLayer;if(!e||!e.ranks)return;let n;for(let r of e.ranks.values())if(n===void 0)n=r;else if(r!==n)return;e.ranks=null}function Ke(t,e){let n={...t},r=st.chains;for(let o in e){let s=n[o],i=e[o];r!==null&&r(n,o,s,i)||(s&&i&&typeof s=="object"&&typeof i=="object"&&!Array.isArray(s)&&!Array.isArray(i)&&typeof s!="function"&&typeof i!="function"?n[o]=Ke(s,i):n[o]=i)}return n}Mt();Mt();Mt();var oi="http://www.w3.org/2000/svg",_c=new Set(["svg","path","circle","ellipse","line","polyline","polygon","rect","g","defs","use","symbol","clipPath","mask","pattern","image","text","tspan","textPath","marker","linearGradient","radialGradient","stop","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","animate","animateMotion","animateTransform","set","foreignObject","desc","title","metadata"]),s9=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","string","fragment","shadow"]);function yc(t){return s9.has(t)||_c.has(t)}function Vr(t){return _c.has(t)}function ir(t){let{tag:e,key:n}=t;if(typeof e=="function")try{e=e(t,t.state,t.context)}catch(s){e=void 0,typeof console<"u"&&console.error&&console.error(`[smbls] \`tag:\` factory threw on "${n||"<anon>"}" \u2014 falling back to key-based tag detection:`,s?.message||s)}if(e===!0&&(e=n),typeof e=="string"&&yc(e))return e;if(!n||typeof n!="string")return"div";let r=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template","th","tr","td","thead","tbody","tfoot","caption","col","colgroup"]),o=n.toLowerCase();return o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),yc(o)&&!r.has(o)?o:"div"}var sD={};function bc(t,e){let n=e?.context?.document||globalThis.document;if(!n)return null;if(t==="string")return n.createTextNode(e?.text||"");if(t==="fragment")return n.createDocumentFragment();if(Vr(t)){let r=e?.parent;if(t==="svg"||r?.node?.namespaceURI===oi)return n.createElementNS(oi,t);if(t!=="svg")return n.createElement("div")}return n.createElement(t)}function Mo(t){let e=t.tag=ir(t),r=Vr(e)&&(e==="svg"||t.parent?.node?.namespaceURI===oi)?"svg:"+e:e,o=t?.context?.document||globalThis.document,s=sD[r];if(s||(s=sD[r]=bc(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?bc(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}function ad(t,e){return e&&e.parentNode===t?e.nextSibling:t.firstChild}Mt();fa();var iD=new WeakMap,aD=null,cD=null;function i9(t,e){let n=t===aD?cD:iD.get(t);(!n||n.length!==t.length)&&(n={length:t.length,hooks:new Map},iD.set(t,n)),aD=t,cD=n;let r=n.hooks.get(e);if(r===void 0){r=!1;for(let o of t)if(typeof o[e]=="function"){r=!0;break}n.hooks.set(e,r)}return r}function rE(t,e){let n=t&&t.context&&t.context.plugins;return!!(n&&n.length&&i9(n,e))}function ar(t,e,...n){return rE(e,t)?fo(t,e,...n):!1}function mn(t,e,n){ar("error",t,{hook:e,error:n})||console.error(`[DOMQL] Lifecycle "${e}" error:`,n)}var a9=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function fD(t,e,n){return Te(()=>gn(t,()=>e.call(t,n,t,t.state,t.context)))}function c9(t,e){if(!nt())return;let n=e.__children&&e.__children.length>0;!n&&t.html==null||console.warn(`[smbls] bridge host "${e.path.join(".")}" renders DOMQL ${n?"children":"html"} inside the node it hands to its library \u2014 the library owns that subtree and may replace them. Keep DOMQL children beside the host, not in it.`)}function uD(t){let e=t.__ref,n=t.node;if(!e||!n||e.__bridge||typeof t.onBridgeMount!="function")return;if(globalThis.__SMBLS_BUILD_DROP_F_bridge__)return zt("bridge",t);if(!("scrollHeight"in n))return;let r=e.__bridge={settled:!1,failed:!1,disposed:!1,destroyed:!1,instance:void 0,effect:null};e.contentManaged=!0,c9(t,e);let o;try{o=fD(t,t.onBridgeMount,n)}catch(s){if(r.failed=!0,mn(t,"onBridgeMount",s),t.context?.strictMode)throw s;return}if(o&&typeof o.then=="function"){o.then(s=>lD(t,r,s),s=>{r.failed=!0,mn(t,"onBridgeMount",s)});return}lD(t,r,o)}function lD(t,e,n){if(e.settled=!0,e.instance=n,e.disposed){pD(t,e);return}if(Object.defineProperty(t,"bridge",{value:n,writable:!0,configurable:!0,enumerable:!1}),typeof t.onBridgeUpdate!="function")return;let r=t.__ref;e.effect=Y(()=>{e.disposed||gn(t,()=>{try{let o=t.onBridgeUpdate.call(t,e.instance,t,t.state,t.context);o&&typeof o.then=="function"&&o.catch(s=>mn(t,"onBridgeUpdate",s))}catch(o){mn(t,"onBridgeUpdate",o)}})},{depth:r.path.length,label:()=>r.path.join(".")+"::onBridgeUpdate"}),r.__effects.push(e.effect)}function dD(t){if(globalThis.__SMBLS_BUILD_DROP_F_bridge__)return;let e=t.__ref?.__bridge;!e||e.disposed||(e.disposed=!0,e.effect&&e.effect.dispose(),e.settled&&pD(t,e))}function pD(t,e){if(e.destroyed)return;e.destroyed=!0;let n=e.instance;if(e.instance=void 0,a9(t,"bridge")&&(t.bridge=void 0),typeof t.onBridgeDestroy=="function")try{let r=fD(t,t.onBridgeDestroy,n);r&&typeof r.then=="function"&&r.catch(o=>mn(t,"onBridgeDestroy",o))}catch(r){mn(t,"onBridgeDestroy",r)}}function wc(t){return t.__mount||(t.__mount={pending:0,tail:null,holder:null,waiters:null,chunkGen:0,attachLater:!1,held:!1})}function cd(t){let e=t.__mount;return e?e.pending:0}Mt();function Sc(t={},e={}){let n=this,r=n.__ref;if(!r)return;if((typeof t=="string"||typeof t=="number")&&(t={text:t}),!e.preventListeners&&typeof n.onBeforeUpdate=="function"&&Dm(r))try{let a=n.onBeforeUpdate(n,n.state,n.context,e);if(a&&typeof a.then=="function")a.then(()=>cr(r,!1),c=>{cr(r,!0),ar("error",n,{hook:"onBeforeUpdate",error:c})||console.error("[DOMQL] onBeforeUpdate error:",c)});else if(cr(r,!1),a===!1)return n}catch(a){throw cr(r,!0),a}let o=!t||Object.keys(t).length===0,s=[],i=!1;$p(()=>{if(t.state&&Et(n.state)&&n.state.$update(t.state),t.text!==void 0&&(n.text=t.text,!r.__exec.text&&n.node&&si(n,t.text??"")),t.html!==void 0&&(n.html=t.html,!r.__exec.html&&n.node&&(n.node.innerHTML=t.html)),t.style&&n.node?.style){if(!r.__exec.style){let a=ai(n,t.style);for(let c in a){let l=a[c];if(l==null)continue;let f=Ur(c),u=String(l).replace(/\s*!important\s*$/,"");n.node.style.setProperty(f,u,"important")}}n.style||(n.style={}),Object.assign(n.style,t.style)}if(t.attr&&n.node?.setAttribute){for(let a in t.attr){let c=t.attr[a];ii(n.node,a,c)}n.attr||(n.attr={}),Object.assign(n.attr,t.attr)}if(t.data&&n.node?.dataset){for(let a in t.data)n.node.dataset[a]=t.data[a];n.data||(n.data={}),Object.assign(n.data,t.data)}if(t.vars&&typeof t.vars=="object"&&!Array.isArray(t.vars)){let a=n.vars&&typeof n.vars=="object"&&!Array.isArray(n.vars)?n.vars:null;n.vars={...a,...t.vars},i=!0}for(let a in t){if(Yt.has(a)||a==="state")continue;let c=t[a],l=n[a];if(l&&l.__ref&&typeof l.update=="function")l.update(c,e);else if(typeof c=="object"&&c!==null){let f=a.charCodeAt(0);f>=65&&f<=90&&Xt(c,n,a,e)}else a!=="text"&&a!=="html"&&a!=="style"&&a!=="attr"&&a!=="data"&&(n[a]=c,typeof c!="function"&&s.push(a))}});for(let a=0;a<s.length;a++)iE(n,s[a]);if(n.node){let a=i;for(let c=0;!a&&c<s.length;c++)oE(s[c])&&(a=!0);a&&sE(n)}if(n.node&&o&&r.__effects&&r.__effects.length)for(let a=0;a<r.__effects.length;a++){let c=r.__effects[a];c&&!c._disposed&&!c._isSubscribeToEffect&&typeof c._execute=="function"&&c._execute()}else if(n.node&&r.__conditionalRunners)for(let a of r.__conditionalRunners)a();return ar("update",n),!e.preventListeners&&typeof n.onUpdate=="function"&&n.onUpdate(n,n.state,n.context,e),n}Mt();function yn(t){if(!t)return;let e=t.__ref;if(!e)return;if(e.__onConnected&&hL(t),$e())return Te(()=>yn(t));e.__disposed=!0;let n=e.__if===!1&&!e.__ifInitialized;if(!n)try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(o){console.error("[smbls] onBeforeRemove error:",o)}if(e.__bridge&&dD(t),e.__effects){for(let o=0;o<e.__effects.length;o++)e.__effects[o].dispose();e.__effects.length=0}if(typeof e.__releaseMedia=="function"&&(e.__releaseMedia(),e.__releaseMedia=null),e.__eventCleanup){for(let o=0;o<e.__eventCleanup.length;o++)e.__eventCleanup[o]();e.__eventCleanup.length=0}if(e.__children){let o=e.__children.slice();e.__children.length=0;for(let s=0;s<o.length;s++){let i=t[o[s]];i&&i.__ref&&yn(i)}}if(e.__ifParked&&e.__ifParked.size){let o=[...e.__ifParked];e.__ifParked.clear();for(let s=0;s<o.length;s++){let i=t[o[s]];i&&i.__ref&&i.parent===t&&yn(i)}}e.__keepNode?e.__keepNode=!1:t.node?.parentNode?t.node.remove():t.tag==="fragment"&&e.__fragmentAnchor?.parentNode&&e.__fragmentAnchor.remove();let r=t.state?.$destroy||t.state?.destroy;if(typeof r=="function"&&t.state.__element===t&&r.call(t.state),t.parent?.__ref?.__children){let o=t.parent.__ref.__children.indexOf(t.key);o!==-1&&t.parent.__ref.__children.splice(o,1),t.parent.__ref.__ifParked&&t.parent.__ref.__ifParked.delete(t.key),delete t.parent[t.key]}if(!n)try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(o){console.error("[smbls] onRemove error:",o)}e.__mount&&e.__mount.tail&&st.mount.abandon(t,e),t.node=null,t.parent=null,t.__ref=null}function xc(){yn(this)}M();M();function lE(t,e,n){let r=t?.context?.analyze;if(!r||!r.emit||e==="warn"&&!r.shouldCapture("warnings")||e==="error"&&!r.shouldCapture("errors"))return;let o=n.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");r.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:e==="error"?"error":"warning",level:e,hook:e==="error"?"el.error":"el.warn",element:{key:t.key!=null?String(t.key):null,name:t.__name||null,tag:t.tag||null},message:o||null,args:n})}var hD=new Set;function gD(t,e,n){let r=String(e);if(hD.has(r))return;hD.add(r);let o=t?.__ref?.path,s=Array.isArray(o)&&o.length?o.join("."):t?.key!=null?String(t.key):"(unknown element)",i=n!=null?`resolves to a non-function (${typeof n}) \u2014 it cannot be called`:"is not registered in context.methods, context.functions, or context.utils, and is not an element method",a=`[smbls] el.call('${r}') at <${s}>: "${r}" ${i}. Returning undefined (unchanged behavior) \u2014 check the name for typos or register the function on the project. Warned once per name; repeat misses are silent.`;lE(t,"error",[a]),console.error(a)}var yD=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),l9=new Set,bD=t=>yD(aE,t)&&!(oa||l9).has(t),mD=new Set;function _D(t,e){mD.has(t)||(mD.add(t),nt()&&console.warn(`[smbls] ${e}: context.methods.${t} is named like a built-in element method and is not the app's own override (it was not on the element prototype when it was built) \u2014 ignored; the built-in keeps winning. Declare an intentional override in the app's OWN methods.`))}function f9(...t){return lE(this,"warn",t),Of.apply(this,t)}function u9(...t){return lE(this,"error",t),ks.apply(this,t)}var aE={update:Sc,remove:xc,getDB:Df,getQuery:If,getRootData:Af,getPath:xf,nextElement:Rf,previousElement:Pf,verbose:ka,warn:f9,error:u9,variables:Lf,spotByPath:Sf,set(t,e,n){let r=this.__ref;if(r){if(r.__setLocked){r.__setQueued={content:t,options:e};return}r.__setLocked=!0}let o,s=t!=null?st.hydration:null,i=s&&typeof s.handBack=="function"?this.context?.__hydration:null,a=i&&r?.__children&&this.content?.__ref?s.handBack(i,this.content):null;try{if(this.removeContent(),t!=null){let c=this.context?.__create;try{c&&(o=c(t,this,"content",e,n))}finally{a&&s.settleHandBack(i,a)}}this.__ref&&(this.__ref.contentManaged=!0)}finally{if(r){r.__setLocked=!1;let c=r.__setQueued;c&&(r.__setQueued=null,this.set(c.content,c.options))}}return o},reset(t){let e=this.context?.__create;if(!e)return this;let n=this.parent,r=this.key,o=this.parse();return this.remove(),e(o,n,r,t)},lookup(t){let e=this.parent;for(;e;){if(typeof t=="function"){if(t(e))return e}else if(typeof t=="string"){if(e.key===t)return e;if(e[t]&&e[t].__ref)return e[t]}e=e.parent}return null},whenConnected(t){return Do(this,t)},lookdown(t){let e=this.__ref;if(!e?.__children)return null;for(let n of e.__children){let r=this[n];if(!r)continue;if(typeof t=="function"){if(t(r))return r}else if(typeof t=="string"&&r.key===t)return r;let o=r.lookdown?.(t);if(o)return o}return null},lookdownAll(t,e=[]){let n=this.__ref;if(!n?.__children)return e;for(let r of n.__children){let o=this[r];o&&(typeof t=="function"?t(o)&&e.push(o):typeof t=="string"&&o.key===t&&e.push(o),o.lookdownAll?.(t,e))}return e},getRef(t){return t?this.__ref&&this.__ref[t]:this.__ref},getChildren(){let t=this.__ref&&this.__ref.__children;return Array.isArray(t)?t.map(e=>this[e]):[]},getRoot:vf,getRootState:Ef,getRootContext:Tf,getContext:Cf,parse(t){let e={},n=t?new Set(t):null,r=this.__ref?.__exec;for(let o in this)if(!(o==="parent"||o==="node"||o==="__ref")&&!n?.has(o)){if(r&&r[o]!==void 0){e[o]=r[o];continue}typeof this[o]!="function"&&(e[o]=this[o])}return e},parseDeep(t){let e=this.parse(t),n=this.__ref;if(n?.__children)for(let r of n.__children)this[r]?.parseDeep&&(e[r]=this[r].parseDeep(t));return e},keys(){return Object.keys(this)},log(...t){if(t.length){let e={};for(let n of t)e[n]=this[n];console.log(e)}else console.log(this)},setProps(t,e){return this.update(t,e)},setNodeStyles(t){if(this.node?.style)for(let e in t){let n=t[e];if(n==null)continue;let r=e.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),o=String(n).replace(/\s*!important\s*$/,"");this.node.style.setProperty(r,o,"important")}},call(t,...e){let n=this.context,r=bD(t);r&&n?.methods?.[t]&&n.methods[t]!==this[t]&&_D(t,"el.call");let o=r?this[t]:n?.methods?.[t]||n?.functions?.[t]||n?.utils?.[t]||this[t];if(typeof o=="function"){let s=ps;if(!s||!s(o))return o.call(this,...e);nt()&&gD(this,t,Fe(o));return}nt()&&gD(this,t,o)},removeContent(){let t=this.__ref;if(!t?.__children)return;let e=this.content;if(e?.remove){e.remove(),delete this.content;let n=t.__children.indexOf("content");n!==-1&&t.__children.splice(n,1)}e?.node?.parentNode&&e.node.parentNode.removeChild(e.node)}},cE=new WeakMap;function d9(t){if(!t)return aE;let e=cE.get(t);if(e)return e;e=Object.create(aE);let n=t.methods;if(n)for(let r in n)e[r]=n[r];return cE.set(t,e),e}function kc(t){let e=d9(t.context);Object.setPrototypeOf(t,e)}function Ec(t){if(!t)return!1;let e=cE.get(t);if(!e)return!1;let n=t.methods;if(!n)return!1;for(let r in n){if(bD(r)&&!yD(e,r)){_D(r,"refreshContextProto");continue}e[r]=n[r]}return!0}M();M();var hE={};B(hE,{STATE_METHODS:()=>wD,applyInitialState:()=>Im,applyStateMethods:()=>Ce,callStateMethod:()=>fd,createState:()=>uE,isTracking:()=>pE,useHostState:()=>dE});Mt();Mt();var wD=new Set(["update","parse","clean","destroy","create","add","toggle","remove","set","replace","setByPath","setPathCollection","removeByPath","removePathCollection","getByPath","reset","apply","applyReplace","applyFunction","quietUpdate","quietReplace","rootUpdate","parentUpdate","keys","values","__element","__children","parent","root"]),ld=(t,e,n)=>{Object.defineProperty(t,e,{value:n,enumerable:!1,configurable:!0,writable:!0})},Nn=(t,e,n,{onlyIfAbsent:r}={})=>{ld(t,"$"+e,n),!(r&&Object.prototype.hasOwnProperty.call(t,e))&&ld(t,e,n)},fd=(t,e,...n)=>{if(!t)return;let r=t["$"+e];if(typeof r=="function")return r.apply(t,n);let o=t[e];if(typeof o=="function")return o.apply(t,n)},Ce=(t,e)=>{if(Et(e)){let o=e.__raw||e;Nn(o,"toggle",function(s,i={}){e[s]=!e[s]},{onlyIfAbsent:!0}),Nn(o,"set",function(s,i={}){let a=e.__element;return typeof s=="object"&&s!==null&&a&&typeof a.onBeforeStateUpdate=="function"&&!i.preventBeforeStateUpdateListener&&a.onBeforeStateUpdate(a,e,a.context,{changes:s,options:i})===!1||(e.$clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.$update(s,{...i,preventBeforeStateUpdateListener:!0})),e},{onlyIfAbsent:!0}),Nn(o,"setByPath",function(s,i,a={}){let c=s.split("."),l=e;for(let f=0;f<c.length-1;f++)l[c[f]]===void 0&&(l[c[f]]={}),l=l[c[f]];return l[c[c.length-1]]=i,e}),Nn(o,"getByPath",function(s){let i=s.split("."),a=e;for(let c=0;c<i.length;c++){if(a==null)return;a=a[i[c]]}return a}),Nn(o,"removeByPath",function(s,i={}){let a=s.split("."),c=e;for(let l=0;l<a.length-1;l++){if(c==null)return e;c=c[a[l]]}return c&&delete c[a[a.length-1]],e}),Nn(o,"reset",function(s={}){let i=e.$parse();return e.$set(i,s)}),Nn(o,"apply",function(s,i={}){if(typeof s=="function"){let a=s(e);return e.$update(a,i)}}),Nn(o,"applyFunction",function(s,i={}){if(typeof s=="function")return s(e),e.$update(e.$parse(),i)}),Nn(o,"rootUpdate",function(s,i={}){let a=e;for(;a?.parent&&Et(a.parent);)a=a.parent;return fd(a,"update",s,i)}),Nn(o,"parentUpdate",function(s,i={}){if(e.parent)return fd(e.parent,"update",s,i)}),Nn(o,"quietReplace",function(s,i={}){return e.$replace(s,{quiet:!0,...i})}),Object.getOwnPropertyDescriptor(o,"root")||Object.defineProperty(o,"root",{get:function(){let s=e,i=Et(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,Et(s)&&(i=s);return i||s},enumerable:!1,configurable:!0});return}if(!e||typeof e!="object")return;let n=()=>{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&delete e[o]},r={update(o){if(!o||typeof o!="object")return e;for(let s in o)e[s]=o[s];return e},apply(o){if(typeof o!="function")return e;let s=o(e);return s?e.$update(s):e},parse(){return{...e}},toggle(o){return e[o]=!e[o],e},set(o){if(!o||typeof o!="object")return e;n();for(let s in o)e[s]=o[s];return e},replace(o){return e.$set(o)},clean(){return n(),e}};ld(e,"$settled",function(){return Fp().then(()=>e)});for(let o in r)if(ld(e,"$"+o,r[o]),typeof e[o]!="function"){if(Object.prototype.hasOwnProperty.call(e,o)){Up(o,"");continue}ld(e,o,r[o])}};var uE=function(t,e,n){return t.state=Im(t,e,n),t.state},Im=function(t,e,n){let{__ref:r}=t,o=t.state;if(o==null||o===!1){let s=e?.state||{};return Ce(t,s),s}if(typeof o=="string")return r&&(r.__state=o),r.__stateType="string",p9(o,t,e);if(typeof o=="number"||typeof o=="boolean"){r&&(r.__state=o,r.__stateType=typeof o,r.__hasRootState=!0);let s=yr({value:o});return s.__element=t,e?.state&&(s.parent=e.state),Ce(t,s),s}if(typeof o=="function"&&(o=o(t,e?.state)||{}),typeof o=="object"&&!Et(o)){r&&(r.__hasRootState=!0),o.isRootState&&r&&(r.__hasRootState=!0);let s=yr({...o});if(s.__element=t,!Object.getOwnPropertyDescriptor(s,"root")){let i=e?.state?.root||e?.state||s;Object.defineProperty(s,"root",{get:()=>i,enumerable:!1,configurable:!0})}return e?.state&&(s.parent=e.state,e.state.__children&&(e.state.__children[t.key]=s)),Ce(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,n),s}return Et(o)?(o.__element=t,o):e?.state||{}};function fE(t,e){if(!e)return t;let n=e.split("/"),r=t;for(let o of n){if(r==null)return{};r=r[o]}return r??{}}function p9(t,e,n){if(!n?.state)return{};if(t===".")return n.state;if(t.startsWith("../")){let o=t.slice(3),s=n.state?.parent;return o&&s?fE(s,o):s??n.state??{}}if(t.startsWith("~/")){let o=n.state;for(;o?.parent;)o=o.parent;let s=t.slice(2);return s?fE(o,s):o??{}}let r=fE(n.state,t);if(r&&typeof r=="object"&&!Et(r)&&!Object.getOwnPropertyDescriptor(r,"root")){let o=n.state?.root||n.state;Object.defineProperty(r,"root",{get:()=>o,enumerable:!1,configurable:!0})}return r}Mt();var dE=(t,e)=>{if(!t)return xD;let n=g9(t,e);return!n||!n.state?xD:y9(n.state)},pE=()=>$e()!=null,h9=128;function g9(t,e){let n=typeof e=="function"?e:typeof e=="string"?s=>!!s?.[e]:s=>!!s?.state,r=t,o=null;for(let s=0;s<h9&&r;s++){if(n(r)&&r.state)return r;if(r.state&&!o&&(o=r),!r.parent||r.parent===r)break;r=r.parent}return o}var m9={get(t,e){return t[e]}},SD=new WeakMap,y9=t=>{let e=SD.get(t);return e||(e=new Proxy(t,m9),SD.set(t,e)),e},xD=new Proxy(Object.create(null),{get(){},has(){return!1}});M();var b9=["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"],_9=["alignment-baseline","baseline-shift","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","mask-type","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","transform-origin","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"],w9=["requiredExtensions","systemLanguage"],kD={circle:["cx","cy","r","pathLength"],ellipse:["cx","cy","rx","ry","pathLength"],line:["x1","y1","x2","y2","pathLength"],path:["d","pathLength"],polygon:["points","pathLength"],polyline:["points","pathLength"],rect:["x","y","width","height","rx","ry","pathLength"],g:[],defs:[],switch:[],symbol:["viewBox","preserveAspectRatio","refX","refY","x","y","width","height"],use:["href","xlink:href","x","y","width","height"],image:["href","xlink:href","x","y","width","height","preserveAspectRatio","crossorigin"],foreignObject:["x","y","width","height"],text:["x","y","dx","dy","rotate","textLength","lengthAdjust"],tspan:["x","y","dx","dy","rotate","textLength","lengthAdjust"],textPath:["href","xlink:href","path","startOffset","method","spacing","side","textLength","lengthAdjust"],linearGradient:["x1","y1","x2","y2","gradientUnits","gradientTransform","spreadMethod","href","xlink:href"],radialGradient:["cx","cy","r","fx","fy","fr","gradientUnits","gradientTransform","spreadMethod","href","xlink:href"],stop:["offset"],pattern:["x","y","width","height","patternUnits","patternContentUnits","patternTransform","viewBox","preserveAspectRatio","href","xlink:href"],clipPath:["clipPathUnits"],mask:["x","y","width","height","maskUnits","maskContentUnits"],marker:["viewBox","preserveAspectRatio","refX","refY","markerUnits","markerWidth","markerHeight","orient"],filter:["x","y","width","height","filterUnits","primitiveUnits"]},S9=new Set(["linearGradient","radialGradient","stop","clipPath","mask","marker","pattern","filter","symbol"]),x9=()=>{let t={};for(let e in kD)t[e]=[...kD[e],...S9.has(e)?[]:w9,..._9];return t},zr={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","enterkeyhint","exportparts","headingoffset","headingreset","hidden","id","inputmode","lang","nonce","part","placeholder","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions","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","ping","referrerpolicy","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","loading","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["command","commandfor","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["name","open"],del:["cite","datetime"],dialog:["closedby","open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["accept-charset","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","controls","crossorigin","decoding","fetchpriority","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alpha","alt","autocomplete","capture","checked","colorspace","crossorigin","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","blocking","crossorigin","disabled","fetchpriority","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"],q:["cite"],slot:["name"],script:["async","blocking","charset","crossorigin","defer","fetchpriority","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:["blocking","media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],template:["for","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootmode","shadowrootserializable","shadowrootslotassignment"],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","loading","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","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"],...x9()},TD=["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"],CD=t=>t.startsWith("aria")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?"aria-"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>"-"+e.toLowerCase()):t.startsWith("data")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?"data-"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>"-"+e.toLowerCase()):null,ED=new Map,Hr=t=>{let e=ED.get(t);return e===void 0&&(e=CD(t)||PD(t),ED.set(t,e)),e},OD=new Set(["tabIndex","readOnly","maxLength","minLength","autoComplete","autoFocus","autoPlay","contentEditable","spellCheck","colSpan","rowSpan","srcSet","crossOrigin","accessKey","inputMode","enterKeyHint","formAction","noValidate","autoCapitalize","autoCorrect","writingSuggestions","headingOffset","headingReset","exportParts"]),gE=new Set;for(let t in zr)t==="default"||t==="aria"||t==="svg"||zr[t].forEach(e=>{e.startsWith("on")||gE.add(e)});var RD=t=>{let e=t.charCodeAt(0);if(e<97||e>122||!/[A-Z]/.test(t))return null;let n=t.replace(/[A-Z]/g,o=>"-"+o.toLowerCase());if(gE.has(n))return n;let r=t.toLowerCase();return gE.has(r)?r:null},PD=t=>OD.has(t)?t.toLowerCase():RD(t),k9=new Set(["draggable","contenteditable","spellcheck","autocorrect","writingsuggestions","translate"]),E9=new Map([["autocorrect",["on","off"]],["translate",["yes","no"]]]),ci=t=>typeof t=="string"&&(k9.has(t)||t.startsWith("aria-")),lr=(t,e)=>{if(e!==!0&&e!==!1)return e;if(ci(t)){let n=E9.get(t);return n?e?n[0]:n[1]:e?"true":"false"}return e===!0?"":e},vD=new Map,bn=(t,e)=>{let n=zr.default,r=Object.prototype.hasOwnProperty.call(zr,t)?zr[t]:null,o=r?r.length:-1,s=vD.get(t);(!s||s.def!==n||s.defLen!==n.length||s.own!==r||s.ownLen!==o)&&(s={def:n,defLen:n.length,own:r,ownLen:o,answers:new Map},vD.set(t,s));let i=s.answers.get(e);return i===void 0&&(i=v9(t,e),s.answers.set(e,i)),i},v9=(t,e)=>{if(e.startsWith("aria-")||e.startsWith("data-")||CD(e)||OD.has(e)||zr.default.includes(e))return!0;if(Object.prototype.hasOwnProperty.call(zr,t)){let n=zr[t];if(n.includes(e))return!0;let r=RD(e);return r!==null&&n.includes(r)}return!1},yE=t=>{if(!v(t))return!1;let e=t.toLowerCase();return TD.includes(e)},A9=(t,e,n)=>{let r={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(n&&o in n)continue;if(o==="aria"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])Ut(e[o][a])&&(r["aria-"+a]=e[o][a]);continue}if(o==="data"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])if(Ut(e[o][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());r["data-"+c]=e[o][a]}continue}let s=bn(t,o),i=yE(o);if(Ut(e[o])&&(s||i)){let a=Hr(o)||o;r[a]=e[o]}}return r},T9=(t,e)=>{let n={};if(t.attr)for(let r in t.attr)n[r]=t.attr[r](e,e.state,e.context);if(t.aria&&typeof t.aria=="object")for(let r in t.aria){let o=t.aria[r];typeof o=="function"&&(n["aria-"+r]=o(e,e.state,e.context))}if(t.data&&typeof t.data=="object")for(let r in t.data){let o=t.data[r];if(typeof o=="function"){let s=r.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());n["data-"+s]=o(e,e.state,e.context)}}return n},No=(t,e)=>{let n=t.call("exec",e,t);if(n)return v(n)&&n.includes("{{")&&(n=t.call("replaceLiteralsWithObjectFields",n)),n},mE=(t,e)=>{let n=(t.preSrc||"")+(No(t,e)||"");if(!n)return;try{return new URL(n),n}catch{}let{context:r}=t;if(!r.files&&!r.assets)return n;if(n.startsWith("/assets/")){let o=n.slice(8),s=r.assets&&(r.assets[n]||r.assets[o]);return s&&s.content?s.content.src:n}if(n.startsWith("/files/")){let o=n.slice(7),s=r.files&&(r.files[n]||r.files[o]);return s&&s.content?s.content.src:n}if(r.assets){let o=r.assets[n];if(o&&o.content)return o.content.src}if(r.files){let o=r.files[n];if(o&&o.content)return o.content.src}return n},$o={src:t=>mE(t,t.src),href:t=>No(t,t.href),action:t=>No(t,t.action),poster:t=>mE(t,t.poster),data:t=>No(t,t.data)},bE=t=>{let e=t.tag||"div",n={};for(let r in $o)if(t[r]!==void 0&&bn(e,r)){let o=$o[r](t);o!==void 0&&(n[r]=o)}return n},AD=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return L(n)?n.call(e,e):!!n},C9=(t,e,n)=>{if(t==="$"){let o=AD(e,n);return o===void 0&&(o=!!n[e]),o}let r=n[e]===!0||n.state[e];if(!r){let o=AD(e,n);o!==void 0&&(r=o)}return t==="."?!!r:!r},O9=new Set(["$",".","!"]),_E=(t,e,n,r=C9)=>{let o={},s=(i,a,c,l)=>{let f=a;o[i]=u=>{if(r(c,l,u))return L(f)?f(u,u.state,u.context):f}};for(let i in t){let a=i.charAt(0);if(!O9.has(a))continue;let c=t[i];if(!c||typeof c!="object")continue;let l=i.slice(1);for(let f in c){if(n&&f in n)continue;if(f==="aria"&&c[f]&&typeof c[f]=="object"){for(let g in c[f])s("aria-"+g,c[f][g],a,l);continue}if(f==="data"&&c[f]&&typeof c[f]=="object"){for(let g in c[f]){let h=g.replace(/([A-Z])/g,m=>"-"+m.toLowerCase());s("data-"+h,c[f][g],a,l)}continue}let u=bn(e,f),d=yE(f);if(!u&&!d)continue;let p=Hr(f)||f;s(p,c[f],a,l)}}return o};var Mm="3.14.817";var LD="__SMBLS_ELEMENT_ID_ENGINE__",DD=(t,e,n)=>{let r=e||Mm,o=n||(typeof globalThis<"u"?globalThis:null);if(!o)return t;let s=o[LD];return s&&s.engine&&s.version===r?s.engine:(s||(o[LD]={version:r,engine:t}),t)};var R9=new Set(["rows","cols","wrap","fill","stroke","offset"]),Nm=(t,e)=>R9.has(e)&&bn(t,e),Fo=(t,e)=>!!(xt[e]||Bt&&Bt.has(e))&&!Nm(t,e);var pI=DD({uniqId:1,scopedStyleId:0},Mm),Ac=[],Bo=new Set,FE=!1,hI=0,Oc=null,pd=null;function Lc(){return typeof Date<"u"&&typeof Date.now=="function"?Date.now():0}function gI(){return typeof document<"u"&&document.visibilityState==="hidden"}var P9=250,L9=1e3;function D9(){return pd&&(pd!==(typeof requestAnimationFrame=="function"?requestAnimationFrame:null)||gI())?!0:Lc()-hI>=L9}function I9(){if(FE=!0,hI=Lc(),pd=null,typeof requestAnimationFrame!="function"){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(Rc,0);Oc=t?()=>t(e):null;return}if(gI()){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(Rc,P9);Oc=t?()=>t(e):null}else{let t=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:null;pd=requestAnimationFrame;let e=requestAnimationFrame(Rc);Oc=t?()=>t(e):null}}function wd(){if(FE){if(!D9())return;let t=Oc;if(Oc=null,t)try{t()}catch{}}I9()}var mI=300,yI=15e4,PE=0;function ui(){PE++;let t=!1;return()=>{t||(t=!0,!(--PE>0)&&(Ac.length||Bo.size)&&wd())}}function Rc(){if(FE=!1,Oc=null,pd=null,PE>0||(!globalThis.__SMBLS_BUILD_DROP_F_autoGrow__&&Bo.size&&BW(),!Ac.length))return;let t=Ac.splice(0,Ac.length);for(let e=0;e<t.length;e++){let n=t[e];if(n.node){if(!n.node.isConnected){let r=n.__ref||(n.__ref={});r.__mountAttempts=(r.__mountAttempts||0)+1,r.__mountFirstAttemptAt==null&&(r.__mountFirstAttemptAt=Lc());let o=Lc()-r.__mountFirstAttemptAt;r.__mountAttempts<=mI&&o<yI?(Ac.push(n),wd()):console.warn("[DOMQL] onMounted dropped after",r.__mountAttempts,"attempts /",o,"ms \u2014 node never connected:",n.key||n.tag||n);continue}typeof n.onBridgeMount=="function"&&uD(n),typeof n.onMounted=="function"&&Qt("Mounted",n,n.__ref?.__mountOptions||{})}}}function LE(t,e){let n=!globalThis.__SMBLS_BUILD_DROP_F_autoGrow__&&t.__ref?.__autoGrow;n&&n.active&&_d(t,!0),!(typeof t.onMounted!="function"&&typeof t.onBridgeMount!="function")&&(t.__ref.__mountOptions=e,Ac.push(t),wd())}function Fm(t,e){typeof t.onContentUpdate=="function"&&(ar("contentUpdate",t,e),gn(t,()=>{try{t.onContentUpdate(t,t.state,t.context,e)}catch(n){if(mn(t,"onContentUpdate",n),t.context?.strictMode)throw n}}))}function M9(t){return t.toLowerCase()}function bI(t){let e=t.charCodeAt(0);return e===58||e===64||e===38||e===91}function Bm(t){if(typeof t=="string")return t||void 0;if(typeof t=="number"||typeof t=="bigint")return String(t)}function _I(t,e,n,r){return Hm(r,Bm(t)||(e&&typeof e=="object"?Bm(e.key):void 0)||String(n))}function Hm(t,e){if(!t||typeof e!="string")return e;let n=e;for(;N9(t,n);)n="$"+n;return n!==e&&$9(t,e,n),n}function N9(t,e){if(Yt.has(e)&&e!=="content")return!0;if(!(e in t))return!1;let n=t[e];return!(n&&typeof n=="object"&&n.__ref&&n.parent===t)}var ID=new Set;function $9(t,e,n){if(!nt())return;let r=t.__ref&&t.__ref.path&&t.__ref.path.join(".")||t.key||"<root>",o=r+"::"+e;ID.has(o)||(ID.add(o),console.warn(`[smbls] a child keyed "${e}" at ${r} names a property of its parent; it lives at el["${n}"] (data-key="${n}") so the parent keeps its own "${e}". Prefix the data keys to keep plain el.<key> access.`))}function Xt(t,e,n,r={},o){if($e())return Te(()=>Xt(t,e,n,r,o));if(t==null||t===!1)return null;let s=oW(t);(typeof t=="string"||typeof t=="number")&&(t={text:t}),n=Bm(n);let i=Bm(t.key),a=Object.create(null);a.key=n||(i&&e?Hm(e,i):i)||`_${pI.uniqId++}`,a.parent=e||null,a.context=t.context||e?.context||r.context||{},a.context.__create||(a.context.__create=Xt);let c=a.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||a,path:e?.__ref?.path?[...e.__ref.path,a.key]:[a.key],origin:t,__mount:null,__plainRows:null,__ifParked:null};s&&(c.__runtimeSource=s);let l=o;o&&(o.holdTail||o.deferAttach)&&(o.holdTail&&st.mount!==null&&st.mount.hold(a),o.deferAttach&&(wc(c).attachLater=!0),l=void 0);let f=t;if(t=SI(a,t,n,i,e,r),a.if!=null){let g;if(typeof a.if=="function")try{g=a.if(a,a.state,a.context)}catch(h){if(g=!1,c.__ifError=h,typeof console<"u"&&console.warn){let m=a.key||a.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${m} \u2014 treating as false:`,h?.message||h)}}else g=a.if;c.__if=!!g}if(c.__if)typeof a.if=="function"&&(c.__ifInitialized=!0);else{if(e){e[a.key]=a;let h=e.__ref;h&&(h.__ifParked||(h.__ifParked=new Set)).add(a.key)}let g=V9(t,n,a.context?.components);return g.length&&(c.__ifLateMerge={definition:f,key:n,ownKey:i,names:g,options:r}),typeof a.if=="function"&&OI(a,c,a.if),a}a.tag||(a.tag=ir(a)),Qt("Init",a,r);let u=st.hydration,d=a.node=u!==null&&u.adopt(a)||Mo(a);if(!d)return a;if(a.tag==="fragment"){let h=(a.context?.document||globalThis.document).createComment("");d.appendChild(h),c.__fragmentAnchor=h}if(Qt("AttachNode",a,r),d.setAttribute&&a.key&&d.getAttribute("data-key")!==String(a.key)&&d.setAttribute("data-key",a.key),e){let g=e[a.key];e[a.key]=a;let h=e.__ref?.__children;h&&(g===void 0||!h.includes(a.key))&&h.push(a.key)}d.setAttribute&&a.context?.scopeSelector&&a.context.scopeSelector!==":root"&&a.context.key&&a.key===a.context.key&&d.setAttribute("data-smbls-app",a.context.key),a.id&&d.setAttribute&&(d.id=a.id),YI(a,r),TI(a),CI(a);try{ZI(a,r)}catch(g){Wm(a,g)}let p=c.__mount;return p!==null&&p.pending>0?(p.attachLater||(r.mountWhole===!0&&!(o&&o.holdTail)&&F9(a,e)?p.held=!0:Dc(a,e,l)),p.tail=()=>st.mount.finish(a,r),a):(Pc(a,!0),(p===null||!p.attachLater)&&Dc(a,e,l),BE(a,r),a)}function Vo(t){let e=t&&t.__ref&&t.__ref.__mount;return!e||!e.attachLater||(e.attachLater=!1,!t.node)?!1:(Dc(t,t.parent),!0)}function F9(t,e){if(!e||e.tag==="fragment")return!1;let n=t.node;if(!n||n.nodeType===11)return!1;let r=e.node||(e.nodeType?e:null);return!!r&&n.parentNode!==r}function wI(t){let e=t.__ref,n=e&&e.__mount;if(!n||!n.held)return;n.held=!1;let r=t.node,o=t.parent;if(!r||!o)return;let s=o.__ref;if(!s){Dc(t,o);return}let i=o.node;if(!i)return;let a=s.__children,c=a?a.lastIndexOf(t.key):-1,l;for(let f=c-1;f>=0;f--){let u=o[a[f]],d=u&&(Wr(u)||(u.tag==="fragment"&&u.__ref?u.__ref.__fragmentAnchor:null));if(d&&d.parentNode===i){l=d.nextSibling;break}}l===void 0&&(l=ad(i,s.__textNode)),Dc(t,o,l?{position:"before",node:l}:void 0)}function Wm(t,e){if(typeof console<"u"&&console.error){let n=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] createChildren failed at ${n}:`,e?.message||e,e?.stack?`
58
58
  `+e.stack.split(`
59
59
  `).slice(0,6).join(`
60
- `):"")}}function vE(t,e){if(typeof t.html=="function"&&t.node&&!t.node.innerHTML&&un(t,()=>{try{let n=t.html(t,t.state,t.context);n!=null&&typeof n!="function"&&(t.node.innerHTML=n)}catch{}}),Jt("Create",t,e),Jt("Complete",t,e),Jt("Render",t,e),Jt("RenderRouter",t,e),bE(t,e),typeof t.onFrame=="function"){let n=t.onFrame,r=t.context?.designSystem,o=()=>{if(t.node){if(t.node.isConnected){r&&mt(r);try{n(t,t.state,t.context)}catch(s){console.error("[DOMQL] onFrame error:",s)}finally{r&&ht()}}requestAnimationFrame(o)}};requestAnimationFrame(o)}}function Pm(t,e){let n=e&&e.__ref&&e.__ref.__mount;!n||!n.tail||n.holder||(n.holder=t,ct.mount.hold(t))}var r9=new Set(["childProps","attr","style","scope","data","vars"]);function JD(t,e,n,r,o,s){if(n&&!e.extends&&!e.extend){let h=n.indexOf("_"),m=n.indexOf("."),y=h>0?h:-1;if(m>0&&(y<0||m<y)&&(y=m),y>0){let x=n.substring(0,y),k=t.context?.components;k&&(k[x]||k["smbls."+x])?e={...e,extends:x}:k&&tt()&&(/^[A-Z]\w*_\d+$/.test(n)||/^[A-Z]\w*\.\w+$/.test(n))&&console.warn(`[smbls] auto-extend: key "${n}" looks like an instance of "${x}" but neither "${x}" nor "smbls.${x}" is registered in context.components \u2014 element will render as a plain <div>. Register the base component or rename the key.`)}}t.__ref&&(t.__ref.__mergeLayer=null),lc(t,e,s);let i=Vk(t),a=t.props&&typeof t.props=="object"?t.props:null;for(let h in e)if(!(h==="parent"||h==="node"||h==="__ref"||h==="extends"||h==="context"||h==="props")){if(h==="key"){r&&(t.key=o?Mm(o,r):r);continue}i&&i.mark(h),iE(t,h,e[h])}if(a)for(let h in a)iE(t,h,a[h]);let c=e.props;if(c&&typeof c=="object"){for(let h in c)iE(t,h,c[h]);if(i)for(let h in c)i.mark(h)}ML(t),e.classlist!==void 0&&(t.classlist=e.classlist),e.text!==void 0&&(t.text=e.text),e.html!==void 0&&(t.html=e.html);let l=t.scope&&typeof t.scope=="object"?t.scope:null,f=o?.scope,u=t.context&&typeof t.context.globalScope=="object"&&t.context.globalScope||null,d=f||u||null;if(e.scope!==void 0||l){let h={};l&&Object.assign(h,l),e.scope!==void 0&&Object.assign(h,e.scope),t.scope=Lp(h,d)}else d&&(t.scope=d);e.if!==void 0&&(t.if=e.if);let p=t.__ref,g=k9(t,p&&p.__runtimeSource);return p&&(p.__declaredArrays=g||void 0),mc(t),a9(t,o,e,s),e}function iE(t,e,n){let r=t[e],o=ct.chains;if(o!==null&&o(t,e,r,n))return;let s=r&&n&&typeof r=="object"&&typeof n=="object"&&!Array.isArray(r)&&!Array.isArray(n);s&&e.charCodeAt(0)>=65&&e.charCodeAt(0)<=90?t[e]=ze(r,n):s&&r9.has(e)?t[e]={...r,...n}:s&&YD(e)?t[e]=ze(r,n):t[e]=n}var o9=new Set(["key","parent","context","__ref"]);function s9(t,e){for(let r of Object.keys(t))o9.has(r)||delete t[r];let n=e.definition;if(!n.extends&&!n.extend&&typeof e.key=="string"){let r=t.context?.components||{},o=r[e.key]||r["smbls."+e.key];o&&(n={...n,extends:o})}ve(()=>JD(t,n,e.key,e.ownKey,t.parent,e.options))}function i9(t,e,n){let r=n||{},o=a=>!!(r[a]||r["smbls."+a]),s=[],i=[];if(t.extends&&i.push(...Array.isArray(t.extends)?t.extends:[t.extends]),t.extend&&i.push(...Array.isArray(t.extend)?t.extend:[t.extend]),i.length){for(let a of i){if(typeof a!="string")continue;let c=a.includes(">")?a.split(">")[0].trim():a;o(c)||s.push(c)}return s}if(typeof e=="string"&&/^[A-Z]/.test(e)){let a=-1,c=e.indexOf("_"),l=e.indexOf(".");c>0&&(a=c),l>0&&(a<0||l<a)&&(a=l);let f=a>0?e.substring(0,a):e;o(f)||s.push(f)}return s}function aE(t,e,n){if(typeof t.onStateInit!="function"&&!zk(t,"stateInit"))return;let r=t.state;t.state=e;try{Jt("StateInit",t,n)}finally{t.state=r}}var cE=t=>({isDataOnlyKey:e=>ao(t).has(e)});function a9(t,e,n,r){let o=!e,s=n.state&&typeof n.state=="object"&&!Array.isArray(n.state)&&Object.keys(n.state).length===0,i=o&&s&&t.context?.state,a=n.state!==void 0&&!i?n.state:t.state&&!Et(t.state)?t.state:void 0;if(a==null){if(e?.state)t.state=e.state,Ae(t,t.state);else if(t.context?.state){let c=t.context.state,l={...c},f=t.context?.polyglot;if(f?.translations){let u=t.context,d=c.lang||f.defaultLang||"en",p=new Set,g=(y,x)=>{p.has(y)||us(u,y,l)&&(l[y]=x,p.add(y),Kn(u,y,x))},h=f.translations[d];if(h&&typeof h=="object")for(let y in h)g(y,h[y]);let m=new Set(vn(f,!1));for(let y in f.translations)m.has(y)||g(y,f.translations[y])}Et(l)||aE(t,l,r),t.state=Et(l)?l:ur(l,cE(t.context)),t.state.__element=t,t.state.root=t.state,Ae(t,t.state),ma?.(c,t.state),Jt("StateCreated",t,r)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),Ae(t,t.state);return}if(typeof a=="string"){if(t.state=tI(a,e),t.state&&typeof t.state=="object"&&!Et(t.state)){let c=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:c,enumerable:!1,configurable:!0,writable:!0})}Ae(t,t.state),l9(t,a,e),Jt("StateCreated",t,r);return}if(typeof a=="function"){let c=a(t,e?.state);if(Et(c))t.state=c;else{let l=c||{};aE(t,l,r),t.state=ur(l,e?.state?void 0:cE(t.context))}}else if(Et(a))t.state=a;else{let c={...a};aE(t,c,r),t.state=ur(c,e?.state?void 0:cE(t.context))}t.state.__element=t,e?.state?(t.state.parent=e.state,t.state.root=e.state.root||e.state):t.state.root=t.state,Ae(t,t.state),ma?.(a,t.state),Jt("StateCreated",t,r)}function dD(t,e){if(!e)return t;let n=e.split("/"),r=t;for(let o of n){if(r==null)return{};r=r[o]}return r??{}}function QD(t,e){let n=e.state;return t.startsWith("~/")?[n&&(n.root||n),t.slice(2)]:t.startsWith("../")?[n,t.slice(3)]:[n,t]}function tI(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")||t.startsWith("~/")){let[o,s]=QD(t,e);return s?dD(o,s):o??{}}if(e.state?.[t]!==void 0)return e.state[t];let n=dD(e.state,t);if(n!=null&&Object.keys(n).length>0)return n;let r=e.context?.polyglot;if(r?.translations){let o=e.state?.root?.lang||r.defaultLang||"en",s=r.translations[o];if(s?.[t]!==void 0)return s[t];if(r.translations[t]!==void 0)return r.translations[t]}return{}}function c9(t,e){let[n,r]=QD(t,e);if(!r||!n||typeof n!="object")return;let o=n[r];if(o!==void 0||r.indexOf("/")===-1)return o;let s=n;for(let i of r.split("/")){if(s==null||typeof s!="object")return;s=s[i]}return s}function l9(t,e,n){let r=t.__ref;if(!r||!n||e==="."||!Et(n.state))return;r.__stateBinding&&r.__stateBinding.dispose();let o=ve(()=>K(()=>{let s=c9(e,n);!s||typeof s!="object"||s===t.state||ve(()=>eI(t,t.state,s,!0))},{depth:r.path?r.path.length:0,label:_t(r,"state")}));o._isStateBinding=!0,r.__stateBinding=o,r.__effects&&r.__effects.push(o)}function eI(t,e,n,r){let o=t.__ref;if(!o)return;if(r||t.state===e){t.state=n,r&&Ae(t,n),hD(o);let i=o.__children;if(i)for(let a=0;a<i.length;a++){let c=t[i[a]];c&&c.__ref&&c.parent===t&&eI(c,e,n,!1)}return}if(o.__stateBinding){o.__stateBinding._notify();return}let s=t.state;s&&typeof s=="object"&&s.parent===e&&(s.parent=n,hD(o))}function pD(t,e){let n=t.__ifParked;if(!n||!n.size)return e;for(let r of n)e.includes(r)||e.push(r);return e}function hD(t){let e=t.__effects;if(e)for(let n=0;n<e.length;n++){let r=e[n];r&&!r._disposed&&!r._isStateBinding&&!r._isSubscribeToEffect&&typeof r._notify=="function"&&r._notify()}}var f9=new Set(["s","state","ctx","context"]),lE=new WeakMap;function u9(t){if(lE.has(t))return lE.get(t);let e=null;try{let n=typeof Ne=="function"?Ne(t):Function.prototype.toString.call(t);if(typeof n=="string"){let r=n.match(/^\s*(?:async\s+)?([A-Za-z_$][\w$]*)\s*=>/)||n.match(/^[^(]*\(([^)]*)\)/);r&&(e={params:r[1].split(",").map(o=>o.trim())})}}catch{}return lE.set(t,e),e}function d9(t){let e=u9(t);return e?e.params.map(n=>n.split("=")[0].trim()).filter(Boolean):[]}var p9=3,h9=/^(is|has)[A-Z0-9_$]/,g9=new Set(["routerOptions"]),gD=new WeakSet;function m9(t,e){if(typeof t!="function"||t.length!==2||e&&(h9.test(e)||g9.has(e))||gD.has(t))return!1;let n=d9(t);if(n.length<2)return!1;let r=n[1].replace(/[{}[\]]/g,"").trim();return r.length<p9||f9.has(r)?!1:(gD.add(t),!0)}function y9(t){let e=t.__ref,n=t.tag||"div",r=t.context?.designSystem,o=[],s=Object.keys(t);for(let i=0;i<s.length;i++){let a=s[i];if(typeof t[a]!="function"||Gt.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||fn(a)||xt[a]||Bt&&Bt.has(a)||c!==45&&(hn(n,a)||(tt()&&m9(t[a],a)&&console.warn(`[smbls] custom prop "${a}"${t.key?` on key "${t.key}"`:""} is a function \u2014 it will be auto-invoked on read and its RETURN VALUE stored, not preserved as a callable reference. If you meant to stash a callback, use el.call('${a}', \u2026) instead of reading el.${a}(\u2026) directly (see RULES.md Rule 8).`),o.push({prop:a,fn:t[a]})))}for(let i=0;i<o.length;i++){let{prop:a,fn:c}=o[i];e.__exec[a]=c,Object.defineProperty(t,a,{get(){r&&mt(r);try{return c(t,t.state,t.context)}catch{return}finally{r&&ht()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function b9(t,e){if(!(!Array.isArray(e)||e.length===0))for(let n=0;n<e.length;n++){let r=e[n];try{typeof r=="function"?r(t,t.state,t.context):typeof r=="string"&&t.state?.[r]}catch{}}}function zt(t,e,n){return!Array.isArray(e)||e.length===0?n:function(...r){return b9(t,e),n.apply(this,r)}}function bc(t,e){if(!(!t||Array.isArray(t)||typeof t!="object"))return t[e]}function _t(t,e){return()=>t.path.join(".")+"::"+e}var mD=new Set;function ne(t,e,n){if(!tt())return;let r=_t(t,e)();mD.has(r)||(mD.add(r),console.warn(`[smbls] "${e}" effect threw on ${t.path.join(".")} \u2014 keeping previous value:`,n?.message||n))}var yD=/(['"`])((?:\\.|(?!\1)[^\\])*)\1/g,bD=new WeakMap,_9=t=>{let e=bD.get(t);if(e!==void 0)return e;e=null;let n;try{n=String(t)}catch{n=""}if(n.includes("{{")){yD.lastIndex=0;let r;for(;(r=yD.exec(n))!==null;)r[2].includes("{{")&&(e||(e=[])).push(r[2])}return bD.set(t,e),e},w9=(t,e)=>{let n=_9(t);if(n)for(let r=0;r<n.length;r++)e.add(n[r])},S9=(t,e)=>!fn(t)&&!Lo(e,t),fE=(t,e,n,r,o)=>{if(typeof e=="string"){!o&&e.includes("{{")&&n.add(e);return}typeof e=="function"&&S9(t,r)&&w9(e,n)},_E=new WeakMap,id=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),ad=t=>{if(typeof t=="string"||typeof t=="number")return{text:t};if(!t||typeof t!="object"||Array.isArray(t))return null;let e=t.props;return e&&typeof e=="object"&&!Array.isArray(e)?ze(t,e):t},cd=(t,e)=>t&&e?ze(t,e):t||e||null,nI=(t,e)=>{let n=t.__ref&&t.__ref.__runtimeSource;return!!n&&id(n,e)},Io=(t,e)=>nI(t,e)?ad(t.__ref.__runtimeSource[e]):null,si=(t,e)=>(e&&t&&typeof t=="object"&&_E.set(t,e),t),x9=t=>{if(!t||typeof t!="object")return;let e=_E.get(t);return e&&_E.delete(t),e},wE=(t,e,n)=>{if(typeof t=="string"){t.includes("{{")&&e.add(t);return}if(!(!t||typeof t!="object"||n.has(t))){if(n.add(t),Array.isArray(t)){for(let r=0;r<t.length;r++)wE(t[r],e,n);return}if(!t.__ref)for(let r of Object.keys(t)){if(r==="state")continue;let o=Object.getOwnPropertyDescriptor(t,r);o&&"value"in o&&wE(o.value,e,n)}}},k9=(t,e)=>{let n=null;for(let r of Object.keys(t)){if(Gt.has(r)||e&&id(e,r))continue;let o=Object.getOwnPropertyDescriptor(t,r),s=o&&o.value;if(!Array.isArray(s))continue;let i=new Set;wE(s,i,new Set),i.size&&(n||(n=new Map),n.set(s,i))}return n},_D=(t,e)=>{if(Array.isArray(e))for(let n=t;n;n=n.parent){let r=n.__ref&&n.__ref.__declaredArrays,o=r&&r.get(e);if(!o)continue;let s=t.__ref;s.__authoredTemplates||(s.__authoredTemplates=new Set);for(let i of o)s.__authoredTemplates.add(i);return}},rI=["attr","aria","data","metadata"],E9=t=>{if(rI.includes(t))return!0;let e=t.charCodeAt(0);return e===46||e===33||e===64},v9=(t,e)=>{let n=new Set,r=t.tag||"div";for(let o of Object.keys(t)){let s=Object.getOwnPropertyDescriptor(t,o),i=s&&s.value,a=!!e&&id(e,o);if(i&&typeof i=="object"&&!Array.isArray(i)){if(!E9(o))continue;let c=a?e[o]:null,l=c&&typeof c=="object"?c:null,f=o.charCodeAt(0)===46||o.charCodeAt(0)===33;for(let u in i){let d=a&&(!l||id(l,u)),p=i[u];if(f&&p&&typeof p=="object"&&!Array.isArray(p)&&rI.includes(u)){for(let g in p)fE(g,p[g],n,r,d);continue}fE(u,p,n,r,d)}continue}fE(o,i,n,r,a)}return n};function oI(t,e){let n=t.__ref,r=!!(e&&e.skipIfEffect),o=v9(t,n.__runtimeSource);if(n.__authoredTemplates)for(let c of o)n.__authoredTemplates.add(c);else n.__authoredTemplates=o;if(y9(t),typeof t.text=="function"){let c=t.text,l=zt(t,t.textDeps,c),f=()=>{let d=l(t,t.state,t.context);return t.node&&typeof d=="string"&&d.includes("{{")&&(d=Zt.call(t,d,t.state)),d},u=K(()=>{if(!n.contentManaged)try{let d=SD(t,n,f);if(d===Ce)return;t.node&&d!=null&&typeof d!="function"&&typeof d!="object"&&ei(t,d)}catch(d){ne(n,"text",d)}},{depth:n.path.length,label:_t(n,"text")});n.__effects.push(u),n.__exec.text=c}else if(typeof t.text=="string"&&t.text.includes("{{")){let c=t.text,l=()=>Zt.call(t,c,t.state),f=K(()=>{if(n.contentManaged)return;let u=SD(t,n,l);u!==Ce&&(u!=null&&(t.text=u),t.node&&ei(t,u??""))},{depth:n.path.length,label:_t(n,"text")});n.__effects.push(f),n.__exec.text=c}let s=t.tag||"div";for(let c of Object.keys(t))if(typeof t[c]=="function"&&!Gt.has(c)&&!fn(c)&&!n.__exec[c]&&!Cm(s,c)){if(xt[c]){let l=t[c],f=zt(t,t[c+"Deps"],l),u=c,d,p=null,g=null,h,m=()=>{for(let k of g)t.node.classList.remove(k);g=null,h=void 0},y=()=>{fI(t,u,p,null),Tm(t,u,null),p=null},x=K(()=>{let k=t.context?.designSystem;k&&mt(k);try{let C=f(t,t.state,t.context);mm();let _;try{_=xt[u](C,t,t.state,t.context)}finally{ym()}if(Array.isArray(_)){let b={};for(let w of _)if(w)for(let S in w)b[S]=w[S];_=b}if(u==="show"||u==="hide"){t.node&&Dm(t,u,!!(_&&_.display),!0);return}if(_&&t.node&&T9(_)){let b=wc(_);if(b===null||b!==h){h=b;let w=Ve(_,null,t.context?.cssPrefix),S=w?w.split(" ").filter(Boolean):null;if(t.node.classList){if(g)for(let A of g)t.node.classList.remove(A);if(S&&S.length)for(let A of S)t.node.classList.add(A);g=S}}p&&y(),d=void 0}else if(_&&t.node){g&&m();let b=wc(_);if(b===null||b!==d||!Sc(t.node,p,t)){d=b;let w=kD(t,_,p,u);p=od(t.node,w,t),Tm(t,u,p)}}else t.node&&(g&&m(),p&&y(),d=void 0)}finally{k&&ht()}},{depth:n.path.length,label:_t(n,u)});n.__effects.push(x),n.__exec[c]=l}else if(Bt&&Bt.has(c)){let l=t[c],f=zt(t,t[c+"Deps"],l),u=c,d,p=null,g=K(()=>{let h=t.context?.designSystem;h&&mt(h);try{let m=f(t,t.state,t.context);if(t.node)if(m!=null){let y=u+":"+String(m);if(y!==d||!Sc(t.node,p,t)){d=y;let x={[u]:m},k=kD(t,x);p=od(t.node,k,t),Tm(t,u,p)}}else d=void 0,p=null,Tm(t,u,null),u==="display"?pd(t,""):t.node.style[u]=""}finally{h&&ht()}},{depth:n.path.length,label:_t(n,u)});n.__effects.push(g),n.__exec[c]=l}else if(c.charCodeAt(0)===45){let l=t[c];dI(t,c,l,t[c+"Deps"],c),n.__exec[c]=l}}if(P9(t),typeof t.html=="function"){let c=t.html,l=zt(t,t.htmlDeps,c),f=K(()=>{un(t,()=>{let u=l(t,t.state,t.context);t.node&&u!=null&&typeof u!="function"&&(t.node.innerHTML=u)})},{depth:n.path.length,label:_t(n,"html")});n.__effects.push(f),n.__exec.html=c}if(typeof t.value=="function"){let c=t.value,l=zt(t,t.valueDeps,c),f=()=>{let d=l(t,t.state,t.context);return typeof d=="string"&&d.includes("{{")&&(d=Zt.call(t,d,t.state)),d},u=K(()=>{try{let d=or(t,n,"value",f);if(d===Ce)return;xD(t,d)}catch(d){ne(n,"value",d)}},{depth:n.path.length,label:_t(n,"value")});n.__effects.push(u),n.__exec.value=c}else if(typeof t.value=="string"&&t.value.includes("{{")){let c=t.value,l=()=>Zt.call(t,c,t.state),f=K(()=>{try{let u=or(t,n,"value",l);if(u===Ce)return;xD(t,u)}catch(u){ne(n,"value",u)}},{depth:n.path.length,label:_t(n,"value")});n.__effects.push(f),n.__exec.value=c}if(typeof t.style=="function"){let c=t.style,l=zt(t,t.styleDeps,c),f,u=null,d,p,g,h,m=K(()=>{let y=l(t,t.state,t.context),x=t.context&&t.context.designSystem,k;if(y&&typeof y=="object"&&y===d&&x===g){let _=wc(y);k=_!==null&&_===p?h:ri(t,y),p=_}else k=ri(t,y),p=void 0;d=y,g=x,h=k;let C=wc(k);(C===null||C!==f||!Sc(t.node,u,t))&&(f=C,SE(t.node,u,k,t),ir(t.node,k,t),u=od(t.node,k,t))},{depth:n.path.length,label:_t(n,"style")});n.__effects.push(m),n.__exec.style=c}else if(t.style&&typeof t.style=="object")for(let c in t.style){let l=t.style[c];if(typeof l!="function")continue;let f=zt(t,bc(t.styleDeps,c),l),u,d=null,p=K(()=>{try{let g=f(t,t.state,t.context);if(t.node){let h=c+":"+String(g);if(h!==u||!Sc(t.node,d,t)){u=h;let m=ri(t,{[c]:g});SE(t.node,d,Object.assign({},m,{[c]:""}),t),ir(t.node,m,t),d=od(t.node,m,t)}}}catch(g){ne(n,"style."+c,g)}},{depth:n.path.length,label:_t(n,"style."+c)});n.__effects.push(p)}if(t.attr&&typeof t.attr=="object"){for(let c in t.attr)if(typeof t.attr[c]=="function"){let l=zt(t,bc(t.attrDeps,c),t.attr[c]),f=c,u=f.toLowerCase(),d=()=>{let g=l(t,t.state,t.context);return typeof g=="string"&&g.includes("{{")&&(g=Zt.call(t,g,t.state)),g},p=K(()=>{try{let g=or(t,n,u,d);if(g===Ce)return;t.node?.setAttribute&&ni(t.node,f,g)}catch(g){ne(n,"attr."+f,g)}},{depth:n.path.length,label:_t(n,"attr."+f)});p._attrName=f.toLowerCase(),n.__effects.push(p)}else if(typeof t.attr[c]=="string"&&t.attr[c].includes("{{")){let l=t.attr[c],f=c,u=f.toLowerCase(),d=()=>Zt.call(t,l,t.state),p=K(()=>{try{let g=or(t,n,u,d);if(g===Ce||!t.node||!t.node.setAttribute)return;t.node.setAttribute(f,rr(f,g??""))}catch(g){ne(n,"attr."+f,g)}},{depth:n.path.length,label:_t(n,"attr."+f)});p._attrName=f.toLowerCase(),n.__effects.push(p)}}if(t.aria&&typeof t.aria=="object")for(let c in t.aria){let l=t.aria[c];if(typeof l=="string"&&l.includes("{{")){let g=l,h="aria-"+c.replace(/[A-Z]/g,x=>"-"+x.toLowerCase()),m=()=>Zt.call(t,g,t.state),y=K(()=>{try{let x=or(t,n,h,m);if(x===Ce||!t.node||!t.node.setAttribute)return;t.node.setAttribute(h,rr(h,x??""))}catch(x){ne(n,"aria."+c,x)}},{depth:n.path.length,label:_t(n,"aria."+c)});y._attrName=h,n.__effects.push(y);continue}if(typeof l!="function")continue;let f=zt(t,bc(t.ariaDeps,c),t.aria[c]),u="aria-"+c.replace(/[A-Z]/g,g=>"-"+g.toLowerCase()),d=()=>f(t,t.state,t.context),p=K(()=>{try{let g=or(t,n,u,d);if(g===Ce||!t.node?.setAttribute)return;ni(t.node,u,g)}catch(g){ne(n,"aria."+c,g)}},{depth:n.path.length,label:_t(n,"aria."+c)});p._attrName=u,n.__effects.push(p)}if(t.data&&typeof t.data=="object")for(let c in t.data){let l=t.data[c];if(typeof l=="string"&&l.includes("{{")){let h=l,m="data-"+c.replace(/[A-Z]/g,k=>"-"+k.toLowerCase()),y=()=>Zt.call(t,h,t.state),x=K(()=>{try{let k=or(t,n,m,y);if(k===Ce||!t.node||!t.node.setAttribute)return;t.node.setAttribute(m,k??"")}catch(k){ne(n,"data."+c,k)}},{depth:n.path.length,label:_t(n,"data."+c)});x._attrName=m,n.__effects.push(x);continue}if(typeof l!="function")continue;let f=zt(t,bc(t.dataDeps,c),t.data[c]),d="data-"+c.replace(/[A-Z]/g,h=>"-"+h.toLowerCase()),p=()=>f(t,t.state,t.context),g=K(()=>{try{let h=or(t,n,d,p);if(h===Ce||!t.node?.setAttribute)return;h==null||h===!1?t.node.removeAttribute(d):typeof h!="function"&&typeof h!="object"&&t.node.setAttribute(d,h===!0?"":h)}catch(h){ne(n,"data."+c,h)}},{depth:n.path.length,label:_t(n,"data."+c)});g._attrName=d,n.__effects.push(g)}let i=t.classlist&&typeof t.classlist=="object"&&!Array.isArray(t.classlist)?t.classlist:t.class&&typeof t.class=="object"&&!Array.isArray(t.class)?t.class:null;if(i)for(let c in i){if(typeof i[c]!="function")continue;let l=zt(t,bc(t.classDeps,c),i[c]),f=K(()=>{try{let u=l(t,t.state,t.context);if(!t.node?.classList)return;typeof u=="string"?t.node.classList.add(u):u?t.node.classList.add(c):t.node.classList.remove(c)}catch(u){ne(n,"class."+c,u)}},{depth:n.path.length,label:_t(n,"class."+c)});n.__effects.push(f)}!r&&typeof t.if=="function"&&iI(t,n,t.if);for(let c of Object.keys(t)){if(Gt.has(c)||typeof t[c]!="function")continue;let l=c.charCodeAt(0);if(l>=65&&l<=90||fn(c))continue;let f=t[c];n.__exec[c]=f;let u=t.tag||"div";if(hn(u,c)&&!Lo(u,c)){let d=Br(c)||c,p=zt(t,t[c+"Deps"],f),g=d.toLowerCase(),h=()=>{let y=p(t,t.state,t.context);return typeof y=="string"&&y.includes("{{")&&(y=Zt.call(t,y,t.state)),y},m=K(()=>{try{let y=or(t,n,g,h);if(y===Ce)return;let x=Po[c];if(x&&y!=null){let k=x(t);k!==void 0&&(y=k)}t.node?.setAttribute&&ni(t.node,d,y,!0)}catch(y){ne(n,c,y)}},{depth:n.path.length,label:_t(n,c)});m._attrName=d.toLowerCase(),n.__effects.push(m)}}let a=t.tag||"div";for(let c of Object.keys(t)){if(Gt.has(c))continue;let l=t[c];if(typeof l!="string"||!l.includes("{{"))continue;let f=c.charCodeAt(0);if(f>=65&&f<=90||fn(c)||Lo(a,c)||Po[c]||!hn(a,c))continue;let u=Br(c)||c,d=u.toLowerCase(),p=()=>Zt.call(t,l,t.state),g=K(()=>{try{let h=or(t,n,d,p);if(h===Ce||!t.node||!t.node.setAttribute)return;t.node.setAttribute(u,rr(u,h??""))}catch(h){ne(n,c,h)}},{depth:n.path.length,label:_t(n,c)});g._attrName=u.toLowerCase(),n.__effects.push(g)}if(F9(t),Y9(t),typeof t.onStateUpdate=="function"&&Array.isArray(t.stateDeps)){let c=t.onStateUpdate,l=t.stateDeps,f=!1,u=[],d=K(()=>{let p=[];for(let m=0;m<l.length;m++){let y=l[m];try{p[m]=typeof y=="function"?y(t,t.state,t.context):t.state?.[y]}catch{p[m]=void 0}}if(!f){f=!0,u=p;return}let g=p.length!==u.length;for(let m=0;!g&&m<p.length;m++)p[m]!==u[m]&&(g=!0);let h=u;u=p,g&&un(t,()=>{try{c(t,t.state,t.context,{prev:h,next:p})}catch(m){if(dn(t,"onStateUpdate",m),t.context?.strictMode)throw m}})},{depth:n.path.length,label:_t(n,"onStateUpdate")});n.__effects.push(d)}z9(t)}function wD(t){let e=t.parent,n=e?.node;if(!n||!t.node){Ac(t,t.parent);return}let r=null,o=Object.keys(e),s=o.indexOf(t.key);for(let a=s+1;a<o.length;a++){let c=e[o[a]];if(c?.node?.parentNode===n){r=c.node;break}}t.node.parentNode===n&&t.node.nextSibling===r||(r?n.insertBefore(t.node,r):n.appendChild(t.node)),lm()}function sI(t){aI(t),eW(t),_I(t),pW(t),dW(t)}function iI(t,e,n){let r=zt(t,t.ifDeps,n),o=K(()=>{let s=!e.__ifInitialized&&e.__ifLateMerge;if(s){let c=t.context?.components||{};s.names.some(l=>c[l]||c["smbls."+l])&&(e.__ifLateMerge=null,s9(t,s),r=zt(t,t.ifDeps,typeof t.if=="function"?t.if:n))}let i;try{i=r(t,t.state,t.context)}catch(c){if(i=!1,e.__ifError=c,typeof console<"u"&&console.warn){let l=t.key||t.tag||"?";console.warn(`[smbls] \`if:\` reactive effect threw on ${l} \u2014 treating as false:`,c?.message||c)}return}let a=e.__if;if(e.__if=!!i,a&&!e.__if&&t.node){t.node.remove();try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(c){console.error("[smbls] onRemove error:",c)}}else if(!a&&e.__if)if(e.__ifInitialized)t.node||(t.node=Oo(t)),t.node&&(t.node.ref=t),wD(t),aI(t),_I(t),Jt("Render",t,{}),bE(t,{});else{e.__ifInitialized=!0,e.__ifLateMerge=null,t.tag||(t.tag=tr(t)),Jt("Init",t,{});let c=ct.hydration;if(t.node||(t.node=c!==null&&c.adopt(t)||Oo(t)),!t.node)return;if(t.parent?.__ref?.__children&&!t.parent.__ref.__children.includes(t.key)&&t.parent.__ref.__children.push(t.key),t.parent?.__ref?.__ifParked&&t.parent.__ref.__ifParked.delete(t.key),t.tag==="fragment"&&!e.__fragmentAnchor){let f=(t.context?.document||globalThis.document).createComment("");t.node.appendChild(f),e.__fragmentAnchor=f}Jt("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),vI(t,{}),oI(t,{skipIfEffect:!0}),sI(t),CI(t,{}),wD(t),Jt("Create",t,{}),Jt("Complete",t,{}),Jt("Render",t,{}),Jt("RenderRouter",t,{}),bE(t,{})}},{depth:e.path.length,label:_t(e,"if")});e.__effects.push(o)}var Ce=Symbol("builtTextKept");function SD(t,e,n){let r=e.__builtText;if(!r)return n();if(r.parentNode!==t.node||typeof uo!="function")return e.__builtText=null,n();let{value:o,ready:s}=uo(n);return s?o:Ce}function or(t,e,n,r){let o=e.__builtAttrs;if(!o||!o.values.has(n))return r();let s=t.node;if(s!==o.node||typeof uo!="function")return e.__builtAttrs=null,r();let{value:i,ready:a}=uo(r);return a?(o.values.delete(n),o.values.size||(e.__builtAttrs=null),i):(s.setAttribute(n,o.values.get(n)),Ce)}function ei(t,e){let n=t.node;if(!n)return;t.__ref&&t.__ref.__builtText&&(t.__ref.__builtText=null);let r=e==null||typeof e=="object"?"":String(e);if(t.tag==="string"){n.nodeValue!==r&&(n.nodeValue=r);return}let o=t.__ref,s=o?o.__textNode:null;if(s&&s.parentNode!==n&&(s=null),!s){let i=n.firstChild;i&&i.nodeType===3&&(s=i)}s?s.nodeValue!==r&&(s.nodeValue=r):n.firstChild?(s=(n.ownerDocument||t.context?.document||globalThis.document).createTextNode(r),n.insertBefore(s,n.firstChild)):(n.textContent=r,s=n.firstChild&&n.firstChild.nodeType===3?n.firstChild:null),o&&(o.__textNode=s||null)}function A9(t,e){return e!=="checked"||!t||t.tagName!=="INPUT"?null:t.hasAttribute("checked")}function C9(t,e){if(e===null)return;let n=t.hasAttribute("checked");n!==e&&t.checked!==n&&(t.checked=n)}function ni(t,e,n,r){n==null||n===!1&&!oi(e)?Lm(t,e,null):typeof n=="function"||typeof n=="object"||(r&&e==="src"&&"src"in t?t.src=n:Lm(t,e,rr(e,n)))}function Lm(t,e,n){let r=A9(t,e);n==null?t.removeAttribute(e):t.setAttribute(e,n),C9(t,r)}function xD(t,e){let n=t.node;if(!n||!("value"in n))return;let r=e==null?"":String(e);if(n.value===r)return;let o=n.ownerDocument,s=!!o&&o.activeElement===n,i=s&&typeof n.selectionStart=="number"?n.selectionStart:null,a=s&&typeof n.selectionEnd=="number"?n.selectionEnd:null;if(n.value=r,s&&i!=null&&a!=null)try{n.setSelectionRange(i,a)}catch{}let c=t.__ref&&t.__ref.__autoGrow;c&&c.active&&c.resize()}function aI(t){let{node:e}=t;if(e){if((typeof t.text=="string"&&!t.text.includes("{{")||typeof t.text=="number")&&ei(t,t.text),xI(t),typeof t.html=="string"&&(e.innerHTML=t.html),t.value!=null&&typeof t.value!="function"&&!(typeof t.value=="string"&&t.value.includes("{{"))&&"value"in e){let n=String(t.value);e.value!==n&&(e.value=n)}if(t.style&&typeof t.style=="object"){let n=t.style;for(let r in t.style)if(typeof t.style[r]=="function"){n={};for(let o in t.style)typeof t.style[o]!="function"&&(n[o]=t.style[o]);break}ir(e,ri(t,n),t)}if(t.attr&&typeof t.attr=="object")for(let n in t.attr){let r=t.attr[n];typeof r=="function"||typeof r=="object"||r!=null&&(typeof r=="string"&&r.includes("{{")||r===!1&&!oi(n)||e.setAttribute&&e.setAttribute(n,rr(n,r)))}if(typeof t.themeModifier=="string"&&t.themeModifier&&e.setAttribute&&e.setAttribute("data-theme",t.themeModifier),t.data&&typeof t.data=="object")for(let n in t.data){let r=t.data[n];typeof r=="function"||typeof r=="object"||r==null||r===!1||typeof r=="string"&&r.includes("{{")||e.dataset&&(e.dataset[n]=r===!0?"":r)}if(t.classlist||t.class){let n=t.classlist||t.class;if(typeof n=="string")n.split(" ").forEach(r=>r&&e.classList.add(r));else if(typeof n=="object")for(let r in n){let o=typeof n[r]=="function"?n[r](t,t.state,t.context):n[r];o&&e.classList.add(typeof o=="string"?o:r)}}}}function wc(t){if(t==null||typeof t!="object")return"s:"+String(t);try{return"o:"+JSON.stringify(t)}catch{return null}}function T9(t){if(!t||typeof t!="object")return!1;for(let e in t){let n=t[e];if(n&&typeof n=="object"&&!Array.isArray(n))return!0}return!1}function od(t,e,n){if(!t||!t.style||!e)return null;let r=t.style,o=[];for(let s in e){if(e[s]==null||s.charAt(0)==="&")continue;let a=sr(s);o.push(a,Cc(n,r,a),TE(n,r,a))}return o}function cI(t,e){return typeof t.getPropertyValue=="function"?t.getPropertyValue(e):""}function lI(t,e){return typeof t.getPropertyPriority=="function"?t.getPropertyPriority(e):""}function sr(t){return Nr(t)}function SE(t,e,n,r){if(!t||!t.style||!e||!e.length)return;let o=t.style,s=new Set;if(n&&typeof n=="object")for(let i in n)n[i]==null||i.charAt(0)==="&"||s.add(sr(i));for(let i=0;i<e.length;i+=3){let a=e[i];s.has(a)||Cc(r,o,a)===e[i+1]&&(r&&a==="display"?pd(r,""):typeof o.removeProperty=="function"&&o.removeProperty(a))}}function Tm(t,e,n){let r=t.__ref;r&&(n?(r.__heldInline||(r.__heldInline=new Map)).set(e,n):r.__heldInline&&r.__heldInline.delete(e))}function O9(t,e,n){if(t.__heldInline){for(let[r,o]of t.__heldInline)if(r!==e){for(let s=0;s<o.length;s+=3)if(o[s]===n)return!0}}return!1}function fI(t,e,n,r){let o=t.__ref,s=t.node;if(!o||!n||!s||!s.style)return;let i=o.__inlineCssKeys,a=null;for(let u=0;u<n.length;u+=3){let d=n[u];r&&r.has(d)||O9(o,e,d)||(a||(a=[]),a.push(u),i&&i.delete(d))}if(!a)return;let c=i&&AE(t,i),l=s.style,f=[];for(let u of a){let d=n[u];c&&c[d]!==void 0||Cc(t,l,d)===n[u+1]&&f.push(d)}for(let u of f)u==="display"?pd(t,""):typeof l.removeProperty=="function"&&l.removeProperty(u)}function R9(t,e,n){let r=[];for(let i=0;i<e.length;i+=3)r.push(e[i]);let o=!1;for(let i in n){let a=To[i];r.some(c=>a.includes(c))&&(o=!0,r.includes(i)||r.push(i))}if(!o)return;let s=t.node.style;e.length=0;for(let i of r)e.push(i,Cc(t,s,i),TE(t,s,i))}function Sc(t,e,n){if(!e||!t||!t.style)return!1;let r=t.style;for(let o=0;o<e.length;o+=3)if(Cc(n,r,e[o])!==e[o+1]||TE(n,r,e[o])!==e[o+2])return!1;return!0}var ld=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,uI=t=>typeof t=="number"||t===!0||typeof t=="string"&&t!=="",$m=t=>ld(t)?t:"--"+t;function Fm(t,e){if(!Mo(t))return null;let n=null;for(let r of Object.keys(t)){if(!r)continue;let o=t[r];if(typeof o=="function"){if(!e)continue;o=o(e,e.state,e.context)}uI(o)&&(n||(n={}),n[$m(r)]=o)}return n}function dI(t,e,n,r,o){pI(t,o,zt(t,r,n),s=>uI(s)?{[e]:s}:null)}function pI(t,e,n,r,o){let s=t.__ref,i,a=null,c=K(()=>{un(t,()=>{try{let l=r(n(t,t.state,t.context)),f=t.node;if(!f||!f.style)return;let u=wc(l);(u===null||u!==i||!Sc(f,a))&&(i=u,SE(f,a,l),l&&ir(f,l),a=l?od(f,l):null,o&&o(l))}catch(l){ne(s,e,l)}})},{depth:s.path.length,label:_t(s,e)});s.__effects.push(c)}function P9(t){let e=t.__ref,n=t.vars;if(typeof n=="function"){L9(t,n),e.__exec.vars=n;return}if(Mo(n))for(let r of Object.keys(n)){let o=n[r];!r||typeof o!="function"||dI(t,$m(r),o,bc(t.varsDeps,r),"vars."+r)}}function L9(t,e){let n=t.__ref;pI(t,"vars",zt(t,t.varsDeps,e),r=>Fm(r),r=>{n.__varsInline=r?new Set(Object.keys(r)):null})}function xE(t,e){if(typeof t[e]=="function"&&(Lo(t.tag||"div",e)||e.charCodeAt(0)===45))return!0;if(!ld(e))return!1;let n=t.vars;if(typeof n=="function"){let r=t.__ref&&t.__ref.__varsInline;return!!(r&&r.has(e))}if(!Mo(n))return!1;for(let r of Object.keys(n))if(typeof n[r]=="function"&&$m(r)===e)return!0;return!1}function D9(t){let e=null;for(let n in t)t[n]!=null&&n.charAt(0)!=="&"&&(e||(e=new Set),e.add(sr(n)));return e}function I9(t,e,n,r){let o=t.__ref;if(!o)return;let s=null;if(n)for(let i of n){if(r&&r.has(i))continue;let a=e[i];if(a==null||typeof a=="object")continue;let c=sr(i);To[c]&&(s||(s={}),s[c]=a)}o.__declaredLonghands=s}function AE(t,e){let n=t.__ref,r=n&&n.__declaredLonghands;if(!r||!e)return null;let o=null;for(let s in r){if(e.has(s))continue;let i=To[s],a=!1;for(let c=0;c<i.length;c++)if(e.has(i[c])){a=!0;break}a&&(o||(o={}),o[s]=r[s])}return o}function kD(t,e,n,r){let o=t.node,s=D9(e),i=s&&AE(t,s);if(n&&fI(t,r,n,i?new Set([...s,...Object.keys(i)]):s),ir(o,e,t),!s)return e;let a=t.__ref;if(a)if(a.__inlineCssKeys)for(let c of s)a.__inlineCssKeys.add(c);else a.__inlineCssKeys=new Set(s);return i?(ir(o,i),Object.assign({},e,i)):e}function M9(t){let e=t.__ref;if(!e||!e.__inlineCssKeys||!e.__declaredLonghands)return;let n=AE(t,e.__inlineCssKeys);if(!n)return;let r=[];if(e.__heldInline)for(let o of e.__heldInline.values())Sc(t.node,o,t)&&r.push(o);ir(t.node,n);for(let o of r)R9(t,o,n)}function ri(t,e){return!e||typeof e!="object"?e:un(t,()=>{try{return jk(e,t)}catch{return e}})}var hI="none",CE=t=>!!(t&&t.__hiddenBy&&t.__hiddenBy.size),ED=t=>cI(t,"display")===hI&&lI(t,"display")==="important";function gI(t,e){e?t.setProperty("display",e[0],e[1]):typeof t.removeProperty=="function"?t.removeProperty("display"):t.display=""}function Dm(t,e,n,r){let o=t.__ref,s=t.node;if(!o||!s||!s.style)return;let i=o.__hiddenBy,a=!!(i&&i.size);n?(i||(i=o.__hiddenBy=new Set),i.add(e)):i&&i.delete(e);let c=s.style;i&&i.size?ED(c)||c.setProperty("display",hI,"important"):(a||r&&ED(c))&&gI(c,o.__shownDisplay||null)}function pd(t,e,n){let r=t.__ref,o=e?[String(e),n||""]:null;r&&(r.__shownDisplay=o);let s=t.node;!s||!s.style||CE(r)||gI(s.style,o)}function Cc(t,e,n){let r=n==="display"&&t&&t.__ref;return CE(r)?r.__shownDisplay?r.__shownDisplay[0]:"":cI(e,n)}function TE(t,e,n){let r=n==="display"&&t&&t.__ref;return CE(r)?r.__shownDisplay?r.__shownDisplay[1]:"":lI(e,n)}function ir(t,e,n){if(!t||!e||!t.style)return;let r=null;for(let o in e){let s=e[o];if(s!=null){if(o.charAt(0)==="&"&&typeof s=="object"){r||(r={}),r[o]=s;continue}try{let i=String(s);if(typeof s=="object"&&i==="[object Object]")continue;let a=Nr(o),c=i.trim(),l=/\s*!important\s*$/.test(c),f=c.replace(/\s*!important\s*$/,"");if(n&&a==="display"){pd(n,f,l?"important":"");continue}t.style.setProperty(a,f,l?"important":"")}catch{}}}r&&N9(t,r)}function N9(t,e){let n=`_ds${HD.scopedStyleId++}`;t.classList.add(n);let r=t.ownerDocument,o=r.querySelector("style[data-smbls-scoped]");o||(o=r.createElement("style"),o.setAttribute("data-smbls-scoped",""),r.head.appendChild(o));let s="";for(let i in e){let a="."+n,c=Mr(i.replace(/&/g,a)).map(f=>f.includes(a)?f:a+f).join(", "),l=e[i];if(typeof l=="object"){let f="",u="";for(let d in l){let p=l[d];if(typeof p=="object"){let g=Mr(c),h=d.includes("&")?g.map(y=>d.replace(/&/g,y)).join(", "):g.map(y=>`${y} ${d}`).join(", "),m="";for(let y in p)m+=`${sr(y)}: ${p[y]};`;u+=Ir(`${h} { ${m} }`,h)+`
61
- `}else f+=`${sr(d)}: ${p};`}f&&(s+=Ir(`${c} { ${f} }`,c)+`
62
- `),u&&(s+=u)}}s&&(o.textContent+=s)}var vD=new Set;function AD(t){if(!Array.isArray(t))return"";let e=[];for(let n=0;n<t.length;n++)typeof t[n]=="string"&&t[n].length&&e.push(t[n]);return e.sort(),e.join("|")}function $9(t,e,n){let r=AD(n);queueMicrotask(()=>{if(!t.__ref)return;let o;try{o=e(t,t.state,t.context)}catch{return}if(AD(o)===r)return;let s=t.__ref.path?t.__ref.path.join("."):t.key||"?";vD.has(s)||(vD.add(s),console.warn(`[smbls] subscribeTo function at "${s}" resolved to a DIFFERENT key list one microtask after create \u2014 wired [${n.join(", ")||"(none)"}], probed [${Array.isArray(o)?o.join(", "):String(o)}]. subscribeTo's function form is resolved ONCE at element-create time (registerSubscribeToEffects, @symbo.ls/element core.js) \u2014 this element stays wired to the ORIGINAL list for its whole lifetime, so this drift is invisible to the reactive effect and any key only present in the new list will never trigger onUpdate. If the watched key genuinely is not known until later (e.g. a module config that loads after shell boot), route the write through an imperative call instead of subscribeTo \u2014 see functions/moduleOpenBridge.js's moduleOpenPage (workspace repo) for the house pattern.`))})}function F9(t){let e=t.subscribeTo,n=typeof e=="function",r=e;if(n)try{r=e(t,t.state,t.context)}catch{r=null}if(n&&tt()&&$9(t,e,Array.isArray(r)?r:[]),!Array.isArray(r)||r.length===0)return;let o=t.__ref;for(let s=0;s<r.length;s++){let i=r[s];if(typeof i!="string"||i.length===0)continue;let a=i.split("."),c=a[0],l=a.slice(1),f={value:!1},u=K(()=>{let d=t.state&&(Et(t.state)?t.state.root:null);if(!d||!Et(d))return;let p=d;p=p[c];for(let h=0;h<l.length&&!(p==null||typeof p!="object");h++)if(Et(p))p=p[l[h]];else break;if(!f.value)return;let g=!1;if(typeof t.onBeforeUpdate=="function"&&un(t,()=>{try{if(Em(o)){let h=t.onBeforeUpdate(t,t.state,t.context,{updateBySubscription:!0});h&&typeof h.then=="function"?h.then(()=>nr(o,!1),m=>{nr(o,!0),er("error",t,{hook:"onBeforeUpdate",error:m})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",m)}):(nr(o,!1),h===!1&&(g=!0))}}catch(h){nr(o,!0),er("error",t,{hook:"onBeforeUpdate",error:h})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",h)}}),!g&&t.node&&o.__effects)for(let h=0;h<o.__effects.length;h++){let m=o.__effects[h];m&&m!==u&&!m._disposed&&!m._isSubscribeToEffect&&typeof m._execute=="function"&&m._execute()}!g&&typeof t.onUpdate=="function"&&un(t,()=>{try{t.onUpdate(t,t.state,t.context)}catch(h){er("error",t,{hook:"onUpdate",error:h})||console.error("[DOMQL] subscribeTo onUpdate error:",h)}})},{depth:o.path.length,label:_t(o,"subscribeTo("+i+")")});f.value=!0,u._isSubscribeToEffect=!0,o.__effects.push(u)}}function OE(t,e){return t.charCodeAt(0)===64&&t.length>1&&!t.startsWith("@media")&&!t.startsWith("@keyframes")&&!t.startsWith("@supports")&&!t.startsWith("@container")&&(t==="@dark"||t==="@light"||!e.context?.designSystem?.media?.[t.slice(1)])}function RE(t,e){if(t.charCodeAt(0)!==64||/^@(media|supports|container|keyframes)\b/.test(t))return t;let n=e.context?.designSystem?.media?.[t.slice(1)];if(!n)return t;if(typeof n=="string"&&!/^@(supports|container)\b/.test(n)){let r=B9(e);if(r){let o=Lk(n);if(o)return`@container ${r} ${o}`}}return/^@(media|supports|container)\b/.test(n)?n:`@media ${n}`}function PE(t,e,n,r){return Bs(t)?Fs(()=>fd(e,n,!1,r)):fd(e,n,!1,r)}function B9(t){let e=t.__ref;if(e&&e.__breakpointContainer!==void 0)return e.__breakpointContainer;let n=null;for(let r=t.parent;r&&typeof r=="object";r=r.parent){let o=r.breakpointsFrom;if(o!=null&&o!==!1){n=bm(o,r);break}}return e&&(e.__breakpointContainer=n),n}var CD=new Set;function j9(t,e){let n=e?.__ref?.path?e.__ref.path.join("."):e?.key||"?",r=n+"::"+t;CD.has(r)||(CD.add(r),console.warn(`[smbls/css] "${t}" at ${n} is a CHILD-COMPONENT key nested inside a pseudo/selector block (":hover", "@dark", etc.) \u2014 that is never a valid CSS selector fragment. The rule is DROPPED (not shipped as a dead/never-matching selector). To reveal a child on a parent state, target the child's OWN class from the parent selector instead, e.g. move the declaration onto the child element itself, or use a sibling-selector combinator in a top-level style block.`))}var TD=new Map;function U9(t){let e=TD.get(t);if(e)return e;e=[];let n=r=>{if(r)for(let o of r)e.push(Ju(o))};return n(To[t]),n(Sm[t]),TD.set(t,e),e}function OD(t,e,n){if(xE(t,e)||n&&n.has(e))return!0;let r=U9(sr(e));for(let o=0;o<r.length;o++){let s=r[o];if(xE(t,s)||n&&n.has(s))return!0}return!1}function fd(t,e,n,r){let o={},s=new Set,i=(a,c,l)=>{let f=l?new Set(Object.keys(o)):null;if(xt[a]){let u=xt[a](c,e,e.state,e.context);if(u){let d=Array.isArray(u)?u:[u];for(let p of d)p&&Object.assign(o,p)}}else o[a]=c;if(l)for(let u in o)f.has(u)||s.add(u)};for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=t[a];if(typeof c=="function"&&(c=c(e,e.state,e.context)),!(c==null||typeof c=="function")){if(typeof c=="object"&&!Array.isArray(c)){if(a==="style"){for(let u in c){let d=c[u];typeof d=="function"&&(d=d(e,e.state,e.context)),!(d==null||typeof d=="function")&&i(u,d,OD(e,u,r))}continue}if(a==="vars"){let u=Fm(c,e);if(u)for(let d in u)i(d,u[d],xE(e,d)||!!(r&&r.has(d)));continue}if(OE(a,e)){let u=fd(c,e,!1,r);Object.keys(u).length&&(o[`[data-theme="${a.slice(1)}"] &`]=u);continue}if(/^[A-Z][A-Za-z0-9]*$/.test(a)){tt()&&j9(a,e);continue}let l=RE(a,e),f=PE(l,c,e,r);Object.keys(f).length&&(o[l]=f);continue}i(a,c,OD(e,a,r))}}if(n)for(let a in o)s.add(a);for(let a of s){let c=o[a];typeof c=="string"&&!c.includes("!important")&&(o[a]=c+" !important")}return o}var Mo=t=>!!t&&typeof t=="object"&&!Array.isArray(t);function mI(t,e){for(let n in e){let r=e[n];t[n]=Mo(r)?mI(Mo(t[n])?t[n]:{},r):r}return t}function V9(t,e){if(!Mo(e))return;let n;for(let r of t.split(" ")){let o=r?e[r]:null;Mo(o)&&(n=mI(n||{},o))}return n}function LE(t,e){if(e===void 0&&(e=0),e>8)return!1;if(typeof t=="function")return!0;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&LE(t[n],e+1))return!0}return!1}function yI(t,e,n){if(!e||typeof e!="object"||Array.isArray(e))return null;if(OE(t,n)){let s=fd(e,n,!1);return Object.keys(s).length?{cssProp:`[data-theme="${t.slice(1)}"] &`,block:s}:null}let r=RE(t,n),o=PE(r,e,n);return Object.keys(o).length?{cssProp:r,block:o}:null}function z9(t){let e=t.__ref;for(let n of Object.keys(t)){if(!YD(n))continue;let r=t[n];if(!r||typeof r!="object"||Array.isArray(r)||!LE(r))continue;let o=null,s,i=K(()=>{if(!t.node)return;let a=t.context?.designSystem;a&&mt(a);let c,l=!1;try{let f=yI(n,r,t),u=f?wc(f.block)+"::"+f.cssProp:null;if(u!==null&&u===s)l=!0;else if(s=u,f){let d=Ve({[f.cssProp]:f.block},null,t.context?.cssPrefix);c=d?d.split(" ").filter(Boolean):null}else c=null}finally{a&&ht()}if(!(l||!t.node.classList)){if(o)for(let f of o)t.node.classList.remove(f);if(c&&c.length)for(let f of c)t.node.classList.add(f);o=c}},{depth:e.path.length,label:_t(e,"cssBlock("+n+")")});e.__effects.push(i)}}var H9=()=>!0,W9=(t,e)=>{let n=t.charAt(0);return(n===":"||n==="@"||n==="&"||n==="[")&&e&&typeof e=="object"&&!Array.isArray(e)?!0:!!xt[t]||!!(Bt&&Bt.has(t))||ld(t)||t==="vars"};function K9(t,e,n){let r={},o=!1;for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&(a!=="data"&&a!=="aria"&&(W9(a,n[a])||Gt.has(a))?r[a]=!0:o=!0);if(!o)return null;let s=sE({[e]:n},t.tag||"div",r,H9),i=null;for(let a in s)/^on/i.test(a)||(i||(i={}),i[a]=s[a]);return i}function RD(t,e,n,r,o,s){let i=t.node,a=null,c=l=>{(a||(a=[])).push(l)};for(let l in r){let f=e.owners.get(l),u=f===n;if(!s&&f!==void 0&&!u)continue;let d;try{d=r[l](t)}catch(g){ne(t.__ref,"conditional("+n+")."+l,g),u&&c(l);continue}if(typeof d=="string"&&d.includes("{{")&&(d=Zt.call(t,d,t.state)),u&&i.getAttribute(l)!==e.written.get(l)){c(l);continue}if(d==null||typeof d=="object"||typeof d=="function"){u&&bI(i,e,l);continue}let p=d===!1&&!oi(l)?null:String(rr(l,d));c(l),!(u&&p===e.written.get(l))&&(f===void 0&&e.base.set(l,i.getAttribute(l)),Lm(i,l,p),e.owners.set(l,n),e.written.set(l,p))}o.appliedAttrs=a}function bI(t,e,n){t.getAttribute(n)===e.written.get(n)&&Lm(t,n,e.base.get(n)),e.owners.delete(n),e.base.delete(n),e.written.delete(n)}function q9(t,e,n,r){let o=r.appliedAttrs;if(r.appliedAttrs=null,!!o)for(let s of o)e.owners.get(s)===n&&bI(t.node,e,s)}function _I(t){let e=t.__ref&&t.__ref.__conditionalAttrs,n=t.node;if(!(!e||!e.owners.size||!n||!n.getAttribute))for(let r of e.owners.keys()){let o=e.written.get(r),s=n.getAttribute(r);s!==o&&(e.base.set(r,s),o==null?n.removeAttribute(r):n.setAttribute(r,o))}}var uE,G9=()=>uE===void 0?uE=tt():uE;function PD(t,e){let n=Pp;typeof n=="function"?t.untrackedReads+=n(e):e()}function Y9(t){let e=t.__ref;e.__conditionalRunners=[];let n=null,r=new Map;for(let o of Object.keys(t)){let s=o.charAt(0);if(s!=="."&&s!=="!")continue;let i=o.slice(1);if(!i)continue;if(/[:@\s>~+[\]]/.test(i)){if(typeof console<"u"&&console.warn){let m=i.split(/[:@\s>~+[\]]/)[0];console.warn(`[smbls] conditional \`${o}\` on ${t.key||"?"} will never match \u2014 the whole string after \`${s}\` is read as one prop name. Nest the selector inside instead: \`${s}${m}: { '${i.slice(m.length)}': {...} }\`.`)}continue}let a=t[o];if(!a||typeof a!="object")continue;let c=s==="!",l={lastMatch:!1,appliedKeys:null,appliedClasses:null,appliedAttrs:null,hides:!1,probe:!1,untrackedReads:0},f=K9(t,o,a);f&&!n&&(n=e.__conditionalAttrs={owners:new Map,base:new Map,written:new Map});let u=new Set;for(let m in a){if(!Object.prototype.hasOwnProperty.call(a,m))continue;let y=m.charAt(0),x=a[m];if(!((y===":"||y==="@"||y==="&"||y==="[")&&x&&typeof x=="object"&&!Array.isArray(x))){if(m==="vars"&&Mo(x)){for(let k of Object.keys(x))k&&u.add($m(k));continue}u.add(m)}}let d=()=>{let m,y=l.probe,x;if(y?PD(l,()=>{x=t[i]}):x=t[i],x===void 0){let _=!!t.state&&i in t.state,b=t.state?t.state[i]:void 0;if(_||b!==void 0)m=b;else{let w=t.context?.cases?.[i];if(w===void 0)return;try{m=typeof w=="function"?w.call(t,t):w}catch(S){m=!1,e.__conditionalError=S,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${o}\` case fn threw on ${t.key||"?"} \u2014 treating as false:`,S?.message||S)}}}else if(typeof x=="function")try{y?PD(l,()=>{m=x(t,t.state,t.context)}):m=x(t,t.state,t.context)}catch(_){m=!1,e.__conditionalError=_,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${o}\` predicate threw on ${t.key||"?"} \u2014 treating as false:`,_?.message||_)}else m=x;y&&(l.probe=!1);let k=c?!m:!!m;if(!t.node)return;let C=t.context?.designSystem;if(k===l.lastMatch){if(k&&f&&t.node.setAttribute){C&&mt(C);try{RD(t,n,o,f,l,!1)}finally{C&&ht()}}return}l.lastMatch=k,C&&mt(C);try{if(k){let _={},b={},w=!1,S=!1;for(let T in a){if(!Object.prototype.hasOwnProperty.call(a,T))continue;let O=a[T],B=T.charAt(0);if((B===":"||B==="@"||B==="&"||B==="[")&&O&&typeof O=="object"&&!Array.isArray(O)){if(OE(T,t)){let N=fd(O,t,!1,u);Object.keys(N).length&&(b[`[data-theme="${T.slice(1)}"] &`]=N,w=!0)}else{let N=RE(T,t),G=PE(N,O,t,u);Object.keys(G).length&&(b[N]=G,w=!0)}continue}let $=typeof O=="function"?O(t,t.state,t.context):O;if($!=null){if(T==="hide"||T==="show"){let N=xt[T]($,t,t.state,t.context);N&&N.display&&(S=!0)}else if(xt[T]){let N=xt[T]($,t,t.state,t.context);if(N){let G=Array.isArray(N)?N:[N];for(let Y of G)Y&&Object.assign(_,Y)}}else if(Bt&&Bt.has(T))_[T]=$;else if(ld(T))_[T]=$;else if(T==="vars"){let N=Fm($,t);N&&Object.assign(_,N)}}}(S||l.hides)&&(l.hides=S,Dm(t,o,S));let A=Object.keys(_);if(A.length){ir(t.node,_,t);for(let T of A){let O=r.get(T);O||(O=[],r.set(T,O));let B=O.findIndex($=>$.key===o);B!==-1&&O.splice(B,1),O.push({key:o,value:_[T]})}l.appliedKeys=A}else l.appliedKeys=null;if(w){let T=Ve(b,null,t.context?.cssPrefix,{state:!0}),O=T?T.split(" ").filter(Boolean):[];if(O.length&&t.node.classList){for(let B of O)t.node.classList.add(B);l.appliedClasses=O}else l.appliedClasses=null}else if(l.appliedClasses){for(let T of l.appliedClasses)t.node.classList.remove(T);l.appliedClasses=null}f&&t.node.setAttribute&&RD(t,n,o,f,l,!0)}else{if(l.appliedAttrs&&q9(t,n,o,l),l.appliedKeys){for(let _ of l.appliedKeys){let b=r.get(_);if(!b)continue;let w=b.findIndex(S=>S.key===o);if(w!==-1)if(b.splice(w,1),b.length){let S=b[b.length-1].value,A=Nr(_),T=String(S).trim().replace(/\s*!important\s*$/,"");Cc(t,t.node.style,A)!==T&&ir(t.node,{[_]:S},t)}else r.delete(_),ld(_)?t.node.style.removeProperty(_):Nr(_)==="display"?pd(t,""):t.node.style[_]=""}l.appliedKeys=null}if(l.hides&&(l.hides=!1,Dm(t,o,!1)),l.appliedClasses){for(let _ of l.appliedClasses)t.node.classList.remove(_);l.appliedClasses=null}}}finally{C&&ht()}};e.__conditionalRunners.push(d);let p=t[i+"Deps"],g=zt(t,p,d);G9()&&typeof(e.__exec&&e.__exec[i]||t[i])=="function"&&!(Array.isArray(p)&&p.length===0)&&(l.probe=!0);let h=K(g,{depth:e.path.length,label:_t(e,"conditional("+o+")")});l.probe&&(l.probe=!1),l.untrackedReads>0&&h._sources.size===0&&console.warn(`[smbls] conditional \`${o}\` on ${t.key||"?"} subscribed to nothing \u2014 its predicate read state on its first run without subscribing to it (\`in\`, Object.keys, a \`__\` key, parse()), so no state write will ever re-evaluate it (only a direct element.update() on this element re-runs it). Declare \`${i}Deps: [...]\` (state-key strings or \`(el, s) => \u2026\` selectors) so the subscription is armed unconditionally, or \`${i}Deps: []\` when it is static on purpose.`),e.__effects.push(h)}}var dE=new WeakSet,pE=new WeakMap;function X9(t){let e=pE.get(t);if(e==="painted")return!1;if(e===void 0){pE.set(t,"open");let n=t.defaultView,r=()=>{pE.set(t,"painted")};n&&typeof n.requestAnimationFrame=="function"?n.requestAnimationFrame(r):setTimeout(r,0)}return!0}var hE=new WeakSet;function Z9(t){if(hE.has(t))return;hE.add(t);let e=()=>{hE.delete(t);let r=t.body||t.documentElement;r&&r.offsetWidth},n=t.defaultView;n&&typeof n.requestAnimationFrame=="function"?n.requestAnimationFrame(e):setTimeout(e,0)}function J9(t,e){let n=t.ownerDocument;if(n&&!X9(n)){if(ct.hydration!==null&&e&&e.context&&e.context.__hydration){Z9(n);return}dE.has(n)||(dE.add(n),queueMicrotask(()=>{dE.delete(n);let r=n.body||n.documentElement;r&&r.offsetWidth}))}}var gE=new WeakSet,LD=!1;function DD(t){return t.startsWith("[data-theme=")||t.startsWith("@media")&&t.includes("prefers-color-scheme")}function kE(t,e){let n={...t};for(let r in e){let o=e[r],s=n[r];n[r]=o&&typeof o=="object"&&s&&typeof s=="object"?kE(s,o):o}return n}function wI(t,e){let n={};for(let r in t){let o=t[r];if(o&&typeof o=="object"){let s=wI(o,e);Object.keys(s).length&&(n[r]=s)}else e(r)||(n[r]=o)}return n}function ID(t,e,n){let r=DE(t);if(!r)return!1;for(let o=0;o<r.length;o+=3){let s=r[o+1];if(!n.has(s))continue;let i=e[s];if(!(i==null||typeof i=="object")&&OL(r[o],i,r[o+2]))return!0}return!1}function Q9(t,e,n){let r=1/0,o=-1/0;for(let i of e.values())i<r&&(r=i),i>o&&(o=i);if(n)for(let i of n.values())i>o&&(o=i);if(o<=r)return null;let s=null;for(let[i,a]of e){if(a===o)continue;let c=DE(i);if(c)for(let l=0;l<c.length;l+=3){let f=c[l],u=c[l+1],d=c[l+2],p=t[u]!=null?e.get(u):void 0,g=n&&n.get(f),h=p!==void 0&&p>a&&xm(f,t[u],d),m=!h&&g!==void 0&&g>a&&xm(f,void 0,d);if(h||m){h&&delete t[i],s||(s=new Set),s.add(i);break}}}return s}var MD=new Map;function DE(t){let e=MD.get(t);if(e!==void 0)return e;let n=sr(t),r=To[n];if(e=null,Array.isArray(r)){e=[];for(let o of r)e.push(o,Ju(o),n)}return MD.set(t,e),e}var SI=new Set(["page","zoom"]),tW=(t,e)=>{SI.add(t);let n=typeof CSS<"u"?CSS:null;if(!n||typeof n.supports!="function")return;let r=!1;try{r=n.supports(sr(t),String(e))}catch{r=!1}r&&console.warn(`[smbls] css: "${t}: ${e}" is valid CSS, but smbls has no entry for "${t}", so the element gets no CSS for it. Write it in style: { ${t}: \u2026 } for now, and report the missing property.`)};function xI(t){let{node:e}=t;if(!e)return;if(LD||(LD=!0,Ve({display:"none"})),gE.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}gE.add(t);let n=t.context?.designSystem;n&&mt(n),mm();try{let r={},o=!1,s=[],i=null,a=null,c=null,l=null,f=t.__ref&&t.__ref.__mergeLayer,u,d=null,p=null,g=!1,h=(_,b)=>{if(b&&typeof b=="object"&&DD(_)){c||(c={});let w=c[_];w&&(b=kE(w,b)),c[_]=b}else(b===null||typeof b!="object")&&(l||(l=new Set),l.add(_),u!==void 0&&(d||(d=new Map),d.set(_,u)));r[_]=b};if(Object.prototype.hasOwnProperty.call(t,"theme")&&typeof t.theme!="function"&&xt.theme){let _=xt.theme(t.theme,t,t.state,t.context);if(_){let b=w=>{for(let S in w){let A=w[S];A&&typeof A=="object"?DD(S)&&(i||(i={}),i[S]=A):DE(S)&&(a||(a=[])).push(S),r[S]=A}};if(Array.isArray(_))for(let w of _)w&&b(w);else b(_);o=!0}}let m=(_,b)=>{if(_==="vars"){let w=Fm(b);if(w){for(let S in w)h(S,w[S]);o=!0}return}if(_==="hide"||_==="show"){let w=xt[_](b,t,t.state,t.context);w&&w.display&&(g=!0);return}if(xt[_]){let w=xt[_](b,t,t.state,t.context);if(w){if(Array.isArray(w)){for(let S of w)if(S)for(let A in S)h(A,S[A])}else for(let S in w)h(S,w[S]);o=!0}}else if(Bt&&Bt.has(_))b!=null&&typeof b!="object"&&(h(_,b),o=!0);else if(_.charCodeAt(0)===45)b!=null&&typeof b!="object"&&(h(_,b),o=!0);else if(_.charAt(0)==="&"||_.charAt(0)==="@"||_.charAt(0)===":"||_.charAt(0)==="["){if(b&&typeof b=="object"&&!Array.isArray(b)){if(LE(b))return;let w=yI(_,b,t);w&&(h(w.cssProp,w.block),o=!0)}}else(typeof b=="string"||typeof b=="number")&&!SI.has(_)&&tt()&&tW(_,b)};if(typeof t.class=="string"){let _=V9(t.class,t.context?.designSystem?.class);if(_)for(let b in _)m(b,_[b])}let y=l?new Set(l):null,x=t.tag||"div";for(let _ of Object.keys(t)){if(typeof t[_]=="function"){let w=f&&f.get(_);w!==void 0&&Lo(x,_)&&(p||(p=new Map),p.set(sr(_),w));continue}if(u=f?f.get(_):void 0,_==="vars"){m(_,t[_]);continue}if(Gt.has(_)||_==="theme")continue;let b=_.charCodeAt(0);b>=65&&b<=90||fn(_)||Cm(x,_)||m(_,t[_])}u=void 0;let k=d?Q9(r,d,p):null;if(a&&l)for(let _ of a)l.has(_)||!(_ in r)||ID(_,r,l)&&delete r[_];if(i){let _=l?b=>l.has(b)||ID(b,r,l):null;for(let b in i){let w=_?wI(i[b],_):i[b];c&&c[b]&&(w=kE(w,c[b])),Object.keys(w).length?r[b]=w:delete r[b]}}if(I9(t,r,l,k?new Set([...y||[],...k]):y),Dm(t,"static",g),o){r.display&&String(r.display).includes("!important")&&(ir(e,{display:r.display},t),delete r.display);let _=t.display!=null&&typeof t.display!="function"?t.display:t.hide===!0||t.show===!1?"none":null;typeof _=="string"&&_!==""&&r.display&&r.display!==_&&(r.display=_);let b=Ve(r,null,t.context?.cssPrefix);if(s=b?b.split(" ").filter(Boolean):[],b&&e.classList){let w=s,S=!1;for(let A of w)e.classList.add(A),S||(A.charCodeAt(0)===95&&A.charCodeAt(1)===99||A.charCodeAt(0)===95&&A.indexOf("_c",1)!==-1)&&(S=!0);S&&J9(e,t)}}let C=t.__ref;if(C){let _=C.__staticCssClasses;if(_&&e.classList){let b=new Set(s);for(let w of _)b.has(w)||e.classList.remove(w)}C.__staticCssClasses=s}M9(t)}finally{ym(),n&&ht(),gE.delete(t)}}var Hk=t=>!!xt[t]||!!(Bt&&Bt.has(t))||typeof t=="string"&&t.charCodeAt(0)===45;function Wk(t){t&&t.node&&xI(t)}function eW(t){let{node:e}=t;if(!e||!e.setAttribute)return;if(t.aria&&typeof t.aria=="object")for(let o in t.aria){let s=t.aria[o];if(typeof s=="function"||typeof s=="object"||s==null||typeof s=="string"&&s.includes("{{"))continue;let i="aria-"+o.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());e.setAttribute(i,rr(i,s))}let n=oE(t);for(let o in n){let s=n[o];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&e.setAttribute(o,s===!0?"":s)}let r=t.tag||"div";for(let o of Object.keys(t)){if(typeof t[o]=="function"||Gt.has(o)||o==="on"||n[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!fn(o)&&!Lo(r,o)&&hn(r,o)){let i=t[o];if(i==null)continue;if(typeof i=="string"&&i.includes("{{")){if(!Po[o])continue;i=Zt.call(t,i,t.state)}if(i==null||typeof i=="function"||typeof i=="object"||i===!1&&!oi(Br(o)||o))continue;let a=Br(o)||o;e.setAttribute(a,rr(a,i))}}}function Kk(t,e){let{node:n}=t;if(!n||!n.setAttribute)return;let r=e.charCodeAt(0);if(r>=65&&r<=90||fn(e))return;let o=t.tag||"div";if(Lo(o,e)||!hn(o,e))return;let s=Br(e)||e,i=s.toLowerCase(),a=t.__ref&&t.__ref.__effects,c=!1;if(a)for(let u=0;u<a.length;u++){let d=a[u];d&&d._attrName===i&&!d._disposed&&typeof d._execute=="function"&&(c=!0,d._execute())}if(c)return;let l=t[e],f=Po[e];if(f&&l!=null){let u=f(t);u!==void 0&&(l=u)}typeof l=="string"&&l.includes("{{")&&(l=Zt.call(t,l,t.state)),ni(n,s,l)}function nW(t,e){let n=t.node,r=t.__ref,o=r.__autoGrow;if(!e){if(o&&o.active){try{n.removeEventListener("input",o.resize)}catch{}$D(o),Do.delete(t),n.style.height="",o.appliedMax!=null&&n.style.maxHeight===o.appliedMax&&(n.style.maxHeight=""),BD(n,o,!1),o.active=!1,o.appliedMax=null,o.lastMeasure=0}return}o||(o=r.__autoGrow={active:!1,appliedMax:null,lastMeasure:0,lastWidth:null,watch:null,awaitingLayout:!1,appliedScroll:!1,fontsHooked:!1,attachAttempts:0,firstAttemptAt:null,resize:()=>{if(!n.isConnected){ud(t,!0);return}if(!(n.scrollHeight>0)){o.awaitingLayout=!0,ND(t,o);return}o.awaitingLayout=!1;let i=sW(n),a=iW(i),c=n.style.height;n.style.height="0px",a&&mE(n);let l=n.scrollHeight;if(!(l>0)){n.style.height=c,a&&mE(n);return}let f=aW(n,i),u=f!=null&&l<f?f:l,d=fW(i),p=d!=null&&u>d;n.style.height=lW(p?d:u,i)+"px",a&&mE(n),BD(n,o,p),o.lastMeasure=l,o.lastWidth=n.clientWidth,ND(t,o)}},r.__eventCleanup||(r.__eventCleanup=[]),r.__eventCleanup.push(()=>{try{n.removeEventListener("input",o.resize)}catch{}$D(o),Do.delete(t)})),o.active||(n.addEventListener("input",o.resize),o.active=!0,oW(t,o));let s=typeof e=="object"&&e.max!=null?String(e.max):null;s!==o.appliedMax&&(s==null?o.appliedMax!=null&&n.style.maxHeight===o.appliedMax&&(n.style.maxHeight=""):n.style.maxHeight=s,o.appliedMax=s),o.resize()}function ud(t,e){let n=t.__ref?.__autoGrow;n&&(e&&(n.attachAttempts=0,n.firstAttemptAt=null),Do.add(t),dd())}function rW(){let t=Array.from(Do);Do.clear();for(let e=0;e<t.length;e++){let n=t[e],r=n.node,o=n.__ref?.__autoGrow;if(!(!r||!o||!o.active)){if(!r.isConnected){o.firstAttemptAt==null&&(o.firstAttemptAt=vc()),o.attachAttempts+=1,o.attachAttempts<=qD&&vc()-o.firstAttemptAt<GD&&(Do.add(n),dd());continue}o.attachAttempts=0,o.firstAttemptAt=null,o.resize()}}}function ND(t,e){if(e.watch)return;let n=t.node;if(!n)return;let r=n.ownerDocument&&n.ownerDocument.defaultView,o=r&&r.ResizeObserver||(typeof ResizeObserver=="function"?ResizeObserver:null);if(typeof o!="function")return;let s=()=>{if(!e.active||!n.isConnected||!(n.scrollHeight>0))return;if(e.awaitingLayout){e.awaitingLayout=!1,ud(t,!0);return}let a=n.clientWidth;e.lastWidth!=null&&Math.abs(a-e.lastWidth)<.5||(e.lastWidth=a,ud(t,!0))},i;try{i=new o(s),i.observe(n)}catch{return}e.watch=i}function $D(t){let e=t.watch;if(e){t.watch=null;try{e.disconnect()}catch{}}}function oW(t,e){if(e.fontsHooked)return;e.fontsHooked=!0;let n=t.node&&t.node.ownerDocument,r=n&&n.fonts&&n.fonts.ready;!r||typeof r.then!="function"||r.then(()=>{e.active&&t.node&&ud(t,!0)},()=>{})}function sW(t){let e=t.ownerDocument&&t.ownerDocument.defaultView;try{return e&&e.getComputedStyle?e.getComputedStyle(t):null}catch{return null}}var ii=t=>typeof t=="string"&&/^\s*-?\d*\.?\d+px\s*$/.test(t)?parseFloat(t):null,IE=t=>(ii(t.paddingTop)||0)+(ii(t.paddingBottom)||0),kI=t=>(ii(t.borderTopWidth)||0)+(ii(t.borderBottomWidth)||0);function iW(t){if(!t)return!1;let e=String(t.transitionProperty||"").split(","),n=String(t.transitionDuration||"0s").split(",");for(let r=0;r<e.length;r++){let o=e[r].trim();if(!(o!=="all"&&o!=="height")&&parseFloat(n[r%n.length])>0)return!0}return!1}function mE(t){if(typeof t.getAnimations!="function")return;let e;try{e=t.getAnimations()}catch{return}for(let n=0;n<e.length;n++){let r=e[n];if(r&&r.transitionProperty==="height")try{r.cancel()}catch{}}}function aW(t,e){if(!e||!t.hasAttribute||!t.hasAttribute("rows"))return null;let n=parseInt(t.getAttribute("rows"),10);if(!(n>0))return null;let r=ii(e.lineHeight)||cW(t,e);return r>0?n*r+IE(e):null}var rd=["fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontFamily","lineHeight","letterSpacing"],FD=new WeakMap;function cW(t,e){let n=t.ownerDocument,r=n&&(n.body||n.documentElement);if(!r||!n.createElement)return null;let o=FD.get(n);o||(o=new Map,FD.set(n,o));let s=rd.map(l=>e[l]||"").join("|");if(o.has(s))return o.get(s);let i=n.createElement("textarea");i.rows=1,i.setAttribute("aria-hidden","true"),i.tabIndex=-1;let a=i.style;a.position="absolute",a.visibility="hidden",a.top="0",a.left="-9999px",a.height="auto",a.minHeight="0",a.maxHeight="none",a.padding="0",a.border="0",a.boxSizing="content-box",a.overflow="hidden";for(let l=0;l<rd.length;l++)e[rd[l]]&&(a[rd[l]]=e[rd[l]]);let c=0;try{r.appendChild(i),c=i.clientHeight}catch{c=0}finally{i.parentNode&&i.parentNode.removeChild(i)}return c>0?(o.set(s,c),c):null}function lW(t,e){return e?e.boxSizing==="border-box"?t+kI(e):e.boxSizing==="content-box"?Math.max(0,t-IE(e)):t:t}function fW(t){if(!t)return null;let e=ii(t.maxHeight);if(e==null||!(e>0))return null;let n=IE(t),r=kI(t),o=t.boxSizing==="border-box"?e-r:e+n,s=ii(t.lineHeight);if(!(s>0))return o;let i=Math.floor((o-n)/s+1e-6);return i>=1?i*s+n:o}function BD(t,e,n){n?e.appliedScroll||(t.style.overflowY="auto",e.appliedScroll=!0):e.appliedScroll&&(t.style.overflowY==="auto"&&(t.style.overflowY=""),e.appliedScroll=!1)}var jD=["srcObject","muted"],uW=(t,e)=>t==="muted"?e===!0||e===""||e==="true"||e==="muted":e??null;function dW(t){let e=t.node,n=t.__ref;if(!(!e||!n))for(let r=0;r<jD.length;r++){let o=jD[r],s=t[o];if(s===void 0||!(o in e))continue;let i=a=>{let c=uW(o,a);if(e[o]!==c)try{e[o]=c}catch(l){ne(n,o,l)}};if(typeof s=="function"){let a=zt(t,t[o+"Deps"],s),c=K(()=>{try{i(a(t,t.state,t.context))}catch(l){ne(n,o,l)}},{depth:n.path.length,label:_t(n,o)});n.__effects.push(c),n.__exec[o]=s}else i(s);o==="srcObject"&&(n.__releaseMedia=()=>{try{e.srcObject!=null&&(e.srcObject=null)}catch{}})}}function pW(t){if(!t.autoGrow)return;if(globalThis.__SMBLS_BUILD_DROP_F_autoGrow__)return qt("autoGrow",t);let e=t.node;if(!e||e.tagName!=="TEXTAREA")return;let n=t.__ref,r=t.autoGrow,o=typeof r=="function"?zt(t,t.autoGrowDeps,r):null,s=K(()=>{let i=t.autoGrow,a=i;if(typeof i=="function")try{a=(i===r&&o?o:i)(t,t.state,t.context)}catch{a=null}nW(t,a)},{depth:n.path.length,label:_t(n,"autoGrow")});n.__effects||(n.__effects=[]),n.__effects.push(s),o&&(n.__exec.autoGrow=r)}var EI=new Set(["onSwipe","onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown"]);function vI(t,e){let n=!1;for(let r of Object.keys(t)){if(!fn(r)||EI.has(r))continue;if(r==="onInView"||r==="onLeaveView"){n=!0;continue}let o=dm(r);if(o){pm(o,t,t[r]);continue}let s=t[r],i=null;if(s&&typeof s=="object"&&!Array.isArray(s)&&(i=s,s=i.handler),s=Gu(t,s),typeof s!="function")continue;let a=fm(r);Jn.has(a)||ac(QH(a),t,s,i)}hW(t),n&&ct.viewEvents&&ct.viewEvents(t)}function hW(t){let e=t.node;if(!e||!e.addEventListener)return;let n={},r=!1;for(let d of EI){let p=t[d];typeof p=="function"&&(n[d]=p,r=!0)}if(!r)return;let o=typeof t.swipeThreshold=="number"?t.swipeThreshold:40,s=typeof t.swipeMaxDuration=="number"?t.swipeMaxDuration:600,i=0,a=0,c=0,l=!1,f=d=>{let p=d.touches&&d.touches[0]||d.changedTouches&&d.changedTouches[0];p&&(i=p.clientX,a=p.clientY,c=Date.now(),l=!0)},u=d=>{if(!l)return;l=!1;let p=d.changedTouches&&d.changedTouches[0]||d.touches&&d.touches[0];if(!p)return;let g=p.clientX-i,h=p.clientY-a,m=Date.now()-c;if(m>s)return;let y=Math.abs(g),x=Math.abs(h);if(Math.max(y,x)<o)return;let k;if(y>x*1.2)k=g<0?"left":"right";else if(x>y*1.2)k=h<0?"up":"down";else return;let C="onSwipe"+k.charAt(0).toUpperCase()+k.slice(1),_=n[C],b=n.onSwipe;_&&_.call(t,d,t,t.state,t.context),b&&b.call(t,{direction:k,dx:g,dy:h,dt:m,event:d},t,t.state,t.context)};e.addEventListener("touchstart",f,{passive:!0}),e.addEventListener("touchend",u,{passive:!0}),t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{try{e.removeEventListener("touchstart",f)}catch{}try{e.removeEventListener("touchend",u)}catch{}})}function ME(t,e,n,r,o,s,i,a){let c=e;(typeof c=="string"||typeof c=="number")&&(c={text:c});let l=r;if(typeof r=="function")try{l=r(t,c)}catch{l=null}let f=typeof r=="function"?ad(l):o;if(a&&!i&&(f=cd(f,ad(e))),i){let u=e;(typeof e=="string"||typeof e=="number")&&(u={value:e,text:e}),c=l?{...l,state:u}:{state:u}}else l&&(c=ze(l,c));return c=hd(c,s),{def:c,key:XD(c?.key,e,n,t),supplied:f,props:l}}function hd(t,e){if(!e||!t||t.ignoreChildExtends)return t;if(!t.extends)return{...t,extends:e};let n=Array.isArray(t.extends)?t.extends:[t.extends],r=Array.isArray(e)?e:[e];return{...t,extends:[...r,...n]}}var jr=t=>{let e=t&&t.__ref;if(!e||e.__if===!1||e.__mount&&e.__mount.held)return null;let n=t.node;return n&&n.nodeType!==11?n:null},AI=(t,e)=>e?e.nextSibling:Qu(t.node,t.__ref.__textNode),Bm=(t,e,n)=>{let r=AI(t,n);return e!==r&&t.node.insertBefore(e,r),e},gd=(t,e)=>{let n=AI(t,e);return n?{position:"before",node:n}:void 0};function NE(t,e,n){let r=null;for(let o=0;o<e.length;o++){if(n&&n.has(e[o]))continue;let s=jr(t[e[o]]);s&&(r=Bm(t,s,r))}}function UD(t,e,n,r){let o=ct.rows,s=o!==null&&t.childrenAs!=="state"&&t.tag!=="fragment"?o.track(t):null,i=$E(t,e,n,r,!0,s);return t.__ref.__plainRows=s&&(i||e==null||e===!1)?s:null,i}function $E(t,e,n,r,o,s){if(!e||!t.node)return;let i=t.childExtends,a=Io(t,"childProps"),c=t.__ref,l=ct.mount,f=r>0&&t.tag!=="fragment"&&c?r:0;if(Array.isArray(e)){let u=t.childProps,d=t.childrenAs==="state",p=(g,h)=>{let m=ME(t,e[g],g,u,a,i,d,o);s&&s.add(m.key,e[g],m,u,i);try{let y=Yt(si(m.def,m.supplied),t,m.key,n,h);return!y&&s&&s.none(m.key),Pm(t,y),y}catch(y){if(s&&s.failed(m.key),typeof console<"u"&&console.error){let x=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${m.key}" failed to construct at ${x} (initial render, skipping this row):`,y?.message||y)}return null}};if(!f){for(let g=0;g<e.length&&!(c&&c.__disposed);g++)p(g);return!0}return l.rows(t,e.length,p,f),!0}if(typeof e=="string"){let u=tI(e,t);if(Array.isArray(u))return $E(t,u,n,r,!0,s)}if(typeof e=="object"){let u=(p,g)=>{if(Gt.has(p))return!1;let h=e[p];if(h==null||h===!1)return!1;let m=o?cd(a,ad(h)):a;(typeof h=="string"||typeof h=="number")&&(h={text:h}),t.childProps&&(h=ze(t.childProps,h)),h=hd(h,i);let y=Yt(si(h,m),t,Mm(t,p),n,g);return Pm(t,y),y};if(!f){for(let p in e)u(p);return}let d=[];for(let p in e)d.push(p);l.rows(t,d.length,(p,g)=>u(d[p],g),f)}}function Ec(t,e){let n=t.node;if(!n||n.tagName!=="SELECT")return;let r=n.options;if(!r||!r.length)return;let o=t.__ref,s=o&&o.__exec&&o.__exec.value,i=typeof s=="function",a=t.value!=null&&typeof t.value!="function";if(i||a){let f;if(i)try{f=s(t,t.state,t.context)}catch{return}else f=t.value,typeof f=="string"&&f.includes("{{")&&(f=Zt.call(t,f,t.state));let u=f==null?"":String(f);n.value!==u&&(n.value=u);return}let c=e||!(o&&o.__selectSynced);if(o&&(o.__selectSynced=!0),!c)return;let l=-1;for(let f=0;f<r.length;f++)r[f].defaultSelected&&(l=f);l>=0&&n.selectedIndex!==l&&(n.selectedIndex=l)}function CI(t,e){let{children:n,content:r}=t,o=t.childExtends,s=typeof n=="function",i=s||nI(t,"children");if(typeof n=="function"){let u=n,d=t.__ref,p=!1,g,h=zt(t,t.childrenDeps,u),m=K(()=>{let y=p;p=!0;let x;try{x=h(t,t.state,t.context)}catch(T){if(typeof console<"u"&&console.error){let O=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] \`children:\` factory threw at ${O}${y?"":" (initial run, treating as empty)"}:`,T?.message||T)}return}if(!y){g=x;return}if(x===t.children)return;_D(t,x),t.children=x,d.__mount&&d.__mount.chunkGen++;let k=typeof t.onContentUpdate=="function",C=k?[]:null,_=k?[]:null,b=k?[]:null;if(Array.isArray(x)&&t.childrenAs==="state"){let T=t.childProps,O=[],B=new Map;for(let J=0;J<x.length;J++){let Z=x[J],Q=T;if(typeof T=="function")try{Q=T(t,Z)}catch{Q=null}let it=XD(Q&&Q.key,Z,J,t);O.push(it),B.set(it,{rawChild:Z,childProps:Q})}let $=new Set(O),N=pD(d,d.__children.slice());for(let J of N)if(!$.has(J)){let Z=t[J];Z?.remove&&Z.remove(),delete t[J],_&&_.push(J)}let G=t.childExtends,nt=!(t.tag==="fragment")&&!!t.node,ot=null,st=new Set;for(let J of O){let Z=B.get(J),Q=Z.rawChild,it=t[J];if(it&&it.state){if(Q&&typeof Q=="object"){let yt=it.state,jt=yt.$replace||yt.replace,Ct=yt.$update||yt.update;try{if(typeof jt=="function")jt.call(yt,Q);else if(typeof Ct=="function"){for(let Pt in yt)if(!(Pt==="__element"||Pt==="root"||Pt==="parent"||Pt==="update")&&!Object.prototype.hasOwnProperty.call(Q,Pt))try{yt[Pt]=void 0}catch{}Ct.call(yt,Q)}else for(let Pt in Q)yt[Pt]=Q[Pt]}catch(Pt){if(typeof console<"u"&&console.error){let Ge=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${J}" failed to patch at ${Ge} (reconcile, keeping its previous data for this pass):`,Pt?.message||Pt)}}}if(b&&b.push(J),nt){let yt=jr(it);yt&&(ot=Bm(t,yt,ot))}continue}let rt=Q;(typeof Q=="string"||typeof Q=="number")&&(rt={value:Q,text:Q});let gt=Z.childProps,q=hd(gt?{...gt,state:rt}:{state:rt},G),W=typeof T=="function"?ad(gt):Io(t,"childProps"),Rt;try{Rt=Yt(si(q,W),t,J,e,nt?gd(t,ot):void 0)}catch(yt){if(typeof console<"u"&&console.error){let jt=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${J}" failed to construct at ${jt} (reconcile, skipping this row):`,yt?.message||yt)}st.add(J);continue}if(d.__disposed)return;if(nt){let yt=jr(Rt);yt&&(ot=yt)}C&&C.push(J)}nt&&NE(t,O,st.size?st:null),d.__children=st.size?O.filter(J=>!st.has(J)):O,k&&(C.length||_.length)&&Om(t,{added:C,removed:_,kept:b}),Ec(t,!1);return}if(t.childrenAs!=="state"&&d.__plainRows&&ct.rows.reconcile(t,d,x,e,k)){Ec(t,!1);return}let A=k?[...d.__children]:null;for(let T of pD(d,[...d.__children])){let O=t[T];O?.remove&&O.remove(),delete t[T]}d.__children=[],UD(t,x,e,0),Ec(t,!1),k&&Om(t,{added:[...d.__children],removed:A,kept:[]})},{depth:d.path.length,label:_t(d,"children")});d.__effects.push(m),n=g,_D(t,n),t.children=n}let a=ct.mount,c=a!==null?a.budgetOf(t,e):0,l=td(t.__ref),f=s?UD(t,n,e,c):$E(t,n,e,c,i);if(c&&td(t.__ref)>l){a.defer(t,c,()=>VD(t,e,n,r,o,f,c));return}VD(t,e,n,r,o,f,c)}function VD(t,e,n,r,o,s,i){let a=td(t.__ref);if(r!=null&&!(r&&r.__ref)){let c=r;typeof c=="string"||typeof c=="number"?c={text:c}:typeof c!="object"&&(c={}),t.childProps&&(c=ze(t.childProps,c)),c=hd(c,o);let l=cd(Io(t,"childProps"),Io(t,"content"));Pm(t,Yt(si(c,l),t,"content",e))}if(!(n&&!s)){if(i&&td(t.__ref)>a){ct.mount.defer(t,i,()=>zD(t,e,o,i));return}zD(t,e,o,i)}}function zD(t,e,n,r){let o=t.context?.components||{},s=t.__ref&&t.__ref.__runtimeSource,i=s?{}:null;{let l=Object.keys(t);for(let f=0;f<l.length;f++){let u=l[f];if(!u.endsWith("Extends")||typeof t[u]!="string")continue;let d=u.slice(0,-7);if(!d||d.charCodeAt(0)<65||d.charCodeAt(0)>90)continue;let p={extends:t[u]};delete t[u];for(let g=f+1;g<l.length;g++){let h=l[g],m=h.charCodeAt(0);if(m>=65&&m<=90||Gt.has(h)||typeof t[h]=="function"&&(h.startsWith("on")||h.startsWith(".")))break;let y=t[h];y!==void 0&&(p[h]=y,delete t[h],i&&id(s,h)&&(i[d]||(i[d]={}),i[d][h]=s[h]))}t[d]&&typeof t[d]=="object"?t[d]={...p,...t[d]}:t[d]=p}}let a=Object.keys(t),c=l=>{if(Gt.has(l)||typeof t[l]!="object"||t[l]===null)return!1;let f=l.charCodeAt(0);if(f<65||f>90)return!1;let u=t[l];if(u.__ref)return!1;if(!u.extends&&!u.extend){let p=o[l]||o[`smbls.${l}`];p&&(u={...u,extends:p})}t.childProps&&(u=ze(t.childProps,u)),u=hd(u,n);let d=s?cd(Io(t,"childProps"),cd(i[l]||null,Io(t,l))):null;Pm(t,Yt(si(u,d),t,l,e))};if(!r){for(let l of a)c(l);return}ct.mount.run(t,a.length,l=>c(a[l]),r)}function Ac(t,e,n){let{node:r}=t;if(!r)return;r.ref=t;let o=e?.tag==="fragment"?e.__ref?.__fragmentAnchor:null;if(o){let c=o.parentNode;if(c){if(n?.position==="before"&&n.node)c.insertBefore(r,n.node);else if(n?.position==="after"&&n.node){let l=n.node.nextSibling;c.insertBefore(r,l||o)}else c.insertBefore(r,o);lm();return}}let s=e?.node||(e?.nodeType?e:null);if(!s)return;if(!n&&ct.hydration!==null){let c=t.context&&t.context.__hydration;if(c&&ct.hydration.place(c,t,e,s,r))return}let i=n?.node,a=r.parentNode===s;if(i&&i.parentNode!==s)(!a||r.nextSibling)&&s.appendChild(r);else if(n?.position==="before"&&i)i!==r&&(!a||r.nextSibling!==i)&&s.insertBefore(r,i);else if(n?.position==="after"&&n.node){let c=n.node.nextSibling;c===r||(c?s.insertBefore(r,c):s.appendChild(r))}else(!a||r.nextSibling)&&s.appendChild(r);lm()}var Im=3;function Em(t){return!t||t.__inBeforeUpdate||(t.__beforeUpdateFailCount||0)>=Im?!1:(t.__inBeforeUpdate=!0,!0)}function nr(t,e){t&&(t.__inBeforeUpdate=!1,e?(t.__beforeUpdateFailCount=(t.__beforeUpdateFailCount||0)+1,t.__beforeUpdateFailCount===Im&&typeof console<"u"&&console.error&&console.error(`[DOMQL] onBeforeUpdate failed ${Im}x in a row on this element \u2014 pausing automatic retries until a future prop/state change re-arms it.`)):t.__beforeUpdateFailCount=0)}function Jt(t,e,n){let r=t.charAt(0).toLowerCase()+t.slice(1);er(r,e,n);let o="on"+t,s=e[o];if(typeof s=="function"){let c=t==="Render"?"__inRender":t==="RenderRouter"?"__inRenderRouter":null;if(c){if(e.__ref[c])return!0;e.__ref[c]=!0}let l=e.context?.designSystem;l&&mt(l);let f=!!c;try{let u=s(e,e.state,e.context,n);if(u&&typeof u.then=="function"){let d=e.__ref;return u.catch(p=>{dn(e,o,p)}).finally(()=>{c&&d&&(d[c]=!1)}),f=!1,!0}if(u===!1)return!1}catch(u){if(dn(e,o,u),e.context?.strictMode)throw u}finally{l&&ht(),f&&e.__ref&&(e.__ref[c]=!1)}}return!0}var md=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),PI=1e3,LI=24,FE=Object.freeze({}),UE=Object.freeze({}),Tc=0,jm=t=>{if(Et(t)||md(t,"__ref"))return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};function BE(t,e,n){if(t===null||typeof t!="object")return t;if(--Tc<0||e>LI){Tc=-1;return}if(Array.isArray(t)){let o=new Array(t.length);for(let s=0;s<t.length;s++)o[s]=n?t[s]:BE(t[s],e+1,!1);return o}if(n||!jm(t))return t;let r={};for(let o in t)md(t,o)&&(r[o]=BE(t[o],e+1,o==="extends"||o==="childExtends"));return r}function TI(t){Tc=PI;let e;try{e=BE(t,0,!1)}catch{return FE}return Tc<0?FE:e}function jE(t,e,n,r){if(t===e)return!0;if(t===null||typeof t!="object"||e===null||typeof e!="object"||--Tc<0||n>LI)return!1;if(Array.isArray(t)){if(!Array.isArray(e)||e.length!==t.length)return!1;for(let s=0;s<t.length;s++)if(r?t[s]!==e[s]:!jE(t[s],e[s],n+1,!1))return!1;return!0}if(r||Array.isArray(e)||!jm(t)||!jm(e))return!1;let o=0;for(let s in t)if(md(t,s)&&(o++,!md(e,s)||!jE(t[s],e[s],n+1,s==="extends"||s==="childExtends")))return!1;for(let s in e)md(e,s)&&o--;return o===0}function OI(t,e){if(e===FE||e===UE)return!1;Tc=PI;try{return jE(t,e,0,!1)}catch{return!1}}var Um=t=>Me()?ve(()=>TI(t)):TI(t),RI=(t,e)=>Me()?ve(()=>OI(t,e)):OI(t,e);function DI(t,e,n,r){let o=t;return o&&typeof o=="object"&&!Array.isArray(o)&&!jm(o)&&(r||n&&!o.ignoreChildExtends)&&(o=r?ze({},o):{...o}),typeof e=="function"?{item:o,props:r}:o}var II=t=>({childProps:typeof t.childProps=="function"?void 0:t.childProps,childExtends:t.childExtends}),Vm=class{constructor(e,n){this.shared=e,this.rows=n}add(e,n,r,o,s){this.rows.set(e,Um(DI(n,o,s,r.props)))}failed(e){this.rows.set(e,UE)}none(e){this.rows.delete(e)}},gW=Object.freeze([]);function mW(t,e,n,r,o){let s=e.__plainRows.rows,i=e.__plainRows.shared,a=II(t),c=RI(a,i),l=t.childProps,f=Io(t,"childProps"),u=t.childExtends,d=new Array(n.length),p=new Map;for(let w=0;w<n.length;w++){let S=ME(t,n[w],w,l,f,u,!1,!0);if(p.has(S.key))return!1;p.set(S.key,S),d[w]=S}for(let w=0;w<d.length;w++){let S=d[w];S.input=DI(n[w],l,u,S.props);let A=c?s.get(S.key):void 0;if(A===void 0)continue;let T=t[S.key];T&&T.__ref&&T.parent===t&&RI(S.input,A)&&(S.kept=!0,S.snap=A)}let g=o?[]:null;for(let w of s.keys()){let S=p.get(w);if(S&&S.kept)continue;let A=t[w];A?.remove&&A.remove(),delete t[w],g&&g.push(w)}let h=o?[]:null,m=o?[]:null,y=new Map,x=null,k=null;for(let w=0;w<d.length;w++){let S=d[w];if(S.kept){y.set(S.key,S.snap),m&&m.push(S.key);let O=jr(t[S.key]);O&&(k=Bm(t,O,k));continue}y.set(S.key,Um(S.input));let A;try{A=Yt(si(S.def,S.supplied),t,S.key,r,gd(t,k))}catch(O){if(y.set(S.key,UE),x||(x=new Set),x.add(S.key),typeof console<"u"&&console.error){let B=e.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${S.key}" failed to construct at ${B} (re-run, skipping this row):`,O?.message||O)}continue}if(e.__disposed)return!0;if(!A){y.delete(S.key);continue}let T=jr(A);T&&(k=T),h&&h.push(S.key)}e.__plainRows=new Vm(c?i:Um(a),y);let C=Array.from(y.keys());NE(t,C,x);let _=new Set(e.__children),b=[];for(let w=0;w<C.length;w++)_.has(C[w])&&b.push(C[w]);for(let w of e.__children)y.has(w)||b.push(w);return e.__children=b,o&&(h.length||g.length)&&Om(t,{added:h,removed:g,kept:m}),!0}var MI={track:t=>new Vm(Um(II(t)),new Map),reconcile(t,e,n,r,o){let s=Array.isArray(n)?n:n==null||n===!1?gW:null;return!!s&&mW(t,e,s,r,o)}};var zm=t=>{let e=t.__ref;if(e&&e.__hydrationPath!==void 0)return e.__hydrationPath;let n=t.parent,r=n&&n.__ref?zm(n):null,o=r===null?"":r?r+"."+t.key:String(t.key);return e&&(e.__hydrationPath=o),o},yW=new Set(["src","srcset"]),bW=new Set(["class","style","id","data-br"]),_W=new Set(["sizes","loading","fetchpriority","decoding","crossorigin","referrerpolicy","width","height"]),wW=new Set(["sizes","media","type","width","height"]),SW=t=>t==="img"?_W:t==="source"?wW:null,xW=t=>t.charCodeAt(0)===97&&t.startsWith("aria-")||t.charCodeAt(0)===100&&t.startsWith("data-")&&t!=="data-br"&&t!=="data-key",NI=(t,e)=>{for(let n of e){let r=t.nodes.get(n.target);r&&(r.delete(n.attributeName),r.size||t.nodes.delete(n.target))}},kW=(t,e,n)=>{let r=t.built;if(!r){let o=e.ownerDocument&&e.ownerDocument.defaultView&&e.ownerDocument.defaultView.MutationObserver||(typeof MutationObserver=="function"?MutationObserver:null);if(!o)return!1;let s=new Map;r=t.built={nodes:s,observer:null},r.observer=new o(i=>NI(r,i))}return r.nodes.set(e,new Set(n)),r.observer.observe(e,{attributes:!0,attributeFilter:n}),!0};function $o(t){let e=t&&t.built;if(!e)return 0;t.built=null,NI(e,e.observer.takeRecords()),e.observer.disconnect();let n=0;for(let[r,o]of e.nodes)for(let s of o)r.hasAttribute(s)&&(r.removeAttribute(s),n++);return e.nodes.clear(),n}function VE(t){let e=t?.context?.__hydration;if(!e)return null;let n=t.tag=tr(t);if(n==="string"||n==="fragment")return null;let r=zm(t),o=e.registry[r===""?"__root":r],s=o!==void 0?e.nodes[o]:null;if(!s||s.nodeType!==1||e.claimed.has(s))return o!==void 0&&e.misses++,null;let i=$r(n)&&(n==="svg"||t.parent?.node?.namespaceURI===ti),a=$r(n)&&!i&&n!=="svg"?"div":n,c=i?s.namespaceURI===ti:s.namespaceURI!==ti;if(s.localName!==a||!c)return e.misses++,null;e.claimed.add(s),e.adopted++;let l=e.pending;if(l&&l.delete(s)){let p=s.parentNode,g=p?(e.pendingIn.get(p)||1)-1:0;g>0?e.pendingIn.set(p,g):p&&e.pendingIn.delete(p)}let f=null,u=null,d=SW(s.localName);for(let p of Array.from(s.getAttributeNames?s.getAttributeNames():[]))yW.has(p)||p==="data-key"||(bW.has(p)||(u||(u=new Map)).set(p,s.getAttribute(p)),!(d&&d.has(p))&&(xW(p)?(f||(f=[])).push(p):s.removeAttribute(p)));if(f&&!kW(e,s,f))for(let p of f)s.removeAttribute(p);if(u&&t.__ref&&(t.__ref.__builtAttrs={node:s,values:u}),l){let p=0,g=0,h=s.firstChild,m=t.text!=null&&h&&h.nodeType===3&&!l.has(h)?h:null;m&&t.__ref&&(t.__ref.__builtText=m);for(let y=s.firstChild;y;){let x=y.nextSibling;y!==m&&!l.has(y)&&(y.nodeType===3?p++:y.nodeType!==8&&g++,s.removeChild(y)),y=x}(g||p>(t.text!=null&&!m?1:0))&&(e.whole||(e.whole=new Set)).add(t)}else for(;s.firstChild;)s.removeChild(s.firstChild);return s.localName==="img"&&s.complete&&s.naturalWidth>0&&vW(s),s}var EW=500;function vW(t){let e=!1,n=!1,r=o=>{o.isTrusted&&(n?o.stopImmediatePropagation():e=!0,t.removeEventListener("load",r,!0))};t.addEventListener("load",r,!0),setTimeout(()=>{if(!e){if(!(t.complete&&t.naturalWidth>0)){t.removeEventListener("load",r,!0);return}n=!0,t.dispatchEvent(new Event("load")),setTimeout(()=>t.removeEventListener("load",r,!0),EW)}},0)}function AW(t,e,n,r,o){if(o.parentNode===r&&t.claimed.has(o))return!0;let s=t.pendingIn;if(!s||!s.has(r))return!1;let i,a=n&&n.__ref,c=a&&a.__children,l=c?c.lastIndexOf(e.key):-1;for(let f=l-1;f>=0;f--){let u=n[c[f]],d=u&&u.node;if(d&&d!==o&&d.parentNode===r){i=d.nextSibling;break}}return i===void 0&&(i=Qu(r,a&&a.__textNode)),i===o||r.insertBefore(o,i),!0}function CW(t,e){let n=t.whole;if(!n)return!1;if(n.has(e))return!0;let r=e.parent;return!r||!n.has(r)?!1:(n.add(e),!0)}function TW(t,e){let n=e&&e.__ref,r=e&&e.node;if(!n||!r||!t.pending||!t.claimed.has(r))return null;let o=r.parentNode;return o?(t.claimed.delete(r),t.adopted--,t.pending.add(r),t.pendingIn.set(o,(t.pendingIn.get(o)||0)+1),n.__keepNode=!0,r):null}function OW(t,e){if(!e||!t.pending||!t.pending.delete(e))return;let n=e.parentNode;if(n){let r=(t.pendingIn.get(n)||1)-1;r>0?t.pendingIn.set(n,r):t.pendingIn.delete(n),e.remove()}}var $I={adopt:VE,place:AW,whole:CW,settle:$o,handBack:TW,settleHandBack:OW};var li=50;function ar(t){return t===!0?li:typeof t=="number"&&t>0?t:0}var Dn=[],Rc=!1,Fo=0,Ur=li,_d=!1,Wm=[],Km=typeof performance<"u"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),Hm=[],yd=null;function RW(t){if(!yd){let e=new MessageChannel;e.port1.onmessage=()=>{let n=Hm.shift();!Hm.length&&typeof e.port1.unref=="function"&&e.port1.unref(),n&&n()},yd=e}Hm.push(t),Hm.length===1&&typeof yd.port1.ref=="function"&&yd.port1.ref(),yd.port2.postMessage(0)}function KE(t){let e=typeof globalThis<"u"?globalThis.scheduler:null;if(e&&typeof e.yield=="function"){e.yield().then(t,t);return}if(typeof setImmediate=="function"){setImmediate(t);return}if(typeof MessageChannel=="function"){RW(t);return}setTimeout(t,0)}function cr(){return new Promise(t=>KE(t))}var bd=0,HE=0,WE=0,Oc=0;function qE(){bd=0,HE=Fo,WE=0,Oc=0}function FI(){if(!Fo)return!1;if(bd++,Oc>0)return Oc--,!1;let t=Km(),e=t-Fo,n=e/bd,r=(t-HE)/(bd-WE),o=r>n?r:n;HE=t,WE=bd;let s=Ur-e-o;return s<=0?(_d=!0,!0):(Oc=o>0?Math.floor(s/o/2):0,!1)}var ci=0;function BI(t=li){ci===0&&!Fo?(Fo=Km(),_d=!1,Ur=t,qE()):t<Ur&&(Ur=t,Oc=0),ci++}var He=null,zE=!1,PW=typeof queueMicrotask=="function"?queueMicrotask:t=>Promise.resolve().then(t);function GE(){Fo=0,_d=!1,Ur=li,qE()}function LW(){zE||(zE=!0,PW(()=>{zE=!1,ci===0&&GE()}))}function jI(){ci>0&&ci--,!(ci!==0||He!==null)&&(Rc?LW():GE())}function YE(t,e=li,n=null){let r={fn:t,budget:e,lease:n};He?He.push(r):Dn.push(r),Rc||(Rc=!0,KE(UI))}function XE(t){let e=t&&t.context;return e&&e.__mountLease||null}function wd(t){if(!t)return;let e=0;for(let n=0;n<Dn.length;n++){let r=Dn[n];r.lease!==t&&(Dn[e++]=r)}if(Dn.length=e,He){let n=0;for(let r=0;r<He.length;r++)He[r].lease!==t&&(He[n++]=He[r]);He.length=n}typeof t.lost=="function"&&t.lost()}function DW(t){if(t.lease!==null&&!t.lease.live()){wd(t.lease);return}let e=He;He=[];try{t.fn()}catch(n){typeof console<"u"&&console.error&&console.error("[smbls] deferred mount chunk failed:",n?.message||n)}finally{let n=He;He=e,n.length&&Dn.unshift(...n)}}function Te(){return!Rc&&!Dn.length?Promise.resolve():new Promise(t=>Wm.push(t))}function Bo(){return!Rc&&!Dn.length}function IW(){if(!Wm.length)return;let t=Wm;Wm=[];for(let e=0;e<t.length;e++)t[e]()}function UI(){for(Fo=Km(),_d=!1,Ur=1/0,qE();Dn.length;){let t=Dn.shift();if(t.budget<Ur&&(Ur=t.budget,Oc=0),DW(t),_d||Km()-Fo>=Ur)break}if(ci=0,GE(),Dn.length){KE(UI);return}Rc=!1,IW()}function qm(t){pc(t.__ref).pending++}function We(t){let e=t&&t.__ref,n=e&&e.__mount;if(!n||!(n.pending>0)||--n.pending>0||e.__disposed)return;let r=n.tail;r&&(n.tail=null,r())}function Gm(t){let e=t&&t.__ref&&t.__ref.__mount;return!!(e&&e.tail)}function Vr(t){let e=t&&t.__ref&&t.__ref.__mount;return!e||!e.tail?Promise.resolve(t):new Promise(n=>{(e.waiters||(e.waiters=[])).push(n)})}function ZE(t,e=t&&t.__ref){let n=e&&e.__mount,r=n&&n.waiters;if(r){n.waiters=null;for(let o=0;o<r.length;o++)r[o](t)}}function VI(t,e=t&&t.__ref){let n=e&&e.__mount;if(!n||!n.tail)return;n.tail=null,n.pending=0;let r=n.holder;n.holder=null,ZE(t,e),r&&We(r)}function MW(t,e){let n=e&&e.mountYield;if(!n&&!t.yieldChildren)return 0;let r=ct.hydration!==null&&t.context?t.context.__hydration:null;if(r&&ct.hydration.whole(r,t))return 0;let o=n?ar(n):0,s=ar(t.yieldChildren);return o&&s?o<s?o:s:o||s}function zI(t,e,n,r,o){BI(r);try{HI(t,t.__ref,0,e,n,r,o,!1)}finally{jI()}}function HI(t,e,n,r,o,s,i,a){try{for(let c=n;c<r;c++){let l=e.__mount,f=l?l.pending:0;if(o(c)===!1)continue;if(e.__disposed)break;let u=FI(),d=e.__mount;if(c+1<r&&(u||(d?d.pending:0)>f)){i&&i.onSuspend&&i.onSuspend(),a||qm(t);let p=c+1;YE(()=>NW(t,e,p,r,o,s,i),s,XE(t));return}}}catch(c){if(!a)throw c;Nm(t,c)}a&&We(t)}function NW(t,e,n,r,o,s,i){if(e.__disposed||i&&i.isStale&&i.isStale()){We(t);return}HI(t,e,n,r,o,s,i,!0)}function $W(t,e,n){qm(t),YE(()=>{try{let r=t.__ref;r&&!r.__disposed&&n()}catch(r){Nm(t,r)}finally{We(t)}},e,XE(t))}function FW(t,e,n,r){let o=t.__ref,s=pc(o),i=++s.chunkGen,a=t.node,c=[],l=!1;zI(t,e,f=>{let u=n(f,l?gd(t,BW(a,c)):void 0),d=WI(u);return d?c.push(d):u&&u.__ref.__mount&&u.__ref.__mount.held&&c.push(u),u},r,{isStale:()=>s.chunkGen!==i,onSuspend:()=>{l=!0}})}function WI(t){let e=jr(t);if(e)return e;let n=t&&t.__ref;return n&&n.__if!==!1&&t.tag==="fragment"&&n.__fragmentAnchor||null}function BW(t,e){for(let n=e.length-1;n>=0;n--){let r=e[n].__ref?WI(e[n]):e[n];if(r&&r.parentNode===t)return r}return null}function jW(t,e){let n=t.__ref;try{Ec(t,!0),ZD(t),vE(t,e)}finally{ZE(t,n);let r=n.__mount,o=r&&r.holder;o&&(r.holder=null,We(o))}}var KI={budgetOf:MW,run:zI,rows:FW,defer:$W,hold:qm,finish:jW,abandon:VI};function qI(){ct.viewEvents=sL,ct.chains=eL,ct.rows=MI,ct.hydration=globalThis.__SMBLS_BUILD_DROP_F_prerender__?null:$I,ct.mount=KI}qI();Mt();var fi="inertOutside",VW=new Set(["SCRIPT","STYLE","LINK","META","TEMPLATE","NOSCRIPT","BASE","TITLE"]),zW='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',HW={attributes:!0,attributeFilter:["inert"]},GI=new WeakMap,YI=new WeakMap,Sd=new Set,XI=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function jo(t){try{return ve(t)}catch(e){console.error("[smbls] inertOutside:",e)}}function ZI(t){let e=()=>jo(t);typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)}function WW(t){if(!t||!t.defaultView||!("activeElement"in t))return null;let e=GI.get(t);if(e)return e;let n=t.defaultView.MutationObserver||globalThis.MutationObserver;return typeof n!="function"?null:(e={doc:t,layers:[],held:new Map,top:null,observer:null},e.observer=new n(r=>jo(()=>Ym(e,r))),GI.set(t,e),e)}function JE(t,e){let n=t.element.node;return!!n&&n.nodeType===1&&n.isConnected&&n.ownerDocument===e}function KW(t){let e=t.activeElement;return e&&e!==t.body&&e!==t.documentElement?e:null}var JI=t=>!!(t.closest&&t.closest("[inert]"));function qW(t){let e=t.ownerDocument,n=new Set,r=[];for(let o=t;o!==e.body;o=o.parentNode){let s=o.parentNode;if(!s||s.nodeType!==1||s===e.documentElement)break;r.push(s);for(let i=s.firstElementChild;i;i=i.nextElementSibling)i!==o&&!VW.has(i.tagName)&&n.add(i)}return{outside:n,parents:r}}function QI(t,e){for(let n=0;n<e.length;n++){let{type:r,target:o}=e[n];r==="attributes"&&t.held.has(o)&&t.held.set(o,!o.hasAttribute("inert"))}}function Ym(t,e){let{doc:n,held:r,observer:o}=t;e&&QI(t,e),QI(t,o.takeRecords());let s=t.top,i=[];for(let u of t.layers){let d=JE(u,n);d&&!u.live&&(i.push(u),u.returnFocus=KW(n)),u.live=d}i.length&&(t.layers=t.layers.filter(u=>!i.includes(u)).concat(i));let a=null;for(let u=t.layers.length-1;u>=0&&!a;u--)t.layers[u].live&&(a=t.layers[u]);t.top=a;let{outside:c,parents:l}=a?qW(a.element.node):{outside:new Set,parents:[]};for(let[u,d]of r)c.has(u)||(d&&u.removeAttribute("inert"),r.delete(u));for(let u of c)r.has(u)||r.set(u,!1),u.hasAttribute("inert")||(u.setAttribute("inert",""),r.set(u,!0));o.takeRecords(),o.disconnect();for(let u of l)o.observe(u,{childList:!0});for(let u of r.keys())o.observe(u,HW);t.layers.some(u=>!u.live)?Sd.add(t):Sd.delete(t);for(let u of t.layers)!u.live&&!u.connecting&&!ic(u.element)&&(u.connecting=!0,Co(u.element,()=>jo(()=>{u.connecting=!1,u.declared&&!u.live&&JE(u,t.doc)&&Ym(t)})));if(a===s)return;let f=s&&!(s.declared&&s.live)?s:null;if(a&&i.includes(a))f&&f.returnFocus&&(a.returnFocus=f.returnFocus),ZI(()=>eM(t,a));else if(f){let u=f.returnFocus;ZI(()=>GW(t,f,u))}f&&(f.returnFocus=null)}function eM(t,e){let n=e.element.node;if(t.top!==e||!n||!n.isConnected)return;let r=t.doc,o=r.activeElement;if(o&&n.contains(o))return;let s=new Set,i=(a,c)=>{if(s.has(a)||(s.add(a),a.matches(":disabled")))return!1;let l=c&&a.getAttribute("tabindex");return l&&parseInt(l,10)<0?!1:(a.focus(),r.activeElement===a)};for(let a of n.querySelectorAll("[autofocus]"))if(i(a,!1))return;for(let a of n.querySelectorAll(zW))if(i(a,!0))return;o&&o!==r.body&&typeof o.blur=="function"&&o.blur()}function GW(t,e,n){if(e.declared&&e.live)return;let r=t.doc,o=r.activeElement,s=e.element.node;(!o||o===r.body||s&&s.contains(o)||JI(o))&&(n&&n.isConnected&&n.ownerDocument===r&&!JI(n)&&(n.focus({preventScroll:!0}),r.activeElement===n)||t.top&&eM(t,t.top))}function QE(t,e){if(t.declared===e)return;let n=t.manager;if(t.declared=e,t.live=!1,e)n.layers.push(t);else{let r=n.layers.indexOf(t);r!==-1&&n.layers.splice(r,1)}Ym(n)}function nM(t){let e=t[fi];if(typeof e=="function")try{e=e(t,t.state,t.context)}catch{e=!1}return!!e}function tM(t){let e=YI.get(t);if(e)return e;let n=t.__ref,r=t.node;if(!n||!r||r.nodeType!==1)return null;let o=WW(r.ownerDocument);if(!o)return null;e={element:t,manager:o,declared:!1,live:!1,connecting:!1,returnFocus:null},YI.set(t,e);let s=K(()=>{let i=nM(t);jo(()=>QE(e,i))},{depth:n.path.length,label:()=>n.path.join(".")+"::"+fi});return n.__effects||(n.__effects=[]),n.__effects.push(s),n.__eventCleanup||(n.__eventCleanup=[]),n.__eventCleanup.push(()=>jo(()=>QE(e,!1))),e}function YW(){for(let t of Sd){if(!t.doc.defaultView){Sd.delete(t);continue}t.layers.some(e=>!e.live&&JE(e,t.doc))&&Ym(t)}}var Xm={name:fi,create(t){if(XI(t,fi)){if(globalThis.__SMBLS_BUILD_DROP_F_inertOutside__)return qt(fi,t);jo(()=>tM(t))}},render(){globalThis.__SMBLS_BUILD_DROP_F_inertOutside__||Sd.size&&jo(YW)},update(t){if(XI(t,fi)){if(globalThis.__SMBLS_BUILD_DROP_F_inertOutside__)return qt(fi,t);jo(()=>{let e=tM(t);e&&QE(e,nM(t))})}}};var rM={blue:"#213eb0",green:"#389d34",red:"#e15c55",yellow:"#EDCB38",orange:"#e97c16",transparent:"rgba(0, 0, 0, 0)",black:"black",gray:"#4e4e50",white:"white",title:["gray-168","gray+168"],caption:["gray-68","gray+68"],paragraph:["gray-42","gray+42"],disabled:["gray-26","gray+26"],line:["gray-16","gray+16"],scrim:["black.45","black.55"],scrimSoft:["black.2","black.3"],blueDeep:"#0A5CB8",blueBright:"#47A8FF",accentInk:["blueDeep","blueBright"],greenDeep:"#2A6E28",greenBright:"#7FD07B",successInk:["greenDeep","greenBright"],redDeep:"#A83520",redBright:"#FF8C78",dangerInk:["redDeep","redBright"],orangeDeep:"#94500F",orangeBright:"#F4A45E",warningInk:["orangeDeep","orangeBright"],magentaDeep:"#A100A1",magentaBright:"#FF7AFF",magentaInk:["magentaDeep","magentaBright"]},oM={"gradient-blue-light":`linear-gradient(to right,
60
+ `):"")}}function BE(t,e){if(typeof t.html=="function"&&t.node&&!t.node.innerHTML&&gn(t,()=>{try{let n=t.html(t,t.state,t.context);n!=null&&typeof n!="function"&&(t.node.innerHTML=n)}catch{}}),Qt("Create",t,e),Qt("Complete",t,e),Qt("Render",t,e),Qt("RenderRouter",t,e),LE(t,e),typeof t.onFrame=="function"){let n=t.onFrame,r=t.context?.designSystem,o=()=>{if(t.node){if(t.node.isConnected){r&&mt(r);try{n(t,t.state,t.context)}catch(s){console.error("[DOMQL] onFrame error:",s)}finally{r&&ht()}}requestAnimationFrame(o)}};requestAnimationFrame(o)}}function jm(t,e){let n=e&&e.__ref&&e.__ref.__mount;!n||!n.tail||n.holder||(n.holder=t,st.mount.hold(t))}var B9=new Set(["childProps","attr","style","scope","data","vars"]);function SI(t,e,n,r,o,s){if(n&&!e.extends&&!e.extend){let h=n.indexOf("_"),m=n.indexOf("."),y=h>0?h:-1;if(m>0&&(y<0||m<y)&&(y=m),y>0){let x=n.substring(0,y),E=t.context?.components;E&&(E[x]||E["smbls."+x])?e={...e,extends:x}:E&&nt()&&(/^[A-Z]\w*_\d+$/.test(n)||/^[A-Z]\w*\.\w+$/.test(n))&&console.warn(`[smbls] auto-extend: key "${n}" looks like an instance of "${x}" but neither "${x}" nor "smbls.${x}" is registered in context.components \u2014 element will render as a plain <div>. Register the base component or rename the key.`)}}t.__ref&&(t.__ref.__mergeLayer=null),mc(t,e,s);let i=nE(t),a=t.props&&typeof t.props=="object"?t.props:null;for(let h in e)if(!(h==="parent"||h==="node"||h==="__ref"||h==="extends"||h==="context"||h==="props")){if(h==="key"){r&&(t.key=o?Hm(o,r):r);continue}i&&i.mark(h),wE(t,h,e[h])}if(a)for(let h in a)wE(t,h,a[h]);let c=e.props;if(c&&typeof c=="object"){for(let h in c)wE(t,h,c[h]);if(i)for(let h in c)i.mark(h)}oD(t),e.classlist!==void 0&&(t.classlist=e.classlist),e.text!==void 0&&(t.text=e.text),e.html!==void 0&&(t.html=e.html);let l=t.scope&&typeof t.scope=="object"?t.scope:null,f=o?.scope,u=t.context&&typeof t.context.globalScope=="object"&&t.context.globalScope||null,d=f||u||null;if(e.scope!==void 0||l){let h={};l&&Object.assign(h,l),e.scope!==void 0&&Object.assign(h,e.scope),t.scope=jp(h,d)}else d&&(t.scope=d);e.if!==void 0&&(t.if=e.if);let p=t.__ref,g=sW(t,p&&p.__runtimeSource);return p&&(p.__declaredArrays=g||void 0),kc(t),z9(t,o,e,s),e}function wE(t,e,n){let r=t[e],o=st.chains;if(o!==null&&o(t,e,r,n))return;let s=r&&n&&typeof r=="object"&&typeof n=="object"&&!Array.isArray(r)&&!Array.isArray(n);s&&e.charCodeAt(0)>=65&&e.charCodeAt(0)<=90?t[e]=Ke(r,n):s&&B9.has(e)?t[e]={...r,...n}:s&&bI(e)?t[e]=Ke(r,n):t[e]=n}var j9=new Set(["key","parent","context","__ref"]);function U9(t,e){for(let r of Object.keys(t))j9.has(r)||delete t[r];let n=e.definition;if(!n.extends&&!n.extend&&typeof e.key=="string"){let r=t.context?.components||{},o=r[e.key]||r["smbls."+e.key];o&&(n={...n,extends:o})}Te(()=>SI(t,n,e.key,e.ownKey,t.parent,e.options))}function V9(t,e,n){let r=n||{},o=a=>!!(r[a]||r["smbls."+a]),s=[],i=[];if(t.extends&&i.push(...Array.isArray(t.extends)?t.extends:[t.extends]),t.extend&&i.push(...Array.isArray(t.extend)?t.extend:[t.extend]),i.length){for(let a of i){if(typeof a!="string")continue;let c=a.includes(">")?a.split(">")[0].trim():a;o(c)||s.push(c)}return s}if(typeof e=="string"&&/^[A-Z]/.test(e)){let a=-1,c=e.indexOf("_"),l=e.indexOf(".");c>0&&(a=c),l>0&&(a<0||l<a)&&(a=l);let f=a>0?e.substring(0,a):e;o(f)||s.push(f)}return s}function SE(t,e,n){if(typeof t.onStateInit!="function"&&!rE(t,"stateInit"))return;let r=t.state;t.state=e;try{Qt("StateInit",t,n)}finally{t.state=r}}var xE=t=>({isDataOnlyKey:e=>po(t).has(e)});function z9(t,e,n,r){let o=!e,s=n.state&&typeof n.state=="object"&&!Array.isArray(n.state)&&Object.keys(n.state).length===0,i=o&&s&&t.context?.state,a=n.state!==void 0&&!i?n.state:t.state&&!Et(t.state)?t.state:void 0;if(a==null){if(e?.state)t.state=e.state,Ce(t,t.state);else if(t.context?.state){let c=t.context.state,l={...c},f=t.context?.polyglot;if(f?.translations){let u=t.context,d=c.lang||f.defaultLang||"en",p=new Set,g=(y,x)=>{p.has(y)||ys(u,y,l)&&(l[y]=x,p.add(y),Xn(u,y,x))},h=f.translations[d];if(h&&typeof h=="object")for(let y in h)g(y,h[y]);let m=new Set(Be(f,!1));for(let y in f.translations)m.has(y)||g(y,f.translations[y])}Et(l)||SE(t,l,r),t.state=Et(l)?l:yr(l,xE(t.context)),t.state.__element=t,t.state.root=t.state,Ce(t,t.state),xa?.(c,t.state),Qt("StateCreated",t,r)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),Ce(t,t.state);return}if(typeof a=="string"){if(t.state=kI(a,e),t.state&&typeof t.state=="object"&&!Et(t.state)){let c=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:c,enumerable:!1,configurable:!0,writable:!0})}Ce(t,t.state),W9(t,a,e),Qt("StateCreated",t,r);return}if(typeof a=="function"){let c=a(t,e?.state);if(Et(c))t.state=c;else{let l=c||{};SE(t,l,r),t.state=yr(l,e?.state?void 0:xE(t.context))}}else if(Et(a))t.state=a;else{let c={...a};SE(t,c,r),t.state=yr(c,e?.state?void 0:xE(t.context))}t.state.__element=t,e?.state?(t.state.parent=e.state,t.state.root=e.state.root||e.state):t.state.root=t.state,Ce(t,t.state),xa?.(a,t.state),Qt("StateCreated",t,r)}function MD(t,e){if(!e)return t;let n=e.split("/"),r=t;for(let o of n){if(r==null)return{};r=r[o]}return r??{}}function xI(t,e){let n=e.state;return t.startsWith("~/")?[n&&(n.root||n),t.slice(2)]:t.startsWith("../")?[n,t.slice(3)]:[n,t]}function kI(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")||t.startsWith("~/")){let[o,s]=xI(t,e);return s?MD(o,s):o??{}}if(e.state?.[t]!==void 0)return e.state[t];let n=MD(e.state,t);if(n!=null&&Object.keys(n).length>0)return n;let r=e.context?.polyglot;if(r?.translations){let o=e.state?.root?.lang||r.defaultLang||"en",s=r.translations[o];if(s?.[t]!==void 0)return s[t];if(r.translations[t]!==void 0)return r.translations[t]}return{}}function H9(t,e){let[n,r]=xI(t,e);if(!r||!n||typeof n!="object")return;let o=n[r];if(o!==void 0||r.indexOf("/")===-1)return o;let s=n;for(let i of r.split("/")){if(s==null||typeof s!="object")return;s=s[i]}return s}function W9(t,e,n){let r=t.__ref;if(!r||!n||e==="."||!Et(n.state))return;r.__stateBinding&&r.__stateBinding.dispose();let o=Te(()=>Y(()=>{let s=H9(e,n);!s||typeof s!="object"||s===t.state||Te(()=>EI(t,t.state,s,!0))},{depth:r.path?r.path.length:0,label:_t(r,"state")}));o._isStateBinding=!0,r.__stateBinding=o,r.__effects&&r.__effects.push(o)}function EI(t,e,n,r){let o=t.__ref;if(!o)return;if(r||t.state===e){t.state=n,r&&Ce(t,n),$D(o);let i=o.__children;if(i)for(let a=0;a<i.length;a++){let c=t[i[a]];c&&c.__ref&&c.parent===t&&EI(c,e,n,!1)}return}if(o.__stateBinding){o.__stateBinding._notify();return}let s=t.state;s&&typeof s=="object"&&s.parent===e&&(s.parent=n,$D(o))}function ND(t,e){let n=t.__ifParked;if(!n||!n.size)return e;for(let r of n)e.includes(r)||e.push(r);return e}function $D(t){let e=t.__effects;if(e)for(let n=0;n<e.length;n++){let r=e[n];r&&!r._disposed&&!r._isStateBinding&&!r._isSubscribeToEffect&&typeof r._notify=="function"&&r._notify()}}var K9=new Set(["s","state","ctx","context"]),kE=new WeakMap;function q9(t){if(kE.has(t))return kE.get(t);let e=null;try{let n=typeof Fe=="function"?Fe(t):Function.prototype.toString.call(t);if(typeof n=="string"){let r=n.match(/^\s*(?:async\s+)?([A-Za-z_$][\w$]*)\s*=>/)||n.match(/^[^(]*\(([^)]*)\)/);r&&(e={params:r[1].split(",").map(o=>o.trim())})}}catch{}return kE.set(t,e),e}function G9(t){let e=q9(t);return e?e.params.map(n=>n.split("=")[0].trim()).filter(Boolean):[]}var Y9=3,X9=/^(is|has)[A-Z0-9_$]/,Z9=new Set(["routerOptions"]),FD=new WeakSet;function J9(t,e){if(typeof t!="function"||t.length!==2||e&&(X9.test(e)||Z9.has(e))||FD.has(t))return!1;let n=G9(t);if(n.length<2)return!1;let r=n[1].replace(/[{}[\]]/g,"").trim();return r.length<Y9||K9.has(r)?!1:(FD.add(t),!0)}function Q9(t){let e=t.__ref,n=t.tag||"div",r=t.context?.designSystem,o=[],s=Object.keys(t);for(let i=0;i<s.length;i++){let a=s[i];if(typeof t[a]!="function"||Yt.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||hn(a)||xt[a]||Bt&&Bt.has(a)||c!==45&&(bn(n,a)||(nt()&&J9(t[a],a)&&console.warn(`[smbls] custom prop "${a}"${t.key?` on key "${t.key}"`:""} is a function \u2014 it will be auto-invoked on read and its RETURN VALUE stored, not preserved as a callable reference. If you meant to stash a callback, use el.call('${a}', \u2026) instead of reading el.${a}(\u2026) directly (see RULES.md Rule 8).`),o.push({prop:a,fn:t[a]})))}for(let i=0;i<o.length;i++){let{prop:a,fn:c}=o[i];e.__exec[a]=c,Object.defineProperty(t,a,{get(){r&&mt(r);try{return c(t,t.state,t.context)}catch{return}finally{r&&ht()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function tW(t,e){if(!(!Array.isArray(e)||e.length===0))for(let n=0;n<e.length;n++){let r=e[n];try{typeof r=="function"?r(t,t.state,t.context):typeof r=="string"&&t.state?.[r]}catch{}}}function Wt(t,e,n){return!Array.isArray(e)||e.length===0?n:function(...r){return tW(t,e),n.apply(this,r)}}function vc(t,e){if(!(!t||Array.isArray(t)||typeof t!="object"))return t[e]}function _t(t,e){return()=>t.path.join(".")+"::"+e}var BD=new Set;function re(t,e,n){if(!nt())return;let r=_t(t,e)();BD.has(r)||(BD.add(r),console.warn(`[smbls] "${e}" effect threw on ${t.path.join(".")} \u2014 keeping previous value:`,n?.message||n))}var jD=/(['"`])((?:\\.|(?!\1)[^\\])*)\1/g,UD=new WeakMap,eW=t=>{let e=UD.get(t);if(e!==void 0)return e;e=null;let n;try{n=String(t)}catch{n=""}if(n.includes("{{")){jD.lastIndex=0;let r;for(;(r=jD.exec(n))!==null;)r[2].includes("{{")&&(e||(e=[])).push(r[2])}return UD.set(t,e),e},nW=(t,e)=>{let n=eW(t);if(n)for(let r=0;r<n.length;r++)e.add(n[r])},rW=(t,e)=>!hn(t)&&!Fo(e,t),EE=(t,e,n,r,o)=>{if(typeof e=="string"){!o&&e.includes("{{")&&n.add(e);return}typeof e=="function"&&rW(t,r)&&nW(e,n)},DE=new WeakMap,hd=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),gd=t=>{if(typeof t=="string"||typeof t=="number")return{text:t};if(!t||typeof t!="object"||Array.isArray(t))return null;let e=t.props;return e&&typeof e=="object"&&!Array.isArray(e)?Ke(t,e):t},md=(t,e)=>t&&e?Ke(t,e):t||e||null,vI=(t,e)=>{let n=t.__ref&&t.__ref.__runtimeSource;return!!n&&hd(n,e)},jo=(t,e)=>vI(t,e)?gd(t.__ref.__runtimeSource[e]):null,li=(t,e)=>(e&&t&&typeof t=="object"&&DE.set(t,e),t),oW=t=>{if(!t||typeof t!="object")return;let e=DE.get(t);return e&&DE.delete(t),e},IE=(t,e,n)=>{if(typeof t=="string"){t.includes("{{")&&e.add(t);return}if(!(!t||typeof t!="object"||n.has(t))){if(n.add(t),Array.isArray(t)){for(let r=0;r<t.length;r++)IE(t[r],e,n);return}if(!t.__ref)for(let r of Object.keys(t)){if(r==="state")continue;let o=Object.getOwnPropertyDescriptor(t,r);o&&"value"in o&&IE(o.value,e,n)}}},sW=(t,e)=>{let n=null;for(let r of Object.keys(t)){if(Yt.has(r)||e&&hd(e,r))continue;let o=Object.getOwnPropertyDescriptor(t,r),s=o&&o.value;if(!Array.isArray(s))continue;let i=new Set;IE(s,i,new Set),i.size&&(n||(n=new Map),n.set(s,i))}return n},VD=(t,e)=>{if(Array.isArray(e))for(let n=t;n;n=n.parent){let r=n.__ref&&n.__ref.__declaredArrays,o=r&&r.get(e);if(!o)continue;let s=t.__ref;s.__authoredTemplates||(s.__authoredTemplates=new Set);for(let i of o)s.__authoredTemplates.add(i);return}},AI=["attr","aria","data","metadata"],iW=t=>{if(AI.includes(t))return!0;let e=t.charCodeAt(0);return e===46||e===33||e===64},aW=(t,e)=>{let n=new Set,r=t.tag||"div";for(let o of Object.keys(t)){let s=Object.getOwnPropertyDescriptor(t,o),i=s&&s.value,a=!!e&&hd(e,o);if(i&&typeof i=="object"&&!Array.isArray(i)){if(!iW(o))continue;let c=a?e[o]:null,l=c&&typeof c=="object"?c:null,f=o.charCodeAt(0)===46||o.charCodeAt(0)===33;for(let u in i){let d=a&&(!l||hd(l,u)),p=i[u];if(f&&p&&typeof p=="object"&&!Array.isArray(p)&&AI.includes(u)){for(let g in p)EE(g,p[g],n,r,d);continue}EE(u,p,n,r,d)}continue}EE(o,i,n,r,a)}return n};function TI(t,e){let n=t.__ref,r=!!(e&&e.skipIfEffect),o=aW(t,n.__runtimeSource);if(n.__authoredTemplates)for(let c of o)n.__authoredTemplates.add(c);else n.__authoredTemplates=o;if(Q9(t),typeof t.text=="function"){let c=t.text,l=Wt(t,t.textDeps,c),f=()=>{let d=l(t,t.state,t.context);return t.node&&typeof d=="string"&&d.includes("{{")&&(d=Jt.call(t,d,t.state)),d},u=Y(()=>{if(!n.contentManaged)try{let d=HD(t,n,f);if(d===Oe)return;t.node&&d!=null&&typeof d!="function"&&typeof d!="object"&&si(t,d)}catch(d){re(n,"text",d)}},{depth:n.path.length,label:_t(n,"text")});n.__effects.push(u),n.__exec.text=c}else if(typeof t.text=="string"&&t.text.includes("{{")){let c=t.text,l=()=>Jt.call(t,c,t.state),f=Y(()=>{if(n.contentManaged)return;let u=HD(t,n,l);u!==Oe&&(u!=null&&(t.text=u),t.node&&si(t,u??""))},{depth:n.path.length,label:_t(n,"text")});n.__effects.push(f),n.__exec.text=c}let s=t.tag||"div";for(let c of Object.keys(t))if(typeof t[c]=="function"&&!Yt.has(c)&&!hn(c)&&!n.__exec[c]&&!Nm(s,c)){if(xt[c]){let l=t[c],f=Wt(t,t[c+"Deps"],l),u=c,d,p=null,g=null,h,m=()=>{for(let E of g)t.node.classList.remove(E);g=null,h=void 0},y=()=>{DI(t,u,p,null),$m(t,u,null),p=null},x=Y(()=>{let E=t.context?.designSystem;E&&mt(E);try{let T=f(t,t.state,t.context);Am();let S;try{S=xt[u](T,t,t.state,t.context)}finally{Tm()}if(Array.isArray(S)){let w={};for(let b of S)if(b)for(let _ in b)w[_]=b[_];S=w}if(u==="show"||u==="hide"){t.node&&Vm(t,u,!!(S&&S.display),!0);return}if(S&&t.node&&fW(S)){let w=Tc(S);if(w===null||w!==h){h=w;let b=We(zo(t,S),null,t.context?.cssPrefix),_=b?b.split(" ").filter(Boolean):null;if(t.node.classList){if(g)for(let A of g)t.node.classList.remove(A);if(_&&_.length)for(let A of _)t.node.classList.add(A);g=_}}p&&y(),d=void 0}else if(S&&t.node){g&&m();let w=Tc(S);if(w===null||w!==d||!Cc(t.node,p,t)){d=w;let b=KD(t,S,p,u);p=dd(t.node,b,t),$m(t,u,p)}}else t.node&&(g&&m(),p&&y(),d=void 0)}finally{E&&ht()}},{depth:n.path.length,label:_t(n,u)});n.__effects.push(x),n.__exec[c]=l}else if(Bt&&Bt.has(c)){let l=t[c],f=Wt(t,t[c+"Deps"],l),u=c,d,p=null,g=Y(()=>{let h=t.context?.designSystem;h&&mt(h);try{let m=f(t,t.state,t.context);if(t.node)if(m!=null){let y=u+":"+String(m);if(y!==d||!Cc(t.node,p,t)){d=y;let x={[u]:m},E=KD(t,x);p=dd(t.node,E,t),$m(t,u,p)}}else d=void 0,p=null,$m(t,u,null),u==="display"?Sd(t,""):t.node.style[u]=""}finally{h&&ht()}},{depth:n.path.length,label:_t(n,u)});n.__effects.push(g),n.__exec[c]=l}else if(c.charCodeAt(0)===45){let l=t[c];MI(t,c,l,t[c+"Deps"],c),n.__exec[c]=l}}if(pW(t),typeof t.html=="function"){let c=t.html,l=Wt(t,t.htmlDeps,c),f=Y(()=>{gn(t,()=>{let u=l(t,t.state,t.context);t.node&&u!=null&&typeof u!="function"&&(t.node.innerHTML=u)})},{depth:n.path.length,label:_t(n,"html")});n.__effects.push(f),n.__exec.html=c}if(typeof t.value=="function"){let c=t.value,l=Wt(t,t.valueDeps,c),f=()=>{let d=l(t,t.state,t.context);return typeof d=="string"&&d.includes("{{")&&(d=Jt.call(t,d,t.state)),d},u=Y(()=>{try{let d=fr(t,n,"value",f);if(d===Oe)return;WD(t,d)}catch(d){re(n,"value",d)}},{depth:n.path.length,label:_t(n,"value")});n.__effects.push(u),n.__exec.value=c}else if(typeof t.value=="string"&&t.value.includes("{{")){let c=t.value,l=()=>Jt.call(t,c,t.state),f=Y(()=>{try{let u=fr(t,n,"value",l);if(u===Oe)return;WD(t,u)}catch(u){re(n,"value",u)}},{depth:n.path.length,label:_t(n,"value")});n.__effects.push(f),n.__exec.value=c}if(typeof t.style=="function"){let c=t.style,l=Wt(t,t.styleDeps,c),f,u=null,d,p,g,h,m=Y(()=>{let y=l(t,t.state,t.context),x=t.context&&t.context.designSystem,E;if(y&&typeof y=="object"&&y===d&&x===g){let S=Tc(y);E=S!==null&&S===p?h:ai(t,y),p=S}else E=ai(t,y),p=void 0;d=y,g=x,h=E;let T=Tc(E);(T===null||T!==f||!Cc(t.node,u,t))&&(f=T,ME(t.node,u,E,t),dr(t.node,E,t),u=dd(t.node,E,t))},{depth:n.path.length,label:_t(n,"style")});n.__effects.push(m),n.__exec.style=c}else if(t.style&&typeof t.style=="object")for(let c in t.style){let l=t.style[c];if(typeof l!="function")continue;let f=Wt(t,vc(t.styleDeps,c),l),u,d=null,p=Y(()=>{try{let g=f(t,t.state,t.context);if(t.node){let h=c+":"+String(g);if(h!==u||!Cc(t.node,d,t)){u=h;let m=ai(t,{[c]:g});ME(t.node,d,Object.assign({},m,{[c]:""}),t),dr(t.node,m,t),d=dd(t.node,m,t)}}}catch(g){re(n,"style."+c,g)}},{depth:n.path.length,label:_t(n,"style."+c)});n.__effects.push(p)}if(t.attr&&typeof t.attr=="object"){for(let c in t.attr)if(typeof t.attr[c]=="function"){let l=Wt(t,vc(t.attrDeps,c),t.attr[c]),f=c,u=f.toLowerCase(),d=()=>{let g=l(t,t.state,t.context);return typeof g=="string"&&g.includes("{{")&&(g=Jt.call(t,g,t.state)),g},p=Y(()=>{try{let g=fr(t,n,u,d);if(g===Oe)return;t.node?.setAttribute&&ii(t.node,f,g)}catch(g){re(n,"attr."+f,g)}},{depth:n.path.length,label:_t(n,"attr."+f)});p._attrName=f.toLowerCase(),n.__effects.push(p)}else if(typeof t.attr[c]=="string"&&t.attr[c].includes("{{")){let l=t.attr[c],f=c,u=f.toLowerCase(),d=()=>Jt.call(t,l,t.state),p=Y(()=>{try{let g=fr(t,n,u,d);if(g===Oe||!t.node||!t.node.setAttribute)return;t.node.setAttribute(f,lr(f,g??""))}catch(g){re(n,"attr."+f,g)}},{depth:n.path.length,label:_t(n,"attr."+f)});p._attrName=f.toLowerCase(),n.__effects.push(p)}}if(t.aria&&typeof t.aria=="object")for(let c in t.aria){let l=t.aria[c];if(typeof l=="string"&&l.includes("{{")){let g=l,h="aria-"+c.replace(/[A-Z]/g,x=>"-"+x.toLowerCase()),m=()=>Jt.call(t,g,t.state),y=Y(()=>{try{let x=fr(t,n,h,m);if(x===Oe||!t.node||!t.node.setAttribute)return;t.node.setAttribute(h,lr(h,x??""))}catch(x){re(n,"aria."+c,x)}},{depth:n.path.length,label:_t(n,"aria."+c)});y._attrName=h,n.__effects.push(y);continue}if(typeof l!="function")continue;let f=Wt(t,vc(t.ariaDeps,c),t.aria[c]),u="aria-"+c.replace(/[A-Z]/g,g=>"-"+g.toLowerCase()),d=()=>f(t,t.state,t.context),p=Y(()=>{try{let g=fr(t,n,u,d);if(g===Oe||!t.node?.setAttribute)return;ii(t.node,u,g)}catch(g){re(n,"aria."+c,g)}},{depth:n.path.length,label:_t(n,"aria."+c)});p._attrName=u,n.__effects.push(p)}if(t.data&&typeof t.data=="object")for(let c in t.data){let l=t.data[c];if(typeof l=="string"&&l.includes("{{")){let h=l,m="data-"+c.replace(/[A-Z]/g,E=>"-"+E.toLowerCase()),y=()=>Jt.call(t,h,t.state),x=Y(()=>{try{let E=fr(t,n,m,y);if(E===Oe||!t.node||!t.node.setAttribute)return;t.node.setAttribute(m,E??"")}catch(E){re(n,"data."+c,E)}},{depth:n.path.length,label:_t(n,"data."+c)});x._attrName=m,n.__effects.push(x);continue}if(typeof l!="function")continue;let f=Wt(t,vc(t.dataDeps,c),t.data[c]),d="data-"+c.replace(/[A-Z]/g,h=>"-"+h.toLowerCase()),p=()=>f(t,t.state,t.context),g=Y(()=>{try{let h=fr(t,n,d,p);if(h===Oe||!t.node?.setAttribute)return;h==null||h===!1?t.node.removeAttribute(d):typeof h!="function"&&typeof h!="object"&&t.node.setAttribute(d,h===!0?"":h)}catch(h){re(n,"data."+c,h)}},{depth:n.path.length,label:_t(n,"data."+c)});g._attrName=d,n.__effects.push(g)}let i=t.classlist&&typeof t.classlist=="object"&&!Array.isArray(t.classlist)?t.classlist:t.class&&typeof t.class=="object"&&!Array.isArray(t.class)?t.class:null;if(i)for(let c in i){if(typeof i[c]!="function")continue;let l=Wt(t,vc(t.classDeps,c),i[c]),f=Y(()=>{try{let u=l(t,t.state,t.context);if(!t.node?.classList)return;typeof u=="string"?t.node.classList.add(u):u?t.node.classList.add(c):t.node.classList.remove(c)}catch(u){re(n,"class."+c,u)}},{depth:n.path.length,label:_t(n,"class."+c)});n.__effects.push(f)}!r&&typeof t.if=="function"&&OI(t,n,t.if);for(let c of Object.keys(t)){if(Yt.has(c)||typeof t[c]!="function")continue;let l=c.charCodeAt(0);if(l>=65&&l<=90||hn(c))continue;let f=t[c];n.__exec[c]=f;let u=t.tag||"div";if(bn(u,c)&&!Fo(u,c)){let d=Hr(c)||c,p=Wt(t,t[c+"Deps"],f),g=d.toLowerCase(),h=()=>{let y=p(t,t.state,t.context);return typeof y=="string"&&y.includes("{{")&&(y=Jt.call(t,y,t.state)),y},m=Y(()=>{try{let y=fr(t,n,g,h);if(y===Oe)return;let x=$o[c];if(x&&y!=null){let E=x(t);E!==void 0&&(y=E)}t.node?.setAttribute&&ii(t.node,d,y,!0)}catch(y){re(n,c,y)}},{depth:n.path.length,label:_t(n,c)});m._attrName=d.toLowerCase(),n.__effects.push(m)}}let a=t.tag||"div";for(let c of Object.keys(t)){if(Yt.has(c))continue;let l=t[c];if(typeof l!="string"||!l.includes("{{"))continue;let f=c.charCodeAt(0);if(f>=65&&f<=90||hn(c)||Fo(a,c)||$o[c]||!bn(a,c))continue;let u=Hr(c)||c,d=u.toLowerCase(),p=()=>Jt.call(t,l,t.state),g=Y(()=>{try{let h=fr(t,n,d,p);if(h===Oe||!t.node||!t.node.setAttribute)return;t.node.setAttribute(u,lr(u,h??""))}catch(h){re(n,c,h)}},{depth:n.path.length,label:_t(n,c)});g._attrName=u.toLowerCase(),n.__effects.push(g)}if(wW(t),PW(t),typeof t.onStateUpdate=="function"&&Array.isArray(t.stateDeps)){let c=t.onStateUpdate,l=t.stateDeps,f=!1,u=[],d=Y(()=>{let p=[];for(let m=0;m<l.length;m++){let y=l[m];try{p[m]=typeof y=="function"?y(t,t.state,t.context):t.state?.[y]}catch{p[m]=void 0}}if(!f){f=!0,u=p;return}let g=p.length!==u.length;for(let m=0;!g&&m<p.length;m++)p[m]!==u[m]&&(g=!0);let h=u;u=p,g&&gn(t,()=>{try{c(t,t.state,t.context,{prev:h,next:p})}catch(m){if(mn(t,"onStateUpdate",m),t.context?.strictMode)throw m}})},{depth:n.path.length,label:_t(n,"onStateUpdate")});n.__effects.push(d)}vW(t)}function zD(t){let e=t.parent,n=e?.node;if(!n||!t.node){Dc(t,t.parent);return}let r=null,o=Object.keys(e),s=o.indexOf(t.key);for(let a=s+1;a<o.length;a++){let c=e[o[a]];if(c?.node?.parentNode===n){r=c.node;break}}t.node.parentNode===n&&t.node.nextSibling===r||(r?n.insertBefore(t.node,r):n.appendChild(t.node)),_m()}function CI(t){RI(t),$W(t),zI(t),YW(t),GW(t)}function OI(t,e,n){let r=Wt(t,t.ifDeps,n),o=Y(()=>{let s=!e.__ifInitialized&&e.__ifLateMerge;if(s){let c=t.context?.components||{};s.names.some(l=>c[l]||c["smbls."+l])&&(e.__ifLateMerge=null,U9(t,s),r=Wt(t,t.ifDeps,typeof t.if=="function"?t.if:n))}let i;try{i=r(t,t.state,t.context)}catch(c){if(i=!1,e.__ifError=c,typeof console<"u"&&console.warn){let l=t.key||t.tag||"?";console.warn(`[smbls] \`if:\` reactive effect threw on ${l} \u2014 treating as false:`,c?.message||c)}return}let a=e.__if;if(e.__if=!!i,a&&!e.__if&&t.node){t.node.remove();try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(c){console.error("[smbls] onRemove error:",c)}}else if(!a&&e.__if)if(e.__ifInitialized)t.node||(t.node=Mo(t)),t.node&&(t.node.ref=t),zD(t),RI(t),zI(t),Qt("Render",t,{}),LE(t,{});else{e.__ifInitialized=!0,e.__ifLateMerge=null,t.tag||(t.tag=ir(t)),Qt("Init",t,{});let c=st.hydration;if(t.node||(t.node=c!==null&&c.adopt(t)||Mo(t)),!t.node)return;if(t.parent?.__ref?.__children&&!t.parent.__ref.__children.includes(t.key)&&t.parent.__ref.__children.push(t.key),t.parent?.__ref?.__ifParked&&t.parent.__ref.__ifParked.delete(t.key),t.tag==="fragment"&&!e.__fragmentAnchor){let f=(t.context?.document||globalThis.document).createComment("");t.node.appendChild(f),e.__fragmentAnchor=f}Qt("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),YI(t,{}),TI(t,{skipIfEffect:!0}),CI(t),ZI(t,{}),zD(t),Qt("Create",t,{}),Qt("Complete",t,{}),Qt("Render",t,{}),Qt("RenderRouter",t,{}),LE(t,{})}},{depth:e.path.length,label:_t(e,"if")});e.__effects.push(o)}var Oe=Symbol("builtTextKept");function HD(t,e,n){let r=e.__builtText;if(!r)return n();if(r.parentNode!==t.node||typeof bo!="function")return e.__builtText=null,n();let{value:o,ready:s}=bo(n);return s?o:Oe}function fr(t,e,n,r){let o=e.__builtAttrs;if(!o||!o.values.has(n))return r();let s=t.node;if(s!==o.node||typeof bo!="function")return e.__builtAttrs=null,r();let{value:i,ready:a}=bo(r);return a?(o.values.delete(n),o.values.size||(e.__builtAttrs=null),i):(s.setAttribute(n,o.values.get(n)),Oe)}function si(t,e){let n=t.node;if(!n)return;t.__ref&&t.__ref.__builtText&&(t.__ref.__builtText=null);let r=e==null||typeof e=="object"?"":String(e);if(t.tag==="string"){n.nodeValue!==r&&(n.nodeValue=r);return}let o=t.__ref,s=o?o.__textNode:null;if(s&&s.parentNode!==n&&(s=null),!s){let i=n.firstChild;i&&i.nodeType===3&&(s=i)}s?s.nodeValue!==r&&(s.nodeValue=r):n.firstChild?(s=(n.ownerDocument||t.context?.document||globalThis.document).createTextNode(r),n.insertBefore(s,n.firstChild)):(n.textContent=r,s=n.firstChild&&n.firstChild.nodeType===3?n.firstChild:null),o&&(o.__textNode=s||null)}function cW(t,e){return e!=="checked"||!t||t.tagName!=="INPUT"?null:t.hasAttribute("checked")}function lW(t,e){if(e===null)return;let n=t.hasAttribute("checked");n!==e&&t.checked!==n&&(t.checked=n)}function ii(t,e,n,r){n==null||n===!1&&!ci(e)?Um(t,e,null):typeof n=="function"||typeof n=="object"||(r&&e==="src"&&"src"in t?t.src=n:Um(t,e,lr(e,n)))}function Um(t,e,n){let r=cW(t,e);n==null?t.removeAttribute(e):t.setAttribute(e,n),lW(t,r)}function WD(t,e){let n=t.node;if(!n||!("value"in n))return;let r=e==null?"":String(e);if(n.value===r)return;let o=n.ownerDocument,s=!!o&&o.activeElement===n,i=s&&typeof n.selectionStart=="number"?n.selectionStart:null,a=s&&typeof n.selectionEnd=="number"?n.selectionEnd:null;if(n.value=r,s&&i!=null&&a!=null)try{n.setSelectionRange(i,a)}catch{}let c=t.__ref&&t.__ref.__autoGrow;c&&c.active&&c.resize()}function RI(t){let{node:e}=t;if(e){if((typeof t.text=="string"&&!t.text.includes("{{")||typeof t.text=="number")&&si(t,t.text),KI(t),typeof t.html=="string"&&(e.innerHTML=t.html),t.value!=null&&typeof t.value!="function"&&!(typeof t.value=="string"&&t.value.includes("{{"))&&"value"in e){let n=String(t.value);e.value!==n&&(e.value=n)}if(t.style&&typeof t.style=="object"){let n=t.style;for(let r in t.style)if(typeof t.style[r]=="function"){n={};for(let o in t.style)typeof t.style[o]!="function"&&(n[o]=t.style[o]);break}dr(e,ai(t,n),t)}if(t.attr&&typeof t.attr=="object")for(let n in t.attr){let r=t.attr[n];typeof r=="function"||typeof r=="object"||r!=null&&(typeof r=="string"&&r.includes("{{")||r===!1&&!ci(n)||e.setAttribute&&e.setAttribute(n,lr(n,r)))}if(typeof t.themeModifier=="string"&&t.themeModifier&&e.setAttribute&&e.setAttribute("data-theme",t.themeModifier),t.data&&typeof t.data=="object")for(let n in t.data){let r=t.data[n];typeof r=="function"||typeof r=="object"||r==null||r===!1||typeof r=="string"&&r.includes("{{")||e.dataset&&(e.dataset[n]=r===!0?"":r)}if(t.classlist||t.class){let n=t.classlist||t.class;if(typeof n=="string")n.split(" ").forEach(r=>r&&e.classList.add(r));else if(typeof n=="object")for(let r in n){let o=typeof n[r]=="function"?n[r](t,t.state,t.context):n[r];o&&e.classList.add(typeof o=="string"?o:r)}}}}function Tc(t){if(t==null||typeof t!="object")return"s:"+String(t);try{return"o:"+JSON.stringify(t)}catch{return null}}function fW(t){if(!t||typeof t!="object")return!1;for(let e in t){let n=t[e];if(n&&typeof n=="object"&&!Array.isArray(n))return!0}return!1}function dd(t,e,n){if(!t||!t.style||!e)return null;let r=t.style,o=[];for(let s in e){if(e[s]==null||s.charAt(0)==="&")continue;let a=ur(s);o.push(a,Ic(n,r,a),VE(n,r,a))}return o}function PI(t,e){return typeof t.getPropertyValue=="function"?t.getPropertyValue(e):""}function LI(t,e){return typeof t.getPropertyPriority=="function"?t.getPropertyPriority(e):""}function ur(t){return Ur(t)}function ME(t,e,n,r){if(!t||!t.style||!e||!e.length)return;let o=t.style,s=new Set;if(n&&typeof n=="object")for(let i in n)n[i]==null||i.charAt(0)==="&"||s.add(ur(i));for(let i=0;i<e.length;i+=3){let a=e[i];s.has(a)||Ic(r,o,a)===e[i+1]&&(r&&a==="display"?Sd(r,""):typeof o.removeProperty=="function"&&o.removeProperty(a))}}function $m(t,e,n){let r=t.__ref;r&&(n?(r.__heldInline||(r.__heldInline=new Map)).set(e,n):r.__heldInline&&r.__heldInline.delete(e))}function uW(t,e,n){if(t.__heldInline){for(let[r,o]of t.__heldInline)if(r!==e){for(let s=0;s<o.length;s+=3)if(o[s]===n)return!0}}return!1}function DI(t,e,n,r){let o=t.__ref,s=t.node;if(!o||!n||!s||!s.style)return;let i=o.__inlineCssKeys,a=null;for(let u=0;u<n.length;u+=3){let d=n[u];r&&r.has(d)||uW(o,e,d)||(a||(a=[]),a.push(u),i&&i.delete(d))}if(!a)return;let c=i&&jE(t,i),l=s.style,f=[];for(let u of a){let d=n[u];c&&c[d]!==void 0||Ic(t,l,d)===n[u+1]&&f.push(d)}for(let u of f)u==="display"?Sd(t,""):typeof l.removeProperty=="function"&&l.removeProperty(u)}function dW(t,e,n){let r=[];for(let i=0;i<e.length;i+=3)r.push(e[i]);let o=!1;for(let i in n){let a=Io[i];r.some(c=>a.includes(c))&&(o=!0,r.includes(i)||r.push(i))}if(!o)return;let s=t.node.style;e.length=0;for(let i of r)e.push(i,Ic(t,s,i),VE(t,s,i))}function Cc(t,e,n){if(!e||!t||!t.style)return!1;let r=t.style;for(let o=0;o<e.length;o+=3)if(Ic(n,r,e[o])!==e[o+1]||VE(n,r,e[o])!==e[o+2])return!1;return!0}var yd=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,II=t=>typeof t=="number"||t===!0||typeof t=="string"&&t!=="",Km=t=>yd(t)?t:"--"+t;function qm(t,e){if(!Uo(t))return null;let n=null;for(let r of Object.keys(t)){if(!r)continue;let o=t[r];if(typeof o=="function"){if(!e)continue;o=o(e,e.state,e.context)}II(o)&&(n||(n={}),n[Km(r)]=o)}return n}function MI(t,e,n,r,o){NI(t,o,Wt(t,r,n),s=>II(s)?{[e]:s}:null)}function NI(t,e,n,r,o){let s=t.__ref,i,a=null,c=Y(()=>{gn(t,()=>{try{let l=r(n(t,t.state,t.context)),f=t.node;if(!f||!f.style)return;let u=Tc(l);(u===null||u!==i||!Cc(f,a))&&(i=u,ME(f,a,l),l&&dr(f,zo(t,l)),a=l?dd(f,l):null,o&&o(l))}catch(l){re(s,e,l)}})},{depth:s.path.length,label:_t(s,e)});s.__effects.push(c)}function pW(t){let e=t.__ref,n=t.vars;if(typeof n=="function"){hW(t,n),e.__exec.vars=n;return}if(Uo(n))for(let r of Object.keys(n)){let o=n[r];!r||typeof o!="function"||MI(t,Km(r),o,vc(t.varsDeps,r),"vars."+r)}}function hW(t,e){let n=t.__ref;NI(t,"vars",Wt(t,t.varsDeps,e),r=>qm(r),r=>{n.__varsInline=r?new Set(Object.keys(r)):null})}function NE(t,e){if(typeof t[e]=="function"&&(Fo(t.tag||"div",e)||e.charCodeAt(0)===45))return!0;if(!yd(e))return!1;let n=t.vars;if(typeof n=="function"){let r=t.__ref&&t.__ref.__varsInline;return!!(r&&r.has(e))}if(!Uo(n))return!1;for(let r of Object.keys(n))if(typeof n[r]=="function"&&Km(r)===e)return!0;return!1}function gW(t){let e=null;for(let n in t)t[n]!=null&&n.charAt(0)!=="&"&&(e||(e=new Set),e.add(ur(n)));return e}function mW(t,e,n,r){let o=t.__ref;if(!o)return;let s=null;if(n)for(let i of n){if(r&&r.has(i))continue;let a=e[i];if(a==null||typeof a=="object")continue;let c=ur(i);Io[c]&&(s||(s={}),s[c]=a)}o.__declaredLonghands=s}function jE(t,e){let n=t.__ref,r=n&&n.__declaredLonghands;if(!r||!e)return null;let o=null;for(let s in r){if(e.has(s))continue;let i=Io[s],a=!1;for(let c=0;c<i.length;c++)if(e.has(i[c])){a=!0;break}a&&(o||(o={}),o[s]=r[s])}return o}function KD(t,e,n,r){let o=t.node,s=gW(e),i=s&&jE(t,s);if(n&&DI(t,r,n,i?new Set([...s,...Object.keys(i)]):s),dr(o,e,t),!s)return e;let a=t.__ref;if(a)if(a.__inlineCssKeys)for(let c of s)a.__inlineCssKeys.add(c);else a.__inlineCssKeys=new Set(s);return i?(dr(o,zo(t,i)),Object.assign({},e,i)):e}function yW(t){let e=t.__ref;if(!e||!e.__inlineCssKeys||!e.__declaredLonghands)return;let n=jE(t,e.__inlineCssKeys);if(!n)return;let r=[];if(e.__heldInline)for(let o of e.__heldInline.values())Cc(t.node,o,t)&&r.push(o);dr(t.node,zo(t,n));for(let o of r)dW(t,o,n)}function ai(t,e){return!e||typeof e!="object"?e:gn(t,()=>{try{return tE(e,t)}catch{return e}})}var $I="none",UE=t=>!!(t&&t.__hiddenBy&&t.__hiddenBy.size),qD=t=>PI(t,"display")===$I&&LI(t,"display")==="important";function FI(t,e){e?t.setProperty("display",e[0],e[1]):typeof t.removeProperty=="function"?t.removeProperty("display"):t.display=""}function Vm(t,e,n,r){let o=t.__ref,s=t.node;if(!o||!s||!s.style)return;let i=o.__hiddenBy,a=!!(i&&i.size);n?(i||(i=o.__hiddenBy=new Set),i.add(e)):i&&i.delete(e);let c=s.style;i&&i.size?qD(c)||c.setProperty("display",$I,"important"):(a||r&&qD(c))&&FI(c,o.__shownDisplay||null)}function Sd(t,e,n){let r=t.__ref,o=e?[String(e),n||""]:null;r&&(r.__shownDisplay=o);let s=t.node;!s||!s.style||UE(r)||FI(s.style,o)}function Ic(t,e,n){let r=n==="display"&&t&&t.__ref;return UE(r)?r.__shownDisplay?r.__shownDisplay[0]:"":PI(e,n)}function VE(t,e,n){let r=n==="display"&&t&&t.__ref;return UE(r)?r.__shownDisplay?r.__shownDisplay[1]:"":LI(e,n)}function dr(t,e,n){if(!t||!e||!t.style)return;n&&(e=zo(n,e));let r=null;for(let o in e){let s=e[o];if(s!=null){if(o.charAt(0)==="&"&&typeof s=="object"){r||(r={}),r[o]=s;continue}try{let i=String(s);if(typeof s=="object"&&i==="[object Object]")continue;let a=Ur(o),c=i.trim(),l=/\s*!important\s*$/.test(c),f=c.replace(/\s*!important\s*$/,"");if(n&&a==="display"){Sd(n,f,l?"important":"");continue}t.style.setProperty(a,f,l?"important":"")}catch{}}}r&&bW(t,r)}function bW(t,e){let n=`_ds${pI.scopedStyleId++}`;t.classList.add(n);let r=t.ownerDocument,o=r.querySelector("style[data-smbls-scoped]");o||(o=r.createElement("style"),o.setAttribute("data-smbls-scoped",""),r.head.appendChild(o));let s="";for(let i in e){let a="."+n,c=jr(i.replace(/&/g,a)).map(f=>f.includes(a)?f:a+f).join(", "),l=e[i];if(typeof l=="object"){let f="",u="";for(let d in l){let p=l[d];if(typeof p=="object"){let g=jr(c),h=d.includes("&")?g.map(y=>d.replace(/&/g,y)).join(", "):g.map(y=>`${y} ${d}`).join(", "),m="";for(let y in p)m+=`${ur(y)}: ${p[y]};`;u+=Br(`${h} { ${m} }`,h)+`
61
+ `}else f+=`${ur(d)}: ${p};`}f&&(s+=Br(`${c} { ${f} }`,c)+`
62
+ `),u&&(s+=u)}}s&&(o.textContent+=s)}var GD=new Set;function YD(t){if(!Array.isArray(t))return"";let e=[];for(let n=0;n<t.length;n++)typeof t[n]=="string"&&t[n].length&&e.push(t[n]);return e.sort(),e.join("|")}function _W(t,e,n){let r=YD(n);queueMicrotask(()=>{if(!t.__ref)return;let o;try{o=e(t,t.state,t.context)}catch{return}if(YD(o)===r)return;let s=t.__ref.path?t.__ref.path.join("."):t.key||"?";GD.has(s)||(GD.add(s),console.warn(`[smbls] subscribeTo function at "${s}" resolved to a DIFFERENT key list one microtask after create \u2014 wired [${n.join(", ")||"(none)"}], probed [${Array.isArray(o)?o.join(", "):String(o)}]. subscribeTo's function form is resolved ONCE at element-create time (registerSubscribeToEffects, @symbo.ls/element core.js) \u2014 this element stays wired to the ORIGINAL list for its whole lifetime, so this drift is invisible to the reactive effect and any key only present in the new list will never trigger onUpdate. If the watched key genuinely is not known until later (e.g. a module config that loads after shell boot), route the write through an imperative call instead of subscribeTo \u2014 see functions/moduleOpenBridge.js's moduleOpenPage (workspace repo) for the house pattern.`))})}function wW(t){let e=t.subscribeTo,n=typeof e=="function",r=e;if(n)try{r=e(t,t.state,t.context)}catch{r=null}if(n&&nt()&&_W(t,e,Array.isArray(r)?r:[]),!Array.isArray(r)||r.length===0)return;let o=t.__ref;for(let s=0;s<r.length;s++){let i=r[s];if(typeof i!="string"||i.length===0)continue;let a=i.split("."),c=a[0],l=a.slice(1),f={value:!1},u=Y(()=>{let d=t.state&&(Et(t.state)?t.state.root:null);if(!d||!Et(d))return;let p=d;p=p[c];for(let h=0;h<l.length&&!(p==null||typeof p!="object");h++)if(Et(p))p=p[l[h]];else break;if(!f.value)return;let g=!1;if(typeof t.onBeforeUpdate=="function"&&gn(t,()=>{try{if(Dm(o)){let h=t.onBeforeUpdate(t,t.state,t.context,{updateBySubscription:!0});h&&typeof h.then=="function"?h.then(()=>cr(o,!1),m=>{cr(o,!0),ar("error",t,{hook:"onBeforeUpdate",error:m})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",m)}):(cr(o,!1),h===!1&&(g=!0))}}catch(h){cr(o,!0),ar("error",t,{hook:"onBeforeUpdate",error:h})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",h)}}),!g&&t.node&&o.__effects)for(let h=0;h<o.__effects.length;h++){let m=o.__effects[h];m&&m!==u&&!m._disposed&&!m._isSubscribeToEffect&&typeof m._execute=="function"&&m._execute()}!g&&typeof t.onUpdate=="function"&&gn(t,()=>{try{t.onUpdate(t,t.state,t.context)}catch(h){ar("error",t,{hook:"onUpdate",error:h})||console.error("[DOMQL] subscribeTo onUpdate error:",h)}})},{depth:o.path.length,label:_t(o,"subscribeTo("+i+")")});f.value=!0,u._isSubscribeToEffect=!0,o.__effects.push(u)}}function zE(t,e){return t.charCodeAt(0)===64&&t.length>1&&!t.startsWith("@media")&&!t.startsWith("@keyframes")&&!t.startsWith("@supports")&&!t.startsWith("@container")&&(t==="@dark"||t==="@light"||!e.context?.designSystem?.media?.[t.slice(1)])}function HE(t,e){if(t.charCodeAt(0)!==64||/^@(media|supports|container|keyframes)\b/.test(t))return t;let n=e.context?.designSystem?.media?.[t.slice(1)];if(!n)return t;if(typeof n=="string"&&!/^@(supports|container)\b/.test(n)){let r=BI(e);if(r){let o=Kk(n);if(o)return`@container ${r} ${o}`}}return/^@(media|supports|container)\b/.test(n)?n:`@media ${n}`}function WE(t,e,n,r){return zs(t)?Vs(()=>bd(e,n,!1,r)):bd(e,n,!1,r)}function BI(t){let e=t.__ref;if(e&&e.__breakpointContainer!==void 0)return e.__breakpointContainer;let n=null;for(let r=t.parent;r&&typeof r=="object";r=r.parent){let o=r.breakpointsFrom;if(o!=null&&o!==!1){n=gc(o,r);break}}return e&&(e.__breakpointContainer=n),n}function zo(t,e){let n=st.containerVw;return n!==null&&n.on&&e&&BI(t)?n.lengths(e):e}function SW(t,e){return globalThis.__SMBLS_BUILD_DROP_F_containerVw__?zt("containerVw",t):st.containerVw!==null&&st.containerVw.scope(t,e)}var XD=new Set;function xW(t,e){let n=e?.__ref?.path?e.__ref.path.join("."):e?.key||"?",r=n+"::"+t;XD.has(r)||(XD.add(r),console.warn(`[smbls/css] "${t}" at ${n} is a CHILD-COMPONENT key nested inside a pseudo/selector block (":hover", "@dark", etc.) \u2014 that is never a valid CSS selector fragment. The rule is DROPPED (not shipped as a dead/never-matching selector). To reveal a child on a parent state, target the child's OWN class from the parent selector instead, e.g. move the declaration onto the child element itself, or use a sibling-selector combinator in a top-level style block.`))}var ZD=new Map;function kW(t){let e=ZD.get(t);if(e)return e;e=[];let n=r=>{if(r)for(let o of r)e.push(id(o))};return n(Io[t]),n(Rm[t]),ZD.set(t,e),e}function JD(t,e,n){if(NE(t,e)||n&&n.has(e))return!0;let r=kW(ur(e));for(let o=0;o<r.length;o++){let s=r[o];if(NE(t,s)||n&&n.has(s))return!0}return!1}function bd(t,e,n,r){let o={},s=new Set,i=(a,c,l)=>{let f=l?new Set(Object.keys(o)):null;if(xt[a]){let u=xt[a](c,e,e.state,e.context);if(u){let d=Array.isArray(u)?u:[u];for(let p of d)p&&Object.assign(o,p)}}else o[a]=c;if(l)for(let u in o)f.has(u)||s.add(u)};for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=t[a];if(typeof c=="function"&&(c=c(e,e.state,e.context)),!(c==null||typeof c=="function")){if(typeof c=="object"&&!Array.isArray(c)){if(a==="style"){for(let u in c){let d=c[u];typeof d=="function"&&(d=d(e,e.state,e.context)),!(d==null||typeof d=="function")&&i(u,d,JD(e,u,r))}continue}if(a==="vars"){let u=qm(c,e);if(u)for(let d in u)i(d,u[d],NE(e,d)||!!(r&&r.has(d)));continue}if(zE(a,e)){let u=bd(c,e,!1,r);Object.keys(u).length&&(o[`[data-theme="${a.slice(1)}"] &`]=u);continue}if(/^[A-Z][A-Za-z0-9]*$/.test(a)){nt()&&xW(a,e);continue}let l=HE(a,e),f=WE(l,c,e,r);Object.keys(f).length&&(o[l]=f);continue}i(a,c,JD(e,a,r))}}if(n)for(let a in o)s.add(a);for(let a of s){let c=o[a];typeof c=="string"&&!c.includes("!important")&&(o[a]=c+" !important")}return o}var Uo=t=>!!t&&typeof t=="object"&&!Array.isArray(t);function jI(t,e){for(let n in e){let r=e[n];t[n]=Uo(r)?jI(Uo(t[n])?t[n]:{},r):r}return t}function EW(t,e){if(!Uo(e))return;let n;for(let r of t.split(" ")){let o=r?e[r]:null;Uo(o)&&(n=jI(n||{},o))}return n}function KE(t,e){if(e===void 0&&(e=0),e>8)return!1;if(typeof t=="function")return!0;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&KE(t[n],e+1))return!0}return!1}function UI(t,e,n){if(!e||typeof e!="object"||Array.isArray(e))return null;if(zE(t,n)){let s=bd(e,n,!1);return Object.keys(s).length?{cssProp:`[data-theme="${t.slice(1)}"] &`,block:s}:null}let r=HE(t,n),o=WE(r,e,n);return Object.keys(o).length?{cssProp:r,block:o}:null}function vW(t){let e=t.__ref;for(let n of Object.keys(t)){if(!bI(n))continue;let r=t[n];if(!r||typeof r!="object"||Array.isArray(r)||!KE(r))continue;let o=null,s,i=Y(()=>{if(!t.node)return;let a=t.context?.designSystem;a&&mt(a);let c,l=!1;try{let f=UI(n,r,t),u=f?Tc(f.block)+"::"+f.cssProp:null;if(u!==null&&u===s)l=!0;else if(s=u,f){let d=We(zo(t,{[f.cssProp]:f.block}),null,t.context?.cssPrefix);c=d?d.split(" ").filter(Boolean):null}else c=null}finally{a&&ht()}if(!(l||!t.node.classList)){if(o)for(let f of o)t.node.classList.remove(f);if(c&&c.length)for(let f of c)t.node.classList.add(f);o=c}},{depth:e.path.length,label:_t(e,"cssBlock("+n+")")});e.__effects.push(i)}}var AW=()=>!0,TW=(t,e)=>{let n=t.charAt(0);return(n===":"||n==="@"||n==="&"||n==="[")&&e&&typeof e=="object"&&!Array.isArray(e)?!0:!!xt[t]||!!(Bt&&Bt.has(t))||yd(t)||t==="vars"};function CW(t,e,n){let r={},o=!1;for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&(a!=="data"&&a!=="aria"&&(TW(a,n[a])||Yt.has(a))?r[a]=!0:o=!0);if(!o)return null;let s=_E({[e]:n},t.tag||"div",r,AW),i=null;for(let a in s)/^on/i.test(a)||(i||(i={}),i[a]=s[a]);return i}function QD(t,e,n,r,o,s){let i=t.node,a=null,c=l=>{(a||(a=[])).push(l)};for(let l in r){let f=e.owners.get(l),u=f===n;if(!s&&f!==void 0&&!u)continue;let d;try{d=r[l](t)}catch(g){re(t.__ref,"conditional("+n+")."+l,g),u&&c(l);continue}if(typeof d=="string"&&d.includes("{{")&&(d=Jt.call(t,d,t.state)),u&&i.getAttribute(l)!==e.written.get(l)){c(l);continue}if(d==null||typeof d=="object"||typeof d=="function"){u&&VI(i,e,l);continue}let p=d===!1&&!ci(l)?null:String(lr(l,d));c(l),!(u&&p===e.written.get(l))&&(f===void 0&&e.base.set(l,i.getAttribute(l)),Um(i,l,p),e.owners.set(l,n),e.written.set(l,p))}o.appliedAttrs=a}function VI(t,e,n){t.getAttribute(n)===e.written.get(n)&&Um(t,n,e.base.get(n)),e.owners.delete(n),e.base.delete(n),e.written.delete(n)}function OW(t,e,n,r){let o=r.appliedAttrs;if(r.appliedAttrs=null,!!o)for(let s of o)e.owners.get(s)===n&&VI(t.node,e,s)}function zI(t){let e=t.__ref&&t.__ref.__conditionalAttrs,n=t.node;if(!(!e||!e.owners.size||!n||!n.getAttribute))for(let r of e.owners.keys()){let o=e.written.get(r),s=n.getAttribute(r);s!==o&&(e.base.set(r,s),o==null?n.removeAttribute(r):n.setAttribute(r,o))}}var vE,RW=()=>vE===void 0?vE=nt():vE;function tI(t,e){let n=Bp;typeof n=="function"?t.untrackedReads+=n(e):e()}function PW(t){let e=t.__ref;e.__conditionalRunners=[];let n=null,r=new Map;for(let o of Object.keys(t)){let s=o.charAt(0);if(s!=="."&&s!=="!")continue;let i=o.slice(1);if(!i)continue;if(/[:@\s>~+[\]]/.test(i)){if(typeof console<"u"&&console.warn){let m=i.split(/[:@\s>~+[\]]/)[0];console.warn(`[smbls] conditional \`${o}\` on ${t.key||"?"} will never match \u2014 the whole string after \`${s}\` is read as one prop name. Nest the selector inside instead: \`${s}${m}: { '${i.slice(m.length)}': {...} }\`.`)}continue}let a=t[o];if(!a||typeof a!="object")continue;let c=s==="!",l={lastMatch:!1,appliedKeys:null,appliedClasses:null,appliedAttrs:null,hides:!1,probe:!1,untrackedReads:0},f=CW(t,o,a);f&&!n&&(n=e.__conditionalAttrs={owners:new Map,base:new Map,written:new Map});let u=new Set;for(let m in a){if(!Object.prototype.hasOwnProperty.call(a,m))continue;let y=m.charAt(0),x=a[m];if(!((y===":"||y==="@"||y==="&"||y==="[")&&x&&typeof x=="object"&&!Array.isArray(x))){if(m==="vars"&&Uo(x)){for(let E of Object.keys(x))E&&u.add(Km(E));continue}u.add(m)}}let d=()=>{let m,y=l.probe,x;if(y?tI(l,()=>{x=t[i]}):x=t[i],x===void 0){let S=!!t.state&&i in t.state,w=t.state?t.state[i]:void 0;if(S||w!==void 0)m=w;else{let b=t.context?.cases?.[i];if(b===void 0)return;try{m=typeof b=="function"?b.call(t,t):b}catch(_){m=!1,e.__conditionalError=_,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${o}\` case fn threw on ${t.key||"?"} \u2014 treating as false:`,_?.message||_)}}}else if(typeof x=="function")try{y?tI(l,()=>{m=x(t,t.state,t.context)}):m=x(t,t.state,t.context)}catch(S){m=!1,e.__conditionalError=S,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${o}\` predicate threw on ${t.key||"?"} \u2014 treating as false:`,S?.message||S)}else m=x;y&&(l.probe=!1);let E=c?!m:!!m;if(!t.node)return;let T=t.context?.designSystem;if(E===l.lastMatch){if(E&&f&&t.node.setAttribute){T&&mt(T);try{QD(t,n,o,f,l,!1)}finally{T&&ht()}}return}l.lastMatch=E,T&&mt(T);try{if(E){let S={},w={},b=!1,_=!1;for(let C in a){if(!Object.prototype.hasOwnProperty.call(a,C))continue;let O=a[C],N=C.charAt(0);if((N===":"||N==="@"||N==="&"||N==="[")&&O&&typeof O=="object"&&!Array.isArray(O)){if(zE(C,t)){let $=bd(O,t,!1,u);Object.keys($).length&&(w[`[data-theme="${C.slice(1)}"] &`]=$,b=!0)}else{let $=HE(C,t),Z=WE($,O,t,u);Object.keys(Z).length&&(w[$]=Z,b=!0)}continue}let F=typeof O=="function"?O(t,t.state,t.context):O;if(F!=null){if(C==="hide"||C==="show"){let $=xt[C](F,t,t.state,t.context);$&&$.display&&(_=!0)}else if(xt[C]){let $=xt[C](F,t,t.state,t.context);if($){let Z=Array.isArray($)?$:[$];for(let U of Z)U&&Object.assign(S,U)}}else if(Bt&&Bt.has(C))S[C]=F;else if(yd(C))S[C]=F;else if(C==="vars"){let $=qm(F,t);$&&Object.assign(S,$)}}}(_||l.hides)&&(l.hides=_,Vm(t,o,_));let A=Object.keys(S);if(A.length){dr(t.node,S,t);for(let C of A){let O=r.get(C);O||(O=[],r.set(C,O));let N=O.findIndex(F=>F.key===o);N!==-1&&O.splice(N,1),O.push({key:o,value:S[C]})}l.appliedKeys=A}else l.appliedKeys=null;if(b){let C=We(zo(t,w),null,t.context?.cssPrefix,{state:!0}),O=C?C.split(" ").filter(Boolean):[];if(O.length&&t.node.classList){for(let N of O)t.node.classList.add(N);l.appliedClasses=O}else l.appliedClasses=null}else if(l.appliedClasses){for(let C of l.appliedClasses)t.node.classList.remove(C);l.appliedClasses=null}f&&t.node.setAttribute&&QD(t,n,o,f,l,!0)}else{if(l.appliedAttrs&&OW(t,n,o,l),l.appliedKeys){for(let S of l.appliedKeys){let w=r.get(S);if(!w)continue;let b=w.findIndex(_=>_.key===o);if(b!==-1)if(w.splice(b,1),w.length){let _=w[w.length-1].value,A=Ur(S),C=String(_).trim().replace(/\s*!important\s*$/,"");Ic(t,t.node.style,A)!==C&&dr(t.node,{[S]:_},t)}else r.delete(S),yd(S)?t.node.style.removeProperty(S):Ur(S)==="display"?Sd(t,""):t.node.style[S]=""}l.appliedKeys=null}if(l.hides&&(l.hides=!1,Vm(t,o,!1)),l.appliedClasses){for(let S of l.appliedClasses)t.node.classList.remove(S);l.appliedClasses=null}}}finally{T&&ht()}};e.__conditionalRunners.push(d);let p=t[i+"Deps"],g=Wt(t,p,d);RW()&&typeof(e.__exec&&e.__exec[i]||t[i])=="function"&&!(Array.isArray(p)&&p.length===0)&&(l.probe=!0);let h=Y(g,{depth:e.path.length,label:_t(e,"conditional("+o+")")});l.probe&&(l.probe=!1),l.untrackedReads>0&&h._sources.size===0&&console.warn(`[smbls] conditional \`${o}\` on ${t.key||"?"} subscribed to nothing \u2014 its predicate read state on its first run without subscribing to it (\`in\`, Object.keys, a \`__\` key, parse()), so no state write will ever re-evaluate it (only a direct element.update() on this element re-runs it). Declare \`${i}Deps: [...]\` (state-key strings or \`(el, s) => \u2026\` selectors) so the subscription is armed unconditionally, or \`${i}Deps: []\` when it is static on purpose.`),e.__effects.push(h)}}var AE=new WeakSet,TE=new WeakMap;function LW(t){let e=TE.get(t);if(e==="painted")return!1;if(e===void 0){TE.set(t,"open");let n=t.defaultView,r=()=>{TE.set(t,"painted")};n&&typeof n.requestAnimationFrame=="function"?n.requestAnimationFrame(r):setTimeout(r,0)}return!0}var CE=new WeakSet;function DW(t){if(CE.has(t))return;CE.add(t);let e=()=>{CE.delete(t);let r=t.body||t.documentElement;r&&r.offsetWidth},n=t.defaultView;n&&typeof n.requestAnimationFrame=="function"?n.requestAnimationFrame(e):setTimeout(e,0)}function IW(t,e){let n=t.ownerDocument;if(n&&!LW(n)){if(st.hydration!==null&&e&&e.context&&e.context.__hydration){DW(n);return}AE.has(n)||(AE.add(n),queueMicrotask(()=>{AE.delete(n);let r=n.body||n.documentElement;r&&r.offsetWidth}))}}var OE=new WeakSet,eI=!1;function nI(t){return t.startsWith("[data-theme=")||t.startsWith("@media")&&t.includes("prefers-color-scheme")}function $E(t,e){let n={...t};for(let r in e){let o=e[r],s=n[r];n[r]=o&&typeof o=="object"&&s&&typeof s=="object"?$E(s,o):o}return n}function HI(t,e){let n={};for(let r in t){let o=t[r];if(o&&typeof o=="object"){let s=HI(o,e);Object.keys(s).length&&(n[r]=s)}else e(r)||(n[r]=o)}return n}function rI(t,e,n){let r=qE(t);if(!r)return!1;for(let o=0;o<r.length;o+=3){let s=r[o+1];if(!n.has(s))continue;let i=e[s];if(!(i==null||typeof i=="object")&&JL(r[o],i,r[o+2]))return!0}return!1}function MW(t,e,n){let r=1/0,o=-1/0;for(let i of e.values())i<r&&(r=i),i>o&&(o=i);if(n)for(let i of n.values())i>o&&(o=i);if(o<=r)return null;let s=null;for(let[i,a]of e){if(a===o)continue;let c=qE(i);if(c)for(let l=0;l<c.length;l+=3){let f=c[l],u=c[l+1],d=c[l+2],p=t[u]!=null?e.get(u):void 0,g=n&&n.get(f),h=p!==void 0&&p>a&&Pm(f,t[u],d),m=!h&&g!==void 0&&g>a&&Pm(f,void 0,d);if(h||m){h&&delete t[i],s||(s=new Set),s.add(i);break}}}return s}var oI=new Map;function qE(t){let e=oI.get(t);if(e!==void 0)return e;let n=ur(t),r=Io[n];if(e=null,Array.isArray(r)){e=[];for(let o of r)e.push(o,id(o),n)}return oI.set(t,e),e}var WI=new Set(["page","zoom"]),NW=(t,e)=>{WI.add(t);let n=typeof CSS<"u"?CSS:null;if(!n||typeof n.supports!="function")return;let r=!1;try{r=n.supports(ur(t),String(e))}catch{r=!1}r&&console.warn(`[smbls] css: "${t}: ${e}" is valid CSS, but smbls has no entry for "${t}", so the element gets no CSS for it. Write it in style: { ${t}: \u2026 } for now, and report the missing property.`)};function KI(t){let{node:e}=t;if(!e)return;if(eI||(eI=!0,We({display:"none"})),OE.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}OE.add(t);let n=t.context?.designSystem;n&&mt(n),Am();try{let r={},o=!1,s=[],i=null,a=null,c=null,l=null,f=t.__ref&&t.__ref.__mergeLayer,u,d=null,p=null,g=!1,h=(S,w)=>{if(w&&typeof w=="object"&&nI(S)){c||(c={});let b=c[S];b&&(w=$E(b,w)),c[S]=w}else(w===null||typeof w!="object")&&(l||(l=new Set),l.add(S),u!==void 0&&(d||(d=new Map),d.set(S,u)));r[S]=w};if(Object.prototype.hasOwnProperty.call(t,"theme")&&typeof t.theme!="function"&&xt.theme){let S=xt.theme(t.theme,t,t.state,t.context);if(S){let w=b=>{for(let _ in b){let A=b[_];A&&typeof A=="object"?nI(_)&&(i||(i={}),i[_]=A):qE(_)&&(a||(a=[])).push(_),r[_]=A}};if(Array.isArray(S))for(let b of S)b&&w(b);else w(S);o=!0}}let m=(S,w)=>{if(S==="vars"){let b=qm(w);if(b){for(let _ in b)h(_,b[_]);o=!0}return}if(S==="hide"||S==="show"){let b=xt[S](w,t,t.state,t.context);b&&b.display&&(g=!0);return}if(xt[S]){let b=xt[S](w,t,t.state,t.context);if(b){if(Array.isArray(b)){for(let _ of b)if(_)for(let A in _)h(A,_[A])}else for(let _ in b)h(_,b[_]);o=!0}}else if(Bt&&Bt.has(S))w!=null&&typeof w!="object"&&(h(S,w),o=!0);else if(S.charCodeAt(0)===45)w!=null&&typeof w!="object"&&(h(S,w),o=!0);else if(S.charAt(0)==="&"||S.charAt(0)==="@"||S.charAt(0)===":"||S.charAt(0)==="["){if(w&&typeof w=="object"&&!Array.isArray(w)){if(KE(w))return;let b=UI(S,w,t);b&&(h(b.cssProp,b.block),o=!0)}}else(typeof w=="string"||typeof w=="number")&&!WI.has(S)&&nt()&&NW(S,w)};if(typeof t.class=="string"){let S=EW(t.class,t.context?.designSystem?.class);if(S)for(let w in S)m(w,S[w])}let y=l?new Set(l):null,x=t.tag||"div";for(let S of Object.keys(t)){if(typeof t[S]=="function"){let b=f&&f.get(S);b!==void 0&&Fo(x,S)&&(p||(p=new Map),p.set(ur(S),b));continue}if(u=f?f.get(S):void 0,S==="vars"){m(S,t[S]);continue}if(Yt.has(S)||S==="theme")continue;let w=S.charCodeAt(0);w>=65&&w<=90||hn(S)||Nm(x,S)||m(S,t[S])}u=void 0;let E=d?MW(r,d,p):null;if(a&&l)for(let S of a)l.has(S)||!(S in r)||rI(S,r,l)&&delete r[S];if(i){let S=l?w=>l.has(w)||rI(w,r,l):null;for(let w in i){let b=S?HI(i[w],S):i[w];c&&c[w]&&(b=$E(b,c[w])),Object.keys(b).length?r[w]=b:delete r[w]}}if(mW(t,r,l,E?new Set([...y||[],...E]):y),Vm(t,"static",g),t.breakpointsFrom!=null&&SW(t,r)&&(o=!0),o){r.display&&String(r.display).includes("!important")&&(dr(e,{display:r.display},t),delete r.display);let S=t.display!=null&&typeof t.display!="function"?t.display:t.hide===!0||t.show===!1?"none":null;typeof S=="string"&&S!==""&&r.display&&r.display!==S&&(r.display=S);let w=We(zo(t,r),null,t.context?.cssPrefix);if(s=w?w.split(" ").filter(Boolean):[],w&&e.classList){let b=s,_=!1;for(let A of b)e.classList.add(A),_||(A.charCodeAt(0)===95&&A.charCodeAt(1)===99||A.charCodeAt(0)===95&&A.indexOf("_c",1)!==-1)&&(_=!0);_&&IW(e,t)}}let T=t.__ref;if(T){let S=T.__staticCssClasses;if(S&&e.classList){let w=new Set(s);for(let b of S)w.has(b)||e.classList.remove(b)}T.__staticCssClasses=s}yW(t)}finally{Tm(),n&&ht(),OE.delete(t)}}var oE=t=>!!xt[t]||!!(Bt&&Bt.has(t))||typeof t=="string"&&t.charCodeAt(0)===45;function sE(t){t&&t.node&&KI(t)}function $W(t){let{node:e}=t;if(!e||!e.setAttribute)return;if(t.aria&&typeof t.aria=="object")for(let o in t.aria){let s=t.aria[o];if(typeof s=="function"||typeof s=="object"||s==null||typeof s=="string"&&s.includes("{{"))continue;let i="aria-"+o.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());e.setAttribute(i,lr(i,s))}let n=bE(t);for(let o in n){let s=n[o];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&e.setAttribute(o,s===!0?"":s)}let r=t.tag||"div";for(let o of Object.keys(t)){if(typeof t[o]=="function"||Yt.has(o)||o==="on"||n[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!hn(o)&&!Fo(r,o)&&bn(r,o)){let i=t[o];if(i==null)continue;if(typeof i=="string"&&i.includes("{{")){if(!$o[o])continue;i=Jt.call(t,i,t.state)}if(i==null||typeof i=="function"||typeof i=="object"||i===!1&&!ci(Hr(o)||o))continue;let a=Hr(o)||o;e.setAttribute(a,lr(a,i))}}}function iE(t,e){let{node:n}=t;if(!n||!n.setAttribute)return;let r=e.charCodeAt(0);if(r>=65&&r<=90||hn(e))return;let o=t.tag||"div";if(Fo(o,e)||!bn(o,e))return;let s=Hr(e)||e,i=s.toLowerCase(),a=t.__ref&&t.__ref.__effects,c=!1;if(a)for(let u=0;u<a.length;u++){let d=a[u];d&&d._attrName===i&&!d._disposed&&typeof d._execute=="function"&&(c=!0,d._execute())}if(c)return;let l=t[e],f=$o[e];if(f&&l!=null){let u=f(t);u!==void 0&&(l=u)}typeof l=="string"&&l.includes("{{")&&(l=Jt.call(t,l,t.state)),ii(n,s,l)}function FW(t,e){let n=t.node,r=t.__ref,o=r.__autoGrow;if(!e){if(o&&o.active){try{n.removeEventListener("input",o.resize)}catch{}iI(o),Bo.delete(t),n.style.height="",o.appliedMax!=null&&n.style.maxHeight===o.appliedMax&&(n.style.maxHeight=""),cI(n,o,!1),o.active=!1,o.appliedMax=null,o.lastMeasure=0}return}o||(o=r.__autoGrow={active:!1,appliedMax:null,lastMeasure:0,lastWidth:null,watch:null,awaitingLayout:!1,appliedScroll:!1,fontsHooked:!1,attachAttempts:0,firstAttemptAt:null,resize:()=>{if(!n.isConnected){_d(t,!0);return}if(!(n.scrollHeight>0)){o.awaitingLayout=!0,sI(t,o);return}o.awaitingLayout=!1;let i=UW(n),a=VW(i),c=n.style.height;n.style.height="0px",a&&RE(n);let l=n.scrollHeight;if(!(l>0)){n.style.height=c,a&&RE(n);return}let f=zW(n,i),u=f!=null&&l<f?f:l,d=KW(i),p=d!=null&&u>d;n.style.height=WW(p?d:u,i)+"px",a&&RE(n),cI(n,o,p),o.lastMeasure=l,o.lastWidth=n.clientWidth,sI(t,o)}},r.__eventCleanup||(r.__eventCleanup=[]),r.__eventCleanup.push(()=>{try{n.removeEventListener("input",o.resize)}catch{}iI(o),Bo.delete(t)})),o.active||(n.addEventListener("input",o.resize),o.active=!0,jW(t,o));let s=typeof e=="object"&&e.max!=null?String(e.max):null;s!==o.appliedMax&&(s==null?o.appliedMax!=null&&n.style.maxHeight===o.appliedMax&&(n.style.maxHeight=""):n.style.maxHeight=s,o.appliedMax=s),o.resize()}function _d(t,e){let n=t.__ref?.__autoGrow;n&&(e&&(n.attachAttempts=0,n.firstAttemptAt=null),Bo.add(t),wd())}function BW(){let t=Array.from(Bo);Bo.clear();for(let e=0;e<t.length;e++){let n=t[e],r=n.node,o=n.__ref?.__autoGrow;if(!(!r||!o||!o.active)){if(!r.isConnected){o.firstAttemptAt==null&&(o.firstAttemptAt=Lc()),o.attachAttempts+=1,o.attachAttempts<=mI&&Lc()-o.firstAttemptAt<yI&&(Bo.add(n),wd());continue}o.attachAttempts=0,o.firstAttemptAt=null,o.resize()}}}function sI(t,e){if(e.watch)return;let n=t.node;if(!n)return;let r=n.ownerDocument&&n.ownerDocument.defaultView,o=r&&r.ResizeObserver||(typeof ResizeObserver=="function"?ResizeObserver:null);if(typeof o!="function")return;let s=()=>{if(!e.active||!n.isConnected||!(n.scrollHeight>0))return;if(e.awaitingLayout){e.awaitingLayout=!1,_d(t,!0);return}let a=n.clientWidth;e.lastWidth!=null&&Math.abs(a-e.lastWidth)<.5||(e.lastWidth=a,_d(t,!0))},i;try{i=new o(s),i.observe(n)}catch{return}e.watch=i}function iI(t){let e=t.watch;if(e){t.watch=null;try{e.disconnect()}catch{}}}function jW(t,e){if(e.fontsHooked)return;e.fontsHooked=!0;let n=t.node&&t.node.ownerDocument,r=n&&n.fonts&&n.fonts.ready;!r||typeof r.then!="function"||r.then(()=>{e.active&&t.node&&_d(t,!0)},()=>{})}function UW(t){let e=t.ownerDocument&&t.ownerDocument.defaultView;try{return e&&e.getComputedStyle?e.getComputedStyle(t):null}catch{return null}}var fi=t=>typeof t=="string"&&/^\s*-?\d*\.?\d+px\s*$/.test(t)?parseFloat(t):null,GE=t=>(fi(t.paddingTop)||0)+(fi(t.paddingBottom)||0),qI=t=>(fi(t.borderTopWidth)||0)+(fi(t.borderBottomWidth)||0);function VW(t){if(!t)return!1;let e=String(t.transitionProperty||"").split(","),n=String(t.transitionDuration||"0s").split(",");for(let r=0;r<e.length;r++){let o=e[r].trim();if(!(o!=="all"&&o!=="height")&&parseFloat(n[r%n.length])>0)return!0}return!1}function RE(t){if(typeof t.getAnimations!="function")return;let e;try{e=t.getAnimations()}catch{return}for(let n=0;n<e.length;n++){let r=e[n];if(r&&r.transitionProperty==="height")try{r.cancel()}catch{}}}function zW(t,e){if(!e||!t.hasAttribute||!t.hasAttribute("rows"))return null;let n=parseInt(t.getAttribute("rows"),10);if(!(n>0))return null;let r=fi(e.lineHeight)||HW(t,e);return r>0?n*r+GE(e):null}var ud=["fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontFamily","lineHeight","letterSpacing"],aI=new WeakMap;function HW(t,e){let n=t.ownerDocument,r=n&&(n.body||n.documentElement);if(!r||!n.createElement)return null;let o=aI.get(n);o||(o=new Map,aI.set(n,o));let s=ud.map(l=>e[l]||"").join("|");if(o.has(s))return o.get(s);let i=n.createElement("textarea");i.rows=1,i.setAttribute("aria-hidden","true"),i.tabIndex=-1;let a=i.style;a.position="absolute",a.visibility="hidden",a.top="0",a.left="-9999px",a.height="auto",a.minHeight="0",a.maxHeight="none",a.padding="0",a.border="0",a.boxSizing="content-box",a.overflow="hidden";for(let l=0;l<ud.length;l++)e[ud[l]]&&(a[ud[l]]=e[ud[l]]);let c=0;try{r.appendChild(i),c=i.clientHeight}catch{c=0}finally{i.parentNode&&i.parentNode.removeChild(i)}return c>0?(o.set(s,c),c):null}function WW(t,e){return e?e.boxSizing==="border-box"?t+qI(e):e.boxSizing==="content-box"?Math.max(0,t-GE(e)):t:t}function KW(t){if(!t)return null;let e=fi(t.maxHeight);if(e==null||!(e>0))return null;let n=GE(t),r=qI(t),o=t.boxSizing==="border-box"?e-r:e+n,s=fi(t.lineHeight);if(!(s>0))return o;let i=Math.floor((o-n)/s+1e-6);return i>=1?i*s+n:o}function cI(t,e,n){n?e.appliedScroll||(t.style.overflowY="auto",e.appliedScroll=!0):e.appliedScroll&&(t.style.overflowY==="auto"&&(t.style.overflowY=""),e.appliedScroll=!1)}var lI=["srcObject","muted"],qW=(t,e)=>t==="muted"?e===!0||e===""||e==="true"||e==="muted":e??null;function GW(t){let e=t.node,n=t.__ref;if(!(!e||!n))for(let r=0;r<lI.length;r++){let o=lI[r],s=t[o];if(s===void 0||!(o in e))continue;let i=a=>{let c=qW(o,a);if(e[o]!==c)try{e[o]=c}catch(l){re(n,o,l)}};if(typeof s=="function"){let a=Wt(t,t[o+"Deps"],s),c=Y(()=>{try{i(a(t,t.state,t.context))}catch(l){re(n,o,l)}},{depth:n.path.length,label:_t(n,o)});n.__effects.push(c),n.__exec[o]=s}else i(s);o==="srcObject"&&(n.__releaseMedia=()=>{try{e.srcObject!=null&&(e.srcObject=null)}catch{}})}}function YW(t){if(!t.autoGrow)return;if(globalThis.__SMBLS_BUILD_DROP_F_autoGrow__)return zt("autoGrow",t);let e=t.node;if(!e||e.tagName!=="TEXTAREA")return;let n=t.__ref,r=t.autoGrow,o=typeof r=="function"?Wt(t,t.autoGrowDeps,r):null,s=Y(()=>{let i=t.autoGrow,a=i;if(typeof i=="function")try{a=(i===r&&o?o:i)(t,t.state,t.context)}catch{a=null}FW(t,a)},{depth:n.path.length,label:_t(n,"autoGrow")});n.__effects||(n.__effects=[]),n.__effects.push(s),o&&(n.__exec.autoGrow=r)}var GI=new Set(["onSwipe","onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown"]);function YI(t,e){let n=!1;for(let r of Object.keys(t)){if(!hn(r)||GI.has(r))continue;if(r==="onInView"||r==="onLeaveView"){n=!0;continue}let o=xm(r);if(o){km(o,t,t[r]);continue}let s=t[r],i=null;if(s&&typeof s=="object"&&!Array.isArray(s)&&(i=s,s=i.handler),s=nd(t,s),typeof s!="function")continue;let a=wm(r);or.has(a)||pc(M9(a),t,s,i)}XW(t),n&&st.viewEvents&&st.viewEvents(t)}function XW(t){let e=t.node;if(!e||!e.addEventListener)return;let n={},r=!1;for(let d of GI){let p=t[d];typeof p=="function"&&(n[d]=p,r=!0)}if(!r)return;let o=typeof t.swipeThreshold=="number"?t.swipeThreshold:40,s=typeof t.swipeMaxDuration=="number"?t.swipeMaxDuration:600,i=0,a=0,c=0,l=!1,f=d=>{let p=d.touches&&d.touches[0]||d.changedTouches&&d.changedTouches[0];p&&(i=p.clientX,a=p.clientY,c=Date.now(),l=!0)},u=d=>{if(!l)return;l=!1;let p=d.changedTouches&&d.changedTouches[0]||d.touches&&d.touches[0];if(!p)return;let g=p.clientX-i,h=p.clientY-a,m=Date.now()-c;if(m>s)return;let y=Math.abs(g),x=Math.abs(h);if(Math.max(y,x)<o)return;let E;if(y>x*1.2)E=g<0?"left":"right";else if(x>y*1.2)E=h<0?"up":"down";else return;let T="onSwipe"+E.charAt(0).toUpperCase()+E.slice(1),S=n[T],w=n.onSwipe;S&&S.call(t,d,t,t.state,t.context),w&&w.call(t,{direction:E,dx:g,dy:h,dt:m,event:d},t,t.state,t.context)};e.addEventListener("touchstart",f,{passive:!0}),e.addEventListener("touchend",u,{passive:!0}),t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{try{e.removeEventListener("touchstart",f)}catch{}try{e.removeEventListener("touchend",u)}catch{}})}function YE(t,e,n,r,o,s,i,a){let c=e;(typeof c=="string"||typeof c=="number")&&(c={text:c});let l=r;if(typeof r=="function")try{l=r(t,c)}catch{l=null}let f=typeof r=="function"?gd(l):o;if(a&&!i&&(f=md(f,gd(e))),i){let u=e;(typeof e=="string"||typeof e=="number")&&(u={value:e,text:e}),c=l?{...l,state:u}:{state:u}}else l&&(c=Ke(l,c));return c=xd(c,s),{def:c,key:_I(c?.key,e,n,t),supplied:f,props:l}}function xd(t,e){if(!e||!t||t.ignoreChildExtends)return t;if(!t.extends)return{...t,extends:e};let n=Array.isArray(t.extends)?t.extends:[t.extends],r=Array.isArray(e)?e:[e];return{...t,extends:[...r,...n]}}var Wr=t=>{let e=t&&t.__ref;if(!e||e.__if===!1||e.__mount&&e.__mount.held)return null;let n=t.node;return n&&n.nodeType!==11?n:null},XI=(t,e)=>e?e.nextSibling:ad(t.node,t.__ref.__textNode),Gm=(t,e,n)=>{let r=XI(t,n);return e!==r&&t.node.insertBefore(e,r),e},kd=(t,e)=>{let n=XI(t,e);return n?{position:"before",node:n}:void 0};function XE(t,e,n){let r=null;for(let o=0;o<e.length;o++){if(n&&n.has(e[o]))continue;let s=Wr(t[e[o]]);s&&(r=Gm(t,s,r))}}function fI(t,e,n,r){let o=st.rows,s=o!==null&&t.childrenAs!=="state"&&t.tag!=="fragment"?o.track(t):null,i=ZE(t,e,n,r,!0,s);return t.__ref.__plainRows=s&&(i||e==null||e===!1)?s:null,i}function ZE(t,e,n,r,o,s){if(!e||!t.node)return;let i=t.childExtends,a=jo(t,"childProps"),c=t.__ref,l=st.mount,f=r>0&&t.tag!=="fragment"&&c?r:0;if(Array.isArray(e)){let u=t.childProps,d=t.childrenAs==="state",p=(g,h)=>{let m=YE(t,e[g],g,u,a,i,d,o);s&&s.add(m.key,e[g],m,u,i);try{let y=Xt(li(m.def,m.supplied),t,m.key,n,h);return!y&&s&&s.none(m.key),jm(t,y),y}catch(y){if(s&&s.failed(m.key),typeof console<"u"&&console.error){let x=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${m.key}" failed to construct at ${x} (initial render, skipping this row):`,y?.message||y)}return null}};if(!f){for(let g=0;g<e.length&&!(c&&c.__disposed);g++)p(g);return!0}return l.rows(t,e.length,p,f),!0}if(typeof e=="string"){let u=kI(e,t);if(Array.isArray(u))return ZE(t,u,n,r,!0,s)}if(typeof e=="object"){let u=(p,g)=>{if(Yt.has(p))return!1;let h=e[p];if(h==null||h===!1)return!1;let m=o?md(a,gd(h)):a;(typeof h=="string"||typeof h=="number")&&(h={text:h}),t.childProps&&(h=Ke(t.childProps,h)),h=xd(h,i);let y=Xt(li(h,m),t,Hm(t,p),n,g);return jm(t,y),y};if(!f){for(let p in e)u(p);return}let d=[];for(let p in e)d.push(p);l.rows(t,d.length,(p,g)=>u(d[p],g),f)}}function Pc(t,e){let n=t.node;if(!n||n.tagName!=="SELECT")return;let r=n.options;if(!r||!r.length)return;let o=t.__ref,s=o&&o.__exec&&o.__exec.value,i=typeof s=="function",a=t.value!=null&&typeof t.value!="function";if(i||a){let f;if(i)try{f=s(t,t.state,t.context)}catch{return}else f=t.value,typeof f=="string"&&f.includes("{{")&&(f=Jt.call(t,f,t.state));let u=f==null?"":String(f);n.value!==u&&(n.value=u);return}let c=e||!(o&&o.__selectSynced);if(o&&(o.__selectSynced=!0),!c)return;let l=-1;for(let f=0;f<r.length;f++)r[f].defaultSelected&&(l=f);l>=0&&n.selectedIndex!==l&&(n.selectedIndex=l)}function ZI(t,e){let{children:n,content:r}=t,o=t.childExtends,s=typeof n=="function",i=s||vI(t,"children");if(typeof n=="function"){let u=n,d=t.__ref,p=!1,g,h=Wt(t,t.childrenDeps,u),m=Y(()=>{let y=p;p=!0;let x;try{x=h(t,t.state,t.context)}catch(C){if(typeof console<"u"&&console.error){let O=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] \`children:\` factory threw at ${O}${y?"":" (initial run, treating as empty)"}:`,C?.message||C)}return}if(!y){g=x;return}if(x===t.children)return;VD(t,x),t.children=x,d.__mount&&d.__mount.chunkGen++;let E=typeof t.onContentUpdate=="function",T=E?[]:null,S=E?[]:null,w=E?[]:null;if(Array.isArray(x)&&t.childrenAs==="state"){let C=t.childProps,O=[],N=new Map;for(let Q=0;Q<x.length;Q++){let G=x[Q],K=C;if(typeof C=="function")try{K=C(t,G)}catch{K=null}let it=_I(K&&K.key,G,Q,t);O.push(it),N.set(it,{rawChild:G,childProps:K})}let F=new Set(O),$=ND(d,d.__children.slice());for(let Q of $)if(!F.has(Q)){let G=t[Q];G?.remove&&G.remove(),delete t[Q],S&&S.push(Q)}let Z=t.childExtends,J=!(t.tag==="fragment")&&!!t.node,ft=null,et=new Set;for(let Q of O){let G=N.get(Q),K=G.rawChild,it=t[Q];if(it&&it.state){if(K&&typeof K=="object"){let yt=it.state,jt=yt.$replace||yt.replace,Tt=yt.$update||yt.update;try{if(typeof jt=="function")jt.call(yt,K);else if(typeof Tt=="function"){for(let Pt in yt)if(!(Pt==="__element"||Pt==="root"||Pt==="parent"||Pt==="update")&&!Object.prototype.hasOwnProperty.call(K,Pt))try{yt[Pt]=void 0}catch{}Tt.call(yt,K)}else for(let Pt in K)yt[Pt]=K[Pt]}catch(Pt){if(typeof console<"u"&&console.error){let Ze=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${Q}" failed to patch at ${Ze} (reconcile, keeping its previous data for this pass):`,Pt?.message||Pt)}}}if(w&&w.push(Q),J){let yt=Wr(it);yt&&(ft=Gm(t,yt,ft))}continue}let ot=K;(typeof K=="string"||typeof K=="number")&&(ot={value:K,text:K});let gt=G.childProps,X=xd(gt?{...gt,state:ot}:{state:ot},Z),q=typeof C=="function"?gd(gt):jo(t,"childProps"),Rt;try{Rt=Xt(li(X,q),t,Q,e,J?kd(t,ft):void 0)}catch(yt){if(typeof console<"u"&&console.error){let jt=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${Q}" failed to construct at ${jt} (reconcile, skipping this row):`,yt?.message||yt)}et.add(Q);continue}if(d.__disposed)return;if(J){let yt=Wr(Rt);yt&&(ft=yt)}T&&T.push(Q)}J&&XE(t,O,et.size?et:null),d.__children=et.size?O.filter(Q=>!et.has(Q)):O,E&&(T.length||S.length)&&Fm(t,{added:T,removed:S,kept:w}),Pc(t,!1);return}if(t.childrenAs!=="state"&&d.__plainRows&&st.rows.reconcile(t,d,x,e,E)){Pc(t,!1);return}let A=E?[...d.__children]:null;for(let C of ND(d,[...d.__children])){let O=t[C];O?.remove&&O.remove(),delete t[C]}d.__children=[],fI(t,x,e,0),Pc(t,!1),E&&Fm(t,{added:[...d.__children],removed:A,kept:[]})},{depth:d.path.length,label:_t(d,"children")});d.__effects.push(m),n=g,VD(t,n),t.children=n}let a=st.mount,c=a!==null?a.budgetOf(t,e):0,l=cd(t.__ref),f=s?fI(t,n,e,c):ZE(t,n,e,c,i);if(c&&cd(t.__ref)>l){a.defer(t,c,()=>uI(t,e,n,r,o,f,c));return}uI(t,e,n,r,o,f,c)}function uI(t,e,n,r,o,s,i){let a=cd(t.__ref);if(r!=null&&!(r&&r.__ref)){let c=r;typeof c=="string"||typeof c=="number"?c={text:c}:typeof c!="object"&&(c={}),t.childProps&&(c=Ke(t.childProps,c)),c=xd(c,o);let l=md(jo(t,"childProps"),jo(t,"content"));jm(t,Xt(li(c,l),t,"content",e))}if(!(n&&!s)){if(i&&cd(t.__ref)>a){st.mount.defer(t,i,()=>dI(t,e,o,i));return}dI(t,e,o,i)}}function dI(t,e,n,r){let o=t.context?.components||{},s=t.__ref&&t.__ref.__runtimeSource,i=s?{}:null;{let l=Object.keys(t);for(let f=0;f<l.length;f++){let u=l[f];if(!u.endsWith("Extends")||typeof t[u]!="string")continue;let d=u.slice(0,-7);if(!d||d.charCodeAt(0)<65||d.charCodeAt(0)>90)continue;let p={extends:t[u]};delete t[u];for(let g=f+1;g<l.length;g++){let h=l[g],m=h.charCodeAt(0);if(m>=65&&m<=90||Yt.has(h)||typeof t[h]=="function"&&(h.startsWith("on")||h.startsWith(".")))break;let y=t[h];y!==void 0&&(p[h]=y,delete t[h],i&&hd(s,h)&&(i[d]||(i[d]={}),i[d][h]=s[h]))}t[d]&&typeof t[d]=="object"?t[d]={...p,...t[d]}:t[d]=p}}let a=Object.keys(t),c=l=>{if(Yt.has(l)||typeof t[l]!="object"||t[l]===null)return!1;let f=l.charCodeAt(0);if(f<65||f>90)return!1;let u=t[l];if(u.__ref)return!1;if(!u.extends&&!u.extend){let p=o[l]||o[`smbls.${l}`];p&&(u={...u,extends:p})}t.childProps&&(u=Ke(t.childProps,u)),u=xd(u,n);let d=s?md(jo(t,"childProps"),md(i[l]||null,jo(t,l))):null;jm(t,Xt(li(u,d),t,l,e))};if(!r){for(let l of a)c(l);return}st.mount.run(t,a.length,l=>c(a[l]),r)}function Dc(t,e,n){let{node:r}=t;if(!r)return;r.ref=t;let o=e?.tag==="fragment"?e.__ref?.__fragmentAnchor:null;if(o){let c=o.parentNode;if(c){if(n?.position==="before"&&n.node)c.insertBefore(r,n.node);else if(n?.position==="after"&&n.node){let l=n.node.nextSibling;c.insertBefore(r,l||o)}else c.insertBefore(r,o);_m();return}}let s=e?.node||(e?.nodeType?e:null);if(!s)return;if(!n&&st.hydration!==null){let c=t.context&&t.context.__hydration;if(c&&st.hydration.place(c,t,e,s,r))return}let i=n?.node,a=r.parentNode===s;if(i&&i.parentNode!==s)(!a||r.nextSibling)&&s.appendChild(r);else if(n?.position==="before"&&i)i!==r&&(!a||r.nextSibling!==i)&&s.insertBefore(r,i);else if(n?.position==="after"&&n.node){let c=n.node.nextSibling;c===r||(c?s.insertBefore(r,c):s.appendChild(r))}else(!a||r.nextSibling)&&s.appendChild(r);_m()}var zm=3;function Dm(t){return!t||t.__inBeforeUpdate||(t.__beforeUpdateFailCount||0)>=zm?!1:(t.__inBeforeUpdate=!0,!0)}function cr(t,e){t&&(t.__inBeforeUpdate=!1,e?(t.__beforeUpdateFailCount=(t.__beforeUpdateFailCount||0)+1,t.__beforeUpdateFailCount===zm&&typeof console<"u"&&console.error&&console.error(`[DOMQL] onBeforeUpdate failed ${zm}x in a row on this element \u2014 pausing automatic retries until a future prop/state change re-arms it.`)):t.__beforeUpdateFailCount=0)}function Qt(t,e,n){let r=t.charAt(0).toLowerCase()+t.slice(1);ar(r,e,n);let o="on"+t,s=e[o];if(typeof s=="function"){let c=t==="Render"?"__inRender":t==="RenderRouter"?"__inRenderRouter":null;if(c){if(e.__ref[c])return!0;e.__ref[c]=!0}let l=e.context?.designSystem;l&&mt(l);let f=!!c;try{let u=s(e,e.state,e.context,n);if(u&&typeof u.then=="function"){let d=e.__ref;return u.catch(p=>{mn(e,o,p)}).finally(()=>{c&&d&&(d[c]=!1)}),f=!1,!0}if(u===!1)return!1}catch(u){if(mn(e,o,u),e.context?.strictMode)throw u}finally{l&&ht(),f&&e.__ref&&(e.__ref[c]=!1)}}return!0}var Ed=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),eM=1e3,nM=24,JE=Object.freeze({}),ev=Object.freeze({}),Mc=0,Ym=t=>{if(Et(t)||Ed(t,"__ref"))return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};function QE(t,e,n){if(t===null||typeof t!="object")return t;if(--Mc<0||e>nM){Mc=-1;return}if(Array.isArray(t)){let o=new Array(t.length);for(let s=0;s<t.length;s++)o[s]=n?t[s]:QE(t[s],e+1,!1);return o}if(n||!Ym(t))return t;let r={};for(let o in t)Ed(t,o)&&(r[o]=QE(t[o],e+1,o==="extends"||o==="childExtends"));return r}function JI(t){Mc=eM;let e;try{e=QE(t,0,!1)}catch{return JE}return Mc<0?JE:e}function tv(t,e,n,r){if(t===e)return!0;if(t===null||typeof t!="object"||e===null||typeof e!="object"||--Mc<0||n>nM)return!1;if(Array.isArray(t)){if(!Array.isArray(e)||e.length!==t.length)return!1;for(let s=0;s<t.length;s++)if(r?t[s]!==e[s]:!tv(t[s],e[s],n+1,!1))return!1;return!0}if(r||Array.isArray(e)||!Ym(t)||!Ym(e))return!1;let o=0;for(let s in t)if(Ed(t,s)&&(o++,!Ed(e,s)||!tv(t[s],e[s],n+1,s==="extends"||s==="childExtends")))return!1;for(let s in e)Ed(e,s)&&o--;return o===0}function QI(t,e){if(e===JE||e===ev)return!1;Mc=eM;try{return tv(t,e,0,!1)}catch{return!1}}var Xm=t=>$e()?Te(()=>JI(t)):JI(t),tM=(t,e)=>$e()?Te(()=>QI(t,e)):QI(t,e);function rM(t,e,n,r){let o=t;return o&&typeof o=="object"&&!Array.isArray(o)&&!Ym(o)&&(r||n&&!o.ignoreChildExtends)&&(o=r?Ke({},o):{...o}),typeof e=="function"?{item:o,props:r}:o}var oM=t=>({childProps:typeof t.childProps=="function"?void 0:t.childProps,childExtends:t.childExtends}),Zm=class{constructor(e,n){this.shared=e,this.rows=n}add(e,n,r,o,s){this.rows.set(e,Xm(rM(n,o,s,r.props)))}failed(e){this.rows.set(e,ev)}none(e){this.rows.delete(e)}},ZW=Object.freeze([]);function JW(t,e,n,r,o){let s=e.__plainRows.rows,i=e.__plainRows.shared,a=oM(t),c=tM(a,i),l=t.childProps,f=jo(t,"childProps"),u=t.childExtends,d=new Array(n.length),p=new Map;for(let b=0;b<n.length;b++){let _=YE(t,n[b],b,l,f,u,!1,!0);if(p.has(_.key))return!1;p.set(_.key,_),d[b]=_}for(let b=0;b<d.length;b++){let _=d[b];_.input=rM(n[b],l,u,_.props);let A=c?s.get(_.key):void 0;if(A===void 0)continue;let C=t[_.key];C&&C.__ref&&C.parent===t&&tM(_.input,A)&&(_.kept=!0,_.snap=A)}let g=o?[]:null;for(let b of s.keys()){let _=p.get(b);if(_&&_.kept)continue;let A=t[b];A?.remove&&A.remove(),delete t[b],g&&g.push(b)}let h=o?[]:null,m=o?[]:null,y=new Map,x=null,E=null;for(let b=0;b<d.length;b++){let _=d[b];if(_.kept){y.set(_.key,_.snap),m&&m.push(_.key);let O=Wr(t[_.key]);O&&(E=Gm(t,O,E));continue}y.set(_.key,Xm(_.input));let A;try{A=Xt(li(_.def,_.supplied),t,_.key,r,kd(t,E))}catch(O){if(y.set(_.key,ev),x||(x=new Set),x.add(_.key),typeof console<"u"&&console.error){let N=e.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${_.key}" failed to construct at ${N} (re-run, skipping this row):`,O?.message||O)}continue}if(e.__disposed)return!0;if(!A){y.delete(_.key);continue}let C=Wr(A);C&&(E=C),h&&h.push(_.key)}e.__plainRows=new Zm(c?i:Xm(a),y);let T=Array.from(y.keys());XE(t,T,x);let S=new Set(e.__children),w=[];for(let b=0;b<T.length;b++)S.has(T[b])&&w.push(T[b]);for(let b of e.__children)y.has(b)||w.push(b);return e.__children=w,o&&(h.length||g.length)&&Fm(t,{added:h,removed:g,kept:m}),!0}var sM={track:t=>new Zm(Xm(oM(t)),new Map),reconcile(t,e,n,r,o){let s=Array.isArray(n)?n:n==null||n===!1?ZW:null;return!!s&&JW(t,e,s,r,o)}};M();var QW=new Set(["src","srcset"]),t8=new Set(["class","style","id","data-br"]),e8=new Set(["sizes","loading","fetchpriority","decoding","crossorigin","referrerpolicy","width","height"]),n8=new Set(["sizes","media","type","width","height"]),r8=t=>t==="img"?e8:t==="source"?n8:null,o8=t=>t.charCodeAt(0)===97&&t.startsWith("aria-")||t.charCodeAt(0)===100&&t.startsWith("data-")&&t!=="data-br"&&t!=="data-key",iM=(t,e)=>{for(let n of e){let r=t.nodes.get(n.target);r&&(r.delete(n.attributeName),r.size||t.nodes.delete(n.target))}},s8=(t,e,n)=>{let r=t.built;if(!r){let o=e.ownerDocument&&e.ownerDocument.defaultView&&e.ownerDocument.defaultView.MutationObserver||(typeof MutationObserver=="function"?MutationObserver:null);if(!o)return!1;let s=new Map;r=t.built={nodes:s,observer:null},r.observer=new o(i=>iM(r,i))}return r.nodes.set(e,new Set(n)),r.observer.observe(e,{attributes:!0,attributeFilter:n}),!0};function Ho(t){let e=t&&t.built;if(!e)return 0;t.built=null,iM(e,e.observer.takeRecords()),e.observer.disconnect();let n=0;for(let[r,o]of e.nodes)for(let s of o)r.hasAttribute(s)&&(r.removeAttribute(s),n++);return e.nodes.clear(),n}function nv(t){let e=t?.context?.__hydration;if(!e)return null;let n=t.tag=ir(t);if(n==="string"||n==="fragment")return null;let r=Rn(t),o=e.registry[r===""?"__root":r],s=o!==void 0?e.nodes[o]:null;if(!s||s.nodeType!==1||e.claimed.has(s))return o!==void 0&&e.misses++,null;let i=Vr(n)&&(n==="svg"||t.parent?.node?.namespaceURI===oi),a=Vr(n)&&!i&&n!=="svg"?"div":n,c=i?s.namespaceURI===oi:s.namespaceURI!==oi;if(s.localName!==a||!c)return e.misses++,null;e.claimed.add(s),e.adopted++;let l=e.pending;if(l&&l.delete(s)){let p=s.parentNode,g=p?(e.pendingIn.get(p)||1)-1:0;g>0?e.pendingIn.set(p,g):p&&e.pendingIn.delete(p)}let f=null,u=null,d=r8(s.localName);for(let p of Array.from(s.getAttributeNames?s.getAttributeNames():[]))QW.has(p)||p==="data-key"||(t8.has(p)||(u||(u=new Map)).set(p,s.getAttribute(p)),!(d&&d.has(p))&&(o8(p)?(f||(f=[])).push(p):s.removeAttribute(p)));if(f&&!s8(e,s,f))for(let p of f)s.removeAttribute(p);if(u&&t.__ref&&(t.__ref.__builtAttrs={node:s,values:u}),l){let p=0,g=0,h=s.firstChild,m=t.text!=null&&h&&h.nodeType===3&&!l.has(h)?h:null;m&&t.__ref&&(t.__ref.__builtText=m);for(let y=s.firstChild;y;){let x=y.nextSibling;y!==m&&!l.has(y)&&(y.nodeType===3?p++:y.nodeType!==8&&g++,s.removeChild(y)),y=x}(g||p>(t.text!=null&&!m?1:0))&&(e.whole||(e.whole=new Set)).add(t)}else for(;s.firstChild;)s.removeChild(s.firstChild);return s.localName==="img"&&s.complete&&s.naturalWidth>0&&a8(s),s}var i8=500;function a8(t){let e=!1,n=!1,r=o=>{o.isTrusted&&(n?o.stopImmediatePropagation():e=!0,t.removeEventListener("load",r,!0))};t.addEventListener("load",r,!0),setTimeout(()=>{if(!e){if(!(t.complete&&t.naturalWidth>0)){t.removeEventListener("load",r,!0);return}n=!0,t.dispatchEvent(new Event("load")),setTimeout(()=>t.removeEventListener("load",r,!0),i8)}},0)}function c8(t,e,n,r,o){if(o.parentNode===r&&t.claimed.has(o))return!0;let s=t.pendingIn;if(!s||!s.has(r))return!1;let i,a=n&&n.__ref,c=a&&a.__children,l=c?c.lastIndexOf(e.key):-1;for(let f=l-1;f>=0;f--){let u=n[c[f]],d=u&&u.node;if(d&&d!==o&&d.parentNode===r){i=d.nextSibling;break}}return i===void 0&&(i=ad(r,a&&a.__textNode)),i===o||r.insertBefore(o,i),!0}function l8(t,e){let n=t.whole;if(!n)return!1;if(n.has(e))return!0;let r=e.parent;return!r||!n.has(r)?!1:(n.add(e),!0)}function f8(t,e){let n=e&&e.__ref,r=e&&e.node;if(!n||!r||!t.pending||!t.claimed.has(r))return null;let o=r.parentNode;return o?(t.claimed.delete(r),t.adopted--,t.pending.add(r),t.pendingIn.set(o,(t.pendingIn.get(o)||0)+1),n.__keepNode=!0,r):null}function u8(t,e){if(!e||!t.pending||!t.pending.delete(e))return;let n=e.parentNode;if(n){let r=(t.pendingIn.get(n)||1)-1;r>0?t.pendingIn.set(n,r):t.pendingIn.delete(n),e.remove()}}var aM={adopt:nv,place:c8,whole:l8,settle:Ho,handBack:f8,settleHandBack:u8};var pi=50;function pr(t){return t===!0?pi:typeof t=="number"&&t>0?t:0}var $n=[],$c=!1,Wo=0,Kr=pi,Td=!1,Qm=[],ty=typeof performance<"u"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),Jm=[],vd=null;function d8(t){if(!vd){let e=new MessageChannel;e.port1.onmessage=()=>{let n=Jm.shift();!Jm.length&&typeof e.port1.unref=="function"&&e.port1.unref(),n&&n()},vd=e}Jm.push(t),Jm.length===1&&typeof vd.port1.ref=="function"&&vd.port1.ref(),vd.port2.postMessage(0)}function iv(t){let e=typeof globalThis<"u"?globalThis.scheduler:null;if(e&&typeof e.yield=="function"){e.yield().then(t,t);return}if(typeof setImmediate=="function"){setImmediate(t);return}if(typeof MessageChannel=="function"){d8(t);return}setTimeout(t,0)}function hr(){return new Promise(t=>iv(t))}var Ad=0,ov=0,sv=0,Nc=0;function av(){Ad=0,ov=Wo,sv=0,Nc=0}function cM(){if(!Wo)return!1;if(Ad++,Nc>0)return Nc--,!1;let t=ty(),e=t-Wo,n=e/Ad,r=(t-ov)/(Ad-sv),o=r>n?r:n;ov=t,sv=Ad;let s=Kr-e-o;return s<=0?(Td=!0,!0):(Nc=o>0?Math.floor(s/o/2):0,!1)}var di=0;function lM(t=pi){di===0&&!Wo?(Wo=ty(),Td=!1,Kr=t,av()):t<Kr&&(Kr=t,Nc=0),di++}var qe=null,rv=!1,p8=typeof queueMicrotask=="function"?queueMicrotask:t=>Promise.resolve().then(t);function cv(){Wo=0,Td=!1,Kr=pi,av()}function h8(){rv||(rv=!0,p8(()=>{rv=!1,di===0&&cv()}))}function fM(){di>0&&di--,!(di!==0||qe!==null)&&($c?h8():cv())}function lv(t,e=pi,n=null){let r={fn:t,budget:e,lease:n};qe?qe.push(r):$n.push(r),$c||($c=!0,iv(uM))}function fv(t){let e=t&&t.context;return e&&e.__mountLease||null}function Cd(t){if(!t)return;let e=0;for(let n=0;n<$n.length;n++){let r=$n[n];r.lease!==t&&($n[e++]=r)}if($n.length=e,qe){let n=0;for(let r=0;r<qe.length;r++)qe[r].lease!==t&&(qe[n++]=qe[r]);qe.length=n}typeof t.lost=="function"&&t.lost()}function g8(t){if(t.lease!==null&&!t.lease.live()){Cd(t.lease);return}let e=qe;qe=[];try{t.fn()}catch(n){typeof console<"u"&&console.error&&console.error("[smbls] deferred mount chunk failed:",n?.message||n)}finally{let n=qe;qe=e,n.length&&$n.unshift(...n)}}function Re(){return!$c&&!$n.length?Promise.resolve():new Promise(t=>Qm.push(t))}function Ko(){return!$c&&!$n.length}function m8(){if(!Qm.length)return;let t=Qm;Qm=[];for(let e=0;e<t.length;e++)t[e]()}function uM(){for(Wo=ty(),Td=!1,Kr=1/0,av();$n.length;){let t=$n.shift();if(t.budget<Kr&&(Kr=t.budget,Nc=0),g8(t),Td||ty()-Wo>=Kr)break}if(di=0,cv(),$n.length){iv(uM);return}$c=!1,m8()}function ey(t){wc(t.__ref).pending++}function Ge(t){let e=t&&t.__ref,n=e&&e.__mount;if(!n||!(n.pending>0)||--n.pending>0||e.__disposed)return;let r=n.tail;r&&(n.tail=null,r())}function ny(t){let e=t&&t.__ref&&t.__ref.__mount;return!!(e&&e.tail)}function qr(t){let e=t&&t.__ref&&t.__ref.__mount;return!e||!e.tail?Promise.resolve(t):new Promise(n=>{(e.waiters||(e.waiters=[])).push(n)})}function uv(t,e=t&&t.__ref){let n=e&&e.__mount,r=n&&n.waiters;if(r){n.waiters=null;for(let o=0;o<r.length;o++)r[o](t)}}function dM(t,e=t&&t.__ref){let n=e&&e.__mount;if(!n||!n.tail)return;n.tail=null,n.pending=0;let r=n.holder;n.holder=null,uv(t,e),r&&Ge(r)}function y8(t,e){let n=e&&e.mountYield;if(!n&&!t.yieldChildren)return 0;let r=st.hydration!==null&&t.context?t.context.__hydration:null;if(r&&st.hydration.whole(r,t))return 0;let o=n?pr(n):0,s=pr(t.yieldChildren);return o&&s?o<s?o:s:o||s}function pM(t,e,n,r,o){lM(r);try{hM(t,t.__ref,0,e,n,r,o,!1)}finally{fM()}}function hM(t,e,n,r,o,s,i,a){try{for(let c=n;c<r;c++){let l=e.__mount,f=l?l.pending:0;if(o(c)===!1)continue;if(e.__disposed)break;let u=cM(),d=e.__mount;if(c+1<r&&(u||(d?d.pending:0)>f)){i&&i.onSuspend&&i.onSuspend(),a||ey(t);let p=c+1;lv(()=>b8(t,e,p,r,o,s,i),s,fv(t));return}}}catch(c){if(!a)throw c;Wm(t,c)}a&&Ge(t)}function b8(t,e,n,r,o,s,i){if(e.__disposed||i&&i.isStale&&i.isStale()){Ge(t);return}hM(t,e,n,r,o,s,i,!0)}function _8(t,e,n){ey(t),lv(()=>{try{let r=t.__ref;r&&!r.__disposed&&n()}catch(r){Wm(t,r)}finally{Ge(t)}},e,fv(t))}function w8(t,e,n,r){let o=t.__ref,s=wc(o),i=++s.chunkGen,a=t.node,c=[],l=!1;pM(t,e,f=>{let u=n(f,l?kd(t,S8(a,c)):void 0),d=gM(u);return d?c.push(d):u&&u.__ref.__mount&&u.__ref.__mount.held&&c.push(u),u},r,{isStale:()=>s.chunkGen!==i,onSuspend:()=>{l=!0}})}function gM(t){let e=Wr(t);if(e)return e;let n=t&&t.__ref;return n&&n.__if!==!1&&t.tag==="fragment"&&n.__fragmentAnchor||null}function S8(t,e){for(let n=e.length-1;n>=0;n--){let r=e[n].__ref?gM(e[n]):e[n];if(r&&r.parentNode===t)return r}return null}function x8(t,e){let n=t.__ref;try{Pc(t,!0),wI(t),BE(t,e)}finally{uv(t,n);let r=n.__mount,o=r&&r.holder;o&&(r.holder=null,Ge(o))}}var mM={budgetOf:y8,run:pM,rows:w8,defer:_8,hold:ey,finish:x8,abandon:dM};var ry="--smbls-cvw",k8=/(^|[^\w.-])(-?(?:\d+\.?\d*|\.\d+))[sld]?vw\b/g,bM=/\d[sld]?vw\b/,_M=t=>t.replace(k8,"$1calc($2 * var("+ry+"))"),wM=t=>{if(typeof t=="string")return bM.test(t)?_M(t):t;if(!t||typeof t!="object"||Array.isArray(t))return t;let e=null;for(let n in t){let r=t[n],o=n===ry?r:wM(r);o!==r&&((e||(e=Object.assign({},t)))[n]=o)}return e||t},E8=t=>{let e=P().cssVars||{},n={[ry]:t},r=[];for(let o in e){let s=e[o];typeof s=="string"&&bM.test(s)&&(n[o]=_M(s),r.push(o))}for(let o=0;o<r.length;o++){let s="var("+r[o];for(let i in e){let a=e[i];!(i in n)&&typeof a=="string"&&(a.includes(s+")")||a.includes(s+","))&&(n[i]=a,r.push(i))}}return n},yM=new WeakSet,SM={on:!1,lengths:wM,scope(t,e){let n=t.breakpointsFrom,r="1cqi";if(gc(n,t)){this.on=!0;let o=t.node&&t.node.ownerDocument&&t.node.ownerDocument.defaultView||globalThis;if(!yM.has(o)){yM.add(o);try{o.CSS.registerProperty({name:ry,syntax:"<length>",inherits:!0,initialValue:"1vw"})}catch{}}}else{try{typeof n=="function"&&(n=n(t,t.state,t.context))}catch{return}if(!this.on||typeof n!="string"||!/^(window|media)$/.test(n.trim()))return;r="1vw"}return e["& > *"]=Object.assign(E8(r),e["& > *"]),!0}};function xM(){st.viewEvents=CL,st.chains=EL,st.rows=sM,st.hydration=globalThis.__SMBLS_BUILD_DROP_F_prerender__?null:aM,st.mount=mM,st.containerVw=globalThis.__SMBLS_BUILD_DROP_F_containerVw__?null:SM}xM();Mt();var hi="inertOutside",A8=new Set(["SCRIPT","STYLE","LINK","META","TEMPLATE","NOSCRIPT","BASE","TITLE"]),T8='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',C8={attributes:!0,attributeFilter:["inert"]},kM=new WeakMap,EM=new WeakMap,Od=new Set,vM=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function qo(t){try{return Te(t)}catch(e){console.error("[smbls] inertOutside:",e)}}function AM(t){let e=()=>qo(t);typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)}function O8(t){if(!t||!t.defaultView||!("activeElement"in t))return null;let e=kM.get(t);if(e)return e;let n=t.defaultView.MutationObserver||globalThis.MutationObserver;return typeof n!="function"?null:(e={doc:t,layers:[],held:new Map,top:null,observer:null},e.observer=new n(r=>qo(()=>oy(e,r))),kM.set(t,e),e)}function dv(t,e){let n=t.element.node;return!!n&&n.nodeType===1&&n.isConnected&&n.ownerDocument===e}function R8(t){let e=t.activeElement;return e&&e!==t.body&&e!==t.documentElement?e:null}var TM=t=>!!(t.closest&&t.closest("[inert]"));function P8(t){let e=t.ownerDocument,n=new Set,r=[];for(let o=t;o!==e.body;o=o.parentNode){let s=o.parentNode;if(!s||s.nodeType!==1||s===e.documentElement)break;r.push(s);for(let i=s.firstElementChild;i;i=i.nextElementSibling)i!==o&&!A8.has(i.tagName)&&n.add(i)}return{outside:n,parents:r}}function CM(t,e){for(let n=0;n<e.length;n++){let{type:r,target:o}=e[n];r==="attributes"&&t.held.has(o)&&t.held.set(o,!o.hasAttribute("inert"))}}function oy(t,e){let{doc:n,held:r,observer:o}=t;e&&CM(t,e),CM(t,o.takeRecords());let s=t.top,i=[];for(let u of t.layers){let d=dv(u,n);d&&!u.live&&(i.push(u),u.returnFocus=R8(n)),u.live=d}i.length&&(t.layers=t.layers.filter(u=>!i.includes(u)).concat(i));let a=null;for(let u=t.layers.length-1;u>=0&&!a;u--)t.layers[u].live&&(a=t.layers[u]);t.top=a;let{outside:c,parents:l}=a?P8(a.element.node):{outside:new Set,parents:[]};for(let[u,d]of r)c.has(u)||(d&&u.removeAttribute("inert"),r.delete(u));for(let u of c)r.has(u)||r.set(u,!1),u.hasAttribute("inert")||(u.setAttribute("inert",""),r.set(u,!0));o.takeRecords(),o.disconnect();for(let u of l)o.observe(u,{childList:!0});for(let u of r.keys())o.observe(u,C8);t.layers.some(u=>!u.live)?Od.add(t):Od.delete(t);for(let u of t.layers)!u.live&&!u.connecting&&!dc(u.element)&&(u.connecting=!0,Do(u.element,()=>qo(()=>{u.connecting=!1,u.declared&&!u.live&&dv(u,t.doc)&&oy(t)})));if(a===s)return;let f=s&&!(s.declared&&s.live)?s:null;if(a&&i.includes(a))f&&f.returnFocus&&(a.returnFocus=f.returnFocus),AM(()=>RM(t,a));else if(f){let u=f.returnFocus;AM(()=>L8(t,f,u))}f&&(f.returnFocus=null)}function RM(t,e){let n=e.element.node;if(t.top!==e||!n||!n.isConnected)return;let r=t.doc,o=r.activeElement;if(o&&n.contains(o))return;let s=new Set,i=(a,c)=>{if(s.has(a)||(s.add(a),a.matches(":disabled")))return!1;let l=c&&a.getAttribute("tabindex");return l&&parseInt(l,10)<0?!1:(a.focus(),r.activeElement===a)};for(let a of n.querySelectorAll("[autofocus]"))if(i(a,!1))return;for(let a of n.querySelectorAll(T8))if(i(a,!0))return;o&&o!==r.body&&typeof o.blur=="function"&&o.blur()}function L8(t,e,n){if(e.declared&&e.live)return;let r=t.doc,o=r.activeElement,s=e.element.node;(!o||o===r.body||s&&s.contains(o)||TM(o))&&(n&&n.isConnected&&n.ownerDocument===r&&!TM(n)&&(n.focus({preventScroll:!0}),r.activeElement===n)||t.top&&RM(t,t.top))}function pv(t,e){if(t.declared===e)return;let n=t.manager;if(t.declared=e,t.live=!1,e)n.layers.push(t);else{let r=n.layers.indexOf(t);r!==-1&&n.layers.splice(r,1)}oy(n)}function PM(t){let e=t[hi];if(typeof e=="function")try{e=e(t,t.state,t.context)}catch{e=!1}return!!e}function OM(t){let e=EM.get(t);if(e)return e;let n=t.__ref,r=t.node;if(!n||!r||r.nodeType!==1)return null;let o=O8(r.ownerDocument);if(!o)return null;e={element:t,manager:o,declared:!1,live:!1,connecting:!1,returnFocus:null},EM.set(t,e);let s=Y(()=>{let i=PM(t);qo(()=>pv(e,i))},{depth:n.path.length,label:()=>n.path.join(".")+"::"+hi});return n.__effects||(n.__effects=[]),n.__effects.push(s),n.__eventCleanup||(n.__eventCleanup=[]),n.__eventCleanup.push(()=>qo(()=>pv(e,!1))),e}function D8(){for(let t of Od){if(!t.doc.defaultView){Od.delete(t);continue}t.layers.some(e=>!e.live&&dv(e,t.doc))&&oy(t)}}var sy={name:hi,create(t){if(vM(t,hi)){if(globalThis.__SMBLS_BUILD_DROP_F_inertOutside__)return zt(hi,t);qo(()=>OM(t))}},render(){globalThis.__SMBLS_BUILD_DROP_F_inertOutside__||Od.size&&qo(D8)},update(t){if(vM(t,hi)){if(globalThis.__SMBLS_BUILD_DROP_F_inertOutside__)return zt(hi,t);qo(()=>{let e=OM(t);e&&pv(e,PM(t))})}}};var LM={blue:"#213eb0",green:"#389d34",red:"#e15c55",yellow:"#EDCB38",orange:"#e97c16",transparent:"rgba(0, 0, 0, 0)",black:"black",gray:"#4e4e50",white:"white",title:["gray-168","gray+168"],caption:["gray-68","gray+68"],paragraph:["gray-42","gray+42"],disabled:["gray-26","gray+26"],line:["gray-16","gray+16"],scrim:["black.45","black.55"],scrimSoft:["black.2","black.3"],blueDeep:"#0A5CB8",blueBright:"#47A8FF",accentInk:["blueDeep","blueBright"],greenDeep:"#2A6E28",greenBright:"#7FD07B",successInk:["greenDeep","greenBright"],redDeep:"#A83520",redBright:"#FF8C78",dangerInk:["redDeep","redBright"],orangeDeep:"#94500F",orangeBright:"#F4A45E",warningInk:["orangeDeep","orangeBright"],magentaDeep:"#A100A1",magentaBright:"#FF7AFF",magentaInk:["magentaDeep","magentaBright"]},DM={"gradient-blue-light":`linear-gradient(to right,
63
63
  rgba(4, 116, 242, 1),
64
64
  rgba(0, 48, 103, 1)
65
65
  )`,"gradient-blue-dark":`linear-gradient(to right,
@@ -85,12 +85,12 @@ FROM ${a}${l}`},l6=t=>{let e=[],n=(r,o)=>{for(let s in r){let i=o?`${o}/${s}`:s;
85
85
  #1E54F0 36%,
86
86
  #8B4CCA 69%,
87
87
  #C66894 100%
88
- )`};var XW={primary:{"@dark":{color:"white",background:"blue",".color-only":{color:"blue"},".inactive":{background:"gray+16"},".gradient":{color:"white",background:"gradient-blue"}},"@light":{color:"white",background:"gradient-blue",".color-only":{color:"blue"},".gradient":{color:"white",background:"gradient-colorful"}}},secondary:{"@dark":{color:"white",background:"green",".color-only":{color:"green"}},"@light":{color:"white",background:"green",".color-only":{color:"green"}},".child":"--primary"},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light",":hover":{color:"gray=95",background:"gradient-light-active"},":focus":{color:"gray=120",background:"gradient-light-active"},":active":{color:"gray=120",background:"gradient-light-active"},".active":{color:"gray=120",background:"gradient-light-active"}},"@light":{color:"gray3",background:"gradient-dark",":hover":{color:"gray1",background:"gradient-dark-active"},":active":{color:"gray1",background:"gradient-dark-active"},".active":{color:"gray1",background:"gradient-dark-active"}}}},ZW={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},JW={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"},".light":{color:"white",background:"gray3"},".dark":{color:"white",background:"black.35"}},card:{"@light":{background:"gray.975+150"},"@dark":{color:"white",background:"gray.975-56"},".child":{color:"white",background:"gray3"},".secondary":{color:"white",background:"gradient-blue-dark",".child":{color:"white",background:"black.35"}}},dialog:{"@dark":{color:"white",background:"gray.92",".helper":{color:"white",background:"black"}},"@light":{color:"currentColor",background:"gray.1"}}},sM={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...XW,...ZW,...JW,backdrop:{"@light":{background:"scrim",backdropFilter:"blur(8px)"},"@dark":{background:"scrim",backdropFilter:"blur(8px)"}},backdropSoft:{"@light":{background:"scrimSoft",backdropFilter:"blur(4px)"},"@dark":{background:"scrimSoft",backdropFilter:"blur(4px)"}},none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var iM={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var aM={ratio:1.618,subSequence:!0};var cM={SourceSans:[{url:""}]},lM={system:{isDefault:!0,isSystemFallback:!0,value:["system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"','"Liberation Sans"'],type:"sans-serif"}};var fM={symbols:'<svg xmlns="http://www.w3.org/2000/svg" width="41" height="42" viewBox="0 0 41 42"><path fill="currentColor" fill-rule="evenodd" d="M26.6448969,0.699064106 C31.4862479,1.83000067 35.6718819,4.48073656 38.3104478,8.91022511 C40.5212645,12.5974948 41.4936378,17.0951724 40.5085112,21.3679841 C39.7174644,25.0315254 37.8558379,27.853625 34.8002871,29.8369535 C31.9792925,31.7073227 27.90737,32.069064 24.6776501,31.3213124 C23.2887047,30.9944607 20.6411869,29.9775216 19.044333,28.0178349 C17.5928447,26.2365433 17.1250067,23.5192397 17.0461096,22.8419583 C16.9044422,21.6258334 17.1065683,20.249997 17.3800113,19.0276209 C17.9614095,16.4655592 18.9984397,14.7924534 21.1401118,13.3818866 C22.95018,12.1750388 24.6834696,11.8738651 26.7601335,12.3496124 C28.1855093,12.6880929 29.4520072,13.526716 30.3514025,14.7276098 C30.6271426,15.093878 30.8260324,15.4389318 31.059655,15.8362933 L30.9598079,15.7715366 C29.6377659,14.9422902 28.1654404,14.6590001 26.6448969,15.0752526 C25.2996601,15.4486698 24.1453463,16.3687006 23.4390969,17.6304467 C22.6973258,18.9448239 22.4839364,20.5087166 22.8465467,21.9733145 C23.2152637,23.4394215 24.1276197,24.6832715 25.381967,25.429977 C26.7647836,26.2608222 28.5893081,26.47537 30.1320438,26.0161118 C32.0344739,25.4497656 33.5958796,24.1165457 34.5824098,22.3233381 C35.8078311,20.0959926 36.0316242,17.5753145 35.4197363,15.1376991 C34.8712232,12.9726344 33.491011,11.1258939 31.7578503,9.86101942 C28.3978494,7.40873928 23.8145474,6.88014849 19.8961329,8.1555193 C16.9596954,9.11146975 14.399202,11.0657028 12.6221782,13.707146 C10.5375814,16.8894059 9.73736372,20.794518 10.3986926,24.5579956 C10.9302311,27.7327705 12.5716868,31.0242929 14.8485647,33.1339502 C15.5517576,33.7855358 16.0056239,34.2996296 16.8186608,34.9238068 C16.1252729,35.6670587 15.729719,36.1210912 15.0276006,36.8553491 L10.5425168,41.6144377 C8.59431563,40.2572487 6.84060794,38.6181461 5.33246714,36.7448351 C1.65619854,32.1632109 -0.0655234106,26.1858125 0.562658817,20.1851649 C1.1000136,14.4158268 3.81414269,9.08050481 8.0996615,5.36924966 C12.3107417,1.69300072 17.6911238,0.0107792851 23.1108097,0.299129816 C25.006381,0.458182488 26.18441,0.591493918 26.6448969,0.699064106 Z"/></svg>',logo:'<svg xmlns="http://www.w3.org/2000/svg" width="41" height="42" viewBox="0 0 41 42"><path fill="currentColor" fill-rule="evenodd" d="M26.6448969,0.699064106 C31.4862479,1.83000067 35.6718819,4.48073656 38.3104478,8.91022511 C40.5212645,12.5974948 41.4936378,17.0951724 40.5085112,21.3679841 C39.7174644,25.0315254 37.8558379,27.853625 34.8002871,29.8369535 C31.9792925,31.7073227 27.90737,32.069064 24.6776501,31.3213124 C23.2887047,30.9944607 20.6411869,29.9775216 19.044333,28.0178349 C17.5928447,26.2365433 17.1250067,23.5192397 17.0461096,22.8419583 C16.9044422,21.6258334 17.1065683,20.249997 17.3800113,19.0276209 C17.9614095,16.4655592 18.9984397,14.7924534 21.1401118,13.3818866 C22.95018,12.1750388 24.6834696,11.8738651 26.7601335,12.3496124 C28.1855093,12.6880929 29.4520072,13.526716 30.3514025,14.7276098 C30.6271426,15.093878 30.8260324,15.4389318 31.059655,15.8362933 L30.9598079,15.7715366 C29.6377659,14.9422902 28.1654404,14.6590001 26.6448969,15.0752526 C25.2996601,15.4486698 24.1453463,16.3687006 23.4390969,17.6304467 C22.6973258,18.9448239 22.4839364,20.5087166 22.8465467,21.9733145 C23.2152637,23.4394215 24.1276197,24.6832715 25.381967,25.429977 C26.7647836,26.2608222 28.5893081,26.47537 30.1320438,26.0161118 C32.0344739,25.4497656 33.5958796,24.1165457 34.5824098,22.3233381 C35.8078311,20.0959926 36.0316242,17.5753145 35.4197363,15.1376991 C34.8712232,12.9726344 33.491011,11.1258939 31.7578503,9.86101942 C28.3978494,7.40873928 23.8145474,6.88014849 19.8961329,8.1555193 C16.9596954,9.11146975 14.399202,11.0657028 12.6221782,13.707146 C10.5375814,16.8894059 9.73736372,20.794518 10.3986926,24.5579956 C10.9302311,27.7327705 12.5716868,31.0242929 14.8485647,33.1339502 C15.5517576,33.7855358 16.0056239,34.2996296 16.8186608,34.9238068 C16.1252729,35.6670587 15.729719,36.1210912 15.0276006,36.8553491 L10.5425168,41.6144377 C8.59431563,40.2572487 6.84060794,38.6181461 5.33246714,36.7448351 C1.65619854,32.1632109 -0.0655234106,26.1858125 0.562658817,20.1851649 C1.1000136,14.4158268 3.81414269,9.08050481 8.0996615,5.36924966 C12.3107417,1.69300072 17.6911238,0.0107792851 23.1108097,0.299129816 C25.006381,0.458182488 26.18441,0.591493918 26.6448969,0.699064106 Z"/></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 uM={tv:"(min-width: 2780px)",screenL:"(max-width: 1920px)","screenL<":"(min-width: 1920.02px)",screenM:"(max-width: 1680px)","screenM<":"(min-width: 1680.02px)",screenS:"(max-width: 1440px)","screenS<":"(min-width: 1440.02px)",tabletL:"(max-width: 1366px)","tabletL<":"(min-width: 1366.02px)",tabletM:"(max-width: 1280px)","tabletM<":"(min-width: 1280.02px)",tabletS:"(max-width: 1024px)","tabletS<":"(min-width: 1024.02px)",mobileL:"(max-width: 768px)","mobileL<":"(min-width: 768.02px)",mobileM:"(max-width: 560px)","mobileM<":"(min-width: 560.02px)",mobileS:"(max-width: 480px)","mobileS<":"(min-width: 480.02px)",mobileXS:"(max-width: 375px)","mobileXS<":"(min-width: 375.02px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var dM={base:150,ratio:1.333,unit:"ms",subSequence:!0,defaultBezier:"cubic-bezier(.29, .67, .51, .97)",springBezier:"cubic-bezier(.32, .72, 0, 1)"};var pM={radiusControl:"12px",radiusCard:"17px",radiusSheet:"24px",radiusPill:"999px",controlH:"44px",controlHCompact:"36px"};var ui={version:"0.0.1",color:rM,gradient:oM,theme:sM,typography:iM,spacing:aM,font:cM,fontFamily:lM,timing:dM,icons:fM,media:uM,sizes:pM,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}},modalIn:{from:{transform:"scale(0.95)",opacity:0},to:{transform:"",opacity:1}},modalOut:{to:{transform:"scale(0.95)",opacity:0}}},devices:{},class:{},svg:{},grid:{},shape:{}};var Fc={};F(Fc,{A:()=>C$,AssetPicture:()=>PM,Audio:()=>IM,Avatar:()=>J$,B:()=>QM,Block:()=>hM,Box:()=>ey,Br:()=>rN,Bridge:()=>uN,Button:()=>R$,ButtonSet:()=>I$,COMPONENTS:()=>wi,Caption:()=>HM,Checkbox:()=>hN,CheckboxHgroup:()=>gN,Circle:()=>TM,CircleButton:()=>L$,Clickable:()=>vM,Data:()=>eN,Dialog:()=>j$,DialogFooter:()=>V$,DialogHeader:()=>U$,Dropdown:()=>v2,DropdownDisclosure:()=>T2,DropdownList:()=>A2,DropdownParent:()=>C2,DropdownParentFocus:()=>O2,DropdownSiblingFocus:()=>R2,FileIcon:()=>LN,Flex:()=>mM,Focusable:()=>AM,FocusableComponent:()=>CM,Footnote:()=>JM,Form:()=>xM,Grid:()=>bM,Gutter:()=>wM,H1:()=>$M,H2:()=>FM,H3:()=>BM,H4:()=>jM,H5:()=>UM,H6:()=>VM,Headline:()=>XM,Hgroup:()=>cN,HgroupButton:()=>fN,HgroupRows:()=>lN,Hoverable:()=>EM,Hr:()=>nN,I:()=>tN,Icon:()=>RN,IconButton:()=>M$,IconText:()=>PN,Iframe:()=>kM,Img:()=>SM,Inline:()=>gM,InlineFlex:()=>yM,InlineGrid:()=>_M,Input:()=>dN,Italic:()=>GM,KangorooButton:()=>D$,Li:()=>oN,Link:()=>Xv,Notification:()=>P2,NumberInput:()=>pN,Ol:()=>iN,P:()=>zM,Picture:()=>RM,Radio:()=>mN,RadioHgroup:()=>yN,Range:()=>Q$,RouteLink:()=>T$,RouterLink:()=>Zv,SHAPES:()=>Qm,Select:()=>O$,Shape:()=>iv,Span:()=>NM,SquareButton:()=>P$,Strong:()=>WM,Subhead:()=>ZM,Svg:()=>LM,Text:()=>MM,Textarea:()=>wN,TextareaWithButton:()=>SN,Theme:()=>OM,Title:()=>YM,Toggle:()=>bN,ToggleHgroup:()=>_N,Tooltip:()=>Y$,TooltipHidden:()=>X$,TooltipLayer:()=>aA,TooltipParent:()=>Z$,U:()=>KM,Ul:()=>sN,Underline:()=>qM,Video:()=>DM,depth:()=>ty,focusableRingEnabled:()=>xd,focusableRingToken:()=>ov,focusableRingValue:()=>di,getSystemGlobalTheme:()=>kd});var tv={};F(tv,{Block:()=>hM,Flex:()=>mM,Grid:()=>bM,Gutter:()=>wM,Inline:()=>gM,InlineFlex:()=>yM,InlineGrid:()=>_M});var hM={display:"block"},gM={display:"inline"},mM={display:"flex"},yM={display:"inline-flex"},bM={display:"grid"},_M={display:"inline-grid"},wM={boxSize:"C1"};var ev={};F(ev,{Img:()=>SM});M();var SM={tag:"img",attr:{title:t=>t.title,alt:t=>t.alt!=null?t.alt:t.title||"",src:t=>{let e=_e(t);return e&&e.src||t.src},srcset:t=>{let e=_e(t);return(e?qf(e):"")||t.srcset||t.srcSet}}};var nv={};F(nv,{Form:()=>xM});var xM={tag:"form"};var rv={};F(rv,{Iframe:()=>kM});var kM={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var sv={};F(sv,{Clickable:()=>vM,Focusable:()=>AM,FocusableComponent:()=>CM,Hoverable:()=>EM,focusableRingEnabled:()=>xd,focusableRingToken:()=>ov,focusableRingValue:()=>di});var QW={appearance:"none",fontFamily:"inherit"},EM={transition:"opacity C defaultBezier, transform C defaultBezier",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}}},vM={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}};function xd(t){let e=t.context&&t.context.designSystem;return!e||e.focusableRing!==!1}function ov(t){let e=t.context&&t.context.designSystem,n=e&&e.focusableRing;if(typeof n=="string")return n?{outline:n,outlineOffset:void 0}:null;if(!n||typeof n!="object"||Array.isArray(n))return null;let r=n.outline||void 0,o=n.outlineOffset!=null&&n.outlineOffset!==""?n.outlineOffset:void 0;return r||o!==void 0?{outline:r,outlineOffset:o}:null}function di(t,e,n){let r=ov(t);return r&&r[e]!==void 0?r[e]:n}var AM={border:"none",outline:t=>xd(t)?"solid 0 currentColor":"none",":focus-visible":{opacity:1,outline:t=>xd(t)?di(t,"outline","solid X currentColor"):"none",outlineOffset:t=>xd(t)?di(t,"outlineOffset"):void 0}},CM={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",cursor:"pointer",":disabled":{cursor:"not-allowed"},style:QW};var lv={};F(lv,{Picture:()=>RM});var cv={};F(cv,{Theme:()=>OM,getSystemGlobalTheme:()=>kd});var av={};F(av,{Circle:()=>TM,SHAPES:()=>Qm,Shape:()=>iv,default:()=>t8,depth:()=>ty});M();var gn=P(),ty={4:{boxShadow:`rgba(0,0,0,.10) 0 2${gn.unit.default} 4${gn.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${gn.unit.default} 6${gn.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${gn.unit.default} 10${gn.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${gn.unit.default} 16${gn.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${gn.unit.default} 26${gn.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${gn.unit.default} 42${gn.unit.default}`}},Pc=t=>dt(t.shapeDirectionColor)||dt(t.borderColor)||dt(t.backgroundColor)||dt(t.background),Jm=t=>{let e=Xu.transition(t.transition,t);return e&&e.transition},Qm={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:t=>({position:t.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Pc(t),transition:Jm(t),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:t=>({position:"relative","&:before":{content:'""',display:"block",background:Pc(t),transition:Jm(t),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:t=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:Pc(t),transition:Jm(t),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:t=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Jm(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Pc(t)} 25%, transparent 25%), linear-gradient(315deg, ${Pc(t)} 25%, transparent 25%)`},"&:after":{background:Pc(t),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},iv={deps:{exec:St,getSpacingBasedOnRatio:Be,getMediaColor:Kt},classlist:{shape:t=>t.deps.exec(Qm[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Qm[t.shape+"Direction"];return t.shape&&e?e[t.shapeDirection||"left"]:null},shapeDirectionColor:t=>{let e={borderColor:t.deps.getMediaColor(t.background||t.backgroundColor)};return t.shapeDirection?e:null}}},TM={round:"100%"},t8=iv;M();var kd=({context:t,state:e})=>{let n=e&&e.root,r=n&&n.globalTheme||t.designSystem&&t.designSystem.globalTheme;return r==="auto"?null:r},OM={deps:{depth:ty},classlist:{depth:t=>!Xt(t.depth)&&t.deps.depth[t.depth]}};var RM={deps:{getSystemGlobalTheme:kd},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:kd},tag:"source",attr:{media:t=>{let{key:e,context:n,deps:r}=t,{media:o}=n.designSystem,s=r.getSystemGlobalTheme(t),i=(t.media||e).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":o[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(t,e)=>t.parent?.src||e.src}};var fv={};F(fv,{AssetPicture:()=>PM});M();var PM={tag:"picture",children:t=>{let e=_e(t);if(e)return Gf(e,t.alt)}};var uv={};F(uv,{Svg:()=>LM});var LM={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:t=>{let{context:e}=t;if(t.semanticIcons)return;if(t.html&&typeof t.html!="function")return t.call("exec",t.html,t);let{designSystem:n,utils:r}=e,o=n&&n.svg,s=t.spriteId||n&&n.useSvgSprite,i=t.call("exec",t.src,t),a=d=>`<use xlink:href="#${d}" />`;if(typeof i=="string"){let d=i.match(/^\s*<symbol\b[^>]*\bid="([^"]+)"/);if(d){let p=d[1],g=e.document||(typeof document<"u"?document:null);if(!(g&&typeof g.getElementById=="function"&&g.getElementById(p))){let m=r&&r.scratchSystem&&r.scratchSystem.appendSVGSprite;n&&!n.__svgCache&&(n.__svgCache={}),typeof m=="function"?m({[p]:i},{document:g}):r&&typeof r.init=="function"&&r.init({svg:{[p]:i}},{document:g,emotion:e.emotion})}return a(p)}}if(!s&&i)return i;let c=t.spriteId;if(c)return a(c);if(o&&o[i])return a(i);let l=Symbol.for(i),f=o[l];if(f&&o[f])return a(f);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let u=0;for(let d=0;d<i.length;d++)u=(u<<5)-u+i.charCodeAt(d)|0;return f=o[l]=`svg-${(u>>>0).toString(36)}`,r.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var dv={};F(dv,{Video:()=>DM});M();var DM={tag:"video",controls:!0,attr:{src:t=>{let e=_e(t);return e&&e.src||t.src}},children:t=>{let e=_e(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(n=>({tag:"source",attr:{src:n.src,type:n.format}}))},childExtends:{tag:"source"}};var pv={};F(pv,{Audio:()=>IM});M();var IM={tag:"audio",controls:!0,attr:{src:t=>{let e=_e(t);return e&&e.src||t.src}},children:t=>{let e=_e(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(n=>({tag:"source",attr:{src:n.src,type:n.format}}))},childExtends:{tag:"source"}};var hv={};F(hv,{B:()=>QM,Caption:()=>HM,Data:()=>eN,Footnote:()=>JM,H1:()=>$M,H2:()=>FM,H3:()=>BM,H4:()=>jM,H5:()=>UM,H6:()=>VM,Headline:()=>XM,I:()=>tN,Italic:()=>GM,P:()=>zM,Span:()=>NM,Strong:()=>WM,Subhead:()=>ZM,Text:()=>MM,Title:()=>YM,U:()=>KM,Underline:()=>qM});var MM={},NM={tag:"span"},$M={tag:"h1"},FM={tag:"h2"},BM={tag:"h3"},jM={tag:"h4"},UM={tag:"h5"},VM={tag:"h6"},zM={tag:"p"},HM={tag:"caption"},WM={tag:"strong",fontWeight:"700"},KM={tag:"u"},qM={tag:"u"},GM={tag:"i"},YM={},XM={tag:"h6",fontSize:"B",fontWeight:500},ZM={tag:"span",fontSize:"Z1"},JM={tag:"span",fontSize:"Z"},QM={tag:"b"},tN={tag:"i"},eN={tag:"data"};var gv={};F(gv,{Box:()=>ey,Br:()=>rN,Hr:()=>nN,Li:()=>oN,Ol:()=>iN,Ul:()=>sN});var e8=t=>{if(!t.context)return;let{props:e,__ref:n}=t,r=ee(e,t,{unpack:!1});n.__class=r},ey={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:e8},nN={tag:"hr",margin:"C1 0"},rN={tag:"br"},oN={tag:"li"},sN={tag:"ul",childExtends:{extends:"Li"}},iN={tag:"ol",childExtends:{extends:"Li"}};var mv={};F(mv,{Hgroup:()=>cN,HgroupButton:()=>fN,HgroupRows:()=>lN});var aN=t=>{if(t.text!=null||t.html!=null)return!0;for(let e in t){let n=e.charCodeAt(0);if(n>=65&&n<=90)return!0}return!1},cN={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:aN,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:aN,margin:"0",color:"paragraph"}},lN={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},fN={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var yv={};F(yv,{Bridge:()=>uN});var uN={tag:"div"};var bv={};F(bv,{Input:()=>dN});var dN={extends:["Focusable"],tag:"input",border:"none",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:t=>t.pattern,name:t=>t.name,placeholder:t=>t.placeholder,value:t=>{if(!t.value)return;let e=t.call("exec",t.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e},checked:t=>t.call("exec",t.checked,t),disabled:t=>t.disabled||null,required:t=>t.required,type:t=>t.type}};var _v={};F(_v,{NumberInput:()=>pN});var pN={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"1px solid line",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:t=>t.step,min:t=>t.min,max:t=>t.max}};var wv={};F(wv,{Checkbox:()=>hN,CheckboxHgroup:()=>gN});var hN={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",position:"absolute",opacity:"0",width:"1px",height:"1px",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},":focus-visible + div":{outline:t=>di(t,"outline","solid X currentColor"),outlineOffset:t=>di(t,"outlineOffset","Z")},attr:{checked:t=>t.call("exec",t.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},gN={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Sv={};F(Sv,{Radio:()=>mN,RadioHgroup:()=>yN});var mN={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}},yN={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var xv={};F(xv,{Toggle:()=>bN,ToggleHgroup:()=>_N});var bN={extends:"Checkbox",Input:{role:"switch",":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},_N={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var kv={};F(kv,{Textarea:()=>wN,TextareaWithButton:()=>SN});var wN={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},SN={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 Av={};F(Av,{FileIcon:()=>LN,Icon:()=>RN,IconText:()=>PN});Mt();var xN=new Set,n8=t=>t==="icon"?"build.treeShakeIcons":"build.treeShakeComponents",kN=(t,e,n)=>{let r=t+":"+e;if(xN.has(r)||(xN.add(r),typeof console>"u"||!console.error))return;let o=n&&n.__ref&&n.__ref.path,s=o&&o.length?` (at <${o.join(".")}>)`:"",i=n8(t);console.error(`[smbls] ${t==="icon"?"Icon":"Component"} "${e}"${s} is not in this build: symbols.json ${i} left it out because the project source never names it. Add "${e}" to ${i}.keep.`)};var r8=new Set;var EN=t=>r8.has(t);var vN=new Set,AN=(t,e)=>{if(!vN.has(t)&&(vN.add(t),typeof console<"u"&&console.warn)){let n=e&&e.__ref&&e.__ref.path,r=n&&n.length?` at <${n.join(".")}>`:"";console.warn(`[Icon] Unknown icon name "${t}"${r} \u2014 not registered in designSystem.icons, rendering the noIcon placeholder. Fix the name or register the icon in the design system.`)}},CN=(t,e)=>{let n=t.find(r=>r&&EN(r));return n?(kN("icon",n,e),!0):!1},TN=new WeakMap,o8=t=>{let e=TN.get(t);return e||(e={pending:new Map,waiting:new Map,failed:new Set},TN.set(t,e)),e},s8=(t,e)=>{if(!t)return null;let n=t.default||t;return typeof n=="string"?n.trim()?{[e]:n}:null:typeof n=="object"&&!Array.isArray(n)&&Object.keys(n).length?n:null},i8=(t,e,n)=>{let r=n&&n.context&&n.context.document||(typeof document<"u"?document:null);mt(t);try{let o=P();o&&!o.__svgCache&&(o.__svgCache={}),t.__svgCache||(t.__svgCache={});let s={};for(let i in e){let a=Ks(e[i],i);a&&(t.icons[i]=a,s[i]=a)}return t.useIconSprite&&r&&Object.keys(s).length&&qs(s,{document:r}),Object.keys(s).length>0}finally{ht()}},a8=(t,e,n,r,o)=>{let s=t&&t.designSystem,i=s&&s.iconsLoader;if(typeof i!="function"||!s.icons)return!1;let a=o8(s);if(a.failed.has(e))return!1;let c=a.waiting.get(e);if(c||(c=new Set,a.waiting.set(e,c)),c.add(o),a.pending.has(e))return!0;let l=()=>i(e,t),f=Promise.resolve().then(l).then(u=>{let d=s8(u,n);return d?i8(s,d,r):!1}).catch(u=>(typeof console<"u"&&console.error&&console.error(`[Icon] iconsLoader failed for "${e}":`,u),!1)).then(u=>{a.pending.delete(e);let d=a.waiting.get(e);a.waiting.delete(e),u||a.failed.add(e),d&&d.forEach(p=>{try{p(u)}catch(g){console.error("[Icon] repaint error:",g)}})});return a.pending.set(e,f),!0},c8="0 0 24 24",l8=/<(symbol|svg)\b[^>]*>/i,f8={viewBox:/\sviewBox\s*=\s*(?:"([^"]*)"|'([^']*)')/i,width:/\swidth\s*=\s*(?:"([^"]*)"|'([^']*)')/i,height:/\sheight\s*=\s*(?:"([^"]*)"|'([^']*)')/i},Ev=(t,e)=>{let n=t.match(f8[e]);return n?n[1]!==void 0?n[1]:n[2]:void 0},ON=t=>{let e=typeof t=="string"&&t.match(/^\s*(\d*\.?\d+)\s*(?:px)?\s*$/);return e?Number(e[1]):void 0},u8=(t,e)=>{if(typeof t!="string")return;let n=t.match(l8);if(!n)return;let r=(Ev(n[0],"viewBox")||"").trim().split(/[\s,]+/).map(Number),o=r.length===4&&r[2]>0&&r[3]>0?[r[2],r[3]]:void 0,s=ON(Ev(n[0],"width")),i=ON(Ev(n[0],"height")),a=s>0&&i>0?[s,i]:void 0,c=n[1].toLowerCase()==="symbol"||e?o||a:a||o;return c?`0 0 ${c[0]} ${c[1]}`:void 0},vv=t=>{let e=t.call("exec",t.viewBox,t);if(e)return e;let n=t.context&&t.context.designSystem,r=!!(t.spriteId||n&&n.useSvgSprite);return u8(t.call("exec",t.src,t),r)||c8},RN={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(t,e,n)=>{let{parent:r}=t,{icons:o,useIconSprite:s,verbose:i}=n&&n.designSystem,{toCamelCase:a}=n&&n.utils,c=!1,l=(h,m)=>{try{return{value:t.call("exec",h,m)}}catch(y){if(t.__ref&&(t.__ref.__iconNameError=y),!c&&typeof console<"u"&&console.warn){c=!0;let x=t.__ref&&t.__ref.path,k=x&&x.length?` at <${x.join(".")}>`:"";console.warn(`[Icon] name/icon factory threw${k} \u2014 treated as no name (a painted glyph stays):`,y&&y.message||y)}return{threw:!0}}},f=(h,m)=>{let{semanticIcons:y}=m&&m.designSystem,{toCamelCase:x}=m&&m.utils,C=x(h).split(/([a-z])([A-Z])/g),_=C[1]?C[0]:h.split(".")[0].split(" ")[0],b=y&&y[_];if(b){let w=h.includes(".")?"sfsymbols."+h.split(".").slice(1).join("."):"sfsymbols";return h=b[w]||b[h.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${h}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=h=>{let{key:m}=h,y=l(h.name||h.icon||m,h);if(y.threw)return{name:m,threw:!0};let x=y.value;return h.call("isString",x)&&x.includes("{{")&&(x=h.call("replaceLiteralsWithObjectFields",x)),{name:h.call("isString",x)?x:m}},d=t.src,p,g=()=>{let h=u(t);if(h.threw&&t.node&&t.node.innerHTML)return;let m=h.name,y=m;if(m.includes(" ")){let $=m.split(" ");m=$[0]+$.slice(1).map(N=>N.charAt(0).toUpperCase()+N.slice(1)).join("")}let x=a(m),k=x.split(/([a-z])([A-Z])/g),C=f(y,n);if(C){Object.assign(t,C);return}let _,b=t[".isActive"];b&&(b.name||b.icon)&&t.isActive&&(_=l(b.name||b.icon,t).value);let w=r&&r[".isActive"];w&&w.icon&&r.isActive&&(_=l(w.icon||w.Icon.name||w.Icon.icon,t).value),t.call("isString",_)&&_.includes("{{")&&(_=t.call("replaceLiteralsWithObjectFields",_));let S;o[_]&&(S=_),o[x]?S=x:o[k[0]+k[1]]?S=k[0]+k[1]:o[k[0]]?S=k[0]:i&&t.warn("Can't find icon:",m,S);let A=o[S],T=r&&r.src||d;!A&&!T&&(a8(n,y,x,t,N=>{if(!(p&&p._disposed)){if(!N)return globalThis.__SMBLS_BUILD_DROP_ICONS__&&CN([_,x,k[0]+k[1],k[0]],t)||AN(y,t);g()}})||globalThis.__SMBLS_BUILD_DROP_ICONS__&&CN([_,x,k[0]+k[1],k[0]],t)||AN(y,t));let O=s&&S,B=A||T||o.noIcon;if(!(t.spriteId===O&&t.src===B&&t.node&&t.node.innerHTML)){if(t.spriteId=O,t.src=B,typeof t.html=="function"&&t.node){let $=t.context&&t.context.designSystem;$&&mt($);try{let N=t.html(t,t.state,t.context);N!=null&&typeof N!="function"&&(t.node.innerHTML=N)}finally{$&&ht()}}t.node&&t.attr&&t.attr.viewBox===vv&&t.node.setAttribute("viewBox",vv(t))}};p=K(g,{depth:t.__ref&&t.__ref.path&&t.__ref.path.length||0}),t.__ref&&(t.__ref.__effects||(t.__ref.__effects=[]),t.__ref.__effects.push(p))},attr:{viewBox:vv,"aria-hidden":t=>t.ariaLabel||t.role==="img"?null:"true",focusable:"false"}},PN={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:t=>{let{parent:e}=t,n=t.call("exec",t.icon,t);return t.call("exec",n||e.icon||t.name||t.sfSymbols||e.sfSymbols,t)},icon:t=>t.call("exec",t.parent.icon,t.parent)},text:t=>t.text},LN={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Jv={};F(Jv,{A:()=>C$,Link:()=>Xv,RouteLink:()=>T$,RouterLink:()=>Zv});var Ic={};F(Ic,{default:()=>J8,getActiveRoute:()=>Yv,lastLevel:()=>ay,lastPathname:()=>Dc,loadLazy:()=>Vv,matchRoute:()=>Kv,parseQuery:()=>qv,parseRoutePattern:()=>iy,resolveRouterElement:()=>Pd,router:()=>In,runGuards:()=>x$,saveScrollPosition:()=>Ad});M();var Cv="__smblsRouter",Tv=new WeakMap,d8=0,Ov=()=>Date.now().toString(36)+(++d8).toString(36)+Math.random().toString(36).slice(2,6),Rv=t=>{try{let e=t&&t.history;if(e&&typeof e.pushState=="function"&&typeof e.replaceState=="function"&&typeof e.go=="function")return e}catch{}return null},zr=t=>{try{return t.state}catch{return}},vd=t=>{try{let{pathname:e,search:n,hash:r}=t.location;return e+n+r}catch{return null}},NN=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null},$N=t=>{let e=NN(t)?t[Cv]:null;return e&&typeof e.key=="string"&&typeof e.chain=="string"&&Number.isInteger(e.index)?e:null},Pv=(t,e)=>t==null?{[Cv]:e}:NN(t)?{...t,[Cv]:e}:null,Lv=()=>({key:Ov(),index:0,chain:Ov()}),Lc=(t,e)=>{let n=$N(e);return{key:n?n.key:null,index:n?n.index:null,chain:n?n.chain:null,url:vd(t),state:e}},FN=(t,e)=>{let n=$N(t);return e.key?!!n&&n.key===e.key:!n&&t===e.state},Ed=(t,e,n)=>!!n&&vd(t)===n.url&&FN(e,n),Dv=(t,e,n)=>({...t,url:e,state:n}),Iv=(t,e)=>{let n=zr(e),r=Lc(t,n);if(r.key)return r;let o=Lv(),s=Pv(n,o);if(!s)return r;try{e.replaceState(s,null)}catch{return r}return Dv(o,r.url,s)},p8=(t,e)=>{let n=Tv.get(t);return!n&&e&&(n={current:null,pending:null,expect:null,seq:0,pops:new WeakMap,positions:null,scrollNode:null,restore:null},Tv.set(t,n)),n||null},BN="smbls.router.scroll",DN=100,h8=1e3,IN=["wheel","touchstart","keydown","pointerdown"],jN=t=>{try{return t.sessionStorage||null}catch{return null}},UN=t=>{try{let e=JSON.parse(t.getItem(BN)||"[]");return Array.isArray(e)?e.filter(n=>Array.isArray(n)&&typeof n[0]=="string"):[]}catch{return[]}},VN=(t,e)=>{if(!t.positions){t.positions=new Map;let n=jN(e);if(n)for(let[r,o]of UN(n))o&&Number.isFinite(o.top)&&Number.isFinite(o.left)&&t.positions.set(r,{top:o.top,left:o.left})}return t.positions},Mv=(t,e,n,r)=>{let o=VN(t,e);o.delete(n),o.set(n,{top:Math.round(Number(r.scrollTop)||0),left:Math.round(Number(r.scrollLeft)||0)}),o.size>DN&&o.delete(o.keys().next().value);let s=jN(e);if(s)try{let i=new Map(UN(s));for(let[a,c]of o)i.delete(a),i.set(a,c);s.setItem(BN,JSON.stringify(Array.from(i).slice(-DN)))}catch{}},MN=(t,e,n)=>{(!e||e.visibilityState!=="hidden")&&typeof t.requestAnimationFrame=="function"?t.requestAnimationFrame(n):typeof t.setTimeout=="function"?t.setTimeout(n,16):setTimeout(n,16)},g8=(t,e,n,r,o,s,i)=>{n.restore&&n.restore.end("replaced"),n.restore=r;let a=typeof i=="number"&&i>=0?i:h8,c=()=>Math.max(0,(Number(o.scrollHeight)||0)-(Number(o.clientHeight)||0)),l=(h,m)=>{typeof o.scrollTo=="function"?o.scrollTo({top:h,left:m,behavior:"instant"}):(o.scrollTop=h,o.scrollLeft=m)},f=typeof t.addEventListener=="function",u=()=>r.end("visitor");if(r.end=h=>{if(!r.outcome&&(r.outcome=h,f))for(let m of IN)t.removeEventListener(m,u,!0)},c()>=s.top-1)return l(s.top,s.left),r.end("placed");Number(o.scrollTop)>0&&l(0,0);let d=Number(o.scrollTop)||0,p=Date.now();if(f)for(let h of IN)t.addEventListener(h,u,{capture:!0,passive:!0});let g=()=>{if(r.outcome)return;if(n.seq!==r.seq)return r.end("overtaken");if(Math.abs((Number(o.scrollTop)||0)-d)>1)return r.end("visitor");let h=c()>=s.top-1;if(!h&&Date.now()-p<a)return MN(t,e,g);l(Math.min(s.top,c()),s.left),r.end(h?"placed":"clamped")};MN(t,e,g)},m8=(t,e)=>{let{win:n,history:r,track:o}=t,s=o.pops.get(e);if(s)return s;let i=Lc(n,zr(r)),a=o.expect;o.expect=null;let c;if(a&&i.key===a.key&&i.url===a.url)c={echo:!0};else{let l=o.current,f=!!(i.key&&l&&l.key===i.key),u=f?null:l;u&&u.key&&t.scrollNode&&Mv(o,n,u.key,t.scrollNode),c={to:i,from:u,stay:f,seq:o.seq,settled:!1,committed:!1},o.pending=c}return o.pops.set(e,c),c},y8=t=>{let{win:e,history:n,track:r}=t,o=zr(n);if(r.pending&&Ed(e,o,r.pending.to)||r.expect&&Ed(e,o,r.expect.away))return;let s=r.current;if(s&&(s.key?FN(o,s):Ed(e,o,s))){s.url=vd(e),s.state=o;return}r.current=t.restore?Iv(e,n):Lc(e,o),r.pending=null,r.seq++},zN=(t,e,n)=>{let r=e.scrollRestoration==="restore",o=Rv(t),s=r||Array.isArray(e.guards)&&e.guards.length>0,i=o&&p8(o,s);if(!i)return null;let a={win:t,history:o,track:i,restore:r,scrollNode:r&&n?n:null,pop:null};a.scrollNode&&(i.scrollNode=a.scrollNode);let c=e.event;return c&&c.type==="popstate"?a.pop=m8(a,c):y8(a),a},ny=(t,e)=>{e.settled=!0,t.pending===e&&(t.pending=null)},Nv=t=>{let e=t&&t.pop;if(!e||e.echo)return!0;if(e.settled)return e.committed;let{win:n,history:r,track:o}=t;return ny(o,e),o.seq!==e.seq||!Ed(n,zr(r),e.to)?!1:(o.current=t.restore&&!e.to.key?Iv(n,r):e.to,o.seq++,e.committed=!0,!0)},HN=t=>{let e=t&&t.pop;e&&!e.echo&&!e.settled&&ny(t.track,e)},b8=(t,e,n)=>{try{t.addEventListener("popstate",()=>{e.expect===n&&(e.expect=null)},{once:!0})}catch{}},$v=(t,e)=>{let n=t&&t.pop;if(!n||n.echo||n.settled)return;let{win:r,history:o,track:s}=t;ny(s,n);let i=n.from;if(!i||s.seq!==n.seq||!Ed(r,zr(o),n.to))return;let a=n.to;if(!e&&i.key&&a.key&&i.chain===a.chain&&i.index!==a.index){let f=s.expect={key:i.key,url:i.url,away:a};b8(r,s,f);try{o.go(i.index-a.index)}catch{s.expect=null}return}let c=Lv(),l=Pv(i.state,c);try{o.replaceState(l||i.state,null,i.url)}catch{return}s.current=l?Dv(c,i.url,l):Lc(r,zr(o)),s.seq++},WN=(t,e)=>{let n=vd(e);t&&n!==null&&(t.__routerAddress=n)},Fv=(t,e,n)=>{let r=t&&t.pop;if(r&&!r.echo&&r.from)return $v(t,!0);r&&!r.settled&&ny(t.track,r);let o=Rv(n),s=e&&e.__routerAddress;if(!(!o||!s||s===vd(n)))try{o.replaceState(zr(o),null,s)}catch{}},KN=(t,e,n,r,o=t&&t.win)=>{if(!t){try{r?o.history.replaceState(e,null,n):o.history.pushState(e,null,n)}catch{}return}let{history:s,track:i}=t,a=i.current;!r&&a&&a.key&&t.scrollNode&&Mv(i,o,a.key,t.scrollNode);let c=r?Lc(o,zr(s)):Iv(o,s),l=c.key?r?{key:c.key,index:c.index,chain:c.chain}:{key:Ov(),index:c.index+1,chain:c.chain}:Lv(),f=Pv(e,l);try{r?s.replaceState(f||e,null,n):s.pushState(f||e,null,n)}catch{return}i.current=f?Dv(l,n,f):Lc(o,zr(s)),i.pending=null,i.expect=null,i.seq++},qN=(t,e,n,r)=>{if(!t||!t.restore||!e)return!1;let o=t.pop;if(o?o.stay||!o.committed:!n.initialRender)return!1;let{win:s,track:i}=t,a=i.current,c=a&&a.key&&VN(i,s).get(a.key);if(!c)return!1;let l=i.restore;return!!l&&l.key===a.key&&(o?l.pop===o:!l.pop&&l.seq===i.seq)&&l.outcome==="visitor"||g8(s,r,i,{key:a.key,pop:o,seq:i.seq,outcome:null},e,c,n.scrollRestoreTimeout),!0},Ad=t=>{let e=Rv(t),n=e&&Tv.get(e);!n||!n.scrollNode||!n.current||!n.current.key||Mv(n,t,n.current.key,n.scrollNode)};M();var ZN=["components","functions","methods","snippets"],JN=new Set(["pages",...ZN]),Bv=new Set(["default","__esModule"]),Uo=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Ht=t=>!!t&&typeof t=="object"&&!Array.isArray(t),ry=new WeakMap,GN=new WeakMap,jv=new WeakMap,YN=new Set,pi=(t,e=console.warn)=>{YN.has(t)||(YN.add(t),e(t))},QN=t=>Ht(t&&t.lazy),t$=(t,e)=>{let n=t&&t.lazy;return Ht(n)&&Uo(n,e)?n[e]:void 0},Td=(t,e)=>{let n=t$(t,e);return Ht(n)&&Uo(n,"load")?n.load:n},_8=(t,e)=>{let n=t$(t,e);return Ht(n)&&typeof n.when=="function"?n.when:null},w8=t=>{let e=new Error(`[smbls/router] lazy group "${t}" waits: its \`when\` said false \u2014 nothing was requested`);return e.code="LAZY_WAITING",e},Uv=(t,e)=>{let n=ry.get(t);n||(ry.set(t,n=new Map),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{for(let o of n.values())o.disposed=!0,o.waiting.clear();ry.delete(t)}));let r=n.get(e);return r||(r={status:"idle",attempts:0,promise:null,failure:null,disposed:!1,pages:null,waiting:new Set,maps:new Set},n.set(e,r)),r},e$=(t,e)=>!QN(e)||!Ht(t)||!Uo(t,"lazy")?null:typeof t.lazy=="string"&&t.lazy?t.lazy:null,sy=t=>!globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__&&!!t&&typeof t=="object"&&jv.has(t),n$=(t,e)=>(t&&t.lazy&&typeof t.lazy=="object"&&qt("lazyRoutes",e),null),r$=t=>t&&(t.status==="error"||t.status==="reload"||t.status==="waiting")?t.status:"loading",S8=(t,e)=>typeof Td(t,e)!="function"?"error":r$(ry.get(t)?.get(e)),x8=(t,e)=>{let n=GN.get(t);if(n&&n.group===e)return n;let{lazy:r,state:o,...s}=t,i=o==null||Ht(o)||typeof o=="function";i?s.state=(c,l)=>{let f=typeof o=="function"?o(c,l):o;return{...Ht(f)?f:null,lazyStatus:S8(c.context,e)}}:(s.state=o,tt()&&pi(`[smbls/router] the placeholder of lazy group "${e}" binds its state to a path (${JSON.stringify(o)}), so it gets no \`lazyStatus\` \u2014 give it its own state object to show a load failure.`));let a={definition:s,group:e,hasStatus:i};return GN.set(t,a),jv.set(s,a),a},k8=t=>t.__ref&&t.__ref.contentElementKey||"content",Cd=(t,e)=>{let n=t&&t.__ref&&t.__ref.__routerRendered,r=n&&sy(n.content)?jv.get(n.content):null;return!r||r.group!==e?null:{record:r,page:t[k8(t)]}},oy=(t,e,n)=>{let r=Cd(t,e);if(!r||!r.record.hasStatus)return;let o=r.page&&r.page.state;if(!(!o||typeof o.update!="function"||o.lazyStatus===n))try{o.update({lazyStatus:n})}catch(s){console.error(`[smbls/router] lazy group "${e}": could not show the "${n}" status on its placeholder`,s)}},E8=t=>Ht(t)?!Object.keys(t).some(n=>JN.has(n))&&Ht(t.default)?t.default:t:{},v8=t=>{let e={};if(!Ht(t))return e;for(let n of Object.keys(t)){if(Bv.has(n))continue;let r=n.charCodeAt(0)===47,o=r?n:"/"+(n==="index"?"":n);(r||!Uo(e,o))&&(e[o]=t[n])}return e},o$=(t,e,n,r,o)=>{if(!Ht(t))return 0;let s=0;for(let i of Object.keys(t))e$(t[i],r)===e&&(s++,Uo(n,i)?t[i]=n[i]:delete t[i]);for(let i of Object.keys(n))Uo(t,i)?t[i]!==n[i]&&o.push(`pages['${i}']`):t[i]=n[i];return s},XN=(t,e,n)=>{let r=t[e];if(!Ht(r)){t[e]={...n};return}try{for(let o in n)r[o]=n[o];if(Object.keys(n).every(o=>r[o]===n[o]))return}catch{}t[e]={...r,...n}},A8=t=>{let e=t.__ref&&t.__ref.origin;if(!Ht(e))return[];let n=[].concat(e.extends||[],e.extend||[]);if(n.length)return n.filter(s=>typeof s=="string").map(s=>(s.includes(">")?s.split(">")[0]:s).trim());let r=t.key;if(typeof r!="string"||!/^[A-Z]/.test(r))return[];let o=[r.indexOf("_"),r.indexOf(".")].filter(s=>s>0);return[o.length?r.slice(0,Math.min(...o)):r]},C8=(t,e,n,r)=>{let o=new Set;for(let i of r.waiting){let a=Cd(i,e);a&&a.page&&o.add(a.page)}let s=i=>{let a=i&&i.__ref&&i.__ref.__children;if(Array.isArray(a))for(let c of a){let l=i[c];if(!(!l||!l.__ref||o.has(l)||!l.node)){for(let f of A8(l)){if(!n.has(f))continue;let u=(l.__ref.path||[l.key]).join(" \u203A ");pi(`[smbls/router] lazy group "${e}": ${u} was built before the group loaded, so it renders without "${f}". A built element never takes a later registration \u2014 build it after el.call('loadLazy', '${e}') resolves (an \`if:\` gate does that), or keep "${f}" out of the group.`)}s(l)}}};s(t)},T8=(t,e,n,r)=>{let o=t.context,s=E8(n),i=tt(),a=[],c=new Set;if(i)for(let p of Object.keys(s))JN.has(p)||Bv.has(p)||pi(`[smbls/router] lazy group "${e}" exports \`${p}\`, which a lazy group cannot add \u2014 it adds pages, components, functions, methods and snippets only. Declare the rest with the app.`);let l=!1;for(let p of ZN){let g=s[p];if(!Ht(g))continue;let h=Ht(o[p])?o[p]:{},m={};for(let x of Object.keys(g))if(!Bv.has(x)){if(Uo(h,x)){h[x]!==g[x]&&a.push(`${p}.${x}`);continue}m[x]=g[x]}let y=Object.keys(m);if(y.length&&(XN(o,p,m),p==="components"&&y.forEach(x=>c.add(x)),p==="methods"&&(l=!0),(p==="functions"||p==="snippets")&&Ht(o.utils))){let x={};for(let k of y)Uo(o.utils,k)||(x[k]=m[k]);Object.keys(x).length&&XN(o,"utils",x)}}l&&yc(o);let f=v8(s.pages);r.pages=f;let u=null;try{u=typeof t.getRoot=="function"?t.getRoot():null}catch{}let d=new Set;Ht(o.pages)&&d.add(o.pages),u&&Ht(u.routes)&&d.add(u.routes);for(let p of r.maps)d.add(p);for(let p of r.waiting)Ht(p.routes)&&d.add(p.routes);for(let p of d)o$(p,e,f,o,a);i&&a.length&&pi(`[smbls/router] lazy group "${e}" redefines ${a.join(", ")}, which the app already has \u2014 the app's own value stays. Rename them: frank refuses the same collision at \`smbls push\`.`),i&&c.size&&u&&C8(u,e,c,r)},s$=(t,e)=>{let n=t&&t.__ref,r=n&&n.__lazyRoute;if(!r||r.group!==e||(n.__lazyRoute=null,typeof t.set!="function")||!Cd(t,e))return;let o=()=>r.rerender({pushState:!1,replace:!1,scrollToTop:!1,guards:[],lazy:{group:e,status:"loaded"}});Promise.resolve().then(o).catch(s=>console.error(`[smbls/router] lazy group "${e}" loaded, but its route failed to render`,s))},Od=t=>!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function",O8=(t,e,n)=>!!t&&(Od(e)&&e===t.returned||!!n&&typeof n=="object"&&n===t.error),i$=(t,e)=>{let n=t.context,r=Uv(n,e);if(r.status==="loading"||r.status==="loaded")return r.promise;let o=Td(n,e),s=_8(n,e),i=r.failure;r.status="loading";let a,c=!1,l=!1,f=()=>s?s(t):!0,u=p=>{if(p===!1)throw l=!0,w8(e);return a=o(r.attempts++)},d=Promise.resolve().then(f).then(u).then(p=>{c=!0,r.disposed||T8(t,e,p,r)}).then(()=>{r.status="loaded",r.failure=null;let p=[...r.waiting];r.waiting.clear();for(let g of p)s$(g,e)},p=>{if(l){if(r.status="waiting",r.promise=null,r.disposed)throw p;for(let h of[...r.waiting])Cd(h,e)?oy(h,e,"waiting"):r.waiting.delete(h);throw p}let g=!c&&O8(i,a,p);if(r.failure=c?null:{returned:a,error:p},r.status=g?"reload":"error",r.promise=null,r.disposed)throw p;g?pi(`[smbls/router] lazy group "${e}" cannot load in this page: its loader handed back the import that already failed (the same promise or the same error) and requested nothing \u2014 a bundler that keeps a failed dynamic import (parcel) does this. Its routes show their placeholder with lazyStatus 'reload'; reloading the page loads the group.`,h=>console.error(h,p)):console.error(`[smbls/router] lazy group "${e}" failed to load. Its routes show their placeholder with lazyStatus 'error'; the next navigation to one of them, or loadLazy('${e}'), calls the group's loader again.`,p);for(let h of[...r.waiting])Cd(h,e)?oy(h,e,r.status):r.waiting.delete(h);throw p});d.catch(()=>{}),r.promise=d;for(let p of r.waiting)oy(p,e,"loading");return d},a$=(t,e,n)=>{let r=e&&e.context;if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__)return n$(r,e);let o=e$(t,r);if(!o)return null;let s=Uv(r,o);if(Ht(n)&&s.maps.add(n),s.status==="loaded"&&o$(n,o,s.pages||{},r,[])>0)return{rematch:!0};let i=typeof Td(r,o)=="function";return i?i$(e,o):pi(`[smbls/router] a route names lazy group "${o}", which context.lazy does not declare as a loader (\`lazy: { ${o}: () => import('./\u2026') }\`) \u2014 it shows its placeholder in the error state.`,console.error),{content:x8(t,o).definition,group:o,status:i?"loading":"error"}},c$=(t,e,n)=>{if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__||!e||!e.group||e.status==="error")return;let r=t.context,o=t.__ref;if(!o||typeof Td(r,e.group)!="function")return;let s=Uv(r,e.group);if(o.__lazyRoute={group:e.group,rerender:n},oy(t,e.group,r$(s)),s.status==="loaded"){let i=()=>s$(t,e.group);Promise.resolve().then(i);return}s.waiting.add(t)};function Vv(t){let e=this,n=e&&e.context;if(!n)return Promise.reject(new TypeError("[smbls/router] loadLazy runs on an element: el.call('loadLazy', name)"));if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__)return Promise.resolve(n$(n,e));let r=Td(n,t);return typeof r!="function"?(r===void 0&&QN(n)&&tt()&&pi(`[smbls/router] loadLazy('${t}'): context.lazy declares no group "${t}" \u2014 nothing to load.`),Promise.resolve()):i$(e,t)}var R8=(t,e,n)=>({...t.context&&t.context.domqlOptions,...e.mountOptions,contentElementKey:n}),l$=(t,e,n)=>{let r=n.mountOptions;if(!r)return;let o=e.context&&e.context.domqlOptions;for(let s in r)t[s]=o&&s in o?o[s]:void 0},m$=t=>{let e=ar;return typeof e=="function"?e(t.mountYield)>0:t.mountYield===!0},P8=t=>{let e=t&&t.context&&t.context.__hydration;return!!e&&e.adopted>0},L8=t=>{let e=Gm;return typeof e!="function"||!e(t)?null:Vr(t)},Wv=Object.freeze({holdTail:!0}),D8=t=>typeof t.holdPage=="function"&&typeof We=="function",y$=(t,e)=>{let n=()=>We(t);Od(e)?e.then(n,n):n()},I8=(t,e)=>{let n=null;try{n=t.holdPage(e)}catch{}y$(e,n)},b$=Object.freeze({holdTail:!0,deferAttach:!0}),M8=(t,e,n,r)=>{let o=t.firstView;if(!o||typeof We!="function"||typeof No!="function")return null;if(!o.committed)return Wv;if(!m$(r))return null;let s=e.node;return!e[n]&&s&&s.isConnected?b$:(r.mountYield=void 0,null)},N8=async()=>{await Te();let t=Bo;if(typeof t=="function")for(;!t();)await Te()},$8=(t,e,n,r)=>{if(e===Wv){t.firstView.page=n,y$(n,t.firstView.commit);return}e===b$&&N8().then(()=>{n.__ref&&r()&&No(n),We(n)})},_$=/^:(.+)/,w$=/^\*$/,f$=new Map,iy=t=>{let e=f$.get(t);if(e)return e;let n=t.replace(/^\//,"").split("/"),r=[],o=!1;for(let i=0;i<n.length;i++){let a=n[i].match(_$);a?r.push({index:i,name:a[1]}):w$.test(n[i])&&(o=!0)}let s={segments:n,params:r,hasWildcard:o,pattern:t};return f$.set(t,s),s},Kv=(t,e,n=0)=>{let o=t.replace(/^\//,"").split("/").filter(Boolean).slice(n),s="/"+(o[0]||"");if(!e)return{key:null,content:null,params:{},routePath:s};let i=null,a=-1,c={};for(let l in e){if(l==="/*")continue;let f=iy(l),u=F8(o,f);u>a&&(a=u,i=l,c=S$(o,f))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},F8=(t,e)=>{let{segments:n,hasWildcard:r}=e;if(!r&&n.length!==t.length&&n.length!==1&&n.length>t.length)return-1;let o=0,s=Math.min(n.length,t.length);for(let i=0;i<s;i++)if(n[i]===t[i])o+=3;else if(_$.test(n[i]))o+=1;else if(w$.test(n[i]))o+=.5;else return-1;return o},S$=(t,e)=>{let n={};for(let{index:r,name:o}of e.params)t[r]&&(n[o]=decodeURIComponent(t[r]));return n},qv=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((r,o)=>{e[o]!==void 0?(Array.isArray(e[o])||(e[o]=[e[o]]),e[o].push(r)):e[o]=r}),e},Hv=t=>!!t&&typeof t=="object"&&typeof t.route=="string",u$=t=>t===!1||typeof t=="string"||Hv(t)?t:void 0,B8=10,Gv=(t,e,n=0)=>{for(let r=n;r<t.length;r++){let o=t[r](e);if(Od(o))return Promise.resolve(o).then(i=>{let a=u$(i);return a===void 0?Gv(t,e,r+1):a});let s=u$(o);if(s!==void 0)return s}return!0},x$=async(t,e)=>!t||!t.length?!0:Gv(t,e),d$=(t,e,n,r)=>{if(typeof t!="string"||!n||!Object.prototype.hasOwnProperty.call(n,t))return null;let o=n[t];if(!o)return null;let s=e.replace(/^\//,"").split("/").filter(Boolean).slice(r||0);return{route:t,content:o,params:t==="/*"?{}:S$(s,iy(t))}},Pd=(t,e)=>{if(!e)return t;let n=Array.isArray(e)?e:e.split("."),r=t;for(let o of n){if(!r||!r[o])return null;r=r[o]}return r},j8=(t,e)=>{let n=e.customRouterElement;if(!n||!t.__ref||t.__ref.root!==t)return t;let r=Pd(t,n);return!r||r===t?t:(t.routes&&(r.routes=t.routes),r)},Yv=(t=0,e)=>{e||(e=typeof R<"u"?R.location.pathname:"/");let r=e.split("/")[t+1];if(r)return`/${r}`},Dc,ay=0,p$=0,zv=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,U8=t=>t&&(t.scrollingElement||t.documentElement)||null,k$={level:ay,pushState:!0,replace:!1,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0,exitTimeout:300,scrollRestoreTimeout:1e3},E$=(t,e)=>{if(!t||t.visibilityState!=="visible")return!1;try{let n=e&&typeof e.matchMedia=="function"&&e.matchMedia("(prefers-reduced-motion: reduce)");if(n&&n.matches)return!1}catch{}return!0},v$=t=>{let e=t.__routeExit;e&&(t.__routeExit=null,e.abort())},V8=(t,e,n,r,o,s,i)=>{let a=e.__routeExit;if(a&&a.page===n)return a.wait;if(v$(e),!n||!n.node||typeof t.onRouteExit>"u"||!E$(s,i))return null;let c=typeof o=="number"&&o>=0?o:k$.exitTimeout,l=typeof AbortController=="function"?new AbortController:null,f={...r,page:n,timeout:c,signal:l?l.signal:void 0},u;try{u=mr("routeExit",t,f)}catch{return null}if(!u||typeof u.then!="function")return null;let d={page:n,abort:()=>{l&&!l.signal.aborted&&l.abort()}};return d.wait=new Promise(p=>{let g=setTimeout(()=>{d.abort(),p()},c),h=()=>{clearTimeout(g),p()};u.then(h,h)}),e.__routeExit=d,d.wait},Rd=new WeakMap,z8=t=>t===!0?{}:t&&typeof t=="object"&&!Array.isArray(t)?t:null,H8=(t,e,n,r)=>{let o=z8(t.transition);return!o||!e||sy(e.content)||!n||typeof n.startViewTransition!="function"||Rd.get(n)>0||!E$(n,r)?null:o},W8=t=>{let e=t.__routeTransition;if(!(!e||e.updating))try{e.transition.skipTransition()}catch{}},K8=t=>{let e=typeof t.types=="string"?[t.types]:t.types;return Array.isArray(e)?e.filter(n=>typeof n=="string"&&n):[]},q8=t=>{try{let e=t&&t.ViewTransition;return!!e&&"types"in e.prototype}catch{return!1}},G8=100,Y8=1e3,h$=(t,e)=>t===!1?1/0:typeof t=="number"&&t>=0?t:e,g$=t=>{let e=t&&t.performance;return e&&typeof e.now=="function"?e.now():Date.now()},X8=t=>{t&&typeof t.then=="function"&&t.then(null,()=>{})},Z8=(t,e,n,r,o,s,i)=>{let a=t.node,c=a&&a.style,l=typeof n.name=="string"&&n.name?n.name:null,f=e.__routeTransition,u={transition:null,updating:!1,name:l,previousName:f&&f.name&&c?f.previousName:c&&c.viewTransitionName||""},d=()=>{if(e.__routerNavSeq===s){u.updating=!0,u.swapStarted=g$(o),Rd.set(r,(Rd.get(r)||0)+1);try{return i()}finally{Rd.set(r,Rd.get(r)-1),u.updating=!1}}},p=()=>{l&&c&&c.viewTransitionName===l&&(c.viewTransitionName=u.previousName)};l&&c&&(c.viewTransitionName=l);let g=K8(n),h=null;try{h=g.length&&q8(o)?r.startViewTransition({update:d,types:g}):r.startViewTransition(d)}catch{}if(!h)return p(),null;u.transition=h,e.__routeTransition=u,X8(h.ready);let m=!1,y=null,x=()=>{m=!0,y!==null&&(o.clearTimeout(y),y=null),e.__routeTransition===u&&(e.__routeTransition=null,p())},k=()=>{if(!(m||e.__routeTransition!==u))try{h.skipTransition()}catch{}};h.finished&&typeof h.finished.then=="function"?h.finished.then(x,x):x();let C=h$(n.swapBudget,G8),_=h$(n.timeout,Y8);_!==1/0&&h.ready&&typeof h.ready.then=="function"&&o&&typeof o.setTimeout=="function"&&h.ready.then(()=>{m||(y=o.setTimeout(()=>{y=null,k()},_))},()=>{});let b=h.updateCallbackDone;return!b||typeof b.then!="function"?Promise.resolve():(C!==1/0&&b.then(()=>{u.swapStarted!==void 0&&g$(o)-u.swapStarted>C&&k()},()=>{}),b)},In=async(t,e,n={},r={})=>{let o=e||void 0,s=o?.context?.window||R,i=o?.context?.document||kt,a={...k$,...o.context.routerOptions,...r};ay=a.lastLevel,o=j8(o,a);let c=!(r&&r.render===!1),l=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let f=l.contentElementKey||a.contentElementKey||"content",u=s.location.origin!=="null"?s.location.origin:"http://localhost";t=zv(t);let d=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,p=new d(u+t),{pathname:g,search:h,hash:m}=p,y=qv(h),x=o.node,k=m&&m!==s.location.hash.slice(1),C=g!==Dc,_=Dc,b=++p$;Dc=g;let w=()=>{p$===b&&(Dc=_)},S=l.__routerRendered,A,T,O,B;if(a.useParamsMatching){let q=Kv(g,o.routes,a.level);A=q.key,T=q.routePath,O=q.content,B=q.params}else{A=Yv(a.level,g),T=A;let q=o.routes;O=q?q[A||"/"]||q["/*"]:null,B={}}if(r&&r.route!=null){let q=d$(r.route,g,o.routes,a.level);!q&&!a.silent&&console.warn("[smbls/router] route",r.route,"chosen for",g,"is not one of the routes:",Object.keys(o.routes||{})),A=q?q.route:r.route,O=q?q.content:null,B=q?q.params:{}}a.scrollNode===void 0&&(a.scrollNode=U8(i));let $=a.scrollToNode?x:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}let N=zN(s,a,$);if(N&&N.pop&&N.pop.echo)return;if(!O){w(),a.onNotFound?a.onNotFound({pathname:g,route:A,element:o}):(a.silent||console.warn("[smbls/router] no content matched for path",g,"\u2014 available routes:",Object.keys(o.routes||{})),a.event&&a.event.type==="popstate"&&Fv(N,l,s));return}let G=r&&r.lazy?l.__routerStartSeq:l.__routerStartSeq=(l.__routerStartSeq||0)+1;if(a.guards&&a.guards.length){let q={pathname:g,route:A,params:B,query:y,hash:m,element:o,state:n},W=Gv(a.guards,q);if(Od(W)&&(W=await W,l.__routerStartSeq!==G)){w(),HN(N);return}if(W===!1){w(),$v(N);return}let Rt=jt=>{let Ct=new d(u+zv(jt));return Ct.pathname===g&&Ct.search===h&&Ct.hash===m},yt=typeof W=="string"?W:Hv(W)&&typeof W.path=="string"&&!Rt(W.path)?W.path:null;if(Hv(W)&&yt===null){let jt=d$(W.route,g,o.routes,a.level);if(!jt){a.silent||console.warn("[smbls/router] a guard chose route",W.route,"for",g,"\u2014 not one of the routes:",Object.keys(o.routes||{})),w(),a.onNotFound?a.onNotFound({pathname:g,route:W.route,element:o}):a.event&&a.event.type==="popstate"&&Fv(N,l,s);return}A=jt.route,O=jt.content,B=jt.params,r={...r,route:jt.route}}else if(yt!==null){let jt=!!(N&&N.pop);if(jt&&!Nv(N))return;let Ct=[...r&&r.__redirectChain||[],g],Pt=new d(u+zv(yt)).pathname,Ge=Ct.includes(Pt)||Ct.length>=B8;Ge&&!a.silent&&console.warn("[smbls/router] redirect loop:",[...Ct,Pt].join(" \u2192 "),"\u2014 rendering",Pt,"without its guards");let It={...r,__redirectChain:Ct};return Ge&&(It.guards=[]),typeof W=="string"?delete It.route:It.route=W.route,jt&&(It.event=void 0),delete It.render,(jt||a.initialRender)&&(It.pushState=!0,It.replace=!0),In(yt,e,n,It)}}let Y=c?a$(O,o,o.routes):null;if(Y&&Y.rematch)return In(t,o,n,r);Y&&(O=Y.content,a.lazy={group:Y.group,status:Y.status});let nt=l.__routerNavSeq=(l.__routerNavSeq||0)+1,ot=!S||S.content!==O||S.route!==A,st=!!S&&S.content===O,Z=!(!c||a.keepSamePage===!0&&st&&a.force!==!0)&&(C||ot||a.force===!0);if(Z&&S&&!sy(S.content)){let q=V8(o,l,o[f],{from:S.route,to:A,pathname:g,params:B,query:y,hash:m},a.exitTimeout,i,s);if(q&&(await q,l.__routerNavSeq!==nt||(l.__routeExit&&l.__routeExit.wait===q&&(l.__routeExit=null),typeof o?.set!="function")))return}else v$(l);let Q=Z?H8(a,S,i,s):null;if(Z&&W8(l),a.pushState){let q=g+(h||"")+(m||"");KN(N,n,q,a.replace,s)}else N&&Nv(N);WN(l,s);let it=R8(o,a,f),rt=()=>{let q=Z?M8(a,o,f,it):null,W=(!!S||m$(it))&&!!$&&$.scrollTop===0&&!$.scrollLeft,Rt=!S&&!!a.initialRender&&!!$&&P8(o)&&(Number($.scrollTop)>0||Number($.scrollLeft)>0),jt=C||!k?{route:A,routePath:T,hash:m,params:B,query:y,debugging:!1}:{params:B,query:y};a.updateState&&o.state.update(jt,{preventContentUpdate:!0});let Ct=null;if(Z){f&&a.removeOldElement&&o[f].remove();let Ge=o.__ref?.origin?.content,It={};if(Ge)for(let X in Ge){let at=Ge[X];X==="__ref"||X==="props"||X==="node"||X==="parent"||X==="key"||(typeof at=="string"||typeof at=="number"||typeof at=="boolean"||typeof at=="object"&&at!==null&&!at.node&&!at.__ref)&&(It[X]=at)}let De={...It,...typeof O=="object"?O:{extends:O}};a.useFragment&&(De.tag="fragment");let H={content:O,route:A},Tt=l.__routerRendered;try{if(typeof o?.set!="function")return;l.__routerRendered=H;let X=!q&&D8(a),at=o.set(De,it,q||(X?Wv:void 0));at&&q?$8(a,q,at,()=>l.__routerNavSeq===nt):at&&X&&I8(a,at),Ct=L8(o[f])}catch(X){l.__routerRendered===H&&(l.__routerRendered=Tt),console.error("[smbls/router] failed to render route content",g,X)}}else st&&S.route!==A&&l.__routerRendered===S&&(l.__routerRendered={content:O,route:A});let Pt=()=>{let Ge=!C&&k,It=!c||qN(N,$,a,i);if(!It&&!Rt&&a.scrollToTop&&!Ge&&!W&&$?.scrollTo&&$.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!It&&!Rt&&a.scrollToNode&&O[f]?.node?.scrollTo&&O[f].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!It&&m){let De=i.getElementById(m.slice(1));if(De&&$?.scrollTo){let H=s.getComputedStyle?s.getComputedStyle(De):null,Tt=H&&parseFloat(H.scrollMarginTop)||0,X=De.getBoundingClientRect().top+$.scrollTop-Tt-(a.scrollToOffset||0);$.scrollTo({...a.scrollToOptions||{},top:X,left:0})}}Y&&c$(o,Y,De=>In(t,o,n,{...r,...De})),mr("routeChanged",o,a)};if(Ct)return Ct.then(()=>{l$(it,o,a),l.__routerNavSeq===nt&&Pt()});l$(it,o,a),Pt()},gt=Q?Z8(o,l,Q,i,s,nt,rt):null;if(gt){await gt;return}return rt()},J8=In;var Q8=(t,e)=>{if(!t)return!1;if(t.defaultPrevented||typeof t.button=="number"&&t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return!0;let n=e.node;if(!n||typeof n.getAttribute!="function")return!1;let r=n.getAttribute("target");return r&&r.toLowerCase()!=="_self"?!0:n.hasAttribute("download")},tK=(t,e)=>{let n=t.slice(1),r=e.node&&e.node.ownerDocument,o=n&&r?r.getElementById(n):null;o&&(typeof o.scrollIntoView=="function"&&o.scrollIntoView(),typeof o.focus=="function"&&(o.hasAttribute("tabindex")||o.setAttribute("tabindex","-1"),o.focus()))},A$=(t,e,n)=>{let{context:r}=e,{href:o,scrollToTop:s,stopPropagation:i}=e,a=e.call("exec",o,e);if(e.call("isString",a)&&a.includes("{{")&&(a=e.call("replaceLiteralsWithObjectFields",a)),i&&t.stopPropagation(),!a||Q8(t,e))return;if(a.startsWith("#")){t.preventDefault(),tK(a,e);return}let{utils:c,snippets:l,functions:f,routerOptions:u}=r,d=e.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){t.preventDefault();try{let g=d;if(u&&u.customRouterElement){let h=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),m=d;for(let y of h){if(!m||!m[y]){m=null;break}m=m[y]}m&&(g=m,d.routes&&(g.routes=d.routes))}(f.router||l.router||c.router||In)(a,g,{},{scrollToOptions:{behavior:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(g){console.warn(g)}}},Xv={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>Ro(t,t.href)||Ro(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:A$},C$={extends:"Link"},Zv={onClick:A$},T$={extends:[Xv,Zv]};var Qv={};F(Qv,{Select:()=>O$});var O$={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:t=>t.value,selected:t=>t.selected,disabled:t=>t.disabled}},attr:{name:t=>t.name,disabled:t=>t.disabled,value:t=>{if(!t.value)return;let e=t.call("exec",t.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e}}};var tA={};F(tA,{Button:()=>R$,ButtonSet:()=>I$,CircleButton:()=>L$,IconButton:()=>M$,KangorooButton:()=>D$,SquareButton:()=>P$});var R$={extends:["IconText","FocusableComponent"],tag:"button",minHeight:"controlH",fontSize:"Z2",type:"button",border:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"0 A",fontWeight:"700",fontFamily:"inherit",round:"radiusPill",disabled:t=>t.call("exec",t.disabled)},P$={extends:"Button",fontSize:"A",width:"A",minHeight:"auto",padding:"Z",aspectRatio:"1 / 1",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},L$={extends:"SquareButton",round:"C"},D$={extends:"Button",childExtends:"IconText"},I$={tag:"nav",display:"flex",childExtends:"SquareButton"},M$={extends:["SquareButton","ClickableItem"],round:"Z"};var nA={};F(nA,{Dialog:()=>j$,DialogFooter:()=>V$,DialogHeader:()=>U$});Mt();var eK={ok:1,cancel:1},hi=new WeakMap,nK=0,mn=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},eA=t=>{let e=hi.get(t);return e||(e={id:"smbls-dialog-"+ ++nK,want:void 0,waiting:!1},hi.set(t,e)),e},Ld=(t,e,n,r)=>t[e]!==void 0||n!==void 0&&t[n]!==void 0||!!t.attr&&typeof t.attr=="object"&&t.attr[e]!==void 0||r!==void 0&&!!t.aria&&typeof t.aria=="object"&&t.aria[r]!==void 0,Mc=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},N$=["methods","functions","utils"],rK=t=>{for(let e=0;e<N$.length;e++){let n=t[N$[e]];if(n&&typeof n.polyglot=="function")return!0}return!1},cy=(t,e,n)=>{let r=t.context;if(!r||!rK(r))return n;let o=t.call("polyglot",e);return typeof o=="string"&&o&&o!==e?o:n},$$=t=>{let e=hi.get(t),n=mn(t);if(!e||!n)return!0;if(!n.isConnected)return!1;if(e.want){if(!n.open&&typeof n.showModal=="function")try{n.showModal()}catch{}}else n.open&&typeof n.close=="function"&&n.close();return!0},F$=t=>{queueMicrotask(()=>{if($$(t))return;let e=hi.get(t);!e||e.waiting||typeof t.whenConnected!="function"||(e.waiting=!0,t.whenConnected(()=>{e.waiting=!1,$$(t)}))})},oK=t=>{let e=t.__ref;if(!e||!mn(t)||!Object.prototype.hasOwnProperty.call(t,"modal")||Ld(t,"data-dialog"))return;let n=K(()=>{let r=t.modal,o=mn(t);if(!o)return;if(r==null){Mc(o,"data-dialog",null);return}Mc(o,"data-dialog","modal");let s=eA(t),i=!!r;s.want!==i&&(s.want=i,F$(t))},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(n)},sK=t=>t.dialogTitle===!0,iK=t=>{for(let e=t;e;e=e.parent)if(e.tag==="dialog")return e;return null},B$=t=>{let e=iK(t);return!e||!e.locked},aK=t=>t.key==="Escape"||t.key==="Esc",cK=t=>{let e=t.__ref,n=mn(t);if(!e||!n||!Object.prototype.hasOwnProperty.call(t,"locked"))return;let r=eA(t),o=!Ld(t,"closedby","closedBy"),s=K(()=>{let l=!!t.locked,f=mn(t);f&&o&&Mc(f,"closedby",l?"none":null)},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(s);let i=l=>{t.locked&&l.preventDefault()},a=t.context&&t.context.window||n.ownerDocument.defaultView,c=l=>{let f=mn(t);f&&f.open&&f.isConnected&&aK(l)&&t.locked&&l.preventDefault()};n.addEventListener("cancel",i),a&&a.addEventListener("keydown",c),r.unlock=()=>{n.removeEventListener("cancel",i),a&&a.removeEventListener("keydown",c)}},lK=t=>{let e=mn(t);if(!e||e.hasAttribute("aria-labelledby")||e.hasAttribute("aria-label")||Ld(t,"aria-labelledby","ariaLabelledby","labelledby"))return;let n=typeof t.lookdown=="function"?t.lookdown(sK):null,r=mn(n);if(!r)return;let o=r.getAttribute("id");if(!o){if(Ld(n,"id"))return;o=eA(t).id+"-title",Mc(r,"id",o)}Mc(e,"aria-labelledby",o)},fK=(t,e)=>{let n=mn(e),r=t.target;if(!n||t.defaultPrevented||!r||typeof r.closest!="function")return;let o=r.closest("[data-dialog-action]");if(!o||!n.contains(o))return;let s=o.getAttribute("data-dialog-action");if(eK[s]!==1)return;let i=n.ownerDocument.defaultView,a=new i.Event(s,{cancelable:!0});n.dispatchEvent(a),!a.defaultPrevented&&n.open&&typeof n.close=="function"&&n.close(s)},uK=t=>{let e=hi.get(t);e&&e.unlock&&(e.unlock(),e.unlock=null);let n=mn(t);e&&e.want!==void 0&&n&&n.open&&typeof n.close=="function"&&n.close()},dK=t=>{let e=hi.get(t),n=mn(t);e&&e.want!==void 0&&n&&!n.isConnected&&n.hasAttribute("open")&&n.removeAttribute("open")},pK=t=>{let e=hi.get(t);e&&e.want&&F$(t)},hK=t=>{let e=mn(t);if(!e||!Object.prototype.hasOwnProperty.call(t,"modal")||Ld(t,"data-dialog"))return;let n=t.modal;if(typeof n=="function")try{n=n(t,t.state)}catch{return}n!=null&&Mc(e,"data-dialog","modal")},j$={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2",'[data-dialog="modal"]:not([open])':{display:"none"},onAttachNode:{always:!0,handler:t=>hK(t)},onComplete:{always:!0,handler:t=>{oK(t),cK(t),lK(t)}},onRender:{always:!0,handler:t=>pK(t)},onClick:(t,e)=>fK(t,e),onBeforeRemove:{always:!0,handler:t=>uK(t)},onRemove:{always:!0,handler:t=>dK(t)}},U$={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{dialogTitle:!0,text:t=>cy(t,"dialog.title","Title")},SquareButton:{if:B$,icon:"x",theme:"transparent",aria:{label:t=>cy(t,"dialog.close","Close")},data:{dialogAction:"cancel"}}},Paragraph:{color:"caption"}},V$={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:{if:B$,text:t=>cy(t,"dialog.cancel","Cancel"),data:{dialogAction:"cancel"}},Ok:{text:t=>cy(t,"dialog.ok","OK"),data:{dialogAction:"ok"}}};var cA={};F(cA,{Tooltip:()=>Y$,TooltipHidden:()=>X$,TooltipLayer:()=>aA,TooltipParent:()=>Z$});M();var gK='[data-tooltip]:not([data-tooltip=""])',z$={top:1,bottom:1,left:1,right:1},rA={top:"bottom",bottom:"top",left:"right",right:"left"},gi=6,H$=new WeakMap,mK=0,Oe=t=>{let e=H$.get(t);return e||(e={id:"smbls-tooltip-"+ ++mK,hover:null,focus:null,shown:null,dismissed:null,showTimer:null,hideTimer:null},H$.set(t,e)),e},oA=t=>{let e=t&&t.nodeType!==1?t.parentElement:t;return e&&typeof e.closest=="function"?e:null},yK=t=>{let e=t.parent&&t.parent.node;return e&&e.nodeType===1?e:null},bK=t=>{for(let e=t.firstElementChild;e;e=e.nextElementSibling)if(e.hasAttribute("data-tooltip-layer"))return!0;return!1},W$=(t,e)=>{let n=yK(t);if(!e||!n)return null;let r;try{r=e.closest(gK)}catch{return null}if(!r||!n.contains(r))return null;for(let o=r;o&&o!==n;o=o.parentElement)if(bK(o))return null;return r},_K=(t,e)=>!!(e&&t.node&&t.node.contains(e)),wK=t=>{try{return t.matches(":focus-visible")}catch{return!0}},K$=(t,e)=>typeof t=="number"&&t>=0?t:e,dy=t=>{t.showTimer&&(clearTimeout(t.showTimer),t.showTimer=null),t.hideTimer&&(clearTimeout(t.hideTimer),t.hideTimer=null)},sA=t=>!!(t.node&&t.node.isConnected&&t.state&&typeof t.state.update=="function"),SK=(t,e)=>{let n=(t.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean);n.indexOf(e)===-1&&n.push(e),t.setAttribute("aria-describedby",n.join(" "))},iA=(t,e)=>{if(!t||typeof t.getAttribute!="function")return;let n=t.getAttribute("aria-describedby");if(n==null)return;let r=n.split(/\s+/).filter(o=>o&&o!==e);r.length?t.setAttribute("aria-describedby",r.join(" ")):t.removeAttribute("aria-describedby")},xK=(t,e,n,r,o)=>{let s={top:t.top,bottom:o-t.bottom,left:t.left,right:r-t.right},i=f=>(f==="top"||f==="bottom"?e.height:e.width)+gi;s[n]<i(n)&&s[rA[n]]>=i(rA[n])&&(n=rA[n]);let a,c;n==="top"||n==="bottom"?(a=t.left+(t.width-e.width)/2,c=n==="bottom"?t.bottom+gi:t.top-e.height-gi):(c=t.top+(t.height-e.height)/2,a=n==="right"?t.right+gi:t.left-e.width-gi);let l=(f,u)=>Math.max(gi,Math.min(u-gi,f));return{left:l(a,r-e.width),top:l(c,o-e.height),side:n}},kK=t=>{let e=t.ownerDocument,n=e&&e.defaultView,r=e&&e.documentElement;return{width:r&&r.clientWidth||n&&n.innerWidth||0,height:r&&r.clientHeight||n&&n.innerHeight||0}},EK=t=>(t.title||"")+(t.description||""),fy=(t,e=0)=>{let r=Oe(t).shown;if(!r||!sA(t))return;if(!r.isConnected){uy(t);return}let o=t.node,s=t.state;if(o.textContent!==EK(s)){e<3&&setTimeout(()=>fy(t,e+1),0);return}let i=r.getBoundingClientRect(),a=o.getBoundingClientRect(),c=a.left-(s.x||0),l=a.top-(s.y||0),f=kK(o),u=r.getAttribute("data-tooltip-placement"),d=z$[u]?u:z$[t.tooltipPlacement]?t.tooltipPlacement:"bottom",p=xK(i,{width:a.width,height:a.height},d,f.width,f.height);s.update({x:Math.round(p.left-c),y:Math.round(p.top-l),side:p.side,placed:!0})},vK=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},q$=(t,e)=>{let n=Oe(t);dy(n),!(!sA(t)||!e.isConnected)&&(n.shown&&n.shown!==e&&iA(n.shown,n.id),n.shown=e,SK(e,n.id),t.state.update({open:!0,placed:!1,title:e.getAttribute("data-tooltip")||"",description:e.getAttribute("data-tooltip-description")||""}),vK(()=>fy(t)))};function uy(t){let e=Oe(t);dy(e),e.shown&&iA(e.shown,e.id),e.shown=null,sA(t)&&t.state.open&&t.state.update({open:!1})}var ly=(t,e)=>{let n=Oe(t);n.dismissed&&n.dismissed!==n.hover&&n.dismissed!==n.focus&&(n.dismissed=null);let r=n.hover&&n.hover!==n.dismissed?n.hover:n.focus&&n.focus!==n.dismissed?n.focus:null;if(r===n.shown){dy(n);return}if(!r){if(n.showTimer&&(clearTimeout(n.showTimer),n.showTimer=null),!n.shown||n.hideTimer)return;if(e){uy(t);return}n.hideTimer=setTimeout(()=>{n.hideTimer=null,uy(t)},K$(t.tooltipHideDelay,100));return}if(n.hideTimer&&(clearTimeout(n.hideTimer),n.hideTimer=null),e||n.shown){q$(t,r);return}n.showTimer&&clearTimeout(n.showTimer),n.showTimer=setTimeout(()=>{n.showTimer=null,q$(t,r)},K$(t.tooltipDelay,250))},G$=t=>{let e=Oe(t);e.shown&&(e.dismissed=e.shown,uy(t))},aA={role:"tooltip",id:t=>Oe(t).id,data:{tooltipLayer:!0},state:{open:!1,placed:!1,title:"",description:"",x:0,y:0,side:"bottom"},tooltipPlacement:"bottom",display:"flex",flow:"column",gap:"X",theme:"dialog",padding:"Z1 A",round:"Y2",width:"max-content",maxWidth:"F2",textAlign:"center",position:"fixed",zIndex:2500,opacity:(t,e)=>e.open&&e.placed?"1":"0",visibility:(t,e)=>e.open&&e.placed?"visible":"hidden",pointerEvents:(t,e)=>e.open?"auto":"none",transition:"opacity A defaultBezier, visibility A defaultBezier",style:(t,e)=>({top:(e.y||0)+"px",left:(e.x||0)+"px"}),Text:{if:(t,e)=>!!e.title,text:(t,e)=>e.title,fontWeight:500,color:"currentColor"},P:{if:(t,e)=>!!e.description,text:(t,e)=>e.description,fontSize:"Z2",margin:"0",color:"currentColor",fontWeight:400},onDocumentPointerover:{capture:!0,passive:!0,handler:(t,e)=>{if(t.pointerType==="touch")return;let n=Oe(e),r=oA(t.target),o=_K(e,r)?n.shown:W$(e,r);o===n.hover&&(o||!n.shown)||(n.hover=o,ly(e,!1))}},onDocumentPointerout:{capture:!0,passive:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=Oe(e);n.hover&&(n.hover=null,ly(e,!1))}},onDocumentPointerdown:{capture:!0,passive:!0,handler:(t,e)=>{let n=Oe(e),r=oA(t.target);n.shown&&r&&n.shown.contains(r)&&G$(e)}},onDocumentFocusin:{capture:!0,handler:(t,e)=>{let n=Oe(e),r=oA(t.target),o=r&&wK(r)?W$(e,r):null;o!==n.focus&&(n.focus=o,ly(e,!0))}},onDocumentFocusout:{capture:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=Oe(e);n.focus&&(n.focus=null,ly(e,!0))}},onDocumentKeydown:{capture:!0,handler:(t,e)=>{(t.key==="Escape"||t.key==="Esc")&&G$(e)}},onDocumentScroll:{capture:!0,passive:!0,handler:(t,e)=>{Oe(e).shown&&fy(e)}},onWindowResize:(t,e)=>{Oe(e).shown&&fy(e)},onBeforeRemove:t=>{let e=Oe(t);dy(e),e.shown&&iA(e.shown,e.id),e.shown=e.hover=e.focus=e.dismissed=null}};var Y$={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:t=>Ut(t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:t=>t.parent.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.description,t))||t.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},X$={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:t=>{let e=!t.shapeDirection||t.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(t,e)}},Z$={position:"relative",zIndex:999,onInit:t=>{let{Tooltip:e,TooltipHidden:n}=t,r=e||n;if(!r)return;let o=r&&r[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var lA={};F(lA,{Avatar:()=>J$});var AK=t=>{let n=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="32" fill="#71718A"/><text x="32" y="42" font-family="system-ui,sans-serif" font-size="28" font-weight="700" text-anchor="middle" fill="#fff">${String(t||"").trim().charAt(0).toUpperCase()||"?"}</text></svg>`;return"data:image/svg+xml;utf8,"+encodeURIComponent(n)},J$={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:t=>`https://api.dicebear.com/7.x/${t.avatarType||"initials"}/svg?seed=${t.key||"no-avatar"}`,onError:(t,e)=>{if(!e.node||e.node.__avatarFallbackApplied)return;e.node.__avatarFallbackApplied=!0;let n=e.node.getAttribute("alt")||(e.key!=="no-avatar"?e.key:"");e.node.src=AK(n)},attr:{alt:t=>t.alt!=null?t.alt:t.text?t.call("exec",t.text,t):t.key&&t.key!=="no-avatar"?t.key:""}};var fA={};F(fA,{Range:()=>Q$});var Q$={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,n)=>{n.update({value:parseFloat(e.node.value)})},onChange:(t,e,n)=>{n.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:Da("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:Da("#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,n)=>{let r=t.call("exec",t[e],t);return(t.call("isFunction",r)?r(t,t.state):r!==void 0?r:n!==void 0?n:0)+""}},attr:{type:"range",value:(t,e)=>t.call("exec",e.value||t.value||t.defaultValue,t),min:(t,e)=>t.deps.returnPropertyValue(t,"min",0),max:(t,e)=>t.deps.returnPropertyValue(t,"max",100),step:(t,e)=>t.deps.returnPropertyValue(t,"step",1)}};var wA={};F(wA,{Dropdown:()=>v2,DropdownDisclosure:()=>T2,DropdownList:()=>A2,DropdownParent:()=>C2,DropdownParentFocus:()=>O2,DropdownSiblingFocus:()=>R2});Mt();var by="hover",r2="focus",Dd="sibling",Hr="disclosure",t2={menu:1,listbox:1,tree:1,grid:1,dialog:1},CK={DIV:1,SPAN:1,LABEL:1,P:1,STRONG:1,B:1,EM:1,SMALL:1,H1:1,H2:1,H3:1,H4:1,H5:1,H6:1},TK={BUTTON:1,INPUT:1,SELECT:1,TEXTAREA:1},OK='button, a[href], [role^="menuitem"], [role="option"]',RK={ArrowDown:1,Down:1,ArrowUp:-1,Up:-1,Home:"first",End:"last"},hy=new WeakMap,gy=new WeakMap,my=new WeakMap,dA=new WeakMap,o2=new WeakSet,PK=0,wt=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},Nc=(t,e)=>{let n=wt(t);return n?n.getAttribute(e):null},Dt=(t,e)=>{let n=wt(t);return!!n&&!!e&&(n===e||n.contains(e))},uA=t=>{let e=wt(t);return!!e&&e.hasAttribute("dropdown")},pA=t=>{let e=wt(t);return!!e&&e.tagName==="BUTTON"},py=t=>pA(t)||Nc(t,"role")==="button",e2=t=>{let e=wt(t);return!!e&&CK[e.tagName]===1&&!e.isContentEditable},s2=t=>{let e=wt(t);return!!e&&!e.disabled&&!e.hidden&&e.getAttribute("aria-disabled")!=="true"},Id=t=>{let e=Nc(t,"role");return!!e&&e.indexOf("menuitem")===0&&s2(t)},LK=t=>{let e=wt(t);if(!e||!s2(t))return!1;if(TK[e.tagName]===1)return e.getAttribute("type")!=="hidden";if(e.tagName==="A"&&e.hasAttribute("href"))return!0;let n=e.getAttribute("tabindex");return n!==null&&parseInt(n,10)>=0},mi=t=>t&&typeof t.getChildren=="function"?t.getChildren():[],Re=t=>t&&typeof t.dropdownMode=="string"?t.dropdownMode:null,hA=t=>{let e=t&&t.Input_trigger;return e&&e.__ref?e:null},i2={tabindex:"tabIndex","aria-expanded":"ariaExpanded","aria-haspopup":"ariaHaspopup","aria-controls":"ariaControls","aria-labelledby":"ariaLabelledby","aria-label":"ariaLabel","aria-hidden":"ariaHidden"},a2=(t,e)=>{if(t[e]!==void 0)return!0;let n=i2[e];if(n!==void 0&&t[n]!==void 0)return!0;let r=t.attr;if(r&&typeof r=="object"&&r[e]!==void 0)return!0;if(e.indexOf("aria-")===0){let o=t.aria;if(o&&typeof o=="object"&&o[e.slice(5)]!==void 0)return!0}return!1},DK=(t,e)=>{let n=i2[e],r=t.attr;return typeof t[e]=="function"||n!==void 0&&typeof t[n]=="function"||!!r&&typeof r=="object"&&typeof r[e]=="function"},lr=(t,e,n)=>!e.hasAttribute(n)&&!a2(t,n),Vo=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},IK=(t,e)=>{let n=wt(t);if(n)for(let r in e)Vo(n,r,e[r])},yy=t=>{let e=wt(t);return!e||typeof e.focus!="function"?!1:(e.focus(),e.ownerDocument.activeElement===e)},MK=t=>{let e=hy.get(t);return e||(e={id:"smbls-dropdown-"+ ++PK,open:null,trigger:null,panel:null,popup:null,popupRole:null,owns:!1,pressedOpen:!1,written:null,outside:null,outsideDoc:null},hy.set(t,e)),e},n2=(t,e)=>!!e&&!!wt(e)&&!!t&&t[e.key]===e,NK=(t,e)=>{let n=null,r=null;if(e===Dd){let s=t.parent?mi(t.parent):[];for(let i=s.indexOf(t)+1;i>0&&i<s.length&&s[i];i++)if(uA(s[i])){n=s[i];break}return(py(t)||e2(t))&&(r=t),{panel:n,trigger:r}}let o=mi(t);for(let s=0;s<o.length;s++)if(uA(o[s])){n=o[s];break}if(py(t))return{panel:n,trigger:t};for(let s=0;s<o.length;s++){let i=o[s];if(!(!wt(i)||i.key==="Input_trigger"||uA(i))){(py(i)||e2(i))&&(r=i);break}}return{panel:n,trigger:r}},$K=t=>{let e=Nc(t,"role");if(e&&t2[e]===1)return{el:t,role:e};let n=mi(t);for(let r=0;r<n.length;r++){let o=Nc(n[r],"role");if(o&&t2[o]===1)return{el:n[r],role:o}}return null},yn=t=>{let e=Re(t);if(!e||!wt(t))return null;let n=MK(t);if(n.trigger){let p=e===Dd?t.parent:t;if((n.trigger===t||n2(t,n.trigger))&&n2(p,n.panel))return n}let{panel:r,trigger:o}=NK(t,e);if(!r||!o)return n.trigger=n.panel=n.popup=null,null;n.trigger=o,n.panel=r;let s=e===Hr?null:$K(r);n.popup=s?s.el:null,n.popupRole=s?s.role:null;let i=wt(o),a={},c=i.getAttribute("id");n.popupRole==="menu"&&!c&&lr(o,i,"id")&&(a.id=c=n.id+"-trigger"),py(o)||(lr(o,i,"role")&&(a.role="button"),lr(o,i,"tabindex")&&(a.tabindex="0")),n.popupRole&&lr(o,i,"aria-haspopup")&&(a["aria-haspopup"]=n.popupRole);let l=wt(r),f=l.getAttribute("id");if(!f&&lr(r,l,"id")&&(f=n.id+"-panel",Vo(l,"id",f)),f&&lr(o,i,"aria-controls")&&(a["aria-controls"]=f),n.owns=lr(o,i,"aria-expanded"),n.written={open:null,expanded:null},n.owns&&(n.written.expanded=_y(t,n)?"true":"false",a["aria-expanded"]=n.written.expanded),IK(o,a),n.popupRole==="menu"&&c){let p=wt(n.popup);lr(n.popup,p,"aria-label")&&lr(n.popup,p,"aria-labelledby")&&Vo(p,"aria-labelledby",c)}o!==t&&e===r2&&Nc(t,"tabindex")==="0"&&!DK(t,"tabindex")&&Vo(wt(t),"tabindex","-1");let u=hA(t),d=wt(u);return d&&!d.hasAttribute("tabindex")&&(a2(u,"tabindex")||Vo(d,"tabindex","-1"),lr(u,d,"aria-hidden")&&Vo(d,"aria-hidden","true")),yi(t,n),n},c2=t=>{let e=wt(t),n=e&&e.ownerDocument.activeElement;return n&&n!==e.ownerDocument.body?n:null},l2=t=>Dt(t,c2(t)),_y=(t,e,n)=>{if(e.open!==null)return e.open;let r=Re(t);return n||r===by||r===Hr?!1:l2(t)},yi=(t,e,n)=>{let r=e.open===null?null:String(e.open);if(e.written.open!==r){e.written.open=r;let s=wt(t);s&&Vo(s,"data-dropdown-open",r)}if(!e.owns)return;let o=_y(t,e,n)?"true":"false";if(e.written.expanded!==o){e.written.expanded=o;let s=wt(e.trigger);s&&Vo(s,"aria-expanded",o)}},_i=t=>{let e=gy.get(t);return e||(e={stop:null,stopItem:null,chosen:!1,ready:!1,settling:!1,checks:null,checkRows:null,owned:!1},gy.set(t,e)),e},f2=(t,e)=>{if(t.stopItem===e&&t.stop===e.key)return;let n=t.stopItem&&my.get(t.stopItem);t.stop=e.key,t.stopItem=e,n&&n.set(!1);let r=my.get(e);r&&r.set(!0)},u2=(t,e)=>{let n=_i(t);n.chosen=!0,f2(n,e)},d2=t=>{let e=_i(t);if(e.settling=!1,e.chosen)return;let n=mi(t);for(let r=0;r<n.length;r++)if(Id(n[r])){f2(e,n[r]);return}},p2=(t,e)=>{if(!e||!e.contains(t))return!1;let n=[];for(let o=t;o!==e;o=o.parentElement)n.push(o);n.push(e);let r=!1;for(let o=n.length-1;o>=0;o--){let s=typeof n[o].getAnimations=="function"?n[o].getAnimations():[];for(let i=0;i<s.length;i++)s[i].transitionProperty==="visibility"&&(s[i].finish(),r=!0)}return r},h2=(t,e)=>{let n=wt(t);if(!n)return;let r=n.ownerDocument.activeElement,o=yy(t);!o&&e&&n.ownerDocument.activeElement===r&&p2(n,wt(e))&&(o=yy(t));let s=t.parent;o&&s&&gy.has(s)&&u2(s,t)},FK=t=>{let e=t.popupRole==="menu"?t.popup:t.panel;return!e||typeof e.lookdownAll!="function"?[]:e.lookdownAll(t.popupRole==="menu"?Id:LK)},BK=(t,e,n)=>{if(n==="trigger"){let s=c2(t);(!Dt(t,s)&&!Dt(e.panel,s)||Dt(hA(t),s))&&yy(e.trigger);return}let r=FK(e);if(!r.length)return;let o=n==="last"?r[r.length-1]:null;if(!o)for(let s=0;s<r.length&&!o;s++)Nc(r[s],"aria-checked")==="true"&&(o=r[s]);h2(o||r[0],e.panel)},gA=(t,e,n)=>{let r=wt(t),o=r&&r.ownerDocument;n&&!e.outside&&o?(e.outside=s=>{if(!wt(t)||!wt(t).isConnected){gA(t,e,!1);return}Dt(t,s.target)||Dt(e.panel,s.target)||de(t,e,!1)},e.outsideDoc=o,o.addEventListener("pointerdown",e.outside,!0)):!n&&e.outside&&(e.outsideDoc.removeEventListener("pointerdown",e.outside,!0),e.outside=e.outsideDoc=null)},g2=(t,e)=>{let n=wt(t),r=n&&n.ownerDocument&&n.ownerDocument.defaultView;if(!r||typeof r.Event!="function")return;let o=new r.Event("toggle");Object.defineProperty(o,"newState",{value:e?"open":"closed"}),Object.defineProperty(o,"oldState",{value:e?"closed":"open"}),n.dispatchEvent(o)},$c=(t,e,n)=>{let r=e.open===!0;if(e.open=!0,yi(t,e),Re(t)===Hr){gA(t,e,!0);let o=wt(e.panel);o&&p2(o,o),r||g2(t,!0)}n&&BK(t,e,n)},de=(t,e,n)=>{let r=e.open===!0;e.open=!1,yi(t,e),e.outside&&gA(t,e,!1),n&&yy(e.trigger),r&&Re(t)===Hr&&g2(t,!1)},jK=t=>{let e=t.__ref;if(!e||Re(t)!==Hr||!Object.prototype.hasOwnProperty.call(t,"open"))return;let n=K(()=>{let r=t.open;r!=null&&Qo(()=>{let o=yn(t);!o||!!r==(o.open===!0)||(r?$c(t,o,null):de(t,o,l2(t)))})},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(n)},wy=(t,e,n)=>e.trigger===t?!Dt(e.panel,n):Dt(e.trigger,n)?!0:Dt(hA(t),n),mA=(t,e)=>{let n=e&&typeof e.closest=="function"?e.closest(OK):null;return!!n&&Dt(t,n)},m2=(t,e,n)=>{let r=t.key;r==="Escape"||r==="Esc"?(t.preventDefault(),de(e,n,!0)):r==="Tab"&&n.popupRole==="menu"&&Dt(n.popup,t.target)&&de(e,n,!1)},Sy=t=>{Re(t)===Dd&&t.parent&&o2.add(t.parent),yn(t),jK(t)},xy=(t,e)=>{let n=yn(e);n&&(n.pressedOpen=_y(e,n))},UK=(t,e)=>{let n=hy.get(e);!n||!n.trigger||n.open!==!1||Re(e)!==by||(n.open=null,yi(e,n))},ky=(t,e)=>{if(Re(e)===Hr){zK(t,e);return}if(t.defaultPrevented)return;let n=yn(e);if(!n)return;let r=t.target;if(Dt(n.panel,r)){if(Re(e)!==by||!mA(n.panel,r))return;(n.open===!0||t.detail===0)&&de(e,n,!0);return}if(!wy(e,n,r))return;let o=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,o?de(e,n,!0):$c(e,n,n.popupRole==="menu"?"first":"trigger")},Ey=(t,e)=>{if(t.defaultPrevented)return;if(Re(e)===Hr){HK(t,e);return}let n=yn(e);if(!n)return;let r=t.target;if(Dt(n.panel,r)){m2(t,e,n);return}if(!wy(e,n,r))return;let o=t.key;if(o==="ArrowDown"||o==="Down"||o==="ArrowUp"||o==="Up")t.preventDefault(),$c(e,n,o==="ArrowUp"||o==="Up"?"last":"first");else if(o==="Escape"||o==="Esc"){if(!_y(e,n))return;t.preventDefault(),de(e,n,!1)}else(o==="Enter"||o===" "||o==="Spacebar")&&!pA(n.trigger)&&(t.preventDefault(),n.open===!0?de(e,n,!0):$c(e,n,n.popupRole==="menu"?"first":"trigger"))},VK=t=>!!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey),zK=(t,e)=>{let n=yn(e);if(!n)return;let r=t.target;if(Dt(n.panel,r)){n.open===!0&&!VK(t)&&e.keepOpen!==!0&&mA(n.panel,r)&&de(e,n,!0);return}if(t.defaultPrevented||!wy(e,n,r))return;let o=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,o?de(e,n,!0):$c(e,n,"trigger")},HK=(t,e)=>{let n=yn(e);if(!n)return;let r=t.key;if(r==="Escape"||r==="Esc"){if(n.open!==!0)return;t.preventDefault(),de(e,n,!0);return}(r==="Enter"||r===" "||r==="Spacebar")&&!pA(n.trigger)&&!Dt(n.panel,t.target)&&wy(e,n,t.target)&&(t.preventDefault(),n.open===!0?de(e,n,!0):$c(e,n,"trigger"))},yA=(t,e)=>{let n=yn(e);n&&(n.open===null&&Dt(n.panel,t.target)&&(n.open=!0),yi(e,n))},Md=(t,e)=>{let n=hy.get(e);if(!n||!n.trigger)return;let r=t.relatedTarget;if(Re(e)===Hr){n.open===!0&&r&&!Dt(e,r)&&!Dt(n.panel,r)&&de(e,n,!1);return}if(r&&(Dt(e,r)||Dt(n.panel,r))){n.open===null&&Dt(n.panel,r)&&(n.open=!0,yi(e,n));return}n.open=null,yi(e,n,!0)},y2=t=>{let e=t.parent;if(!e||!o2.has(e))return null;let n=mi(e);for(let r=n.indexOf(t)-1;r>=0&&n[r];r--)if(Re(n[r])===Dd)return n[r];return null},bA=t=>{let e=y2(t),n=e?yn(e):null;return n&&n.panel===t?{ctrl:e,rec:n}:null},b2=t=>{let e=y2(t);e&&yn(e)},_2=(t,e)=>{if(t.defaultPrevented)return;let n=bA(e);n&&m2(t,n.ctrl,n.rec)},w2=(t,e)=>{if(t.defaultPrevented||!mA(e,t.target))return;let n=bA(e);n&&de(n.ctrl,n.rec,!0)},S2=(t,e)=>{let n=bA(e);n&&Md(t,n.ctrl)},WK=(t,e)=>{let n=e.parent,r=Re(n)?yn(n):null;if(r&&r.panel===e){de(n,r,!0);return}let o=wt(e),s=o&&o.ownerDocument.activeElement;s&&typeof s.blur=="function"&&s.blur()},x2=(t,e)=>{if(Re(e.parent)&&yn(e.parent))return;let n=wt(e);n&&n===n.ownerDocument.activeElement&&n.blur()},KK=(t,e)=>{if(t.defaultPrevented)return;let n=RK[t.key];if(!n)return;let r=typeof e.lookdownAll=="function"?e.lookdownAll(Id):[];if(!r.length)return;let o=-1;for(let i=0;i<r.length&&o===-1;i++)Dt(r[i],t.target)&&(o=i);let s;n==="first"?s=0:n==="last"?s=r.length-1:o===-1?s=n>0?0:r.length-1:s=(o+n+r.length)%r.length,t.preventDefault(),h2(r[s])},qK=(t,e)=>{let n=mi(e);for(let r=0;r<n.length;r++)if(Dt(n[r],t.target)){Id(n[r])&&u2(e,n[r]);return}},GK=t=>{let e=t.parent;if(!e)return"0";let n=_i(e),r=my.get(t);if(!r){n.stop===null&&(n.stop=t.key);let o=n.stop===t.key;o&&(n.stopItem=t),n.ready&&!n.chosen&&!n.settling&&(n.settling=!0,queueMicrotask(()=>d2(e))),r=Sn(o),my.set(t,r)}return r.get()?"0":"-1"},YK=t=>{b2(t);let e=_i(t);e.ready=!0,!(e.stopItem&&e.stopItem.parent===t&&Id(e.stopItem))&&d2(t)},XK=t=>{let e=dA.get(t),n=!e;n&&(e={tick:Sn(0),seen:0,checked:!1},dA.set(t,e));let r=e.tick.get();return r===e.seen&&(e.checked=!!Qo(()=>t.isActive)),e.seen=r,n&&t.parent&&JK(t.parent),e.checked?"true":"false"},ZK=(t,e)=>{if(e.checkRows.get(),!t.node){E2(t);return}let n=mi(t);for(let r=0;r<n.length;r++){let o=dA.get(n[r]);if(!o)continue;let s=!!n[r].isActive;s!==o.checked&&(o.checked=s,o.tick.set(o.tick.peek()+1))}},k2=t=>{let e=_i(t);e.checks||(e.checkRows||(e.checkRows=Sn(0)),e.checks=K(()=>ZK(t,e),{label:"DropdownList.checks"}))},E2=t=>{let e=gy.get(t);!e||!e.checks||(e.checks.dispose(),e.checks=null)},JK=t=>{let e=_i(t);e.checks?e.checkRows.set(e.checkRows.peek()+1):e.owned||k2(t)},QK=t=>{_i(t).owned=!0},bi={transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"},_A={opacity:0,visibility:"hidden"},v2={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"transform B defaultBezier, opacity B defaultBezier, visibility B defaultBezier",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden",onComplete:{always:!0,handler:b2},onKeydown:_2,onClick:w2,onFocusout:S2},A2={display:"flex",attr:{dropdown:!0},role:"menu",padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",listStyleType:"none",transition:"transform B defaultBezier, opacity B defaultBezier, visibility B defaultBezier",children:t=>t.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},onKeydown:(t,e)=>{KK(t,e),_2(t,e)},onInit:{always:!0,handler:QK},onComplete:{always:!0,handler:YK},onRender:{always:!0,handler:k2},onBeforeRemove:{always:!0,handler:E2},onFocusin:qK,onClick:w2,onFocusout:S2,childExtends:{extends:"Button",state:{},role:"menuitemradio",tabindex:t=>GK(t),aria:{checked:t=>XK(t)},isActive:(t,e)=>e.active===t.key,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"}}},':where([aria-checked="true"])':{style:{svg:{opacity:"1"}}},Icon:{name:"check",opacity:"0.1"},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},C2={position:"relative",zIndex:999,dropdownMode:by,":hover":{zIndex:1e3,"& [dropdown]":{...bi}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...bi}},'[data-dropdown-open="false"]:hover':{"& [dropdown]":{..._A}},onComplete:{always:!0,handler:Sy},onPointerdown:xy,onPointerenter:UK,onClick:ky,onKeydown:Ey,onFocusin:yA,onFocusout:Md},T2={position:"relative",dropdownMode:Hr,'[data-dropdown-open="true"]':{zIndex:1e3,"& > [dropdown]":{...bi}},onComplete:{always:!0,handler:Sy},onPointerdown:xy,onClick:ky,onKeydown:Ey,onFocusout:Md},O2={position:"relative",tabindex:"0",dropdownMode:r2,":focus-within":{zIndex:1e3,"& [dropdown]":{...bi}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...bi}},'[data-dropdown-open="false"]:focus-within':{"& [dropdown]":{..._A}},onComplete:{always:!0,handler:Sy},onPointerdown:xy,onClick:ky,onKeydown:Ey,onFocusin:yA,onFocusout:Md,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>x2(t,e)},Dropdown:{onClick:(t,e)=>WK(t,e)}},R2={position:"relative",tabindex:"0",dropdownMode:Dd,":focus-within":{zIndex:1e3,"& ~ [dropdown]":{...bi}},'[data-dropdown-open="true"]':{zIndex:1e3,"& ~ [dropdown]":{...bi}},'[data-dropdown-open="false"]:focus-within':{"& ~ [dropdown]":{..._A}},onComplete:{always:!0,handler:Sy},onPointerdown:xy,onClick:ky,onKeydown:Ey,onFocusin:yA,onFocusout:Md,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>x2(t,e)}};var SA={};F(SA,{Notification:()=>P2});var P2={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}};var wi=Object.assign({},tv,ev,nv,rv,sv,lv,fv,uv,av,dv,pv,cv,hv,gv,mv,yv,bv,_v,wv,Sv,xv,kv,Av,Jv,Qv,tA,nA,cA,lA,fA,wA,SA);function vy(t){if(t==null)return 0;if(typeof t!="object")return L2(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let r=0;r<t.length;r++)e=(e^vy(t[r]))*16777619;return e>>>0}let n=Object.keys(t).sort();for(let r=0;r<n.length;r++)e=(e^L2(n[r]))*16777619,e=(e^vy(t[n[r]]))*16777619;return e>>>0}function L2(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e}function Ay(t,e){if(t===e)return!0;if(t===null||e===null||typeof t!=typeof e||typeof t!="object")return!1;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(!Ay(t[o],e[o]))return!1;return!0}let n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++){let s=n[o];if(!Object.prototype.hasOwnProperty.call(e,s)||!Ay(t[s],e[s]))return!1}return!0}function xA(t,e){if(e===void 0)return t;if(t===void 0)return e;if(e===null)return null;if(typeof e!="object"||Array.isArray(e))return e;if(typeof t!="object"||Array.isArray(t))return{...e};let n=!1,r={};for(let o in t)if(o in e){let s=xA(t[o],e[o]);r[o]=s,s!==t[o]&&(n=!0)}else r[o]=t[o];for(let o in e)o in t||(r[o]=e[o],n=!0);return n?r:t}function kA(t,e,n){if(!e||typeof e!="object")return t;if(!t||typeof t!="object")return e;if(n||(n=new WeakSet),n.has(e))return t;n.add(e);for(let r in e){let o=e[r];o&&typeof o=="object"&&!Array.isArray(o)&&t[r]&&typeof t[r]=="object"&&!Array.isArray(t[r])?kA(t[r],o,n):t[r]=o}return t}function zo(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e.toString(36)}function Bc(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function Nd(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():zo(e)}function D2(t){return t.split(`
89
- `).map(zo).join(`
90
- `)}var I2={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",paddingBlock:"pbl",paddingInline:"pin",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",marginBlock:"mbl",marginInline:"min",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk",scrollBehavior:"sb",inset:"ins"};function M2(t,e){let n=I2[t]||zo(t),r=Nd(e),o=`_${n}-${r}`,s=Bc(t),i=r7[s],a=i?`${s}: ${e};${i}: ${e}`:`${s}: ${e}`,c=`.${o}{${a}}`;return`${o}
91
- ${c}`}var r7={"backdrop-filter":"-webkit-backdrop-filter","user-select":"-webkit-user-select","mask-image":"-webkit-mask-image","mask-size":"-webkit-mask-size","mask-repeat":"-webkit-mask-repeat","mask-position":"-webkit-mask-position","mask-clip":"-webkit-mask-clip","mask-origin":"-webkit-mask-origin","background-clip":"-webkit-background-clip"},o7="@media (hover: hover)",s7=/(?:^|[^\\]):hover(?![\w-])/,N2=t=>typeof t=="string"&&(t.indexOf("{")!==-1||t.indexOf("}")!==-1);function $2(t){let e=t.split("\0"),n=[],r=[];for(let o=0;o+1<e.length;o+=2){let s=e[o],i=e[o+1];if(!i||N2(i))continue;let a=I2[s]||zo(s),c=Nd(i),l=`_${a}-${c}`,f=Bc(s);n.push(l),r.push(`.${l}{${f}:${i}}`)}return n.join(" ")+"\0"+r.join(`
92
- `)}function F2(t,e,n){let r=t+e,o=`_c${zo(r)}`,s=e.split("\0"),i="";for(let l=0;l+1<s.length;l+=2){let f=s[l],u=s[l+1];u&&(N2(u)||(i+=`${Bc(f)}:${u};`))}let a,c;if(t.startsWith("@media"))c=`.${o}`,a=`${t}{${c}{${i}}}`;else if(t.startsWith(":")||t.startsWith("&")||t.startsWith("[")&&!t.includes("&")){let l=t.startsWith("&")?t.slice(1):t;c=`.${o}${l}`,a=`${c}{${i}}`}else t.includes("&")?(c=t.replace("&",`.${o}`),a=`${c}{${i}}`):(c=`.${o} ${t}`,a=`${c}{${i}}`);return n!==!1&&s7.test(c)&&(a=`${o7}{${a}}`),`${o}
93
- ${a}`}var EA=null;function Ty(t){EA=t}var Mn={structuralHash:vy,deepEqual:Ay,mergeStructural:xA,overwriteDeep:kA,shortHash:zo,toKebab:Bc,sanitizeValue:Nd,batchShortHash:D2,atomicCssClass:M2,batchAtomicCss:$2,compoundCssClass:F2},B2=!1,Cy=null;function j2(t){return Cy||(Cy=import(t||"@symbo.ls/wasm/pkg").then(e=>(e.structuralHash&&(Mn.structuralHash=e.structuralHash),e.deepEqual&&(Mn.deepEqual=e.deepEqual),e.mergeStructural&&(Mn.mergeStructural=e.mergeStructural),e.overwriteDeep&&(Mn.overwriteDeep=e.overwriteDeep),e.shortHash&&(Mn.shortHash=e.shortHash),e.toKebab&&(Mn.toKebab=e.toKebab),e.sanitizeValue&&(Mn.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(Mn.batchShortHash=e.batchShortHash),e.atomicCssClass&&(Mn.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(Mn.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(Mn.compoundCssClass=e.compoundCssClass),B2=!0,EA&&e.batchAtomicCss&&EA({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),Cy)}function U2(){return B2}M();var $d={};F($d,{BRENDER_REGISTRY_BLOCK:()=>Bf,BRENDER_REGISTRY_TREE_BLOCK:()=>jf,BRENDER_STAMP_META:()=>ng,CDN_PROVIDERS:()=>tn,DESIGN_SYSTEM_BLOCK:()=>Hf,DESIGN_SYSTEM_DEFERRED:()=>zf,DESIGN_SYSTEM_LINK:()=>Vf,DOMQL_EVENTS:()=>G_,DOMQ_PROPERTIES:()=>to,ELEMENT_METHOD_OVERRIDE_POINTS:()=>Qi,ENV:()=>yw,HTML_TAGS:()=>ia,LIBRARY_PACKAGES:()=>tg,LIBRARY_SCOPES_KEY:()=>Es,METHODS:()=>no,METHODS_EXL:()=>Tl,NODE_ENV:()=>xn,OPTIONS:()=>rf,PACKAGE_MANAGER_TO_CDN:()=>po,PARSED_DOMQ_PROPERTIES:()=>Cl,POLYGLOT_LANG_STORAGE_KEY:()=>Hh,PROPS_METHODS:()=>eo,REVIVED_MARK:()=>Ml,STATE_DATA_MERGE_EXL:()=>bh,STATE_METHODS:()=>ns,STATE_PROPERTIES:()=>K_,SVG_TAGS:()=>kO,TYPES:()=>wl,UNIVERSAL_RESERVED_KEYS:()=>zh,__resetBuiltinMethodWarnings:()=>bx,addCaching:()=>dh,addContext:()=>uh,addExtend:()=>jw,addExtends:()=>zn,addItemAfterEveryElement:()=>L_,addProtoToArray:()=>kl,addRef:()=>ch,alternateLinkKey:()=>Cs,applyCSS:()=>TA,applyDependentState:()=>sS,applyEvent:()=>_h,applyEventUpdate:()=>wh,applyExtends:()=>AO,applyProps:()=>Xl,arrayContainsOtherArray:()=>v_,arraysEqual:()=>I_,arrayzeValue:()=>Rs,bareLibraryKey:()=>Pf,bindLibraryGlobalScopes:()=>Df,brenderStampMeta:()=>Ax,buildImgSrcset:()=>qf,buildSourcesAndImg:()=>Gf,cache:()=>fS,call:()=>XS,captureSnapshot:()=>JS,checkForStateTypes:()=>eS,checkIfInherits:()=>yh,checkIfStringIsInArray:()=>$_,clone:()=>nw,cloneAndMergeArrayExtend:()=>Vl,cloneFunction:()=>Ew,collectExtendsList:()=>aa,concatAddExtends:()=>$w,copyJavaScriptToClipboard:()=>Lx,copyStringToClipboard:()=>Px,createBasedOnType:()=>ah,createElement:()=>tS,createElementExtends:()=>Yp,createExtends:()=>Hl,createExtendsFromKeys:()=>ca,createExtendsStack:()=>Qp,createIfConditionFlag:()=>vw,createInheritedState:()=>nS,createKey:()=>Bl,createNestedObject:()=>fw,createNestedObjectByKeyPath:()=>oS,createObjectWithoutPrototype:()=>Vp,createParent:()=>lh,createPath:()=>fh,createProps:()=>Zl,createPropsStack:()=>sh,createPrunedLibraryIconLoader:()=>ag,createRoot:()=>Qw,createScope:()=>aS,createSnapshotId:()=>Fl,currentPathname:()=>Ss,customDecodeURIComponent:()=>W_,customEncodeURIComponent:()=>H_,cutArrayAfterValue:()=>R_,cutArrayBeforeValue:()=>O_,debounce:()=>Ul,debounceOnContext:()=>xw,decodeBrenderRegistry:()=>Uf,decodeNewlines:()=>z_,deepClone:()=>pt,deepContains:()=>cw,deepDefaults:()=>Ea,deepDestringifyFunctions:()=>be,deepExtend:()=>Gp,deepMerge:()=>bt,deepMergeExtends:()=>Hn,deepStringifyFunctions:()=>Ll,defineSetter:()=>GS,designSystemBlock:()=>vx,designSystemLink:()=>Ex,destringifyGlobalScope:()=>ls,detectHeightOnInit:()=>ox,detectInfiniteLoop:()=>hw,document:()=>kt,encodeNewlines:()=>V_,error:()=>_s,escapeHtml:()=>U,escapeRegExp:()=>F_,evaluateText:()=>uo,excludeKeysFromObject:()=>mw,exec:()=>St,exposeBagGlobalScopes:()=>If,extendCachedRegistry:()=>Fw,extendStackRegistry:()=>Wl,extractArrayExtend:()=>ql,faviconLinkKey:()=>mo,fetchLibraryData:()=>Ca,fibonacciNumberByIndex:()=>sx,fileEntryUrl:()=>rg,filterArrays:()=>M_,filterArraysFast:()=>N_,finalizeExtends:()=>th,findClosestNumber:()=>og,findClosestNumberInFactory:()=>Rx,findInheritedState:()=>mh,findKeyPosition:()=>j_,flattenExtend:()=>la,formatDate:()=>rx,generateHash:()=>Wp,generateHeadArrayTags:()=>Ta,generateKey:()=>$l,generateMetaTags:()=>Tx,get:()=>HS,getActiveRoute:()=>Yv,getCDNDirUrl:()=>Yh,getCDNUrl:()=>An,getCapitalCaseKeys:()=>zw,getCdnProviderFromConfig:()=>xa,getChildStateInKey:()=>gh,getChildren:()=>qS,getContext:()=>Sf,getCookie:()=>Rw,getDB:()=>Af,getEmotionStylesheet:()=>Bx,getExtendsInElement:()=>Uw,getExtendsStack:()=>zl,getExtendsStackRegistry:()=>qp,getFrequencyInArray:()=>A_,getFunctionSource:()=>Ne,getHashedExtend:()=>Kl,getImportMapScript:()=>nx,getInObjectByPath:()=>pw,getLocalStorage:()=>Lw,getNev:()=>Sw,getPageMetadata:()=>Ox,getParentStateInKey:()=>hh,getPath:()=>gf,getQuery:()=>Cf,getRef:()=>KS,getRoot:()=>bf,getRootContext:()=>wf,getRootData:()=>_f,getRootState:()=>yf,getRootStateInKey:()=>ph,getSpreadChildren:()=>Hw,global:()=>x_,hasFunction:()=>se,hasHandlerPlugin:()=>ra,hasOwnProperty:()=>sw,hashContent:()=>Tn,inheritChildExtends:()=>Zp,inheritChildPropsExtends:()=>Xp,inheritParentProps:()=>Jl,inheritRecursiveChildExtends:()=>Jp,init:()=>fr,initProps:()=>Xw,insertAfterImportMap:()=>Cx,installPrunedLibraryIconLoader:()=>Kf,is:()=>ye,isArray:()=>I,isBoolean:()=>Ip,isBuiltinElementMethod:()=>q_,isContextComponent:()=>Ww,isCyclic:()=>gw,isDOMNode:()=>ge,isDate:()=>Np,isDefined:()=>Ut,isDevelopment:()=>oo,isEmpty:()=>jp,isEmptyObject:()=>iw,isEqualDeep:()=>Up,isFailedRevival:()=>as,isFunction:()=>L,isHtmlElement:()=>bl,isLazyFunction:()=>rw,isLocal:()=>ww,isLoudDevRuntime:()=>tt,isMalformedDependency:()=>xs,isMethod:()=>ZS,isMobile:()=>Tw,isNode:()=>hr,isNot:()=>E_,isNotProduction:()=>gr,isNull:()=>Mp,isNumber:()=>me,isObject:()=>E,isObjectLike:()=>V,isPhoto:()=>ix,isPolyglotRetranslatableKey:()=>nf,isPolyglotWritableKey:()=>us,isProduction:()=>ro,isProtectedElementMethod:()=>rs,isRevived:()=>cs,isStaging:()=>_w,isState:()=>rS,isString:()=>v,isStringFunction:()=>na,isStringTag:()=>Il,isTest:()=>Hp,isTesting:()=>bw,isUndefined:()=>Xt,isUniversallyReservedKey:()=>QS,isUnresolvableDependency:()=>ho,isValidDependencyMap:()=>ks,isValidHtmlTag:()=>Iw,isWrappedLibrary:()=>$e,joinArrays:()=>Xi,jointStacks:()=>Bw,jsonForScript:()=>gs,keys:()=>Uh,lastLevel:()=>ay,lastPathname:()=>Dc,libraryIconPruneReplacer:()=>Fx,libraryIdentifier:()=>sg,libraryPackageSpecs:()=>va,librarySpecsFor:()=>Qh,loadCssFile:()=>fx,loadJavascript:()=>ux,loadJavascriptFile:()=>ax,loadJavascriptFileEmbedSync:()=>lx,loadJavascriptFileSync:()=>cx,loadLazy:()=>Vv,loadRemoteCSS:()=>dx,loadRemoteScript:()=>ka,log:()=>YS,logGroupIf:()=>Cw,logIf:()=>Aw,lookdown:()=>VS,lookdownAll:()=>zS,lookup:()=>US,lowercaseFirstLetter:()=>es,makeObjectWithoutPrototype:()=>aw,map:()=>ew,mapStringsWithContextComponents:()=>Gl,markPolyglotSeeded:()=>Kn,markRevived:()=>ea,markTextNotReady:()=>_a,matchRoute:()=>Kv,matchesComponentNaming:()=>Wn,memoize:()=>kw,merge:()=>Lt,mergeSharedLibraries:()=>Mf,mergeSharedLibraryDesignSystems:()=>Nf,mergeStateData:()=>io,nextElement:()=>kf,normalizeIgnoreList:()=>Lf,normalizeLibraryKey:()=>vs,objectToString:()=>Dl,objectizeStringProperty:()=>Yl,overwrite:()=>Nl,overwriteDeep:()=>ie,overwriteShallow:()=>fs,overwriteState:()=>iS,parse:()=>Vh,parseDeep:()=>pf,parseQuery:()=>qv,parseRoutePattern:()=>iy,payloadHasComputedIconName:()=>ig,pickStartLang:()=>qh,pickupElementFromProps:()=>rh,pickupPropsFromElement:()=>nh,planLibraryIconPrune:()=>$x,polyglotAddressLang:()=>Wh,polyglotFallbackLang:()=>wr,polyglotLangStorageKey:()=>ba,polyglotLanguages:()=>vn,polyglotSeededKeys:()=>ao,polyglotStartLang:()=>ws,polyglotStartRule:()=>Kh,polyglotStartupScript:()=>tx,previousElement:()=>Ef,promoteActiveRootState:()=>ma,propExists:()=>Gw,propertizeElement:()=>oh,propertizeUpdate:()=>qw,readBrenderStamp:()=>ms,readJsonDataBlock:()=>Gn,reinit:()=>CA,remove:()=>I1,removeChars:()=>Dx,removeCookie:()=>Pw,removeDuplicateProps:()=>tf,removeDuplicatesInArray:()=>Zi,removeFromArray:()=>C_,removeFromObject:()=>lw,removeNestedKeyByPath:()=>uw,removeValueFromArray:()=>xl,removeValueFromArrayAll:()=>P_,reorderArrayByValues:()=>D_,repairLegacyArrowScopePreamble:()=>Ol,replaceLiteralsWithObjectFields:()=>Zt,replaceOctalEscapeSequences:()=>U_,resolveAsset:()=>_e,resolveFileReferences:()=>Os,resolveHandler:()=>oa,resolveRouterElement:()=>Pd,resolveSharedLibraries:()=>$f,returnValueAsText:()=>ih,router:()=>In,runGuards:()=>x$,runPluginHook:()=>so,saveScrollPosition:()=>Ad,scopeElementParam:()=>$p,scopeReceiverExpression:()=>J_,scratchSystem:()=>qa,scratchUtils:()=>So,self:()=>k_,set:()=>Xs,setActiveRootState:()=>mf,setCookie:()=>Ow,setHashedExtend:()=>Kp,setInObjectByPath:()=>dw,setLocalStorage:()=>Dw,setNodeStyles:()=>jh,setProps:()=>WS,setPropsPrototype:()=>Ql,sharedLibrary:()=>yx,sharedLibraryFiles:()=>As,splitPackageSpecifier:()=>Tf,spotByPath:()=>hf,srcsetFor:()=>Oa,stringIncludesAny:()=>vl,stringToObject:()=>ow,stripVersionRangePrefix:()=>Of,swapItemsInArray:()=>T_,syncProps:()=>ef,themeColorKey:()=>Ts,toCamelCase:()=>Sr,toDashCase:()=>Wf,toDescriptionCase:()=>Mx,toPriorityOrder:()=>Ze,toTitleCase:()=>Ix,toggleFullscreen:()=>ex,triggerEventOn:()=>mr,triggerEventOnUpdate:()=>cS,trimStringFromSymbols:()=>B_,unstackArrayOfObjects:()=>Sl,update:()=>Yw,updateProps:()=>Zw,variables:()=>vf,verbose:()=>ya,warn:()=>xf,warnLibraryAliasCollision:()=>Aa,window:()=>R});M();M();M();var a7={group:"group",imagePair:"image-pair","image-pair":"image-pair",old:"old",new:"new"},c7=/^(?:\*|\.?-?[_a-zA-Z][\w-]*)$/,l7=/^-?[_a-zA-Z][\w-]*$/,f7=new Set(["root","*"]),u7="@media (prefers-reduced-motion: no-preference)",d7="@media (prefers-reduced-motion: reduce)",p7=(t,e)=>{let n=v(t)?{animation:t}:E(t)?t:null;if(!n)return null;let r;try{r=ee(n,e)}catch{return null}let o={};for(let s in r){let i=r[s];(v(i)||me(i))&&(o[s]=i)}return Object.keys(o).length?o:null},V2=(t,e,n={})=>{if(!E(t))return null;if(globalThis.__SMBLS_BUILD_DROP_F_viewTransition__)return Object.keys(t).length&&qt("viewTransition")||null;let r=!n.scope||n.scope===":root",o=l=>{n.verbose!==!1&&console.warn("[smbls] designSystem.viewTransition: "+l)},s={key:"viewTransition",state:{},context:{designSystem:e}},i={},a={},c=(l,f,u)=>{for(let d in f){if(d==="types"&&!u)continue;let p=a7[d];if(!p){o(`${l}.${d} is not a view-transition part (group, imagePair, old, new)`);continue}let g=`${u}::view-transition-${p}(${l})`,h=p7(f[d],s);h&&(i[g]=h,a[g]={animation:"none"})}};for(let l in t){let f=t[l];if(E(f)){if(!c7.test(l)){o(`"${l}" is not a view-transition name`);continue}if(!r&&f7.has(l)){o(`"${l}" belongs to the document's primary app; a scoped app (${n.scope}) emits its own names only`);continue}if(c(l,f,""),E(f.types))for(let u in f.types){if(!l7.test(u)||!E(f.types[u])){o(`${l}.types.${u} is not a view-transition type with parts`);continue}c(l,f.types[u],`:root:active-view-transition-type(${u})`)}}}return Object.keys(i).length?{[u7]:i,[d7]:a}:null};var h7=P(),H2=(t=h7,e)=>{let n=E(e.localFile)?e.localFile:{},r=pt(n.designSystem||{});return bt(t,r,ae)},g7={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Oy=(t,e)=>{let n=!e||e===":root",r={};for(let o in t)if(o.startsWith("@media")){let s=n?":root:not([data-theme])":`:root:not([data-theme]) ${e}:not([data-theme])`;r[o]={[s]:t[o]}}else n?r[o]=t[o]:r[`${e}${o}, ${o} ${e}`]=t[o];return r},vA=(t,e)=>{t.CSS_MEDIA_VARS&&Ot(Oy(t.CSS_MEDIA_VARS,e));let n=Gs(t.cssSkinVars,t.cssSkinFallback,e);Object.keys(n).length&&Ot(n)},W2=(t,e)=>{let n=V2(t.viewTransition,t,{scope:e,verbose:t.verbose});n&&Ot(n)},Ry=t=>{if(typeof window<"u"&&window.location)try{let e=new URLSearchParams(window.location.search).get("globalTheme");if(e)return e}catch{}return t},z2=(t,e)=>{t.useVariable&&(Ot({[e]:t.CSS_VARS}),vA(t,e)),t.useReset&&Ot(t.reset);let n=t.animation;if(n){let r={};for(let o in n)r[`@keyframes ${o}`]=n[o];Ot(r)}W2(t,e)},K2=(t,e,n,r,o)=>{t.useFontImport&&Ot(tu(t.font,t.files));let s=null;return o?Wu(o):n.recordCss?s=Hu(()=>z2(t,e)):z2(t,e),(r.svg||t.useSvgSprite)&&Ru(t.svg,{document:n.document}),(r.icons||t.useIconSprite)&&qs(t.icons,{document:n.document}),s},fr=(t,e=g7)=>{let n=H2(t||{},e),r=e.scopeSelector||":root",o=Ry(e.globalTheme),s=Xs({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:o,themeRoot:e.themeRoot,files:e.files,assets:e.assets,...n},{newConfig:e.newConfig,config:e.config});s&&(s.scopeSelector=r);let i={svg:!!t.svg,icons:!!t.icons},a=K2(s,r,e,i);return a&&typeof e.recordCss=="function"&&e.recordCss({rules:a,sprites:i}),s},AA=(t,e,n,r)=>{let o=n.scopeSelector||":root";if(Yg(t.config,e),n.files!==void 0&&(e.files=n.files),n.assets!==void 0&&(e.assets=n.assets),n.themeRoot!==void 0&&(e.themeRoot=n.themeRoot),bo(e),_o(e),Fu(e),e.__svgCache={},r){mt(e);try{$u("font",r)}finally{ht()}}mt(e);try{K2(e,o,n,t.sprites||{},t.rules)}finally{ht()}return e},Py={},CA=(t,e=Py)=>{let n=H2(t||{},e),r=e.scopeSelector||":root",o=Xs({verbose:!1,...n});return e.preventInject||(Ot({[r]:o.CSS_VARS}),vA(o,r),Ot(o.reset),W2(o,r)),o},TA=(t,e=Py)=>{Ot(t)},m7=(t,e=Py)=>{let n=e.scopeSelector||":root";Ot({[n]:t.CSS_VARS}),vA(t,n)};var y7=(t,e=Py)=>{};M();var q2=10,b7=t=>{let e=t&&t.window||(typeof window<"u"?window:null);return!!e&&typeof e.requestAnimationFrame=="function"},_7=t=>{try{let e=t.defaultView;return e&&e.frameElement||null}catch{return null}},w7=t=>{let e=t&&t.document||(typeof document<"u"?document:null);if(!e)return()=>!0;let n=!!e.defaultView,r=_7(e);return()=>!(n&&!e.defaultView||r&&!r.isConnected)},G2=Symbol("smbls.bootGone"),Y2=t=>{let e,n={live:w7(t),dead:!1,gone:new Promise(r=>{e=r}),lost(){n.dead||(n.dead=!0,e(G2))}};return n},jc=t=>t?t.dead?!1:t.live()?!0:(wd(t),!1):!0,S7=(t,e)=>e?Promise.race([t,e.gone]):t,Ho=async(t,e)=>await S7(t,e)!==G2&&jc(e),OA=t=>{if(!(!t||!t.__ref))try{pn(t)}catch{}},X2=new WeakSet,Uc=t=>(X2.add(t),t),Fd=t=>!!t&&typeof t=="object"&&X2.has(t),Z2=t=>{let e=t&&typeof t=="object"?t.firstRender:void 0;if(e===!1||!b7(t))return null;if(e===void 0||e===!0)return{budget:q2,progressive:!1};if(e&&typeof e=="object"){let r=e.budget===void 0?q2:ar(e.budget);return r?{budget:r,progressive:e.progressive===!0}:null}let n=ar(e);return n?{budget:n,progressive:!1}:null},RA=new WeakMap,PA=(t,e)=>(RA.set(t,e),e),LA=t=>{RA.delete(t)},J2=t=>{let e=t&&RA.get(t);return!e||e.routeTaken?null:(e.routeTaken=!0,e)},x7=Object.freeze({deferAttach:!0}),Q2=async(t,e,n,r,o)=>{let s=o.lease||null;if(await cr(),!jc(s))return null;let i=r.mountYield;i===void 0&&(r.mountYield=o.budget);let a=r.mountWhole;a===void 0&&(r.mountWhole=!o.progressive),o.pageOptions={mountYield:r.mountYield,mountWhole:r.mountWhole};let c;o.commit=new Promise(d=>{c=d}),o.committed=!1;let l=!o.progressive;PA(n,o);let f=ai(),u=null;s&&(n.__mountLease=s);try{if(u=Yt(t,e,n.key,r,l?x7:void 0),!await Ho(Vr(u),s)||o.routeReady&&!await Ho(o.routeReady,s)||!await Ho(Te(),s))return Ly(u);for(;!Bo();)if(!await Ho(Te(),s))return Ly(u);return l&&No(u),o.committed=!0,c(),o.page&&await Vr(o.page),await Te(),u}finally{o.committed=!0,c(),f(),r.mountYield=i,r.mountWhole=a,s&&(n.__mountLease=null),LA(n)}},Ly=t=>(OA(t),null);var eF=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,k7=t=>{let e=t&&t.initialPath;return typeof e!="string"||!e?null:e[0]==="/"?e:"/"+e},IA={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},E7=(t,e)=>{if(!e)return t;let n=Array.isArray(e)?e:e.split("."),r=t;for(let o of n){if(!r||!r[o])return null;r=r[o]}return r},Bd=(t,e)=>(Pd||E7)(t,e),v7=["manual","auto","restore"],DA=new WeakMap,tF=(t,e)=>{let n=e.claims[e.claims.length-1],r=n?n.value:e.found;t.scrollRestoration!==r&&(t.scrollRestoration=r)},A7=(t,e)=>{let n=e&&e.scrollRestoration;if(n!=null){if(!v7.includes(n)){if(t.verbose!==!1){let r=typeof n=="string"?JSON.stringify(n):`a ${typeof n}`;console.warn(`[smbls/router] router.scrollRestoration must be 'manual', 'auto' or 'restore', got ${r} \u2014 the browser default stays`)}return}try{let r=t.window||R,o=r&&r.history;if(!o||!("scrollRestoration"in o))return;let s=DA.get(o);s||(s={found:o.scrollRestoration,claims:[]},DA.set(o,s));let i={value:n==="restore"?"manual":n};s.claims.push(i),tF(o,s),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{let a=s.claims.indexOf(i);if(a!==-1){s.claims.splice(a,1),s.claims.length||DA.delete(o);try{tF(o,s)}catch{}}})}catch{}}},C7=(t,e)=>{if(!e||e.scrollRestoration!=="restore")return;let n=Ad,r=t.window||R;if(typeof n!="function"||!r||typeof r.addEventListener!="function")return;let o=t.document||r.document,s=()=>n(r),i=()=>{o.visibilityState==="hidden"&&n(r)};r.addEventListener("pagehide",s);let a=!!o&&typeof o.addEventListener=="function";a&&o.addEventListener("visibilitychange",i),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{r.removeEventListener("pagehide",s),a&&o.removeEventListener("visibilitychange",i)})},nF=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=IA:e.router=Lt(e.router||{},IA);let n=e.router;A7(e,n),C7(e,n);let r=(i,a)=>{let c=i.context?.window||R,l=k7(n);if(!l){if(!c.location)return;let{pathname:u,search:d,hash:p}=c.location;u=eF(u),l=u+d+p}let f=i;if(n.customRouterElement){let u=Bd(i,n.customRouterElement);u&&(f=u,i.routes&&(f.routes=i.routes))}if(f.routes)return In(l,f,{},{initialRender:!0,pushState:!1,...a})},o=async(i,a)=>{let c=J2(i.context);if(c)return T7(i,c,r);await r(i)},s=!Xt(t.onRenderRouter);return n&&n.initRouter&&!s&&(t.onRenderRouter=(i,a)=>e.__firstNavigation=o(i,a)),O7(e,n),n},T7=(t,e,n)=>{let r;return e.routeReady=new Promise(s=>{r=s}),(async()=>{try{if(await cr(),!t.__ref||!jc(e.lease))return;let s=n(t,e.progressive?{mountOptions:e.pageOptions}:{mountOptions:e.pageOptions,firstView:e});await Te(),r(),await s}finally{r()}})()},MA=(t,e)=>{if(e.router===!1)return;let n=e.router||IA;if(!n.popState)return;let r=e.utils&&e.utils.router?e.utils.router:In,o=e.window||R,s=async i=>{let{pathname:a,search:c,hash:l}=o.location;a=eF(a);let f=a+c+l,u=t;if(n.customRouterElement){let d=Bd(t,n.customRouterElement);d&&(u=d,t.routes&&(u.routes=t.routes))}await u.call("router",f,u,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};o.addEventListener("popstate",s),e.__teardowns=e.__teardowns||[],e.__teardowns.push(()=>o.removeEventListener("popstate",s))},O7=(t,e)=>{let{components:n}=t;if(e&&e.injectRouterInLinkComponent)return bt(n.Link||n["smbls.Link"],n.RouterLink||n["smbls.RouterLink"])};var BA={};F(BA,{components:()=>$A,functions:()=>Wr});var FA={};F(FA,{AlertTemplate:()=>zy,ConfirmTemplate:()=>Vy,CustomTemplate:()=>Wy,ModalLayer:()=>Uy,ModalRoot:()=>jy,PromptTemplate:()=>Hy,windowsComponents:()=>$A});var NA={};F(NA,{alertDialog:()=>Fy,closeAllModals:()=>Ny,closeModal:()=>Iy,confirmDialog:()=>$y,getLayer:()=>Dy,openModal:()=>My,promptDialog:()=>By,windowsFunctions:()=>Wr});function lt(t){let e=t;for(;e;){if(e.layer!==void 0)return e.layer;e=e.parent}return null}function Vc(t){let e=t;for(;e;){if(e.key==="ModalRoot")return e;if(e.ModalRoot&&e.ModalRoot.__ref)return e.ModalRoot;e=e.parent}let n=t?.getRoot?.();return n?.ModalRoot?n.ModalRoot:typeof globalThis<"u"&&globalThis.__SMBLS_WINDOWS_MODAL_ROOT__?.__ref?globalThis.__SMBLS_WINDOWS_MODAL_ROOT__:null}function Dy(){return lt(this)}var R7=(t,e)=>{let n=t&&t["ModalLayer_"+e],r=n?.node||n?.__ref?.node;!r||typeof r.style?.setProperty!="function"||(r.style.setProperty("display","none","important"),r.style.setProperty("opacity","0","important"),r.style.setProperty("visibility","hidden","important"),r.style.setProperty("pointer-events","none","important"))},rF=(t,e)=>{let n=t&&t["ModalLayer_"+e],r=n?.node||n?.__ref?.node;!r||typeof r.style?.removeProperty!="function"||(r.style.removeProperty("display"),r.style.removeProperty("opacity"),r.style.removeProperty("visibility"),r.style.removeProperty("pointer-events"))};function Iy(t){let e=Vc(this);if(!e)return;let n=e.state?.stack||[];if(!n.length)return;let r,o,s;if(t){if(s=[],r=n.filter((i,a)=>{let c=i.id!==t;return c||s.push(a),c}),r.length===n.length)return;o=n.filter(i=>i.id===t)}else r=n.slice(0,-1),o=n.slice(-1),s=[n.length-1];e.state.update({stack:r});for(let i of s)R7(e,i);for(let i of o)if(typeof i.onClose=="function")try{i.onClose()}catch(a){console.warn("[windows] onClose threw:",a)}}function My(t={}){let e=Vc(this);if(!e)return console.warn("[windows] openModal: ModalRoot is not mounted on the app root. Add `ModalRoot: {}` to your shell tree and import windowsComponents into context."),null;e.__modalIdCounter=(e.__modalIdCounter||0)+1;let n=t.id||`modal_${e.__modalIdCounter}_${Date.now().toString(36)}`,r={id:n,template:t.template||"custom",title:t.title,message:t.message,icon:t.icon,confirmText:t.confirmText,cancelText:t.cancelText,okText:t.okText,confirmTheme:t.confirmTheme,placeholder:t.placeholder,defaultValue:t.defaultValue,dismissOnBackdrop:t.dismissOnBackdrop,content:t.content,width:t.width,maxWidth:t.maxWidth,maxHeight:t.maxHeight,onConfirm:t.onConfirm,onCancel:t.onCancel,onOk:t.onOk,onClose:t.onClose},o=e.state?.stack||[];if(o.length>=5)return console.warn("[windows] openModal: stack already at the 5-layer maximum, dropping the new layer. Close some modals first."),null;let s=o.length;return rF(e,s),e.state.update({stack:[...o,r]}),n}function Ny(){let t=Vc(this);if(!t)return;let e=t.state?.stack;if(!e?.length)return;let n=e.slice();t.state.update({stack:[]});for(let r=n.length-1;r>=0;r--){let o=n[r];if(typeof o?.onClose=="function")try{o.onClose()}catch(s){console.warn("[windows] onClose threw:",s)}}}function $y(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"confirm"})}function Fy(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"alert"})}function By(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"prompt"})}var Wr={openModal:My,closeModal:Iy,closeAllModals:Ny,confirmDialog:$y,alertDialog:Fy,promptDialog:By,getLayer:Dy};var P7=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),oF=t=>{if(!t?.querySelectorAll)return[];let e=t.querySelectorAll(P7),n=[];for(let r=0;r<e.length;r++){let o=e[r];(o.offsetParent!==null||o===document.activeElement)&&n.push(o)}return n},sF=t=>{let e=t.state?.stack||[];if(!e.length)return null;let n=t["ModalLayer_"+(e.length-1)];return n?.node||n?.__ref?.node||null},jy={tag:"div",position:"fixed",inset:"0",zIndex:"2000",pointerEvents:"none",state:{stack:[]},subscribeTo:["stack"],ModalLayer_0:{__slotIndex:0,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[0]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_1:{__slotIndex:1,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[1]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_2:{__slotIndex:2,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[2]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_3:{__slotIndex:3,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[3]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_4:{__slotIndex:4,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[4]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},onInit:(t,e)=>{if(typeof window>"u")return;globalThis.__SMBLS_WINDOWS_MODAL_ROOT__=t;let n=t.context;if(n){n.functions||(n.functions={});for(let c in Wr)c in n.functions||(n.functions[c]=Wr[c])}t.__modalOpeners=t.__modalOpeners||[],t.__prevStackLen=t.state&&t.state.stack&&t.state.stack.length||0;let r=c=>{if(typeof c?.onCancel=="function")try{c.onCancel()}catch(l){console.warn("[windows] onCancel threw:",l)}if(typeof c?.onClose=="function")try{c.onClose()}catch(l){console.warn("[windows] onClose threw:",l)}},o=()=>{let c=t.state?.stack||[];if(!c.length)return;let l=c.length-1,f=c[l];t.state.update({stack:c.slice(0,-1)});let u=t["ModalLayer_"+l],d=u?.node||u?.__ref?.node;d?.style?.setProperty&&(d.style.setProperty("display","none","important"),d.style.setProperty("opacity","0","important"),d.style.setProperty("visibility","hidden","important"),d.style.setProperty("pointer-events","none","important")),r(f)},s=c=>{let l=t.state?.stack;if(l?.length){if(c.key==="Tab"){let f=sF(t);if(!f)return;let u=oF(f);if(!u.length){c.preventDefault();let m=f.querySelector?.('[role="dialog"]')||f;try{m.focus?.()}catch{}return}let d=u[0],p=u[u.length-1],g=document.activeElement;if(!f.contains(g)){c.preventDefault();try{d.focus()}catch{}return}if(c.shiftKey&&g===d){c.preventDefault();try{p.focus()}catch{}}else if(!c.shiftKey&&g===p){c.preventDefault();try{d.focus()}catch{}}return}c.key!=="Escape"||c.defaultPrevented||l[l.length-1]?.dismissOnBackdrop!==!1&&(c.preventDefault(),o())}};window.addEventListener("keydown",s),t.__escHandler=s;let i=c=>{let l=t.state?.stack||[];if(c<0||c>=l.length)return;let f=l[c];t.state.update({stack:l.filter((p,g)=>g!==c)});let u=t["ModalLayer_"+c],d=u?.node||u?.__ref?.node;d?.style?.setProperty&&(d.style.setProperty("display","none","important"),d.style.setProperty("opacity","0","important"),d.style.setProperty("visibility","hidden","important"),d.style.setProperty("pointer-events","none","important")),r(f)},a=c=>{let l=t.state?.stack||[];if(!l.length)return;let f=c.target?.closest?.('[data-key="Close"]');if(f){for(let u=l.length-1;u>=0;u--){let d=t["ModalLayer_"+u],p=d?.node||d?.__ref?.node;if(p&&p.contains(f)){c.preventDefault(),c.stopPropagation(),i(u);return}}return}for(let u=l.length-1;u>=0;u--){let d=t["ModalLayer_"+u];if((d?.node||d?.__ref?.node)===c.target){if(l[u]?.dismissOnBackdrop===!1)return;c.preventDefault(),c.stopPropagation(),i(u);return}}};document.addEventListener("click",a,!0),t.__clickDelegate=a},onUpdate:t=>{if(typeof window>"u")return;let n=(t.state&&t.state.stack||[]).length,r=t.__prevStackLen||0;if(n!==r)if(t.__prevStackLen=n,t.__modalOpeners=t.__modalOpeners||[],n>r)t.__modalOpeners[n]=document.activeElement&&document.activeElement!==document.body?document.activeElement:t.__modalOpeners[n]||null,typeof requestAnimationFrame=="function"&&requestAnimationFrame(()=>{let o=sF(t);if(!o)return;let i=oF(o)[0]||o.querySelector&&o.querySelector('[role="dialog"]')||o;try{i.focus&&i.focus()}catch{}});else{let o=null;for(let s=r;s>n;s--)t.__modalOpeners[s]&&(o=o||t.__modalOpeners[s]),t.__modalOpeners[s]=null;if(o&&typeof o.focus=="function"&&o.isConnected!==!1)try{o.focus()}catch{}}},onDestroy:t=>{typeof window>"u"||(globalThis.__SMBLS_WINDOWS_MODAL_ROOT__===t&&(globalThis.__SMBLS_WINDOWS_MODAL_ROOT__=null),t.__escHandler&&(window.removeEventListener("keydown",t.__escHandler),delete t.__escHandler),t.__clickDelegate&&(document.removeEventListener("click",t.__clickDelegate,!0),delete t.__clickDelegate))}};var Uy={tag:"div",position:"fixed",inset:"0",alignItems:"center",justifyContent:"center",padding:"A",theme:"backdrop",transition:"opacity C defaultBezier",zIndex:(t,e)=>`${2e3+(t.__slotIndex||0)*10}`,display:(t,e)=>t.layer?"flex":"none",opacity:(t,e)=>t.layer?"1":"0",visibility:(t,e)=>t.layer?"visible":"hidden",pointerEvents:(t,e)=>t.layer?"auto":"none",ModalWindow:{attr:{role:"dialog","aria-modal":"true",tabindex:"-1","aria-labelledby":t=>{let e=lt(t)?.id;return e?"modal-title-"+e:null}},width:t=>lt(t)?.width||"H",maxWidth:t=>lt(t)?.maxWidth||"90vw",flow:"y",maxHeight:t=>lt(t)?.maxHeight||"100%",animation:"modalIn",animationDuration:"D",animationTimingFunction:"springBezier",onClick:t=>t.stopPropagation(),onMousedown:t=>t.stopPropagation(),ModalHeader:{display:"none"},overflow:"visible",ConfirmTemplate:{hide:t=>lt(t)?.template!=="confirm"},AlertTemplate:{hide:t=>lt(t)?.template!=="alert"},PromptTemplate:{hide:t=>lt(t)?.template!=="prompt"},CustomTemplate:{hide:t=>lt(t)?.template!=="custom"}}};var zc=(t,e,n)=>lt(t)?.[e]||n,L7=t=>{let e=lt(t)?.icon;return e===null||e===!1},Vy={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",ModalHeader:{Hgroup:{H:{text:t=>zc(t,"title","Are you sure?"),attr:{id:t=>{let e=lt(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}},Icons:{hide:t=>L7(t),Indicator:{extends:"Icon",opacity:".7",icon:t=>zc(t,"icon","warning")}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",P:{tag:"p",margin:"0",text:t=>zc(t,"message","This action cannot be undone."),color:"dim"}},ModalFooter:{flow:"x",gap:"Z1",align:"center end",flexShrink:"0",CancelBtn:{extends:"CancelButton",text:t=>zc(t,"cancelText","Cancel"),onClick:(t,e,n)=>{let r=lt(e);if(r?.onCancel)try{r.onCancel()}catch(o){console.warn("[windows] confirm.onCancel threw:",o)}e.call("closeModal",r?.id)}},ConfirmBtn:{extends:"Button",theme:t=>zc(t,"confirmTheme","primary"),text:t=>zc(t,"confirmText","Confirm"),onClick:(t,e,n)=>{let r=lt(e);if(r?.onConfirm)try{r.onConfirm()}catch(o){console.warn("[windows] confirm.onConfirm threw:",o)}e.call("closeModal",r?.id)}}}};var jd=(t,e,n)=>lt(t)?.[e]||n,zy={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",ModalHeader:{Hgroup:{H:{text:t=>jd(t,"title","Notice"),attr:{id:t=>{let e=lt(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}},Icons:{Indicator:{extends:"Icon",opacity:".7",icon:t=>jd(t,"icon","info")}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",hide:t=>!jd(t,"message",""),P:{tag:"p",margin:"0",text:t=>jd(t,"message",""),color:"dim"}},ModalFooter:{flow:"x",align:"center end",flexShrink:"0",OkBtn:{extends:"Button",theme:"primary",text:t=>jd(t,"okText","OK"),onClick:(t,e,n)=>{let r=lt(e);if(r?.onOk)try{r.onOk()}catch(o){console.warn("[windows] alert.onOk threw:",o)}e.call("closeModal",r?.id)}}}};var Hc=(t,e,n)=>lt(t)?.[e]||n,Hy={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",scope:{value:""},onRender:(t,e)=>{let n=lt(t);if(!n||t.scope._seededLayerId===n.id)return;t.scope._seededLayerId=n.id,t.scope.value=n.defaultValue||"";let r=t.InputRow&&t.InputRow.node;r&&(r.value=t.scope.value)},onUpdate:(t,e)=>{let n=lt(t);if(!n||t.scope._seededLayerId===n.id)return;t.scope._seededLayerId=n.id,t.scope.value=n.defaultValue||"";let r=t.InputRow&&t.InputRow.node;r&&(r.value=t.scope.value)},ModalHeader:{Hgroup:{H:{text:t=>Hc(t,"title","Enter a value"),attr:{id:t=>{let e=lt(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",hide:t=>!Hc(t,"message",""),P:{tag:"p",margin:"0",text:t=>Hc(t,"message",""),color:"dim"}},InputRow:{extends:"Input",flexShrink:"0",autofocus:!0,placeholder:t=>Hc(t,"placeholder",""),value:(t,e)=>t.parent.scope?.value||"",onInput:(t,e,n)=>{e.parent.scope.value=t.target.value},onKeydown:(t,e,n)=>{if(t.key!=="Enter")return;t.preventDefault();let r=lt(e),o=e.parent.scope?.value||"";if(r?.onConfirm)try{r.onConfirm(o)}catch(s){console.warn("[windows] prompt.onConfirm threw:",s)}e.call("closeModal",r?.id)}},ModalFooter:{flow:"x",gap:"Z1",align:"center end",flexShrink:"0",CancelBtn:{extends:"CancelButton",text:t=>Hc(t,"cancelText","Cancel"),onClick:(t,e,n)=>{let r=lt(e);if(r?.onCancel)try{r.onCancel()}catch(o){console.warn("[windows] prompt.onCancel threw:",o)}e.call("closeModal",r?.id)}},ConfirmBtn:{extends:"Button",theme:"primary",text:t=>Hc(t,"confirmText","OK"),onClick:(t,e,n)=>{let r=lt(e),o=e.parent.parent.scope?.value||"";if(r?.onConfirm)try{r.onConfirm(o)}catch(s){console.warn("[windows] prompt.onConfirm threw:",s)}e.call("closeModal",r?.id)}}}};var Wy={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",Title:{tag:"h2",text:t=>lt(t)?.title||"",hide:t=>!lt(t)?.title,position:"absolute",width:"1px",height:"1px",margin:"-1px",padding:"0",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0",attr:{id:t=>{let e=lt(t)?.id;return e?"modal-title-"+e:null}}},Slot:{tag:"div",flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",onInit:t=>{let e=K(()=>{let n=lt(t),r=n?.content||null,o=n?.id||null;if(!r){t.__lastLayerId!=null&&(t.removeContent(),t.__lastLayerId=null);return}if(t.__lastLayerId!==o){t.__lastLayerId=o;try{t.set(r);let s=t.content?.context;if(s){s.functions||(s.functions={});for(let i in Wr)i in s.functions||(s.functions[i]=Wr[i])}}catch(s){console.warn("[windows] custom.content set failed:",s)}}});t.__ref&&t.__ref.__effects.push(e)}}};var iF={extends:"Button",theme:"tertiary"};var $A={ModalRoot:jy,ModalLayer:Uy,ConfirmTemplate:Vy,AlertTemplate:zy,PromptTemplate:Hy,CustomTemplate:Wy,"smbls.CancelButton":iF};var GA={};F(GA,{components:()=>HA,functions:()=>KA});var WA={};F(WA,{Dropdown:()=>Zy,DropdownList:()=>Jy,DropdownParent:()=>Qy,DropdownParentFocus:()=>tb,DropdownRoot:()=>Yy,DropdownSiblingFocus:()=>eb,DropdownTrigger:()=>Xy,dropdownComponents:()=>HA});var aF=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),D7=(t,e,n,r)=>{let o=aF(t,n,r),s=i=>o[i]>=e.height+8;return s("bottom")?"bottom":s("top")?"top":o.bottom>=o.top?"bottom":"top"},I7=(t,e,n,r,o)=>{let s=aF(e,r,o),i=t==="top"||t==="bottom"?n.height+8:n.width+8;if(s[t]>=i)return t;let a={top:"bottom",bottom:"top",left:"right",right:"left"}[t];return a&&s[a]>=i||a&&s[a]>s[t]?a:t};var jA=(t,e,n)=>{let r;return t==="bottom"?r=n-e.bottom-16:t==="top"?r=e.top-16:r=n-16,Math.max(40,Math.floor(r))},Ky=(t,e,n)=>Math.max(e,Math.min(n,t)),Kr=(t,e,n="auto")=>{if(!t){let g=typeof window<"u"?window.innerHeight:768;return{left:0,top:0,side:"bottom",align:"start",maxHeight:jA("center",null,g)}}let r=typeof window<"u"?window.innerWidth:1024,o=typeof window<"u"?window.innerHeight:768,s={width:Math.max(120,e?.width||0),height:Math.max(40,e?.height||0)};if(n==="center"){let g=jA("center",t,o),h=Math.min(s.height,g),m=Ky((r-s.width)/2,8,Math.max(8,r-s.width-8)),y=Ky((o-h)/2,8,Math.max(8,o-h-8));return{left:m,top:y,side:"center",align:"center",maxHeight:g}}let i,a;if(n==="auto")i=D7(t,s,r,o),a="start";else{let g=n.split("-");i=g[0],a=g[1]||"start",i=I7(i,t,s,r,o)}let c=jA(i,t,o),l=Math.min(s.height,c),f,u;i==="bottom"||i==="top"?(a==="start"?f=t.left:a==="end"?f=t.right-s.width:f=t.left+(t.width-s.width)/2,u=i==="bottom"?t.bottom+8:t.top-l-8):(a==="start"?u=t.top:a==="end"?u=t.bottom-l:u=t.top+(t.height-l)/2,f=i==="right"?t.right+8:t.left-s.width-8);let d=Math.max(8,r-s.width-8),p=Math.max(8,o-l-8);return f=Ky(f,8,d),u=Ky(u,8,p),{left:f,top:u,side:i,align:a,maxHeight:c}},Wc=t=>{switch(t){case"bottom":return"translateY(-6px)";case"top":return"translateY(6px)";case"left":return"translateX(6px)";case"right":return"translateX(-6px)";case"center":return"translateY(0px)";default:return"translateY(-6px)"}};var Wo={placement:"auto",trigger:"click",offset:8,minWidth:"180px",maxWidth:"90vw",maxHeight:null},M7=t=>{if(!t||typeof t.getBoundingClientRect!="function")return null;let e=t.getBoundingClientRect();return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},UA=t=>t?.getRoot?.()?.DropdownRoot||null,N7=0,$7=()=>`dropdown_${++N7}_${Date.now().toString(36)}`;function qy(t={}){let e=UA(this);if(!e)return console.warn("[dropdown] openDropdown: DropdownRoot is not mounted on the app root. Add `DropdownRoot: {}` to your shell tree and import dropdown components into context."),null;let n=t.anchorEl?.node||t.anchorEl,r=t.anchorRect||M7(n);if(!r)return console.warn("[dropdown] openDropdown: no anchor element/rect provided \u2014 pass anchorEl or anchorRect."),null;let o=t.id||$7(),i=t.restoreEl?.node||t.restoreEl||n||(typeof document<"u"?document.activeElement:null),a={id:o,content:t.content||null,anchor:r,placement:t.placement||Wo.placement,trigger:t.trigger||Wo.trigger,offset:t.offset??Wo.offset,minWidth:t.minWidth||Wo.minWidth,maxWidth:t.maxWidth||Wo.maxWidth,maxHeight:t.maxHeight||Wo.maxHeight,theme:t.theme||null,shadow:t.shadow||null,background:t.background||null,round:t.round||null,role:t.role||null,ariaLabel:t.ariaLabel||null,ariaLabelledby:t.ariaLabelledby||null,focusIn:!!t.focusIn,onOpen:t.onOpen,onClose:t.onClose,restoreEl:i},c=e.state?.layer;if(c?.onClose)try{c.onClose(c)}catch(l){console.warn("[dropdown] prev onClose threw:",l)}if(e.state.update({layer:a}),typeof a.onOpen=="function")try{a.onOpen(a)}catch(l){console.warn("[dropdown] onOpen threw:",l)}return o}function Gy(t){let e=UA(this);if(!e)return;let n=e.state?.layer;n&&e.state.update({layer:{...n,inert:!!t}})}function Si(t){let e=UA(this);if(!e)return;let n=e.state?.layer;if(!n)return;let r=typeof t=="string"?t:t?.id;if(r&&n.id&&r!==n.id)return;let o=n.onClose,s=n.restoreEl,i=typeof document<"u"?document:null,a=i?i.activeElement:null,c=e.node?.querySelector?.('[data-smbls-dropdown="panel"]'),l=!a||a===i?.body,f=!!(c&&a&&c.contains(a)),u=l||f;if(e.state.update({layer:null}),u&&s&&typeof s.focus=="function")try{s.focus()}catch(d){console.warn("[dropdown] focus restore threw:",d)}if(typeof o=="function")try{o(n)}catch(d){console.warn("[dropdown] onClose threw:",d)}}var VA=(t,e)=>{let n=`${e.maxHeight}px`;return t?.maxHeight?`min(${t.maxHeight}, ${n})`:n},cF=t=>{let e=t.getBoundingClientRect(),n=t.offsetWidth||e.width,r=Math.max(t.offsetHeight||e.height,t.scrollHeight||0);return{width:n,height:r}},F7=`
88
+ )`};var I8={primary:{"@dark":{color:"white",background:"blue",".color-only":{color:"blue"},".inactive":{background:"gray+16"},".gradient":{color:"white",background:"gradient-blue"}},"@light":{color:"white",background:"gradient-blue",".color-only":{color:"blue"},".gradient":{color:"white",background:"gradient-colorful"}}},secondary:{"@dark":{color:"white",background:"green",".color-only":{color:"green"}},"@light":{color:"white",background:"green",".color-only":{color:"green"}},".child":"--primary"},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light",":hover":{color:"gray=95",background:"gradient-light-active"},":focus":{color:"gray=120",background:"gradient-light-active"},":active":{color:"gray=120",background:"gradient-light-active"},".active":{color:"gray=120",background:"gradient-light-active"}},"@light":{color:"gray3",background:"gradient-dark",":hover":{color:"gray1",background:"gradient-dark-active"},":active":{color:"gray1",background:"gradient-dark-active"},".active":{color:"gray1",background:"gradient-dark-active"}}}},M8={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},N8={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"},".light":{color:"white",background:"gray3"},".dark":{color:"white",background:"black.35"}},card:{"@light":{background:"gray.975+150"},"@dark":{color:"white",background:"gray.975-56"},".child":{color:"white",background:"gray3"},".secondary":{color:"white",background:"gradient-blue-dark",".child":{color:"white",background:"black.35"}}},dialog:{"@dark":{color:"white",background:"gray.92",".helper":{color:"white",background:"black"}},"@light":{color:"currentColor",background:"gray.1"}}},IM={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...I8,...M8,...N8,backdrop:{"@light":{background:"scrim",backdropFilter:"blur(8px)"},"@dark":{background:"scrim",backdropFilter:"blur(8px)"}},backdropSoft:{"@light":{background:"scrimSoft",backdropFilter:"blur(4px)"},"@dark":{background:"scrimSoft",backdropFilter:"blur(4px)"}},none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var MM={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var NM={ratio:1.618,subSequence:!0};var $M={SourceSans:[{url:""}]},FM={system:{isDefault:!0,isSystemFallback:!0,value:["system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"','"Liberation Sans"'],type:"sans-serif"}};var BM={symbols:'<svg xmlns="http://www.w3.org/2000/svg" width="41" height="42" viewBox="0 0 41 42"><path fill="currentColor" fill-rule="evenodd" d="M26.6448969,0.699064106 C31.4862479,1.83000067 35.6718819,4.48073656 38.3104478,8.91022511 C40.5212645,12.5974948 41.4936378,17.0951724 40.5085112,21.3679841 C39.7174644,25.0315254 37.8558379,27.853625 34.8002871,29.8369535 C31.9792925,31.7073227 27.90737,32.069064 24.6776501,31.3213124 C23.2887047,30.9944607 20.6411869,29.9775216 19.044333,28.0178349 C17.5928447,26.2365433 17.1250067,23.5192397 17.0461096,22.8419583 C16.9044422,21.6258334 17.1065683,20.249997 17.3800113,19.0276209 C17.9614095,16.4655592 18.9984397,14.7924534 21.1401118,13.3818866 C22.95018,12.1750388 24.6834696,11.8738651 26.7601335,12.3496124 C28.1855093,12.6880929 29.4520072,13.526716 30.3514025,14.7276098 C30.6271426,15.093878 30.8260324,15.4389318 31.059655,15.8362933 L30.9598079,15.7715366 C29.6377659,14.9422902 28.1654404,14.6590001 26.6448969,15.0752526 C25.2996601,15.4486698 24.1453463,16.3687006 23.4390969,17.6304467 C22.6973258,18.9448239 22.4839364,20.5087166 22.8465467,21.9733145 C23.2152637,23.4394215 24.1276197,24.6832715 25.381967,25.429977 C26.7647836,26.2608222 28.5893081,26.47537 30.1320438,26.0161118 C32.0344739,25.4497656 33.5958796,24.1165457 34.5824098,22.3233381 C35.8078311,20.0959926 36.0316242,17.5753145 35.4197363,15.1376991 C34.8712232,12.9726344 33.491011,11.1258939 31.7578503,9.86101942 C28.3978494,7.40873928 23.8145474,6.88014849 19.8961329,8.1555193 C16.9596954,9.11146975 14.399202,11.0657028 12.6221782,13.707146 C10.5375814,16.8894059 9.73736372,20.794518 10.3986926,24.5579956 C10.9302311,27.7327705 12.5716868,31.0242929 14.8485647,33.1339502 C15.5517576,33.7855358 16.0056239,34.2996296 16.8186608,34.9238068 C16.1252729,35.6670587 15.729719,36.1210912 15.0276006,36.8553491 L10.5425168,41.6144377 C8.59431563,40.2572487 6.84060794,38.6181461 5.33246714,36.7448351 C1.65619854,32.1632109 -0.0655234106,26.1858125 0.562658817,20.1851649 C1.1000136,14.4158268 3.81414269,9.08050481 8.0996615,5.36924966 C12.3107417,1.69300072 17.6911238,0.0107792851 23.1108097,0.299129816 C25.006381,0.458182488 26.18441,0.591493918 26.6448969,0.699064106 Z"/></svg>',logo:'<svg xmlns="http://www.w3.org/2000/svg" width="41" height="42" viewBox="0 0 41 42"><path fill="currentColor" fill-rule="evenodd" d="M26.6448969,0.699064106 C31.4862479,1.83000067 35.6718819,4.48073656 38.3104478,8.91022511 C40.5212645,12.5974948 41.4936378,17.0951724 40.5085112,21.3679841 C39.7174644,25.0315254 37.8558379,27.853625 34.8002871,29.8369535 C31.9792925,31.7073227 27.90737,32.069064 24.6776501,31.3213124 C23.2887047,30.9944607 20.6411869,29.9775216 19.044333,28.0178349 C17.5928447,26.2365433 17.1250067,23.5192397 17.0461096,22.8419583 C16.9044422,21.6258334 17.1065683,20.249997 17.3800113,19.0276209 C17.9614095,16.4655592 18.9984397,14.7924534 21.1401118,13.3818866 C22.95018,12.1750388 24.6834696,11.8738651 26.7601335,12.3496124 C28.1855093,12.6880929 29.4520072,13.526716 30.3514025,14.7276098 C30.6271426,15.093878 30.8260324,15.4389318 31.059655,15.8362933 L30.9598079,15.7715366 C29.6377659,14.9422902 28.1654404,14.6590001 26.6448969,15.0752526 C25.2996601,15.4486698 24.1453463,16.3687006 23.4390969,17.6304467 C22.6973258,18.9448239 22.4839364,20.5087166 22.8465467,21.9733145 C23.2152637,23.4394215 24.1276197,24.6832715 25.381967,25.429977 C26.7647836,26.2608222 28.5893081,26.47537 30.1320438,26.0161118 C32.0344739,25.4497656 33.5958796,24.1165457 34.5824098,22.3233381 C35.8078311,20.0959926 36.0316242,17.5753145 35.4197363,15.1376991 C34.8712232,12.9726344 33.491011,11.1258939 31.7578503,9.86101942 C28.3978494,7.40873928 23.8145474,6.88014849 19.8961329,8.1555193 C16.9596954,9.11146975 14.399202,11.0657028 12.6221782,13.707146 C10.5375814,16.8894059 9.73736372,20.794518 10.3986926,24.5579956 C10.9302311,27.7327705 12.5716868,31.0242929 14.8485647,33.1339502 C15.5517576,33.7855358 16.0056239,34.2996296 16.8186608,34.9238068 C16.1252729,35.6670587 15.729719,36.1210912 15.0276006,36.8553491 L10.5425168,41.6144377 C8.59431563,40.2572487 6.84060794,38.6181461 5.33246714,36.7448351 C1.65619854,32.1632109 -0.0655234106,26.1858125 0.562658817,20.1851649 C1.1000136,14.4158268 3.81414269,9.08050481 8.0996615,5.36924966 C12.3107417,1.69300072 17.6911238,0.0107792851 23.1108097,0.299129816 C25.006381,0.458182488 26.18441,0.591493918 26.6448969,0.699064106 Z"/></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 jM={tv:"(min-width: 2780px)",screenL:"(max-width: 1920px)","screenL<":"(min-width: 1920.02px)",screenM:"(max-width: 1680px)","screenM<":"(min-width: 1680.02px)",screenS:"(max-width: 1440px)","screenS<":"(min-width: 1440.02px)",tabletL:"(max-width: 1366px)","tabletL<":"(min-width: 1366.02px)",tabletM:"(max-width: 1280px)","tabletM<":"(min-width: 1280.02px)",tabletS:"(max-width: 1024px)","tabletS<":"(min-width: 1024.02px)",mobileL:"(max-width: 768px)","mobileL<":"(min-width: 768.02px)",mobileM:"(max-width: 560px)","mobileM<":"(min-width: 560.02px)",mobileS:"(max-width: 480px)","mobileS<":"(min-width: 480.02px)",mobileXS:"(max-width: 375px)","mobileXS<":"(min-width: 375.02px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var UM={base:150,ratio:1.333,unit:"ms",subSequence:!0,defaultBezier:"cubic-bezier(.29, .67, .51, .97)",springBezier:"cubic-bezier(.32, .72, 0, 1)"};var VM={radiusControl:"12px",radiusCard:"17px",radiusSheet:"24px",radiusPill:"999px",controlH:"44px",controlHCompact:"36px"};var gi={version:"0.0.1",color:LM,gradient:DM,theme:IM,typography:MM,spacing:NM,font:$M,fontFamily:FM,timing:UM,icons:BM,media:jM,sizes:VM,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}},modalIn:{from:{transform:"scale(0.95)",opacity:0},to:{transform:"",opacity:1}},modalOut:{to:{transform:"scale(0.95)",opacity:0}}},devices:{},class:{},svg:{},grid:{},shape:{}};var Wc={};B(Wc,{A:()=>n2,AssetPicture:()=>iN,Audio:()=>lN,Avatar:()=>T2,B:()=>CN,Block:()=>zM,Box:()=>fy,Br:()=>LN,Bridge:()=>jN,Button:()=>s2,ButtonSet:()=>l2,COMPONENTS:()=>Ei,Caption:()=>_N,Checkbox:()=>zN,CheckboxHgroup:()=>HN,Circle:()=>rN,CircleButton:()=>a2,Clickable:()=>tN,Data:()=>RN,Dialog:()=>g2,DialogFooter:()=>y2,DialogHeader:()=>m2,Dropdown:()=>tF,DropdownDisclosure:()=>rF,DropdownList:()=>eF,DropdownParent:()=>nF,DropdownParentFocus:()=>oF,DropdownSiblingFocus:()=>sF,FileIcon:()=>a$,Flex:()=>WM,Focusable:()=>eN,FocusableComponent:()=>nN,Footnote:()=>TN,Form:()=>ZM,Grid:()=>qM,Gutter:()=>YM,H1:()=>dN,H2:()=>pN,H3:()=>hN,H4:()=>gN,H5:()=>mN,H6:()=>yN,Headline:()=>vN,Hgroup:()=>$N,HgroupButton:()=>BN,HgroupRows:()=>FN,Hoverable:()=>QM,Hr:()=>PN,I:()=>ON,Icon:()=>s$,IconButton:()=>f2,IconText:()=>i$,Iframe:()=>JM,Img:()=>XM,Inline:()=>HM,InlineFlex:()=>KM,InlineGrid:()=>GM,Input:()=>UN,Italic:()=>kN,KangorooButton:()=>c2,Li:()=>DN,Link:()=>fA,Notification:()=>iF,NumberInput:()=>VN,Ol:()=>MN,P:()=>bN,Picture:()=>sN,Radio:()=>WN,RadioHgroup:()=>KN,Range:()=>C2,RouteLink:()=>r2,RouterLink:()=>uA,SHAPES:()=>cy,Select:()=>o2,Shape:()=>wv,Span:()=>uN,SquareButton:()=>i2,Strong:()=>wN,Subhead:()=>AN,Svg:()=>aN,Text:()=>fN,Textarea:()=>YN,TextareaWithButton:()=>XN,Theme:()=>oN,Title:()=>EN,Toggle:()=>qN,ToggleHgroup:()=>GN,Tooltip:()=>E2,TooltipHidden:()=>v2,TooltipLayer:()=>SA,TooltipParent:()=>A2,U:()=>SN,Ul:()=>IN,Underline:()=>xN,Video:()=>cN,depth:()=>ly,focusableRingEnabled:()=>Rd,focusableRingToken:()=>bv,focusableRingValue:()=>mi,getSystemGlobalTheme:()=>Pd});var hv={};B(hv,{Block:()=>zM,Flex:()=>WM,Grid:()=>qM,Gutter:()=>YM,Inline:()=>HM,InlineFlex:()=>KM,InlineGrid:()=>GM});var zM={display:"block"},HM={display:"inline"},WM={display:"flex"},KM={display:"inline-flex"},qM={display:"grid"},GM={display:"inline-grid"},YM={boxSize:"C1"};var gv={};B(gv,{Img:()=>XM});M();var XM={tag:"img",attr:{title:t=>t.title,alt:t=>t.alt!=null?t.alt:t.title||"",src:t=>{let e=Se(t);return e&&e.src||t.src},srcset:t=>{let e=Se(t);return(e?eu(e):"")||t.srcset||t.srcSet}}};var mv={};B(mv,{Form:()=>ZM});var ZM={tag:"form"};var yv={};B(yv,{Iframe:()=>JM});var JM={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var _v={};B(_v,{Clickable:()=>tN,Focusable:()=>eN,FocusableComponent:()=>nN,Hoverable:()=>QM,focusableRingEnabled:()=>Rd,focusableRingToken:()=>bv,focusableRingValue:()=>mi});var $8={appearance:"none",fontFamily:"inherit"},QM={transition:"opacity C defaultBezier, transform C defaultBezier",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}}},tN={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}};function Rd(t){let e=t.context&&t.context.designSystem;return!e||e.focusableRing!==!1}function bv(t){let e=t.context&&t.context.designSystem,n=e&&e.focusableRing;if(typeof n=="string")return n?{outline:n,outlineOffset:void 0}:null;if(!n||typeof n!="object"||Array.isArray(n))return null;let r=n.outline||void 0,o=n.outlineOffset!=null&&n.outlineOffset!==""?n.outlineOffset:void 0;return r||o!==void 0?{outline:r,outlineOffset:o}:null}function mi(t,e,n){let r=bv(t);return r&&r[e]!==void 0?r[e]:n}var eN={border:"none",outline:t=>Rd(t)?"solid 0 currentColor":"none",":focus-visible":{opacity:1,outline:t=>Rd(t)?mi(t,"outline","solid X currentColor"):"none",outlineOffset:t=>Rd(t)?mi(t,"outlineOffset"):void 0}},nN={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",cursor:"pointer",":disabled":{cursor:"not-allowed"},style:$8};var kv={};B(kv,{Picture:()=>sN});var xv={};B(xv,{Theme:()=>oN,getSystemGlobalTheme:()=>Pd});var Sv={};B(Sv,{Circle:()=>rN,SHAPES:()=>cy,Shape:()=>wv,default:()=>F8,depth:()=>ly});M();var _n=P(),ly={4:{boxShadow:`rgba(0,0,0,.10) 0 2${_n.unit.default} 4${_n.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${_n.unit.default} 6${_n.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${_n.unit.default} 10${_n.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${_n.unit.default} 16${_n.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${_n.unit.default} 26${_n.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${_n.unit.default} 42${_n.unit.default}`}},Fc=t=>dt(t.shapeDirectionColor)||dt(t.borderColor)||dt(t.backgroundColor)||dt(t.background),ay=t=>{let e=od.transition(t.transition,t);return e&&e.transition},cy={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:t=>({position:t.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Fc(t),transition:ay(t),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:t=>({position:"relative","&:before":{content:'""',display:"block",background:Fc(t),transition:ay(t),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:t=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:Fc(t),transition:ay(t),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:t=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:ay(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Fc(t)} 25%, transparent 25%), linear-gradient(315deg, ${Fc(t)} 25%, transparent 25%)`},"&:after":{background:Fc(t),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},wv={deps:{exec:St,getSpacingBasedOnRatio:Ve,getMediaColor:Gt},classlist:{shape:t=>t.deps.exec(cy[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=cy[t.shape+"Direction"];return t.shape&&e?e[t.shapeDirection||"left"]:null},shapeDirectionColor:t=>{let e={borderColor:t.deps.getMediaColor(t.background||t.backgroundColor)};return t.shapeDirection?e:null}}},rN={round:"100%"},F8=wv;M();var Pd=({context:t,state:e})=>{let n=e&&e.root,r=n&&n.globalTheme||t.designSystem&&t.designSystem.globalTheme;return r==="auto"?null:r},oN={deps:{depth:ly},classlist:{depth:t=>!Zt(t.depth)&&t.deps.depth[t.depth]}};var sN={deps:{getSystemGlobalTheme:Pd},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Pd},tag:"source",attr:{media:t=>{let{key:e,context:n,deps:r}=t,{media:o}=n.designSystem,s=r.getSystemGlobalTheme(t),i=(t.media||e).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":o[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(t,e)=>t.parent?.src||e.src}};var Ev={};B(Ev,{AssetPicture:()=>iN});M();var iN={tag:"picture",children:t=>{let e=Se(t);if(e)return nu(e,t.alt)}};var vv={};B(vv,{Svg:()=>aN});var aN={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:t=>{let{context:e}=t;if(t.semanticIcons)return;if(t.html&&typeof t.html!="function")return t.call("exec",t.html,t);let{designSystem:n,utils:r}=e,o=n&&n.svg,s=t.spriteId||n&&n.useSvgSprite,i=t.call("exec",t.src,t),a=d=>`<use xlink:href="#${d}" />`;if(typeof i=="string"){let d=i.match(/^\s*<symbol\b[^>]*\bid="([^"]+)"/);if(d){let p=d[1],g=e.document||(typeof document<"u"?document:null);if(!(g&&typeof g.getElementById=="function"&&g.getElementById(p))){let m=r&&r.scratchSystem&&r.scratchSystem.appendSVGSprite;n&&!n.__svgCache&&(n.__svgCache={}),typeof m=="function"?m({[p]:i},{document:g}):r&&typeof r.init=="function"&&r.init({svg:{[p]:i}},{document:g,emotion:e.emotion})}return a(p)}}if(!s&&i)return i;let c=t.spriteId;if(c)return a(c);if(o&&o[i])return a(i);let l=Symbol.for(i),f=o[l];if(f&&o[f])return a(f);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let u=0;for(let d=0;d<i.length;d++)u=(u<<5)-u+i.charCodeAt(d)|0;return f=o[l]=`svg-${(u>>>0).toString(36)}`,r.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var Av={};B(Av,{Video:()=>cN});M();var cN={tag:"video",controls:!0,attr:{src:t=>{let e=Se(t);return e&&e.src||t.src}},children:t=>{let e=Se(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(n=>({tag:"source",attr:{src:n.src,type:n.format}}))},childExtends:{tag:"source"}};var Tv={};B(Tv,{Audio:()=>lN});M();var lN={tag:"audio",controls:!0,attr:{src:t=>{let e=Se(t);return e&&e.src||t.src}},children:t=>{let e=Se(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(n=>({tag:"source",attr:{src:n.src,type:n.format}}))},childExtends:{tag:"source"}};var Cv={};B(Cv,{B:()=>CN,Caption:()=>_N,Data:()=>RN,Footnote:()=>TN,H1:()=>dN,H2:()=>pN,H3:()=>hN,H4:()=>gN,H5:()=>mN,H6:()=>yN,Headline:()=>vN,I:()=>ON,Italic:()=>kN,P:()=>bN,Span:()=>uN,Strong:()=>wN,Subhead:()=>AN,Text:()=>fN,Title:()=>EN,U:()=>SN,Underline:()=>xN});var fN={},uN={tag:"span"},dN={tag:"h1"},pN={tag:"h2"},hN={tag:"h3"},gN={tag:"h4"},mN={tag:"h5"},yN={tag:"h6"},bN={tag:"p"},_N={tag:"caption"},wN={tag:"strong",fontWeight:"700"},SN={tag:"u"},xN={tag:"u"},kN={tag:"i"},EN={},vN={tag:"h6",fontSize:"B",fontWeight:500},AN={tag:"span",fontSize:"Z1"},TN={tag:"span",fontSize:"Z"},CN={tag:"b"},ON={tag:"i"},RN={tag:"data"};var Ov={};B(Ov,{Box:()=>fy,Br:()=>LN,Hr:()=>PN,Li:()=>DN,Ol:()=>MN,Ul:()=>IN});var B8=t=>{if(!t.context)return;let{props:e,__ref:n}=t,r=ne(e,t,{unpack:!1});n.__class=r},fy={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:B8},PN={tag:"hr",margin:"C1 0"},LN={tag:"br"},DN={tag:"li"},IN={tag:"ul",childExtends:{extends:"Li"}},MN={tag:"ol",childExtends:{extends:"Li"}};var Rv={};B(Rv,{Hgroup:()=>$N,HgroupButton:()=>BN,HgroupRows:()=>FN});var NN=t=>{if(t.text!=null||t.html!=null)return!0;for(let e in t){let n=e.charCodeAt(0);if(n>=65&&n<=90)return!0}return!1},$N={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:NN,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:NN,margin:"0",color:"paragraph"}},FN={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},BN={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Pv={};B(Pv,{Bridge:()=>jN});var jN={tag:"div"};var Lv={};B(Lv,{Input:()=>UN});var UN={extends:["Focusable"],tag:"input",border:"none",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:t=>t.pattern,name:t=>t.name,placeholder:t=>t.placeholder,value:t=>{if(!t.value)return;let e=t.call("exec",t.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e},checked:t=>t.call("exec",t.checked,t),disabled:t=>t.disabled||null,required:t=>t.required,type:t=>t.type}};var Dv={};B(Dv,{NumberInput:()=>VN});var VN={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"1px solid line",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:t=>t.step,min:t=>t.min,max:t=>t.max}};var Iv={};B(Iv,{Checkbox:()=>zN,CheckboxHgroup:()=>HN});var zN={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",position:"absolute",opacity:"0",width:"1px",height:"1px",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},":focus-visible + div":{outline:t=>mi(t,"outline","solid X currentColor"),outlineOffset:t=>mi(t,"outlineOffset","Z")},attr:{checked:t=>t.call("exec",t.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},HN={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Mv={};B(Mv,{Radio:()=>WN,RadioHgroup:()=>KN});var WN={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}},KN={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Nv={};B(Nv,{Toggle:()=>qN,ToggleHgroup:()=>GN});var qN={extends:"Checkbox",Input:{role:"switch",":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},GN={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var $v={};B($v,{Textarea:()=>YN,TextareaWithButton:()=>XN});var YN={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},XN={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 jv={};B(jv,{FileIcon:()=>a$,Icon:()=>s$,IconText:()=>i$});Mt();var ZN=new Set,j8=t=>t==="icon"?"build.treeShakeIcons":"build.treeShakeComponents",JN=(t,e,n)=>{let r=t+":"+e;if(ZN.has(r)||(ZN.add(r),typeof console>"u"||!console.error))return;let o=n&&n.__ref&&n.__ref.path,s=o&&o.length?` (at <${o.join(".")}>)`:"",i=j8(t);console.error(`[smbls] ${t==="icon"?"Icon":"Component"} "${e}"${s} is not in this build: symbols.json ${i} left it out because the project source never names it. Add "${e}" to ${i}.keep.`)};var U8=new Set;var QN=t=>U8.has(t);var t$=new Set,e$=(t,e)=>{if(!t$.has(t)&&(t$.add(t),typeof console<"u"&&console.warn)){let n=e&&e.__ref&&e.__ref.path,r=n&&n.length?` at <${n.join(".")}>`:"";console.warn(`[Icon] Unknown icon name "${t}"${r} \u2014 not registered in designSystem.icons, rendering the noIcon placeholder. Fix the name or register the icon in the design system.`)}},n$=(t,e)=>{let n=t.find(r=>r&&QN(r));return n?(JN("icon",n,e),!0):!1},r$=new WeakMap,V8=t=>{let e=r$.get(t);return e||(e={pending:new Map,waiting:new Map,failed:new Set},r$.set(t,e)),e},z8=(t,e)=>{if(!t)return null;let n=t.default||t;return typeof n=="string"?n.trim()?{[e]:n}:null:typeof n=="object"&&!Array.isArray(n)&&Object.keys(n).length?n:null},H8=(t,e,n)=>{let r=n&&n.context&&n.context.document||(typeof document<"u"?document:null);mt(t);try{let o=P();o&&!o.__svgCache&&(o.__svgCache={}),t.__svgCache||(t.__svgCache={});let s={};for(let i in e){let a=Xs(e[i],i);a&&(t.icons[i]=a,s[i]=a)}return t.useIconSprite&&r&&Object.keys(s).length&&Zs(s,{document:r}),Object.keys(s).length>0}finally{ht()}},W8=(t,e,n,r,o)=>{let s=t&&t.designSystem,i=s&&s.iconsLoader;if(typeof i!="function"||!s.icons)return!1;let a=V8(s);if(a.failed.has(e))return!1;let c=a.waiting.get(e);if(c||(c=new Set,a.waiting.set(e,c)),c.add(o),a.pending.has(e))return!0;let l=()=>i(e,t),f=Promise.resolve().then(l).then(u=>{let d=z8(u,n);return d?H8(s,d,r):!1}).catch(u=>(typeof console<"u"&&console.error&&console.error(`[Icon] iconsLoader failed for "${e}":`,u),!1)).then(u=>{a.pending.delete(e);let d=a.waiting.get(e);a.waiting.delete(e),u||a.failed.add(e),d&&d.forEach(p=>{try{p(u)}catch(g){console.error("[Icon] repaint error:",g)}})});return a.pending.set(e,f),!0},K8="0 0 24 24",q8=/<(symbol|svg)\b[^>]*>/i,G8={viewBox:/\sviewBox\s*=\s*(?:"([^"]*)"|'([^']*)')/i,width:/\swidth\s*=\s*(?:"([^"]*)"|'([^']*)')/i,height:/\sheight\s*=\s*(?:"([^"]*)"|'([^']*)')/i},Fv=(t,e)=>{let n=t.match(G8[e]);return n?n[1]!==void 0?n[1]:n[2]:void 0},o$=t=>{let e=typeof t=="string"&&t.match(/^\s*(\d*\.?\d+)\s*(?:px)?\s*$/);return e?Number(e[1]):void 0},Y8=(t,e)=>{if(typeof t!="string")return;let n=t.match(q8);if(!n)return;let r=(Fv(n[0],"viewBox")||"").trim().split(/[\s,]+/).map(Number),o=r.length===4&&r[2]>0&&r[3]>0?[r[2],r[3]]:void 0,s=o$(Fv(n[0],"width")),i=o$(Fv(n[0],"height")),a=s>0&&i>0?[s,i]:void 0,c=n[1].toLowerCase()==="symbol"||e?o||a:a||o;return c?`0 0 ${c[0]} ${c[1]}`:void 0},Bv=t=>{let e=t.call("exec",t.viewBox,t);if(e)return e;let n=t.context&&t.context.designSystem,r=!!(t.spriteId||n&&n.useSvgSprite);return Y8(t.call("exec",t.src,t),r)||K8},s$={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(t,e,n)=>{let{parent:r}=t,{icons:o,useIconSprite:s,verbose:i}=n&&n.designSystem,{toCamelCase:a}=n&&n.utils,c=!1,l=(h,m)=>{try{return{value:t.call("exec",h,m)}}catch(y){if(t.__ref&&(t.__ref.__iconNameError=y),!c&&typeof console<"u"&&console.warn){c=!0;let x=t.__ref&&t.__ref.path,E=x&&x.length?` at <${x.join(".")}>`:"";console.warn(`[Icon] name/icon factory threw${E} \u2014 treated as no name (a painted glyph stays):`,y&&y.message||y)}return{threw:!0}}},f=(h,m)=>{let{semanticIcons:y}=m&&m.designSystem,{toCamelCase:x}=m&&m.utils,T=x(h).split(/([a-z])([A-Z])/g),S=T[1]?T[0]:h.split(".")[0].split(" ")[0],w=y&&y[S];if(w){let b=h.includes(".")?"sfsymbols."+h.split(".").slice(1).join("."):"sfsymbols";return h=w[b]||w[h.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${h}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=h=>{let{key:m}=h,y=l(h.name||h.icon||m,h);if(y.threw)return{name:m,threw:!0};let x=y.value;return h.call("isString",x)&&x.includes("{{")&&(x=h.call("replaceLiteralsWithObjectFields",x)),{name:h.call("isString",x)?x:m}},d=t.src,p,g=()=>{let h=u(t);if(h.threw&&t.node&&t.node.innerHTML)return;let m=h.name,y=m;if(m.includes(" ")){let F=m.split(" ");m=F[0]+F.slice(1).map($=>$.charAt(0).toUpperCase()+$.slice(1)).join("")}let x=a(m),E=x.split(/([a-z])([A-Z])/g),T=f(y,n);if(T){Object.assign(t,T);return}let S,w=t[".isActive"];w&&(w.name||w.icon)&&t.isActive&&(S=l(w.name||w.icon,t).value);let b=r&&r[".isActive"];b&&b.icon&&r.isActive&&(S=l(b.icon||b.Icon.name||b.Icon.icon,t).value),t.call("isString",S)&&S.includes("{{")&&(S=t.call("replaceLiteralsWithObjectFields",S));let _;o[S]&&(_=S),o[x]?_=x:o[E[0]+E[1]]?_=E[0]+E[1]:o[E[0]]?_=E[0]:i&&t.warn("Can't find icon:",m,_);let A=o[_],C=r&&r.src||d;!A&&!C&&(W8(n,y,x,t,$=>{if(!(p&&p._disposed)){if(!$)return globalThis.__SMBLS_BUILD_DROP_ICONS__&&n$([S,x,E[0]+E[1],E[0]],t)||e$(y,t);g()}})||globalThis.__SMBLS_BUILD_DROP_ICONS__&&n$([S,x,E[0]+E[1],E[0]],t)||e$(y,t));let O=s&&_,N=A||C||o.noIcon;if(!(t.spriteId===O&&t.src===N&&t.node&&t.node.innerHTML)){if(t.spriteId=O,t.src=N,typeof t.html=="function"&&t.node){let F=t.context&&t.context.designSystem;F&&mt(F);try{let $=t.html(t,t.state,t.context);$!=null&&typeof $!="function"&&(t.node.innerHTML=$)}finally{F&&ht()}}t.node&&t.attr&&t.attr.viewBox===Bv&&t.node.setAttribute("viewBox",Bv(t))}};p=Y(g,{depth:t.__ref&&t.__ref.path&&t.__ref.path.length||0}),t.__ref&&(t.__ref.__effects||(t.__ref.__effects=[]),t.__ref.__effects.push(p))},attr:{viewBox:Bv,"aria-hidden":t=>t.ariaLabel||t.role==="img"?null:"true",focusable:"false"}},i$={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:t=>{let{parent:e}=t,n=t.call("exec",t.icon,t);return t.call("exec",n||e.icon||t.name||t.sfSymbols||e.sfSymbols,t)},icon:t=>t.call("exec",t.parent.icon,t.parent)},text:t=>t.text},a$={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var dA={};B(dA,{A:()=>n2,Link:()=>fA,RouteLink:()=>r2,RouterLink:()=>uA});var Uc={};B(Uc,{default:()=>NK,getActiveRoute:()=>lA,lastLevel:()=>my,lastPathname:()=>jc,loadLazy:()=>nA,matchRoute:()=>iA,parseQuery:()=>aA,parseRoutePattern:()=>gy,resolveRouterElement:()=>Bd,router:()=>Fn,runGuards:()=>Z$,saveScrollPosition:()=>Id});M();var Uv="__smblsRouter",Vv=new WeakMap,X8=0,zv=()=>Date.now().toString(36)+(++X8).toString(36)+Math.random().toString(36).slice(2,6),Hv=t=>{try{let e=t&&t.history;if(e&&typeof e.pushState=="function"&&typeof e.replaceState=="function"&&typeof e.go=="function")return e}catch{}return null},Gr=t=>{try{return t.state}catch{return}},Dd=t=>{try{let{pathname:e,search:n,hash:r}=t.location;return e+n+r}catch{return null}},u$=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null},d$=t=>{let e=u$(t)?t[Uv]:null;return e&&typeof e.key=="string"&&typeof e.chain=="string"&&Number.isInteger(e.index)?e:null},Wv=(t,e)=>t==null?{[Uv]:e}:u$(t)?{...t,[Uv]:e}:null,Kv=()=>({key:zv(),index:0,chain:zv()}),Bc=(t,e)=>{let n=d$(e);return{key:n?n.key:null,index:n?n.index:null,chain:n?n.chain:null,url:Dd(t),state:e}},p$=(t,e)=>{let n=d$(t);return e.key?!!n&&n.key===e.key:!n&&t===e.state},Ld=(t,e,n)=>!!n&&Dd(t)===n.url&&p$(e,n),qv=(t,e,n)=>({...t,url:e,state:n}),Gv=(t,e)=>{let n=Gr(e),r=Bc(t,n);if(r.key)return r;let o=Kv(),s=Wv(n,o);if(!s)return r;try{e.replaceState(s,null)}catch{return r}return qv(o,r.url,s)},Z8=(t,e)=>{let n=Vv.get(t);return!n&&e&&(n={current:null,pending:null,expect:null,seq:0,pops:new WeakMap,positions:null,scrollNode:null,restore:null},Vv.set(t,n)),n||null},h$="smbls.router.scroll",c$=100,J8=1e3,l$=["wheel","touchstart","keydown","pointerdown"],g$=t=>{try{return t.sessionStorage||null}catch{return null}},m$=t=>{try{let e=JSON.parse(t.getItem(h$)||"[]");return Array.isArray(e)?e.filter(n=>Array.isArray(n)&&typeof n[0]=="string"):[]}catch{return[]}},y$=(t,e)=>{if(!t.positions){t.positions=new Map;let n=g$(e);if(n)for(let[r,o]of m$(n))o&&Number.isFinite(o.top)&&Number.isFinite(o.left)&&t.positions.set(r,{top:o.top,left:o.left})}return t.positions},Yv=(t,e,n,r)=>{let o=y$(t,e);o.delete(n),o.set(n,{top:Math.round(Number(r.scrollTop)||0),left:Math.round(Number(r.scrollLeft)||0)}),o.size>c$&&o.delete(o.keys().next().value);let s=g$(e);if(s)try{let i=new Map(m$(s));for(let[a,c]of o)i.delete(a),i.set(a,c);s.setItem(h$,JSON.stringify(Array.from(i).slice(-c$)))}catch{}},f$=(t,e,n)=>{(!e||e.visibilityState!=="hidden")&&typeof t.requestAnimationFrame=="function"?t.requestAnimationFrame(n):typeof t.setTimeout=="function"?t.setTimeout(n,16):setTimeout(n,16)},Q8=(t,e,n,r,o,s,i)=>{n.restore&&n.restore.end("replaced"),n.restore=r;let a=typeof i=="number"&&i>=0?i:J8,c=()=>Math.max(0,(Number(o.scrollHeight)||0)-(Number(o.clientHeight)||0)),l=(h,m)=>{typeof o.scrollTo=="function"?o.scrollTo({top:h,left:m,behavior:"instant"}):(o.scrollTop=h,o.scrollLeft=m)},f=typeof t.addEventListener=="function",u=()=>r.end("visitor");if(r.end=h=>{if(!r.outcome&&(r.outcome=h,f))for(let m of l$)t.removeEventListener(m,u,!0)},c()>=s.top-1)return l(s.top,s.left),r.end("placed");Number(o.scrollTop)>0&&l(0,0);let d=Number(o.scrollTop)||0,p=Date.now();if(f)for(let h of l$)t.addEventListener(h,u,{capture:!0,passive:!0});let g=()=>{if(r.outcome)return;if(n.seq!==r.seq)return r.end("overtaken");if(Math.abs((Number(o.scrollTop)||0)-d)>1)return r.end("visitor");let h=c()>=s.top-1;if(!h&&Date.now()-p<a)return f$(t,e,g);l(Math.min(s.top,c()),s.left),r.end(h?"placed":"clamped")};f$(t,e,g)},tK=(t,e)=>{let{win:n,history:r,track:o}=t,s=o.pops.get(e);if(s)return s;let i=Bc(n,Gr(r)),a=o.expect;o.expect=null;let c;if(a&&i.key===a.key&&i.url===a.url)c={echo:!0};else{let l=o.current,f=!!(i.key&&l&&l.key===i.key),u=f?null:l;u&&u.key&&t.scrollNode&&Yv(o,n,u.key,t.scrollNode),c={to:i,from:u,stay:f,seq:o.seq,settled:!1,committed:!1},o.pending=c}return o.pops.set(e,c),c},eK=t=>{let{win:e,history:n,track:r}=t,o=Gr(n);if(r.pending&&Ld(e,o,r.pending.to)||r.expect&&Ld(e,o,r.expect.away))return;let s=r.current;if(s&&(s.key?p$(o,s):Ld(e,o,s))){s.url=Dd(e),s.state=o;return}r.current=t.restore?Gv(e,n):Bc(e,o),r.pending=null,r.seq++},b$=(t,e,n)=>{let r=e.scrollRestoration==="restore",o=Hv(t),s=r||Array.isArray(e.guards)&&e.guards.length>0,i=o&&Z8(o,s);if(!i)return null;let a={win:t,history:o,track:i,restore:r,scrollNode:r&&n?n:null,pop:null};a.scrollNode&&(i.scrollNode=a.scrollNode);let c=e.event;return c&&c.type==="popstate"?a.pop=tK(a,c):eK(a),a},uy=(t,e)=>{e.settled=!0,t.pending===e&&(t.pending=null)},Xv=t=>{let e=t&&t.pop;if(!e||e.echo)return!0;if(e.settled)return e.committed;let{win:n,history:r,track:o}=t;return uy(o,e),o.seq!==e.seq||!Ld(n,Gr(r),e.to)?!1:(o.current=t.restore&&!e.to.key?Gv(n,r):e.to,o.seq++,e.committed=!0,!0)},_$=t=>{let e=t&&t.pop;e&&!e.echo&&!e.settled&&uy(t.track,e)},nK=(t,e,n)=>{try{t.addEventListener("popstate",()=>{e.expect===n&&(e.expect=null)},{once:!0})}catch{}},Zv=(t,e)=>{let n=t&&t.pop;if(!n||n.echo||n.settled)return;let{win:r,history:o,track:s}=t;uy(s,n);let i=n.from;if(!i||s.seq!==n.seq||!Ld(r,Gr(o),n.to))return;let a=n.to;if(!e&&i.key&&a.key&&i.chain===a.chain&&i.index!==a.index){let f=s.expect={key:i.key,url:i.url,away:a};nK(r,s,f);try{o.go(i.index-a.index)}catch{s.expect=null}return}let c=Kv(),l=Wv(i.state,c);try{o.replaceState(l||i.state,null,i.url)}catch{return}s.current=l?qv(c,i.url,l):Bc(r,Gr(o)),s.seq++},w$=(t,e)=>{let n=Dd(e);t&&n!==null&&(t.__routerAddress=n)},Jv=(t,e,n)=>{let r=t&&t.pop;if(r&&!r.echo&&r.from)return Zv(t,!0);r&&!r.settled&&uy(t.track,r);let o=Hv(n),s=e&&e.__routerAddress;if(!(!o||!s||s===Dd(n)))try{o.replaceState(Gr(o),null,s)}catch{}},S$=(t,e,n,r,o=t&&t.win)=>{if(!t){try{r?o.history.replaceState(e,null,n):o.history.pushState(e,null,n)}catch{}return}let{history:s,track:i}=t,a=i.current;!r&&a&&a.key&&t.scrollNode&&Yv(i,o,a.key,t.scrollNode);let c=r?Bc(o,Gr(s)):Gv(o,s),l=c.key?r?{key:c.key,index:c.index,chain:c.chain}:{key:zv(),index:c.index+1,chain:c.chain}:Kv(),f=Wv(e,l);try{r?s.replaceState(f||e,null,n):s.pushState(f||e,null,n)}catch{return}i.current=f?qv(l,n,f):Bc(o,Gr(s)),i.pending=null,i.expect=null,i.seq++},x$=(t,e,n,r)=>{if(!t||!t.restore||!e)return!1;let o=t.pop;if(o?o.stay||!o.committed:!n.initialRender)return!1;let{win:s,track:i}=t,a=i.current,c=a&&a.key&&y$(i,s).get(a.key);if(!c)return!1;let l=i.restore;return!!l&&l.key===a.key&&(o?l.pop===o:!l.pop&&l.seq===i.seq)&&l.outcome==="visitor"||Q8(s,r,i,{key:a.key,pop:o,seq:i.seq,outcome:null},e,c,n.scrollRestoreTimeout),!0},Id=t=>{let e=Hv(t),n=e&&Vv.get(e);!n||!n.scrollNode||!n.current||!n.current.key||Yv(n,t,n.current.key,n.scrollNode)};M();var A$=["components","functions","methods","snippets"],T$=new Set(["pages",...A$]),Qv=new Set(["default","__esModule"]),Go=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Kt=t=>!!t&&typeof t=="object"&&!Array.isArray(t),dy=new WeakMap,k$=new WeakMap,tA=new WeakMap,E$=new Set,yi=(t,e=console.warn)=>{E$.has(t)||(E$.add(t),e(t))},C$=t=>Kt(t&&t.lazy),O$=(t,e)=>{let n=t&&t.lazy;return Kt(n)&&Go(n,e)?n[e]:void 0},Nd=(t,e)=>{let n=O$(t,e);return Kt(n)&&Go(n,"load")?n.load:n},rK=(t,e)=>{let n=O$(t,e);return Kt(n)&&typeof n.when=="function"?n.when:null},oK=t=>{let e=new Error(`[smbls/router] lazy group "${t}" waits: its \`when\` said false \u2014 nothing was requested`);return e.code="LAZY_WAITING",e},eA=(t,e)=>{let n=dy.get(t);n||(dy.set(t,n=new Map),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{for(let o of n.values())o.disposed=!0,o.waiting.clear();dy.delete(t)}));let r=n.get(e);return r||(r={status:"idle",attempts:0,promise:null,failure:null,disposed:!1,pages:null,waiting:new Set,maps:new Set},n.set(e,r)),r},R$=(t,e)=>!C$(e)||!Kt(t)||!Go(t,"lazy")?null:typeof t.lazy=="string"&&t.lazy?t.lazy:null,hy=t=>!globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__&&!!t&&typeof t=="object"&&tA.has(t),P$=(t,e)=>(t&&t.lazy&&typeof t.lazy=="object"&&zt("lazyRoutes",e),null),L$=t=>t&&(t.status==="error"||t.status==="reload"||t.status==="waiting")?t.status:"loading",sK=(t,e)=>typeof Nd(t,e)!="function"?"error":L$(dy.get(t)?.get(e)),iK=(t,e)=>{let n=k$.get(t);if(n&&n.group===e)return n;let{lazy:r,state:o,...s}=t,i=o==null||Kt(o)||typeof o=="function";i?s.state=(c,l)=>{let f=typeof o=="function"?o(c,l):o;return{...Kt(f)?f:null,lazyStatus:sK(c.context,e)}}:(s.state=o,nt()&&yi(`[smbls/router] the placeholder of lazy group "${e}" binds its state to a path (${JSON.stringify(o)}), so it gets no \`lazyStatus\` \u2014 give it its own state object to show a load failure.`));let a={definition:s,group:e,hasStatus:i};return k$.set(t,a),tA.set(s,a),a},aK=t=>t.__ref&&t.__ref.contentElementKey||"content",Md=(t,e)=>{let n=t&&t.__ref&&t.__ref.__routerRendered,r=n&&hy(n.content)?tA.get(n.content):null;return!r||r.group!==e?null:{record:r,page:t[aK(t)]}},py=(t,e,n)=>{let r=Md(t,e);if(!r||!r.record.hasStatus)return;let o=r.page&&r.page.state;if(!(!o||typeof o.update!="function"||o.lazyStatus===n))try{o.update({lazyStatus:n})}catch(s){console.error(`[smbls/router] lazy group "${e}": could not show the "${n}" status on its placeholder`,s)}},cK=t=>Kt(t)?!Object.keys(t).some(n=>T$.has(n))&&Kt(t.default)?t.default:t:{},lK=t=>{let e={};if(!Kt(t))return e;for(let n of Object.keys(t)){if(Qv.has(n))continue;let r=n.charCodeAt(0)===47,o=r?n:"/"+(n==="index"?"":n);(r||!Go(e,o))&&(e[o]=t[n])}return e},D$=(t,e,n,r,o)=>{if(!Kt(t))return 0;let s=0;for(let i of Object.keys(t))R$(t[i],r)===e&&(s++,Go(n,i)?t[i]=n[i]:delete t[i]);for(let i of Object.keys(n))Go(t,i)?t[i]!==n[i]&&o.push(`pages['${i}']`):t[i]=n[i];return s},v$=(t,e,n)=>{let r=t[e];if(!Kt(r)){t[e]={...n};return}try{for(let o in n)r[o]=n[o];if(Object.keys(n).every(o=>r[o]===n[o]))return}catch{}t[e]={...r,...n}},fK=t=>{let e=t.__ref&&t.__ref.origin;if(!Kt(e))return[];let n=[].concat(e.extends||[],e.extend||[]);if(n.length)return n.filter(s=>typeof s=="string").map(s=>(s.includes(">")?s.split(">")[0]:s).trim());let r=t.key;if(typeof r!="string"||!/^[A-Z]/.test(r))return[];let o=[r.indexOf("_"),r.indexOf(".")].filter(s=>s>0);return[o.length?r.slice(0,Math.min(...o)):r]},uK=(t,e,n,r)=>{let o=new Set;for(let i of r.waiting){let a=Md(i,e);a&&a.page&&o.add(a.page)}let s=i=>{let a=i&&i.__ref&&i.__ref.__children;if(Array.isArray(a))for(let c of a){let l=i[c];if(!(!l||!l.__ref||o.has(l)||!l.node)){for(let f of fK(l)){if(!n.has(f))continue;let u=(l.__ref.path||[l.key]).join(" \u203A ");yi(`[smbls/router] lazy group "${e}": ${u} was built before the group loaded, so it renders without "${f}". A built element never takes a later registration \u2014 build it after el.call('loadLazy', '${e}') resolves (an \`if:\` gate does that), or keep "${f}" out of the group.`)}s(l)}}};s(t)},dK=(t,e,n,r)=>{let o=t.context,s=cK(n),i=nt(),a=[],c=new Set;if(i)for(let p of Object.keys(s))T$.has(p)||Qv.has(p)||yi(`[smbls/router] lazy group "${e}" exports \`${p}\`, which a lazy group cannot add \u2014 it adds pages, components, functions, methods and snippets only. Declare the rest with the app.`);let l=!1;for(let p of A$){let g=s[p];if(!Kt(g))continue;let h=Kt(o[p])?o[p]:{},m={};for(let x of Object.keys(g))if(!Qv.has(x)){if(Go(h,x)){h[x]!==g[x]&&a.push(`${p}.${x}`);continue}m[x]=g[x]}let y=Object.keys(m);if(y.length&&(v$(o,p,m),p==="components"&&y.forEach(x=>c.add(x)),p==="methods"&&(l=!0),(p==="functions"||p==="snippets")&&Kt(o.utils))){let x={};for(let E of y)Go(o.utils,E)||(x[E]=m[E]);Object.keys(x).length&&v$(o,"utils",x)}}l&&Ec(o);let f=lK(s.pages);r.pages=f;let u=null;try{u=typeof t.getRoot=="function"?t.getRoot():null}catch{}let d=new Set;Kt(o.pages)&&d.add(o.pages),u&&Kt(u.routes)&&d.add(u.routes);for(let p of r.maps)d.add(p);for(let p of r.waiting)Kt(p.routes)&&d.add(p.routes);for(let p of d)D$(p,e,f,o,a);i&&a.length&&yi(`[smbls/router] lazy group "${e}" redefines ${a.join(", ")}, which the app already has \u2014 the app's own value stays. Rename them: frank refuses the same collision at \`smbls push\`.`),i&&c.size&&u&&uK(u,e,c,r)},I$=(t,e)=>{let n=t&&t.__ref,r=n&&n.__lazyRoute;if(!r||r.group!==e||(n.__lazyRoute=null,typeof t.set!="function")||!Md(t,e))return;let o=()=>r.rerender({pushState:!1,replace:!1,scrollToTop:!1,guards:[],lazy:{group:e,status:"loaded"}});Promise.resolve().then(o).catch(s=>console.error(`[smbls/router] lazy group "${e}" loaded, but its route failed to render`,s))},$d=t=>!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function",pK=(t,e,n)=>!!t&&($d(e)&&e===t.returned||!!n&&typeof n=="object"&&n===t.error),M$=(t,e)=>{let n=t.context,r=eA(n,e);if(r.status==="loading"||r.status==="loaded")return r.promise;let o=Nd(n,e),s=rK(n,e),i=r.failure;r.status="loading";let a,c=!1,l=!1,f=()=>s?s(t):!0,u=p=>{if(p===!1)throw l=!0,oK(e);return a=o(r.attempts++)},d=Promise.resolve().then(f).then(u).then(p=>{c=!0,r.disposed||dK(t,e,p,r)}).then(()=>{r.status="loaded",r.failure=null;let p=[...r.waiting];r.waiting.clear();for(let g of p)I$(g,e)},p=>{if(l){if(r.status="waiting",r.promise=null,r.disposed)throw p;for(let h of[...r.waiting])Md(h,e)?py(h,e,"waiting"):r.waiting.delete(h);throw p}let g=!c&&pK(i,a,p);if(r.failure=c?null:{returned:a,error:p},r.status=g?"reload":"error",r.promise=null,r.disposed)throw p;g?yi(`[smbls/router] lazy group "${e}" cannot load in this page: its loader handed back the import that already failed (the same promise or the same error) and requested nothing \u2014 a bundler that keeps a failed dynamic import (parcel) does this. Its routes show their placeholder with lazyStatus 'reload'; reloading the page loads the group.`,h=>console.error(h,p)):console.error(`[smbls/router] lazy group "${e}" failed to load. Its routes show their placeholder with lazyStatus 'error'; the next navigation to one of them, or loadLazy('${e}'), calls the group's loader again.`,p);for(let h of[...r.waiting])Md(h,e)?py(h,e,r.status):r.waiting.delete(h);throw p});d.catch(()=>{}),r.promise=d;for(let p of r.waiting)py(p,e,"loading");return d},N$=(t,e,n)=>{let r=e&&e.context;if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__)return P$(r,e);let o=R$(t,r);if(!o)return null;let s=eA(r,o);if(Kt(n)&&s.maps.add(n),s.status==="loaded"&&D$(n,o,s.pages||{},r,[])>0)return{rematch:!0};let i=typeof Nd(r,o)=="function";return i?M$(e,o):yi(`[smbls/router] a route names lazy group "${o}", which context.lazy does not declare as a loader (\`lazy: { ${o}: () => import('./\u2026') }\`) \u2014 it shows its placeholder in the error state.`,console.error),{content:iK(t,o).definition,group:o,status:i?"loading":"error"}},$$=(t,e,n)=>{if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__||!e||!e.group||e.status==="error")return;let r=t.context,o=t.__ref;if(!o||typeof Nd(r,e.group)!="function")return;let s=eA(r,e.group);if(o.__lazyRoute={group:e.group,rerender:n},py(t,e.group,L$(s)),s.status==="loaded"){let i=()=>I$(t,e.group);Promise.resolve().then(i);return}s.waiting.add(t)};function nA(t){let e=this,n=e&&e.context;if(!n)return Promise.reject(new TypeError("[smbls/router] loadLazy runs on an element: el.call('loadLazy', name)"));if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__)return Promise.resolve(P$(n,e));let r=Nd(n,t);return typeof r!="function"?(r===void 0&&C$(n)&&nt()&&yi(`[smbls/router] loadLazy('${t}'): context.lazy declares no group "${t}" \u2014 nothing to load.`),Promise.resolve()):M$(e,t)}var hK=(t,e,n)=>({...t.context&&t.context.domqlOptions,...e.mountOptions,contentElementKey:n}),F$=(t,e,n)=>{let r=n.mountOptions;if(!r)return;let o=e.context&&e.context.domqlOptions;for(let s in r)t[s]=o&&s in o?o[s]:void 0},W$=t=>{let e=pr;return typeof e=="function"?e(t.mountYield)>0:t.mountYield===!0},gK=t=>{let e=t&&t.context&&t.context.__hydration;return!!e&&e.adopted>0},mK=t=>{let e=ny;return typeof e!="function"||!e(t)?null:qr(t)},sA=Object.freeze({holdTail:!0}),yK=t=>typeof t.holdPage=="function"&&typeof Ge=="function",K$=(t,e)=>{let n=()=>Ge(t);$d(e)?e.then(n,n):n()},bK=(t,e)=>{let n=null;try{n=t.holdPage(e)}catch{}K$(e,n)},q$=Object.freeze({holdTail:!0,deferAttach:!0}),_K=(t,e,n,r)=>{let o=t.firstView;if(!o||typeof Ge!="function"||typeof Vo!="function")return null;if(!o.committed)return sA;if(!W$(r))return null;let s=e.node;return!e[n]&&s&&s.isConnected?q$:(r.mountYield=void 0,null)},wK=async()=>{await Re();let t=Ko;if(typeof t=="function")for(;!t();)await Re()},SK=(t,e,n,r)=>{if(e===sA){t.firstView.page=n,K$(n,t.firstView.commit);return}e===q$&&wK().then(()=>{n.__ref&&r()&&Vo(n),Ge(n)})},G$=/^:(.+)/,Y$=/^\*$/,B$=new Map,gy=t=>{let e=B$.get(t);if(e)return e;let n=t.replace(/^\//,"").split("/"),r=[],o=!1;for(let i=0;i<n.length;i++){let a=n[i].match(G$);a?r.push({index:i,name:a[1]}):Y$.test(n[i])&&(o=!0)}let s={segments:n,params:r,hasWildcard:o,pattern:t};return B$.set(t,s),s},iA=(t,e,n=0)=>{let o=t.replace(/^\//,"").split("/").filter(Boolean).slice(n),s="/"+(o[0]||"");if(!e)return{key:null,content:null,params:{},routePath:s};let i=null,a=-1,c={};for(let l in e){if(l==="/*")continue;let f=gy(l),u=xK(o,f);u>a&&(a=u,i=l,c=X$(o,f))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},xK=(t,e)=>{let{segments:n,hasWildcard:r}=e;if(!r&&n.length!==t.length&&n.length!==1&&n.length>t.length)return-1;let o=0,s=Math.min(n.length,t.length);for(let i=0;i<s;i++)if(n[i]===t[i])o+=3;else if(G$.test(n[i]))o+=1;else if(Y$.test(n[i]))o+=.5;else return-1;return o},X$=(t,e)=>{let n={};for(let{index:r,name:o}of e.params)t[r]&&(n[o]=decodeURIComponent(t[r]));return n},aA=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((r,o)=>{e[o]!==void 0?(Array.isArray(e[o])||(e[o]=[e[o]]),e[o].push(r)):e[o]=r}),e},oA=t=>!!t&&typeof t=="object"&&typeof t.route=="string",j$=t=>t===!1||typeof t=="string"||oA(t)?t:void 0,kK=10,cA=(t,e,n=0)=>{for(let r=n;r<t.length;r++){let o=t[r](e);if($d(o))return Promise.resolve(o).then(i=>{let a=j$(i);return a===void 0?cA(t,e,r+1):a});let s=j$(o);if(s!==void 0)return s}return!0},Z$=async(t,e)=>!t||!t.length?!0:cA(t,e),U$=(t,e,n,r)=>{if(typeof t!="string"||!n||!Object.prototype.hasOwnProperty.call(n,t))return null;let o=n[t];if(!o)return null;let s=e.replace(/^\//,"").split("/").filter(Boolean).slice(r||0);return{route:t,content:o,params:t==="/*"?{}:X$(s,gy(t))}},Bd=(t,e)=>{if(!e)return t;let n=Array.isArray(e)?e:e.split("."),r=t;for(let o of n){if(!r||!r[o])return null;r=r[o]}return r},EK=(t,e)=>{let n=e.customRouterElement;if(!n||!t.__ref||t.__ref.root!==t)return t;let r=Bd(t,n);return!r||r===t?t:(t.routes&&(r.routes=t.routes),r)},lA=(t=0,e)=>{e||(e=typeof R<"u"?R.location.pathname:"/");let r=e.split("/")[t+1];if(r)return`/${r}`},jc,my=0,V$=0,rA=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,vK=t=>t&&(t.scrollingElement||t.documentElement)||null,J$={level:my,pushState:!0,replace:!1,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0,exitTimeout:300,scrollRestoreTimeout:1e3},Q$=(t,e)=>{if(!t||t.visibilityState!=="visible")return!1;try{let n=e&&typeof e.matchMedia=="function"&&e.matchMedia("(prefers-reduced-motion: reduce)");if(n&&n.matches)return!1}catch{}return!0},t2=t=>{let e=t.__routeExit;e&&(t.__routeExit=null,e.abort())},AK=(t,e,n,r,o,s,i)=>{let a=e.__routeExit;if(a&&a.page===n)return a.wait;if(t2(e),!n||!n.node||typeof t.onRouteExit>"u"||!Q$(s,i))return null;let c=typeof o=="number"&&o>=0?o:J$.exitTimeout,l=typeof AbortController=="function"?new AbortController:null,f={...r,page:n,timeout:c,signal:l?l.signal:void 0},u;try{u=kr("routeExit",t,f)}catch{return null}if(!u||typeof u.then!="function")return null;let d={page:n,abort:()=>{l&&!l.signal.aborted&&l.abort()}};return d.wait=new Promise(p=>{let g=setTimeout(()=>{d.abort(),p()},c),h=()=>{clearTimeout(g),p()};u.then(h,h)}),e.__routeExit=d,d.wait},Fd=new WeakMap,TK=t=>t===!0?{}:t&&typeof t=="object"&&!Array.isArray(t)?t:null,CK=(t,e,n,r)=>{let o=TK(t.transition);return!o||!e||hy(e.content)||!n||typeof n.startViewTransition!="function"||Fd.get(n)>0||!Q$(n,r)?null:o},OK=t=>{let e=t.__routeTransition;if(!(!e||e.updating))try{e.transition.skipTransition()}catch{}},RK=t=>{let e=typeof t.types=="string"?[t.types]:t.types;return Array.isArray(e)?e.filter(n=>typeof n=="string"&&n):[]},PK=t=>{try{let e=t&&t.ViewTransition;return!!e&&"types"in e.prototype}catch{return!1}},LK=100,DK=1e3,z$=(t,e)=>t===!1?1/0:typeof t=="number"&&t>=0?t:e,H$=t=>{let e=t&&t.performance;return e&&typeof e.now=="function"?e.now():Date.now()},IK=t=>{t&&typeof t.then=="function"&&t.then(null,()=>{})},MK=(t,e,n,r,o,s,i)=>{let a=t.node,c=a&&a.style,l=typeof n.name=="string"&&n.name?n.name:null,f=e.__routeTransition,u={transition:null,updating:!1,name:l,previousName:f&&f.name&&c?f.previousName:c&&c.viewTransitionName||""},d=()=>{if(e.__routerNavSeq===s){u.updating=!0,u.swapStarted=H$(o),Fd.set(r,(Fd.get(r)||0)+1);try{return i()}finally{Fd.set(r,Fd.get(r)-1),u.updating=!1}}},p=()=>{l&&c&&c.viewTransitionName===l&&(c.viewTransitionName=u.previousName)};l&&c&&(c.viewTransitionName=l);let g=RK(n),h=null;try{h=g.length&&PK(o)?r.startViewTransition({update:d,types:g}):r.startViewTransition(d)}catch{}if(!h)return p(),null;u.transition=h,e.__routeTransition=u,IK(h.ready);let m=!1,y=null,x=()=>{m=!0,y!==null&&(o.clearTimeout(y),y=null),e.__routeTransition===u&&(e.__routeTransition=null,p())},E=()=>{if(!(m||e.__routeTransition!==u))try{h.skipTransition()}catch{}};h.finished&&typeof h.finished.then=="function"?h.finished.then(x,x):x();let T=z$(n.swapBudget,LK),S=z$(n.timeout,DK);S!==1/0&&h.ready&&typeof h.ready.then=="function"&&o&&typeof o.setTimeout=="function"&&h.ready.then(()=>{m||(y=o.setTimeout(()=>{y=null,E()},S))},()=>{});let w=h.updateCallbackDone;return!w||typeof w.then!="function"?Promise.resolve():(T!==1/0&&w.then(()=>{u.swapStarted!==void 0&&H$(o)-u.swapStarted>T&&E()},()=>{}),w)},Fn=async(t,e,n={},r={})=>{let o=e||void 0,s=o?.context?.window||R,i=o?.context?.document||kt,a={...J$,...o.context.routerOptions,...r};my=a.lastLevel,o=EK(o,a);let c=!(r&&r.render===!1),l=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let f=l.contentElementKey||a.contentElementKey||"content",u=s.location.origin!=="null"?s.location.origin:"http://localhost";t=rA(t);let d=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,p=new d(u+t),{pathname:g,search:h,hash:m}=p,y=aA(h),x=o.node,E=m&&m!==s.location.hash.slice(1),T=g!==jc,S=jc,w=++V$;jc=g;let b=()=>{V$===w&&(jc=S)},_=l.__routerRendered,A,C,O,N;if(a.useParamsMatching){let X=iA(g,o.routes,a.level);A=X.key,C=X.routePath,O=X.content,N=X.params}else{A=lA(a.level,g),C=A;let X=o.routes;O=X?X[A||"/"]||X["/*"]:null,N={}}if(r&&r.route!=null){let X=U$(r.route,g,o.routes,a.level);!X&&!a.silent&&console.warn("[smbls/router] route",r.route,"chosen for",g,"is not one of the routes:",Object.keys(o.routes||{})),A=X?X.route:r.route,O=X?X.content:null,N=X?X.params:{}}a.scrollNode===void 0&&(a.scrollNode=vK(i));let F=a.scrollToNode?x:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}let $=b$(s,a,F);if($&&$.pop&&$.pop.echo)return;if(!O){b(),a.onNotFound?a.onNotFound({pathname:g,route:A,element:o}):(a.silent||console.warn("[smbls/router] no content matched for path",g,"\u2014 available routes:",Object.keys(o.routes||{})),a.event&&a.event.type==="popstate"&&Jv($,l,s));return}let Z=r&&r.lazy?l.__routerStartSeq:l.__routerStartSeq=(l.__routerStartSeq||0)+1;if(a.guards&&a.guards.length){let X={pathname:g,route:A,params:N,query:y,hash:m,element:o,state:n},q=cA(a.guards,X);if($d(q)&&(q=await q,l.__routerStartSeq!==Z)){b(),_$($);return}if(q===!1){b(),Zv($);return}let Rt=jt=>{let Tt=new d(u+rA(jt));return Tt.pathname===g&&Tt.search===h&&Tt.hash===m},yt=typeof q=="string"?q:oA(q)&&typeof q.path=="string"&&!Rt(q.path)?q.path:null;if(oA(q)&&yt===null){let jt=U$(q.route,g,o.routes,a.level);if(!jt){a.silent||console.warn("[smbls/router] a guard chose route",q.route,"for",g,"\u2014 not one of the routes:",Object.keys(o.routes||{})),b(),a.onNotFound?a.onNotFound({pathname:g,route:q.route,element:o}):a.event&&a.event.type==="popstate"&&Jv($,l,s);return}A=jt.route,O=jt.content,N=jt.params,r={...r,route:jt.route}}else if(yt!==null){let jt=!!($&&$.pop);if(jt&&!Xv($))return;let Tt=[...r&&r.__redirectChain||[],g],Pt=new d(u+rA(yt)).pathname,Ze=Tt.includes(Pt)||Tt.length>=kK;Ze&&!a.silent&&console.warn("[smbls/router] redirect loop:",[...Tt,Pt].join(" \u2192 "),"\u2014 rendering",Pt,"without its guards");let It={...r,__redirectChain:Tt};return Ze&&(It.guards=[]),typeof q=="string"?delete It.route:It.route=q.route,jt&&(It.event=void 0),delete It.render,(jt||a.initialRender)&&(It.pushState=!0,It.replace=!0),Fn(yt,e,n,It)}}let U=c?N$(O,o,o.routes):null;if(U&&U.rematch)return Fn(t,o,n,r);U&&(O=U.content,a.lazy={group:U.group,status:U.status});let J=l.__routerNavSeq=(l.__routerNavSeq||0)+1,ft=!_||_.content!==O||_.route!==A,et=!!_&&_.content===O,G=!(!c||a.keepSamePage===!0&&et&&a.force!==!0)&&(T||ft||a.force===!0);if(G&&_&&!hy(_.content)){let X=AK(o,l,o[f],{from:_.route,to:A,pathname:g,params:N,query:y,hash:m},a.exitTimeout,i,s);if(X&&(await X,l.__routerNavSeq!==J||(l.__routeExit&&l.__routeExit.wait===X&&(l.__routeExit=null),typeof o?.set!="function")))return}else t2(l);let K=G?CK(a,_,i,s):null;if(G&&OK(l),a.pushState){let X=g+(h||"")+(m||"");S$($,n,X,a.replace,s)}else $&&Xv($);w$(l,s);let it=hK(o,a,f),ot=()=>{let X=G?_K(a,o,f,it):null,q=(!!_||W$(it))&&!!F&&F.scrollTop===0&&!F.scrollLeft,Rt=!_&&!!a.initialRender&&!!F&&gK(o)&&(Number(F.scrollTop)>0||Number(F.scrollLeft)>0),jt=T||!E?{route:A,routePath:C,hash:m,params:N,query:y,debugging:!1}:{params:N,query:y};a.updateState&&o.state.update(jt,{preventContentUpdate:!0});let Tt=null;if(G){f&&a.removeOldElement&&o[f].remove();let Ze=o.__ref?.origin?.content,It={};if(Ze)for(let tt in Ze){let at=Ze[tt];tt==="__ref"||tt==="props"||tt==="node"||tt==="parent"||tt==="key"||(typeof at=="string"||typeof at=="number"||typeof at=="boolean"||typeof at=="object"&&at!==null&&!at.node&&!at.__ref)&&(It[tt]=at)}let Me={...It,...typeof O=="object"?O:{extends:O}};a.useFragment&&(Me.tag="fragment");let W={content:O,route:A},Ct=l.__routerRendered;try{if(typeof o?.set!="function")return;l.__routerRendered=W;let tt=!X&&yK(a),at=o.set(Me,it,X||(tt?sA:void 0));at&&X?SK(a,X,at,()=>l.__routerNavSeq===J):at&&tt&&bK(a,at),Tt=mK(o[f])}catch(tt){l.__routerRendered===W&&(l.__routerRendered=Ct),console.error("[smbls/router] failed to render route content",g,tt)}}else et&&_.route!==A&&l.__routerRendered===_&&(l.__routerRendered={content:O,route:A});let Pt=()=>{let Ze=!T&&E,It=!c||x$($,F,a,i);if(!It&&!Rt&&a.scrollToTop&&!Ze&&!q&&F?.scrollTo&&F.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!It&&!Rt&&a.scrollToNode&&O[f]?.node?.scrollTo&&O[f].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!It&&m){let Me=i.getElementById(m.slice(1));if(Me&&F?.scrollTo){let W=s.getComputedStyle?s.getComputedStyle(Me):null,Ct=W&&parseFloat(W.scrollMarginTop)||0,tt=Me.getBoundingClientRect().top+F.scrollTop-Ct-(a.scrollToOffset||0);F.scrollTo({...a.scrollToOptions||{},top:tt,left:0})}}U&&$$(o,U,Me=>Fn(t,o,n,{...r,...Me})),kr("routeChanged",o,a)};if(Tt)return Tt.then(()=>{F$(it,o,a),l.__routerNavSeq===J&&Pt()});F$(it,o,a),Pt()},gt=K?MK(o,l,K,i,s,J,ot):null;if(gt){await gt;return}return ot()},NK=Fn;var $K=(t,e)=>{if(!t)return!1;if(t.defaultPrevented||typeof t.button=="number"&&t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return!0;let n=e.node;if(!n||typeof n.getAttribute!="function")return!1;let r=n.getAttribute("target");return r&&r.toLowerCase()!=="_self"?!0:n.hasAttribute("download")},FK=(t,e)=>{let n=t.slice(1),r=e.node&&e.node.ownerDocument,o=n&&r?r.getElementById(n):null;o&&(typeof o.scrollIntoView=="function"&&o.scrollIntoView(),typeof o.focus=="function"&&(o.hasAttribute("tabindex")||o.setAttribute("tabindex","-1"),o.focus()))},e2=(t,e,n)=>{let{context:r}=e,{href:o,scrollToTop:s,stopPropagation:i}=e,a=e.call("exec",o,e);if(e.call("isString",a)&&a.includes("{{")&&(a=e.call("replaceLiteralsWithObjectFields",a)),i&&t.stopPropagation(),!a||$K(t,e))return;if(a.startsWith("#")){t.preventDefault(),FK(a,e);return}let{utils:c,snippets:l,functions:f,routerOptions:u}=r,d=e.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){t.preventDefault();try{let g=d;if(u&&u.customRouterElement){let h=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),m=d;for(let y of h){if(!m||!m[y]){m=null;break}m=m[y]}m&&(g=m,d.routes&&(g.routes=d.routes))}(f.router||l.router||c.router||Fn)(a,g,{},{scrollToOptions:{behavior:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(g){console.warn(g)}}},fA={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>No(t,t.href)||No(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:e2},n2={extends:"Link"},uA={onClick:e2},r2={extends:[fA,uA]};var pA={};B(pA,{Select:()=>o2});var o2={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:t=>t.value,selected:t=>t.selected,disabled:t=>t.disabled}},attr:{name:t=>t.name,disabled:t=>t.disabled,value:t=>{if(!t.value)return;let e=t.call("exec",t.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e}}};var hA={};B(hA,{Button:()=>s2,ButtonSet:()=>l2,CircleButton:()=>a2,IconButton:()=>f2,KangorooButton:()=>c2,SquareButton:()=>i2});var s2={extends:["IconText","FocusableComponent"],tag:"button",minHeight:"controlH",fontSize:"Z2",type:"button",border:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"0 A",fontWeight:"700",fontFamily:"inherit",round:"radiusPill",disabled:t=>t.call("exec",t.disabled)},i2={extends:"Button",fontSize:"A",width:"A",minHeight:"auto",padding:"Z",aspectRatio:"1 / 1",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},a2={extends:"SquareButton",round:"C"},c2={extends:"Button",childExtends:"IconText"},l2={tag:"nav",display:"flex",childExtends:"SquareButton"},f2={extends:["SquareButton","ClickableItem"],round:"Z"};var mA={};B(mA,{Dialog:()=>g2,DialogFooter:()=>y2,DialogHeader:()=>m2});Mt();var BK={ok:1,cancel:1},bi=new WeakMap,jK=0,wn=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},gA=t=>{let e=bi.get(t);return e||(e={id:"smbls-dialog-"+ ++jK,want:void 0,waiting:!1},bi.set(t,e)),e},jd=(t,e,n,r)=>t[e]!==void 0||n!==void 0&&t[n]!==void 0||!!t.attr&&typeof t.attr=="object"&&t.attr[e]!==void 0||r!==void 0&&!!t.aria&&typeof t.aria=="object"&&t.aria[r]!==void 0,Vc=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},u2=["methods","functions","utils"],UK=t=>{for(let e=0;e<u2.length;e++){let n=t[u2[e]];if(n&&typeof n.polyglot=="function")return!0}return!1},yy=(t,e,n)=>{let r=t.context;if(!r||!UK(r))return n;let o=t.call("polyglot",e);return typeof o=="string"&&o&&o!==e?o:n},d2=t=>{let e=bi.get(t),n=wn(t);if(!e||!n)return!0;if(!n.isConnected)return!1;if(e.want){if(!n.open&&typeof n.showModal=="function")try{n.showModal()}catch{}}else n.open&&typeof n.close=="function"&&n.close();return!0},p2=t=>{queueMicrotask(()=>{if(d2(t))return;let e=bi.get(t);!e||e.waiting||typeof t.whenConnected!="function"||(e.waiting=!0,t.whenConnected(()=>{e.waiting=!1,d2(t)}))})},VK=t=>{let e=t.__ref;if(!e||!wn(t)||!Object.prototype.hasOwnProperty.call(t,"modal")||jd(t,"data-dialog"))return;let n=Y(()=>{let r=t.modal,o=wn(t);if(!o)return;if(r==null){Vc(o,"data-dialog",null);return}Vc(o,"data-dialog","modal");let s=gA(t),i=!!r;s.want!==i&&(s.want=i,p2(t))},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(n)},zK=t=>t.dialogTitle===!0,HK=t=>{for(let e=t;e;e=e.parent)if(e.tag==="dialog")return e;return null},h2=t=>{let e=HK(t);return!e||!e.locked},WK=t=>t.key==="Escape"||t.key==="Esc",KK=t=>{let e=t.__ref,n=wn(t);if(!e||!n||!Object.prototype.hasOwnProperty.call(t,"locked"))return;let r=gA(t),o=!jd(t,"closedby","closedBy"),s=Y(()=>{let l=!!t.locked,f=wn(t);f&&o&&Vc(f,"closedby",l?"none":null)},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(s);let i=l=>{t.locked&&l.preventDefault()},a=t.context&&t.context.window||n.ownerDocument.defaultView,c=l=>{let f=wn(t);f&&f.open&&f.isConnected&&WK(l)&&t.locked&&l.preventDefault()};n.addEventListener("cancel",i),a&&a.addEventListener("keydown",c),r.unlock=()=>{n.removeEventListener("cancel",i),a&&a.removeEventListener("keydown",c)}},qK=t=>{let e=wn(t);if(!e||e.hasAttribute("aria-labelledby")||e.hasAttribute("aria-label")||jd(t,"aria-labelledby","ariaLabelledby","labelledby"))return;let n=typeof t.lookdown=="function"?t.lookdown(zK):null,r=wn(n);if(!r)return;let o=r.getAttribute("id");if(!o){if(jd(n,"id"))return;o=gA(t).id+"-title",Vc(r,"id",o)}Vc(e,"aria-labelledby",o)},GK=(t,e)=>{let n=wn(e),r=t.target;if(!n||t.defaultPrevented||!r||typeof r.closest!="function")return;let o=r.closest("[data-dialog-action]");if(!o||!n.contains(o))return;let s=o.getAttribute("data-dialog-action");if(BK[s]!==1)return;let i=n.ownerDocument.defaultView,a=new i.Event(s,{cancelable:!0});n.dispatchEvent(a),!a.defaultPrevented&&n.open&&typeof n.close=="function"&&n.close(s)},YK=t=>{let e=bi.get(t);e&&e.unlock&&(e.unlock(),e.unlock=null);let n=wn(t);e&&e.want!==void 0&&n&&n.open&&typeof n.close=="function"&&n.close()},XK=t=>{let e=bi.get(t),n=wn(t);e&&e.want!==void 0&&n&&!n.isConnected&&n.hasAttribute("open")&&n.removeAttribute("open")},ZK=t=>{let e=bi.get(t);e&&e.want&&p2(t)},JK=t=>{let e=wn(t);if(!e||!Object.prototype.hasOwnProperty.call(t,"modal")||jd(t,"data-dialog"))return;let n=t.modal;if(typeof n=="function")try{n=n(t,t.state)}catch{return}n!=null&&Vc(e,"data-dialog","modal")},g2={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2",'[data-dialog="modal"]:not([open])':{display:"none"},onAttachNode:{always:!0,handler:t=>JK(t)},onComplete:{always:!0,handler:t=>{VK(t),KK(t),qK(t)}},onRender:{always:!0,handler:t=>ZK(t)},onClick:(t,e)=>GK(t,e),onBeforeRemove:{always:!0,handler:t=>YK(t)},onRemove:{always:!0,handler:t=>XK(t)}},m2={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{dialogTitle:!0,text:t=>yy(t,"dialog.title","Title")},SquareButton:{if:h2,icon:"x",theme:"transparent",aria:{label:t=>yy(t,"dialog.close","Close")},data:{dialogAction:"cancel"}}},Paragraph:{color:"caption"}},y2={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:{if:h2,text:t=>yy(t,"dialog.cancel","Cancel"),data:{dialogAction:"cancel"}},Ok:{text:t=>yy(t,"dialog.ok","OK"),data:{dialogAction:"ok"}}};var xA={};B(xA,{Tooltip:()=>E2,TooltipHidden:()=>v2,TooltipLayer:()=>SA,TooltipParent:()=>A2});M();var QK='[data-tooltip]:not([data-tooltip=""])',b2={top:1,bottom:1,left:1,right:1},yA={top:"bottom",bottom:"top",left:"right",right:"left"},_i=6,_2=new WeakMap,t7=0,Pe=t=>{let e=_2.get(t);return e||(e={id:"smbls-tooltip-"+ ++t7,hover:null,focus:null,shown:null,dismissed:null,showTimer:null,hideTimer:null},_2.set(t,e)),e},bA=t=>{let e=t&&t.nodeType!==1?t.parentElement:t;return e&&typeof e.closest=="function"?e:null},e7=t=>{let e=t.parent&&t.parent.node;return e&&e.nodeType===1?e:null},n7=t=>{for(let e=t.firstElementChild;e;e=e.nextElementSibling)if(e.hasAttribute("data-tooltip-layer"))return!0;return!1},w2=(t,e)=>{let n=e7(t);if(!e||!n)return null;let r;try{r=e.closest(QK)}catch{return null}if(!r||!n.contains(r))return null;for(let o=r;o&&o!==n;o=o.parentElement)if(n7(o))return null;return r},r7=(t,e)=>!!(e&&t.node&&t.node.contains(e)),o7=t=>{try{return t.matches(":focus-visible")}catch{return!0}},S2=(t,e)=>typeof t=="number"&&t>=0?t:e,Sy=t=>{t.showTimer&&(clearTimeout(t.showTimer),t.showTimer=null),t.hideTimer&&(clearTimeout(t.hideTimer),t.hideTimer=null)},_A=t=>!!(t.node&&t.node.isConnected&&t.state&&typeof t.state.update=="function"),s7=(t,e)=>{let n=(t.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean);n.indexOf(e)===-1&&n.push(e),t.setAttribute("aria-describedby",n.join(" "))},wA=(t,e)=>{if(!t||typeof t.getAttribute!="function")return;let n=t.getAttribute("aria-describedby");if(n==null)return;let r=n.split(/\s+/).filter(o=>o&&o!==e);r.length?t.setAttribute("aria-describedby",r.join(" ")):t.removeAttribute("aria-describedby")},i7=(t,e,n,r,o)=>{let s={top:t.top,bottom:o-t.bottom,left:t.left,right:r-t.right},i=f=>(f==="top"||f==="bottom"?e.height:e.width)+_i;s[n]<i(n)&&s[yA[n]]>=i(yA[n])&&(n=yA[n]);let a,c;n==="top"||n==="bottom"?(a=t.left+(t.width-e.width)/2,c=n==="bottom"?t.bottom+_i:t.top-e.height-_i):(c=t.top+(t.height-e.height)/2,a=n==="right"?t.right+_i:t.left-e.width-_i);let l=(f,u)=>Math.max(_i,Math.min(u-_i,f));return{left:l(a,r-e.width),top:l(c,o-e.height),side:n}},a7=t=>{let e=t.ownerDocument,n=e&&e.defaultView,r=e&&e.documentElement;return{width:r&&r.clientWidth||n&&n.innerWidth||0,height:r&&r.clientHeight||n&&n.innerHeight||0}},c7=t=>(t.title||"")+(t.description||""),_y=(t,e=0)=>{let r=Pe(t).shown;if(!r||!_A(t))return;if(!r.isConnected){wy(t);return}let o=t.node,s=t.state;if(o.textContent!==c7(s)){e<3&&setTimeout(()=>_y(t,e+1),0);return}let i=r.getBoundingClientRect(),a=o.getBoundingClientRect(),c=a.left-(s.x||0),l=a.top-(s.y||0),f=a7(o),u=r.getAttribute("data-tooltip-placement"),d=b2[u]?u:b2[t.tooltipPlacement]?t.tooltipPlacement:"bottom",p=i7(i,{width:a.width,height:a.height},d,f.width,f.height);s.update({x:Math.round(p.left-c),y:Math.round(p.top-l),side:p.side,placed:!0})},l7=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},x2=(t,e)=>{let n=Pe(t);Sy(n),!(!_A(t)||!e.isConnected)&&(n.shown&&n.shown!==e&&wA(n.shown,n.id),n.shown=e,s7(e,n.id),t.state.update({open:!0,placed:!1,title:e.getAttribute("data-tooltip")||"",description:e.getAttribute("data-tooltip-description")||""}),l7(()=>_y(t)))};function wy(t){let e=Pe(t);Sy(e),e.shown&&wA(e.shown,e.id),e.shown=null,_A(t)&&t.state.open&&t.state.update({open:!1})}var by=(t,e)=>{let n=Pe(t);n.dismissed&&n.dismissed!==n.hover&&n.dismissed!==n.focus&&(n.dismissed=null);let r=n.hover&&n.hover!==n.dismissed?n.hover:n.focus&&n.focus!==n.dismissed?n.focus:null;if(r===n.shown){Sy(n);return}if(!r){if(n.showTimer&&(clearTimeout(n.showTimer),n.showTimer=null),!n.shown||n.hideTimer)return;if(e){wy(t);return}n.hideTimer=setTimeout(()=>{n.hideTimer=null,wy(t)},S2(t.tooltipHideDelay,100));return}if(n.hideTimer&&(clearTimeout(n.hideTimer),n.hideTimer=null),e||n.shown){x2(t,r);return}n.showTimer&&clearTimeout(n.showTimer),n.showTimer=setTimeout(()=>{n.showTimer=null,x2(t,r)},S2(t.tooltipDelay,250))},k2=t=>{let e=Pe(t);e.shown&&(e.dismissed=e.shown,wy(t))},SA={role:"tooltip",id:t=>Pe(t).id,data:{tooltipLayer:!0},state:{open:!1,placed:!1,title:"",description:"",x:0,y:0,side:"bottom"},tooltipPlacement:"bottom",display:"flex",flow:"column",gap:"X",theme:"dialog",padding:"Z1 A",round:"Y2",width:"max-content",maxWidth:"F2",textAlign:"center",position:"fixed",zIndex:2500,opacity:(t,e)=>e.open&&e.placed?"1":"0",visibility:(t,e)=>e.open&&e.placed?"visible":"hidden",pointerEvents:(t,e)=>e.open?"auto":"none",transition:"opacity A defaultBezier, visibility A defaultBezier",style:(t,e)=>({top:(e.y||0)+"px",left:(e.x||0)+"px"}),Text:{if:(t,e)=>!!e.title,text:(t,e)=>e.title,fontWeight:500,color:"currentColor"},P:{if:(t,e)=>!!e.description,text:(t,e)=>e.description,fontSize:"Z2",margin:"0",color:"currentColor",fontWeight:400},onDocumentPointerover:{capture:!0,passive:!0,handler:(t,e)=>{if(t.pointerType==="touch")return;let n=Pe(e),r=bA(t.target),o=r7(e,r)?n.shown:w2(e,r);o===n.hover&&(o||!n.shown)||(n.hover=o,by(e,!1))}},onDocumentPointerout:{capture:!0,passive:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=Pe(e);n.hover&&(n.hover=null,by(e,!1))}},onDocumentPointerdown:{capture:!0,passive:!0,handler:(t,e)=>{let n=Pe(e),r=bA(t.target);n.shown&&r&&n.shown.contains(r)&&k2(e)}},onDocumentFocusin:{capture:!0,handler:(t,e)=>{let n=Pe(e),r=bA(t.target),o=r&&o7(r)?w2(e,r):null;o!==n.focus&&(n.focus=o,by(e,!0))}},onDocumentFocusout:{capture:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=Pe(e);n.focus&&(n.focus=null,by(e,!0))}},onDocumentKeydown:{capture:!0,handler:(t,e)=>{(t.key==="Escape"||t.key==="Esc")&&k2(e)}},onDocumentScroll:{capture:!0,passive:!0,handler:(t,e)=>{Pe(e).shown&&_y(e)}},onWindowResize:(t,e)=>{Pe(e).shown&&_y(e)},onBeforeRemove:t=>{let e=Pe(t);Sy(e),e.shown&&wA(e.shown,e.id),e.shown=e.hover=e.focus=e.dismissed=null}};var E2={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:t=>Ut(t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:t=>t.parent.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.description,t))||t.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},v2={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:t=>{let e=!t.shapeDirection||t.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(t,e)}},A2={position:"relative",zIndex:999,onInit:t=>{let{Tooltip:e,TooltipHidden:n}=t,r=e||n;if(!r)return;let o=r&&r[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var kA={};B(kA,{Avatar:()=>T2});var f7=t=>{let n=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="32" fill="#71718A"/><text x="32" y="42" font-family="system-ui,sans-serif" font-size="28" font-weight="700" text-anchor="middle" fill="#fff">${String(t||"").trim().charAt(0).toUpperCase()||"?"}</text></svg>`;return"data:image/svg+xml;utf8,"+encodeURIComponent(n)},T2={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:t=>`https://api.dicebear.com/7.x/${t.avatarType||"initials"}/svg?seed=${t.key||"no-avatar"}`,onError:(t,e)=>{if(!e.node||e.node.__avatarFallbackApplied)return;e.node.__avatarFallbackApplied=!0;let n=e.node.getAttribute("alt")||(e.key!=="no-avatar"?e.key:"");e.node.src=f7(n)},attr:{alt:t=>t.alt!=null?t.alt:t.text?t.call("exec",t.text,t):t.key&&t.key!=="no-avatar"?t.key:""}};var EA={};B(EA,{Range:()=>C2});var C2={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,n)=>{n.update({value:parseFloat(e.node.value)})},onChange:(t,e,n)=>{n.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:Ba("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:Ba("#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,n)=>{let r=t.call("exec",t[e],t);return(t.call("isFunction",r)?r(t,t.state):r!==void 0?r:n!==void 0?n:0)+""}},attr:{type:"range",value:(t,e)=>t.call("exec",e.value||t.value||t.defaultValue,t),min:(t,e)=>t.deps.returnPropertyValue(t,"min",0),max:(t,e)=>t.deps.returnPropertyValue(t,"max",100),step:(t,e)=>t.deps.returnPropertyValue(t,"step",1)}};var IA={};B(IA,{Dropdown:()=>tF,DropdownDisclosure:()=>rF,DropdownList:()=>eF,DropdownParent:()=>nF,DropdownParentFocus:()=>oF,DropdownSiblingFocus:()=>sF});Mt();var Ty="hover",L2="focus",Ud="sibling",Yr="disclosure",O2={menu:1,listbox:1,tree:1,grid:1,dialog:1},u7={DIV:1,SPAN:1,LABEL:1,P:1,STRONG:1,B:1,EM:1,SMALL:1,H1:1,H2:1,H3:1,H4:1,H5:1,H6:1},d7={BUTTON:1,INPUT:1,SELECT:1,TEXTAREA:1},p7='button, a[href], [role^="menuitem"], [role="option"]',h7={ArrowDown:1,Down:1,ArrowUp:-1,Up:-1,Home:"first",End:"last"},ky=new WeakMap,Ey=new WeakMap,vy=new WeakMap,AA=new WeakMap,D2=new WeakSet,g7=0,wt=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},zc=(t,e)=>{let n=wt(t);return n?n.getAttribute(e):null},Dt=(t,e)=>{let n=wt(t);return!!n&&!!e&&(n===e||n.contains(e))},vA=t=>{let e=wt(t);return!!e&&e.hasAttribute("dropdown")},TA=t=>{let e=wt(t);return!!e&&e.tagName==="BUTTON"},xy=t=>TA(t)||zc(t,"role")==="button",R2=t=>{let e=wt(t);return!!e&&u7[e.tagName]===1&&!e.isContentEditable},I2=t=>{let e=wt(t);return!!e&&!e.disabled&&!e.hidden&&e.getAttribute("aria-disabled")!=="true"},Vd=t=>{let e=zc(t,"role");return!!e&&e.indexOf("menuitem")===0&&I2(t)},m7=t=>{let e=wt(t);if(!e||!I2(t))return!1;if(d7[e.tagName]===1)return e.getAttribute("type")!=="hidden";if(e.tagName==="A"&&e.hasAttribute("href"))return!0;let n=e.getAttribute("tabindex");return n!==null&&parseInt(n,10)>=0},wi=t=>t&&typeof t.getChildren=="function"?t.getChildren():[],Le=t=>t&&typeof t.dropdownMode=="string"?t.dropdownMode:null,CA=t=>{let e=t&&t.Input_trigger;return e&&e.__ref?e:null},M2={tabindex:"tabIndex","aria-expanded":"ariaExpanded","aria-haspopup":"ariaHaspopup","aria-controls":"ariaControls","aria-labelledby":"ariaLabelledby","aria-label":"ariaLabel","aria-hidden":"ariaHidden"},N2=(t,e)=>{if(t[e]!==void 0)return!0;let n=M2[e];if(n!==void 0&&t[n]!==void 0)return!0;let r=t.attr;if(r&&typeof r=="object"&&r[e]!==void 0)return!0;if(e.indexOf("aria-")===0){let o=t.aria;if(o&&typeof o=="object"&&o[e.slice(5)]!==void 0)return!0}return!1},y7=(t,e)=>{let n=M2[e],r=t.attr;return typeof t[e]=="function"||n!==void 0&&typeof t[n]=="function"||!!r&&typeof r=="object"&&typeof r[e]=="function"},gr=(t,e,n)=>!e.hasAttribute(n)&&!N2(t,n),Yo=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},b7=(t,e)=>{let n=wt(t);if(n)for(let r in e)Yo(n,r,e[r])},Ay=t=>{let e=wt(t);return!e||typeof e.focus!="function"?!1:(e.focus(),e.ownerDocument.activeElement===e)},_7=t=>{let e=ky.get(t);return e||(e={id:"smbls-dropdown-"+ ++g7,open:null,trigger:null,panel:null,popup:null,popupRole:null,owns:!1,pressedOpen:!1,written:null,outside:null,outsideDoc:null},ky.set(t,e)),e},P2=(t,e)=>!!e&&!!wt(e)&&!!t&&t[e.key]===e,w7=(t,e)=>{let n=null,r=null;if(e===Ud){let s=t.parent?wi(t.parent):[];for(let i=s.indexOf(t)+1;i>0&&i<s.length&&s[i];i++)if(vA(s[i])){n=s[i];break}return(xy(t)||R2(t))&&(r=t),{panel:n,trigger:r}}let o=wi(t);for(let s=0;s<o.length;s++)if(vA(o[s])){n=o[s];break}if(xy(t))return{panel:n,trigger:t};for(let s=0;s<o.length;s++){let i=o[s];if(!(!wt(i)||i.key==="Input_trigger"||vA(i))){(xy(i)||R2(i))&&(r=i);break}}return{panel:n,trigger:r}},S7=t=>{let e=zc(t,"role");if(e&&O2[e]===1)return{el:t,role:e};let n=wi(t);for(let r=0;r<n.length;r++){let o=zc(n[r],"role");if(o&&O2[o]===1)return{el:n[r],role:o}}return null},Sn=t=>{let e=Le(t);if(!e||!wt(t))return null;let n=_7(t);if(n.trigger){let p=e===Ud?t.parent:t;if((n.trigger===t||P2(t,n.trigger))&&P2(p,n.panel))return n}let{panel:r,trigger:o}=w7(t,e);if(!r||!o)return n.trigger=n.panel=n.popup=null,null;n.trigger=o,n.panel=r;let s=e===Yr?null:S7(r);n.popup=s?s.el:null,n.popupRole=s?s.role:null;let i=wt(o),a={},c=i.getAttribute("id");n.popupRole==="menu"&&!c&&gr(o,i,"id")&&(a.id=c=n.id+"-trigger"),xy(o)||(gr(o,i,"role")&&(a.role="button"),gr(o,i,"tabindex")&&(a.tabindex="0")),n.popupRole&&gr(o,i,"aria-haspopup")&&(a["aria-haspopup"]=n.popupRole);let l=wt(r),f=l.getAttribute("id");if(!f&&gr(r,l,"id")&&(f=n.id+"-panel",Yo(l,"id",f)),f&&gr(o,i,"aria-controls")&&(a["aria-controls"]=f),n.owns=gr(o,i,"aria-expanded"),n.written={open:null,expanded:null},n.owns&&(n.written.expanded=Cy(t,n)?"true":"false",a["aria-expanded"]=n.written.expanded),b7(o,a),n.popupRole==="menu"&&c){let p=wt(n.popup);gr(n.popup,p,"aria-label")&&gr(n.popup,p,"aria-labelledby")&&Yo(p,"aria-labelledby",c)}o!==t&&e===L2&&zc(t,"tabindex")==="0"&&!y7(t,"tabindex")&&Yo(wt(t),"tabindex","-1");let u=CA(t),d=wt(u);return d&&!d.hasAttribute("tabindex")&&(N2(u,"tabindex")||Yo(d,"tabindex","-1"),gr(u,d,"aria-hidden")&&Yo(d,"aria-hidden","true")),Si(t,n),n},$2=t=>{let e=wt(t),n=e&&e.ownerDocument.activeElement;return n&&n!==e.ownerDocument.body?n:null},F2=t=>Dt(t,$2(t)),Cy=(t,e,n)=>{if(e.open!==null)return e.open;let r=Le(t);return n||r===Ty||r===Yr?!1:F2(t)},Si=(t,e,n)=>{let r=e.open===null?null:String(e.open);if(e.written.open!==r){e.written.open=r;let s=wt(t);s&&Yo(s,"data-dropdown-open",r)}if(!e.owns)return;let o=Cy(t,e,n)?"true":"false";if(e.written.expanded!==o){e.written.expanded=o;let s=wt(e.trigger);s&&Yo(s,"aria-expanded",o)}},ki=t=>{let e=Ey.get(t);return e||(e={stop:null,stopItem:null,chosen:!1,ready:!1,settling:!1,checks:null,checkRows:null,owned:!1},Ey.set(t,e)),e},B2=(t,e)=>{if(t.stopItem===e&&t.stop===e.key)return;let n=t.stopItem&&vy.get(t.stopItem);t.stop=e.key,t.stopItem=e,n&&n.set(!1);let r=vy.get(e);r&&r.set(!0)},j2=(t,e)=>{let n=ki(t);n.chosen=!0,B2(n,e)},U2=t=>{let e=ki(t);if(e.settling=!1,e.chosen)return;let n=wi(t);for(let r=0;r<n.length;r++)if(Vd(n[r])){B2(e,n[r]);return}},V2=(t,e)=>{if(!e||!e.contains(t))return!1;let n=[];for(let o=t;o!==e;o=o.parentElement)n.push(o);n.push(e);let r=!1;for(let o=n.length-1;o>=0;o--){let s=typeof n[o].getAnimations=="function"?n[o].getAnimations():[];for(let i=0;i<s.length;i++)s[i].transitionProperty==="visibility"&&(s[i].finish(),r=!0)}return r},z2=(t,e)=>{let n=wt(t);if(!n)return;let r=n.ownerDocument.activeElement,o=Ay(t);!o&&e&&n.ownerDocument.activeElement===r&&V2(n,wt(e))&&(o=Ay(t));let s=t.parent;o&&s&&Ey.has(s)&&j2(s,t)},x7=t=>{let e=t.popupRole==="menu"?t.popup:t.panel;return!e||typeof e.lookdownAll!="function"?[]:e.lookdownAll(t.popupRole==="menu"?Vd:m7)},k7=(t,e,n)=>{if(n==="trigger"){let s=$2(t);(!Dt(t,s)&&!Dt(e.panel,s)||Dt(CA(t),s))&&Ay(e.trigger);return}let r=x7(e);if(!r.length)return;let o=n==="last"?r[r.length-1]:null;if(!o)for(let s=0;s<r.length&&!o;s++)zc(r[s],"aria-checked")==="true"&&(o=r[s]);z2(o||r[0],e.panel)},OA=(t,e,n)=>{let r=wt(t),o=r&&r.ownerDocument;n&&!e.outside&&o?(e.outside=s=>{if(!wt(t)||!wt(t).isConnected){OA(t,e,!1);return}Dt(t,s.target)||Dt(e.panel,s.target)||he(t,e,!1)},e.outsideDoc=o,o.addEventListener("pointerdown",e.outside,!0)):!n&&e.outside&&(e.outsideDoc.removeEventListener("pointerdown",e.outside,!0),e.outside=e.outsideDoc=null)},H2=(t,e)=>{let n=wt(t),r=n&&n.ownerDocument&&n.ownerDocument.defaultView;if(!r||typeof r.Event!="function")return;let o=new r.Event("toggle");Object.defineProperty(o,"newState",{value:e?"open":"closed"}),Object.defineProperty(o,"oldState",{value:e?"closed":"open"}),n.dispatchEvent(o)},Hc=(t,e,n)=>{let r=e.open===!0;if(e.open=!0,Si(t,e),Le(t)===Yr){OA(t,e,!0);let o=wt(e.panel);o&&V2(o,o),r||H2(t,!0)}n&&k7(t,e,n)},he=(t,e,n)=>{let r=e.open===!0;e.open=!1,Si(t,e),e.outside&&OA(t,e,!1),n&&Ay(e.trigger),r&&Le(t)===Yr&&H2(t,!1)},E7=t=>{let e=t.__ref;if(!e||Le(t)!==Yr||!Object.prototype.hasOwnProperty.call(t,"open"))return;let n=Y(()=>{let r=t.open;r!=null&&ss(()=>{let o=Sn(t);!o||!!r==(o.open===!0)||(r?Hc(t,o,null):he(t,o,F2(t)))})},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(n)},Oy=(t,e,n)=>e.trigger===t?!Dt(e.panel,n):Dt(e.trigger,n)?!0:Dt(CA(t),n),RA=(t,e)=>{let n=e&&typeof e.closest=="function"?e.closest(p7):null;return!!n&&Dt(t,n)},W2=(t,e,n)=>{let r=t.key;r==="Escape"||r==="Esc"?(t.preventDefault(),he(e,n,!0)):r==="Tab"&&n.popupRole==="menu"&&Dt(n.popup,t.target)&&he(e,n,!1)},Ry=t=>{Le(t)===Ud&&t.parent&&D2.add(t.parent),Sn(t),E7(t)},Py=(t,e)=>{let n=Sn(e);n&&(n.pressedOpen=Cy(e,n))},v7=(t,e)=>{let n=ky.get(e);!n||!n.trigger||n.open!==!1||Le(e)!==Ty||(n.open=null,Si(e,n))},Ly=(t,e)=>{if(Le(e)===Yr){T7(t,e);return}if(t.defaultPrevented)return;let n=Sn(e);if(!n)return;let r=t.target;if(Dt(n.panel,r)){if(Le(e)!==Ty||!RA(n.panel,r))return;(n.open===!0||t.detail===0)&&he(e,n,!0);return}if(!Oy(e,n,r))return;let o=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,o?he(e,n,!0):Hc(e,n,n.popupRole==="menu"?"first":"trigger")},Dy=(t,e)=>{if(t.defaultPrevented)return;if(Le(e)===Yr){C7(t,e);return}let n=Sn(e);if(!n)return;let r=t.target;if(Dt(n.panel,r)){W2(t,e,n);return}if(!Oy(e,n,r))return;let o=t.key;if(o==="ArrowDown"||o==="Down"||o==="ArrowUp"||o==="Up")t.preventDefault(),Hc(e,n,o==="ArrowUp"||o==="Up"?"last":"first");else if(o==="Escape"||o==="Esc"){if(!Cy(e,n))return;t.preventDefault(),he(e,n,!1)}else(o==="Enter"||o===" "||o==="Spacebar")&&!TA(n.trigger)&&(t.preventDefault(),n.open===!0?he(e,n,!0):Hc(e,n,n.popupRole==="menu"?"first":"trigger"))},A7=t=>!!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey),T7=(t,e)=>{let n=Sn(e);if(!n)return;let r=t.target;if(Dt(n.panel,r)){n.open===!0&&!A7(t)&&e.keepOpen!==!0&&RA(n.panel,r)&&he(e,n,!0);return}if(t.defaultPrevented||!Oy(e,n,r))return;let o=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,o?he(e,n,!0):Hc(e,n,"trigger")},C7=(t,e)=>{let n=Sn(e);if(!n)return;let r=t.key;if(r==="Escape"||r==="Esc"){if(n.open!==!0)return;t.preventDefault(),he(e,n,!0);return}(r==="Enter"||r===" "||r==="Spacebar")&&!TA(n.trigger)&&!Dt(n.panel,t.target)&&Oy(e,n,t.target)&&(t.preventDefault(),n.open===!0?he(e,n,!0):Hc(e,n,"trigger"))},PA=(t,e)=>{let n=Sn(e);n&&(n.open===null&&Dt(n.panel,t.target)&&(n.open=!0),Si(e,n))},zd=(t,e)=>{let n=ky.get(e);if(!n||!n.trigger)return;let r=t.relatedTarget;if(Le(e)===Yr){n.open===!0&&r&&!Dt(e,r)&&!Dt(n.panel,r)&&he(e,n,!1);return}if(r&&(Dt(e,r)||Dt(n.panel,r))){n.open===null&&Dt(n.panel,r)&&(n.open=!0,Si(e,n));return}n.open=null,Si(e,n,!0)},K2=t=>{let e=t.parent;if(!e||!D2.has(e))return null;let n=wi(e);for(let r=n.indexOf(t)-1;r>=0&&n[r];r--)if(Le(n[r])===Ud)return n[r];return null},LA=t=>{let e=K2(t),n=e?Sn(e):null;return n&&n.panel===t?{ctrl:e,rec:n}:null},q2=t=>{let e=K2(t);e&&Sn(e)},G2=(t,e)=>{if(t.defaultPrevented)return;let n=LA(e);n&&W2(t,n.ctrl,n.rec)},Y2=(t,e)=>{if(t.defaultPrevented||!RA(e,t.target))return;let n=LA(e);n&&he(n.ctrl,n.rec,!0)},X2=(t,e)=>{let n=LA(e);n&&zd(t,n.ctrl)},O7=(t,e)=>{let n=e.parent,r=Le(n)?Sn(n):null;if(r&&r.panel===e){he(n,r,!0);return}let o=wt(e),s=o&&o.ownerDocument.activeElement;s&&typeof s.blur=="function"&&s.blur()},Z2=(t,e)=>{if(Le(e.parent)&&Sn(e.parent))return;let n=wt(e);n&&n===n.ownerDocument.activeElement&&n.blur()},R7=(t,e)=>{if(t.defaultPrevented)return;let n=h7[t.key];if(!n)return;let r=typeof e.lookdownAll=="function"?e.lookdownAll(Vd):[];if(!r.length)return;let o=-1;for(let i=0;i<r.length&&o===-1;i++)Dt(r[i],t.target)&&(o=i);let s;n==="first"?s=0:n==="last"?s=r.length-1:o===-1?s=n>0?0:r.length-1:s=(o+n+r.length)%r.length,t.preventDefault(),z2(r[s])},P7=(t,e)=>{let n=wi(e);for(let r=0;r<n.length;r++)if(Dt(n[r],t.target)){Vd(n[r])&&j2(e,n[r]);return}},L7=t=>{let e=t.parent;if(!e)return"0";let n=ki(e),r=vy.get(t);if(!r){n.stop===null&&(n.stop=t.key);let o=n.stop===t.key;o&&(n.stopItem=t),n.ready&&!n.chosen&&!n.settling&&(n.settling=!0,queueMicrotask(()=>U2(e))),r=vn(o),vy.set(t,r)}return r.get()?"0":"-1"},D7=t=>{q2(t);let e=ki(t);e.ready=!0,!(e.stopItem&&e.stopItem.parent===t&&Vd(e.stopItem))&&U2(t)},I7=t=>{let e=AA.get(t),n=!e;n&&(e={tick:vn(0),seen:0,checked:!1},AA.set(t,e));let r=e.tick.get();return r===e.seen&&(e.checked=!!ss(()=>t.isActive)),e.seen=r,n&&t.parent&&N7(t.parent),e.checked?"true":"false"},M7=(t,e)=>{if(e.checkRows.get(),!t.node){Q2(t);return}let n=wi(t);for(let r=0;r<n.length;r++){let o=AA.get(n[r]);if(!o)continue;let s=!!n[r].isActive;s!==o.checked&&(o.checked=s,o.tick.set(o.tick.peek()+1))}},J2=t=>{let e=ki(t);e.checks||(e.checkRows||(e.checkRows=vn(0)),e.checks=Y(()=>M7(t,e),{label:"DropdownList.checks"}))},Q2=t=>{let e=Ey.get(t);!e||!e.checks||(e.checks.dispose(),e.checks=null)},N7=t=>{let e=ki(t);e.checks?e.checkRows.set(e.checkRows.peek()+1):e.owned||J2(t)},$7=t=>{ki(t).owned=!0},xi={transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"},DA={opacity:0,visibility:"hidden"},tF={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"transform B defaultBezier, opacity B defaultBezier, visibility B defaultBezier",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden",onComplete:{always:!0,handler:q2},onKeydown:G2,onClick:Y2,onFocusout:X2},eF={display:"flex",attr:{dropdown:!0},role:"menu",padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",listStyleType:"none",transition:"transform B defaultBezier, opacity B defaultBezier, visibility B defaultBezier",children:t=>t.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},onKeydown:(t,e)=>{R7(t,e),G2(t,e)},onInit:{always:!0,handler:$7},onComplete:{always:!0,handler:D7},onRender:{always:!0,handler:J2},onBeforeRemove:{always:!0,handler:Q2},onFocusin:P7,onClick:Y2,onFocusout:X2,childExtends:{extends:"Button",state:{},role:"menuitemradio",tabindex:t=>L7(t),aria:{checked:t=>I7(t)},isActive:(t,e)=>e.active===t.key,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"}}},':where([aria-checked="true"])':{style:{svg:{opacity:"1"}}},Icon:{name:"check",opacity:"0.1"},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},nF={position:"relative",zIndex:999,dropdownMode:Ty,":hover":{zIndex:1e3,"& [dropdown]":{...xi}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...xi}},'[data-dropdown-open="false"]:hover':{"& [dropdown]":{...DA}},onComplete:{always:!0,handler:Ry},onPointerdown:Py,onPointerenter:v7,onClick:Ly,onKeydown:Dy,onFocusin:PA,onFocusout:zd},rF={position:"relative",dropdownMode:Yr,'[data-dropdown-open="true"]':{zIndex:1e3,"& > [dropdown]":{...xi}},onComplete:{always:!0,handler:Ry},onPointerdown:Py,onClick:Ly,onKeydown:Dy,onFocusout:zd},oF={position:"relative",tabindex:"0",dropdownMode:L2,":focus-within":{zIndex:1e3,"& [dropdown]":{...xi}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...xi}},'[data-dropdown-open="false"]:focus-within':{"& [dropdown]":{...DA}},onComplete:{always:!0,handler:Ry},onPointerdown:Py,onClick:Ly,onKeydown:Dy,onFocusin:PA,onFocusout:zd,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>Z2(t,e)},Dropdown:{onClick:(t,e)=>O7(t,e)}},sF={position:"relative",tabindex:"0",dropdownMode:Ud,":focus-within":{zIndex:1e3,"& ~ [dropdown]":{...xi}},'[data-dropdown-open="true"]':{zIndex:1e3,"& ~ [dropdown]":{...xi}},'[data-dropdown-open="false"]:focus-within':{"& ~ [dropdown]":{...DA}},onComplete:{always:!0,handler:Ry},onPointerdown:Py,onClick:Ly,onKeydown:Dy,onFocusin:PA,onFocusout:zd,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>Z2(t,e)}};var MA={};B(MA,{Notification:()=>iF});var iF={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}};var Ei=Object.assign({},hv,gv,mv,yv,_v,kv,Ev,vv,Sv,Av,Tv,xv,Cv,Ov,Rv,Pv,Lv,Dv,Iv,Mv,Nv,$v,jv,dA,pA,hA,mA,xA,kA,EA,IA,MA);function Iy(t){if(t==null)return 0;if(typeof t!="object")return aF(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let r=0;r<t.length;r++)e=(e^Iy(t[r]))*16777619;return e>>>0}let n=Object.keys(t).sort();for(let r=0;r<n.length;r++)e=(e^aF(n[r]))*16777619,e=(e^Iy(t[n[r]]))*16777619;return e>>>0}function aF(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e}function My(t,e){if(t===e)return!0;if(t===null||e===null||typeof t!=typeof e||typeof t!="object")return!1;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(!My(t[o],e[o]))return!1;return!0}let n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++){let s=n[o];if(!Object.prototype.hasOwnProperty.call(e,s)||!My(t[s],e[s]))return!1}return!0}function NA(t,e){if(e===void 0)return t;if(t===void 0)return e;if(e===null)return null;if(typeof e!="object"||Array.isArray(e))return e;if(typeof t!="object"||Array.isArray(t))return{...e};let n=!1,r={};for(let o in t)if(o in e){let s=NA(t[o],e[o]);r[o]=s,s!==t[o]&&(n=!0)}else r[o]=t[o];for(let o in e)o in t||(r[o]=e[o],n=!0);return n?r:t}function $A(t,e,n){if(!e||typeof e!="object")return t;if(!t||typeof t!="object")return e;if(n||(n=new WeakSet),n.has(e))return t;n.add(e);for(let r in e){let o=e[r];o&&typeof o=="object"&&!Array.isArray(o)&&t[r]&&typeof t[r]=="object"&&!Array.isArray(t[r])?$A(t[r],o,n):t[r]=o}return t}function Xo(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e.toString(36)}function Kc(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function Hd(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Xo(e)}function cF(t){return t.split(`
89
+ `).map(Xo).join(`
90
+ `)}var lF={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",paddingBlock:"pbl",paddingInline:"pin",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",marginBlock:"mbl",marginInline:"min",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk",scrollBehavior:"sb",inset:"ins"};function fF(t,e){let n=lF[t]||Xo(t),r=Hd(e),o=`_${n}-${r}`,s=Kc(t),i=U7[s],a=i?`${s}: ${e};${i}: ${e}`:`${s}: ${e}`,c=`.${o}{${a}}`;return`${o}
91
+ ${c}`}var U7={"backdrop-filter":"-webkit-backdrop-filter","user-select":"-webkit-user-select","mask-image":"-webkit-mask-image","mask-size":"-webkit-mask-size","mask-repeat":"-webkit-mask-repeat","mask-position":"-webkit-mask-position","mask-clip":"-webkit-mask-clip","mask-origin":"-webkit-mask-origin","background-clip":"-webkit-background-clip"},V7="@media (hover: hover)",z7=/(?:^|[^\\]):hover(?![\w-])/,uF=t=>typeof t=="string"&&(t.indexOf("{")!==-1||t.indexOf("}")!==-1);function dF(t){let e=t.split("\0"),n=[],r=[];for(let o=0;o+1<e.length;o+=2){let s=e[o],i=e[o+1];if(!i||uF(i))continue;let a=lF[s]||Xo(s),c=Hd(i),l=`_${a}-${c}`,f=Kc(s);n.push(l),r.push(`.${l}{${f}:${i}}`)}return n.join(" ")+"\0"+r.join(`
92
+ `)}function pF(t,e,n){let r=t+e,o=`_c${Xo(r)}`,s=e.split("\0"),i="";for(let l=0;l+1<s.length;l+=2){let f=s[l],u=s[l+1];u&&(uF(u)||(i+=`${Kc(f)}:${u};`))}let a,c;if(t.startsWith("@media"))c=`.${o}`,a=`${t}{${c}{${i}}}`;else if(t.startsWith(":")||t.startsWith("&")||t.startsWith("[")&&!t.includes("&")){let l=t.startsWith("&")?t.slice(1):t;c=`.${o}${l}`,a=`${c}{${i}}`}else t.includes("&")?(c=t.replace("&",`.${o}`),a=`${c}{${i}}`):(c=`.${o} ${t}`,a=`${c}{${i}}`);return n!==!1&&z7.test(c)&&(a=`${V7}{${a}}`),`${o}
93
+ ${a}`}var FA=null;function $y(t){FA=t}var Bn={structuralHash:Iy,deepEqual:My,mergeStructural:NA,overwriteDeep:$A,shortHash:Xo,toKebab:Kc,sanitizeValue:Hd,batchShortHash:cF,atomicCssClass:fF,batchAtomicCss:dF,compoundCssClass:pF},hF=!1,Ny=null;function gF(t){return Ny||(Ny=import(t||"@symbo.ls/wasm/pkg").then(e=>(e.structuralHash&&(Bn.structuralHash=e.structuralHash),e.deepEqual&&(Bn.deepEqual=e.deepEqual),e.mergeStructural&&(Bn.mergeStructural=e.mergeStructural),e.overwriteDeep&&(Bn.overwriteDeep=e.overwriteDeep),e.shortHash&&(Bn.shortHash=e.shortHash),e.toKebab&&(Bn.toKebab=e.toKebab),e.sanitizeValue&&(Bn.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(Bn.batchShortHash=e.batchShortHash),e.atomicCssClass&&(Bn.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(Bn.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(Bn.compoundCssClass=e.compoundCssClass),hF=!0,FA&&e.batchAtomicCss&&FA({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),Ny)}function mF(){return hF}M();var Wd={};B(Wd,{BRENDER_REGISTRY_BLOCK:()=>qf,BRENDER_REGISTRY_TREE_BLOCK:()=>Gf,BRENDER_STAMP_META:()=>dg,CDN_PROVIDERS:()=>rn,DESIGN_SYSTEM_BLOCK:()=>Jf,DESIGN_SYSTEM_DEFERRED:()=>Zf,DESIGN_SYSTEM_LINK:()=>Xf,DOMQL_EVENTS:()=>ow,DOMQ_PROPERTIES:()=>so,ELEMENT_METHOD_OVERRIDE_POINTS:()=>oa,ENV:()=>Tw,HTML_TAGS:()=>ua,LIBRARY_PACKAGES:()=>fg,LIBRARY_SCOPES_KEY:()=>Cs,METHODS:()=>ao,METHODS_EXL:()=>Ml,NODE_ENV:()=>An,OPTIONS:()=>uf,PACKAGE_MANAGER_TO_CDN:()=>_o,PARSED_DOMQ_PROPERTIES:()=>Il,POLYGLOT_LANG_STORAGE_KEY:()=>Qh,PROPS_METHODS:()=>io,PROTOTYPE_KEYS:()=>Sr,REVIVED_MARK:()=>Vl,STATE_DATA_MERGE_EXL:()=>Ah,STATE_METHODS:()=>cs,STATE_PROPERTIES:()=>nw,SVG_TAGS:()=>FO,TYPES:()=>Tl,UNIVERSAL_RESERVED_KEYS:()=>Jh,__resetBuiltinMethodWarnings:()=>Px,addCaching:()=>wh,addContext:()=>_h,addExtend:()=>Xw,addExtends:()=>qn,addItemAfterEveryElement:()=>V_,addProtoToArray:()=>Rl,addRef:()=>mh,alternateLinkKey:()=>Ps,applyCSS:()=>VA,applyDependentState:()=>gS,applyEvent:()=>Th,applyEventUpdate:()=>Ch,applyExtends:()=>UO,applyProps:()=>rf,arrayContainsOtherArray:()=>M_,arraysEqual:()=>H_,arrayzeValue:()=>Is,bareLibraryKey:()=>Ff,bindLibraryGlobalScopes:()=>jf,brenderStampMeta:()=>jx,buildImgSrcset:()=>eu,buildSourcesAndImg:()=>nu,cache:()=>wS,call:()=>ax,captureSnapshot:()=>lx,checkForStateTypes:()=>uS,checkIfInherits:()=>vh,checkIfStringIsInArray:()=>q_,clone:()=>dw,cloneAndMergeArrayExtend:()=>Yl,cloneFunction:()=>Iw,collectExtendsList:()=>da,concatAddExtends:()=>qw,copyJavaScriptToClipboard:()=>Kx,copyStringToClipboard:()=>Wx,createBasedOnType:()=>gh,createElement:()=>fS,createElementExtends:()=>rh,createExtends:()=>Zl,createExtendsFromKeys:()=>pa,createExtendsStack:()=>ah,createIfConditionFlag:()=>Mw,createInheritedState:()=>dS,createKey:()=>Kl,createNestedObject:()=>ww,createNestedObjectByKeyPath:()=>hS,createObjectWithoutPrototype:()=>Xp,createParent:()=>yh,createPath:()=>bh,createProps:()=>of,createPropsStack:()=>ph,createPrunedLibraryIconLoader:()=>yg,createRoot:()=>lS,createScope:()=>yS,createSnapshotId:()=>Wl,currentPathname:()=>vs,customDecodeURIComponent:()=>ew,customEncodeURIComponent:()=>tw,cutArrayAfterValue:()=>j_,cutArrayBeforeValue:()=>B_,debounce:()=>Gl,debounceOnContext:()=>Lw,decodeBrenderRegistry:()=>Yf,decodeNewlines:()=>Q_,deepClone:()=>pt,deepContains:()=>bw,deepDefaults:()=>Ra,deepDestringifyFunctions:()=>we,deepExtend:()=>nh,deepMerge:()=>bt,deepMergeExtends:()=>Gn,deepStringifyFunctions:()=>Bl,defineSetter:()=>sx,designSystemBlock:()=>Bx,designSystemLink:()=>Fx,destringifyGlobalScope:()=>gs,detectHeightOnInit:()=>mx,detectInfiniteLoop:()=>Ew,document:()=>kt,elementPath:()=>Rn,encodeNewlines:()=>J_,error:()=>ks,escapeHtml:()=>V,escapeRegExp:()=>G_,evaluateText:()=>bo,excludeKeysFromObject:()=>Aw,exec:()=>St,exposeBagGlobalScopes:()=>Uf,extendCachedRegistry:()=>Gw,extendStackRegistry:()=>Jl,extractArrayExtend:()=>tf,faviconLinkKey:()=>xo,fetchLibraryData:()=>Da,fibonacciNumberByIndex:()=>yx,fileEntryUrl:()=>pg,filterArrays:()=>W_,filterArraysFast:()=>K_,finalizeExtends:()=>ch,findClosestNumber:()=>hg,findClosestNumberInFactory:()=>Hx,findInheritedState:()=>Eh,findKeyPosition:()=>X_,flattenExtend:()=>ha,formatDate:()=>gx,generateHash:()=>Qp,generateHeadArrayTags:()=>Ia,generateKey:()=>Hl,generateMetaTags:()=>Vx,get:()=>ex,getActiveRoute:()=>lA,getCDNDirUrl:()=>og,getCDNUrl:()=>Pn,getCapitalCaseKeys:()=>Qw,getCdnProviderFromConfig:()=>Ca,getChildStateInKey:()=>kh,getChildren:()=>ox,getContext:()=>Cf,getCookie:()=>jw,getDB:()=>Df,getEmotionStylesheet:()=>Qx,getExtendsInElement:()=>Zw,getExtendsStack:()=>Xl,getExtendsStackRegistry:()=>eh,getFrequencyInArray:()=>N_,getFunctionSource:()=>Fe,getHashedExtend:()=>Ql,getImportMapScript:()=>hx,getInObjectByPath:()=>kw,getLocalStorage:()=>Vw,getNev:()=>Pw,getPageMetadata:()=>zx,getParentStateInKey:()=>xh,getPath:()=>xf,getQuery:()=>If,getRef:()=>rx,getRoot:()=>vf,getRootContext:()=>Tf,getRootData:()=>Af,getRootState:()=>Ef,getRootStateInKey:()=>Sh,getSpreadChildren:()=>tS,global:()=>L_,hasFunction:()=>ie,hasHandlerPlugin:()=>ca,hasOwnProperty:()=>gw,hashContent:()=>Ln,inheritChildExtends:()=>sh,inheritChildPropsExtends:()=>oh,inheritParentProps:()=>sf,inheritRecursiveChildExtends:()=>ih,init:()=>mr,initProps:()=>iS,insertAfterImportMap:()=>Ux,installPrunedLibraryIconLoader:()=>tu,is:()=>_e,isArray:()=>I,isBoolean:()=>Vp,isBuiltinElementMethod:()=>rw,isContextComponent:()=>eS,isCyclic:()=>vw,isDOMNode:()=>ye,isDate:()=>Hp,isDefined:()=>Ut,isDevelopment:()=>lo,isEmpty:()=>Gp,isEmptyObject:()=>mw,isEqualDeep:()=>Yp,isFailedRevival:()=>ps,isFunction:()=>L,isHtmlElement:()=>vl,isLazyFunction:()=>pw,isLocal:()=>Rw,isLoudDevRuntime:()=>nt,isMalformedDependency:()=>As,isMethod:()=>cx,isMobile:()=>Fw,isNode:()=>wr,isNot:()=>I_,isNotProduction:()=>xr,isNull:()=>zp,isNumber:()=>be,isObject:()=>k,isObjectLike:()=>z,isPhoto:()=>bx,isPolyglotRetranslatableKey:()=>ff,isPolyglotWritableKey:()=>ys,isProduction:()=>co,isProtectedElementMethod:()=>ls,isRevived:()=>hs,isStaging:()=>Ow,isState:()=>pS,isString:()=>v,isStringFunction:()=>aa,isStringTag:()=>Ul,isTest:()=>Jp,isTesting:()=>Cw,isUndefined:()=>Zt,isUniversallyReservedKey:()=>fx,isUnresolvableDependency:()=>wo,isValidDependencyMap:()=>Ts,isValidHtmlTag:()=>Hw,isWrappedLibrary:()=>je,joinArrays:()=>ea,jointStacks:()=>Yw,jsonForScript:()=>_s,keys:()=>Xh,lastLevel:()=>my,lastPathname:()=>jc,libraryIconPruneReplacer:()=>Jx,libraryIdentifier:()=>gg,libraryPackageSpecs:()=>Pa,librarySpecsFor:()=>lg,loadCssFile:()=>xx,loadJavascript:()=>kx,loadJavascriptFile:()=>_x,loadJavascriptFileEmbedSync:()=>Sx,loadJavascriptFileSync:()=>wx,loadLazy:()=>nA,loadRemoteCSS:()=>Ex,loadRemoteScript:()=>Oa,log:()=>ix,logGroupIf:()=>$w,logIf:()=>Nw,lookdown:()=>QS,lookdownAll:()=>tx,lookup:()=>JS,lowercaseFirstLetter:()=>as,makeObjectWithoutPrototype:()=>yw,map:()=>uw,mapStringsWithContextComponents:()=>ef,markPolyglotSeeded:()=>Xn,markRevived:()=>ia,markTextNotReady:()=>va,matchRoute:()=>iA,matchesComponentNaming:()=>Yn,memoize:()=>Dw,merge:()=>Lt,mergeSharedLibraries:()=>Vf,mergeSharedLibraryDesignSystems:()=>zf,mergeSharedLibraryTranslations:()=>Hf,mergeStateData:()=>uo,nextElement:()=>Rf,normalizeIgnoreList:()=>Bf,normalizeLibraryKey:()=>Os,objectToString:()=>jl,objectizeStringProperty:()=>nf,overwrite:()=>zl,overwriteDeep:()=>ae,overwriteShallow:()=>ms,overwriteState:()=>mS,parse:()=>Zh,parseDeep:()=>wf,parseQuery:()=>aA,parseRoutePattern:()=>gy,payloadHasComputedIconName:()=>mg,pickStartLang:()=>ng,pickupElementFromProps:()=>uh,pickupPropsFromElement:()=>fh,planLibraryIconPrune:()=>Zx,polyglotAddressLang:()=>tg,polyglotFallbackLang:()=>vr,polyglotLangStorageKey:()=>Ea,polyglotLanguages:()=>Be,polyglotSeededKeys:()=>po,polyglotStartLang:()=>Es,polyglotStartRule:()=>eg,polyglotStartupScript:()=>ux,previousElement:()=>Pf,promoteActiveRootState:()=>xa,propExists:()=>oS,propertizeElement:()=>dh,propertizeUpdate:()=>rS,readBrenderStamp:()=>ws,readJsonDataBlock:()=>Jn,reinit:()=>UA,remove:()=>nR,removeChars:()=>qx,removeCookie:()=>Uw,removeDuplicateProps:()=>cf,removeDuplicatesInArray:()=>na,removeFromArray:()=>$_,removeFromObject:()=>_w,removeNestedKeyByPath:()=>Sw,removeValueFromArray:()=>Ol,removeValueFromArrayAll:()=>U_,reorderArrayByValues:()=>z_,repairLegacyArrowScopePreamble:()=>Nl,replaceLiteralsWithObjectFields:()=>Jt,replaceOctalEscapeSequences:()=>Z_,resolveAsset:()=>Se,resolveFileReferences:()=>Ds,resolveHandler:()=>la,resolveRouterElement:()=>Bd,resolveSharedLibraries:()=>Wf,returnValueAsText:()=>hh,router:()=>Fn,runGuards:()=>Z$,runPluginHook:()=>fo,saveScrollPosition:()=>Id,scopeElementParam:()=>Wp,scopeReceiverExpression:()=>cw,scratchSystem:()=>Qa,scratchUtils:()=>To,self:()=>D_,set:()=>ti,setActiveRootState:()=>kf,setCookie:()=>Bw,setHashedExtend:()=>th,setInObjectByPath:()=>xw,setLocalStorage:()=>zw,setNodeStyles:()=>Yh,setProps:()=>nx,setPropsPrototype:()=>af,sharedLibrary:()=>Rx,sharedLibraryFiles:()=>Rs,splitPackageSpecifier:()=>Mf,spotByPath:()=>Sf,srcsetFor:()=>Ma,stringIncludesAny:()=>Ll,stringToObject:()=>hw,stripVersionRangePrefix:()=>Nf,swapItemsInArray:()=>F_,syncProps:()=>lf,themeColorKey:()=>Ls,toCamelCase:()=>Ar,toDashCase:()=>Qf,toDescriptionCase:()=>Yx,toPriorityOrder:()=>tn,toTitleCase:()=>Gx,toggleFullscreen:()=>px,triggerEventOn:()=>kr,triggerEventOnUpdate:()=>bS,trimStringFromSymbols:()=>Y_,unstackArrayOfObjects:()=>Cl,update:()=>sS,updateProps:()=>aS,variables:()=>Lf,verbose:()=>ka,warn:()=>Of,warnLibraryAliasCollision:()=>La,window:()=>R});M();M();M();var W7={group:"group",imagePair:"image-pair","image-pair":"image-pair",old:"old",new:"new"},K7=/^(?:\*|\.?-?[_a-zA-Z][\w-]*)$/,q7=/^-?[_a-zA-Z][\w-]*$/,G7=new Set(["root","*"]),Y7="@media (prefers-reduced-motion: no-preference)",X7="@media (prefers-reduced-motion: reduce)",Z7=(t,e)=>{let n=v(t)?{animation:t}:k(t)?t:null;if(!n)return null;let r;try{r=ne(n,e)}catch{return null}let o={};for(let s in r){let i=r[s];(v(i)||be(i))&&(o[s]=i)}return Object.keys(o).length?o:null},yF=(t,e,n={})=>{if(!k(t))return null;if(globalThis.__SMBLS_BUILD_DROP_F_viewTransition__)return Object.keys(t).length&&zt("viewTransition")||null;let r=!n.scope||n.scope===":root",o=l=>{n.verbose!==!1&&console.warn("[smbls] designSystem.viewTransition: "+l)},s={key:"viewTransition",state:{},context:{designSystem:e}},i={},a={},c=(l,f,u)=>{for(let d in f){if(d==="types"&&!u)continue;let p=W7[d];if(!p){o(`${l}.${d} is not a view-transition part (group, imagePair, old, new)`);continue}let g=`${u}::view-transition-${p}(${l})`,h=Z7(f[d],s);h&&(i[g]=h,a[g]={animation:"none"})}};for(let l in t){let f=t[l];if(k(f)){if(!K7.test(l)){o(`"${l}" is not a view-transition name`);continue}if(!r&&G7.has(l)){o(`"${l}" belongs to the document's primary app; a scoped app (${n.scope}) emits its own names only`);continue}if(c(l,f,""),k(f.types))for(let u in f.types){if(!q7.test(u)||!k(f.types[u])){o(`${l}.types.${u} is not a view-transition type with parts`);continue}c(l,f.types[u],`:root:active-view-transition-type(${u})`)}}}return Object.keys(i).length?{[Y7]:i,[X7]:a}:null};var J7=P(),_F=(t=J7,e)=>{let n=k(e.localFile)?e.localFile:{},r=pt(n.designSystem||{});return bt(t,r,le)},Q7={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Fy=(t,e)=>{let n=!e||e===":root",r={};for(let o in t)if(o.startsWith("@media")){let s=n?":root:not([data-theme])":`:root:not([data-theme]) ${e}:not([data-theme])`;r[o]={[s]:t[o]}}else n?r[o]=t[o]:r[`${e}${o}, ${o} ${e}`]=t[o];return r},BA=(t,e)=>{t.CSS_MEDIA_VARS&&Ot(Fy(t.CSS_MEDIA_VARS,e));let n=Js(t.cssSkinVars,t.cssSkinFallback,e);Object.keys(n).length&&Ot(n)},wF=(t,e)=>{let n=yF(t.viewTransition,t,{scope:e,verbose:t.verbose});n&&Ot(n)},By=t=>{if(typeof window<"u"&&window.location)try{let e=new URLSearchParams(window.location.search).get("globalTheme");if(e)return e}catch{}return t},bF=(t,e)=>{t.useVariable&&(Ot({[e]:t.CSS_VARS}),BA(t,e)),t.useReset&&Ot(t.reset);let n=t.animation;if(n){let r={};for(let o in n)r[`@keyframes ${o}`]=n[o];Ot(r)}wF(t,e)},SF=(t,e,n,r,o)=>{t.useFontImport&&Ot(cu(t.font,t.files));let s=null;return o?Qu(o):n.recordCss?s=Ju(()=>bF(t,e)):bF(t,e),(r.svg||t.useSvgSprite)&&Fu(t.svg,{document:n.document}),(r.icons||t.useIconSprite)&&Zs(t.icons,{document:n.document}),s},mr=(t,e=Q7)=>{let n=_F(t||{},e),r=e.scopeSelector||":root",o=By(e.globalTheme),s=ti({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:o,themeRoot:e.themeRoot,files:e.files,assets:e.assets,...n},{newConfig:e.newConfig,config:e.config});s&&(s.scopeSelector=r);let i={svg:!!t.svg,icons:!!t.icons},a=SF(s,r,e,i);return a&&typeof e.recordCss=="function"&&e.recordCss({rules:a,sprites:i}),s},jA=(t,e,n,r)=>{let o=n.scopeSelector||":root";if(sm(t.config,e),n.files!==void 0&&(e.files=n.files),n.assets!==void 0&&(e.assets=n.assets),n.themeRoot!==void 0&&(e.themeRoot=n.themeRoot),Eo(e),vo(e),Ku(e),e.__svgCache={},r){mt(e);try{Wu("font",r)}finally{ht()}}mt(e);try{SF(e,o,n,t.sprites||{},t.rules)}finally{ht()}return e},jy={},UA=(t,e=jy)=>{let n=_F(t||{},e),r=e.scopeSelector||":root",o=ti({verbose:!1,...n});return e.preventInject||(Ot({[r]:o.CSS_VARS}),BA(o,r),Ot(o.reset),wF(o,r)),o},VA=(t,e=jy)=>{Ot(t)},tq=(t,e=jy)=>{let n=e.scopeSelector||":root";Ot({[n]:t.CSS_VARS}),BA(t,n)};var eq=(t,e=jy)=>{};M();var xF=10,nq=t=>{let e=t&&t.window||(typeof window<"u"?window:null);return!!e&&typeof e.requestAnimationFrame=="function"},rq=t=>{try{let e=t.defaultView;return e&&e.frameElement||null}catch{return null}},oq=t=>{let e=t&&t.document||(typeof document<"u"?document:null);if(!e)return()=>!0;let n=!!e.defaultView,r=rq(e);return()=>!(n&&!e.defaultView||r&&!r.isConnected)},kF=Symbol("smbls.bootGone"),EF=t=>{let e,n={live:oq(t),dead:!1,gone:new Promise(r=>{e=r}),lost(){n.dead||(n.dead=!0,e(kF))}};return n},qc=t=>t?t.dead?!1:t.live()?!0:(Cd(t),!1):!0,sq=(t,e)=>e?Promise.race([t,e.gone]):t,Zo=async(t,e)=>await sq(t,e)!==kF&&qc(e),zA=t=>{if(!(!t||!t.__ref))try{yn(t)}catch{}},vF=new WeakSet,Gc=t=>(vF.add(t),t),Kd=t=>!!t&&typeof t=="object"&&vF.has(t),AF=t=>{let e=t&&typeof t=="object"?t.firstRender:void 0;if(e===!1||!nq(t))return null;if(e===void 0||e===!0)return{budget:xF,progressive:!1};if(e&&typeof e=="object"){let r=e.budget===void 0?xF:pr(e.budget);return r?{budget:r,progressive:e.progressive===!0}:null}let n=pr(e);return n?{budget:n,progressive:!1}:null},HA=new WeakMap,WA=(t,e)=>(HA.set(t,e),e),KA=t=>{HA.delete(t)},TF=t=>{let e=t&&HA.get(t);return!e||e.routeTaken?null:(e.routeTaken=!0,e)},iq=Object.freeze({deferAttach:!0}),CF=async(t,e,n,r,o)=>{let s=o.lease||null;if(await hr(),!qc(s))return null;let i=r.mountYield;i===void 0&&(r.mountYield=o.budget);let a=r.mountWhole;a===void 0&&(r.mountWhole=!o.progressive),o.pageOptions={mountYield:r.mountYield,mountWhole:r.mountWhole};let c;o.commit=new Promise(d=>{c=d}),o.committed=!1;let l=!o.progressive;WA(n,o);let f=ui(),u=null;s&&(n.__mountLease=s);try{if(u=Xt(t,e,n.key,r,l?iq:void 0),!await Zo(qr(u),s)||o.routeReady&&!await Zo(o.routeReady,s)||!await Zo(Re(),s))return Uy(u);for(;!Ko();)if(!await Zo(Re(),s))return Uy(u);return l&&Vo(u),o.committed=!0,c(),o.page&&await qr(o.page),await Re(),u}finally{o.committed=!0,c(),f(),r.mountYield=i,r.mountWhole=a,s&&(n.__mountLease=null),KA(n)}},Uy=t=>(zA(t),null);var RF=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,aq=t=>{let e=t&&t.initialPath;return typeof e!="string"||!e?null:e[0]==="/"?e:"/"+e},GA={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},cq=(t,e)=>{if(!e)return t;let n=Array.isArray(e)?e:e.split("."),r=t;for(let o of n){if(!r||!r[o])return null;r=r[o]}return r},qd=(t,e)=>(Bd||cq)(t,e),lq=["manual","auto","restore"],qA=new WeakMap,OF=(t,e)=>{let n=e.claims[e.claims.length-1],r=n?n.value:e.found;t.scrollRestoration!==r&&(t.scrollRestoration=r)},fq=(t,e)=>{let n=e&&e.scrollRestoration;if(n!=null){if(!lq.includes(n)){if(t.verbose!==!1){let r=typeof n=="string"?JSON.stringify(n):`a ${typeof n}`;console.warn(`[smbls/router] router.scrollRestoration must be 'manual', 'auto' or 'restore', got ${r} \u2014 the browser default stays`)}return}try{let r=t.window||R,o=r&&r.history;if(!o||!("scrollRestoration"in o))return;let s=qA.get(o);s||(s={found:o.scrollRestoration,claims:[]},qA.set(o,s));let i={value:n==="restore"?"manual":n};s.claims.push(i),OF(o,s),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{let a=s.claims.indexOf(i);if(a!==-1){s.claims.splice(a,1),s.claims.length||qA.delete(o);try{OF(o,s)}catch{}}})}catch{}}},uq=(t,e)=>{if(!e||e.scrollRestoration!=="restore")return;let n=Id,r=t.window||R;if(typeof n!="function"||!r||typeof r.addEventListener!="function")return;let o=t.document||r.document,s=()=>n(r),i=()=>{o.visibilityState==="hidden"&&n(r)};r.addEventListener("pagehide",s);let a=!!o&&typeof o.addEventListener=="function";a&&o.addEventListener("visibilitychange",i),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{r.removeEventListener("pagehide",s),a&&o.removeEventListener("visibilitychange",i)})},PF=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=GA:e.router=Lt(e.router||{},GA);let n=e.router;fq(e,n),uq(e,n);let r=(i,a)=>{let c=i.context?.window||R,l=aq(n);if(!l){if(!c.location)return;let{pathname:u,search:d,hash:p}=c.location;u=RF(u),l=u+d+p}let f=i;if(n.customRouterElement){let u=qd(i,n.customRouterElement);u&&(f=u,i.routes&&(f.routes=i.routes))}if(f.routes)return Fn(l,f,{},{initialRender:!0,pushState:!1,...a})},o=async(i,a)=>{let c=TF(i.context);if(c)return dq(i,c,r);await r(i)},s=!Zt(t.onRenderRouter);return n&&n.initRouter&&!s&&(t.onRenderRouter=(i,a)=>e.__firstNavigation=o(i,a)),pq(e,n),n},dq=(t,e,n)=>{let r;return e.routeReady=new Promise(s=>{r=s}),(async()=>{try{if(await hr(),!t.__ref||!qc(e.lease))return;let s=n(t,e.progressive?{mountOptions:e.pageOptions}:{mountOptions:e.pageOptions,firstView:e});await Re(),r(),await s}finally{r()}})()},YA=(t,e)=>{if(e.router===!1)return;let n=e.router||GA;if(!n.popState)return;let r=e.utils&&e.utils.router?e.utils.router:Fn,o=e.window||R,s=async i=>{let{pathname:a,search:c,hash:l}=o.location;a=RF(a);let f=a+c+l,u=t;if(n.customRouterElement){let d=qd(t,n.customRouterElement);d&&(u=d,t.routes&&(u.routes=t.routes))}await u.call("router",f,u,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};o.addEventListener("popstate",s),e.__teardowns=e.__teardowns||[],e.__teardowns.push(()=>o.removeEventListener("popstate",s))},pq=(t,e)=>{let{components:n}=t;if(e&&e.injectRouterInLinkComponent)return bt(n.Link||n["smbls.Link"],n.RouterLink||n["smbls.RouterLink"])};var QA={};B(QA,{components:()=>ZA,functions:()=>Xr});var JA={};B(JA,{AlertTemplate:()=>Jy,ConfirmTemplate:()=>Zy,CustomTemplate:()=>tb,ModalLayer:()=>Xy,ModalRoot:()=>Yy,PromptTemplate:()=>Qy,windowsComponents:()=>ZA});var XA={};B(XA,{alertDialog:()=>qy,closeAllModals:()=>Wy,closeModal:()=>zy,confirmDialog:()=>Ky,getLayer:()=>Vy,openModal:()=>Hy,promptDialog:()=>Gy,windowsFunctions:()=>Xr});function ct(t){let e=t;for(;e;){if(e.layer!==void 0)return e.layer;e=e.parent}return null}function Yc(t){let e=t;for(;e;){if(e.key==="ModalRoot")return e;if(e.ModalRoot&&e.ModalRoot.__ref)return e.ModalRoot;e=e.parent}let n=t?.getRoot?.();return n?.ModalRoot?n.ModalRoot:typeof globalThis<"u"&&globalThis.__SMBLS_WINDOWS_MODAL_ROOT__?.__ref?globalThis.__SMBLS_WINDOWS_MODAL_ROOT__:null}function Vy(){return ct(this)}var hq=(t,e)=>{let n=t&&t["ModalLayer_"+e],r=n?.node||n?.__ref?.node;!r||typeof r.style?.setProperty!="function"||(r.style.setProperty("display","none","important"),r.style.setProperty("opacity","0","important"),r.style.setProperty("visibility","hidden","important"),r.style.setProperty("pointer-events","none","important"))},LF=(t,e)=>{let n=t&&t["ModalLayer_"+e],r=n?.node||n?.__ref?.node;!r||typeof r.style?.removeProperty!="function"||(r.style.removeProperty("display"),r.style.removeProperty("opacity"),r.style.removeProperty("visibility"),r.style.removeProperty("pointer-events"))};function zy(t){let e=Yc(this);if(!e)return;let n=e.state?.stack||[];if(!n.length)return;let r,o,s;if(t){if(s=[],r=n.filter((i,a)=>{let c=i.id!==t;return c||s.push(a),c}),r.length===n.length)return;o=n.filter(i=>i.id===t)}else r=n.slice(0,-1),o=n.slice(-1),s=[n.length-1];e.state.update({stack:r});for(let i of s)hq(e,i);for(let i of o)if(typeof i.onClose=="function")try{i.onClose()}catch(a){console.warn("[windows] onClose threw:",a)}}function Hy(t={}){let e=Yc(this);if(!e)return console.warn("[windows] openModal: ModalRoot is not mounted on the app root. Add `ModalRoot: {}` to your shell tree and import windowsComponents into context."),null;e.__modalIdCounter=(e.__modalIdCounter||0)+1;let n=t.id||`modal_${e.__modalIdCounter}_${Date.now().toString(36)}`,r={id:n,template:t.template||"custom",title:t.title,message:t.message,icon:t.icon,confirmText:t.confirmText,cancelText:t.cancelText,okText:t.okText,confirmTheme:t.confirmTheme,placeholder:t.placeholder,defaultValue:t.defaultValue,dismissOnBackdrop:t.dismissOnBackdrop,content:t.content,width:t.width,maxWidth:t.maxWidth,maxHeight:t.maxHeight,onConfirm:t.onConfirm,onCancel:t.onCancel,onOk:t.onOk,onClose:t.onClose},o=e.state?.stack||[];if(o.length>=5)return console.warn("[windows] openModal: stack already at the 5-layer maximum, dropping the new layer. Close some modals first."),null;let s=o.length;return LF(e,s),e.state.update({stack:[...o,r]}),n}function Wy(){let t=Yc(this);if(!t)return;let e=t.state?.stack;if(!e?.length)return;let n=e.slice();t.state.update({stack:[]});for(let r=n.length-1;r>=0;r--){let o=n[r];if(typeof o?.onClose=="function")try{o.onClose()}catch(s){console.warn("[windows] onClose threw:",s)}}}function Ky(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"confirm"})}function qy(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"alert"})}function Gy(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"prompt"})}var Xr={openModal:Hy,closeModal:zy,closeAllModals:Wy,confirmDialog:Ky,alertDialog:qy,promptDialog:Gy,getLayer:Vy};var gq=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),DF=t=>{if(!t?.querySelectorAll)return[];let e=t.querySelectorAll(gq),n=[];for(let r=0;r<e.length;r++){let o=e[r];(o.offsetParent!==null||o===document.activeElement)&&n.push(o)}return n},IF=t=>{let e=t.state?.stack||[];if(!e.length)return null;let n=t["ModalLayer_"+(e.length-1)];return n?.node||n?.__ref?.node||null},Yy={tag:"div",position:"fixed",inset:"0",zIndex:"2000",pointerEvents:"none",state:{stack:[]},subscribeTo:["stack"],ModalLayer_0:{__slotIndex:0,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[0]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_1:{__slotIndex:1,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[1]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_2:{__slotIndex:2,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[2]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_3:{__slotIndex:3,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[3]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_4:{__slotIndex:4,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[4]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},onInit:(t,e)=>{if(typeof window>"u")return;globalThis.__SMBLS_WINDOWS_MODAL_ROOT__=t;let n=t.context;if(n){n.functions||(n.functions={});for(let c in Xr)c in n.functions||(n.functions[c]=Xr[c])}t.__modalOpeners=t.__modalOpeners||[],t.__prevStackLen=t.state&&t.state.stack&&t.state.stack.length||0;let r=c=>{if(typeof c?.onCancel=="function")try{c.onCancel()}catch(l){console.warn("[windows] onCancel threw:",l)}if(typeof c?.onClose=="function")try{c.onClose()}catch(l){console.warn("[windows] onClose threw:",l)}},o=()=>{let c=t.state?.stack||[];if(!c.length)return;let l=c.length-1,f=c[l];t.state.update({stack:c.slice(0,-1)});let u=t["ModalLayer_"+l],d=u?.node||u?.__ref?.node;d?.style?.setProperty&&(d.style.setProperty("display","none","important"),d.style.setProperty("opacity","0","important"),d.style.setProperty("visibility","hidden","important"),d.style.setProperty("pointer-events","none","important")),r(f)},s=c=>{let l=t.state?.stack;if(l?.length){if(c.key==="Tab"){let f=IF(t);if(!f)return;let u=DF(f);if(!u.length){c.preventDefault();let m=f.querySelector?.('[role="dialog"]')||f;try{m.focus?.()}catch{}return}let d=u[0],p=u[u.length-1],g=document.activeElement;if(!f.contains(g)){c.preventDefault();try{d.focus()}catch{}return}if(c.shiftKey&&g===d){c.preventDefault();try{p.focus()}catch{}}else if(!c.shiftKey&&g===p){c.preventDefault();try{d.focus()}catch{}}return}c.key!=="Escape"||c.defaultPrevented||l[l.length-1]?.dismissOnBackdrop!==!1&&(c.preventDefault(),o())}};window.addEventListener("keydown",s),t.__escHandler=s;let i=c=>{let l=t.state?.stack||[];if(c<0||c>=l.length)return;let f=l[c];t.state.update({stack:l.filter((p,g)=>g!==c)});let u=t["ModalLayer_"+c],d=u?.node||u?.__ref?.node;d?.style?.setProperty&&(d.style.setProperty("display","none","important"),d.style.setProperty("opacity","0","important"),d.style.setProperty("visibility","hidden","important"),d.style.setProperty("pointer-events","none","important")),r(f)},a=c=>{let l=t.state?.stack||[];if(!l.length)return;let f=c.target?.closest?.('[data-key="Close"]');if(f){for(let u=l.length-1;u>=0;u--){let d=t["ModalLayer_"+u],p=d?.node||d?.__ref?.node;if(p&&p.contains(f)){c.preventDefault(),c.stopPropagation(),i(u);return}}return}for(let u=l.length-1;u>=0;u--){let d=t["ModalLayer_"+u];if((d?.node||d?.__ref?.node)===c.target){if(l[u]?.dismissOnBackdrop===!1)return;c.preventDefault(),c.stopPropagation(),i(u);return}}};document.addEventListener("click",a,!0),t.__clickDelegate=a},onUpdate:t=>{if(typeof window>"u")return;let n=(t.state&&t.state.stack||[]).length,r=t.__prevStackLen||0;if(n!==r)if(t.__prevStackLen=n,t.__modalOpeners=t.__modalOpeners||[],n>r)t.__modalOpeners[n]=document.activeElement&&document.activeElement!==document.body?document.activeElement:t.__modalOpeners[n]||null,typeof requestAnimationFrame=="function"&&requestAnimationFrame(()=>{let o=IF(t);if(!o)return;let i=DF(o)[0]||o.querySelector&&o.querySelector('[role="dialog"]')||o;try{i.focus&&i.focus()}catch{}});else{let o=null;for(let s=r;s>n;s--)t.__modalOpeners[s]&&(o=o||t.__modalOpeners[s]),t.__modalOpeners[s]=null;if(o&&typeof o.focus=="function"&&o.isConnected!==!1)try{o.focus()}catch{}}},onDestroy:t=>{typeof window>"u"||(globalThis.__SMBLS_WINDOWS_MODAL_ROOT__===t&&(globalThis.__SMBLS_WINDOWS_MODAL_ROOT__=null),t.__escHandler&&(window.removeEventListener("keydown",t.__escHandler),delete t.__escHandler),t.__clickDelegate&&(document.removeEventListener("click",t.__clickDelegate,!0),delete t.__clickDelegate))}};var Xy={tag:"div",position:"fixed",inset:"0",alignItems:"center",justifyContent:"center",padding:"A",theme:"backdrop",transition:"opacity C defaultBezier",zIndex:(t,e)=>`${2e3+(t.__slotIndex||0)*10}`,display:(t,e)=>t.layer?"flex":"none",opacity:(t,e)=>t.layer?"1":"0",visibility:(t,e)=>t.layer?"visible":"hidden",pointerEvents:(t,e)=>t.layer?"auto":"none",ModalWindow:{attr:{role:"dialog","aria-modal":"true",tabindex:"-1","aria-labelledby":t=>{let e=ct(t)?.id;return e?"modal-title-"+e:null}},width:t=>ct(t)?.width||"H",maxWidth:t=>ct(t)?.maxWidth||"90vw",flow:"y",maxHeight:t=>ct(t)?.maxHeight||"100%",animation:"modalIn",animationDuration:"D",animationTimingFunction:"springBezier",onClick:t=>t.stopPropagation(),onMousedown:t=>t.stopPropagation(),ModalHeader:{display:"none"},overflow:"visible",ConfirmTemplate:{hide:t=>ct(t)?.template!=="confirm"},AlertTemplate:{hide:t=>ct(t)?.template!=="alert"},PromptTemplate:{hide:t=>ct(t)?.template!=="prompt"},CustomTemplate:{hide:t=>ct(t)?.template!=="custom"}}};var Xc=(t,e,n)=>ct(t)?.[e]||n,mq=t=>{let e=ct(t)?.icon;return e===null||e===!1},Zy={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",ModalHeader:{Hgroup:{H:{text:t=>Xc(t,"title","Are you sure?"),attr:{id:t=>{let e=ct(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}},Icons:{hide:t=>mq(t),Indicator:{extends:"Icon",opacity:".7",icon:t=>Xc(t,"icon","warning")}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",P:{tag:"p",margin:"0",text:t=>Xc(t,"message","This action cannot be undone."),color:"dim"}},ModalFooter:{flow:"x",gap:"Z1",align:"center end",flexShrink:"0",CancelBtn:{extends:"CancelButton",text:t=>Xc(t,"cancelText","Cancel"),onClick:(t,e,n)=>{let r=ct(e);if(r?.onCancel)try{r.onCancel()}catch(o){console.warn("[windows] confirm.onCancel threw:",o)}e.call("closeModal",r?.id)}},ConfirmBtn:{extends:"Button",theme:t=>Xc(t,"confirmTheme","primary"),text:t=>Xc(t,"confirmText","Confirm"),onClick:(t,e,n)=>{let r=ct(e);if(r?.onConfirm)try{r.onConfirm()}catch(o){console.warn("[windows] confirm.onConfirm threw:",o)}e.call("closeModal",r?.id)}}}};var Gd=(t,e,n)=>ct(t)?.[e]||n,Jy={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",ModalHeader:{Hgroup:{H:{text:t=>Gd(t,"title","Notice"),attr:{id:t=>{let e=ct(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}},Icons:{Indicator:{extends:"Icon",opacity:".7",icon:t=>Gd(t,"icon","info")}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",hide:t=>!Gd(t,"message",""),P:{tag:"p",margin:"0",text:t=>Gd(t,"message",""),color:"dim"}},ModalFooter:{flow:"x",align:"center end",flexShrink:"0",OkBtn:{extends:"Button",theme:"primary",text:t=>Gd(t,"okText","OK"),onClick:(t,e,n)=>{let r=ct(e);if(r?.onOk)try{r.onOk()}catch(o){console.warn("[windows] alert.onOk threw:",o)}e.call("closeModal",r?.id)}}}};var Zc=(t,e,n)=>ct(t)?.[e]||n,Qy={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",scope:{value:""},onRender:(t,e)=>{let n=ct(t);if(!n||t.scope._seededLayerId===n.id)return;t.scope._seededLayerId=n.id,t.scope.value=n.defaultValue||"";let r=t.InputRow&&t.InputRow.node;r&&(r.value=t.scope.value)},onUpdate:(t,e)=>{let n=ct(t);if(!n||t.scope._seededLayerId===n.id)return;t.scope._seededLayerId=n.id,t.scope.value=n.defaultValue||"";let r=t.InputRow&&t.InputRow.node;r&&(r.value=t.scope.value)},ModalHeader:{Hgroup:{H:{text:t=>Zc(t,"title","Enter a value"),attr:{id:t=>{let e=ct(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",hide:t=>!Zc(t,"message",""),P:{tag:"p",margin:"0",text:t=>Zc(t,"message",""),color:"dim"}},InputRow:{extends:"Input",flexShrink:"0",autofocus:!0,placeholder:t=>Zc(t,"placeholder",""),value:(t,e)=>t.parent.scope?.value||"",onInput:(t,e,n)=>{e.parent.scope.value=t.target.value},onKeydown:(t,e,n)=>{if(t.key!=="Enter")return;t.preventDefault();let r=ct(e),o=e.parent.scope?.value||"";if(r?.onConfirm)try{r.onConfirm(o)}catch(s){console.warn("[windows] prompt.onConfirm threw:",s)}e.call("closeModal",r?.id)}},ModalFooter:{flow:"x",gap:"Z1",align:"center end",flexShrink:"0",CancelBtn:{extends:"CancelButton",text:t=>Zc(t,"cancelText","Cancel"),onClick:(t,e,n)=>{let r=ct(e);if(r?.onCancel)try{r.onCancel()}catch(o){console.warn("[windows] prompt.onCancel threw:",o)}e.call("closeModal",r?.id)}},ConfirmBtn:{extends:"Button",theme:"primary",text:t=>Zc(t,"confirmText","OK"),onClick:(t,e,n)=>{let r=ct(e),o=e.parent.parent.scope?.value||"";if(r?.onConfirm)try{r.onConfirm(o)}catch(s){console.warn("[windows] prompt.onConfirm threw:",s)}e.call("closeModal",r?.id)}}}};var tb={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",Title:{tag:"h2",text:t=>ct(t)?.title||"",hide:t=>!ct(t)?.title,position:"absolute",width:"1px",height:"1px",margin:"-1px",padding:"0",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0",attr:{id:t=>{let e=ct(t)?.id;return e?"modal-title-"+e:null}}},Slot:{tag:"div",flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",onInit:t=>{let e=Y(()=>{let n=ct(t),r=n?.content||null,o=n?.id||null;if(!r){t.__lastLayerId!=null&&(t.removeContent(),t.__lastLayerId=null);return}if(t.__lastLayerId!==o){t.__lastLayerId=o;try{t.set(r);let s=t.content?.context;if(s){s.functions||(s.functions={});for(let i in Xr)i in s.functions||(s.functions[i]=Xr[i])}}catch(s){console.warn("[windows] custom.content set failed:",s)}}});t.__ref&&t.__ref.__effects.push(e)}}};var MF={extends:"Button",theme:"tertiary"};var ZA={ModalRoot:Yy,ModalLayer:Xy,ConfirmTemplate:Zy,AlertTemplate:Jy,PromptTemplate:Qy,CustomTemplate:tb,"smbls.CancelButton":MF};var cT={};B(cT,{components:()=>oT,functions:()=>iT});var sT={};B(sT,{Dropdown:()=>ib,DropdownList:()=>ab,DropdownParent:()=>cb,DropdownParentFocus:()=>lb,DropdownRoot:()=>ob,DropdownSiblingFocus:()=>fb,DropdownTrigger:()=>sb,dropdownComponents:()=>oT});var NF=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),yq=(t,e,n,r)=>{let o=NF(t,n,r),s=i=>o[i]>=e.height+8;return s("bottom")?"bottom":s("top")?"top":o.bottom>=o.top?"bottom":"top"},bq=(t,e,n,r,o)=>{let s=NF(e,r,o),i=t==="top"||t==="bottom"?n.height+8:n.width+8;if(s[t]>=i)return t;let a={top:"bottom",bottom:"top",left:"right",right:"left"}[t];return a&&s[a]>=i||a&&s[a]>s[t]?a:t};var tT=(t,e,n)=>{let r;return t==="bottom"?r=n-e.bottom-16:t==="top"?r=e.top-16:r=n-16,Math.max(40,Math.floor(r))},eb=(t,e,n)=>Math.max(e,Math.min(n,t)),Zr=(t,e,n="auto")=>{if(!t){let g=typeof window<"u"?window.innerHeight:768;return{left:0,top:0,side:"bottom",align:"start",maxHeight:tT("center",null,g)}}let r=typeof window<"u"?window.innerWidth:1024,o=typeof window<"u"?window.innerHeight:768,s={width:Math.max(120,e?.width||0),height:Math.max(40,e?.height||0)};if(n==="center"){let g=tT("center",t,o),h=Math.min(s.height,g),m=eb((r-s.width)/2,8,Math.max(8,r-s.width-8)),y=eb((o-h)/2,8,Math.max(8,o-h-8));return{left:m,top:y,side:"center",align:"center",maxHeight:g}}let i,a;if(n==="auto")i=yq(t,s,r,o),a="start";else{let g=n.split("-");i=g[0],a=g[1]||"start",i=bq(i,t,s,r,o)}let c=tT(i,t,o),l=Math.min(s.height,c),f,u;i==="bottom"||i==="top"?(a==="start"?f=t.left:a==="end"?f=t.right-s.width:f=t.left+(t.width-s.width)/2,u=i==="bottom"?t.bottom+8:t.top-l-8):(a==="start"?u=t.top:a==="end"?u=t.bottom-l:u=t.top+(t.height-l)/2,f=i==="right"?t.right+8:t.left-s.width-8);let d=Math.max(8,r-s.width-8),p=Math.max(8,o-l-8);return f=eb(f,8,d),u=eb(u,8,p),{left:f,top:u,side:i,align:a,maxHeight:c}},Jc=t=>{switch(t){case"bottom":return"translateY(-6px)";case"top":return"translateY(6px)";case"left":return"translateX(6px)";case"right":return"translateX(-6px)";case"center":return"translateY(0px)";default:return"translateY(-6px)"}};var Jo={placement:"auto",trigger:"click",offset:8,minWidth:"180px",maxWidth:"90vw",maxHeight:null},_q=t=>{if(!t||typeof t.getBoundingClientRect!="function")return null;let e=t.getBoundingClientRect();return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},eT=t=>t?.getRoot?.()?.DropdownRoot||null,wq=0,Sq=()=>`dropdown_${++wq}_${Date.now().toString(36)}`;function nb(t={}){let e=eT(this);if(!e)return console.warn("[dropdown] openDropdown: DropdownRoot is not mounted on the app root. Add `DropdownRoot: {}` to your shell tree and import dropdown components into context."),null;let n=t.anchorEl?.node||t.anchorEl,r=t.anchorRect||_q(n);if(!r)return console.warn("[dropdown] openDropdown: no anchor element/rect provided \u2014 pass anchorEl or anchorRect."),null;let o=t.id||Sq(),i=t.restoreEl?.node||t.restoreEl||n||(typeof document<"u"?document.activeElement:null),a={id:o,content:t.content||null,anchor:r,placement:t.placement||Jo.placement,trigger:t.trigger||Jo.trigger,offset:t.offset??Jo.offset,minWidth:t.minWidth||Jo.minWidth,maxWidth:t.maxWidth||Jo.maxWidth,maxHeight:t.maxHeight||Jo.maxHeight,theme:t.theme||null,shadow:t.shadow||null,background:t.background||null,round:t.round||null,role:t.role||null,ariaLabel:t.ariaLabel||null,ariaLabelledby:t.ariaLabelledby||null,focusIn:!!t.focusIn,onOpen:t.onOpen,onClose:t.onClose,restoreEl:i},c=e.state?.layer;if(c?.onClose)try{c.onClose(c)}catch(l){console.warn("[dropdown] prev onClose threw:",l)}if(e.state.update({layer:a}),typeof a.onOpen=="function")try{a.onOpen(a)}catch(l){console.warn("[dropdown] onOpen threw:",l)}return o}function rb(t){let e=eT(this);if(!e)return;let n=e.state?.layer;n&&e.state.update({layer:{...n,inert:!!t}})}function vi(t){let e=eT(this);if(!e)return;let n=e.state?.layer;if(!n)return;let r=typeof t=="string"?t:t?.id;if(r&&n.id&&r!==n.id)return;let o=n.onClose,s=n.restoreEl,i=typeof document<"u"?document:null,a=i?i.activeElement:null,c=e.node?.querySelector?.('[data-smbls-dropdown="panel"]'),l=!a||a===i?.body,f=!!(c&&a&&c.contains(a)),u=l||f;if(e.state.update({layer:null}),u&&s&&typeof s.focus=="function")try{s.focus()}catch(d){console.warn("[dropdown] focus restore threw:",d)}if(typeof o=="function")try{o(n)}catch(d){console.warn("[dropdown] onClose threw:",d)}}var nT=(t,e)=>{let n=`${e.maxHeight}px`;return t?.maxHeight?`min(${t.maxHeight}, ${n})`:n},$F=t=>{let e=t.getBoundingClientRect(),n=t.offsetWidth||e.width,r=Math.max(t.offsetHeight||e.height,t.scrollHeight||0);return{width:n,height:r}},xq=`
94
94
  @keyframes smbls-dropdown-fade-in {
95
95
  from { opacity: 0; transform: var(--smbls-dropdown-from, translateY(-6px)) scale(0.98); }
96
96
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
@@ -157,22 +157,22 @@ ${a}`}var EA=null;function Ty(t){EA=t}var Mn={structuralHash:vy,deepEqual:Ay,mer
157
157
  [data-smbls-dropdown="panel"]:not([data-smbls-shadowed]) {
158
158
  box-shadow: none !important;
159
159
  }
160
- `,B7=()=>{if(typeof document>"u"||document.getElementById("smbls-dropdown-css"))return;let t=document.createElement("style");t.id="smbls-dropdown-css",t.textContent=F7,document.head.appendChild(t)},lF=(t,e)=>{if(!t.node)return;let n=e?.background;if(!n)t.node.removeAttribute("data-smbls-surface");else{let r=/^[a-z][\w.+-]*$/i.test(n)?`var(--color-${n})`:n;t.node.style.setProperty("--smbls-dropdown-surface",r),t.node.setAttribute("data-smbls-surface","")}e?.theme?t.node.setAttribute("data-smbls-themed",""):t.node.removeAttribute("data-smbls-themed"),e?.shadow||t.scope?.bodyShadow?t.node.setAttribute("data-smbls-shadowed",""):t.node.removeAttribute("data-smbls-shadowed")},j7=t=>{if(!t)return null;let e=typeof t.shadow=="function"?t.shadow(t,t.state):t.shadow;return typeof e=="string"&&e?e:null},U7=t=>{t.node&&(t.node.removeAttribute("data-smbls-open"),t.node.offsetWidth,t.node.setAttribute("data-smbls-open","true"))},V7=[["role","role"],["aria-label","ariaLabel"],["aria-labelledby","ariaLabelledby"]],fF=(t,e)=>{if(!t.node)return;let n=new Set;for(let[r,o]of V7){let s=e?.[o];s&&(t.node.setAttribute(r,s),n.add(r))}if(t.__a11yAttrs)for(let r of t.__a11yAttrs)n.has(r)||t.node.removeAttribute(r);t.__a11yAttrs=n,t.__panelTabindex&&(t.node.removeAttribute("tabindex"),t.__panelTabindex=!1)},z7='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',H7=t=>{let e=t.node;if(e){for(let n of e.querySelectorAll(z7)){if(n.matches(":disabled"))continue;let r=n.getAttribute("tabindex");if(!(r!==null&&parseInt(r,10)<0)&&(n.focus({preventScroll:!0}),e.ownerDocument.activeElement===n))return}e.setAttribute("tabindex","-1"),t.__panelTabindex=!0,e.focus({preventScroll:!0})}},Yy={tag:"div",attr:{"data-smbls-dropdown-root":"true"},position:"fixed",inset:"0",zIndex:"1500",pointerEvents:"none",state:{layer:null},onInit:t=>{if(B7(),typeof window>"u")return;let e=r=>{r.key!=="Escape"||r.defaultPrevented||t.state?.layer&&(r.preventDefault(),Si.call(t))};window.addEventListener("keydown",e),t.__dropdownEscHandler=e;let n=r=>{let o=t.state?.layer;if(!o)return;let s=t.node?.querySelector('[data-smbls-dropdown="panel"]');if(s&&s.contains(r.target))return;let i=o.anchor;if(i){let a=r.clientX,c=r.clientY;if(a>=i.left&&a<=i.right&&c>=i.top&&c<=i.bottom)return}Si.call(t)};document.addEventListener("mousedown",n,!0),t.__dropdownClickHandler=n},onRemove:t=>{typeof window>"u"||(t.__dropdownEscHandler&&window.removeEventListener("keydown",t.__dropdownEscHandler),t.__dropdownClickHandler&&document.removeEventListener("mousedown",t.__dropdownClickHandler,!0))},PanelHost:{tag:"div",position:"fixed",inset:"0",pointerEvents:"none",subscribeTo:["layer"],layer:(t,e)=>e?.layer||null,Panel:{tag:"div",attr:{"data-smbls-dropdown":"panel"},position:"fixed",subscribeTo:["layer"],left:t=>{let e=t.parent?.layer;if(!e?.anchor)return"-9999px";let n=t._lastSize||{width:280,height:200};return Kr(e.anchor,n,e.placement).left+"px"},top:t=>{let e=t.parent?.layer;if(!e?.anchor)return"-9999px";let n=t._lastSize||{width:280,height:200};return Kr(e.anchor,n,e.placement).top+"px"},style:t=>{let e=t.parent?.layer;if(!e?.anchor)return{};let n=t._lastSize||{width:280,height:200};return{"--smbls-dropdown-from":Wc(Kr(e.anchor,n,e.placement).side)}},minWidth:t=>t.parent?.layer?.minWidth||"180px",maxWidth:t=>t.parent?.layer?.maxWidth||"90vw",maxHeight:t=>{let e=t.parent?.layer;if(!e?.anchor)return"none";let n=t._lastSize||{width:280,height:200};return VA(e,Kr(e.anchor,n,e.placement))},overflow:"auto",overscrollBehavior:"contain",padding:"0",round:t=>t.parent?.layer?.round||"radiusCard",theme:t=>t.parent?.layer?.theme||null,border:"none",borderWidth:"0",shadow:t=>t.parent?.layer?.shadow||t.scope?.bodyShadow||null,scope:{bodyShadow:null},animationDuration:"B",animationTimingFunction:"defaultBezier",pointerEvents:t=>{let e=t.parent?.layer;return e?e.inert?"none":"auto":"none"},opacity:t=>t.parent?.layer?"1":"0",onClick:t=>t.stopPropagation(),onInit:t=>{let e=K(()=>{let n=t.parent?.layer,r=n?.content||null,o=n?.id||null;if(!r){if(t.__lastLayerId!=null){try{t.removeContent?.()}catch{}t.__lastLayerId=null,fF(t,null),t.node?.removeAttribute("data-smbls-open"),t.scope&&(t.scope.bodyShadow=null)}return}if(t.__lastLayerId!==o){t.__lastLayerId=o;try{t.set(r)}catch(s){console.warn("[dropdown] content set failed:",s)}t.scope&&(t.scope.bodyShadow=j7(t.content)),lF(t,n),fF(t,n),U7(t),n.focusIn&&H7(t),!(typeof requestAnimationFrame>"u")&&requestAnimationFrame(()=>{if(!t.node)return;lF(t,n);let s=t.parent?.layer;if(!s?.anchor)return;let i=cF(t.node);t._lastSize=i;let a=Kr(s.anchor,i,s.placement);t.node.style.maxHeight=VA(s,a),t.node.style.left=a.left+"px",t.node.style.top=a.top+"px",t.node.style.setProperty("--smbls-dropdown-from",Wc(a.side))})}});t.__ref&&t.__ref.__effects?.push(e)},onRender:t=>{if(!t?.node)return;let e=t.parent?.layer;if(!e?.anchor)return;let n=cF(t.node),r=t._lastSize;(!r||Math.abs(r.width-n.width)>1||Math.abs(r.height-n.height)>1)&&(t._lastSize=n);let s=Kr(e.anchor,n,e.placement);t.node.style.maxHeight=VA(e,s),t.node.style.left=s.left+"px",t.node.style.top=s.top+"px",t.node.style.setProperty("--smbls-dropdown-from",Wc(s.side))}}}};var zA=t=>{let r=t?.getRoot?.()?.DropdownRoot?.state?.layer;if(r&&t.dropdownId&&r.id===t.dropdownId){t.call("closeDropdown");return}let o={anchorEl:t,trigger:t.dropdownTrigger||"click",placement:t.dropdownPlacement||"auto",content:t.dropdownContent||null,minWidth:t.dropdownMinWidth,maxWidth:t.dropdownMaxWidth,maxHeight:t.dropdownMaxHeight,theme:t.dropdownTheme,offset:t.dropdownOffset,id:t.dropdownId,onOpen:t.onDropdownOpen,onClose:t.onDropdownClose};for(let s in o)o[s]===void 0&&delete o[s];t.call("openDropdown",o)},Xy={position:"relative",onClick:(t,e)=>{(e.dropdownTrigger||"click")==="click"&&(t.preventDefault(),t.stopPropagation(),zA(e))},onFocus:(t,e)=>{e.dropdownTrigger==="focus"&&zA(e)},onMouseenter:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&clearTimeout(e._hoverTimer),e._hoverTimer=setTimeout(()=>zA(e),120))},onMouseleave:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=null),e._closeTimer=setTimeout(()=>e.call("closeDropdown"),250))}};var Zy={extends:"smbls.Dropdown"},Jy={extends:"smbls.DropdownList"},Qy={extends:"smbls.DropdownParent"},tb={extends:"smbls.DropdownParentFocus"},eb={extends:"smbls.DropdownSiblingFocus"};var HA={DropdownRoot:Yy,DropdownTrigger:Xy,Dropdown:Zy,DropdownList:Jy,DropdownParent:Qy,DropdownParentFocus:tb,DropdownSiblingFocus:eb};var qA={};F(qA,{DROPDOWN_DEFAULTS:()=>Wo,closeDropdown:()=>Si,computePosition:()=>Kr,dropdownFunctions:()=>KA,fadeInTransform:()=>Wc,openDropdown:()=>qy,setDropdownInert:()=>Gy});var KA={openDropdown:qy,closeDropdown:Si,setDropdownInert:Gy};var tC={};F(tC,{components:()=>PF,functions:()=>LF});var W7=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),K7=(t,e,n,r,o)=>{let s=W7(e,r,o),i=t==="top"||t==="bottom"?n.height+6:n.width+6;if(s[t]>=i)return t;let a={top:"bottom",bottom:"top",left:"right",right:"left"}[t];return a&&s[a]>=i?a:t},uF=(t,e,n)=>Math.max(e,Math.min(n,t)),pF=(t,e,n="bottom")=>{if(!t)return{left:0,top:0,side:"bottom"};let r=typeof window<"u"?window.innerWidth:1024,o=typeof window<"u"?window.innerHeight:768,s=K7(n,t,e,r,o),i,a;return s==="bottom"||s==="top"?(i=t.left+(t.width-e.width)/2,a=s==="bottom"?t.bottom+6:t.top-e.height-6):(a=t.top+(t.height-e.height)/2,i=s==="right"?t.right+6:t.left-e.width-6),i=uF(i,6,r-e.width-6),a=uF(a,6,o-e.height-6),{left:i,top:a,side:s}},dF={bottom:["0","-10%"],top:["0","10%"],left:["10%","0"],right:["-10%","0"]},hF=t=>(dF[t]||dF.bottom).join(" ");var Ko={placement:"bottom",theme:"dialog",delay:250,hideDelay:100,warmWindow:300},gF=t=>{if(!t||typeof t!="object")return null;let e=Number(t.left),n=Number(t.top),r=Number(t.width??t.right-t.left),o=Number(t.height??t.bottom-t.top),s={left:e,top:n,right:Number(t.right??e+r),bottom:Number(t.bottom??n+o),width:r,height:o};for(let i in s)if(!Number.isFinite(s[i]))return null;return s},q7=t=>!t||typeof t.getBoundingClientRect!="function"?null:gF(t.getBoundingClientRect()),YA=t=>t?.getRoot?.()?.TooltipRoot||null,XA=t=>{let e=t?.state?.tip;return e?typeof e.$parse=="function"?e.$parse():{...e}:null},ZA=t=>!!(t&&t.open!==!1&&t.size),mF=(t,e=Date.now())=>{let n=YA(t)?.state?.tip;return n?n.open!==!1?!0:typeof n.closedAt=="number"&&e-n.closedAt<Ko.warmWindow:!1},yF=(t,e,n=0)=>{let r=XA(t);if(!r||r.id!==e||r.open===!1)return;let o=t.Panel?.node;if(!o||typeof o.getBoundingClientRect!="function")return;if(o.textContent!==(r.text||"")){n<3&&setTimeout(()=>yF(t,e,n+1),0);return}let s=o.getBoundingClientRect();t.state.update({tip:{...r,size:{width:s.width,height:s.height}}})},G7=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},Y7=0,X7=()=>`tooltip_${++Y7}_${Date.now().toString(36)}`;function bF(t={}){let e=YA(this);if(!e)return console.warn("[tooltip] openTooltip: TooltipRoot is not mounted on the app root. Add `TooltipRoot: {}` to your shell tree and import tooltip components into context."),null;let n=t.anchorEl?.node||t.anchorEl,r=gF(t.anchorRect);t.anchorRect!=null&&!r&&console.warn("[tooltip] openTooltip: anchorRect is not a rect ({ left, top, right, bottom, width, height }); the anchor element's own box is used.");let o=r||q7(n);if(!o)return console.warn("[tooltip] openTooltip: no anchor element/rect provided."),null;let s=t.id||X7(),i=XA(e),a=ZA(i),c={id:s,owner:t.owner||null,text:t.text||"",anchor:o,placement:t.placement||Ko.placement,theme:t.theme||Ko.theme,open:!0,glide:a,size:a?i.size:null};return e.state.update({tip:c}),G7(()=>yF(e,s)),s}function _F(t){let e=YA(this);if(!e)return;let n=XA(e);if(!n||n.open===!1)return;let r=typeof t=="string"?t:t?.id;if(r&&n.id&&r!==n.id)return;let o=typeof t=="object"?t?.owner:null;o&&n.owner&&o!==n.owner||e.state.update({tip:{...n,open:!1,closedAt:Date.now()}})}var wF=t=>{let e=t.tip;return e?.anchor?pF(e.anchor,e.size||{width:0,height:0},e.placement):null},JA=t=>ZA(t.tip),Z7=t=>{let e=t.tip;return!e||e.open===!1?"Z opacity defaultBezier, Z translate defaultBezier, Z visibility defaultBezier, Z transform defaultBezier":e.size?e.glide?"A transform defaultBezier, A translate defaultBezier, A opacity defaultBezier, A visibility defaultBezier":"A opacity defaultBezier, A translate defaultBezier, A visibility defaultBezier":"Z opacity defaultBezier, Z visibility defaultBezier"},SF=t=>{let e=typeof window<"u"&&window.devicePixelRatio||1;return Math.round(t*e)/e},xF={tag:"div",attr:{"data-smbls-tooltip-root":"true"},position:"fixed",inset:"0",zIndex:"2500",pointerEvents:"none",state:{tip:null},Panel:{tag:"div",attr:{"data-smbls-tooltip":"panel"},role:"tooltip",position:"fixed",left:"0",top:"0",tip:(t,e)=>e?.tip||null,transform:t=>{let e=wF(t);return e?`translate3d(${SF(e.left)}px, ${SF(e.top)}px, 0)`:"translate3d(-9999px, -9999px, 0)"},translate:t=>{if(JA(t))return"0 0";let e=wF(t);return hF(e?e.side:"bottom")},text:t=>t.tip?.text||"",theme:t=>t.tip?.theme||Ko.theme,width:"max-content",maxWidth:"280px",padding:"Y2 Z",round:"Z",fontSize:"Y2",lineHeight:"1.35",whiteSpace:"normal",pointerEvents:"none",opacity:t=>JA(t)?"1":"0",visibility:t=>JA(t)?"visible":"hidden",transition:t=>Z7(t)}};var QA=t=>{if(!t.tooltipText)return;let e=t.node;e&&e.hasAttribute&&e.hasAttribute("title")&&e.removeAttribute("title")},J7=0,AF=t=>t._tooltipOwner||(t._tooltipOwner=`tooltip_trigger_${++J7}`),kF=t=>{t.tooltipText&&(QA(t),t.call("openTooltip",{anchorEl:t,anchorRect:t.tooltipAnchorRect||void 0,text:t.tooltipText,placement:t.tooltipPlacement||"bottom",theme:t.tooltipTheme,id:t.tooltipId||t.key,owner:AF(t)}))},EF=t=>{if(t._tooltipHideTimer&&(clearTimeout(t._tooltipHideTimer),t._tooltipHideTimer=null),mF(t)){t._tooltipShowTimer&&(clearTimeout(t._tooltipShowTimer),t._tooltipShowTimer=null),kF(t);return}t._tooltipShowTimer||(t._tooltipShowTimer=setTimeout(()=>{t._tooltipShowTimer=null,kF(t)},t.tooltipDelay??Ko.delay))},vF=t=>{t._tooltipShowTimer&&(clearTimeout(t._tooltipShowTimer),t._tooltipShowTimer=null),!t._tooltipHideTimer&&(t._tooltipHideTimer=setTimeout(()=>{t._tooltipHideTimer=null,t.call("closeTooltip",{id:t.tooltipId||t.key,owner:AF(t)})},t.tooltipHideDelay??Ko.hideDelay))},CF={onMouseenter:(t,e)=>EF(e),onMouseleave:(t,e)=>vF(e),onFocus:(t,e)=>EF(e),onBlur:(t,e)=>vF(e),onMouseover:(t,e)=>QA(e),onFocusin:(t,e)=>QA(e)};var TF={display:"flex",theme:"dialog",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:t=>t.call("isDefined",t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"currentColor",text:t=>t.parent.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.description,t))||t.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"currentColor",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},OF={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:t=>{let e=!t.shapeDirection||t.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(t,e)},style:t=>{if(!t.scope||!t.scope.tooltipOpen)return{opacity:"",visibility:"",transform:""};let e=t.shapeDirection;return{opacity:"1",visibility:"visible",transform:e==="left"||e==="right"?"translate3d(0%,-50%,0)":"translate3d(-50%,0,0)"}},styleDeps:[t=>t.scope&&t.scope.tooltipOpen]},RF={position:"relative",zIndex:999,scope:{tooltipOpen:!1},onInit:t=>{let{Tooltip:e,TooltipHidden:n}=t,r=e||n;if(!r)return;let o=r&&r[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})},onPointerdown:(t,e)=>{t.pointerType!=="touch"||!e.scope||(e.scope.tooltipOpen=!e.scope.tooltipOpen)},onDocumentKeydown:(t,e)=>{t.key!=="Escape"||!e.scope||!e.scope.tooltipOpen||(e.scope.tooltipOpen=!1)},onDocumentPointerdown:(t,e)=>{!e.scope||!e.scope.tooltipOpen||e.node&&e.node.contains(t.target)||(e.scope.tooltipOpen=!1)}};var PF={TooltipRoot:xF,TooltipTrigger:CF,Tooltip:TF,TooltipHidden:OF,TooltipParent:RF};var LF={openTooltip:bF,closeTooltip:_F};var Hd={};F(Hd,{LEVELS:()=>Ud,analyzePlugin:()=>nb,attachBrowserListeners:()=>ub,attachNetworkListeners:()=>zd,classifyEvent:()=>aC,createAnalyzeState:()=>VF,createBeaconSink:()=>fC,createConsoleSink:()=>cC,createDedupe:()=>oC,createEnrich:()=>nC,createMemorySink:()=>lC,createPipeline:()=>ib,createRedact:()=>sb,createRemoteSink:()=>cb,createSample:()=>sC,createSummarize:()=>rC,default:()=>nb,emitFetchEvent:()=>jF,makeEvent:()=>ft,meetsLevel:()=>rb,normalizeLevel:()=>Vd,resolveSinks:()=>fb,summarizeElement:()=>xi});var Q7=0,tq=()=>`${Date.now().toString(36)}-${(Q7++).toString(36)}`,ft=(t,e,n={})=>({id:tq(),ts:Date.now(),type:t,level:e,...n}),eq=t=>{let e=[],n=t,r=0;for(;n&&r<32;)n.key!=null&&e.unshift(String(n.key)),n=n.parent,r++;return e.join(" > ")},xi=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:eq(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var Kc=t=>t?.context?.analyze,nq={init:{category:"lifecycle",type:"lifecycle",level:"debug"},create:{category:"lifecycle",type:"lifecycle",level:"debug"},render:{category:"lifecycle",type:"lifecycle",level:"debug"},beforeRemove:{category:"lifecycle",type:"lifecycle",level:"debug"},remove:{category:"lifecycle",type:"lifecycle",level:"debug"}},rq=(t,{category:e,type:n,level:r})=>o=>{let s=Kc(o);!s||!s.shouldCapture(e)||s.emit(ft(n,r,{hook:t,element:xi(o)}))},DF=t=>(e,n)=>{let r=Kc(e);!r||!r.shouldCapture("state")||r.emit(ft("state","debug",{hook:t,element:xi(e),changedKeys:n?.changedKeys||null}))},nb={name:"analyze",error(t,e){let n=Kc(t);if(!n||n.config.enabled===!1||!n.shouldCapture("errors"))return;let r=e?.error||e?.err||(e instanceof Error?e:null);n.emit(ft("error","error",{hook:e?.hook||"error",element:xi(t),error:r,message:r?.message||(typeof e?.message=="string"?e.message:null)}))},renderRouter(t){let e=Kc(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(ft("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=Kc(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=Kc(t);if(!e||!e.shouldCapture("updates"))return;let n=null;t.__ref?.__analyzeUpdateStart!=null&&(n=(typeof performance<"u"?performance.now():Date.now())-t.__ref.__analyzeUpdateStart,t.__ref.__analyzeUpdateStart=null),e.emit(ft("update","debug",{hook:"update",element:xi(t),durationMs:n}))},beforeStateUpdate:DF("beforeStateUpdate"),stateUpdate:DF("stateUpdate")};for(let[t,e]of Object.entries(nq))nb[t]=rq(t,e);M();var Ud={error:0,warn:1,info:2,debug:3,trace:4};var rb=(t,e)=>{let n=Ud[t],r=Ud[e];return n==null||r==null?!0:n<=r},Vd=t=>Ud[t]!=null?t:"warn";M();var ob=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var oq=(t,e)=>{for(let n of e)if(n instanceof RegExp){if(n.test(t))return!0}else if(typeof n=="string"&&t.toLowerCase().includes(n.toLowerCase()))return!0;return!1},sq=(t,e)=>{if(e!=="redact"){if(e==="hash"){let n=0,r=String(t);for(let o=0;o<r.length;o++)n=(n<<5)-n+r.charCodeAt(o)|0;return`#${(n>>>0).toString(36)}`}return"***"}},eC=(t,e,n,r)=>{if(r>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>eC(s,e,n,r+1));let o={};for(let s of Object.keys(t))if(oq(s,e)||ob.test(s)){let a=sq(t[s],n);a!==void 0&&(o[s]=a)}else o[s]=eC(t[s],e,n,r+1);return o},sb=(t=[],e="mask")=>{let n=Array.isArray(t)?t:[t];return r=>{if(!r)return r;let{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:p,...g}=r,h=eC(g,n,e,0);return{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:p,...h}}};var nC=t=>{let e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,n=typeof navigator<"u"?navigator.userAgent:null,r=t.config.buildHash||null,o=t.config.appId||null;return s=>{if(!s)return s;let i=t.context?.routerOptions?.currentRoute||null,a=R,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:e,app:{id:o,build:r,route:i},meta:{ua:n,viewport:c}}}},rC=()=>t=>{if(!t)return t;if(t.element&&typeof t.element=="object"){let e=t.element;(e.node||e.parent||e.__ref)&&(t={...t,element:{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,tag:e.tag||null,component:e.component||null}})}return t.error instanceof Error&&(t={...t,error:{name:t.error.name,message:t.error.message,stack:t.error.stack}}),t},oC=(t=1e3,e=500)=>{let n=new Map;return r=>{if(!r)return r;let o=`${r.type}:${r.level}:${r.message||""}:${r.error?.message||""}`,s=n.get(o),i=r.ts||Date.now();if(s&&i-s<t)return null;if(n.set(o,i),n.size>e){let a=Math.ceil(e/10),c=0;for(let l of n.keys()){if(c++>=a)break;n.delete(l)}}return r}},sC=t=>e=>{if(!e)return e;let n=t[e.type];return n==null||n>=1?e:Math.random()>n?null:e},IF={redact:t=>sb(t.config.redact||[],t.config.maskStrategy),enrich:t=>nC(t),summarize:()=>rC(),dedupe:t=>oC(t.config.cache?.dedupeWindowMs||1e3),sample:t=>sC(t.config.sample||{})},iq=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let n=IF[t];return n?n(e):null}return null},ib=t=>{let e=t.config,n=Array.isArray(e.transformers)?e.transformers.slice():[],r=n.findIndex(s=>s==="redact");r>=0&&n.splice(r,1);let o=[];e.redact!==!1&&o.push(IF.redact(t));for(let s of n){let i=iq(s,t);i&&o.push(i)}return s=>{let i=s;for(let a of o){if(i==null)return null;let c=a(i);if(c==null)return null;if(Array.isArray(c)){let l=o.slice(o.indexOf(a)+1),f=[];for(let u of c){let d=u,p=!1;for(let g of l)if(d=g(d),d==null){p=!0;break}!p&&d!=null&&f.push(d)}return f}i=c}return i}};M();M();var ab=typeof R<"u"&&typeof R.document<"u",aq=5e3,cq=50,lq=3,fq=1500,uq=1e3,aC=t=>t?t.level==="error"||t.type==="error"?"bug":t.type==="network"?"network":t.type==="console"?t.level==="error"||t.level==="warn"?"bug":"log":t.level==="warn"?"bug":t.level==="info"?"log":"verbose":"verbose",dq=t=>{try{return JSON.stringify(t)}catch{return null}},pq=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},hq=t=>{if(!t)return null;let e=String(t),n;return(n=e.match(/Edg\/([\d.]+)/))?{name:"Edge",version:n[1]}:(n=e.match(/OPR\/([\d.]+)/))?{name:"Opera",version:n[1]}:(n=e.match(/Firefox\/([\d.]+)/))?{name:"Firefox",version:n[1]}:/Chrome\/([\d.]+)/.test(e)&&/Safari\//.test(e)?(n=e.match(/Chrome\/([\d.]+)/),{name:"Chrome",version:n[1]}):(n=e.match(/Version\/([\d.]+).*Safari/))?{name:"Safari",version:n[1]}:{name:null,version:null}},gq=()=>{if(!ab)return null;try{let t=R.document?.documentElement?.getAttribute("data-theme")||null,e=typeof R.matchMedia=="function"?R.matchMedia("(prefers-color-scheme: dark)").matches:null;return{active:t||(e?"dark":e===!1?"light":null),forced:t||null,prefers:e==null?null:e?"dark":"light"}}catch{return null}},mq=()=>{if(!ab)return null;let t=R.location,e=typeof navigator<"u"?navigator:null,n=typeof screen<"u"?screen:null;return{url:t?.href||null,path:t?.pathname||null,referrer:R.document?.referrer||null,title:R.document?.title||null,ua:e?.userAgent||null,browser:hq(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:pq(),viewport:R.innerWidth?{w:R.innerWidth,h:R.innerHeight,dpr:R.devicePixelRatio||1}:null,screen:n?{w:n.width||null,h:n.height||null,availW:n.availWidth||null,availH:n.availHeight||null,colorDepth:n.colorDepth||null,orientation:n.orientation?.type||null}:null,theme:gq()}},cb=(t={})=>{let e=t.url,n=typeof t.transport=="function"?t.transport:null,r=typeof t.syncTransport=="function"?t.syncTransport:null;if(!e&&!n)return()=>{};let o=t.apiKey||null,s=t.appKey||t.appId||null,i=t.tenantKey||t.tenant||null,a=t.release||null,c=t.env||null,l=t.sdk||null,f=typeof t.getAuth=="function"?t.getAuth:null,u=typeof t.getContext=="function"?t.getContext:null,d=typeof t.classify=="function"?t.classify:aC,p=typeof t.beforeSend=="function"?t.beforeSend:null,g=t.debug===!0,h=typeof t.getDebug=="function"?t.getDebug:null,m=t.batchMs!=null?t.batchMs:aq,y=t.maxBatch||cq,x=t.maxRetries!=null?t.maxRetries:lq,k=t.backoffMs||fq,C=t.queueLimit||uq,_=t.sampleRate!=null?t.sampleRate:1,b=()=>typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`,w=t.sessionId||b(),S=[],A=[],T=null,O=null,B=()=>{T||!S.length||(T=setTimeout(Y,m))},$=Z=>{if(O)return;let Q=k*Math.pow(2,Math.max(0,Z-1));O=setTimeout(()=>{if(O=null,!A.length)return;let it=A.shift();G(it.envelope,it.attempt)},Q)},N=(Z,Q=!1)=>{let it=u?iC(u):null,rt={id:w,sentAt:Date.now()};Q&&(rt.endedAt=Date.now());let gt={v:1,session:rt,app:{key:s,release:a,env:c},tenant:i,sdk:l,page:mq(),user:it?.user||null,traits:it?.traits||null,tags:it?.tags||null,events:Z};if((h?iC(h)===!0:g)&&(gt.app.debug=!0),p)try{return p(gt)||null}catch{return gt}return gt},G=async(Z,Q=1)=>{if(Z)try{let it=!0;if(n){let rt=await n(Z);it=rt!==!1&&rt?.ok!==!1}else it=await yq(e,Z,{apiKey:o,getAuth:f});!it&&Q<x&&(A.push({envelope:Z,attempt:Q+1}),$(Q+1))}catch{Q<x&&(A.push({envelope:Z,attempt:Q+1}),$(Q+1))}},Y=(Z=!1,Q=!1)=>{if(T&&(clearTimeout(T),T=null),!S.length&&!Q)return;let it=S;S=[];let rt=N(it,Q);if(rt){if(Z&&ab){if(typeof r=="function"&&iC(()=>r(rt)))return;if(navigator.sendBeacon&&e){let gt=dq(rt);if(gt)try{navigator.sendBeacon(e,new R.Blob([gt],{type:"application/json"}));return}catch{}}}G(rt)}},nt=!1,ot=()=>{nt||(nt=!0,Y(!0,!0))};ab&&(R.addEventListener("pagehide",ot,{passive:!0}),R.addEventListener("beforeunload",ot,{passive:!0}),R.addEventListener("visibilitychange",()=>{R.document.visibilityState==="hidden"&&Y(!0)},{passive:!0}));let st=Z=>{if(!Z||_<1&&Math.random()>_)return;nt&&(nt=!1);let Q={...Z,log_type:d(Z)};S.push(Q),S.length>C&&(S=S.slice(-C)),S.length>=y?Y():B()},J=Z=>(Y(!1,!0),w=Z||b(),nt=!1,st.sessionId=w,w);return st.flush=()=>Y(!1),st.endSession=ot,st.startNewSession=J,st.sessionId=w,st},iC=t=>{try{return t()}catch{return null}},yq=async(t,e,{apiKey:n,getAuth:r})=>{let o={"Content-Type":"application/json","X-Analyze-Beacon":"1"};if(n&&(o["X-Analyze-Key"]=n),r)try{let s=await r();s&&(o.Authorization=`Bearer ${s}`)}catch{}try{return(await fetch(t,{method:"POST",headers:o,body:JSON.stringify(e),keepalive:!0,credentials:"omit",mode:"cors"})).ok}catch{return!1}};var bq={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},_q="\x1B[0m",lb=typeof R<"u"&&typeof R.document<"u",cC=(t={})=>{let e=t.minLevel||null,n=console.error.bind(console),r=console.warn.bind(console),o=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?n:s.level==="warn"?r:o,a=`[analyze:${s.type}]`;if(lb)i(a,s);else{let c=bq[s.level]||"";i(`${c}${a}${_q}`,s)}}},lC=(t,e={})=>{let n=e.max||t.config.cache?.max||500,r=new Array(n),o=0,s=0,i=a=>{r[o]=a,o=(o+1)%n,s<n&&s++};return t.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(o-s+n)%n;for(let l=0;l<s;l++)a[l]=r[(c+l)%n];return a},query:(a={})=>{let c=t.__memory.snapshot(),l=a.sinceMs?Date.now()-a.sinceMs:0;return c.filter(f=>!(!f||a.level&&f.level!==a.level||a.type&&f.type!==a.type||l&&f.ts<l))},clear:()=>{o=0,s=0}},i},fC=(t={})=>{let e=t.url,n=t.batchMs!=null?t.batchMs:5e3,r=t.maxBatch||50;if(!e)return()=>{};let o=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!o.length)return;let c=JSON.stringify({events:o});o=[];let l=lb?new R.Blob([c],{type:"application/json"}):c;if(lb&&navigator.sendBeacon)try{navigator.sendBeacon(e,l);return}catch{}typeof fetch<"u"&&fetch(e,{method:"POST",headers:{"Content-Type":"application/json","X-Analyze-Beacon":"1"},body:c,keepalive:!0}).catch(()=>{})};lb&&(R.addEventListener("pagehide",i,{passive:!0}),R.addEventListener("beforeunload",i,{passive:!0}));let a=c=>{c&&(o.push(c),o.length>=r?i():s||(s=setTimeout(i,n)))};return a.flush=i,a},MF={console:cC,memory:lC,beacon:fC,remote:cb},NF=(t,e)=>e.getDebug!=null||e.debug!=null?e:{...e,getDebug:()=>t.config.debug===!0},fb=t=>{let e=Array.isArray(t.config.sinks)?t.config.sinks:["console"],n=[];for(let r of e)if(typeof r=="function")n.push(r);else if(typeof r=="string"){let o=MF[r];if(!o)continue;n.push(r==="memory"?o(t,{}):o(r==="remote"?NF(t,{}):{}))}else if(r&&typeof r=="object"&&r.type){let o=MF[r.type];if(!o)continue;n.push(r.type==="memory"?o(t,r):o(r.type==="remote"?NF(t,r):r))}return n};M();var wq=typeof R<"u"&&typeof R.document<"u",Sq=new Set(["password","hidden"]),$F=(t,e)=>{let n=0,r=null,o=null;return(...s)=>{let i=Date.now();i-n>=e?(n=i,t(...s)):(o=s,r||(r=setTimeout(()=>{n=Date.now(),r=null,o&&(t(...o),o=null)},e-(i-n))))}},uC="__analyzeKeyPath",qc=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[uC])return e[uC];let n=[],r=e,o=0,s=null;for(;r&&o<64;){if(r.getAttribute){let a=r.getAttribute("data-key");a&&(s==null&&(s=a),n.unshift(a))}r=r.parentNode,o++}let i;if(n.length)i={selector:null,key:s,path:n.join(" > "),tag:e.tagName?.toLowerCase()||null};else{let a=(e.tagName||"unknown").toLowerCase(),c=e.id?`#${e.id}`:"",l=e.className&&typeof e.className=="string"?"."+e.className.trim().split(/\s+/).slice(0,2).join("."):"";i={selector:`${a}${c}${l}`,key:null,path:null}}try{e[uC]=i}catch{}return i},xq=(t,e)=>{if(e==="mask")return"***";if(e!=="redact"){if(e==="hash"){let n=0,r=String(t||"");for(let o=0;o<r.length;o++)n=(n<<5)-n+r.charCodeAt(o)|0;return`#${(n>>>0).toString(36)}`}return"***"}},kq=t=>!!(!t||t.tagName==="INPUT"&&Sq.has(t.type)||ob.test(t.name||"")||ob.test(t.id||"")||t.dataset?.analyze==="skip"),ub=t=>{if(!wq)return;let e=t.config.capture,n=t.config.throttle,r=t.__teardown,o=(s,i,a,c)=>{s.addEventListener(i,a,c),r.push(()=>s.removeEventListener(i,a,c))};if(e.errors&&(o(R,"error",s=>{t.emit(ft("error","error",{hook:"window.onerror",message:s.message||null,error:s.error||null,source:s.filename||null,line:s.lineno||null,col:s.colno||null}))}),o(R,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;t.emit(ft("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),e.pointer){o(R,"click",i=>{t.emit(ft("pointer","info",{hook:"click",target:qc(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:FF(i)}))},{passive:!0,capture:!0}),o(R,"dblclick",i=>{t.emit(ft("pointer","info",{hook:"dblclick",target:qc(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(R,"contextmenu",i=>{t.emit(ft("pointer","info",{hook:"contextmenu",target:qc(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=$F(i=>{t.emit(ft("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},n.pointermove);o(R,"pointermove",s,{passive:!0})}if(e.keyboard&&o(R,"keydown",s=>{t.emit(ft("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:FF(s),target:qc(s)}))},{passive:!0,capture:!0}),e.forms){let s=i=>{let a=i.target;if(!a||!a.tagName||!["INPUT","TEXTAREA","SELECT"].includes(a.tagName))return;let l=kq(a),f=a.dataset?.analyze==="track",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=xq(a.value,t.config.maskStrategy)),t.emit(ft("forms","info",{hook:i.type,target:qc(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};o(R,"input",s,{passive:!0,capture:!0}),o(R,"change",s,{passive:!0,capture:!0}),o(R,"submit",i=>{t.emit(ft("forms","info",{hook:"submit",target:qc(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=$F(()=>{t.emit(ft("scroll","trace",{hook:"scroll",x:R.scrollX,y:R.scrollY}))},n.scroll);o(R,"scroll",s,{passive:!0,capture:!0})}if(e.viewport){let s=Ul(()=>{t.emit(ft("viewport","info",{hook:"resize",w:R.innerWidth,h:R.innerHeight,dpr:R.devicePixelRatio||1}))},n.resize);o(R,"resize",s,{passive:!0}),o(R,"orientationchange",()=>{t.emit(ft("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(R.document,"visibilitychange",()=>{t.emit(ft("viewport","info",{hook:"visibilitychange",hidden:R.document.hidden}))},{passive:!0}),t.emit(ft("viewport","info",{hook:"initial",w:R.innerWidth,h:R.innerHeight,dpr:R.devicePixelRatio||1}))}if(e.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{t.emit(ft("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(BF)}))}catch{}return i.apply(console,a)},r.push(()=>{console[s]=i})}if(e.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let c of a.getEntries())t.emit(ft("performance","info",{hook:c.entryType,name:c.name,startTime:c.startTime,duration:c.duration,value:c.value!=null?c.value:null}))}),i=["largest-contentful-paint","layout-shift","longtask","paint","first-input","event"];for(let a of i)try{s.observe({type:a,buffered:!0})}catch{}r.push(()=>s.disconnect())}catch{}},FF=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),Eq=t=>{let e={name:t.name||"Error",message:typeof t.message=="string"?t.message:String(t),stack:typeof t.stack=="string"?t.stack:null};return t.cause!==void 0&&(e.cause=BF(t.cause)),e},BF=t=>{if(t==null)return t;if(t instanceof Error)return Eq(t);if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};M();var vq=typeof R<"u"&&typeof R.document<"u",jF=(t,e)=>{let n=t?.analyze;if(!n||!n.shouldCapture("network"))return;let r=e.phase==="error"?"error":"info";n.emit(ft("network",r,{hook:`fetch.${e.phase}`,source:"symbo-fetch",...e}))},zd=t=>{if(vq&&t.config.capture.network&&!t.__networkListeners){if(t.__networkListeners=!0,t.__teardown.push(()=>{t.__networkListeners=!1}),typeof R.fetch=="function"){let e=R.fetch.bind(R),n=function(r,o){if(o?.headers?.["X-Analyze-Beacon"]||!t.shouldCapture("network"))return e(r,o);let s=typeof r=="string"?r:r&&r.url||"",i=(o?.method||typeof r=="object"&&r?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return t.emit(ft("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),e(r,o).then(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;return t.emit(ft("network",c.ok?"info":"warn",{hook:"fetch.success",source:"window.fetch",url:s,method:i,status:c.status,ok:c.ok,durationMs:l})),c}).catch(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;throw t.emit(ft("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:c,durationMs:l})),c})};R.fetch=n,t.__teardown.push(()=>{R.fetch=e})}if(typeof R.XMLHttpRequest=="function"){let e=R.XMLHttpRequest,n=e.prototype.open,r=e.prototype.send;e.prototype.open=function(o,s){return this.__analyze={method:String(o).toUpperCase(),url:String(s)},n.apply(this,arguments)},e.prototype.send=function(o){let s=this.__analyze;if(!s||!t.shouldCapture("network"))return r.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();t.emit(ft("network","info",{hook:"xhr.start",source:"xhr",url:s.url,method:s.method}));let a=()=>{let l=(typeof performance<"u"?performance.now():Date.now())-i,f=this.status>=200&&this.status<400;t.emit(ft("network",f?"info":"warn",{hook:"xhr.success",source:"xhr",url:s.url,method:s.method,status:this.status,ok:f,durationMs:l}))},c=()=>{let l=(typeof performance<"u"?performance.now():Date.now())-i;t.emit(ft("network","error",{hook:"xhr.error",source:"xhr",url:s.url,method:s.method,status:this.status,durationMs:l}))};return this.addEventListener("loadend",a),this.addEventListener("error",c),r.apply(this,arguments)},t.__teardown.push(()=>{e.prototype.open=n,e.prototype.send=r})}}};var Aq={errors:!0,warnings:!0,pointer:!1,keyboard:!1,forms:!1,scroll:!1,viewport:!1,network:!1,performance:!1,navigation:!1,console:!1,lifecycle:!1,state:!1,updates:!1,replay:!1,telemetry:!1},Cq={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},Tq={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},Oq={errors:!0,warnings:!0,console:!0,network:!1,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},Rq=t=>{let e={...Aq,...t};return e.replay&&Object.assign(e,Cq),e.telemetry&&Object.assign(e,Tq),e.remote&&Object.assign(e,Oq),Object.assign(e,t),e},Pq=64,Lq=()=>{if(typeof R>"u"||!R.location)return null;try{let e=new URLSearchParams(R.location.search).get("analyze");return e||null}catch{return null}},VF=(t={})=>{let e=t===!0?{}:{...t};e.capture=Rq(e.capture||{});let n=Lq();(n==="debug"||e.debug)&&(e.level="debug",e.debug=!0,e.capture={...e.capture,lifecycle:!0,state:!0,updates:!0,console:!0,network:!0}),n==="off"&&(e.enabled=!1),e.level=Vd(e.level||"warn"),e.cache={max:500,dedupeWindowMs:1e3,...e.cache||{}},e.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...e.throttle||{}},e.maskFormValues==null&&(e.maskFormValues=!0),e.maskStrategy||(e.maskStrategy="mask"),Array.isArray(e.sinks)||(e.sinks=["console","memory"]),Array.isArray(e.transformers)||(e.transformers=["enrich","summarize"]);let r={config:e,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},o=()=>{r.__pipeline||(r.__pipeline=ib(r),r.__sinks=fb(r))};return r.shouldCapture=s=>r.config.enabled===!1?!1:!!r.config.capture[s],r.emit=s=>{if(s&&r.config.enabled!==!1&&!r.__paused&&rb(s.level,r.config.level)){if(!r.__ready){if(s.level!=="error"&&!r.config.captureDuringHydration)return;r.__preBuffer.length<Pq&&r.__preBuffer.push(s);return}o(),UF(r,s)}},r.activate=s=>{if(r.context==null&&(r.context=s||null),r.__ready)return;r.__ready=!0;let i=r.__preBuffer;if(r.__preBuffer=[],i.length){o();for(let a of i)UF(r,a)}try{ub(r)}catch(a){console.error("[analyze] browser attach error:",a)}try{zd(r)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of r.__onActivate||[])try{a(r)}catch(c){console.error("[analyze] onActivate error:",c)}},r.pause=()=>{r.__paused=!0},r.resume=()=>{r.__paused=!1},r.setLevel=s=>{r.config.level=Vd(s)},r.setCapture=(s,i)=>{if(r.config.capture[s]=!!i,s==="network"&&i&&r.__ready)try{zd(r)}catch(a){console.error("[analyze] network attach error:",a)}},r.query=s=>r.__memory?r.__memory.query(s):[],r.snapshot=()=>r.__memory?r.__memory.snapshot():[],r.emitNetwork=s=>{if(!r.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";r.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:"network",level:a,hook:`fetch.${i||"unknown"}`,...s})},r.flush=()=>{if(r.__sinks)for(let s of r.__sinks)typeof s.flush=="function"&&s.flush()},r.startNewSession=s=>{let i=s||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),a=Array.isArray(r.config.sinks)?r.config.sinks:[];for(let c of a)c&&typeof c=="object"&&c.type==="remote"&&(c.sessionId=i);if(r.__sinks)for(let c of r.__sinks)typeof c.startNewSession=="function"&&c.startNewSession(i);return i},r.replay=()=>({initialSnapshot:r.__initialSnapshot,events:r.snapshot()}),r.destroy=()=>{for(let s of r.__teardown)try{s()}catch{}r.__teardown=[],r.__ready=!1,r.__paused=!0},r.__onActivate=[],r.onActivate=s=>{r.__onActivate.push(s)},r},UF=(t,e)=>{let n=t.__pipeline(e);if(n==null)return;let r=Array.isArray(n)?n:[n];for(let o of r){if(typeof t.config.onEvent=="function")try{t.config.onEvent(o)}catch{}for(let s of t.__sinks)try{s(o)}catch(i){console.error("[analyze] sink error:",i)}}};var _C={};F(_C,{shorthandPlugin:()=>pb});var bC={};F(bC,{PRESERVE_VALUE_KEYS:()=>oe,SKIP_INLINE_KEYS:()=>qo,abbrToProp:()=>re,decode:()=>qF,encode:()=>HF,expand:()=>Ei,isComponentKey:()=>Nn,isSelectorKey:()=>$n,parse:()=>vi,parseFurther:()=>Ci,propToAbbr:()=>bn,shorten:()=>Wd,shorthandPlugin:()=>pb,stringify:()=>ki,stringifyFurther:()=>Ai});var bn={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},re=Object.create(null);for(let t in bn)re[bn[t]]=t;var dC=Object.create(null);for(let t in bn){let e=bn[t];if(dC[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${dC[e]}"`);dC[e]=t}var oe=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]),qo=new Set(["text","tx","html","htm","content","cnt","placeholder","phd","src","href","hrf"]);function Nn(t){return/^[A-Z]/.test(t)}function $n(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function HF(t){if(!t||typeof t!="object")return"";let e=[];for(let n in t){let r=t[n];if(typeof r=="function"||r!==null&&typeof r=="object"&&!Array.isArray(r)||r===void 0)continue;let o=bn[n]||n;if(r===!0)e.push(o);else if(r===!1)e.push("!"+o);else if(Array.isArray(r)){let s=r.map(i=>db(i));e.push(o+":"+s.join(","))}else e.push(o+":"+db(r))}return e.join(" ")}function db(t){return String(t).replace(/ /g,"_")}function Wd(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Wd(n):n});let e={};for(let n in t){let r=t[n];if(Nn(n)){e[n]=pC(r);continue}if($n(n)){e[n]=pC(r);continue}let o=bn[n]||n;if(oe.has(n)||oe.has(o)){e[o]=r;continue}e[o]=pC(r)}return e}function pC(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Wd(e):e}):typeof t=="object"?Wd(t):t}function ki(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?ki(r):r});let e={},n=[];for(let r in t){let o=t[r];if(Nn(r)){e[r]=zF(o);continue}if($n(r)){e[r]=zF(o);continue}let s=bn[r]||r;if(oe.has(r)||oe.has(s)){e[s]=o;continue}if(typeof o=="function"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(qo.has(r)||qo.has(s)){e[s]=o;continue}if(Array.isArray(o)){if(o.some(function(a){return a!==null&&typeof a=="object"})){e[s]=o.map(function(a){return a!==null&&typeof a=="object"?ki(a):a});continue}if(o.length<=1){e[s]=o;continue}n.push(s+":"+o.map(db).join(","));continue}if(typeof o=="object"){e[s]=ki(o);continue}o===!0?n.push(s):o===!1?n.push("!"+s):typeof o=="number"||typeof o=="string"&&(o.includes(",")||o.includes("_"))?e[s]=o:n.push(s+":"+db(o))}return n.length&&(e.in=n.join(" ")),e}function zF(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?ki(e):e}):typeof t=="object"?ki(t):t}function qF(t){if(!t||typeof t!="string")return{};let e={},n=GF(t);for(let r of n){if(r.startsWith("!")){let c=r.slice(1),l=re[c]||c;e[l]=!1;continue}let o=r.indexOf(":");if(o===-1){let c=re[r]||r;e[c]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=re[s]||s;if(i.includes(",")){e[a]=i.split(",").map(WF);continue}e[a]=WF(i)}return e}function GF(t){return t.trim().split(/\s+/).filter(Boolean)}function WF(t){let e=t.replace(/_/g," ");return/^-?\d+(\.\d+)?$/.test(e)?Number(e):e}function KF(t){return t.replace(/_/g," ")}function Dq(t){if(!t||typeof t!="string")return{};let e={},n=GF(t);for(let r of n){if(r.startsWith("!")){let c=r.slice(1),l=re[c]||c;e[l]=!1;continue}let o=r.indexOf(":");if(o===-1){let c=re[r]||r;e[c]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=re[s]||s;if(i.includes(",")){e[a]=i.split(",").map(KF);continue}e[a]=KF(i)}return e}function Ei(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Ei(n):n});let e={};for(let n in t){let r=t[n];if(Nn(n)){e[n]=hC(r);continue}let o=re[n]||n;if($n(n)&&o===n){e[n]=hC(r);continue}if(oe.has(o)||oe.has(n)){e[o]=r;continue}e[o]=hC(r)}return e}function hC(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ei(e):e}):typeof t=="object"?Ei(t):t}function vi(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?vi(n):n});let e={};if(typeof t.in=="string"){let n=Dq(t.in);for(let r in n)e[r]=n[r]}for(let n in t){if(n==="in")continue;let r=t[n];if(Nn(n)){e[n]=gC(r);continue}let o=re[n]||n;if($n(n)&&o===n){e[n]=gC(r);continue}if(oe.has(o)||oe.has(n)){e[o]=r;continue}e[o]=gC(r)}return e}function gC(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?vi(e):e}):typeof t=="object"?vi(t):t}function YF(t){return String(t).replace(/\\/g,"\\\\").replace(/_/g,"\\_").replace(/,/g,"\\,").replace(/ /g,"_")}function Iq(t){let e="",n=0;for(;n<t.length;){if(t[n]==="\\"&&n+1<t.length){let r=t[n+1];if(r===","||r==="_"||r==="\\"){e+=r,n+=2;continue}}t[n]==="_"?e+=" ":e+=t[n],n++}return e}function Mq(t){let e=[],n="",r=0;for(;r<t.length;){if(t[r]==="\\"&&r+1<t.length){n+=t[r]+t[r+1],r+=2;continue}if(t[r]===","){e.push(n),n="",r++;continue}n+=t[r],r++}return e.push(n),e}function XF(t){if(t==null||typeof t!="object"||Array.isArray(t))return!1;let e=Object.keys(t);return e.length===1&&e[0]==="in"&&typeof t.in=="string"}function Ai(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Ai(r):r});let e={},n=[];for(let r in t){let o=t[r];if(Nn(r)){let i=ZF(o);e[r]=XF(i)?i.in:i;continue}if($n(r)){let i=ZF(o);e[r]=XF(i)?i.in:i;continue}let s=bn[r]||r;if(oe.has(r)||oe.has(s)){e[s]=o;continue}if(typeof o=="function"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(qo.has(r)||qo.has(s)){e[s]=o;continue}if(Array.isArray(o)){if(o.some(function(a){return a!==null&&typeof a=="object"})){e[s]=o.map(function(a){return a!==null&&typeof a=="object"?Ai(a):a});continue}if(o.length<=1){e[s]=o;continue}n.push(s+":"+o.map(YF).join(","));continue}if(typeof o=="object"){e[s]=Ai(o);continue}if(o===!0){n.push(s);continue}if(o===!1){n.push("!"+s);continue}if(typeof o=="number"){n.push(s+":#"+o);continue}n.push(s+":"+YF(o))}return n.length&&(e.in=n.join(" ")),e}function ZF(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ai(e):e}):typeof t=="object"?Ai(t):t}function JF(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):Iq(t)}function mC(t){if(!t||typeof t!="string")return{};let e={},n=t.trim().split(/\s+/).filter(Boolean);for(let r of n){if(r.startsWith("!")){let l=r.slice(1),f=re[l]||l;e[f]=!1;continue}let o=r.indexOf(":");if(o===-1){let l=re[r]||r;e[l]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=re[s]||s,c=Mq(i);if(c.length>1){e[a]=c.map(JF);continue}e[a]=JF(i)}return e}function Ci(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Ci(n):n});let e={};if(typeof t.in=="string"){let n=mC(t.in);for(let r in n)e[r]=n[r]}for(let n in t){if(n==="in")continue;let r=t[n];if(Nn(n)){typeof r=="string"?e[n]=mC(r):e[n]=yC(r);continue}let o=re[n]||n;if($n(n)&&o===n){typeof r=="string"?e[n]=mC(r):e[n]=yC(r);continue}if(oe.has(o)||oe.has(n)){e[o]=r;continue}e[o]=yC(r)}return e}function yC(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ci(e):e}):typeof t=="object"?Ci(t):t}var Nq={shorten:Ei,stringify:vi,stringifyFurther:Ci};function $q(t,e){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(r=>e(r));let n={};for(let r in t){let o=t[r];n[r]=o&&typeof o=="object"?e(o):o}return n}var Fq=["components","pages","snippets"],pb={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let r=Nq[e===!0?"shorten":e];if(r){for(let o of Fq)t[o]&&(t[o]=$q(t[o],r));t.app&&typeof t.app=="object"&&(t.app=r(t.app))}}};var Kd={};F(Kd,{Inspect:()=>hb,inspectPlugin:()=>jq});M();function QF(t){return v(t)?t:I(t)?t.find(e=>v(e)):""}function wC(t){if(!t)return;let e=t.__ref.__componentKey,n=t.extends&&QF(t.extends),r=t.parent&&t.parent.childExtends&&QF(t.parent.childExtends);return(e||n||r||"").split("_")[0].split(".")[0].split("+")[0]}function gb(t){if(!t||!t.__ref)return;let{components:e,pages:n,editor:r}=t.context,o=wC(t);return r&&r.onInitInspect&&!r.onInitInspect(o,t,t.state)?gb(t.parent):o&&(e[o]||n[o])?t:gb(t.parent)}var Bq=(t,e,n)=>{let r=n.window||window;r.onkeydown=o=>{o.altKey&&o.shiftKey&&t.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},r.onkeyup=o=>{t.state.preventSelect&&(!o.altKey||!o.shiftKey)&&(t.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),t.Inspector.state.update({area:!1}))}},hb={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:Bq,onMousemove:(t,e,n)=>{let r=t.target.ref,o=gb(r),s=e.Inspector.state;if(!o||!n.debugging||!o.__ref)return s.update({area:!1});let i=wC(o),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:u,height:d}=o.node.getBoundingClientRect(),p={x:l,y:f,width:u,height:d};if(!s.area)return a(p);s.area.x!==p.x&&a(p)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{c(),window.requestAnimationFrame(c)})},onMousedown:(t,e,n)=>{if(!n.debugging)return;let r=t.target.ref,o=gb(r);if(!o)return;let s=wC(o);if(!s)return;let i=r.context.editor;if(i&&i.onInspect)return i.onInspect(s,r,r.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return r.context.socket?.emit&&r.context.socket.emit("route",a),t.preventDefault(),t.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(t,e)=>!(e.area&&e.parent.debugging),style:{boxShadow:"0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",zIndex:"9999999",borderRadius:"10px",pointerEvents:"none"},Span:{position:"absolute",margin:"A2 0",fontSize:"Z",color:"text",zIndex:"99999999",transition:"all, defaultBezier, X",textDecoration:"underline",fontWeight:"500",top:"100%",style:{boxShadow:"0 25px 10px 35px black",textShadow:"0 0 10px black"},text:"{{ focusKey }}"},onInit:({context:t})=>{let{components:e}=t;if(E(e)){let{Content:n,...r}=e;for(let o in r)Fc[o]||(r[o].__ref||(r[o].__ref={}),r[o].__ref.__componentKey||(r[o].__ref.__componentKey=o))}},onBeforeUpdate:(t,e,n)=>{let{area:r}=n,o=n.area&&n.parent.debugging,s;if(!o)s="display: none !important";else if(r){let{x:i,y:a,width:c,height:l}=r;s=`
160
+ `,kq=()=>{if(typeof document>"u"||document.getElementById("smbls-dropdown-css"))return;let t=document.createElement("style");t.id="smbls-dropdown-css",t.textContent=xq,document.head.appendChild(t)},FF=(t,e)=>{if(!t.node)return;let n=e?.background;if(!n)t.node.removeAttribute("data-smbls-surface");else{let r=/^[a-z][\w.+-]*$/i.test(n)?`var(--color-${n})`:n;t.node.style.setProperty("--smbls-dropdown-surface",r),t.node.setAttribute("data-smbls-surface","")}e?.theme?t.node.setAttribute("data-smbls-themed",""):t.node.removeAttribute("data-smbls-themed"),e?.shadow||t.scope?.bodyShadow?t.node.setAttribute("data-smbls-shadowed",""):t.node.removeAttribute("data-smbls-shadowed")},Eq=t=>{if(!t)return null;let e=typeof t.shadow=="function"?t.shadow(t,t.state):t.shadow;return typeof e=="string"&&e?e:null},vq=t=>{t.node&&(t.node.removeAttribute("data-smbls-open"),t.node.offsetWidth,t.node.setAttribute("data-smbls-open","true"))},Aq=[["role","role"],["aria-label","ariaLabel"],["aria-labelledby","ariaLabelledby"]],BF=(t,e)=>{if(!t.node)return;let n=new Set;for(let[r,o]of Aq){let s=e?.[o];s&&(t.node.setAttribute(r,s),n.add(r))}if(t.__a11yAttrs)for(let r of t.__a11yAttrs)n.has(r)||t.node.removeAttribute(r);t.__a11yAttrs=n,t.__panelTabindex&&(t.node.removeAttribute("tabindex"),t.__panelTabindex=!1)},Tq='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',Cq=t=>{let e=t.node;if(e){for(let n of e.querySelectorAll(Tq)){if(n.matches(":disabled"))continue;let r=n.getAttribute("tabindex");if(!(r!==null&&parseInt(r,10)<0)&&(n.focus({preventScroll:!0}),e.ownerDocument.activeElement===n))return}e.setAttribute("tabindex","-1"),t.__panelTabindex=!0,e.focus({preventScroll:!0})}},ob={tag:"div",attr:{"data-smbls-dropdown-root":"true"},position:"fixed",inset:"0",zIndex:"1500",pointerEvents:"none",state:{layer:null},onInit:t=>{if(kq(),typeof window>"u")return;let e=r=>{r.key!=="Escape"||r.defaultPrevented||t.state?.layer&&(r.preventDefault(),vi.call(t))};window.addEventListener("keydown",e),t.__dropdownEscHandler=e;let n=r=>{let o=t.state?.layer;if(!o)return;let s=t.node?.querySelector('[data-smbls-dropdown="panel"]');if(s&&s.contains(r.target))return;let i=o.anchor;if(i){let a=r.clientX,c=r.clientY;if(a>=i.left&&a<=i.right&&c>=i.top&&c<=i.bottom)return}vi.call(t)};document.addEventListener("mousedown",n,!0),t.__dropdownClickHandler=n},onRemove:t=>{typeof window>"u"||(t.__dropdownEscHandler&&window.removeEventListener("keydown",t.__dropdownEscHandler),t.__dropdownClickHandler&&document.removeEventListener("mousedown",t.__dropdownClickHandler,!0))},PanelHost:{tag:"div",position:"fixed",inset:"0",pointerEvents:"none",subscribeTo:["layer"],layer:(t,e)=>e?.layer||null,Panel:{tag:"div",attr:{"data-smbls-dropdown":"panel"},position:"fixed",subscribeTo:["layer"],left:t=>{let e=t.parent?.layer;if(!e?.anchor)return"-9999px";let n=t._lastSize||{width:280,height:200};return Zr(e.anchor,n,e.placement).left+"px"},top:t=>{let e=t.parent?.layer;if(!e?.anchor)return"-9999px";let n=t._lastSize||{width:280,height:200};return Zr(e.anchor,n,e.placement).top+"px"},style:t=>{let e=t.parent?.layer;if(!e?.anchor)return{};let n=t._lastSize||{width:280,height:200};return{"--smbls-dropdown-from":Jc(Zr(e.anchor,n,e.placement).side)}},minWidth:t=>t.parent?.layer?.minWidth||"180px",maxWidth:t=>t.parent?.layer?.maxWidth||"90vw",maxHeight:t=>{let e=t.parent?.layer;if(!e?.anchor)return"none";let n=t._lastSize||{width:280,height:200};return nT(e,Zr(e.anchor,n,e.placement))},overflow:"auto",overscrollBehavior:"contain",padding:"0",round:t=>t.parent?.layer?.round||"radiusCard",theme:t=>t.parent?.layer?.theme||null,border:"none",borderWidth:"0",shadow:t=>t.parent?.layer?.shadow||t.scope?.bodyShadow||null,scope:{bodyShadow:null},animationDuration:"B",animationTimingFunction:"defaultBezier",pointerEvents:t=>{let e=t.parent?.layer;return e?e.inert?"none":"auto":"none"},opacity:t=>t.parent?.layer?"1":"0",onClick:t=>t.stopPropagation(),onInit:t=>{let e=Y(()=>{let n=t.parent?.layer,r=n?.content||null,o=n?.id||null;if(!r){if(t.__lastLayerId!=null){try{t.removeContent?.()}catch{}t.__lastLayerId=null,BF(t,null),t.node?.removeAttribute("data-smbls-open"),t.scope&&(t.scope.bodyShadow=null)}return}if(t.__lastLayerId!==o){t.__lastLayerId=o;try{t.set(r)}catch(s){console.warn("[dropdown] content set failed:",s)}t.scope&&(t.scope.bodyShadow=Eq(t.content)),FF(t,n),BF(t,n),vq(t),n.focusIn&&Cq(t),!(typeof requestAnimationFrame>"u")&&requestAnimationFrame(()=>{if(!t.node)return;FF(t,n);let s=t.parent?.layer;if(!s?.anchor)return;let i=$F(t.node);t._lastSize=i;let a=Zr(s.anchor,i,s.placement);t.node.style.maxHeight=nT(s,a),t.node.style.left=a.left+"px",t.node.style.top=a.top+"px",t.node.style.setProperty("--smbls-dropdown-from",Jc(a.side))})}});t.__ref&&t.__ref.__effects?.push(e)},onRender:t=>{if(!t?.node)return;let e=t.parent?.layer;if(!e?.anchor)return;let n=$F(t.node),r=t._lastSize;(!r||Math.abs(r.width-n.width)>1||Math.abs(r.height-n.height)>1)&&(t._lastSize=n);let s=Zr(e.anchor,n,e.placement);t.node.style.maxHeight=nT(e,s),t.node.style.left=s.left+"px",t.node.style.top=s.top+"px",t.node.style.setProperty("--smbls-dropdown-from",Jc(s.side))}}}};var rT=t=>{let r=t?.getRoot?.()?.DropdownRoot?.state?.layer;if(r&&t.dropdownId&&r.id===t.dropdownId){t.call("closeDropdown");return}let o={anchorEl:t,trigger:t.dropdownTrigger||"click",placement:t.dropdownPlacement||"auto",content:t.dropdownContent||null,minWidth:t.dropdownMinWidth,maxWidth:t.dropdownMaxWidth,maxHeight:t.dropdownMaxHeight,theme:t.dropdownTheme,offset:t.dropdownOffset,id:t.dropdownId,onOpen:t.onDropdownOpen,onClose:t.onDropdownClose};for(let s in o)o[s]===void 0&&delete o[s];t.call("openDropdown",o)},sb={position:"relative",onClick:(t,e)=>{(e.dropdownTrigger||"click")==="click"&&(t.preventDefault(),t.stopPropagation(),rT(e))},onFocus:(t,e)=>{e.dropdownTrigger==="focus"&&rT(e)},onMouseenter:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&clearTimeout(e._hoverTimer),e._hoverTimer=setTimeout(()=>rT(e),120))},onMouseleave:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=null),e._closeTimer=setTimeout(()=>e.call("closeDropdown"),250))}};var ib={extends:"smbls.Dropdown"},ab={extends:"smbls.DropdownList"},cb={extends:"smbls.DropdownParent"},lb={extends:"smbls.DropdownParentFocus"},fb={extends:"smbls.DropdownSiblingFocus"};var oT={DropdownRoot:ob,DropdownTrigger:sb,Dropdown:ib,DropdownList:ab,DropdownParent:cb,DropdownParentFocus:lb,DropdownSiblingFocus:fb};var aT={};B(aT,{DROPDOWN_DEFAULTS:()=>Jo,closeDropdown:()=>vi,computePosition:()=>Zr,dropdownFunctions:()=>iT,fadeInTransform:()=>Jc,openDropdown:()=>nb,setDropdownInert:()=>rb});var iT={openDropdown:nb,closeDropdown:vi,setDropdownInert:rb};var hT={};B(hT,{components:()=>iB,functions:()=>aB});var Oq=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),Rq=(t,e,n,r,o)=>{let s=Oq(e,r,o),i=t==="top"||t==="bottom"?n.height+6:n.width+6;if(s[t]>=i)return t;let a={top:"bottom",bottom:"top",left:"right",right:"left"}[t];return a&&s[a]>=i?a:t},jF=(t,e,n)=>Math.max(e,Math.min(n,t)),VF=(t,e,n="bottom")=>{if(!t)return{left:0,top:0,side:"bottom"};let r=typeof window<"u"?window.innerWidth:1024,o=typeof window<"u"?window.innerHeight:768,s=Rq(n,t,e,r,o),i,a;return s==="bottom"||s==="top"?(i=t.left+(t.width-e.width)/2,a=s==="bottom"?t.bottom+6:t.top-e.height-6):(a=t.top+(t.height-e.height)/2,i=s==="right"?t.right+6:t.left-e.width-6),i=jF(i,6,r-e.width-6),a=jF(a,6,o-e.height-6),{left:i,top:a,side:s}},UF={bottom:["0","-10%"],top:["0","10%"],left:["10%","0"],right:["-10%","0"]},zF=t=>(UF[t]||UF.bottom).join(" ");var Qo={placement:"bottom",theme:"dialog",delay:250,hideDelay:100,warmWindow:300},HF=t=>{if(!t||typeof t!="object")return null;let e=Number(t.left),n=Number(t.top),r=Number(t.width??t.right-t.left),o=Number(t.height??t.bottom-t.top),s={left:e,top:n,right:Number(t.right??e+r),bottom:Number(t.bottom??n+o),width:r,height:o};for(let i in s)if(!Number.isFinite(s[i]))return null;return s},Pq=t=>!t||typeof t.getBoundingClientRect!="function"?null:HF(t.getBoundingClientRect()),lT=t=>t?.getRoot?.()?.TooltipRoot||null,fT=t=>{let e=t?.state?.tip;return e?typeof e.$parse=="function"?e.$parse():{...e}:null},uT=t=>!!(t&&t.open!==!1&&t.size),WF=(t,e=Date.now())=>{let n=lT(t)?.state?.tip;return n?n.open!==!1?!0:typeof n.closedAt=="number"&&e-n.closedAt<Qo.warmWindow:!1},KF=(t,e,n=0)=>{let r=fT(t);if(!r||r.id!==e||r.open===!1)return;let o=t.Panel?.node;if(!o||typeof o.getBoundingClientRect!="function")return;if(o.textContent!==(r.text||"")){n<3&&setTimeout(()=>KF(t,e,n+1),0);return}let s=o.getBoundingClientRect();t.state.update({tip:{...r,size:{width:s.width,height:s.height}}})},Lq=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},Dq=0,Iq=()=>`tooltip_${++Dq}_${Date.now().toString(36)}`;function qF(t={}){let e=lT(this);if(!e)return console.warn("[tooltip] openTooltip: TooltipRoot is not mounted on the app root. Add `TooltipRoot: {}` to your shell tree and import tooltip components into context."),null;let n=t.anchorEl?.node||t.anchorEl,r=HF(t.anchorRect);t.anchorRect!=null&&!r&&console.warn("[tooltip] openTooltip: anchorRect is not a rect ({ left, top, right, bottom, width, height }); the anchor element's own box is used.");let o=r||Pq(n);if(!o)return console.warn("[tooltip] openTooltip: no anchor element/rect provided."),null;let s=t.id||Iq(),i=fT(e),a=uT(i),c={id:s,owner:t.owner||null,text:t.text||"",anchor:o,placement:t.placement||Qo.placement,theme:t.theme||Qo.theme,open:!0,glide:a,size:a?i.size:null};return e.state.update({tip:c}),Lq(()=>KF(e,s)),s}function GF(t){let e=lT(this);if(!e)return;let n=fT(e);if(!n||n.open===!1)return;let r=typeof t=="string"?t:t?.id;if(r&&n.id&&r!==n.id)return;let o=typeof t=="object"?t?.owner:null;o&&n.owner&&o!==n.owner||e.state.update({tip:{...n,open:!1,closedAt:Date.now()}})}var YF=t=>{let e=t.tip;return e?.anchor?VF(e.anchor,e.size||{width:0,height:0},e.placement):null},dT=t=>uT(t.tip),Mq=t=>{let e=t.tip;return!e||e.open===!1?"Z opacity defaultBezier, Z translate defaultBezier, Z visibility defaultBezier, Z transform defaultBezier":e.size?e.glide?"A transform defaultBezier, A translate defaultBezier, A opacity defaultBezier, A visibility defaultBezier":"A opacity defaultBezier, A translate defaultBezier, A visibility defaultBezier":"Z opacity defaultBezier, Z visibility defaultBezier"},XF=t=>{let e=typeof window<"u"&&window.devicePixelRatio||1;return Math.round(t*e)/e},ZF={tag:"div",attr:{"data-smbls-tooltip-root":"true"},position:"fixed",inset:"0",zIndex:"2500",pointerEvents:"none",state:{tip:null},Panel:{tag:"div",attr:{"data-smbls-tooltip":"panel"},role:"tooltip",position:"fixed",left:"0",top:"0",tip:(t,e)=>e?.tip||null,transform:t=>{let e=YF(t);return e?`translate3d(${XF(e.left)}px, ${XF(e.top)}px, 0)`:"translate3d(-9999px, -9999px, 0)"},translate:t=>{if(dT(t))return"0 0";let e=YF(t);return zF(e?e.side:"bottom")},text:t=>t.tip?.text||"",theme:t=>t.tip?.theme||Qo.theme,width:"max-content",maxWidth:"280px",padding:"Y2 Z",round:"Z",fontSize:"Y2",lineHeight:"1.35",whiteSpace:"normal",pointerEvents:"none",opacity:t=>dT(t)?"1":"0",visibility:t=>dT(t)?"visible":"hidden",transition:t=>Mq(t)}};var pT=t=>{if(!t.tooltipText)return;let e=t.node;e&&e.hasAttribute&&e.hasAttribute("title")&&e.removeAttribute("title")},Nq=0,eB=t=>t._tooltipOwner||(t._tooltipOwner=`tooltip_trigger_${++Nq}`),JF=t=>{t.tooltipText&&(pT(t),t.call("openTooltip",{anchorEl:t,anchorRect:t.tooltipAnchorRect||void 0,text:t.tooltipText,placement:t.tooltipPlacement||"bottom",theme:t.tooltipTheme,id:t.tooltipId||t.key,owner:eB(t)}))},QF=t=>{if(t._tooltipHideTimer&&(clearTimeout(t._tooltipHideTimer),t._tooltipHideTimer=null),WF(t)){t._tooltipShowTimer&&(clearTimeout(t._tooltipShowTimer),t._tooltipShowTimer=null),JF(t);return}t._tooltipShowTimer||(t._tooltipShowTimer=setTimeout(()=>{t._tooltipShowTimer=null,JF(t)},t.tooltipDelay??Qo.delay))},tB=t=>{t._tooltipShowTimer&&(clearTimeout(t._tooltipShowTimer),t._tooltipShowTimer=null),!t._tooltipHideTimer&&(t._tooltipHideTimer=setTimeout(()=>{t._tooltipHideTimer=null,t.call("closeTooltip",{id:t.tooltipId||t.key,owner:eB(t)})},t.tooltipHideDelay??Qo.hideDelay))},nB={onMouseenter:(t,e)=>QF(e),onMouseleave:(t,e)=>tB(e),onFocus:(t,e)=>QF(e),onBlur:(t,e)=>tB(e),onMouseover:(t,e)=>pT(e),onFocusin:(t,e)=>pT(e)};var rB={display:"flex",theme:"dialog",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:t=>t.call("isDefined",t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"currentColor",text:t=>t.parent.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.description,t))||t.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"currentColor",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},oB={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:t=>{let e=!t.shapeDirection||t.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(t,e)},style:t=>{if(!t.scope||!t.scope.tooltipOpen)return{opacity:"",visibility:"",transform:""};let e=t.shapeDirection;return{opacity:"1",visibility:"visible",transform:e==="left"||e==="right"?"translate3d(0%,-50%,0)":"translate3d(-50%,0,0)"}},styleDeps:[t=>t.scope&&t.scope.tooltipOpen]},sB={position:"relative",zIndex:999,scope:{tooltipOpen:!1},onInit:t=>{let{Tooltip:e,TooltipHidden:n}=t,r=e||n;if(!r)return;let o=r&&r[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})},onPointerdown:(t,e)=>{t.pointerType!=="touch"||!e.scope||(e.scope.tooltipOpen=!e.scope.tooltipOpen)},onDocumentKeydown:(t,e)=>{t.key!=="Escape"||!e.scope||!e.scope.tooltipOpen||(e.scope.tooltipOpen=!1)},onDocumentPointerdown:(t,e)=>{!e.scope||!e.scope.tooltipOpen||e.node&&e.node.contains(t.target)||(e.scope.tooltipOpen=!1)}};var iB={TooltipRoot:ZF,TooltipTrigger:nB,Tooltip:rB,TooltipHidden:oB,TooltipParent:sB};var aB={openTooltip:qF,closeTooltip:GF};var Jd={};B(Jd,{LEVELS:()=>Yd,analyzePlugin:()=>ub,attachBrowserListeners:()=>wb,attachNetworkListeners:()=>Zd,classifyEvent:()=>ST,createAnalyzeState:()=>yB,createBeaconSink:()=>ET,createConsoleSink:()=>xT,createDedupe:()=>bT,createEnrich:()=>mT,createMemorySink:()=>kT,createPipeline:()=>gb,createRedact:()=>hb,createRemoteSink:()=>yb,createSample:()=>_T,createSummarize:()=>yT,default:()=>ub,emitFetchEvent:()=>gB,makeEvent:()=>lt,meetsLevel:()=>db,normalizeLevel:()=>Xd,resolveSinks:()=>_b,summarizeElement:()=>Ai});var $q=0,Fq=()=>`${Date.now().toString(36)}-${($q++).toString(36)}`,lt=(t,e,n={})=>({id:Fq(),ts:Date.now(),type:t,level:e,...n}),Bq=t=>{let e=[],n=t,r=0;for(;n&&r<32;)n.key!=null&&e.unshift(String(n.key)),n=n.parent,r++;return e.join(" > ")},Ai=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:Bq(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var Qc=t=>t?.context?.analyze,jq={init:{category:"lifecycle",type:"lifecycle",level:"debug"},create:{category:"lifecycle",type:"lifecycle",level:"debug"},render:{category:"lifecycle",type:"lifecycle",level:"debug"},beforeRemove:{category:"lifecycle",type:"lifecycle",level:"debug"},remove:{category:"lifecycle",type:"lifecycle",level:"debug"}},Uq=(t,{category:e,type:n,level:r})=>o=>{let s=Qc(o);!s||!s.shouldCapture(e)||s.emit(lt(n,r,{hook:t,element:Ai(o)}))},cB=t=>(e,n)=>{let r=Qc(e);!r||!r.shouldCapture("state")||r.emit(lt("state","debug",{hook:t,element:Ai(e),changedKeys:n?.changedKeys||null}))},ub={name:"analyze",error(t,e){let n=Qc(t);if(!n||n.config.enabled===!1||!n.shouldCapture("errors"))return;let r=e?.error||e?.err||(e instanceof Error?e:null);n.emit(lt("error","error",{hook:e?.hook||"error",element:Ai(t),error:r,message:r?.message||(typeof e?.message=="string"?e.message:null)}))},renderRouter(t){let e=Qc(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(lt("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=Qc(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=Qc(t);if(!e||!e.shouldCapture("updates"))return;let n=null;t.__ref?.__analyzeUpdateStart!=null&&(n=(typeof performance<"u"?performance.now():Date.now())-t.__ref.__analyzeUpdateStart,t.__ref.__analyzeUpdateStart=null),e.emit(lt("update","debug",{hook:"update",element:Ai(t),durationMs:n}))},beforeStateUpdate:cB("beforeStateUpdate"),stateUpdate:cB("stateUpdate")};for(let[t,e]of Object.entries(jq))ub[t]=Uq(t,e);M();var Yd={error:0,warn:1,info:2,debug:3,trace:4};var db=(t,e)=>{let n=Yd[t],r=Yd[e];return n==null||r==null?!0:n<=r},Xd=t=>Yd[t]!=null?t:"warn";M();var pb=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var Vq=(t,e)=>{for(let n of e)if(n instanceof RegExp){if(n.test(t))return!0}else if(typeof n=="string"&&t.toLowerCase().includes(n.toLowerCase()))return!0;return!1},zq=(t,e)=>{if(e!=="redact"){if(e==="hash"){let n=0,r=String(t);for(let o=0;o<r.length;o++)n=(n<<5)-n+r.charCodeAt(o)|0;return`#${(n>>>0).toString(36)}`}return"***"}},gT=(t,e,n,r)=>{if(r>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>gT(s,e,n,r+1));let o={};for(let s of Object.keys(t))if(Vq(s,e)||pb.test(s)){let a=zq(t[s],n);a!==void 0&&(o[s]=a)}else o[s]=gT(t[s],e,n,r+1);return o},hb=(t=[],e="mask")=>{let n=Array.isArray(t)?t:[t];return r=>{if(!r)return r;let{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:p,...g}=r,h=gT(g,n,e,0);return{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:p,...h}}};var mT=t=>{let e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,n=typeof navigator<"u"?navigator.userAgent:null,r=t.config.buildHash||null,o=t.config.appId||null;return s=>{if(!s)return s;let i=t.context?.routerOptions?.currentRoute||null,a=R,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:e,app:{id:o,build:r,route:i},meta:{ua:n,viewport:c}}}},yT=()=>t=>{if(!t)return t;if(t.element&&typeof t.element=="object"){let e=t.element;(e.node||e.parent||e.__ref)&&(t={...t,element:{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,tag:e.tag||null,component:e.component||null}})}return t.error instanceof Error&&(t={...t,error:{name:t.error.name,message:t.error.message,stack:t.error.stack}}),t},bT=(t=1e3,e=500)=>{let n=new Map;return r=>{if(!r)return r;let o=`${r.type}:${r.level}:${r.message||""}:${r.error?.message||""}`,s=n.get(o),i=r.ts||Date.now();if(s&&i-s<t)return null;if(n.set(o,i),n.size>e){let a=Math.ceil(e/10),c=0;for(let l of n.keys()){if(c++>=a)break;n.delete(l)}}return r}},_T=t=>e=>{if(!e)return e;let n=t[e.type];return n==null||n>=1?e:Math.random()>n?null:e},lB={redact:t=>hb(t.config.redact||[],t.config.maskStrategy),enrich:t=>mT(t),summarize:()=>yT(),dedupe:t=>bT(t.config.cache?.dedupeWindowMs||1e3),sample:t=>_T(t.config.sample||{})},Hq=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let n=lB[t];return n?n(e):null}return null},gb=t=>{let e=t.config,n=Array.isArray(e.transformers)?e.transformers.slice():[],r=n.findIndex(s=>s==="redact");r>=0&&n.splice(r,1);let o=[];e.redact!==!1&&o.push(lB.redact(t));for(let s of n){let i=Hq(s,t);i&&o.push(i)}return s=>{let i=s;for(let a of o){if(i==null)return null;let c=a(i);if(c==null)return null;if(Array.isArray(c)){let l=o.slice(o.indexOf(a)+1),f=[];for(let u of c){let d=u,p=!1;for(let g of l)if(d=g(d),d==null){p=!0;break}!p&&d!=null&&f.push(d)}return f}i=c}return i}};M();M();var mb=typeof R<"u"&&typeof R.document<"u",Wq=5e3,Kq=50,qq=3,Gq=1500,Yq=1e3,ST=t=>t?t.level==="error"||t.type==="error"?"bug":t.type==="network"?"network":t.type==="console"?t.level==="error"||t.level==="warn"?"bug":"log":t.level==="warn"?"bug":t.level==="info"?"log":"verbose":"verbose",Xq=t=>{try{return JSON.stringify(t)}catch{return null}},Zq=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},Jq=t=>{if(!t)return null;let e=String(t),n;return(n=e.match(/Edg\/([\d.]+)/))?{name:"Edge",version:n[1]}:(n=e.match(/OPR\/([\d.]+)/))?{name:"Opera",version:n[1]}:(n=e.match(/Firefox\/([\d.]+)/))?{name:"Firefox",version:n[1]}:/Chrome\/([\d.]+)/.test(e)&&/Safari\//.test(e)?(n=e.match(/Chrome\/([\d.]+)/),{name:"Chrome",version:n[1]}):(n=e.match(/Version\/([\d.]+).*Safari/))?{name:"Safari",version:n[1]}:{name:null,version:null}},Qq=()=>{if(!mb)return null;try{let t=R.document?.documentElement?.getAttribute("data-theme")||null,e=typeof R.matchMedia=="function"?R.matchMedia("(prefers-color-scheme: dark)").matches:null;return{active:t||(e?"dark":e===!1?"light":null),forced:t||null,prefers:e==null?null:e?"dark":"light"}}catch{return null}},tG=()=>{if(!mb)return null;let t=R.location,e=typeof navigator<"u"?navigator:null,n=typeof screen<"u"?screen:null;return{url:t?.href||null,path:t?.pathname||null,referrer:R.document?.referrer||null,title:R.document?.title||null,ua:e?.userAgent||null,browser:Jq(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:Zq(),viewport:R.innerWidth?{w:R.innerWidth,h:R.innerHeight,dpr:R.devicePixelRatio||1}:null,screen:n?{w:n.width||null,h:n.height||null,availW:n.availWidth||null,availH:n.availHeight||null,colorDepth:n.colorDepth||null,orientation:n.orientation?.type||null}:null,theme:Qq()}},yb=(t={})=>{let e=t.url,n=typeof t.transport=="function"?t.transport:null,r=typeof t.syncTransport=="function"?t.syncTransport:null;if(!e&&!n)return()=>{};let o=t.apiKey||null,s=t.appKey||t.appId||null,i=t.tenantKey||t.tenant||null,a=t.release||null,c=t.env||null,l=t.sdk||null,f=typeof t.getAuth=="function"?t.getAuth:null,u=typeof t.getContext=="function"?t.getContext:null,d=typeof t.classify=="function"?t.classify:ST,p=typeof t.beforeSend=="function"?t.beforeSend:null,g=t.debug===!0,h=typeof t.getDebug=="function"?t.getDebug:null,m=t.batchMs!=null?t.batchMs:Wq,y=t.maxBatch||Kq,x=t.maxRetries!=null?t.maxRetries:qq,E=t.backoffMs||Gq,T=t.queueLimit||Yq,S=t.sampleRate!=null?t.sampleRate:1,w=()=>typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`,b=t.sessionId||w(),_=[],A=[],C=null,O=null,N=()=>{C||!_.length||(C=setTimeout(U,m))},F=G=>{if(O)return;let K=E*Math.pow(2,Math.max(0,G-1));O=setTimeout(()=>{if(O=null,!A.length)return;let it=A.shift();Z(it.envelope,it.attempt)},K)},$=(G,K=!1)=>{let it=u?wT(u):null,ot={id:b,sentAt:Date.now()};K&&(ot.endedAt=Date.now());let gt={v:1,session:ot,app:{key:s,release:a,env:c},tenant:i,sdk:l,page:tG(),user:it?.user||null,traits:it?.traits||null,tags:it?.tags||null,events:G};if((h?wT(h)===!0:g)&&(gt.app.debug=!0),p)try{return p(gt)||null}catch{return gt}return gt},Z=async(G,K=1)=>{if(G)try{let it=!0;if(n){let ot=await n(G);it=ot!==!1&&ot?.ok!==!1}else it=await eG(e,G,{apiKey:o,getAuth:f});!it&&K<x&&(A.push({envelope:G,attempt:K+1}),F(K+1))}catch{K<x&&(A.push({envelope:G,attempt:K+1}),F(K+1))}},U=(G=!1,K=!1)=>{if(C&&(clearTimeout(C),C=null),!_.length&&!K)return;let it=_;_=[];let ot=$(it,K);if(ot){if(G&&mb){if(typeof r=="function"&&wT(()=>r(ot)))return;if(navigator.sendBeacon&&e){let gt=Xq(ot);if(gt)try{navigator.sendBeacon(e,new R.Blob([gt],{type:"application/json"}));return}catch{}}}Z(ot)}},J=!1,ft=()=>{J||(J=!0,U(!0,!0))};mb&&(R.addEventListener("pagehide",ft,{passive:!0}),R.addEventListener("beforeunload",ft,{passive:!0}),R.addEventListener("visibilitychange",()=>{R.document.visibilityState==="hidden"&&U(!0)},{passive:!0}));let et=G=>{if(!G||S<1&&Math.random()>S)return;J&&(J=!1);let K={...G,log_type:d(G)};_.push(K),_.length>T&&(_=_.slice(-T)),_.length>=y?U():N()},Q=G=>(U(!1,!0),b=G||w(),J=!1,et.sessionId=b,b);return et.flush=()=>U(!1),et.endSession=ft,et.startNewSession=Q,et.sessionId=b,et},wT=t=>{try{return t()}catch{return null}},eG=async(t,e,{apiKey:n,getAuth:r})=>{let o={"Content-Type":"application/json","X-Analyze-Beacon":"1"};if(n&&(o["X-Analyze-Key"]=n),r)try{let s=await r();s&&(o.Authorization=`Bearer ${s}`)}catch{}try{return(await fetch(t,{method:"POST",headers:o,body:JSON.stringify(e),keepalive:!0,credentials:"omit",mode:"cors"})).ok}catch{return!1}};var nG={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},rG="\x1B[0m",bb=typeof R<"u"&&typeof R.document<"u",xT=(t={})=>{let e=t.minLevel||null,n=console.error.bind(console),r=console.warn.bind(console),o=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?n:s.level==="warn"?r:o,a=`[analyze:${s.type}]`;if(bb)i(a,s);else{let c=nG[s.level]||"";i(`${c}${a}${rG}`,s)}}},kT=(t,e={})=>{let n=e.max||t.config.cache?.max||500,r=new Array(n),o=0,s=0,i=a=>{r[o]=a,o=(o+1)%n,s<n&&s++};return t.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(o-s+n)%n;for(let l=0;l<s;l++)a[l]=r[(c+l)%n];return a},query:(a={})=>{let c=t.__memory.snapshot(),l=a.sinceMs?Date.now()-a.sinceMs:0;return c.filter(f=>!(!f||a.level&&f.level!==a.level||a.type&&f.type!==a.type||l&&f.ts<l))},clear:()=>{o=0,s=0}},i},ET=(t={})=>{let e=t.url,n=t.batchMs!=null?t.batchMs:5e3,r=t.maxBatch||50;if(!e)return()=>{};let o=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!o.length)return;let c=JSON.stringify({events:o});o=[];let l=bb?new R.Blob([c],{type:"application/json"}):c;if(bb&&navigator.sendBeacon)try{navigator.sendBeacon(e,l);return}catch{}typeof fetch<"u"&&fetch(e,{method:"POST",headers:{"Content-Type":"application/json","X-Analyze-Beacon":"1"},body:c,keepalive:!0}).catch(()=>{})};bb&&(R.addEventListener("pagehide",i,{passive:!0}),R.addEventListener("beforeunload",i,{passive:!0}));let a=c=>{c&&(o.push(c),o.length>=r?i():s||(s=setTimeout(i,n)))};return a.flush=i,a},fB={console:xT,memory:kT,beacon:ET,remote:yb},uB=(t,e)=>e.getDebug!=null||e.debug!=null?e:{...e,getDebug:()=>t.config.debug===!0},_b=t=>{let e=Array.isArray(t.config.sinks)?t.config.sinks:["console"],n=[];for(let r of e)if(typeof r=="function")n.push(r);else if(typeof r=="string"){let o=fB[r];if(!o)continue;n.push(r==="memory"?o(t,{}):o(r==="remote"?uB(t,{}):{}))}else if(r&&typeof r=="object"&&r.type){let o=fB[r.type];if(!o)continue;n.push(r.type==="memory"?o(t,r):o(r.type==="remote"?uB(t,r):r))}return n};M();var oG=typeof R<"u"&&typeof R.document<"u",sG=new Set(["password","hidden"]),dB=(t,e)=>{let n=0,r=null,o=null;return(...s)=>{let i=Date.now();i-n>=e?(n=i,t(...s)):(o=s,r||(r=setTimeout(()=>{n=Date.now(),r=null,o&&(t(...o),o=null)},e-(i-n))))}},vT="__analyzeKeyPath",tl=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[vT])return e[vT];let n=[],r=e,o=0,s=null;for(;r&&o<64;){if(r.getAttribute){let a=r.getAttribute("data-key");a&&(s==null&&(s=a),n.unshift(a))}r=r.parentNode,o++}let i;if(n.length)i={selector:null,key:s,path:n.join(" > "),tag:e.tagName?.toLowerCase()||null};else{let a=(e.tagName||"unknown").toLowerCase(),c=e.id?`#${e.id}`:"",l=e.className&&typeof e.className=="string"?"."+e.className.trim().split(/\s+/).slice(0,2).join("."):"";i={selector:`${a}${c}${l}`,key:null,path:null}}try{e[vT]=i}catch{}return i},iG=(t,e)=>{if(e==="mask")return"***";if(e!=="redact"){if(e==="hash"){let n=0,r=String(t||"");for(let o=0;o<r.length;o++)n=(n<<5)-n+r.charCodeAt(o)|0;return`#${(n>>>0).toString(36)}`}return"***"}},aG=t=>!!(!t||t.tagName==="INPUT"&&sG.has(t.type)||pb.test(t.name||"")||pb.test(t.id||"")||t.dataset?.analyze==="skip"),wb=t=>{if(!oG)return;let e=t.config.capture,n=t.config.throttle,r=t.__teardown,o=(s,i,a,c)=>{s.addEventListener(i,a,c),r.push(()=>s.removeEventListener(i,a,c))};if(e.errors&&(o(R,"error",s=>{t.emit(lt("error","error",{hook:"window.onerror",message:s.message||null,error:s.error||null,source:s.filename||null,line:s.lineno||null,col:s.colno||null}))}),o(R,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;t.emit(lt("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),e.pointer){o(R,"click",i=>{t.emit(lt("pointer","info",{hook:"click",target:tl(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:pB(i)}))},{passive:!0,capture:!0}),o(R,"dblclick",i=>{t.emit(lt("pointer","info",{hook:"dblclick",target:tl(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(R,"contextmenu",i=>{t.emit(lt("pointer","info",{hook:"contextmenu",target:tl(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=dB(i=>{t.emit(lt("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},n.pointermove);o(R,"pointermove",s,{passive:!0})}if(e.keyboard&&o(R,"keydown",s=>{t.emit(lt("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:pB(s),target:tl(s)}))},{passive:!0,capture:!0}),e.forms){let s=i=>{let a=i.target;if(!a||!a.tagName||!["INPUT","TEXTAREA","SELECT"].includes(a.tagName))return;let l=aG(a),f=a.dataset?.analyze==="track",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=iG(a.value,t.config.maskStrategy)),t.emit(lt("forms","info",{hook:i.type,target:tl(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};o(R,"input",s,{passive:!0,capture:!0}),o(R,"change",s,{passive:!0,capture:!0}),o(R,"submit",i=>{t.emit(lt("forms","info",{hook:"submit",target:tl(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=dB(()=>{t.emit(lt("scroll","trace",{hook:"scroll",x:R.scrollX,y:R.scrollY}))},n.scroll);o(R,"scroll",s,{passive:!0,capture:!0})}if(e.viewport){let s=Gl(()=>{t.emit(lt("viewport","info",{hook:"resize",w:R.innerWidth,h:R.innerHeight,dpr:R.devicePixelRatio||1}))},n.resize);o(R,"resize",s,{passive:!0}),o(R,"orientationchange",()=>{t.emit(lt("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(R.document,"visibilitychange",()=>{t.emit(lt("viewport","info",{hook:"visibilitychange",hidden:R.document.hidden}))},{passive:!0}),t.emit(lt("viewport","info",{hook:"initial",w:R.innerWidth,h:R.innerHeight,dpr:R.devicePixelRatio||1}))}if(e.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{t.emit(lt("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(hB)}))}catch{}return i.apply(console,a)},r.push(()=>{console[s]=i})}if(e.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let c of a.getEntries())t.emit(lt("performance","info",{hook:c.entryType,name:c.name,startTime:c.startTime,duration:c.duration,value:c.value!=null?c.value:null}))}),i=["largest-contentful-paint","layout-shift","longtask","paint","first-input","event"];for(let a of i)try{s.observe({type:a,buffered:!0})}catch{}r.push(()=>s.disconnect())}catch{}},pB=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),cG=t=>{let e={name:t.name||"Error",message:typeof t.message=="string"?t.message:String(t),stack:typeof t.stack=="string"?t.stack:null};return t.cause!==void 0&&(e.cause=hB(t.cause)),e},hB=t=>{if(t==null)return t;if(t instanceof Error)return cG(t);if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};M();var lG=typeof R<"u"&&typeof R.document<"u",gB=(t,e)=>{let n=t?.analyze;if(!n||!n.shouldCapture("network"))return;let r=e.phase==="error"?"error":"info";n.emit(lt("network",r,{hook:`fetch.${e.phase}`,source:"symbo-fetch",...e}))},Zd=t=>{if(lG&&t.config.capture.network&&!t.__networkListeners){if(t.__networkListeners=!0,t.__teardown.push(()=>{t.__networkListeners=!1}),typeof R.fetch=="function"){let e=R.fetch.bind(R),n=function(r,o){if(o?.headers?.["X-Analyze-Beacon"]||!t.shouldCapture("network"))return e(r,o);let s=typeof r=="string"?r:r&&r.url||"",i=(o?.method||typeof r=="object"&&r?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return t.emit(lt("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),e(r,o).then(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;return t.emit(lt("network",c.ok?"info":"warn",{hook:"fetch.success",source:"window.fetch",url:s,method:i,status:c.status,ok:c.ok,durationMs:l})),c}).catch(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;throw t.emit(lt("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:c,durationMs:l})),c})};R.fetch=n,t.__teardown.push(()=>{R.fetch=e})}if(typeof R.XMLHttpRequest=="function"){let e=R.XMLHttpRequest,n=e.prototype.open,r=e.prototype.send;e.prototype.open=function(o,s){return this.__analyze={method:String(o).toUpperCase(),url:String(s)},n.apply(this,arguments)},e.prototype.send=function(o){let s=this.__analyze;if(!s||!t.shouldCapture("network"))return r.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();t.emit(lt("network","info",{hook:"xhr.start",source:"xhr",url:s.url,method:s.method}));let a=()=>{let l=(typeof performance<"u"?performance.now():Date.now())-i,f=this.status>=200&&this.status<400;t.emit(lt("network",f?"info":"warn",{hook:"xhr.success",source:"xhr",url:s.url,method:s.method,status:this.status,ok:f,durationMs:l}))},c=()=>{let l=(typeof performance<"u"?performance.now():Date.now())-i;t.emit(lt("network","error",{hook:"xhr.error",source:"xhr",url:s.url,method:s.method,status:this.status,durationMs:l}))};return this.addEventListener("loadend",a),this.addEventListener("error",c),r.apply(this,arguments)},t.__teardown.push(()=>{e.prototype.open=n,e.prototype.send=r})}}};var fG={errors:!0,warnings:!0,pointer:!1,keyboard:!1,forms:!1,scroll:!1,viewport:!1,network:!1,performance:!1,navigation:!1,console:!1,lifecycle:!1,state:!1,updates:!1,replay:!1,telemetry:!1},uG={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},dG={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},pG={errors:!0,warnings:!0,console:!0,network:!1,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},hG=t=>{let e={...fG,...t};return e.replay&&Object.assign(e,uG),e.telemetry&&Object.assign(e,dG),e.remote&&Object.assign(e,pG),Object.assign(e,t),e},gG=64,mG=()=>{if(typeof R>"u"||!R.location)return null;try{let e=new URLSearchParams(R.location.search).get("analyze");return e||null}catch{return null}},yB=(t={})=>{let e=t===!0?{}:{...t};e.capture=hG(e.capture||{});let n=mG();(n==="debug"||e.debug)&&(e.level="debug",e.debug=!0,e.capture={...e.capture,lifecycle:!0,state:!0,updates:!0,console:!0,network:!0}),n==="off"&&(e.enabled=!1),e.level=Xd(e.level||"warn"),e.cache={max:500,dedupeWindowMs:1e3,...e.cache||{}},e.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...e.throttle||{}},e.maskFormValues==null&&(e.maskFormValues=!0),e.maskStrategy||(e.maskStrategy="mask"),Array.isArray(e.sinks)||(e.sinks=["console","memory"]),Array.isArray(e.transformers)||(e.transformers=["enrich","summarize"]);let r={config:e,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},o=()=>{r.__pipeline||(r.__pipeline=gb(r),r.__sinks=_b(r))};return r.shouldCapture=s=>r.config.enabled===!1?!1:!!r.config.capture[s],r.emit=s=>{if(s&&r.config.enabled!==!1&&!r.__paused&&db(s.level,r.config.level)){if(!r.__ready){if(s.level!=="error"&&!r.config.captureDuringHydration)return;r.__preBuffer.length<gG&&r.__preBuffer.push(s);return}o(),mB(r,s)}},r.activate=s=>{if(r.context==null&&(r.context=s||null),r.__ready)return;r.__ready=!0;let i=r.__preBuffer;if(r.__preBuffer=[],i.length){o();for(let a of i)mB(r,a)}try{wb(r)}catch(a){console.error("[analyze] browser attach error:",a)}try{Zd(r)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of r.__onActivate||[])try{a(r)}catch(c){console.error("[analyze] onActivate error:",c)}},r.pause=()=>{r.__paused=!0},r.resume=()=>{r.__paused=!1},r.setLevel=s=>{r.config.level=Xd(s)},r.setCapture=(s,i)=>{if(r.config.capture[s]=!!i,s==="network"&&i&&r.__ready)try{Zd(r)}catch(a){console.error("[analyze] network attach error:",a)}},r.query=s=>r.__memory?r.__memory.query(s):[],r.snapshot=()=>r.__memory?r.__memory.snapshot():[],r.emitNetwork=s=>{if(!r.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";r.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:"network",level:a,hook:`fetch.${i||"unknown"}`,...s})},r.flush=()=>{if(r.__sinks)for(let s of r.__sinks)typeof s.flush=="function"&&s.flush()},r.startNewSession=s=>{let i=s||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),a=Array.isArray(r.config.sinks)?r.config.sinks:[];for(let c of a)c&&typeof c=="object"&&c.type==="remote"&&(c.sessionId=i);if(r.__sinks)for(let c of r.__sinks)typeof c.startNewSession=="function"&&c.startNewSession(i);return i},r.replay=()=>({initialSnapshot:r.__initialSnapshot,events:r.snapshot()}),r.destroy=()=>{for(let s of r.__teardown)try{s()}catch{}r.__teardown=[],r.__ready=!1,r.__paused=!0},r.__onActivate=[],r.onActivate=s=>{r.__onActivate.push(s)},r},mB=(t,e)=>{let n=t.__pipeline(e);if(n==null)return;let r=Array.isArray(n)?n:[n];for(let o of r){if(typeof t.config.onEvent=="function")try{t.config.onEvent(o)}catch{}for(let s of t.__sinks)try{s(o)}catch(i){console.error("[analyze] sink error:",i)}}};var DT={};B(DT,{shorthandPlugin:()=>xb});var LT={};B(LT,{PRESERVE_VALUE_KEYS:()=>se,SKIP_INLINE_KEYS:()=>ts,abbrToProp:()=>oe,decode:()=>xB,encode:()=>_B,expand:()=>Ci,isComponentKey:()=>jn,isSelectorKey:()=>Un,parse:()=>Oi,parseFurther:()=>Pi,propToAbbr:()=>xn,shorten:()=>Qd,shorthandPlugin:()=>xb,stringify:()=>Ti,stringifyFurther:()=>Ri});var xn={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},oe=Object.create(null);for(let t in xn)oe[xn[t]]=t;var AT=Object.create(null);for(let t in xn){let e=xn[t];if(AT[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${AT[e]}"`);AT[e]=t}var se=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]),ts=new Set(["text","tx","html","htm","content","cnt","placeholder","phd","src","href","hrf"]);function jn(t){return/^[A-Z]/.test(t)}function Un(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function _B(t){if(!t||typeof t!="object")return"";let e=[];for(let n in t){let r=t[n];if(typeof r=="function"||r!==null&&typeof r=="object"&&!Array.isArray(r)||r===void 0)continue;let o=xn[n]||n;if(r===!0)e.push(o);else if(r===!1)e.push("!"+o);else if(Array.isArray(r)){let s=r.map(i=>Sb(i));e.push(o+":"+s.join(","))}else e.push(o+":"+Sb(r))}return e.join(" ")}function Sb(t){return String(t).replace(/ /g,"_")}function Qd(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Qd(n):n});let e={};for(let n in t){let r=t[n];if(jn(n)){e[n]=TT(r);continue}if(Un(n)){e[n]=TT(r);continue}let o=xn[n]||n;if(se.has(n)||se.has(o)){e[o]=r;continue}e[o]=TT(r)}return e}function TT(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Qd(e):e}):typeof t=="object"?Qd(t):t}function Ti(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Ti(r):r});let e={},n=[];for(let r in t){let o=t[r];if(jn(r)){e[r]=bB(o);continue}if(Un(r)){e[r]=bB(o);continue}let s=xn[r]||r;if(se.has(r)||se.has(s)){e[s]=o;continue}if(typeof o=="function"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(ts.has(r)||ts.has(s)){e[s]=o;continue}if(Array.isArray(o)){if(o.some(function(a){return a!==null&&typeof a=="object"})){e[s]=o.map(function(a){return a!==null&&typeof a=="object"?Ti(a):a});continue}if(o.length<=1){e[s]=o;continue}n.push(s+":"+o.map(Sb).join(","));continue}if(typeof o=="object"){e[s]=Ti(o);continue}o===!0?n.push(s):o===!1?n.push("!"+s):typeof o=="number"||typeof o=="string"&&(o.includes(",")||o.includes("_"))?e[s]=o:n.push(s+":"+Sb(o))}return n.length&&(e.in=n.join(" ")),e}function bB(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ti(e):e}):typeof t=="object"?Ti(t):t}function xB(t){if(!t||typeof t!="string")return{};let e={},n=kB(t);for(let r of n){if(r.startsWith("!")){let c=r.slice(1),l=oe[c]||c;e[l]=!1;continue}let o=r.indexOf(":");if(o===-1){let c=oe[r]||r;e[c]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=oe[s]||s;if(i.includes(",")){e[a]=i.split(",").map(wB);continue}e[a]=wB(i)}return e}function kB(t){return t.trim().split(/\s+/).filter(Boolean)}function wB(t){let e=t.replace(/_/g," ");return/^-?\d+(\.\d+)?$/.test(e)?Number(e):e}function SB(t){return t.replace(/_/g," ")}function yG(t){if(!t||typeof t!="string")return{};let e={},n=kB(t);for(let r of n){if(r.startsWith("!")){let c=r.slice(1),l=oe[c]||c;e[l]=!1;continue}let o=r.indexOf(":");if(o===-1){let c=oe[r]||r;e[c]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=oe[s]||s;if(i.includes(",")){e[a]=i.split(",").map(SB);continue}e[a]=SB(i)}return e}function Ci(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Ci(n):n});let e={};for(let n in t){let r=t[n];if(jn(n)){e[n]=CT(r);continue}let o=oe[n]||n;if(Un(n)&&o===n){e[n]=CT(r);continue}if(se.has(o)||se.has(n)){e[o]=r;continue}e[o]=CT(r)}return e}function CT(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ci(e):e}):typeof t=="object"?Ci(t):t}function Oi(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Oi(n):n});let e={};if(typeof t.in=="string"){let n=yG(t.in);for(let r in n)e[r]=n[r]}for(let n in t){if(n==="in")continue;let r=t[n];if(jn(n)){e[n]=OT(r);continue}let o=oe[n]||n;if(Un(n)&&o===n){e[n]=OT(r);continue}if(se.has(o)||se.has(n)){e[o]=r;continue}e[o]=OT(r)}return e}function OT(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Oi(e):e}):typeof t=="object"?Oi(t):t}function EB(t){return String(t).replace(/\\/g,"\\\\").replace(/_/g,"\\_").replace(/,/g,"\\,").replace(/ /g,"_")}function bG(t){let e="",n=0;for(;n<t.length;){if(t[n]==="\\"&&n+1<t.length){let r=t[n+1];if(r===","||r==="_"||r==="\\"){e+=r,n+=2;continue}}t[n]==="_"?e+=" ":e+=t[n],n++}return e}function _G(t){let e=[],n="",r=0;for(;r<t.length;){if(t[r]==="\\"&&r+1<t.length){n+=t[r]+t[r+1],r+=2;continue}if(t[r]===","){e.push(n),n="",r++;continue}n+=t[r],r++}return e.push(n),e}function vB(t){if(t==null||typeof t!="object"||Array.isArray(t))return!1;let e=Object.keys(t);return e.length===1&&e[0]==="in"&&typeof t.in=="string"}function Ri(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Ri(r):r});let e={},n=[];for(let r in t){let o=t[r];if(jn(r)){let i=AB(o);e[r]=vB(i)?i.in:i;continue}if(Un(r)){let i=AB(o);e[r]=vB(i)?i.in:i;continue}let s=xn[r]||r;if(se.has(r)||se.has(s)){e[s]=o;continue}if(typeof o=="function"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(ts.has(r)||ts.has(s)){e[s]=o;continue}if(Array.isArray(o)){if(o.some(function(a){return a!==null&&typeof a=="object"})){e[s]=o.map(function(a){return a!==null&&typeof a=="object"?Ri(a):a});continue}if(o.length<=1){e[s]=o;continue}n.push(s+":"+o.map(EB).join(","));continue}if(typeof o=="object"){e[s]=Ri(o);continue}if(o===!0){n.push(s);continue}if(o===!1){n.push("!"+s);continue}if(typeof o=="number"){n.push(s+":#"+o);continue}n.push(s+":"+EB(o))}return n.length&&(e.in=n.join(" ")),e}function AB(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ri(e):e}):typeof t=="object"?Ri(t):t}function TB(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):bG(t)}function RT(t){if(!t||typeof t!="string")return{};let e={},n=t.trim().split(/\s+/).filter(Boolean);for(let r of n){if(r.startsWith("!")){let l=r.slice(1),f=oe[l]||l;e[f]=!1;continue}let o=r.indexOf(":");if(o===-1){let l=oe[r]||r;e[l]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=oe[s]||s,c=_G(i);if(c.length>1){e[a]=c.map(TB);continue}e[a]=TB(i)}return e}function Pi(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Pi(n):n});let e={};if(typeof t.in=="string"){let n=RT(t.in);for(let r in n)e[r]=n[r]}for(let n in t){if(n==="in")continue;let r=t[n];if(jn(n)){typeof r=="string"?e[n]=RT(r):e[n]=PT(r);continue}let o=oe[n]||n;if(Un(n)&&o===n){typeof r=="string"?e[n]=RT(r):e[n]=PT(r);continue}if(se.has(o)||se.has(n)){e[o]=r;continue}e[o]=PT(r)}return e}function PT(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Pi(e):e}):typeof t=="object"?Pi(t):t}var wG={shorten:Ci,stringify:Oi,stringifyFurther:Pi};function SG(t,e){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(r=>e(r));let n={};for(let r in t){let o=t[r];n[r]=o&&typeof o=="object"?e(o):o}return n}var xG=["components","pages","snippets"],xb={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let r=wG[e===!0?"shorten":e];if(r){for(let o of xG)t[o]&&(t[o]=SG(t[o],r));t.app&&typeof t.app=="object"&&(t.app=r(t.app))}}};var tp={};B(tp,{Inspect:()=>kb,inspectPlugin:()=>EG});M();function CB(t){return v(t)?t:I(t)?t.find(e=>v(e)):""}function IT(t){if(!t)return;let e=t.__ref.__componentKey,n=t.extends&&CB(t.extends),r=t.parent&&t.parent.childExtends&&CB(t.parent.childExtends);return(e||n||r||"").split("_")[0].split(".")[0].split("+")[0]}function Eb(t){if(!t||!t.__ref)return;let{components:e,pages:n,editor:r}=t.context,o=IT(t);return r&&r.onInitInspect&&!r.onInitInspect(o,t,t.state)?Eb(t.parent):o&&(e[o]||n[o])?t:Eb(t.parent)}var kG=(t,e,n)=>{let r=n.window||window;r.onkeydown=o=>{o.altKey&&o.shiftKey&&t.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},r.onkeyup=o=>{t.state.preventSelect&&(!o.altKey||!o.shiftKey)&&(t.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),t.Inspector.state.update({area:!1}))}},kb={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:kG,onMousemove:(t,e,n)=>{let r=t.target.ref,o=Eb(r),s=e.Inspector.state;if(!o||!n.debugging||!o.__ref)return s.update({area:!1});let i=IT(o),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:u,height:d}=o.node.getBoundingClientRect(),p={x:l,y:f,width:u,height:d};if(!s.area)return a(p);s.area.x!==p.x&&a(p)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{c(),window.requestAnimationFrame(c)})},onMousedown:(t,e,n)=>{if(!n.debugging)return;let r=t.target.ref,o=Eb(r);if(!o)return;let s=IT(o);if(!s)return;let i=r.context.editor;if(i&&i.onInspect)return i.onInspect(s,r,r.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return r.context.socket?.emit&&r.context.socket.emit("route",a),t.preventDefault(),t.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(t,e)=>!(e.area&&e.parent.debugging),style:{boxShadow:"0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",zIndex:"9999999",borderRadius:"10px",pointerEvents:"none"},Span:{position:"absolute",margin:"A2 0",fontSize:"Z",color:"text",zIndex:"99999999",transition:"all, defaultBezier, X",textDecoration:"underline",fontWeight:"500",top:"100%",style:{boxShadow:"0 25px 10px 35px black",textShadow:"0 0 10px black"},text:"{{ focusKey }}"},onInit:({context:t})=>{let{components:e}=t;if(k(e)){let{Content:n,...r}=e;for(let o in r)Wc[o]||(r[o].__ref||(r[o].__ref={}),r[o].__ref.__componentKey||(r[o].__ref.__componentKey=o))}},onBeforeUpdate:(t,e,n)=>{let{area:r}=n,o=n.area&&n.parent.debugging,s;if(!o)s="display: none !important";else if(r){let{x:i,y:a,width:c,height:l}=r;s=`
161
161
  display: block !important;
162
162
  top: ${a-6}px;
163
163
  left: ${i-6}px;
164
164
  width: ${c+12}px;
165
165
  height: ${l+12}px;
166
- `}return e.node.style=s,e.Span.node.innerText=n.focusKey,!1}}},jq={name:"inspect",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(hb):t.extends?t.extends=[t.extends,hb]:t.extends=[hb]}};var QC={};F(QC,{DefaultSyncApp:()=>RG,FORBIDDEN_SEGMENTS:()=>qd,Notifications:()=>bb,SyncComponent:()=>JC,applyOpsToCtx:()=>Gd,connectToSocket:()=>ZB,deletePath:()=>SC,isSafePath:()=>mb,liveSyncTransport:()=>yb,notificationsPlugin:()=>IG,onOps:()=>vC,onSnapshot:()=>EC,seedRawDesignSystem:()=>Gc,setPath:()=>xC,syncPlugin:()=>DG,wantsLiveSync:()=>Ti});M();M();var qd=new Set(["__proto__","constructor","prototype"]),mb=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(qd.has(t[e]))return!1;return!0},SC=(t,e)=>{!t||!mb(e)||e.reduce((n,r,o,s)=>{if(n&&r in n){if(o!==s.length-1)return n[r];delete n[r]}},t)},xC=(t,e,n,r=!1)=>{!t||!mb(e)||e.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&r&&(o[s]={}),o[s];o[s]=n}},t)},Gd=(t,e)=>{let n=new Set;if(!Array.isArray(e))return n;for(let[r,o,s]of e)if(!(!Array.isArray(o)||!o.length))switch(n.add(o[0]),r){case"delete":SC(t,o);break;case"update":case"set":xC(t,o,s,!0);break;default:break}return n},eB=(t,e)=>{if(!e||typeof e!="object"||Array.isArray(e))return null;let n=t&&(t.__raw||t)||{},r=null;for(let o of Object.keys(e))qd.has(o)||Object.prototype.hasOwnProperty.call(n,o)||(r||(r={}),r[o]=e[o]);return r},Uq=()=>typeof R<"u"&&!!R&&!!R.__SYMBOLS_ENV__,Vq=()=>{try{if(R.self!==R.top)return!0}catch{return!0}try{return new URLSearchParams(R.location.search).has("liveSync")}catch{return!1}},tB=Object.freeze({mode:null,baseUrl:null}),yb=t=>{let e=t&&t.editor&&t.editor.socketUrl||t&&t.settings&&t.settings.socketUrl;return typeof e=="string"&&e?Uq()&&!Vq()?tB:{mode:"collab",baseUrl:e}:t&&t.editor&&t.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:tB},Ti=t=>yb(t).mode!==null,Gc=(t,e)=>{!t||!e||typeof e!="object"||(t.__rawDesignSystem=JSON.parse(JSON.stringify(e)))},nB=(t,e,n,r="designSystem")=>{for(let o in e){if(qd.has(o))continue;let s=`${r}/${o}`;if(n.has(s))continue;let i=e[o],a=t[o];if(i&&typeof i=="object"&&!Array.isArray(i)){if(!a||typeof a!="object"||Array.isArray(a)){if(o in t)continue;t[o]={}}nB(t[o],i,n,s)}else o in t||(t[o]=Array.isArray(i)?JSON.parse(JSON.stringify(i)):i)}},kC=(t,e)=>{if(!t||!t.__rawDesignSystem)return null;if(Array.isArray(e)&&e.length){let o={designSystem:t.__rawDesignSystem};Gd(o,e)}let n=JSON.parse(JSON.stringify(t.__rawDesignSystem)),r=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[];return Nf(n,r,nB)};M();var EC=(t,e,n)=>{let r=!1;return(o={})=>{let{data:s}=o,{schema:i}=o;s&&(s=t.call("deepDestringifyFunctions",s,Array.isArray(s)?[]:{}),Object.entries(s).forEach(([a,c])=>{if(n[a]&&typeof n[a]=="object")if(a==="designSystem"){if(Gc(n,c),r){let l=kC(n);l&&fr(l)}}else fs(n[a],c);else n[a]=c}),r=!0,i&&(n.schema=i))}},vC=(t,e,n)=>(r={})=>{let{changes:o}=r;if(!o||!Array.isArray(o)||!o.length)return;o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=o.filter(c=>Array.isArray(c)&&Array.isArray(c[1])&&c[1][0]==="designSystem"),i=s.length?o.filter(c=>!s.includes(c)):o,a=Gd(n,i);if(s.length&&a.add("designSystem"),a.has("designSystem")){let c=kC(n,s);c?fr(c):n.__warnedNoRawDesignSystem||(n.__warnedNoRawDesignSystem=!0,console.warn("[sync] design-system op ignored: no raw design system was seeded on this client. Re-initing from the processed config would corrupt every token, so the update is skipped \u2014 reload to pick it up. Seed it at boot with seedRawDesignSystem(ctx, ds)."))}if(a.has("state")){let c=eB(e,n.state);if(c){let l=typeof e.$update=="function"?e.$update:e.update;typeof l=="function"&&l.call(e,c)}}if(["pages","components","snippets","functions","assets"].some(c=>a.has(c))){let{pathname:c,search:l,hash:f}=n.window.location;t.call("router",c+l+f,t.__ref.root,{},{scrollToTop:!1,force:!0})}};var zq={success:"green",error:"red",warning:"yellow"},rB=(t,e,n)=>{if(t.symbols){if(!n.connected){n.notifications.connected={title:"Connected",message:"to the Symbols live server"},n.update({connected:!0});let r=setTimeout(()=>{delete n.notifications.connected,e.notifications.content.connected.update({animation:"fadeOutDown"}),n.update({connected:!0}),clearTimeout(r)},3e3)}}else if(n.connected){n.notifications.connected={title:"Disconnected",type:"error"},n.update({connected:!1});let r=setTimeout(()=>{delete n.notifications.connected,e.notifications.content.connected&&e.notifications.content.connected.update({animation:"fadeOutDown"}),n.update({connected:!0}),clearTimeout(r)},3e3)}},bb={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:zq[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,n,r)=>{n.update({animation:"fadeInUp"})},onClick:(e,n,r)=>{delete r.notifications[n.key],n.update({animation:"fadeOutDown"}),r.onClose&&r.onClose(e,n,r)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var EG=!1,vG=()=>EG?"http://localhost:8080":"https://api.symbols.app",ZC=null,AG=()=>(ZC||(ZC=Promise.resolve().then(()=>(YB(),GB)).then(t=>{let e=t&&(t.io||t.default);if(typeof e!="function")throw new TypeError("socket.io-client exports no io()");return e}).catch(t=>(console.warn("[sync] socket.io-client failed to load \u2014 live sync disabled",t),null))),ZC),CG=async t=>{try{let e=t||vG(),n=await R.fetch(`${e}/service-token`,{method:"GET"}),r;try{let o=await n.clone().json();if(o&&typeof o.token=="string")return o.token.trim();r=await n.text()}catch{r=await n.text()}return(r||"").replace(/\s+/gu,"")||void 0}catch(e){console.warn("[sync] Failed to fetch service-token",e)}},XB=(t,e,n,r)=>{t.on("snapshot",EC(e,n,r)),t.on("ops",vC(e,n,r)),t.on("clients",o=>{r.editor?.verbose&&rB(o,e,n)}),t.on("disconnect",o=>{r.editor?.verbose&&console.info("[sync] disconnected",o)})},TG=async(t,e,n,r,o)=>{let s=await CG(r);if(!s)return console.warn("[sync] no service token \u2014 collab disabled"),null;let i=n.key;if(!i)return console.warn("[sync] ctx.key missing \u2014 collab cannot authenticate"),null;let a=n.editor?.projectId||null,c=await o;if(!c)return null;let l=c(r,{path:"/collab-socket",transports:["websocket"],auth:{token:s,projectId:a,projectKey:i,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return l.on("connect",()=>{n.editor?.verbose&&console.info("[sync] connected (collab)")}),XB(l,t,e,n),l},OG=async(t,e,n,r)=>{let o=await r;if(!o)return null;let s=o({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return s.on("connect",()=>{n.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),XB(s,t,e,n),s.on("reload",()=>{typeof R<"u"&&R.location&&R.location.reload()}),s},ZB=async(t,e,n)=>{let{mode:r,baseUrl:o}=yb(n);if(!r)return null;let s=AG();return r==="collab"?TG(t,e,n,o,s):r==="runner"?OG(t,e,n,s):null},JC={onInit:ZB},RG={extends:[JC,bb]},JB=t=>typeof t>"u",PG=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),LG=t=>t?.editor?.runtime==="runner",QB=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},DG={name:"sync",beforeCreate(t,e){let n=e&&e.editor;(n&&!JB(n.liveSync)?n.liveSync:Ti(e))&&(PG(e)&&!LG(e)&&!e?.key||QB(t,JC))}},IG={name:"notifications",beforeCreate(t,e){if(!e)return;let n=JB(e.notifications)?null:e.notifications,r=e.editor&&e.editor.verbose===!0;(n===!0||n!==!1&&r)&&QB(t,bb)}};$h();var eT={};F(eT,{fetchAsync:()=>BG,fetchSync:()=>FG});M();var tj=R&&R.location&&typeof R.location.host=="string"?R.location.host:null,tT=tj!==null?tj.includes("dev."):oo(),ej=tT?"http://localhost:8080/get":"https://api.symbols.app/get",MG={endpoint:ej},nj=async(t,e=MG)=>{let n=e.endpoint||ej,r=e.serviceRoute?I(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",o;try{return o=await globalThis.fetch(n+"/?"+r,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await o.json()}catch(s){if(L(e.onError))return e.onError(s);console.error(s)}},NG=async(t,e)=>{let{editor:n}=e;if(n&&n.remote){let r=await nj(t,n),o=tT||e.isDevelopment?be(r):be(r.releases[0]);n.serviceRoute?I(n.serviceRoute)?n.serviceRoute.forEach(s=>{ie(e[s],o[s.toLowerCase()])}):ie(e[n.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{ie(e[s],o[s.toLowerCase()])})}return e},$G=async(t,e,n)=>{let{editor:r}=e;if(r&&r.remote){let o=await nj(t,r),s=tT||e.isDevelopment?be(o):be(o.releases[0]);n(s)}},FG=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await NG(t,e)}catch(n){console.error(n)}},BG=(t,e,n,r)=>{if(e&&n.editor)try{n.editor.async&&$G(e,n,r||(o=>{let s=o.designSystem;E(s)&&n.utils.init(s),E(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};var jG={windows:()=>Promise.resolve(BA),dropdown:()=>Promise.resolve(GA),tooltip:()=>Promise.resolve(tC),analyze:()=>Promise.resolve(Hd),shorthand:()=>Promise.resolve(_C),inspect:()=>Promise.resolve(Kd),sync:()=>globalThis.__SMBLS_BUILD_DROP_F_liveSync__?Promise.resolve(qt("liveSync")):Promise.resolve(QC),fetch:()=>Promise.resolve(ga),fetchOnCreate:()=>Promise.resolve(eT)},qe=(t,e)=>Array.isArray(t.plugins)&&t.plugins.some(n=>n&&n.name===e),rj=t=>{let e=[];return t.shorthand&&e.push("shorthand"),t.analyze&&!qe(t,"analyze")&&e.push("analyze"),t.inspect&&!qe(t,"inspect")&&e.push("inspect"),t.fetch&&e.push("fetch"),t.windows!==!1&&e.push("windows"),t.dropdown!==!1&&e.push("dropdown"),t.tooltip!==!1&&e.push("tooltip"),e},sp={},oj={},he=t=>{if(sp[t])return sp[t];let e=jG[t];return e?(sp[t]=e().then(n=>(oj[t]=n,n),n=>(delete sp[t],console.error(`[smbls] the ${t} module failed to load; the app runs without it`,n),null)),sp[t]):Promise.resolve(null)},nl=t=>oj[t]||null;var Fi=t=>{if(!t||t.__destroyed)return!1;let e=t.context;if(!e)return t.__destroyed=!0,!1;if(Array.isArray(e.__teardowns)){for(let n of e.__teardowns)try{n()}catch(r){console.error("[smbls] destroy teardown error:",r)}e.__teardowns.length=0}try{pn(t)}catch(n){console.error("[smbls] dispose error:",n)}if(e.fetch&&e.fetch.__resolved&&delete e.fetch.__resolved,e.fetch&&e.fetch.__resolving&&delete e.fetch.__resolving,e.db&&e.db.__resolved&&delete e.db.__resolved,e.db&&e.db.__resolving&&delete e.db.__resolving,e.analyze?.destroy)try{e.analyze.destroy()}catch(n){console.error("[analyze] destroy error:",n)}return t.__destroyed=!0,!0};var aT={};F(aT,{Helmet:()=>Aj,applyElementMetadata:()=>Bb,applyMetadata:()=>WG,default:()=>cY,extractMetadata:()=>zG,generateHeadHtml:()=>aY,helmetPlugin:()=>jb,resolveMetadata:()=>ip});M();Mt();var _n={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"}},Jr=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){let e=`${t.tag}[${t.attr}="${t.key}"]`;return t.key==="theme-color"?`${e}:not([data-smbls-theme-color])`:e}},sj=t=>be({v:t}).v,ij=(t,e,n,r)=>{try{return St(t,e,n)}catch(o){console.warn(`[helmet] metadata factory for "${r}" threw; treating as unset:`,o&&o.message||o);return}},Mb=Object.freeze({authored:!0}),ip=(t,e,n,r)=>{if(!t)return{};let o=t;v(o)&&se(o)&&(o=sj(o));let s=L(o),i=!s&&r?.authored===!0,a=s?ij(o,e,n,"metadata"):E(o)?{...o}:{};if(!E(a))return{};for(let c in a){let l=a[c],f=i&&v(l)&&!se(l);v(l)&&se(l)&&(l=sj(l)),L(l)?l=ij(l,e,n,c):v(l)&&se(l)&&(l=void 0),v(l)&&l.includes("{{")&&e?.call&&(l=f?e.call("replaceLiteralsWithObjectFields",l,n,Mb):e.call("replaceLiteralsWithObjectFields",l,n)),a[c]=l}return a},UG=t=>!!t&&typeof t=="object"&&(t.notFound===!0||t.metadata?.notFound===!0),VG=(t,e)=>{if(Object.prototype.hasOwnProperty.call(t,e))return t[e];if(t["/*"])return t["/*"];if(t["*"])return t["*"];for(let n in t)if(UG(t[n]))return t[n]},zG=(t,e="/",n,r,o)=>{let s=t.pages||{},i=VG(s,e),a={};if(t.integrations?.seo&&(a={...t.integrations.seo}),t.app?.metadata){let f=ip(t.app.metadata,n,r,Mb);a={...a,...f}}let c=new Set;if(i){let f=i.metadata||i.helmet||{},u=o?ip(f,o,o.state,Mb):ip(f,n,r,Mb);for(let d in u)c.add(d);a={...a,...u},!a.title&&i.state?.title&&(a.title=i.state.title,c.add("title")),!a.description&&i.state?.description&&(a.description=i.state.description,c.add("description"))}a.title||(a.title=t.name||"Symbols"),a.title&&(c.has("title")||!a["og:title"])&&(c.has("og:title")||(a["og:title"]=a.title)),a.description&&(c.has("description")||!a["og:description"])&&(c.has("og:description")||(a["og:description"]=a.description)),a.title&&!a["twitter:title"]&&(a["twitter:title"]=a.title),a.description&&!a["twitter:description"]&&(a["twitter:description"]=a.description);let l=c.has("og:url")?a["og:url"]:c.has("url")?a.url:void 0;if(l)a["og:url"]=l;else if(a["og:url"]||a.url){let f=(a["og:url"]||a.url||"").replace(/\/$/,"");if(f&&e&&e!=="/"){let u=e.startsWith("/")?e:"/"+e;a["og:url"]=f+u}}return Os(a,As(t.files,t.sharedLibraries))},dj=(t,e)=>Os(ip(t,e,e.state),e.context?.files),pj=t=>t.context?.document||typeof document<"u"&&document,hj=t=>Object.prototype.hasOwnProperty.call(_n,t),$b=new Map;for(let t in _n){let e=Jr(_n[t]);$b.has(e)||$b.set(e,_n[t])}var Fb=t=>t.head||t.querySelector("head"),oT=(t,e)=>{let n=Fb(t);return n?n.querySelector(e):null},nT=(t,e)=>e.tag==="title"?t.textContent:t.getAttribute(e.valueAttr||"content"),sT=(t,e,n)=>{e.tag==="title"?t.textContent=n:t.setAttribute(e.valueAttr||"content",n)},iT=(t,e)=>{let n=Fb(e);if(!n)return null;let r=e.createElement(t.tag);return t.attr&&r.setAttribute(t.attr,t.key),n.appendChild(r),r},Bi=(t,e,n,r)=>{let o=t.head||t.querySelector("head");if(!o)return;let s=new Map;for(let a of o.querySelectorAll(`[${e}]`))s.set(a.getAttribute(e),a);let i=new Map;n.forEach((a,c)=>{i.has(a)||i.set(a,c)});for(let[a,c]of s)i.has(a)||c.remove();for(let a of n){if(s.has(a))continue;let c=r(a,i.get(a));c&&(c.setAttribute(e,a),o.appendChild(c))}},gj=(t,e)=>{let r=(e||[]).filter(s=>s!=null).map(s=>v(s)?s:JSON.stringify(s)),o=r.map(Tn);Bi(t,"data-smbls-jsonld",o,(s,i)=>{let a=t.createElement("script");return a.setAttribute("type","application/ld+json"),a.textContent=r[i],a})},mj=(t,e)=>{let n=(e||[]).filter(o=>o!=null&&String(o).trim()),r=n.map(Tn);Bi(t,"data-smbls-style",r,(o,s)=>{let i=t.createElement("style");return i.textContent=String(n[s]),i})},yj=t=>(t||[]).filter(e=>e&&(v(e)?e.trim():e.src)),bj=t=>v(t)?t:String(t.src),_j=(t,e)=>{let n=t.createElement("script");return v(e)?n.setAttribute("src",e):(e.src&&n.setAttribute("src",e.src),e.type&&n.setAttribute("type",e.type),e.async&&(n.async=!0),e.defer&&(n.defer=!0),e.integrity&&n.setAttribute("integrity",e.integrity),e.crossorigin&&n.setAttribute("crossorigin",e.crossorigin),e.referrerpolicy&&n.setAttribute("referrerpolicy",e.referrerpolicy),e.nomodule&&(n.noModule=!0),e.body&&(n.textContent=String(e.body))),n},HG=(t,e)=>{let n=yj(e),r=n.map(bj);Bi(t,"data-smbls-script",r,(o,s)=>_j(t,n[s]))},wj=(t,e)=>{let n=(e||[]).filter(o=>E(o)),r=n.map(Cs);Bi(t,"data-smbls-alternate",r,(o,s)=>{let i=t.createElement("link");i.setAttribute("rel","alternate");for(let[a,c]of Object.entries(n[s]))i.setAttribute(a,c);return i})},Sj=(t,e)=>{let n=(e||[]).filter(o=>o!=null),r=n.map(mo);Bi(t,"data-smbls-favicon",r,(o,s)=>{let i=n[s],a=t.createElement("link");if(a.setAttribute("rel","icon"),E(i))for(let[c,l]of Object.entries(i))a.setAttribute(c,l);else a.setAttribute("href",String(i));return a})},xj=(t,e)=>{let n=e?String(e):"",r=n.endsWith(".svg")?"image/svg+xml":n.endsWith(".png")?"image/png":"";Bi(t,"data-smbls-single-icon",n?[n]:[],o=>{let s=t.createElement("link");return s.setAttribute("rel","icon"),s.setAttribute("href",o),r&&s.setAttribute("type",r),s})},kj=(t,e)=>{let n=(e||[]).filter(o=>E(o)),r=n.map(Ts);Bi(t,"data-smbls-theme-color",r,(o,s)=>{let i=n[s],a=t.createElement("meta");return a.setAttribute("name","theme-color"),i.content!==void 0&&a.setAttribute("content",i.content),i.media!==void 0&&a.setAttribute("media",i.media),a})},WG=(t,e)=>{if(!(!E(t)||!e)){for(let n in t){let r=t[n];if(r==null||!hj(n)||n==="theme-color"&&Array.isArray(r))continue;let o=_n[n],s=oT(e,Jr(o))||iT(o,e);s&&sT(s,o,r)}Array.isArray(t.jsonLd)&&gj(e,t.jsonLd),Array.isArray(t.styles)&&mj(e,t.styles),Array.isArray(t.scripts)&&HG(e,t.scripts),Array.isArray(t.alternate)&&wj(e,t.alternate),Array.isArray(t.favicons)&&Sj(e,t.favicons),(t.icon||t.favicon)&&xj(e,t.icon||t.favicon),Array.isArray(t["theme-color"])&&kj(e,t["theme-color"])}},aj=new WeakMap,rT=new WeakMap,Ej=t=>{let e=t.location;return e&&v(e.pathname)?e.pathname:null},KG=t=>{let e=aj.get(t);return e||(e={doc:t,layers:[],servedPath:Ej(t),originals:new Map,owned:new Set,lists:new Set},aj.set(t,e)),e},qG=(t,e)=>{for(let n=e.parent;n&&n!==n.parent;n=n.parent)if(n===t)return!0;return!1},cj=t=>{try{return JSON.stringify(t===void 0?null:t)??null}catch{return null}},GG=t=>{if(!E(t))return!0;for(let e in t)if(t[e]!==void 0&&t[e]!==null)return!1;return!0},YG=(t,e)=>{let n=rT.get(t);if(n)return n;let r=KG(e),o={element:t,values:null,signature:cj(null),disposed:!1,set(i){if(o.disposed)return;let a=cj(i);o.values=i,!(a!==null&&a===o.signature)&&(o.signature=a,fj(r))},dispose(){if(o.disposed)return;o.disposed=!0;let i=r.layers.indexOf(o);if(i!==-1&&r.layers.splice(i,1),!GG(o.values))try{fj(r)}catch(a){console.warn("[helmet] could not re-render the head after an element left:",a&&a.message||a)}}},s=r.layers.length;for(let i=0;i<r.layers.length;i++)if(qG(t,r.layers[i].element)){s=i;break}return r.layers.splice(s,0,o),rT.set(t,o),o},vj=(t,e,n,r)=>{let o=YG(t,e),s=K(()=>{let a=n();o.set(a),r&&r(a)}),i=t.__ref?.__effects;i&&i.push(s,o)},XG=Jr(_n.title),ZG=Jr(_n.description),JG=Jr(_n["og:title"]),QG=Jr(_n["og:description"]),tY=Jr(_n["twitter:title"]),eY=Jr(_n["twitter:description"]),lj=(t,e,n,r)=>{let o=t.get(e);if(!o||!o.value)return;let s=t.get(n);(!s||!s.value||s.rank<o.rank)&&t.set(n,o);let i=t.get(r);(!i||!i.value)&&t.set(r,o)},Nb={jsonLd:gj,styles:mj,alternate:wj,favicons:Sj,icon:xj,"theme-color":kj},nY=Object.keys(Nb).filter(t=>t!=="icon"),rY=t=>{let e=new Map,n={},r=[];for(let o=0;o<t.length;o++){let s=t[o].values;if(!E(s))continue;for(let a in s){let c=s[a];c==null||!hj(a)||a==="theme-color"&&Array.isArray(c)||e.set(Jr(_n[a]),{value:String(c),rank:o})}for(let a of nY)Array.isArray(s[a])&&(n[a]=s[a]);let i=s.icon||s.favicon;i&&(n.icon=i),Array.isArray(s.scripts)&&r.push(...s.scripts)}return lj(e,XG,JG,tY),lj(e,ZG,QG,eY),{tags:e,lists:n,scripts:r}},oY=(t,e,n)=>{let{doc:r,originals:o}=t,s=$b.get(e),i=oT(r,e),a=o.get(e);a||(a={value:i?nT(i,s):null,rendered:!1},o.set(e,a)),a.value===n&&(a.rendered=!0),i||(i=iT(s,r)),i&&(nT(i,s)!==n&&sT(i,s,n),t.owned.add(e))},sY=(t,e)=>{let{doc:n}=t;t.owned.delete(e);let r=$b.get(e),o=oT(n,e),s=t.originals.get(e);if(s&&s.value!==null&&!s.rendered&&Ej(n)===t.servedPath){let a=o||iT(r,n);a&&nT(a,r)!==s.value&&sT(a,r,s.value)}else o&&o.remove()},iY=(t,e)=>{let n=yj(e);if(!n.length)return;let r=Fb(t),o=new Set;for(let s of r.querySelectorAll("[data-smbls-script]"))o.add(s.getAttribute("data-smbls-script"));for(let s of n){let i=bj(s);if(o.has(i))continue;let a=_j(t,s);a.setAttribute("data-smbls-script",i),r.appendChild(a),o.add(i)}},fj=t=>{let{doc:e}=t;if(!Fb(e))return;let{tags:n,lists:r,scripts:o}=rY(t.layers);for(let s of[...t.owned])n.has(s)||sY(t,s);for(let[s,{value:i}]of n)oY(t,s,i);for(let s in Nb)r[s]!==void 0?(Nb[s](e,r[s]),t.lists.add(s)):t.lists.delete(s)&&Nb[s](e,null);iY(e,o)},aY=t=>{let e=['<meta charset="UTF-8">'],n=new Set(["charset","jsonLd","styles","scripts"]),r=!1;for(let[o,s]of Object.entries(t)){if(!s&&s!==0&&s!==!1||n.has(o)||typeof s=="function")continue;if(o==="title"){e.push(`<title>${U(s)}</title>`);continue}if(o==="viewport"){r||(e.push(`<meta name="viewport" content="${U(s)}">`),r=!0);continue}if(o==="canonical"){e.push(`<link rel="canonical" href="${U(s)}">`);continue}if(o==="icon"||o==="favicon"){let f=U(s),u=f.endsWith(".svg")?' type="image/svg+xml"':f.endsWith(".png")?' type="image/png"':"";e.push(`<link rel="icon" href="${f}"${u} data-smbls-single-icon="${f}">`);continue}if(o==="favicons"&&Array.isArray(s)){s.forEach(f=>{if(E(f)){let u=Object.entries(f).map(([d,p])=>`${d}="${U(p)}"`).join(" ");e.push(`<link rel="icon" ${u} data-smbls-favicon="${U(mo(f))}">`)}else typeof f=="string"&&e.push(`<link rel="icon" href="${U(f)}" data-smbls-favicon="${U(mo(f))}">`)});continue}if(o==="alternate"&&Array.isArray(s)){s.forEach(f=>{if(E(f)){let u=Object.entries(f).map(([d,p])=>`${d}="${U(p)}"`).join(" ");e.push(`<link rel="alternate" ${u} data-smbls-alternate="${U(Cs(f))}">`)}});continue}if(o==="theme-color"&&Array.isArray(s)){s.forEach(f=>{if(!E(f))return;let u=['name="theme-color"'];f.content!==void 0&&u.push(`content="${U(f.content)}"`),f.media!==void 0&&u.push(`media="${U(f.media)}"`),u.push(`data-smbls-theme-color="${U(Ts(f))}"`),e.push(`<meta ${u.join(" ")}>`)});continue}let i=["og:","article:","product:","fb:","profile:","book:","business:","music:","video:"],a=["twitter:","DC:","DCTERMS:"],c=i.some(f=>o.startsWith(f)),l=a.some(f=>o.startsWith(f));if(o.startsWith("http-equiv:")){let f=o.replace("http-equiv:","");e.push(`<meta http-equiv="${U(f)}" content="${U(s)}">`)}else if(o.startsWith("itemprop:")){let f=o.replace("itemprop:","");e.push(`<meta itemprop="${U(f)}" content="${U(s)}">`)}else c?Array.isArray(s)?s.forEach(f=>e.push(`<meta property="${U(o)}" content="${U(f)}">`)):e.push(`<meta property="${U(o)}" content="${U(s)}">`):l?e.push(`<meta name="${U(o)}" content="${U(s)}">`):Array.isArray(s)?s.forEach(f=>e.push(`<meta name="${U(o)}" content="${U(f)}">`)):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&e.push(`<meta name="${U(o)}" content="${U(s)}">`)}return r||e.splice(1,0,'<meta name="viewport" content="width=device-width, initial-scale=1">'),e.push(...Ta(t)),e.join(`
167
- `)},Aj={define:{metadata:(t,e)=>{Bb(t,e,n=>{let r=e.state?.root;E(r)&&(r.$helmet=n)})}}},Bb=(t,e,n)=>{let r=pj(e);r&&vj(e,r,()=>dj(t,e),n)},uj=t=>{let e=t.metadata;return e?dj(e,t):null},jb={name:"helmet",create(t){if(!t.metadata)return;let e=pj(t);e&&vj(t,e,()=>uj(t))},update(t){let e=rT.get(t);if(!e)return jb.create(t);e.disposed||e.set(uj(t))}},cY=Aj;var Cj=(t,e,n,r)=>{if(!t||!r?.fetch)return;let o=nl("fetch");if(o){o.executeFetch(t,e,n,r);return}he("fetch").then(s=>{s&&s.executeFetch(t,e,n,r)})},Tj=(t,e)=>{t&&Bb(t,e)},Oj=async(t,e)=>{if(!t)return;let n={tag:"fragment",...t},r=async()=>{await e.set(n,{preventDefineUpdate:"$router"})};return e.lazyLoad?window.requestAnimationFrame(r):await r(),n},rl={routes:t=>t,metadata:Tj,fetch:Cj,$router:Oj},Rj=(t={})=>{let e={routes:n=>n};return t.metadata!==!1&&(e.metadata=Tj),t.fetch!==!1&&(e.fetch=Cj),t.router!==!1&&(e.$router=Oj),e};var cT={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},Ub={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},lT={...cT,router:Ub},lY={state:{},pages:{},components:{},router:Ub,define:rl},Yo=lY;M();M();var Pj=(t,e)=>V(t.extends)?t.extends:[];M();var Lj=(t,e)=>{let n=e||(typeof globalThis<"u"?globalThis:null);if(!n||!Array.isArray(t))return null;let r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let[o,s]of va(t,Aa))r[o]||(r[o]=s);return r};var fT={};F(fT,{apiUrl:()=>Vb,channelByApiUrl:()=>Nj,channelNames:()=>uY,channels:()=>Le,currentChannel:()=>Xo,defaultChannel:()=>wY,deployTarget:()=>yY,isKnownChannel:()=>_Y,mermaidUrl:()=>mY,normalizeOwnerSegment:()=>SY,normalizeProjectKey:()=>kY,normalizeProjectSlug:()=>xY,parseSymboLsHost:()=>EY,previewProjectUrl:()=>gY,previewUrl:()=>$j,resolveChannel:()=>Ui,screenshotCdnHost:()=>Fj,screenshotCdnUrl:()=>bY,setChannel:()=>dY,shellUrl:()=>hY,socketUrl:()=>pY});var Le={channels:{local:{api:"http://localhost:8080",socket:"http://localhost:8080",shell:"http://my.localhost:1355",preview:"http://preview.localhost:1355",mermaidApex:"localhost:1355",deploy:{}},development:{api:"https://dev.api.symbols.app",socket:"https://dev.api.symbols.app",shell:"https://dev.my.symbols.app",preview:"https://dev.preview.symbols.app",mermaidApex:"dev.symbo.ls",deploy:{shellBucket:"smbls-my-dev",previewWorker:"smbls-preview-dev",mermaidWorker:"mermaid-dev"}},"demo-dev":{api:"https://dev.api.symbols.app",socket:"https://dev.api.symbols.app",shell:"https://dev.demo.symbols.app",preview:"https://dev.preview.symbols.app",mermaidApex:"dev.symbo.ls",deploy:{shellBucket:"smbls-my-demo-dev",previewWorker:"smbls-preview-dev",mermaidWorker:"mermaid-dev"}},next:{api:"https://next.api.symbols.app",socket:"https://next.api.symbols.app",shell:"https://next.my.symbols.app",preview:"https://next.preview.symbols.app",mermaidApex:"next.symbo.ls",deploy:{shellBucket:"smbls-my-next",previewWorker:"smbls-preview-next",mermaidWorker:"mermaid-next"}},test:{api:"https://test.api.symbols.app",socket:"https://test.api.symbols.app",shell:"https://test.my.symbols.app",preview:"https://test.preview.symbols.app",mermaidApex:"test.symbo.ls",deploy:{shellBucket:"smbls-my-test",previewWorker:"smbls-preview-test",mermaidWorker:"mermaid-test"}},upcoming:{api:"https://upcoming.api.symbols.app",socket:"https://upcoming.api.symbols.app",shell:"https://upcoming.my.symbols.app",preview:"https://upcoming.preview.symbols.app",mermaidApex:"upcoming.symbo.ls",deploy:{shellBucket:"smbls-my-upcoming",previewWorker:"smbls-preview-upcoming",mermaidWorker:"mermaid-upcoming"}},staging:{api:"https://staging.api.symbols.app",socket:"https://staging.api.symbols.app",shell:"https://staging.my.symbols.app",preview:"https://staging.preview.symbols.app",mermaidApex:"staging.symbo.ls",deploy:{shellBucket:"smbls-my-staging",previewWorker:"smbls-preview-staging",mermaidWorker:"mermaid-staging"}},demo:{api:"https://api.symbols.app",socket:"https://api.symbols.app",shell:"https://demo.symbols.app",preview:"https://preview.symbols.app",mermaidApex:"at.symbo.ls",deploy:{shellBucket:"smbls-my-demo",previewWorker:"smbls-preview",mermaidWorker:"mermaid"}},production:{api:"https://api.symbols.app",socket:"https://api.symbols.app",shell:"https://my.symbols.app",preview:"https://preview.symbols.app",mermaidApex:"at.symbo.ls",deploy:{shellBucket:"smbls-my-prod",previewWorker:"smbls-preview",mermaidWorker:"mermaid"}}},defaultChannel:"production",screenshotCdn:"screenshots.api.symbols.app"};var uY=Object.keys(Le.channels),Bn=t=>!!(t&&Le.channels[t]),Ui=t=>Bn(t)?Le.channels[t]:Le.channels[Le.defaultChannel],dY=t=>{typeof globalThis>"u"||(globalThis.__SYMBOLS_CHANNEL__=Bn(t)?t:null,ol=void 0)},ol,ji=t=>typeof process<"u"&&process.env&&process.env[t]||null,Xo=()=>{if(ol!==void 0)return ol;let t=typeof globalThis<"u"?globalThis.__SYMBOLS_CHANNEL__:null,e=ji("SYMBOLS_CHANNEL"),n=ji("NODE_ENV"),r=ji("SYMBOLS_API_URL")||ji("SYMBOLS_API_BASE_URL"),o=r?Nj(String(r).trim().replace(/\/+$/,"")):null;return ol=Bn(t)&&t||Bn(e)&&e||Bn(o)&&o||Bn(n)&&n||Le.defaultChannel,ol===Le.defaultChannel&&!Bn(t)&&!Bn(e)&&!Bn(o)&&!Bn(n)&&typeof process<"u"&&process.versions&&process.versions.node&&console.warn(`[channels] no channel configured (NODE_ENV=${n||"unset"}, __SYMBOLS_CHANNEL__ unset) \u2014 falling back to "${Le.defaultChannel}". Outbound URLs (shellUrl${r?"":"/apiUrl"}) will target production`+(r?` (the API follows ${r}, which is no known channel)`:"")+"; set SYMBOLS_CHANNEL (preferred), NODE_ENV, or globalThis.__SYMBOLS_CHANNEL__ to a known channel."),ol},Dj=["production","staging","upcoming","next","test","development","local","demo","demo-dev"],Ij=t=>{let e=Dj.indexOf(t);return e===-1?Dj.length:e},Nj=t=>{if(!t)return null;let e=Object.keys(Le.channels).filter(n=>Le.channels[n].api===t);return e.length===0?null:e.length===1?e[0]:e.sort((n,r)=>Ij(n)-Ij(r))[0]},Vb=(t=Xo())=>ji("SYMBOLS_API_URL")||Ui(t).api,pY=(t=Xo())=>ji("SYMBOLS_SOCKET_URL")||Ui(t).socket,hY=(t=Xo())=>Ui(t).shell||null,$j=(t=Xo())=>Ui(t).preview||null,gY=({owner:t,key:e,env:n="production"}={},r=Xo())=>{let o=$j(r);if(!o||!t||!e)return null;let s=o.match(/^(https?:\/\/)(.+)$/);if(!s)return null;let[,i,a]=s,c=`${encodeURIComponent(t)}--${encodeURIComponent(e)}`,l=`${i}${c}.${a}/`;return!n||n==="production"||n==="prod"?l:`${l}?env=${encodeURIComponent(n)}`},mY=({owner:t,key:e,env:n="production"}={},r=Xo())=>{let o=Ui(r).mermaidApex;if(!o||!t||!e)return null;let i=!n||n==="production"||n==="prod"?"":`--${encodeURIComponent(n)}`,a=`${encodeURIComponent(t)}--${encodeURIComponent(e)}${i}`;return`${o.startsWith("localhost")?"http":"https"}://${a}.${o}`},yY=(t=Xo())=>Ui(t).deploy||{},Fj=()=>ji("SYMBOLS_SCREENSHOT_CDN")||Le.screenshotCdn,bY=({owner:t,key:e,page:n="root",componentKey:r,env:o="production",width:s}={})=>{if(!t||!e)return null;let i=r?`component/${encodeURIComponent(r)}`:encodeURIComponent(String(n||"root").replace(/^\/+/,"").replace(/\//g,"-")||"root"),a=[];o&&o!=="production"&&a.push(`env=${encodeURIComponent(o)}`),s&&a.push(`w=${Number(s)}`);let c=a.length?`?${a.join("&")}`:"";return`https://${Fj()}/${encodeURIComponent(t)}/${encodeURIComponent(e)}/${i}.webp${c}`},_Y=Bn,wY=Le.defaultChannel,SY=t=>t==null||typeof t!="string"?"":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"",xY=t=>t==null||typeof t!="string"?"":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,48)||"",kY=(t,e={})=>{let n=String(t||"").trim();if(!n)return"";/\.symbo\.ls$/iu.test(n)&&(n=n.replace(/\.symbo\.ls$/iu,"")),n.includes("/")&&(n=n.split("/").pop());let r=typeof e.owner=="string"?e.owner.trim():"";return r&&n.startsWith(`${r}--`)?n=n.slice(r.length+2):!r&&n.includes("--")&&(n=n.slice(n.indexOf("--")+2)),n},Mj={at:"production",prod:"production",production:"production",dev:"development",development:"development",next:"next",upcoming:"upcoming",test:"test",staging:"staging"},EY=t=>{if(typeof t!="string"||!t)return null;let e=t.toLowerCase().replace(/^www\./,"").replace(/\/$/,"");if(!e.endsWith(".symbo.ls"))return null;let n=e.split(".");if(n.length<4||n.slice(-2).join(".")!=="symbo.ls")return null;if(n.length===4){let s=n[1],i=n[0],a=Mj[s];if(a&&i.includes("--")){let c=i.split("--");if(c.length===2||c.length===3){let[l,f,u]=c;if(l&&f){let d=u?Mj[u]||u:null;return{projectKey:f,owner:l,env:d||a,sysEnv:a}}}}}if(n.length>=5)return{projectKey:n[1],owner:n[2],env:n[0]};let r=n[1],o=n[0];if(o.includes("--")){let[s,i]=o.split("--",2);return!s||!i?null:{projectKey:s,owner:r,env:i}}return{projectKey:o,owner:r,env:"production"}};M();var jj=t=>{let e={faces:0,links:0,kept:0};if(!t)return e;let n=TY(Zn());for(let r in t){let o=t[r];if(!o||!o.fontFace)continue;let s=Array.isArray(o.fontFace)?o.fontFace:[o.fontFace];for(let i of s){if(Uj(i)){let a=AY(i);a&&CY(a)&&e.links++;continue}if(vY(i)){if(!Bj(i))continue;if(n.has(uT(i))){e.kept++;continue}Ot(i.trim()),e.faces++;continue}if(typeof i=="string"&&i.includes("font-family")){if(!Bj(i))continue;if(n.has(uT(i))){e.kept++;continue}Ot(`@font-face { ${i} }`),e.faces++}}}return e},Uj=t=>typeof t=="string"&&t.trim().startsWith("@import"),vY=t=>typeof t=="string"&&t.trim().startsWith("@font-face"),AY=t=>{if(!Uj(t))return null;let e=String(t).match(/url\(\s*['"]?([^'")]+)['"]?\s*\)/);return e?e[1].trim():null},CY=(t,e)=>{if(typeof t!="string"||!t)return null;let n=e||Zn();if(!n||!n.head)return null;let r="data-smbls-font",o=n.head.querySelectorAll(`link[rel="stylesheet"][${r}]`);for(let i=0;i<o.length;i++)if(o[i].getAttribute(r)===t)return o[i];let s=n.createElement("link");return s.setAttribute("rel","stylesheet"),s.setAttribute("href",t),s.setAttribute(r,t),n.head.appendChild(s),s},zb=(t,e)=>{let n=new RegExp(`(?:^|[;{\\s])${e}\\s*:\\s*([^;}]+)`,"i").exec(t);return n?n[1].trim().toLowerCase():null},uT=t=>{let e=String(t||""),n=zb(e,"font-family");if(!n)return null;let r=zb(e,"font-weight")||"400";return r==="normal"?r="400":r==="bold"&&(r="700"),n.replace(/^['"]|['"]$/g,"")+"|"+r+"|"+(zb(e,"font-style")||"normal")},Bj=t=>{let e=zb(String(t||""),"src");return!!e&&e!=="none"},dT=t=>{if(!t)return null;let e=t.type;if(e===5)return t.cssText||"";if(typeof e=="number")return null;let n=t.cssText||"";return/^\s*@font-face/i.test(n)?n:null},TY=t=>{let e=new Set,n=t&&t.styleSheets;if(!n)return e;for(let r=0;r<n.length;r++){let o;try{o=n[r].cssRules}catch{continue}if(o)for(let s=0;s<o.length;s++){let i=dT(o[s]);if(i===null)continue;let a=uT(i);a&&e.add(a)}}return e};var Kj='meta[name="brender"]',OY=3e3,pT=t=>t.document||(typeof document<"u"?document:null),qj=(t,e)=>{let n=t.parent;return n&&n.nodeType===1?n:n&&n.node&&n.node.nodeType===1?n.node:e?e.body:null},Gj=(t,e)=>{if(e&&e.__BRENDER__)return!0;let n=pT(t);if(!n||typeof n.querySelector!="function")return!1;let r=n.documentElement;if(r&&typeof r.hasAttribute=="function"&&r.hasAttribute("data-brender")||n.querySelector(Kj))return!0;let o=qj(t,n);for(let s=o&&o.firstElementChild;s;s=s.nextElementSibling)if(s.hasAttribute("data-br"))return!0;return!1},Yj=t=>{let e=pT(t);return!e||!e.head?null:Array.from(e.head.querySelectorAll('style[data-emotion="smbls"], style[data-brender]'))},Xj=(t,e)=>{if(!e||!e.length)return;let n=[];for(let o of e){let s=null;try{s=o.sheet&&o.sheet.cssRules}catch{s=null}if(s&&s.length)for(let i=0;i<s.length;i++){let a=dT(s[i]);a!==null&&n.push(a)}else{let i=String(o.textContent||"").match(/@font-face\s*\{[^}]*\}/gi);i&&n.push(...i)}}let r=e.find(o=>o.parentNode);if(n.length&&r&&t&&typeof t.createElement=="function"){let o=t.createElement("style");o.setAttribute("data-smbls-faces",""),o.textContent=n.join(`
168
- `),r.parentNode.insertBefore(o,r)}e.forEach(o=>{o.parentNode&&o.remove()})},Vj=t=>{console.warn("[smbls] the pre-render registry is not JSON \u2014 the page renders fresh:",t.message)},hT=["paths","tree"],RY=(t,e)=>{let n=Gn(e,jf,{warn:Vj});if(n)return{map:Uf(n.value),block:n.block};let r=Gn(e,Bf,{warn:Vj});return r?{map:E(r.value)?r.value:null,block:r.block}:t&&E(t.__BR_REGISTRY__)?{map:t.__BR_REGISTRY__,legacy:!0}:null},PY=(t,e,n)=>!n||!n.map||t.hydrate===!1?!1:n.legacy?t.hydrate===!0||E(t.hydrate)||!!e&&e.__BRENDER_HYDRATE__===!0:!0,LY=t=>{let e=E(t.hydrate)?t.hydrate.timeout:void 0;return typeof e=="number"&&e>=0?e:OY},Zj=(t,e,n)=>{if(t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__,delete t.__BRENDER_HYDRATE__),n&&n.block&&n.block.parentNode&&n.block.remove(),e&&typeof e.querySelector=="function"){let r=e.querySelector(Kj);r&&r.remove();let o=e.documentElement;o&&typeof o.hasAttribute=="function"&&o.hasAttribute("data-brender")&&o.removeAttribute("data-brender")}},DY=()=>new Promise(t=>{if(typeof MessageChannel=="function"){let e=new MessageChannel;e.port1.onmessage=()=>{e.port1.close(),t()},e.port2.postMessage(null)}else setTimeout(t,0)}),Jj=async(t,e)=>{let n=t.__firstNavigation;if(n&&typeof n.then=="function")try{await n}catch{}for(let r=0;r<20&&e.pending.size;r++){let o=nl("fetch"),s=o&&typeof o.whenRequestsIdle=="function"?o.whenRequestsIdle:null;if(s&&await s(),await DY(),!s||!(o.requestsInFlight()>0))return}},IY=["click","keydown"],Qj=(t,e,n,r,o,s)=>{let i=!1,a=null,c=()=>f(),l=u=>{let d=u?"addEventListener":"removeEventListener";if(n&&typeof n[d]=="function")for(let p of IY)n[d](p,c,!0);e&&typeof e[d]=="function"&&e[d]("popstate",c)},f=()=>{if(i)return;i=!0,a!==null&&clearTimeout(a),l(!1),t.__hydration===r&&delete t.__hydration;let u=0;for(let d of r.pending)d.parentNode&&(d.remove(),u++);r.pending.clear(),r.pendingIn.clear(),r.whole=null,$o(r),Xj(n,s),e&&(e.__BRENDER_HYDRATION__={adopted:r.adopted,misses:r.misses,removed:u}),Zj(e,n,o),t3(t,e,r.root,!0)};if(!r.pending.size)return f();a=setTimeout(f,LY(t)),l(!0),Jj(t,r).then(f,f)},MY=1e3,NY=(t,e)=>{t&&typeof t.requestIdleCallback=="function"?t.requestIdleCallback(e,{timeout:MY}):setTimeout(e,0)},zj=(t,e)=>{let n=nl("fetch");!n||typeof n.seedIsStale!="function"||!n.seedIsStale()||NY(t,()=>{n.revalidateSeed(e).then(r=>{r&&t&&((t.__BRENDER_HYDRATION__||(t.__BRENDER_HYDRATION__={replaced:!0})).refreshed=r)},r=>console.error("[smbls] refreshing a stale pre-rendered page failed:",r))})},t3=(t,e,n,r)=>{let o=nl("fetch");if(!o||typeof o.seedIsStale!="function")return;let s=()=>{let i=()=>zj(e,n);Jj(t,{pending:{size:1}}).then(i,i)};if(o.seedIsStale())return r?zj(e,n):s();typeof o.whenSeedTaken=="function"&&o.whenSeedTaken(s)},$Y=t=>({bubbles:!0,cancelable:!0,composed:!0,detail:t.detail,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,button:t.button,buttons:t.buttons}),FY=(t,e,n,r)=>{if(!t||typeof t.addEventListener!="function")return{replay(){}};let o=[],s=a=>{for(let c=a;c&&c!==n;c=c.parentNode)if(r.pending.has(c))return!0;return!1},i=a=>{s(a.target)&&(a.preventDefault(),a.stopImmediatePropagation(),o.push({target:a.target,init:$Y(a)}))};return t.addEventListener("click",i,!0),{replay(){t.removeEventListener("click",i,!0);let a=e&&e.MouseEvent||(typeof MouseEvent=="function"?MouseEvent:null);if(a)for(let{target:c,init:l}of o)c.isConnected&&r.claimed.has(BY(c,n,r))&&c.dispatchEvent(new a("click",l))}}},BY=(t,e,n)=>{for(let r=t;r&&r!==e;r=r.parentNode)if(n.claimed.has(r))return r;return null},jY=async()=>{for(await Te();!Bo();)await Te()},UY=async(t,e,n,r,o,s,i,a,c,l,f,u)=>{let d=f.mountYield,p=f.mountWhole;d===void 0&&(f.mountYield=u.budget),p===void 0&&(f.mountWhole=!0);let g=PA(o,{budget:u.budget,progressive:!0,pageOptions:{mountYield:f.mountYield,mountWhole:f.mountWhole}}),h=ai(),m=FY(i,s,r,a),y=u.lease||null;g.lease=y,y&&(o.__mountLease=y);let x=null,k=!1;try{try{x=t(e,n,o.key,f)}catch(C){console.error("[smbls] hydration failed, rendering fresh:",C),delete o.__hydration,$o(a);for(let _ of a.claimed)_.parentNode&&_.remove();return null}k=!await Ho(Vr(x),y)||g.routeReady&&!await Ho(g.routeReady,y)||!await Ho(jY(),y),k&&(o.__hydration===a&&delete o.__hydration,$o(a),OA(x))}finally{f.mountYield=d,f.mountWhole=p,y&&(o.__mountLease=null),LA(o),h(),x||m.replay()}return k?(m.replay(),Uc(E(e)?e:{})):(a.root=x,Qj(o,s,i,a,c,l),m.replay(),x)},Hj=(t,e,n,r,o,s,i,a,c,l,f)=>{if(!r||typeof r.querySelectorAll!="function")return null;let u=k=>{for(let C=k;C&&C!==r;C=C.parentNode)if(C.parentNode===r&&C.localName==="svg"&&C.id)return!0;return!1},d={};for(let k of r.querySelectorAll("[data-br]")){let C=k.getAttribute("data-br");u(k)?k.removeAttribute("data-br"):d[C]=k}let p={},g=new Set,h=new Map,m=a.map;for(let k in m){let C=m[k],_=d[C];if(!_||p[C])continue;p[C]=_,g.add(_);let b=_.parentNode;b&&h.set(b,(h.get(b)||0)+1)}for(let k in d)p[k]||d[k].removeAttribute("data-br");let y={registry:m,nodes:p,claimed:new Set,pending:g,pendingIn:h,adopted:0,misses:0};if(o.__hydration=y,f)return UY(t,e,n,r,o,s,i,y,a,c,l,f);let x;try{x=t(e,n,o.key,l)}catch(k){console.error("[smbls] hydration failed, rendering fresh:",k),delete o.__hydration,$o(y);for(let C of y.claimed)C.parentNode&&C.remove();return null}return y.root=x,Qj(o,s,i,y,a,c),x},Wj=(t,e,n,r,o,s,i,a,c,l)=>{if(Xj(i,c),r){let u=[];for(let d of r.childNodes){if(d.nodeType===1){let p=d.localName;if(p==="script"||p==="link"||p==="style"||p==="svg"&&d.id)continue}u.push(d)}u.forEach(d=>d.remove())}i&&typeof i.querySelectorAll=="function"&&i.querySelectorAll("[data-br]").forEach(u=>u.removeAttribute("data-br")),s&&(s.__BRENDER_HYDRATION__={replaced:!0});let f=t(e,n,o.key,l);return Zj(s,i,a),Promise.resolve(f).then(u=>t3(o,s,u,!1),()=>{}),f},e3=(t,e,n,r,o,s,i,a=null)=>{let c=pT(r),l=n&&n.nodeType?n:n&&n.node||qj(r,c),f=RY(o,c);r.prerendered=!0;let u=ms(c);if(u&&(r.prerender=u),PY(r,o,f)){if(a)return cr().then(()=>jc(a.lease)?Hj(t,e,n,l,r,o,c,f,s,i,a):Uc(E(e)?e:{})).then(p=>p||Wj(t,e,n,l,r,o,c,f,s,i));let d=Hj(t,e,n,l,r,o,c,f,s,i,a);if(d)return d}return Wj(t,e,n,l,r,o,c,f,s,i)};M();var i3=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let n=typeof document<"u"?document:e.document;t.document=t.document||n;let r=t.window;return r&&r!==e&&typeof r.URL!="function"?(typeof console<"u"&&console.warn&&!globalThis.__smblsRouterUrlWarned&&(globalThis.__smblsRouterUrlWarned=!0,console.warn("[smbls/router] context.window lacks URL, falling back to globalThis \u2014 passed-in window may be a stub (warned once; applies to every embed app this session)")),t.window=e):t.window=r||e,t.window},n3=(t="smbls")=>{let e={};for(let n in wi)Object.prototype.hasOwnProperty.call(wi,n)&&(Wn(n)?e[`smbls.${n}`]=wi[n]:e[n]=wi[n]);return e},a3=t=>t.components?{...n3(),...t.components}:n3(),c3=t=>({...$d,...Ic,...So,...t.utils,...t.snippets,...t.functions}),l3=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router});var f3=t=>typeof globalThis<"u"&&globalThis.__SMBLS_PKGS__&&globalThis.__SMBLS_PKGS__[t]||null,VY=3e3,zY=(t,e,n=r=>import(r))=>{if(typeof globalThis>"u")return Promise.resolve(null);try{let r=globalThis.__SMBLS_PKGS__||(globalThis.__SMBLS_PKGS__={});if(r[t])return Promise.resolve(r[t]);let o=()=>n(e),s=Promise.resolve().then(o).then(a=>(a&&!r[t]&&(r[t]=a),r[t]||null)).catch(()=>null);return new Promise(a=>{let c=setTimeout(()=>a(null),VY);s.then(l=>{clearTimeout(c),a(l)})})}catch{return Promise.resolve(null)}},r3={},bT=async({dependencies:t,dependenciesOnDemand:e,document:n,preventCaching:r=!1,cdnProvider:o,packageManager:s,symbolsConfig:i,registerDependency:a=zY})=>{if(o||(o=po[s]||xa(i)||"esmsh"),!t)return null;if(!ks(t))return console.warn(`[smbls] dependencies is ${Array.isArray(t)?"an ARRAY":`a ${typeof t}`}, not a package-name-keyed object \u2014 skipping the CDN fetch loop. This usually means a project's config.js declares its own "dependencies" field that collides with the platform package map once context.js spreads them together.`),null;let c=!1;for(let d in t){c=!0;break}if(!c)return null;let l=oo()&&r?`?${Math.random()}`:"",f=async(d,p)=>{let g=An(d,p,o)+l;try{await Promise.race([ka(g,{document:n,type:"module"}),new Promise((h,m)=>setTimeout(()=>m(new Error(`Timeout loading ${d}`)),1e4))]),await a(d,g)}catch(h){if(console.error(`Failed to load ${d} from ${o}:`,h),o!=="symbols")try{let m=An(d,p,"symbols")+l;await Promise.race([ka(m,{document:n,type:"module"}),new Promise((y,x)=>setTimeout(()=>x(new Error(`Timeout fallback ${d}`)),2e4))]),console.log(`Successfully loaded ${d} from fallback (symbols.ls)`),await a(d,m)}catch(m){console.error(`Failed to load ${d} from fallback:`,m)}}},u=[];for(let d in t){let p=t[d];if(!(e&&e[d])&&!r3[d]&&(r3[d]=!0,!ho(d))){if(xs(d)){console.warn(`[smbls] dependency "${d}" looks like an un-interpolated template placeholder, not a real package specifier \u2014 skipping the CDN fetch (this is a bug upstream of the dependency loader, not a network failure).`);continue}f3(d)||u.push(f(d,p))}}return u.length&&await Promise.allSettled(u),t},o3=/\[smbls\] runtime dependency "([^"]+)" is not registered on globalThis\.__SMBLS_PKGS__/g,HY=t=>{if(typeof t=="string")return t;if(typeof t=="function")try{return typeof Ne=="function"?Ne(t):Function.prototype.toString.call(t)}catch{return""}return""},WY=t=>{let e=new Set;if(!t)return e;let n=[t.globalScope,t.functions,t.methods,t.snippets];for(let r=0;r<n.length;r++){let o=n[r];if(!o||typeof o!="object")continue;let s=Object.keys(o);for(let i=0;i<s.length;i++){let a;try{a=o[s[i]]}catch{continue}let c=HY(a);if(!c||c.indexOf("__SMBLS_PKGS__")===-1)continue;o3.lastIndex=0;let l;for(;(l=o3.exec(c))!==null;)e.add(l[1])}}return e},KY=t=>{let e=new Set;if(!t||typeof t.querySelectorAll!="function")return e;let n;try{n=t.querySelectorAll('script[type="importmap"]')}catch{return e}for(let r=0;r<n.length;r++){let o;try{o=JSON.parse(n[r].textContent||"")}catch{continue}let s=o&&typeof o=="object"?o.imports:null;if(s&&typeof s=="object"){let i=Object.keys(s);for(let a=0;a<i.length;a++)e.add(i[a])}}return e},qY=(t,e)=>{if(!e||!e.size)return!1;if(e.has(t))return!0;for(let n of e)if(n.length>1&&n.endsWith("/")&&t.length>n.length&&t.startsWith(n))return!0;return!1},u3=(t,{syncRead:e=WY(t),runtimeDocument:n=typeof document<"u"?document:null,importMap:r=KY(n)}={})=>{let o=t&&t.dependencies;if(!ks(o))return null;let s=!t.document||t.document===n,i=t.dependenciesOnDemand,a=null,c=null;for(let l in o)s&&!(i&&i[l])&&!e.has(l)&&qY(l,r)?(c||(c={}))[l]=o[l]:(a||(a={}))[l]=o[l];return{blocking:a,deferred:c}},GY=t=>import(t),gT={},YY=(t,e)=>{if(!e||typeof globalThis>"u")return;let n=globalThis.__SMBLS_PKGS__||(globalThis.__SMBLS_PKGS__={});n[t]||(n[t]=e)},XY=(t,{importModule:e=GY}={})=>{let n=[];if(!t)return Promise.resolve([]);for(let r in t)if(!(ho(r)||xs(r))&&!f3(r)){if(!gT[r]){let o=()=>e(r);gT[r]=Promise.resolve().then(o).then(s=>(YY(r,s),s||null),()=>null)}n.push(gT[r])}return Promise.all(n)},ZY=2e3,JY=3e3,d3=(t,{win:e=typeof window<"u"?window:null,importModule:n,loadTimeoutMs:r=JY}={})=>t?new Promise(o=>{let s=()=>{XY(t,{importModule:n}).then(o,o)},i=()=>{e&&typeof e.requestIdleCallback=="function"?e.requestIdleCallback(s,{timeout:ZY}):setTimeout(s,0)},a=e&&e.document;if(a&&a.readyState&&a.readyState!=="complete"&&typeof e.addEventListener=="function"){let c=!0,l=null,f=()=>{c&&(c=!1,clearTimeout(l),typeof e.removeEventListener=="function"&&e.removeEventListener("load",f),i())};e.addEventListener("load",f,{once:!0}),l=setTimeout(f,r)}else i()}):null,p3=async(t,e)=>{let n=e.window||window,r=e.cdnProvider||xa(e.symbolsConfig)||"esmsh",o=async i=>async(a,c)=>{let f=(i.window||window).packages[a];return typeof f=="function"?f():f},s=async i=>async(a,c=r)=>{let{dependenciesOnDemand:l}=i,f=i.document||document,u=i.window||window;if(!u.packages[a]&&ho(a))return await u.require(a,c);if(!u.packages[a]){let d=oo()?`?${Math.random()}`:"";if(l&&l[a]){let p=l[a],g=An(a,p,c)+d;try{await i.utils.loadRemoteScript(g,{window:u,document:f})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let m=An(a,p,"symbols")+d;await i.utils.loadRemoteScript(m,{window:u,document:f})}}}else{let p=An(a,"latest",c)+d;try{await i.utils.loadRemoteScript(p,{window:u,document:f})}catch(g){if(console.error(`Failed to load ${a} from ${c}:`,g),c!=="symbols"){let h=An(a,"latest","symbols")+d;await i.utils.loadRemoteScript(h,{window:u,document:f})}}u.packages[a]="loadedOnDeman"}}return await u.require(a,c)};n.packages?n.packages=Lt(n.packages,t):n.packages=t,n.require||(e.utils.require=await o(e),n.require=e.utils.require),n.requireOnDemand||(e.utils.requireOnDemand=await s(e),n.requireOnDemand=e.utils.requireOnDemand)},QY=/\s+/g,h3=(t,e)=>typeof t=="function"?t(e,e?.state,e?.context):t,tX=(t,e)=>{let n="";for(let r in t){let o=t[r];typeof o=="boolean"&&o?n+=` ${r}`:typeof o=="string"?n+=` ${o}`:typeof o=="function"&&(n+=` ${h3(o,e)}`)}return n},eX=(t,e,n)=>{if(!t)return;let{key:r}=e;t===!0&&(t=e.classlist={key:r}),typeof t=="string"&&(t=e.classlist={default:t}),t!==null&&typeof t=="object"&&!Array.isArray(t)&&(t=tX(t,e));let o=t.replace(QY," ").trim();if(n&&typeof n.setAttribute=="function")n.setAttribute("class",o);else if(n)try{n.className=o}catch{}return o},nX=()=>(t,e,n)=>{let r=h3(t,e);if(t){let{__ref:o}=e;o.__class.style=r}g3()(e.classlist,e,e.state,!0)},g3=()=>(t,e,n,r)=>{if(e.style&&!r)return;let{__ref:o}=e,{__class:s,__classNames:i}=o;if(!(t===null||typeof t!="object"||Array.isArray(t))){e.class&&(i.classProps=e.class),e.attr?.class&&(i.class=e.attr.class);for(let a in s){let c=s[a];if(!c){delete i[a];continue}let l;typeof c=="string"||typeof c=="number"?l=c:typeof c=="boolean"?l=e.key:l=Ve(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];e.node&&eX(i,e,e.node)}},rX=()=>({style:nX(),classlist:g3()}),oX=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],mT=new WeakSet,yT=!1,sX=t=>!!t&&typeof t=="object",iX=new Set(["key","document","files","assets","themeRoot","config","newConfig","recordCss","router"]),m3=t=>t.toLowerCase()==="font",aX=t=>{let e=2166136261,n=16777619^t.length;for(let r=0;r<t.length;r++){let o=t.charCodeAt(r);e=Math.imul(e^o,16777619),n=Math.imul(n^o,1540483477)}return(e>>>0).toString(36)+"."+(n>>>0).toString(36)+"."+t.length.toString(36)},s3=(t,e)=>typeof e=="function"?"fn:"+String(e):e,y3=(t,e)=>{let n={};for(let o in t||{})m3(o)||(n[o]=t[o]);let r={};for(let o in e)iX.has(o)||(r[o]=e[o]);return r.globalTheme=Ry(e.globalTheme)||"auto",aX(1+"|"+JSON.stringify(n,s3)+"|"+JSON.stringify(r,s3))},cX=t=>{let e={};for(let n in t||{})m3(n)&&E(t[n])&&bt(e,pt(t[n]),ae);return E(ui.font)&&bt(e,pt(ui.font),ae),e},lX=(t,e)=>{if(t.preparedDesignSystem!==void 0){let r=t.preparedDesignSystem;return delete t.preparedDesignSystem,r}let n=Gn(e,Hf);return n?n.value:null},b3=t=>{if(!t||t.preparedDesignSystem!==void 0)return null;let e=t.document||(typeof document<"u"?document:null);if(!e||typeof e.querySelector!="function"||typeof globalThis.fetch!="function")return null;try{let n=e.querySelector(Vf),r=n&&n.href;if(r)return globalThis.fetch(r,{credentials:"same-origin"}).then(c=>c&&c.ok?c.json():null).catch(()=>null);let o=e.querySelector(zf),s=o&&o.getAttribute("content");if(!s)return null;let i=new URL(s,e.baseURI||void 0).href,a=globalThis.fetch(i,{credentials:"same-origin",priority:"low"}).then(c=>c&&c.ok?c.json():null).catch(()=>null);return uX(a,i,t.window||e.defaultView)}catch{return null}},fX=(t,e)=>{let n=e&&e.performance||(typeof performance<"u"?performance:null);if(!n||typeof n.getEntriesByName!="function")return!1;try{let r=n.getEntriesByName(t);for(let o=0;o<r.length;o++)if(r[o].responseEnd>0)return!0}catch{}return!1},uX=(t,e,n)=>{let r=!1,o=t.then(s=>(r=!0,s));return o.deferred=!0,o.ready=()=>r||fX(e,n),o},_3=t=>!!t&&(t.deferred!==!0||t.ready()),dX=t=>E(t)&&t.format===1&&typeof t.fingerprint=="string"&&E(t.config)&&Array.isArray(t.rules),pX=(t,e,n,r)=>{if(r.localFile)return null;let o=Gg(t);return o?{format:1,fingerprint:y3(n.designSystem,r),config:o,rules:e.rules,sprites:e.sprites}:null},w3=(t,e)=>{let n=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,r=e.initOptions||{},o=e.registry||rX(),s=()=>e.designSystem?bt(pt(e.designSystem),pt(ui),ae):pt(ui),i={};for(let m of oX)e[m]!==void 0&&(i[m]=e[m]);let a,c=sX(n),f=c&&mT.has(n)&&!e.skipDesignSystemInit,u=!f&&!yT,d=f?`[data-smbls-app="${t}"]`:":root";e.scopeSelector=d;let p={key:t,document:n,files:e.files,assets:e.assets,scopeSelector:d,...lT,...i,...r};if(e.skipDesignSystemInit){if(a=P(t)||P(),a&&(a.__domDocument=n),a?.CSS_VARS){mt(a);try{Ot({[d]:a.CSS_VARS}),a.CSS_MEDIA_VARS&&Ot(Oy(a.CSS_MEDIA_VARS,d));let m=Gs(a.cssSkinVars,a.cssSkinFallback,d);Object.keys(m).length&&Ot(m)}finally{ht()}}}else if(e.isolateDesignSystem&&!f){let m=Tg();m.__domDocument=n;let y=null,x=e.captureDesignSystem?k=>{y=k}:void 0;mt(m);try{a=fr(s(),{...p,config:m,recordCss:x})}finally{ht()}y&&(e.preparedDesignSystem=pX(a,y,e,p))}else if(u){let m=P();m&&(m.__domDocument=n);let y=m&&m._scratchConfig&&!p.localFile?lX(e,n):null;dX(y)&&y.fingerprint===y3(e.designSystem,p)?(a=AA(y,m,p,cX(e.designSystem)),e.designSystemSource="prepared"):(a=fr(s(),p),e.designSystemSource="processed"),a&&a!==m&&(a.__domDocument=n),c&&mT.add(n),yT=!0}else{let m=su(t,s(),{cleanBase:!0});for(let y in i)m[y]=i[y];if(m.__domDocument=n,f){let y=t.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);e.cssPrefix=y,m.varPrefix=y}mt(m);try{a=fr(m,p)}finally{ht()}c&&mT.add(n),yT=!0}let g=a?.CONFIG||a,h=g?.font;if(h){mt(g);try{jj(h)}finally{ht()}}return[a,o]},S3=(t,e)=>{let n={};e.state&&io(n,e.state),t&&t.state&&io(n,t.state);let r=e.polyglot;if(r){let o=null;try{typeof localStorage<"u"&&(o=localStorage.getItem(r.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let s=ws({polyglot:r,pathname:Ss(e.window),stored:o,stateLang:n.lang});(o||s!==wr(n.lang,r))&&s!==n.lang&&(n.lang=s),r.translations&&hX(e,r,n,s)}return n.isRootState=!0,pt(n)},hX=(t,e,n,r)=>{let o=new Set,s=new Set,i=(l,f)=>{if(!s.has(l)){if(!us(t,l,n)){o.add(l);return}n[l]=f,s.add(l),Kn(t,l,f)}},a=e.translations[r];if(a&&typeof a=="object")for(let l in a)i(l,a[l]);let c=new Set(vn(e,!1));for(let l in e.translations)c.has(l)||i(l,e.translations[l]);o.size&&e.verbose!==!1&&t.verbose!==!1&&console.warn(`[polyglot] ${o.size} translation key${o.size===1?"":"s"} collide${o.size===1?"s":""} with a declared root-state key (${[...o].join(", ")}) \u2014 the declared value wins and the translation is NOT seeded into state. Rename the translation key, or read it with \`{{ key | polyglot }}\` instead of a bare \`{{ key }}\`.`)},x3=(t,e)=>{E(t.routes)&&E(e.pages)&&Lt(t.routes,e.pages);let n=t.routes||e.pages||{},r=[];for(let o in n){if(o.charCodeAt(0)===47)continue;let i="/"+(o==="index"?"":o);Object.prototype.hasOwnProperty.call(n,i)?r.push(`${o} -> ${i}`):n[i]=n[o],delete n[o]}return r.length&&e&&e.verbose!==!1&&console.warn(`[smbls] preparePages kept ${r.length} explicitly declared route${r.length===1?"":"s"} over a same-named page key (${r.join(", ")}). A bare page NAME never overwrites a declared '/route'. This usually means a shared library ships a page under its export name that collides with one of your routes \u2014 add it to that library's ignoreList if you did not intend the collision.`),n},_T=t=>{Mf(t,t.sharedLibraries)};var ET={};F(ET,{default:()=>AX,getActiveLang:()=>zi,getLanguages:()=>cp,getLocalStateLang:()=>dp,getPendingLang:()=>ap,initPolyglot:()=>Wb,loadTranslations:()=>Vi,polyglotPlugin:()=>il,setLang:()=>fp,trackLoadTranslations:()=>kT,translate:()=>lp,upsertTranslation:()=>up});M();M();Mt();var gX="smbls_t_",mX="smbls_tv_",wT=t=>{let e=t&&t.window||(typeof window<"u"?window:null);return e?e.localStorage:null},sl={get(t,e){try{return wT(t)?.getItem(e)??null}catch{return null}},set(t,e,n){try{wT(t)?.setItem(e,n)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(t,e){try{wT(t)?.removeItem(e)}catch(n){console.warn("[polyglot] localStorage unavailable:",n.message)}}},k3=new WeakMap,E3=t=>{let e=k3.get(t);return e||(e={},k3.set(t,e)),e},v3=new WeakMap,O3=(t,e)=>t&&typeof t=="object"?t:e&&typeof e=="object"?e:null,R3=t=>{let e=v3.get(t);return e||(e={seq:0,pending:Sn(null),wake:null},v3.set(t,e)),e},A3=(t,e,n)=>new Promise(r=>{let o=null,s=()=>{o!==null&&clearTimeout(o),o=null,t.wake===s&&(t.wake=null),r()};t.wake=s,Promise.resolve(e).then(s,s),n>0&&(o=setTimeout(s,n))}),xT=(t,e)=>!!(t?.translations&&t.translations[e]),yX=3e3,bX=2147483647,_X=t=>{let e=t?.fontWait;return e===!1?0:typeof e=="number"?e>0?Math.min(e,bX):0:yX},wX=new RegExp("\\p{L}","gu"),SX=(...t)=>{let e=new Set,n=(r,o)=>{if(typeof r=="string"){let s=r.match(wX);if(s)for(let i=0;i<s.length;i++)e.add(s[i])}else if(r&&typeof r=="object"&&o<8)for(let s in r)n(r[s],o+1)};for(let r=0;r<t.length;r++)n(t[r],0);return Array.from(e).join("")},xX=(t,e)=>{let n=t?.fonts;if(!e||!n||!t.body||typeof n.check!="function"||typeof n.load!="function")return null;try{let o=(t.defaultView||globalThis).getComputedStyle(t.body).fontFamily;if(!o)return null;let s="1em "+o;return n.check(s,e)?null:Promise.resolve(n.load(s,e)).then(()=>{},()=>{})}catch{return null}};function zi(){let t=this?.context,e=t?.polyglot,n=this?.state?.root||t?.state?.root;return wr(n?.lang||t?.state?.lang,e)}function ap(){let t=this?.context,e=O3(t,this?.state?.root||t?.state?.root);return e?R3(e).pending.get():null}function cp(){let t=this?.context?.polyglot;return t?vn(t):[]}var Hb=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let n=e.split("."),r=t;for(let o=0;o<n.length;o++){if(r==null)return;r=r[n[o]]}return r},C3=(t,e,n)=>{let r=e.lastIndexOf(".");if(r===-1)return t[e+"_"+n];let o=Hb(t,e.substring(0,r));if(o!=null)return o[e.substring(r+1)+"_"+n]};function lp(t,e){if(!t)return"";let n=this?.context,r=n?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let l=C3(s,t,o);if(l!==void 0)return l}if(r?.translations){let l=r.translations[o];if(l){let f=Hb(l,t);if(f!==void 0)return f}}let i=s?.root||n?.state?.root,a=i?.translations;if(a){let l=a[o];if(l){let f=Hb(l,t);if(f!==void 0)return f}}let c=r?.defaultLang||"en";if(s){let l=C3(s,t,c);if(l!==void 0)return l}if(r?.translations){let l=r.translations[c];if(l){let f=Hb(l,t);if(f!==void 0)return f}}return kX(r,i,o)&&typeof _a=="function"&&_a(),t}var kX=(t,e,n)=>!!t?.fetch&&!xT(e,n)&&!t._fetchFailed?.[n];async function Vi(t,e){let n=this?.context,r=n?.polyglot,o=this?.state?.root||n?.state?.root;if(!r||!o)return;if(e&&e.inFlight===!0)return E3(o)[(r.storagePrefix||"smbls")+":"+t];let s=r.storagePrefix||gX,i=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):mX);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!o.translations?.[t]){let f=sl.get(n,s+t);if(f)try{let u=JSON.parse(f),d={translations:{...o.translations||{}}};d.translations[t]=u,o.update&&o.update(d)}catch(u){console.warn("[polyglot] Failed to apply language update:",u.message)}}let a=E3(o),c=(r.storagePrefix||"smbls")+":"+t;if(a[c])return a[c];let l=this;return a[c]=(async()=>{try{let f=r.fetch,u=parseInt(sl.get(n,i+t),10)||0,d,p,g;if(L(f)){let m=await f(t,u,l);if(!m||m.changed===!1)return;d=m.translations||m.data||m,p=m.version||0,g=!0}else if(E(f)){let m=l.getDB||(()=>n.fetch),y=L(m)?await m.call(l):n.fetch;if(!y)return;let x=f.rpc||f.from||"get_translations_if_changed",k={p_lang:t,p_cached_version:u,...f.params||{}},C=await y.rpc({from:x,params:k});if(C.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,C.error;let _=C.data;if(!_||!_.changed)return;d=_.translations||{},p=_.version||0,g=!0}else return;if(!g||!d)return;sl.set(n,s+t,JSON.stringify(d)),p&&sl.set(n,i+t,String(p));let h={translations:{...o.translations||{}}};h.translations[t]=d,o.update&&o.update(h)}catch(f){if(r.verbose!==!1){let u=f?.message||f?.details||(typeof f=="object"?JSON.stringify(f):String(f));console.warn("[polyglot] Failed to load translations for",t,"-",u)}}finally{delete a[c]}})(),a[c]}var ST=new WeakMap,T3=Symbol.for("@symbo.ls/polyglot:trackedLoadTranslations");function kT(t){if(!L(t)||t[T3]||t===Vi)return t;let e=function(n,r){let o=this?.context,s=this?.state?.root||o?.state?.root,a=(o?.polyglot?.storagePrefix||"smbls")+":"+n;if(r&&r.inFlight===!0){let l=s&&ST.get(s);return l&&l[a]?l[a]:Vi.call(this,n,r)}let c=t.call(this,n,r);if(s&&c&&typeof c.then=="function"){let l=ST.get(s);l||ST.set(s,l={});let f=Promise.resolve(c);l[a]=f;let u=()=>{l[a]===f&&delete l[a]};f.then(u,u)}return c};return e[T3]=!0,e}var EX=(t,e,n)=>{let r=t.__ref;if(!r||r.contentManaged||n==null||typeof n=="object")return;let o=r.__textNode;if(!o||o.parentNode!==e)return;let s=String(n);o.nodeValue!==s&&(o.nodeValue=s)};async function fp(t,e){let n=this?.context,r=n?.polyglot,o=this?.state?.root||n?.state?.root,s=n?.document||globalThis.document;if(!o)return;e?.persist!==!1&&sl.set(n,ba(r),t);let i=R3(O3(n,o)),a=++i.seq;i.wake&&i.wake();let c=()=>i.seq===a;if(this.call("getActiveLang")===t){i.pending.set(null),s?.documentElement&&(s.documentElement.lang=t);return}try{if(r?.fetch){let f=this.call("loadTranslations",t);if(!xT(o,t)){i.pending.set(t);let u=null;if(await A3(i,Promise.resolve(f).then(null,d=>{u=d}),0),!c())return;if(u)throw u;if(!xT(o,t)&&!r.translations?.[t])return}}let l=_X(r);if(l>0&&s?.fonts&&s.documentElement?.lang!==t){let f=xX(s,SX(r?.translations?.[t],o.translations?.[t]));if(f&&(i.pending.set(t),await A3(i,f,l),!c()))return}i.pending.set(null),vX(n,r,o,s,t)}finally{c()&&i.pending.set(null)}}function vX(t,e,n,r,o){t?.state&&(t.state.lang=o);let s=e?.translations?.[o],i={lang:o},a=c=>nf(t,c,n);if(s&&typeof s=="object")for(let c in s){if(!a(c))continue;let l=s[c];(Array.isArray(l)||typeof l=="string"||typeof l=="number")&&(i[c]=l)}n.update&&n.update(i);for(let c in i)c!=="lang"&&Kn(t,c,i[c]);if(s&&typeof s=="object")for(let c in s){if(!a(c))continue;let l=s[c];if(l&&typeof l=="object"&&!Array.isArray(l)&&n[c]&&typeof n[c]=="object"&&!Array.isArray(n[c])){for(let f in l)n[c][f]=l[f];Kn(t,c,n[c])}}if(r&&s){let c=r.querySelectorAll("[data-key]");for(let l of c){let f=l.ref;if(!f)continue;let u=f.__ref?.__exec?.text;if(typeof u=="string"&&u.includes("{{"))try{EX(f,l,f.call("replaceLiteralsWithObjectFields",u,f.state))}catch{}}}r?.documentElement&&(r.documentElement.lang=o)}async function up(t,e,n){let r=this?.context,o=r?.polyglot,s=this?.state?.root||r?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=n),o?.translations?.[e]&&(o.translations[e][t]=n),o?.fetch&&E(o.fetch)){let i=this.getDB||(()=>r.fetch),a=L(i)?await i.call(this):r.fetch;if(!a)return;let c=o.fetch.table||"translations",l=await a.upsert({from:c,data:{key:t,lang:e,text:n}});if(l?.error)throw l.error;return l.data}}async function Wb(){let t=this?.context,e=t?.polyglot;if(!e)return;let n=this?.state?.root||t?.state?.root;if(!n)return;let r=sl.get(t,ba(e)),o=ws({polyglot:e,pathname:Ss(t.window),stored:r,stateLang:n.lang||t?.state?.lang}),s=t?.document||globalThis.document;s?.documentElement&&(s.documentElement.lang=o),n.update&&n.lang!==o&&n.update({lang:o}),e.fetch&&!(e.translations&&e.translations[o])&&await this.call("loadTranslations",o)}function dp(t){try{let e=zi.call(this),n=this?.state;if(!n)return"";let r=t.lastIndexOf(".");if(r===-1)return n[t+e]??"";let o=t.substring(0,r).split("."),s=n;for(let i=0;i<o.length;i++){if(s==null)return"";s=s[o[i]]}return s==null?"":s[t.substring(r+1)+e]??""}catch{return""}}var il={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Wb.call(t))}},AX=il;var pp={polyglot:lp,getLocalStateLang:dp,getActiveLang:zi,getLang:zi,setLang:fp,getPendingLang:ap,getLanguages:cp,loadTranslations:Vi,upsertTranslation:up};var AT={};F(AT,{SYSTEM_METRICS:()=>hp,capsizeHandler:()=>vT,capsizePlugin:()=>qb,computeCapsize:()=>P3,default:()=>CX,resolveFontSizePx:()=>L3,resolveMetrics:()=>D3});var hp={arial:{capHeight:716,ascent:1854,descent:-434,lineGap:67,unitsPerEm:2048},helvetica:{capHeight:714,ascent:770,descent:-230,lineGap:0,unitsPerEm:1e3},"helvetica neue":{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3},georgia:{capHeight:1419,ascent:1878,descent:-449,lineGap:0,unitsPerEm:2048},"times new roman":{capHeight:1356,ascent:1825,descent:-443,lineGap:87,unitsPerEm:2048},"courier new":{capHeight:1170,ascent:1705,descent:-615,lineGap:0,unitsPerEm:2048},verdana:{capHeight:1489,ascent:2059,descent:-430,lineGap:0,unitsPerEm:2048},roboto:{capHeight:1456,ascent:1900,descent:-500,lineGap:0,unitsPerEm:2048},"open sans":{capHeight:1462,ascent:2189,descent:-600,lineGap:0,unitsPerEm:2048},inter:{capHeight:1490,ascent:2048,descent:-512,lineGap:0,unitsPerEm:2048},lato:{capHeight:1434,ascent:1974,descent:-426,lineGap:0,unitsPerEm:2e3},"source sans":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans pro":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans 3":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},montserrat:{capHeight:700,ascent:968,descent:-251,lineGap:0,unitsPerEm:1e3},poppins:{capHeight:700,ascent:1050,descent:-350,lineGap:100,unitsPerEm:1e3},raleway:{capHeight:710,ascent:1e3,descent:-250,lineGap:0,unitsPerEm:1e3},"dm sans":{capHeight:700,ascent:992,descent:-312,lineGap:0,unitsPerEm:1e3},nunito:{capHeight:705,ascent:1011,descent:-353,lineGap:0,unitsPerEm:1e3},"work sans":{capHeight:684,ascent:930,descent:-243,lineGap:0,unitsPerEm:1e3},manrope:{capHeight:708,ascent:980,descent:-300,lineGap:0,unitsPerEm:1e3},"ibm plex sans":{capHeight:698,ascent:1025,descent:-275,lineGap:0,unitsPerEm:1e3},"plus jakarta sans":{capHeight:720,ascent:1060,descent:-300,lineGap:0,unitsPerEm:1e3}},Kb=t=>parseFloat(t.toFixed(4)),P3=(t,e,n)=>{let{ascent:r,descent:o,lineGap:s,unitsPerEm:i,capHeight:a}=e,c=Math.abs(o),l=r+c+s,f=n!==void 0?n:l/i*t,u=f/t,d=l/i,p=(r-a+s/2)/i-(u-d)/2,g=(c+s/2)/i-(u-d)/2;return{fontSize:`${Kb(t/16)}rem`,lineHeight:`${Kb(f)}px`,capHeightTrim:`${Kb(-p)}em`,baselineTrim:`${Kb(-g)}em`}},L3=(t,e)=>{if(typeof t=="number")return t;let n=e?.designSystem;if(!n)return null;let{typography:r}=n;if(r?.sequence){let s=String(t).toUpperCase(),i=r.sequence[s];if(i)return i.decimal||i.val}let o=parseFloat(t);return isNaN(o)?null:typeof t=="string"&&t.endsWith("rem")?o*(n.typography?.browserDefault||16):o},D3=(t,e)=>{let r=e?.designSystem?.font_family||{};if(t){let s=r[t];if(s?.metrics)return s.metrics;let i=String(t).toLowerCase().replace(/['"]/g,"").trim();if(hp[i])return hp[i]}let o=r.default||Object.keys(r)[0];if(o){let s=r[o];if(s?.metrics)return s.metrics;if(s?.value&&Array.isArray(s.value))for(let i of s.value){let a=i.toLowerCase().replace(/['"]/g,"").trim();if(hp[a])return hp[a]}}return null},vT=(t,e,n,r)=>{if(!t)return;let o=L3(e.fontSize,r);if(!o)return;let s=D3(e.fontFamily,r);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=P3(o,s,i),f={};return e.lineHeight||(f.lineHeight=a),f["::before"]={content:'""',marginBottom:c,display:"table"},f["::after"]={content:'""',marginTop:l,display:"table"},f},qb={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}},CX=qb;var TX="@symbo.ls/fetch:EARLY",OX=()=>new Promise(t=>setTimeout(t,0)),CT=t=>{let e=typeof globalThis<"u"?globalThis[Symbol.for(TX)]:null,n=e&&e.afterFirstView;return typeof n!="function"||e.afterFirstViewRan?null:(e.afterFirstViewRan=!0,Promise.resolve(t&&t.__firstNavigation).catch(()=>{}).then(OX).then(()=>{try{n(e.ctx||{})}catch(r){console.error("[smbls] fetch.early afterFirstView failed:",r)}}))};var RT=t=>!!(t&&typeof t=="object"&&t.__isStub===!0),PT=t=>$e(t)?t.library!==void 0?t.library:t.key??t.name:t,RX=(t,e)=>{let n=e?.sharedLibraries,r=Array.isArray(n)?n.map(i=>typeof i=="string"?i:i?.key||i?.name):n&&typeof n=="object"?Object.keys(n):null,o=0,s=i=>{let a=o++;if(typeof i.__libraryKey=="string"&&i.__libraryKey)return i.__libraryKey;if(r&&r[a])return r[a];if(typeof i.__stubId=="string"){let c=i.__stubId.match(/^@symbo[-.]ls\/([^/]+)/);if(c)return c[1]}return null};return t.map(i=>{let a=PT(i);if(!RT(a))return i;let c=s(a);return c?$e(i)?{...i,library:c}:c:null}).filter(Boolean)},LT=new WeakMap,PX={lazy:!0,window:globalThis},I3=["components","pages","functions","methods","snippets"],LX=I3.filter(t=>t!=="methods"),TT=t=>{if(!t||typeof t!="object")return!1;let e=new WeakSet,n=[t];for(;n.length;){let r=n.pop();if(!r||typeof r!="object"||e.has(r))continue;e.add(r);let o;try{o=Object.keys(r)}catch{continue}for(let s of o){let i;try{i=r[s]}catch{continue}if(typeof i=="function")return!0;i&&typeof i=="object"&&n.push(i)}}return!1},DX=(t,e)=>{if(cs(e)||cs(t))return"boot-revived";if(TT(t))return"local";if(e&&typeof e=="object"){if(TT(e.app))return"local";for(let n of LX)if(TT(e[n]))return"local"}return"raw-json"},M3=(t,e)=>{let n=e?t[e]:t;if(!E(n))return;let r=be(n,{},PX);try{Object.assign(n,r)}catch(o){if(e)t[e]=r;else throw o}},IX=t=>{if(!E(t)||cs(t))return t;for(let e of[...I3,"app"])M3(t,e);return ea(t)},MX=(t,e)=>{if(!Array.isArray(t))return t;for(let n of t){let r=$e(n)?n.library:n;E(r)&&!e.has(r)&&IX(r)}return t},DT=new WeakMap,OT=t=>{let e=LT.get(t);e&&(LT.delete(t),d3(e))},N3=t=>t.notifications===!0||t.notifications!==!1&&!!t.editor&&t.editor.verbose===!0,$3=t=>t.sync!==!1&&Ti(t)||N3(t),F3=t=>{let e={shorthand:null,analyze:null,inspect:null,fetch:null,sync:null,windows:null,dropdown:null,tooltip:null};for(let n of rj(t))e[n]=he(n);return $3(t)&&(e.sync=he("sync")),e},IT=async(t,e={})=>{let n=e.symbolsConfig,r=n?.owner&&n?.key?`${n.owner}--${n.key}`:n?.key,o=e.key=e.key||r||(v(t)?t:"smblsapp");e.define=e.define||rl,e.cssPropsRegistry=xt,e.window=i3(e);let s=F3(e),i=DX(t,e);if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__&&e.sharedLibraries&&e.sharedLibraries.length)_T(e);else if(e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(x=>{let k=PT(x);return typeof k=="string"||RT(k)})){e.sharedLibraries=RX(e.sharedLibraries,e.symbolsConfig);let x=new Set(e.sharedLibraries.map(C=>PT(C)).filter(C=>E(C)&&!RT(C))),k=await $f(e.sharedLibraries,{apiBaseUrl:Vb()});e.sharedLibraries=i==="raw-json"?k:MX(k,x)}Lj(e.sharedLibraries),_T(e)}Ti(e)&&Gc(e,e.designSystem);let a=DT.get(e);a&&(DT.delete(e),_3(a)&&(e.preparedDesignSystem=await a));let[c,l]=w3(o,e);if(e.designSystem=c,e.registry=l,Kf(e,{apiBaseUrl:Vb()}),e.cases||(e.cases={}),e.shorthand){let y=await(s.shorthand||he("shorthand"));y&&y.shorthandPlugin.prepareContext(e)}let f=S3(t,e);if(e.state=f,mf(f),e.pages=x3(t,e),e.components=a3(e),e.utils=c3(e),po[e.packageManager]){let y=u3(e);y&&y.deferred?(y.blocking&&await bT({...e,dependencies:y.blocking}),LT.set(e,y.deferred)):e.dependencies=await bT(e)}if(e.methods=l3(e),e.routerOptions=nF(t,e),e.defaultExtends=[ey],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope=e.globalScope||{},e.plugins.some(y=>!y||typeof y!="object")){let y=e.plugins.filter(x=>!x||typeof x!="object");e.plugins=e.plugins.filter(x=>x&&typeof x=="object"),e.verbose!==!1&&console.warn(`[smbls] context.plugins carried ${y.length} non-plugin entr${y.length===1?"y":"ies"} (${y.map(x=>JSON.stringify(x)).join(", ")}) \u2014 dropped. A published project that imports a framework plugin it does not declare ships a stub phantom here; the runtime registers polyglot/helmet/fetch/... itself from the context config, so remove the import instead.`)}let u=e.globalScope;e.globalScope&&E(e.globalScope)&&(e.globalScope=ls(e.globalScope));let d=(y,x)=>{i==="raw-json"&&M3(y,x)};d(t),d(e,"components"),d(e,"pages"),d(e,"functions"),d(e,"methods"),d(e,"snippets"),d(e,"app"),Df(e,u),If(e);let p=y=>y&&typeof y.select=="function";if(e.fetch?.__resolved&&!p(e.fetch.__resolved)&&delete e.fetch.__resolved,e.db?.__resolved&&!p(e.db.__resolved)&&delete e.db.__resolved,e.polyglot&&!qe(e,"polyglot")){e.plugins.push(il);for(let y in pp)typeof e.functions[y]!="function"&&(e.functions[y]=pp[y])}if(e.polyglot&&e.functions&&typeof e.functions.loadTranslations=="function"&&(e.functions.loadTranslations=kT(e.functions.loadTranslations)),qe(e,"helmet")||e.plugins.push(jb),qe(e,"inertOutside")||e.plugins.push(Xm),e.fetch){let y=await(s.fetch||he("fetch"));if(y){qe(e,"fetch")||e.plugins.push(y.fetchPlugin);let{fetchFunctions:x}=y;for(let k in x)typeof e.functions[k]!="function"&&(e.functions[k]=x[k])}}if(e.designSystem?.typography?.useCapsize!==!1&&!qe(e,"capsize")&&(e.plugins.push(qb),e.cssPropsRegistry.useCapsize=vT),e.shorthand&&!qe(e,"shorthand")){let y=await(s.shorthand||he("shorthand"));y&&e.plugins.push(y.shorthandPlugin)}if(e.analyze&&!qe(e,"analyze")){let y=await(s.analyze||he("analyze"));if(y){let x=e.analyze===!0?{}:e.analyze;e.analyze=y.createAnalyzeState(x),e.plugins.push(y.analyzePlugin)}}let g=e.sync!==!1&&Ti(e),h=$3(e)?await(s.sync||he("sync")):null;if(h&&g&&!qe(e,"sync")&&e.plugins.push(h.syncPlugin),e.inspect&&!qe(e,"inspect")){let y=await(s.inspect||he("inspect"));y&&e.plugins.push(y.inspectPlugin)}h&&N3(e)&&!qe(e,"notifications")&&e.plugins.push(h.notificationsPlugin);let m=async y=>{if(e[y]===!1)return;let x=await(s[y]||he(y));if(!x)return;let{components:k,functions:C}=x;for(let _ in k)E(e.components[_])||(e.components[_]=k[_]);for(let _ in C)typeof e.functions[_]!="function"&&(e.functions[_]=C[_])};return await m("windows"),await m("dropdown"),await m("tooltip"),e},gp=async(t,e)=>{E(e)||(e={});let n=Z2(e);F3(e);let r=b3(e);if(r&&DT.set(e,r),n&&(n.lease=Y2(e),await cr(),!n.lease.live()))return Uc(E(t)?t:{});hr(t)?(e.parent=t,t={}):v(t)?(e.key=t,t={}):E(t)?t={...t}:t={};let o=e.window||(typeof window<"u"?window:null),s=Gj(e,o);globalThis.__SMBLS_BUILD_DROP_F_prerender__&&s&&qt("prerender");let i=!globalThis.__SMBLS_BUILD_DROP_F_prerender__&&s?Yj(e):null;if(await IT(t,e),e.useReset!==!1){let u=e.document||(typeof document<"u"?document:null);if(u){let d=u.head.querySelector("style[data-smbls]");d||(d=u.createElement("style"),d.setAttribute("data-smbls",""),u.head.appendChild(d));let p=d.sheet;if(p){try{p.insertRule("*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }",0)}catch{}try{p.insertRule("h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }",1)}catch{}}}}if(e.app&&E(e.app))for(let u in e.app)t[u]===void 0&&(t[u]=e.app[u]);t.extends=Pj(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await p3({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e);for(let u of e.plugins)if(typeof u.beforeCreate=="function")try{u.beforeCreate(t,e)}catch(d){console.error(`[smbls] plugin "${u.name||"?"}" beforeCreate error:`,d)}let a=e.document;if(!a||!a.createElement)return OT(e),t;let c=e.parent||a.body,l={verbose:e.verbose,context:e,...e.domqlOptions};if(!globalThis.__SMBLS_BUILD_DROP_F_prerender__&&s){let u=await e3(Yt,t,c,e,o,i,l,n);return Fd(u)||(OT(e),CT(e)),u}let f=n?await Q2(t,c,e,l,n):Yt(t,c,e.key,l);return f?(OT(e),CT(e),typeof window<"u"&&!e.document&&(window.__smblsApp=f),f):Uc(t)};var MT=(t,e)=>{if(!E(e))return bt(t,{});let{state:n,...r}=e;return bt(t,r),n!==void 0&&(E(t.state)&&E(n)?io(t.state,n):t.state===void 0&&(t.state=n)),t},NX=t=>{if(typeof document>"u")return;let e=t.themeRoot||t.document&&t.document.documentElement||document.documentElement;if(!e||typeof e.setAttribute!="function")return;let n=t.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(n=s)}}catch{}let r=t.themeStorageKey;if(n==="auto"&&r&&typeof localStorage<"u")try{let s=localStorage.getItem(r);s&&(n=s)}catch{}let o=n==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():n;e.setAttribute("data-theme",o),t.globalTheme=n,t.themeRoot=e},$X=()=>{if(typeof document>"u")return null;try{let t=document.querySelector('meta[name="symbols-runtime"]'),e=t&&t.getAttribute("content");return typeof e=="string"&&e?e:null}catch{return null}},B3=t=>{let e=$X();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},NT=(t,e=Yo,n)=>{let r={...Yo,...MT(e,n)};return B3(r),NX(r),gp(t,r).then(s=>{if(Fd(s))return s.destroy=()=>Fi(s),s;if(MA(s,r),s.destroy=()=>Fi(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Bd(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},s.onCreate&&!s.__ref&&s.onCreate(s,s.state,s.context,r),s.context?.analyze?.activate)try{s.context.analyze.activate(s.context)}catch(i){console.error("[analyze] activate error:",i)}return s}).catch(s=>{throw console.error("[smbls] create error:",s),s})},FX=(t,e=Yo,n)=>{let r=NT(t,e,n),o={...Yo,...MT(e,n)},s=o.key;return s&&o.editor&&o.editor.async&&he("fetchOnCreate").then(i=>{i&&i.fetchAsync(r,s,{utils:$d,...o})}),r},BX=async(t,e=Yo,n)=>{let r={...Yo,...MT(e,n)};B3(r);let o=e.key;if(o&&r.editor){let i=await he("fetchOnCreate");i&&await i.fetchSync(o,r)}let s=await gp(t,r);return Fd(s)?(s.destroy=()=>Fi(s),s):(MA(s,r),s.destroy=()=>Fi(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Bd(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},r.onCreate&&await r.onCreate(s,s.state,s.context,r),s)},jX=(t={},e=Yo,n)=>NT({deps:{isUndefined:Xt},...t},bt({domqlOptions:{onlyResolveExtends:!0}},e),n);Mt();M();$h();var j3={"@symbo.ls/signal":gl,"@symbo.ls/scratch":W0,"@symbo.ls/element":Zm,"@symbo.ls/css":sm,"@symbo.ls/utils":Ra,"@symbo.ls/state":tE,"@symbo.ls/router":Ic,"@symbo.ls/polyglot":ET,"@symbo.ls/helmet":aT,"@symbo.ls/fetch":ga,"@symbo.ls/capsize":AT,"@symbo.ls/shorthand":bC,"@symbo.ls/analyze":Hd,"@symbo.ls/inspect":Kd,"@symbo.ls/channels":fT},U3=(t,e)=>{let n=t||(typeof globalThis<"u"?globalThis:{}),r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let o in j3)r[o]||(r[o]=j3[o]);if(e)for(let o in e)r[o]||(r[o]=e[o]);return r},V3=(t,e)=>{let n=t||(typeof globalThis<"u"?globalThis:null);if(!n||!e||typeof e!="object")return null;let r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let o in e){let s=e[o];if(typeof s!="function"||Object.prototype.hasOwnProperty.call(r,o))continue;let i=a=>(Object.defineProperty(r,o,{configurable:!0,enumerable:!0,writable:!0,value:a}),a);Object.defineProperty(r,o,{configurable:!0,enumerable:!0,get:()=>i(s()),set:i})}return r},z3=["@symbo.ls/sdk"],H3=(t,e)=>{let n=e||(typeof globalThis<"u"?globalThis:null);if(!n||!t||typeof t!="object")return null;let r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let o in t){let s=t[o];!s||typeof s!="object"&&typeof s!="function"||r[o]||(r[o]=s)}return r};var BT={};F(BT,{BUILD_DOMQL_SYSTEM_PROMPT:()=>r4,DEFAULT_MAX_TOKENS:()=>t_,DEFAULT_MODEL:()=>Zo,DEFAULT_PROVIDER:()=>Jb,DEFAULT_TEMPERATURE:()=>Qb,MODEL_TIER_ALIASES:()=>FT,PROVIDER_MODELS:()=>K3,SIMONE_BASE_URL:()=>mp,SIMONE_CHAT_PATH:()=>Gb,SIMONE_CODE_PATH:()=>Yb,SIMONE_CODE_SYMBOLS_PATH:()=>Xb,SIMONE_HEALTH_PATH:()=>Zb,SIMONE_TOOLS_PATH:()=>W3,WORKSPACE_SYSTEM_PROMPT:()=>n4,buildMessages:()=>Z3,chat:()=>yp,health:()=>X3,parseSimoneResponse:()=>t4,resolveModel:()=>o4,streamChat:()=>yp,streamCode:()=>G3,streamCodeSymbols:()=>Y3,toLegacyEnvelope:()=>e4});var mp="https://symbols-service-production.up.railway.app",Gb="/api/chat",Yb="/api/code",Xb="/api/code-symbols",Zb="/api/health",W3="/api/tools",Jb="openai-compatible",Zo="claude-sonnet-4-6",Qb=.7,t_=4096,K3={"openai-compatible":["claude-sonnet-4-6","claude-opus-4-6","gpt-4o","gpt-4o-mini","deepseek-chat"],anthropic:["claude-sonnet-4-6","claude-sonnet-4-5-20250929","claude-opus-4-1-20250805","claude-haiku-4-5-20251001"],openrouter:["google/gemini-3-pro-preview"],gemini:["gemini-3-pro-preview"]};function q3(t,e){return t?t.replace(/\/$/,"")+e:e}function UX(t){if(!t.startsWith("data: "))return null;let e=t.slice(6);if(e==="[DONE]")return{done:!0};try{return{chunk:JSON.parse(e)}}catch{return{raw:e}}}async function yp(t,e={},n){let{baseUrl:r=mp,path:o=Gb,provider:s=Jb,model:i=Zo,temperature:a=.7,maxTokens:c=4096,effort:l,apiKeys:f,signal:u,headers:d}=e;if(!Array.isArray(t)||t.length===0)throw new TypeError("simone: messages must be a non-empty array");let p={messages:t,provider:s,model:i,temperature:a,maxTokens:c};l&&(p.effort=l),f&&(p.apiKeys=f);let g=await fetch(q3(r,o),{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream",...d},body:JSON.stringify(p),signal:u});if(!g.ok){let C=g.statusText;try{let b=await g.text();try{let w=JSON.parse(b);C=w.error||w.detail||C}catch{C=b||C}}catch{}let _=new Error(`simone: HTTP ${g.status} \u2014 ${C}`);throw _.status=g.status,_}if(!g.body||typeof g.body.getReader!="function"){let C=await g.text();return n&&n(C),{text:C,errors:[]}}let h=g.body.getReader(),m=new TextDecoder,y=[],x=[],k="";try{for(;;){let{done:C,value:_}=await h.read();if(C)break;k+=m.decode(_,{stream:!0});let b=k.indexOf(`
169
- `);for(;b!==-1;){let w=k.slice(0,b).trim();if(k=k.slice(b+1),w){let S=UX(w);if(S?.done)return{text:y.join(""),errors:x};let A=S?.chunk;A?.delta&&(y.push(A.delta),n&&n(A.delta)),A?.error&&x.push(A.error)}b=k.indexOf(`
170
- `)}}return{text:y.join(""),errors:x}}finally{h.cancel().catch(()=>{})}}function G3(t,e={},n){return yp(t,{...e,path:Yb},n)}function Y3(t,e={},n){return yp(t,{...e,path:Xb},n)}async function X3(t={}){let{baseUrl:e=mp,signal:n,headers:r}=t,o=await fetch(q3(e,Zb),{method:"GET",headers:r,signal:n});if(!o.ok)throw new Error(`simone health: HTTP ${o.status}`);return o.json()}function Z3({system:t,history:e=[],user:n,context:r}){let o=[];t&&o.push({role:"system",content:t});for(let s of e)!s||!s.role||typeof s.content!="string"||!s.content||o.push({role:s.role,content:s.content});if(n){let s=n;if(r!=null){let i=typeof r=="string"?r:JSON.stringify(r,null,2);s=`${s}
166
+ `}return e.node.style=s,e.Span.node.innerText=n.focusKey,!1}}},EG={name:"inspect",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(kb):t.extends?t.extends=[t.extends,kb]:t.extends=[kb]}};var hC={};B(hC,{DefaultSyncApp:()=>hY,FORBIDDEN_SEGMENTS:()=>ep,Notifications:()=>Tb,SyncComponent:()=>pC,applyOpsToCtx:()=>np,connectToSocket:()=>Aj,deletePath:()=>MT,isSafePath:()=>vb,liveSyncTransport:()=>Ab,notificationsPlugin:()=>bY,onOps:()=>jT,onSnapshot:()=>BT,seedRawDesignSystem:()=>el,setPath:()=>NT,syncPlugin:()=>yY,wantsLiveSync:()=>Li});M();M();var ep=new Set(["__proto__","constructor","prototype"]),vb=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(ep.has(t[e]))return!1;return!0},MT=(t,e)=>{!t||!vb(e)||e.reduce((n,r,o,s)=>{if(n&&r in n){if(o!==s.length-1)return n[r];delete n[r]}},t)},NT=(t,e,n,r=!1)=>{!t||!vb(e)||e.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&r&&(o[s]={}),o[s];o[s]=n}},t)},np=(t,e)=>{let n=new Set;if(!Array.isArray(e))return n;for(let[r,o,s]of e)if(!(!Array.isArray(o)||!o.length))switch(n.add(o[0]),r){case"delete":MT(t,o);break;case"update":case"set":NT(t,o,s,!0);break;default:break}return n},RB=(t,e)=>{if(!e||typeof e!="object"||Array.isArray(e))return null;let n=t&&(t.__raw||t)||{},r=null;for(let o of Object.keys(e))ep.has(o)||Object.prototype.hasOwnProperty.call(n,o)||(r||(r={}),r[o]=e[o]);return r},vG=()=>typeof R<"u"&&!!R&&!!R.__SYMBOLS_ENV__,AG=()=>{try{if(R.self!==R.top)return!0}catch{return!0}try{return new URLSearchParams(R.location.search).has("liveSync")}catch{return!1}},OB=Object.freeze({mode:null,baseUrl:null}),Ab=t=>{let e=t&&t.editor&&t.editor.socketUrl||t&&t.settings&&t.settings.socketUrl;return typeof e=="string"&&e?vG()&&!AG()?OB:{mode:"collab",baseUrl:e}:t&&t.editor&&t.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:OB},Li=t=>Ab(t).mode!==null,el=(t,e)=>{!t||!e||typeof e!="object"||(t.__rawDesignSystem=JSON.parse(JSON.stringify(e)))},PB=(t,e,n,r="designSystem")=>{for(let o in e){if(ep.has(o))continue;let s=`${r}/${o}`;if(n.has(s))continue;let i=e[o],a=t[o];if(i&&typeof i=="object"&&!Array.isArray(i)){if(!a||typeof a!="object"||Array.isArray(a)){if(o in t)continue;t[o]={}}PB(t[o],i,n,s)}else o in t||(t[o]=Array.isArray(i)?JSON.parse(JSON.stringify(i)):i)}},$T=(t,e)=>{if(!t||!t.__rawDesignSystem)return null;if(Array.isArray(e)&&e.length){let o={designSystem:t.__rawDesignSystem};np(o,e)}let n=JSON.parse(JSON.stringify(t.__rawDesignSystem)),r=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[];return zf(n,r,PB)},FT=t=>{!t||!t.polyglot||!Array.isArray(t.sharedLibraries)||Hf(t.polyglot,t.sharedLibraries)};M();var BT=(t,e,n)=>{let r=!1;return(o={})=>{let{data:s}=o,{schema:i}=o;s&&(s=t.call("deepDestringifyFunctions",s,Array.isArray(s)?[]:{}),Object.entries(s).forEach(([a,c])=>{if(n[a]&&typeof n[a]=="object")if(a==="designSystem"){if(el(n,c),r){let l=$T(n);l&&mr(l)}}else ms(n[a],c);else n[a]=c}),"polyglot"in s&&FT(n),r=!0,i&&(n.schema=i))}},jT=(t,e,n)=>(r={})=>{let{changes:o}=r;if(!o||!Array.isArray(o)||!o.length)return;o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=o.filter(c=>Array.isArray(c)&&Array.isArray(c[1])&&c[1][0]==="designSystem"),i=s.length?o.filter(c=>!s.includes(c)):o,a=np(n,i);if(s.length&&a.add("designSystem"),a.has("polyglot")&&FT(n),a.has("designSystem")){let c=$T(n,s);c?mr(c):n.__warnedNoRawDesignSystem||(n.__warnedNoRawDesignSystem=!0,console.warn("[sync] design-system op ignored: no raw design system was seeded on this client. Re-initing from the processed config would corrupt every token, so the update is skipped \u2014 reload to pick it up. Seed it at boot with seedRawDesignSystem(ctx, ds)."))}if(a.has("state")){let c=RB(e,n.state);if(c){let l=typeof e.$update=="function"?e.$update:e.update;typeof l=="function"&&l.call(e,c)}}if(["pages","components","snippets","functions","assets"].some(c=>a.has(c))){let{pathname:c,search:l,hash:f}=n.window.location;t.call("router",c+l+f,t.__ref.root,{},{scrollToTop:!1,force:!0})}};var TG={success:"green",error:"red",warning:"yellow"},LB=(t,e,n)=>{if(t.symbols){if(!n.connected){n.notifications.connected={title:"Connected",message:"to the Symbols live server"},n.update({connected:!0});let r=setTimeout(()=>{delete n.notifications.connected,e.notifications.content.connected.update({animation:"fadeOutDown"}),n.update({connected:!0}),clearTimeout(r)},3e3)}}else if(n.connected){n.notifications.connected={title:"Disconnected",type:"error"},n.update({connected:!1});let r=setTimeout(()=>{delete n.notifications.connected,e.notifications.content.connected&&e.notifications.content.connected.update({animation:"fadeOutDown"}),n.update({connected:!0}),clearTimeout(r)},3e3)}},Tb={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:TG[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,n,r)=>{n.update({animation:"fadeInUp"})},onClick:(e,n,r)=>{delete r.notifications[n.key],n.update({animation:"fadeOutDown"}),r.onClose&&r.onClose(e,n,r)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var cY=!1,lY=()=>cY?"http://localhost:8080":"https://api.symbols.app",dC=null,fY=()=>(dC||(dC=Promise.resolve().then(()=>(Ej(),kj)).then(t=>{let e=t&&(t.io||t.default);if(typeof e!="function")throw new TypeError("socket.io-client exports no io()");return e}).catch(t=>(console.warn("[sync] socket.io-client failed to load \u2014 live sync disabled",t),null))),dC),uY=async t=>{try{let e=t||lY(),n=await R.fetch(`${e}/service-token`,{method:"GET"}),r;try{let o=await n.clone().json();if(o&&typeof o.token=="string")return o.token.trim();r=await n.text()}catch{r=await n.text()}return(r||"").replace(/\s+/gu,"")||void 0}catch(e){console.warn("[sync] Failed to fetch service-token",e)}},vj=(t,e,n,r)=>{t.on("snapshot",BT(e,n,r)),t.on("ops",jT(e,n,r)),t.on("clients",o=>{r.editor?.verbose&&LB(o,e,n)}),t.on("disconnect",o=>{r.editor?.verbose&&console.info("[sync] disconnected",o)})},dY=async(t,e,n,r,o)=>{let s=await uY(r);if(!s)return console.warn("[sync] no service token \u2014 collab disabled"),null;let i=n.key;if(!i)return console.warn("[sync] ctx.key missing \u2014 collab cannot authenticate"),null;let a=n.editor?.projectId||null,c=await o;if(!c)return null;let l=c(r,{path:"/collab-socket",transports:["websocket"],auth:{token:s,projectId:a,projectKey:i,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return l.on("connect",()=>{n.editor?.verbose&&console.info("[sync] connected (collab)")}),vj(l,t,e,n),l},pY=async(t,e,n,r)=>{let o=await r;if(!o)return null;let s=o({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return s.on("connect",()=>{n.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),vj(s,t,e,n),s.on("reload",()=>{typeof R<"u"&&R.location&&R.location.reload()}),s},Aj=async(t,e,n)=>{let{mode:r,baseUrl:o}=Ab(n);if(!r)return null;let s=fY();return r==="collab"?dY(t,e,n,o,s):r==="runner"?pY(t,e,n,s):null},pC={onInit:Aj},hY={extends:[pC,Tb]},Tj=t=>typeof t>"u",gY=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),mY=t=>t?.editor?.runtime==="runner",Cj=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},yY={name:"sync",beforeCreate(t,e){let n=e&&e.editor;(n&&!Tj(n.liveSync)?n.liveSync:Li(e))&&(gY(e)&&!mY(e)&&!e?.key||Cj(t,pC))}},bY={name:"notifications",beforeCreate(t,e){if(!e)return;let n=Tj(e.notifications)?null:e.notifications,r=e.editor&&e.editor.verbose===!0;(n===!0||n!==!1&&r)&&Cj(t,Tb)}};Kh();var mC={};B(mC,{fetchAsync:()=>kY,fetchSync:()=>xY});M();var Oj=R&&R.location&&typeof R.location.host=="string"?R.location.host:null,gC=Oj!==null?Oj.includes("dev."):lo(),Rj=gC?"http://localhost:8080/get":"https://api.symbols.app/get",_Y={endpoint:Rj},Pj=async(t,e=_Y)=>{let n=e.endpoint||Rj,r=e.serviceRoute?I(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",o;try{return o=await globalThis.fetch(n+"/?"+r,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await o.json()}catch(s){if(L(e.onError))return e.onError(s);console.error(s)}},wY=async(t,e)=>{let{editor:n}=e;if(n&&n.remote){let r=await Pj(t,n),o=gC||e.isDevelopment?we(r):we(r.releases[0]);n.serviceRoute?I(n.serviceRoute)?n.serviceRoute.forEach(s=>{ae(e[s],o[s.toLowerCase()])}):ae(e[n.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{ae(e[s],o[s.toLowerCase()])})}return e},SY=async(t,e,n)=>{let{editor:r}=e;if(r&&r.remote){let o=await Pj(t,r),s=gC||e.isDevelopment?we(o):we(o.releases[0]);n(s)}},xY=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await wY(t,e)}catch(n){console.error(n)}},kY=(t,e,n,r)=>{if(e&&n.editor)try{n.editor.async&&SY(e,n,r||(o=>{let s=o.designSystem;k(s)&&n.utils.init(s),k(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};var EY={windows:()=>Promise.resolve(QA),dropdown:()=>Promise.resolve(cT),tooltip:()=>Promise.resolve(hT),analyze:()=>Promise.resolve(Jd),shorthand:()=>Promise.resolve(DT),inspect:()=>Promise.resolve(tp),sync:()=>globalThis.__SMBLS_BUILD_DROP_F_liveSync__?Promise.resolve(zt("liveSync")):Promise.resolve(hC),fetch:()=>Promise.resolve(Sa),fetchOnCreate:()=>Promise.resolve(mC)},Xe=(t,e)=>Array.isArray(t.plugins)&&t.plugins.some(n=>n&&n.name===e),Lj=t=>{let e=[];return t.shorthand&&e.push("shorthand"),t.analyze&&!Xe(t,"analyze")&&e.push("analyze"),t.inspect&&!Xe(t,"inspect")&&e.push("inspect"),t.fetch&&e.push("fetch"),t.windows!==!1&&e.push("windows"),t.dropdown!==!1&&e.push("dropdown"),t.tooltip!==!1&&e.push("tooltip"),e},pp={},Dj={},me=t=>{if(pp[t])return pp[t];let e=EY[t];return e?(pp[t]=e().then(n=>(Dj[t]=n,n),n=>(delete pp[t],console.error(`[smbls] the ${t} module failed to load; the app runs without it`,n),null)),pp[t]):Promise.resolve(null)},ll=t=>Dj[t]||null;var Vi=t=>{if(!t||t.__destroyed)return!1;let e=t.context;if(!e)return t.__destroyed=!0,!1;if(Array.isArray(e.__teardowns)){for(let n of e.__teardowns)try{n()}catch(r){console.error("[smbls] destroy teardown error:",r)}e.__teardowns.length=0}try{yn(t)}catch(n){console.error("[smbls] dispose error:",n)}if(e.fetch&&e.fetch.__resolved&&delete e.fetch.__resolved,e.fetch&&e.fetch.__resolving&&delete e.fetch.__resolving,e.db&&e.db.__resolved&&delete e.db.__resolved,e.db&&e.db.__resolving&&delete e.db.__resolving,e.analyze?.destroy)try{e.analyze.destroy()}catch(n){console.error("[analyze] destroy error:",n)}return t.__destroyed=!0,!0};var xC={};B(xC,{Helmet:()=>e3,applyElementMetadata:()=>Gb,applyMetadata:()=>OY,default:()=>KY,extractMetadata:()=>TY,generateHeadHtml:()=>WY,helmetPlugin:()=>Yb,resolveMetadata:()=>hp});M();Mt();var kn={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"}},ro=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){let e=`${t.tag}[${t.attr}="${t.key}"]`;return t.key==="theme-color"?`${e}:not([data-smbls-theme-color])`:e}},Ij=t=>we({v:t}).v,Mj=(t,e,n,r)=>{try{return St(t,e,n)}catch(o){console.warn(`[helmet] metadata factory for "${r}" threw; treating as unset:`,o&&o.message||o);return}},Hb=Object.freeze({authored:!0}),hp=(t,e,n,r)=>{if(!t)return{};let o=t;v(o)&&ie(o)&&(o=Ij(o));let s=L(o),i=!s&&r?.authored===!0,a=s?Mj(o,e,n,"metadata"):k(o)?{...o}:{};if(!k(a))return{};for(let c in a){let l=a[c],f=i&&v(l)&&!ie(l);v(l)&&ie(l)&&(l=Ij(l)),L(l)?l=Mj(l,e,n,c):v(l)&&ie(l)&&(l=void 0),v(l)&&l.includes("{{")&&e?.call&&(l=f?e.call("replaceLiteralsWithObjectFields",l,n,Hb):e.call("replaceLiteralsWithObjectFields",l,n)),a[c]=l}return a},vY=t=>!!t&&typeof t=="object"&&(t.notFound===!0||t.metadata?.notFound===!0),AY=(t,e)=>{if(Object.prototype.hasOwnProperty.call(t,e))return t[e];if(t["/*"])return t["/*"];if(t["*"])return t["*"];for(let n in t)if(vY(t[n]))return t[n]},TY=(t,e="/",n,r,o)=>{let s=t.pages||{},i=AY(s,e),a={};if(t.integrations?.seo&&(a={...t.integrations.seo}),t.app?.metadata){let f=hp(t.app.metadata,n,r,Hb);a={...a,...f}}let c=new Set;if(i){let f=i.metadata||i.helmet||{},u=o?hp(f,o,o.state,Hb):hp(f,n,r,Hb);for(let d in u)c.add(d);a={...a,...u},!a.title&&i.state?.title&&(a.title=i.state.title,c.add("title")),!a.description&&i.state?.description&&(a.description=i.state.description,c.add("description"))}a.title||(a.title=t.name||"Symbols"),a.title&&(c.has("title")||!a["og:title"])&&(c.has("og:title")||(a["og:title"]=a.title)),a.description&&(c.has("description")||!a["og:description"])&&(c.has("og:description")||(a["og:description"]=a.description)),a.title&&!a["twitter:title"]&&(a["twitter:title"]=a.title),a.description&&!a["twitter:description"]&&(a["twitter:description"]=a.description);let l=c.has("og:url")?a["og:url"]:c.has("url")?a.url:void 0;if(l)a["og:url"]=l;else if(a["og:url"]||a.url){let f=(a["og:url"]||a.url||"").replace(/\/$/,"");if(f&&e&&e!=="/"){let u=e.startsWith("/")?e:"/"+e;a["og:url"]=f+u}}return Ds(a,Rs(t.files,t.sharedLibraries))},Uj=(t,e)=>Ds(hp(t,e,e.state),e.context?.files),Vj=t=>t.context?.document||typeof document<"u"&&document,zj=t=>Object.prototype.hasOwnProperty.call(kn,t),Kb=new Map;for(let t in kn){let e=ro(kn[t]);Kb.has(e)||Kb.set(e,kn[t])}var qb=t=>t.head||t.querySelector("head"),_C=(t,e)=>{let n=qb(t);return n?n.querySelector(e):null},yC=(t,e)=>e.tag==="title"?t.textContent:t.getAttribute(e.valueAttr||"content"),wC=(t,e,n)=>{e.tag==="title"?t.textContent=n:t.setAttribute(e.valueAttr||"content",n)},SC=(t,e)=>{let n=qb(e);if(!n)return null;let r=e.createElement(t.tag);return t.attr&&r.setAttribute(t.attr,t.key),n.appendChild(r),r},zi=(t,e,n,r)=>{let o=t.head||t.querySelector("head");if(!o)return;let s=new Map;for(let a of o.querySelectorAll(`[${e}]`))s.set(a.getAttribute(e),a);let i=new Map;n.forEach((a,c)=>{i.has(a)||i.set(a,c)});for(let[a,c]of s)i.has(a)||c.remove();for(let a of n){if(s.has(a))continue;let c=r(a,i.get(a));c&&(c.setAttribute(e,a),o.appendChild(c))}},Hj=(t,e)=>{let r=(e||[]).filter(s=>s!=null).map(s=>v(s)?s:JSON.stringify(s)),o=r.map(Ln);zi(t,"data-smbls-jsonld",o,(s,i)=>{let a=t.createElement("script");return a.setAttribute("type","application/ld+json"),a.textContent=r[i],a})},Wj=(t,e)=>{let n=(e||[]).filter(o=>o!=null&&String(o).trim()),r=n.map(Ln);zi(t,"data-smbls-style",r,(o,s)=>{let i=t.createElement("style");return i.textContent=String(n[s]),i})},Kj=t=>(t||[]).filter(e=>e&&(v(e)?e.trim():e.src)),qj=t=>v(t)?t:String(t.src),Gj=(t,e)=>{let n=t.createElement("script");return v(e)?n.setAttribute("src",e):(e.src&&n.setAttribute("src",e.src),e.type&&n.setAttribute("type",e.type),e.async&&(n.async=!0),e.defer&&(n.defer=!0),e.integrity&&n.setAttribute("integrity",e.integrity),e.crossorigin&&n.setAttribute("crossorigin",e.crossorigin),e.referrerpolicy&&n.setAttribute("referrerpolicy",e.referrerpolicy),e.nomodule&&(n.noModule=!0),e.body&&(n.textContent=String(e.body))),n},CY=(t,e)=>{let n=Kj(e),r=n.map(qj);zi(t,"data-smbls-script",r,(o,s)=>Gj(t,n[s]))},Yj=(t,e)=>{let n=(e||[]).filter(o=>k(o)),r=n.map(Ps);zi(t,"data-smbls-alternate",r,(o,s)=>{let i=t.createElement("link");i.setAttribute("rel","alternate");for(let[a,c]of Object.entries(n[s]))i.setAttribute(a,c);return i})},Xj=(t,e)=>{let n=(e||[]).filter(o=>o!=null),r=n.map(xo);zi(t,"data-smbls-favicon",r,(o,s)=>{let i=n[s],a=t.createElement("link");if(a.setAttribute("rel","icon"),k(i))for(let[c,l]of Object.entries(i))a.setAttribute(c,l);else a.setAttribute("href",String(i));return a})},Zj=(t,e)=>{let n=e?String(e):"",r=n.endsWith(".svg")?"image/svg+xml":n.endsWith(".png")?"image/png":"";zi(t,"data-smbls-single-icon",n?[n]:[],o=>{let s=t.createElement("link");return s.setAttribute("rel","icon"),s.setAttribute("href",o),r&&s.setAttribute("type",r),s})},Jj=(t,e)=>{let n=(e||[]).filter(o=>k(o)),r=n.map(Ls);zi(t,"data-smbls-theme-color",r,(o,s)=>{let i=n[s],a=t.createElement("meta");return a.setAttribute("name","theme-color"),i.content!==void 0&&a.setAttribute("content",i.content),i.media!==void 0&&a.setAttribute("media",i.media),a})},OY=(t,e)=>{if(!(!k(t)||!e)){for(let n in t){let r=t[n];if(r==null||!zj(n)||n==="theme-color"&&Array.isArray(r))continue;let o=kn[n],s=_C(e,ro(o))||SC(o,e);s&&wC(s,o,r)}Array.isArray(t.jsonLd)&&Hj(e,t.jsonLd),Array.isArray(t.styles)&&Wj(e,t.styles),Array.isArray(t.scripts)&&CY(e,t.scripts),Array.isArray(t.alternate)&&Yj(e,t.alternate),Array.isArray(t.favicons)&&Xj(e,t.favicons),(t.icon||t.favicon)&&Zj(e,t.icon||t.favicon),Array.isArray(t["theme-color"])&&Jj(e,t["theme-color"])}},Nj=new WeakMap,bC=new WeakMap,Qj=t=>{let e=t.location;return e&&v(e.pathname)?e.pathname:null},RY=t=>{let e=Nj.get(t);return e||(e={doc:t,layers:[],servedPath:Qj(t),originals:new Map,owned:new Set,lists:new Set},Nj.set(t,e)),e},PY=(t,e)=>{for(let n=e.parent;n&&n!==n.parent;n=n.parent)if(n===t)return!0;return!1},$j=t=>{try{return JSON.stringify(t===void 0?null:t)??null}catch{return null}},LY=t=>{if(!k(t))return!0;for(let e in t)if(t[e]!==void 0&&t[e]!==null)return!1;return!0},DY=(t,e)=>{let n=bC.get(t);if(n)return n;let r=RY(e),o={element:t,values:null,signature:$j(null),disposed:!1,set(i){if(o.disposed)return;let a=$j(i);o.values=i,!(a!==null&&a===o.signature)&&(o.signature=a,Bj(r))},dispose(){if(o.disposed)return;o.disposed=!0;let i=r.layers.indexOf(o);if(i!==-1&&r.layers.splice(i,1),!LY(o.values))try{Bj(r)}catch(a){console.warn("[helmet] could not re-render the head after an element left:",a&&a.message||a)}}},s=r.layers.length;for(let i=0;i<r.layers.length;i++)if(PY(t,r.layers[i].element)){s=i;break}return r.layers.splice(s,0,o),bC.set(t,o),o},t3=(t,e,n,r)=>{let o=DY(t,e),s=Y(()=>{let a=n();o.set(a),r&&r(a)}),i=t.__ref?.__effects;i&&i.push(s,o)},IY=ro(kn.title),MY=ro(kn.description),NY=ro(kn["og:title"]),$Y=ro(kn["og:description"]),FY=ro(kn["twitter:title"]),BY=ro(kn["twitter:description"]),Fj=(t,e,n,r)=>{let o=t.get(e);if(!o||!o.value)return;let s=t.get(n);(!s||!s.value||s.rank<o.rank)&&t.set(n,o);let i=t.get(r);(!i||!i.value)&&t.set(r,o)},Wb={jsonLd:Hj,styles:Wj,alternate:Yj,favicons:Xj,icon:Zj,"theme-color":Jj},jY=Object.keys(Wb).filter(t=>t!=="icon"),UY=t=>{let e=new Map,n={},r=[];for(let o=0;o<t.length;o++){let s=t[o].values;if(!k(s))continue;for(let a in s){let c=s[a];c==null||!zj(a)||a==="theme-color"&&Array.isArray(c)||e.set(ro(kn[a]),{value:String(c),rank:o})}for(let a of jY)Array.isArray(s[a])&&(n[a]=s[a]);let i=s.icon||s.favicon;i&&(n.icon=i),Array.isArray(s.scripts)&&r.push(...s.scripts)}return Fj(e,IY,NY,FY),Fj(e,MY,$Y,BY),{tags:e,lists:n,scripts:r}},VY=(t,e,n)=>{let{doc:r,originals:o}=t,s=Kb.get(e),i=_C(r,e),a=o.get(e);a||(a={value:i?yC(i,s):null,rendered:!1},o.set(e,a)),a.value===n&&(a.rendered=!0),i||(i=SC(s,r)),i&&(yC(i,s)!==n&&wC(i,s,n),t.owned.add(e))},zY=(t,e)=>{let{doc:n}=t;t.owned.delete(e);let r=Kb.get(e),o=_C(n,e),s=t.originals.get(e);if(s&&s.value!==null&&!s.rendered&&Qj(n)===t.servedPath){let a=o||SC(r,n);a&&yC(a,r)!==s.value&&wC(a,r,s.value)}else o&&o.remove()},HY=(t,e)=>{let n=Kj(e);if(!n.length)return;let r=qb(t),o=new Set;for(let s of r.querySelectorAll("[data-smbls-script]"))o.add(s.getAttribute("data-smbls-script"));for(let s of n){let i=qj(s);if(o.has(i))continue;let a=Gj(t,s);a.setAttribute("data-smbls-script",i),r.appendChild(a),o.add(i)}},Bj=t=>{let{doc:e}=t;if(!qb(e))return;let{tags:n,lists:r,scripts:o}=UY(t.layers);for(let s of[...t.owned])n.has(s)||zY(t,s);for(let[s,{value:i}]of n)VY(t,s,i);for(let s in Wb)r[s]!==void 0?(Wb[s](e,r[s]),t.lists.add(s)):t.lists.delete(s)&&Wb[s](e,null);HY(e,o)},WY=t=>{let e=['<meta charset="UTF-8">'],n=new Set(["charset","jsonLd","styles","scripts"]),r=!1;for(let[o,s]of Object.entries(t)){if(!s&&s!==0&&s!==!1||n.has(o)||typeof s=="function")continue;if(o==="title"){e.push(`<title>${V(s)}</title>`);continue}if(o==="viewport"){r||(e.push(`<meta name="viewport" content="${V(s)}">`),r=!0);continue}if(o==="canonical"){e.push(`<link rel="canonical" href="${V(s)}">`);continue}if(o==="icon"||o==="favicon"){let f=V(s),u=f.endsWith(".svg")?' type="image/svg+xml"':f.endsWith(".png")?' type="image/png"':"";e.push(`<link rel="icon" href="${f}"${u} data-smbls-single-icon="${f}">`);continue}if(o==="favicons"&&Array.isArray(s)){s.forEach(f=>{if(k(f)){let u=Object.entries(f).map(([d,p])=>`${d}="${V(p)}"`).join(" ");e.push(`<link rel="icon" ${u} data-smbls-favicon="${V(xo(f))}">`)}else typeof f=="string"&&e.push(`<link rel="icon" href="${V(f)}" data-smbls-favicon="${V(xo(f))}">`)});continue}if(o==="alternate"&&Array.isArray(s)){s.forEach(f=>{if(k(f)){let u=Object.entries(f).map(([d,p])=>`${d}="${V(p)}"`).join(" ");e.push(`<link rel="alternate" ${u} data-smbls-alternate="${V(Ps(f))}">`)}});continue}if(o==="theme-color"&&Array.isArray(s)){s.forEach(f=>{if(!k(f))return;let u=['name="theme-color"'];f.content!==void 0&&u.push(`content="${V(f.content)}"`),f.media!==void 0&&u.push(`media="${V(f.media)}"`),u.push(`data-smbls-theme-color="${V(Ls(f))}"`),e.push(`<meta ${u.join(" ")}>`)});continue}let i=["og:","article:","product:","fb:","profile:","book:","business:","music:","video:"],a=["twitter:","DC:","DCTERMS:"],c=i.some(f=>o.startsWith(f)),l=a.some(f=>o.startsWith(f));if(o.startsWith("http-equiv:")){let f=o.replace("http-equiv:","");e.push(`<meta http-equiv="${V(f)}" content="${V(s)}">`)}else if(o.startsWith("itemprop:")){let f=o.replace("itemprop:","");e.push(`<meta itemprop="${V(f)}" content="${V(s)}">`)}else c?Array.isArray(s)?s.forEach(f=>e.push(`<meta property="${V(o)}" content="${V(f)}">`)):e.push(`<meta property="${V(o)}" content="${V(s)}">`):l?e.push(`<meta name="${V(o)}" content="${V(s)}">`):Array.isArray(s)?s.forEach(f=>e.push(`<meta name="${V(o)}" content="${V(f)}">`)):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&e.push(`<meta name="${V(o)}" content="${V(s)}">`)}return r||e.splice(1,0,'<meta name="viewport" content="width=device-width, initial-scale=1">'),e.push(...Ia(t)),e.join(`
167
+ `)},e3={define:{metadata:(t,e)=>{Gb(t,e,n=>{let r=e.state?.root;k(r)&&(r.$helmet=n)})}}},Gb=(t,e,n)=>{let r=Vj(e);r&&t3(e,r,()=>Uj(t,e),n)},jj=t=>{let e=t.metadata;return e?Uj(e,t):null},Yb={name:"helmet",create(t){if(!t.metadata)return;let e=Vj(t);e&&t3(t,e,()=>jj(t))},update(t){let e=bC.get(t);if(!e)return Yb.create(t);e.disposed||e.set(jj(t))}},KY=e3;var n3=(t,e,n,r)=>{if(!t||!r?.fetch)return;let o=ll("fetch");if(o){o.executeFetch(t,e,n,r);return}me("fetch").then(s=>{s&&s.executeFetch(t,e,n,r)})},r3=(t,e)=>{t&&Gb(t,e)},o3=async(t,e)=>{if(!t)return;let n={tag:"fragment",...t},r=async()=>{await e.set(n,{preventDefineUpdate:"$router"})};return e.lazyLoad?window.requestAnimationFrame(r):await r(),n},Hi={routes:t=>t,metadata:r3,fetch:n3,$router:o3},s3=(t={})=>{let e={routes:n=>n};return t.metadata!==!1&&(e.metadata=r3),t.fetch!==!1&&(e.fetch=n3),t.router!==!1&&(e.$router=o3),e};var kC={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},Zb={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},EC={...kC,router:Zb},Xb={state:{},pages:{},components:{},router:Zb,define:Hi},i3=t=>{let e={...Xb,...t};for(let n of Object.keys(Xb)){let r=Xb[n];e[n]===r&&r&&typeof r=="object"&&(e[n]={...r})}return e},fl=Xb;M();M();var a3=(t,e)=>z(t.extends)?t.extends:[];M();var c3=(t,e)=>{let n=e||(typeof globalThis<"u"?globalThis:null);if(!n||!Array.isArray(t))return null;let r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let[o,s]of Pa(t,La))r[o]||(r[o]=s);return r};var vC={};B(vC,{apiUrl:()=>Jb,channelByApiUrl:()=>d3,channelNames:()=>GY,channels:()=>Ie,currentChannel:()=>ns,defaultChannel:()=>rX,deployTarget:()=>tX,isKnownChannel:()=>nX,mermaidUrl:()=>QY,normalizeOwnerSegment:()=>oX,normalizeProjectKey:()=>iX,normalizeProjectSlug:()=>sX,parseSymboLsHost:()=>aX,previewProjectUrl:()=>JY,previewUrl:()=>p3,resolveChannel:()=>Ki,screenshotCdnHost:()=>h3,screenshotCdnUrl:()=>eX,setChannel:()=>YY,shellUrl:()=>ZY,socketUrl:()=>XY});var Ie={channels:{local:{api:"http://localhost:8080",socket:"http://localhost:8080",shell:"http://my.localhost:1355",preview:"http://preview.localhost:1355",mermaidApex:"localhost:1355",deploy:{}},development:{api:"https://dev.api.symbols.app",socket:"https://dev.api.symbols.app",shell:"https://dev.my.symbols.app",preview:"https://dev.preview.symbols.app",mermaidApex:"dev.symbo.ls",deploy:{shellBucket:"smbls-my-dev",previewWorker:"smbls-preview-dev",mermaidWorker:"mermaid-dev"}},"demo-dev":{api:"https://dev.api.symbols.app",socket:"https://dev.api.symbols.app",shell:"https://dev.demo.symbols.app",preview:"https://dev.preview.symbols.app",mermaidApex:"dev.symbo.ls",deploy:{shellBucket:"smbls-my-demo-dev",previewWorker:"smbls-preview-dev",mermaidWorker:"mermaid-dev"}},next:{api:"https://next.api.symbols.app",socket:"https://next.api.symbols.app",shell:"https://next.my.symbols.app",preview:"https://next.preview.symbols.app",mermaidApex:"next.symbo.ls",deploy:{shellBucket:"smbls-my-next",previewWorker:"smbls-preview-next",mermaidWorker:"mermaid-next"}},test:{api:"https://test.api.symbols.app",socket:"https://test.api.symbols.app",shell:"https://test.my.symbols.app",preview:"https://test.preview.symbols.app",mermaidApex:"test.symbo.ls",deploy:{shellBucket:"smbls-my-test",previewWorker:"smbls-preview-test",mermaidWorker:"mermaid-test"}},upcoming:{api:"https://upcoming.api.symbols.app",socket:"https://upcoming.api.symbols.app",shell:"https://upcoming.my.symbols.app",preview:"https://upcoming.preview.symbols.app",mermaidApex:"upcoming.symbo.ls",deploy:{shellBucket:"smbls-my-upcoming",previewWorker:"smbls-preview-upcoming",mermaidWorker:"mermaid-upcoming"}},staging:{api:"https://staging.api.symbols.app",socket:"https://staging.api.symbols.app",shell:"https://staging.my.symbols.app",preview:"https://staging.preview.symbols.app",mermaidApex:"staging.symbo.ls",deploy:{shellBucket:"smbls-my-staging",previewWorker:"smbls-preview-staging",mermaidWorker:"mermaid-staging"}},demo:{api:"https://api.symbols.app",socket:"https://api.symbols.app",shell:"https://demo.symbols.app",preview:"https://preview.symbols.app",mermaidApex:"at.symbo.ls",deploy:{shellBucket:"smbls-my-demo",previewWorker:"smbls-preview",mermaidWorker:"mermaid"}},production:{api:"https://api.symbols.app",socket:"https://api.symbols.app",shell:"https://my.symbols.app",preview:"https://preview.symbols.app",mermaidApex:"at.symbo.ls",deploy:{shellBucket:"smbls-my-prod",previewWorker:"smbls-preview",mermaidWorker:"mermaid"}}},defaultChannel:"production",screenshotCdn:"screenshots.api.symbols.app"};var GY=Object.keys(Ie.channels),zn=t=>!!(t&&Ie.channels[t]),Ki=t=>zn(t)?Ie.channels[t]:Ie.channels[Ie.defaultChannel],YY=t=>{typeof globalThis>"u"||(globalThis.__SYMBOLS_CHANNEL__=zn(t)?t:null,ul=void 0)},ul,Wi=t=>typeof process<"u"&&process.env&&process.env[t]||null,ns=()=>{if(ul!==void 0)return ul;let t=typeof globalThis<"u"?globalThis.__SYMBOLS_CHANNEL__:null,e=Wi("SYMBOLS_CHANNEL"),n=Wi("NODE_ENV"),r=Wi("SYMBOLS_API_URL")||Wi("SYMBOLS_API_BASE_URL"),o=r?d3(String(r).trim().replace(/\/+$/,"")):null;return ul=zn(t)&&t||zn(e)&&e||zn(o)&&o||zn(n)&&n||Ie.defaultChannel,ul===Ie.defaultChannel&&!zn(t)&&!zn(e)&&!zn(o)&&!zn(n)&&typeof process<"u"&&process.versions&&process.versions.node&&console.warn(`[channels] no channel configured (NODE_ENV=${n||"unset"}, __SYMBOLS_CHANNEL__ unset) \u2014 falling back to "${Ie.defaultChannel}". Outbound URLs (shellUrl${r?"":"/apiUrl"}) will target production`+(r?` (the API follows ${r}, which is no known channel)`:"")+"; set SYMBOLS_CHANNEL (preferred), NODE_ENV, or globalThis.__SYMBOLS_CHANNEL__ to a known channel."),ul},l3=["production","staging","upcoming","next","test","development","local","demo","demo-dev"],f3=t=>{let e=l3.indexOf(t);return e===-1?l3.length:e},d3=t=>{if(!t)return null;let e=Object.keys(Ie.channels).filter(n=>Ie.channels[n].api===t);return e.length===0?null:e.length===1?e[0]:e.sort((n,r)=>f3(n)-f3(r))[0]},Jb=(t=ns())=>Wi("SYMBOLS_API_URL")||Ki(t).api,XY=(t=ns())=>Wi("SYMBOLS_SOCKET_URL")||Ki(t).socket,ZY=(t=ns())=>Ki(t).shell||null,p3=(t=ns())=>Ki(t).preview||null,JY=({owner:t,key:e,env:n="production"}={},r=ns())=>{let o=p3(r);if(!o||!t||!e)return null;let s=o.match(/^(https?:\/\/)(.+)$/);if(!s)return null;let[,i,a]=s,c=`${encodeURIComponent(t)}--${encodeURIComponent(e)}`,l=`${i}${c}.${a}/`;return!n||n==="production"||n==="prod"?l:`${l}?env=${encodeURIComponent(n)}`},QY=({owner:t,key:e,env:n="production"}={},r=ns())=>{let o=Ki(r).mermaidApex;if(!o||!t||!e)return null;let i=!n||n==="production"||n==="prod"?"":`--${encodeURIComponent(n)}`,a=`${encodeURIComponent(t)}--${encodeURIComponent(e)}${i}`;return`${o.startsWith("localhost")?"http":"https"}://${a}.${o}`},tX=(t=ns())=>Ki(t).deploy||{},h3=()=>Wi("SYMBOLS_SCREENSHOT_CDN")||Ie.screenshotCdn,eX=({owner:t,key:e,page:n="root",componentKey:r,env:o="production",width:s}={})=>{if(!t||!e)return null;let i=r?`component/${encodeURIComponent(r)}`:encodeURIComponent(String(n||"root").replace(/^\/+/,"").replace(/\//g,"-")||"root"),a=[];o&&o!=="production"&&a.push(`env=${encodeURIComponent(o)}`),s&&a.push(`w=${Number(s)}`);let c=a.length?`?${a.join("&")}`:"";return`https://${h3()}/${encodeURIComponent(t)}/${encodeURIComponent(e)}/${i}.webp${c}`},nX=zn,rX=Ie.defaultChannel,oX=t=>t==null||typeof t!="string"?"":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"",sX=t=>t==null||typeof t!="string"?"":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,48)||"",iX=(t,e={})=>{let n=String(t||"").trim();if(!n)return"";/\.symbo\.ls$/iu.test(n)&&(n=n.replace(/\.symbo\.ls$/iu,"")),n.includes("/")&&(n=n.split("/").pop());let r=typeof e.owner=="string"?e.owner.trim():"";return r&&n.startsWith(`${r}--`)?n=n.slice(r.length+2):!r&&n.includes("--")&&(n=n.slice(n.indexOf("--")+2)),n},u3={at:"production",prod:"production",production:"production",dev:"development",development:"development",next:"next",upcoming:"upcoming",test:"test",staging:"staging"},aX=t=>{if(typeof t!="string"||!t)return null;let e=t.toLowerCase().replace(/^www\./,"").replace(/\/$/,"");if(!e.endsWith(".symbo.ls"))return null;let n=e.split(".");if(n.length<4||n.slice(-2).join(".")!=="symbo.ls")return null;if(n.length===4){let s=n[1],i=n[0],a=u3[s];if(a&&i.includes("--")){let c=i.split("--");if(c.length===2||c.length===3){let[l,f,u]=c;if(l&&f){let d=u?u3[u]||u:null;return{projectKey:f,owner:l,env:d||a,sysEnv:a}}}}}if(n.length>=5)return{projectKey:n[1],owner:n[2],env:n[0]};let r=n[1],o=n[0];if(o.includes("--")){let[s,i]=o.split("--",2);return!s||!i?null:{projectKey:s,owner:r,env:i}}return{projectKey:o,owner:r,env:"production"}};M();var m3=t=>{let e={faces:0,links:0,kept:0};if(!t)return e;let n=uX(rr());for(let r in t){let o=t[r];if(!o||!o.fontFace)continue;let s=Array.isArray(o.fontFace)?o.fontFace:[o.fontFace];for(let i of s){if(y3(i)){let a=lX(i);a&&fX(a)&&e.links++;continue}if(cX(i)){if(!g3(i))continue;if(n.has(AC(i))){e.kept++;continue}Ot(i.trim()),e.faces++;continue}if(typeof i=="string"&&i.includes("font-family")){if(!g3(i))continue;if(n.has(AC(i))){e.kept++;continue}Ot(`@font-face { ${i} }`),e.faces++}}}return e},y3=t=>typeof t=="string"&&t.trim().startsWith("@import"),cX=t=>typeof t=="string"&&t.trim().startsWith("@font-face"),lX=t=>{if(!y3(t))return null;let e=String(t).match(/url\(\s*['"]?([^'")]+)['"]?\s*\)/);return e?e[1].trim():null},fX=(t,e)=>{if(typeof t!="string"||!t)return null;let n=e||rr();if(!n||!n.head)return null;let r="data-smbls-font",o=n.head.querySelectorAll(`link[rel="stylesheet"][${r}]`);for(let i=0;i<o.length;i++)if(o[i].getAttribute(r)===t)return o[i];let s=n.createElement("link");return s.setAttribute("rel","stylesheet"),s.setAttribute("href",t),s.setAttribute(r,t),n.head.appendChild(s),s},Qb=(t,e)=>{let n=new RegExp(`(?:^|[;{\\s])${e}\\s*:\\s*([^;}]+)`,"i").exec(t);return n?n[1].trim().toLowerCase():null},AC=t=>{let e=String(t||""),n=Qb(e,"font-family");if(!n)return null;let r=Qb(e,"font-weight")||"400";return r==="normal"?r="400":r==="bold"&&(r="700"),n.replace(/^['"]|['"]$/g,"")+"|"+r+"|"+(Qb(e,"font-style")||"normal")},g3=t=>{let e=Qb(String(t||""),"src");return!!e&&e!=="none"},TC=t=>{if(!t)return null;let e=t.type;if(e===5)return t.cssText||"";if(typeof e=="number")return null;let n=t.cssText||"";return/^\s*@font-face/i.test(n)?n:null},uX=t=>{let e=new Set,n=t&&t.styleSheets;if(!n)return e;for(let r=0;r<n.length;r++){let o;try{o=n[r].cssRules}catch{continue}if(o)for(let s=0;s<o.length;s++){let i=TC(o[s]);if(i===null)continue;let a=AC(i);a&&e.add(a)}}return e};var x3='meta[name="brender"]',dX=3e3,CC=t=>t.document||(typeof document<"u"?document:null),k3=(t,e)=>{let n=t.parent;return n&&n.nodeType===1?n:n&&n.node&&n.node.nodeType===1?n.node:e?e.body:null},E3=(t,e)=>{if(e&&e.__BRENDER__)return!0;let n=CC(t);if(!n||typeof n.querySelector!="function")return!1;let r=n.documentElement;if(r&&typeof r.hasAttribute=="function"&&r.hasAttribute("data-brender")||n.querySelector(x3))return!0;let o=k3(t,n);for(let s=o&&o.firstElementChild;s;s=s.nextElementSibling)if(s.hasAttribute("data-br"))return!0;return!1},v3=t=>{let e=CC(t);return!e||!e.head?null:Array.from(e.head.querySelectorAll('style[data-emotion="smbls"], style[data-brender]'))},A3=(t,e)=>{if(!e||!e.length)return;let n=[];for(let o of e){let s=null;try{s=o.sheet&&o.sheet.cssRules}catch{s=null}if(s&&s.length)for(let i=0;i<s.length;i++){let a=TC(s[i]);a!==null&&n.push(a)}else{let i=String(o.textContent||"").match(/@font-face\s*\{[^}]*\}/gi);i&&n.push(...i)}}let r=e.find(o=>o.parentNode);if(n.length&&r&&t&&typeof t.createElement=="function"){let o=t.createElement("style");o.setAttribute("data-smbls-faces",""),o.textContent=n.join(`
168
+ `),r.parentNode.insertBefore(o,r)}e.forEach(o=>{o.parentNode&&o.remove()})},b3=t=>{console.warn("[smbls] the pre-render registry is not JSON \u2014 the page renders fresh:",t.message)},OC=["paths","tree"],pX=(t,e)=>{let n=Jn(e,Gf,{warn:b3});if(n)return{map:Yf(n.value),block:n.block};let r=Jn(e,qf,{warn:b3});return r?{map:k(r.value)?r.value:null,block:r.block}:t&&k(t.__BR_REGISTRY__)?{map:t.__BR_REGISTRY__,legacy:!0}:null},hX=(t,e,n)=>!n||!n.map||t.hydrate===!1?!1:n.legacy?t.hydrate===!0||k(t.hydrate)||!!e&&e.__BRENDER_HYDRATE__===!0:!0,gX=t=>{let e=k(t.hydrate)?t.hydrate.timeout:void 0;return typeof e=="number"&&e>=0?e:dX},T3=(t,e,n)=>{if(t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__,delete t.__BRENDER_HYDRATE__),n&&n.block&&n.block.parentNode&&n.block.remove(),e&&typeof e.querySelector=="function"){let r=e.querySelector(x3);r&&r.remove();let o=e.documentElement;o&&typeof o.hasAttribute=="function"&&o.hasAttribute("data-brender")&&o.removeAttribute("data-brender")}},mX=()=>new Promise(t=>{if(typeof MessageChannel=="function"){let e=new MessageChannel;e.port1.onmessage=()=>{e.port1.close(),t()},e.port2.postMessage(null)}else setTimeout(t,0)}),C3=async(t,e)=>{let n=t.__firstNavigation;if(n&&typeof n.then=="function")try{await n}catch{}for(let r=0;r<20&&e.pending.size;r++){let o=ll("fetch"),s=o&&typeof o.whenRequestsIdle=="function"?o.whenRequestsIdle:null;if(s&&await s(),await mX(),!s||!(o.requestsInFlight()>0))return}},yX=["click","keydown"],O3=(t,e,n,r,o,s)=>{let i=!1,a=null,c=()=>f(),l=u=>{let d=u?"addEventListener":"removeEventListener";if(n&&typeof n[d]=="function")for(let p of yX)n[d](p,c,!0);e&&typeof e[d]=="function"&&e[d]("popstate",c)},f=()=>{if(i)return;i=!0,a!==null&&clearTimeout(a),l(!1),t.__hydration===r&&delete t.__hydration;let u=0;for(let d of r.pending)d.parentNode&&(d.remove(),u++);r.pending.clear(),r.pendingIn.clear(),r.whole=null,Ho(r),A3(n,s),e&&(e.__BRENDER_HYDRATION__={adopted:r.adopted,misses:r.misses,removed:u}),T3(e,n,o),R3(t,e,r.root,!0)};if(!r.pending.size)return f();a=setTimeout(f,gX(t)),l(!0),C3(t,r).then(f,f)},bX=1e3,_X=(t,e)=>{t&&typeof t.requestIdleCallback=="function"?t.requestIdleCallback(e,{timeout:bX}):setTimeout(e,0)},_3=(t,e)=>{let n=ll("fetch");!n||typeof n.seedIsStale!="function"||!n.seedIsStale()||_X(t,()=>{n.revalidateSeed(e).then(r=>{r&&t&&((t.__BRENDER_HYDRATION__||(t.__BRENDER_HYDRATION__={replaced:!0})).refreshed=r)},r=>console.error("[smbls] refreshing a stale pre-rendered page failed:",r))})},R3=(t,e,n,r)=>{let o=ll("fetch");if(!o||typeof o.seedIsStale!="function")return;let s=()=>{let i=()=>_3(e,n);C3(t,{pending:{size:1}}).then(i,i)};if(o.seedIsStale())return r?_3(e,n):s();typeof o.whenSeedTaken=="function"&&o.whenSeedTaken(s)},wX=t=>({bubbles:!0,cancelable:!0,composed:!0,detail:t.detail,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,button:t.button,buttons:t.buttons}),SX=(t,e,n,r)=>{if(!t||typeof t.addEventListener!="function")return{replay(){}};let o=[],s=a=>{for(let c=a;c&&c!==n;c=c.parentNode)if(r.pending.has(c))return!0;return!1},i=a=>{s(a.target)&&(a.preventDefault(),a.stopImmediatePropagation(),o.push({target:a.target,init:wX(a)}))};return t.addEventListener("click",i,!0),{replay(){t.removeEventListener("click",i,!0);let a=e&&e.MouseEvent||(typeof MouseEvent=="function"?MouseEvent:null);if(a)for(let{target:c,init:l}of o)c.isConnected&&r.claimed.has(xX(c,n,r))&&c.dispatchEvent(new a("click",l))}}},xX=(t,e,n)=>{for(let r=t;r&&r!==e;r=r.parentNode)if(n.claimed.has(r))return r;return null},kX=async()=>{for(await Re();!Ko();)await Re()},EX=async(t,e,n,r,o,s,i,a,c,l,f,u)=>{let d=f.mountYield,p=f.mountWhole;d===void 0&&(f.mountYield=u.budget),p===void 0&&(f.mountWhole=!0);let g=WA(o,{budget:u.budget,progressive:!0,pageOptions:{mountYield:f.mountYield,mountWhole:f.mountWhole}}),h=ui(),m=SX(i,s,r,a),y=u.lease||null;g.lease=y,y&&(o.__mountLease=y);let x=null,E=!1;try{try{x=t(e,n,o.key,f)}catch(T){console.error("[smbls] hydration failed, rendering fresh:",T),delete o.__hydration,Ho(a);for(let S of a.claimed)S.parentNode&&S.remove();return null}E=!await Zo(qr(x),y)||g.routeReady&&!await Zo(g.routeReady,y)||!await Zo(kX(),y),E&&(o.__hydration===a&&delete o.__hydration,Ho(a),zA(x))}finally{f.mountYield=d,f.mountWhole=p,y&&(o.__mountLease=null),KA(o),h(),x||m.replay()}return E?(m.replay(),Gc(k(e)?e:{})):(a.root=x,O3(o,s,i,a,c,l),m.replay(),x)},w3=(t,e,n,r,o,s,i,a,c,l,f)=>{if(!r||typeof r.querySelectorAll!="function")return null;let u=E=>{for(let T=E;T&&T!==r;T=T.parentNode)if(T.parentNode===r&&T.localName==="svg"&&T.id)return!0;return!1},d={};for(let E of r.querySelectorAll("[data-br]")){let T=E.getAttribute("data-br");u(E)?E.removeAttribute("data-br"):d[T]=E}let p={},g=new Set,h=new Map,m=a.map;for(let E in m){let T=m[E],S=d[T];if(!S||p[T])continue;p[T]=S,g.add(S);let w=S.parentNode;w&&h.set(w,(h.get(w)||0)+1)}for(let E in d)p[E]||d[E].removeAttribute("data-br");let y={registry:m,nodes:p,claimed:new Set,pending:g,pendingIn:h,adopted:0,misses:0};if(o.__hydration=y,f)return EX(t,e,n,r,o,s,i,y,a,c,l,f);let x;try{x=t(e,n,o.key,l)}catch(E){console.error("[smbls] hydration failed, rendering fresh:",E),delete o.__hydration,Ho(y);for(let T of y.claimed)T.parentNode&&T.remove();return null}return y.root=x,O3(o,s,i,y,a,c),x},S3=(t,e,n,r,o,s,i,a,c,l)=>{if(A3(i,c),r){let u=[];for(let d of r.childNodes){if(d.nodeType===1){let p=d.localName;if(p==="script"||p==="link"||p==="style"||p==="svg"&&d.id)continue}u.push(d)}u.forEach(d=>d.remove())}i&&typeof i.querySelectorAll=="function"&&i.querySelectorAll("[data-br]").forEach(u=>u.removeAttribute("data-br")),s&&(s.__BRENDER_HYDRATION__={replaced:!0});let f=t(e,n,o.key,l);return T3(s,i,a),Promise.resolve(f).then(u=>R3(o,s,u,!1),()=>{}),f},P3=(t,e,n,r,o,s,i,a=null)=>{let c=CC(r),l=n&&n.nodeType?n:n&&n.node||k3(r,c),f=pX(o,c);r.prerendered=!0;let u=ws(c);if(u&&(r.prerender=u),hX(r,o,f)){if(a)return hr().then(()=>qc(a.lease)?w3(t,e,n,l,r,o,c,f,s,i,a):Gc(k(e)?e:{})).then(p=>p||S3(t,e,n,l,r,o,c,f,s,i));let d=w3(t,e,n,l,r,o,c,f,s,i,a);if(d)return d}return S3(t,e,n,l,r,o,c,f,s,i)};M();var N3=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let n=typeof document<"u"?document:e.document;t.document=t.document||n;let r=t.window;return r&&r!==e&&typeof r.URL!="function"?(typeof console<"u"&&console.warn&&!globalThis.__smblsRouterUrlWarned&&(globalThis.__smblsRouterUrlWarned=!0,console.warn("[smbls/router] context.window lacks URL, falling back to globalThis \u2014 passed-in window may be a stub (warned once; applies to every embed app this session)")),t.window=e):t.window=r||e,t.window},L3=(t="smbls")=>{let e={};for(let n in Ei)Object.prototype.hasOwnProperty.call(Ei,n)&&(Yn(n)?e[`smbls.${n}`]=Ei[n]:e[n]=Ei[n]);return e},$3=t=>t.components?{...L3(),...t.components}:L3(),F3=t=>({...Wd,...Uc,...To,...t.utils,...t.snippets,...t.functions}),B3=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router});var j3=t=>typeof globalThis<"u"&&globalThis.__SMBLS_PKGS__&&globalThis.__SMBLS_PKGS__[t]||null,vX=3e3,AX=(t,e,n=r=>import(r))=>{if(typeof globalThis>"u")return Promise.resolve(null);try{let r=globalThis.__SMBLS_PKGS__||(globalThis.__SMBLS_PKGS__={});if(r[t])return Promise.resolve(r[t]);let o=()=>n(e),s=Promise.resolve().then(o).then(a=>(a&&!r[t]&&(r[t]=a),r[t]||null)).catch(()=>null);return new Promise(a=>{let c=setTimeout(()=>a(null),vX);s.then(l=>{clearTimeout(c),a(l)})})}catch{return Promise.resolve(null)}},D3={},DC=async({dependencies:t,dependenciesOnDemand:e,document:n,preventCaching:r=!1,cdnProvider:o,packageManager:s,symbolsConfig:i,registerDependency:a=AX})=>{if(o||(o=_o[s]||Ca(i)||"esmsh"),!t)return null;if(!Ts(t))return console.warn(`[smbls] dependencies is ${Array.isArray(t)?"an ARRAY":`a ${typeof t}`}, not a package-name-keyed object \u2014 skipping the CDN fetch loop. This usually means a project's config.js declares its own "dependencies" field that collides with the platform package map once context.js spreads them together.`),null;let c=!1;for(let d in t){c=!0;break}if(!c)return null;let l=lo()&&r?`?${Math.random()}`:"",f=async(d,p)=>{let g=Pn(d,p,o)+l;try{await Promise.race([Oa(g,{document:n,type:"module"}),new Promise((h,m)=>setTimeout(()=>m(new Error(`Timeout loading ${d}`)),1e4))]),await a(d,g)}catch(h){if(console.error(`Failed to load ${d} from ${o}:`,h),o!=="symbols")try{let m=Pn(d,p,"symbols")+l;await Promise.race([Oa(m,{document:n,type:"module"}),new Promise((y,x)=>setTimeout(()=>x(new Error(`Timeout fallback ${d}`)),2e4))]),console.log(`Successfully loaded ${d} from fallback (symbols.ls)`),await a(d,m)}catch(m){console.error(`Failed to load ${d} from fallback:`,m)}}},u=[];for(let d in t){let p=t[d];if(!(e&&e[d])&&!D3[d]&&(D3[d]=!0,!wo(d))){if(As(d)){console.warn(`[smbls] dependency "${d}" looks like an un-interpolated template placeholder, not a real package specifier \u2014 skipping the CDN fetch (this is a bug upstream of the dependency loader, not a network failure).`);continue}j3(d)||u.push(f(d,p))}}return u.length&&await Promise.allSettled(u),t},I3=/\[smbls\] runtime dependency "([^"]+)" is not registered on globalThis\.__SMBLS_PKGS__/g,TX=t=>{if(typeof t=="string")return t;if(typeof t=="function")try{return typeof Fe=="function"?Fe(t):Function.prototype.toString.call(t)}catch{return""}return""},CX=t=>{let e=new Set;if(!t)return e;let n=[t.globalScope,t.functions,t.methods,t.snippets];for(let r=0;r<n.length;r++){let o=n[r];if(!o||typeof o!="object")continue;let s=Object.keys(o);for(let i=0;i<s.length;i++){let a;try{a=o[s[i]]}catch{continue}let c=TX(a);if(!c||c.indexOf("__SMBLS_PKGS__")===-1)continue;I3.lastIndex=0;let l;for(;(l=I3.exec(c))!==null;)e.add(l[1])}}return e},OX=t=>{let e=new Set;if(!t||typeof t.querySelectorAll!="function")return e;let n;try{n=t.querySelectorAll('script[type="importmap"]')}catch{return e}for(let r=0;r<n.length;r++){let o;try{o=JSON.parse(n[r].textContent||"")}catch{continue}let s=o&&typeof o=="object"?o.imports:null;if(s&&typeof s=="object"){let i=Object.keys(s);for(let a=0;a<i.length;a++)e.add(i[a])}}return e},RX=(t,e)=>{if(!e||!e.size)return!1;if(e.has(t))return!0;for(let n of e)if(n.length>1&&n.endsWith("/")&&t.length>n.length&&t.startsWith(n))return!0;return!1},U3=(t,{syncRead:e=CX(t),runtimeDocument:n=typeof document<"u"?document:null,importMap:r=OX(n)}={})=>{let o=t&&t.dependencies;if(!Ts(o))return null;let s=!t.document||t.document===n,i=t.dependenciesOnDemand,a=null,c=null;for(let l in o)s&&!(i&&i[l])&&!e.has(l)&&RX(l,r)?(c||(c={}))[l]=o[l]:(a||(a={}))[l]=o[l];return{blocking:a,deferred:c}},PX=t=>import(t),RC={},LX=(t,e)=>{if(!e||typeof globalThis>"u")return;let n=globalThis.__SMBLS_PKGS__||(globalThis.__SMBLS_PKGS__={});n[t]||(n[t]=e)},DX=(t,{importModule:e=PX}={})=>{let n=[];if(!t)return Promise.resolve([]);for(let r in t)if(!(wo(r)||As(r))&&!j3(r)){if(!RC[r]){let o=()=>e(r);RC[r]=Promise.resolve().then(o).then(s=>(LX(r,s),s||null),()=>null)}n.push(RC[r])}return Promise.all(n)},IX=2e3,MX=3e3,V3=(t,{win:e=typeof window<"u"?window:null,importModule:n,loadTimeoutMs:r=MX}={})=>t?new Promise(o=>{let s=()=>{DX(t,{importModule:n}).then(o,o)},i=()=>{e&&typeof e.requestIdleCallback=="function"?e.requestIdleCallback(s,{timeout:IX}):setTimeout(s,0)},a=e&&e.document;if(a&&a.readyState&&a.readyState!=="complete"&&typeof e.addEventListener=="function"){let c=!0,l=null,f=()=>{c&&(c=!1,clearTimeout(l),typeof e.removeEventListener=="function"&&e.removeEventListener("load",f),i())};e.addEventListener("load",f,{once:!0}),l=setTimeout(f,r)}else i()}):null,z3=async(t,e)=>{let n=e.window||window,r=e.cdnProvider||Ca(e.symbolsConfig)||"esmsh",o=async i=>async(a,c)=>{let f=(i.window||window).packages[a];return typeof f=="function"?f():f},s=async i=>async(a,c=r)=>{let{dependenciesOnDemand:l}=i,f=i.document||document,u=i.window||window;if(!u.packages[a]&&wo(a))return await u.require(a,c);if(!u.packages[a]){let d=lo()?`?${Math.random()}`:"";if(l&&l[a]){let p=l[a],g=Pn(a,p,c)+d;try{await i.utils.loadRemoteScript(g,{window:u,document:f})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let m=Pn(a,p,"symbols")+d;await i.utils.loadRemoteScript(m,{window:u,document:f})}}}else{let p=Pn(a,"latest",c)+d;try{await i.utils.loadRemoteScript(p,{window:u,document:f})}catch(g){if(console.error(`Failed to load ${a} from ${c}:`,g),c!=="symbols"){let h=Pn(a,"latest","symbols")+d;await i.utils.loadRemoteScript(h,{window:u,document:f})}}u.packages[a]="loadedOnDeman"}}return await u.require(a,c)};n.packages?n.packages=Lt(n.packages,t):n.packages=t,n.require||(e.utils.require=await o(e),n.require=e.utils.require),n.requireOnDemand||(e.utils.requireOnDemand=await s(e),n.requireOnDemand=e.utils.requireOnDemand)},NX=/\s+/g,H3=(t,e)=>typeof t=="function"?t(e,e?.state,e?.context):t,$X=(t,e)=>{let n="";for(let r in t){let o=t[r];typeof o=="boolean"&&o?n+=` ${r}`:typeof o=="string"?n+=` ${o}`:typeof o=="function"&&(n+=` ${H3(o,e)}`)}return n},FX=(t,e,n)=>{if(!t)return;let{key:r}=e;t===!0&&(t=e.classlist={key:r}),typeof t=="string"&&(t=e.classlist={default:t}),t!==null&&typeof t=="object"&&!Array.isArray(t)&&(t=$X(t,e));let o=t.replace(NX," ").trim();if(n&&typeof n.setAttribute=="function")n.setAttribute("class",o);else if(n)try{n.className=o}catch{}return o},BX=()=>(t,e,n)=>{let r=H3(t,e);if(t){let{__ref:o}=e;o.__class.style=r}W3()(e.classlist,e,e.state,!0)},W3=()=>(t,e,n,r)=>{if(e.style&&!r)return;let{__ref:o}=e,{__class:s,__classNames:i}=o;if(!(t===null||typeof t!="object"||Array.isArray(t))){e.class&&(i.classProps=e.class),e.attr?.class&&(i.class=e.attr.class);for(let a in s){let c=s[a];if(!c){delete i[a];continue}let l;typeof c=="string"||typeof c=="number"?l=c:typeof c=="boolean"?l=e.key:l=We(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];e.node&&FX(i,e,e.node)}},jX=()=>({style:BX(),classlist:W3()}),UX=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],PC=new WeakSet,LC=!1,VX=t=>!!t&&typeof t=="object",zX=new Set(["key","document","files","assets","themeRoot","config","newConfig","recordCss","router"]),K3=t=>t.toLowerCase()==="font",HX=t=>{let e=2166136261,n=16777619^t.length;for(let r=0;r<t.length;r++){let o=t.charCodeAt(r);e=Math.imul(e^o,16777619),n=Math.imul(n^o,1540483477)}return(e>>>0).toString(36)+"."+(n>>>0).toString(36)+"."+t.length.toString(36)},M3=(t,e)=>typeof e=="function"?"fn:"+String(e):e,q3=(t,e)=>{let n={};for(let o in t||{})K3(o)||(n[o]=t[o]);let r={};for(let o in e)zX.has(o)||(r[o]=e[o]);return r.globalTheme=By(e.globalTheme)||"auto",HX(1+"|"+JSON.stringify(n,M3)+"|"+JSON.stringify(r,M3))},WX=t=>{let e={};for(let n in t||{})K3(n)&&k(t[n])&&bt(e,pt(t[n]),le);return k(gi.font)&&bt(e,pt(gi.font),le),e},KX=(t,e)=>{if(t.preparedDesignSystem!==void 0){let r=t.preparedDesignSystem;return delete t.preparedDesignSystem,r}let n=Jn(e,Jf);return n?n.value:null},G3=t=>{if(!t||t.preparedDesignSystem!==void 0)return null;let e=t.document||(typeof document<"u"?document:null);if(!e||typeof e.querySelector!="function"||typeof globalThis.fetch!="function")return null;try{let n=e.querySelector(Xf),r=n&&n.href;if(r)return globalThis.fetch(r,{credentials:"same-origin"}).then(c=>c&&c.ok?c.json():null).catch(()=>null);let o=e.querySelector(Zf),s=o&&o.getAttribute("content");if(!s)return null;let i=new URL(s,e.baseURI||void 0).href,a=globalThis.fetch(i,{credentials:"same-origin",priority:"low"}).then(c=>c&&c.ok?c.json():null).catch(()=>null);return GX(a,i,t.window||e.defaultView)}catch{return null}},qX=(t,e)=>{let n=e&&e.performance||(typeof performance<"u"?performance:null);if(!n||typeof n.getEntriesByName!="function")return!1;try{let r=n.getEntriesByName(t);for(let o=0;o<r.length;o++)if(r[o].responseEnd>0)return!0}catch{}return!1},GX=(t,e,n)=>{let r=!1,o=t.then(s=>(r=!0,s));return o.deferred=!0,o.ready=()=>r||qX(e,n),o},Y3=t=>!!t&&(t.deferred!==!0||t.ready()),YX=t=>k(t)&&t.format===1&&typeof t.fingerprint=="string"&&k(t.config)&&Array.isArray(t.rules),XX=(t,e,n,r)=>{if(r.localFile)return null;let o=om(t);return o?{format:1,fingerprint:q3(n.designSystem,r),config:o,rules:e.rules,sprites:e.sprites}:null},X3=(t,e)=>{let n=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,r=e.initOptions||{},o=e.registry||jX(),s=()=>e.designSystem?bt(pt(e.designSystem),pt(gi),le):pt(gi),i={};for(let m of UX)e[m]!==void 0&&(i[m]=e[m]);let a,c=VX(n),f=c&&PC.has(n)&&!e.skipDesignSystemInit,u=!f&&!LC,d=f?`[data-smbls-app="${t}"]`:":root";e.scopeSelector=d;let p={key:t,document:n,files:e.files,assets:e.assets,scopeSelector:d,...EC,...i,...r};if(e.skipDesignSystemInit){if(a=P(t)||P(),a&&(a.__domDocument=n),a?.CSS_VARS){mt(a);try{Ot({[d]:a.CSS_VARS}),a.CSS_MEDIA_VARS&&Ot(Fy(a.CSS_MEDIA_VARS,d));let m=Js(a.cssSkinVars,a.cssSkinFallback,d);Object.keys(m).length&&Ot(m)}finally{ht()}}}else if(e.isolateDesignSystem&&!f){let m=Fg();m.__domDocument=n;let y=null,x=e.captureDesignSystem?E=>{y=E}:void 0;mt(m);try{a=mr(s(),{...p,config:m,recordCss:x})}finally{ht()}y&&(e.preparedDesignSystem=XX(a,y,e,p))}else if(u){let m=P();m&&(m.__domDocument=n);let y=m&&m._scratchConfig&&!p.localFile?KX(e,n):null;YX(y)&&y.fingerprint===q3(e.designSystem,p)?(a=jA(y,m,p,WX(e.designSystem)),e.designSystemSource="prepared"):(a=mr(s(),p),e.designSystemSource="processed"),a&&a!==m&&(a.__domDocument=n),c&&PC.add(n),LC=!0}else{let m=pu(t,s(),{cleanBase:!0});for(let y in i)m[y]=i[y];if(m.__domDocument=n,f){let y=t.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);e.cssPrefix=y,m.varPrefix=y}mt(m);try{a=mr(m,p)}finally{ht()}c&&PC.add(n),LC=!0}let g=a?.CONFIG||a,h=g?.font;if(h){mt(g);try{m3(h)}finally{ht()}}return[a,o]},Z3=(t,e)=>{let n={};e.state&&uo(n,e.state),t&&t.state&&uo(n,t.state);let r=e.polyglot;if(r){let o=null;try{typeof localStorage<"u"&&(o=localStorage.getItem(r.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let s=Es({polyglot:r,pathname:vs(e.window),stored:o,stateLang:n.lang});(o||s!==vr(n.lang,r))&&s!==n.lang&&(n.lang=s),r.translations&&ZX(e,r,n,s)}return n.isRootState=!0,pt(n)},ZX=(t,e,n,r)=>{let o=new Set,s=new Set,i=(l,f)=>{if(!s.has(l)){if(!ys(t,l,n)){o.add(l);return}n[l]=f,s.add(l),Xn(t,l,f)}},a=e.translations[r];if(a&&typeof a=="object")for(let l in a)i(l,a[l]);let c=new Set(Be(e,!1));for(let l in e.translations)c.has(l)||i(l,e.translations[l]);o.size&&e.verbose!==!1&&t.verbose!==!1&&console.warn(`[polyglot] ${o.size} translation key${o.size===1?"":"s"} collide${o.size===1?"s":""} with a declared root-state key (${[...o].join(", ")}) \u2014 the declared value wins and the translation is NOT seeded into state. Rename the translation key, or read it with \`{{ key | polyglot }}\` instead of a bare \`{{ key }}\`.`)},J3=(t,e)=>{k(t.routes)&&k(e.pages)&&Lt(t.routes,e.pages);let n=t.routes||e.pages||{},r=[];for(let o in n){if(o.charCodeAt(0)===47)continue;let i="/"+(o==="index"?"":o);Object.prototype.hasOwnProperty.call(n,i)?r.push(`${o} -> ${i}`):n[i]=n[o],delete n[o]}return r.length&&e&&e.verbose!==!1&&console.warn(`[smbls] preparePages kept ${r.length} explicitly declared route${r.length===1?"":"s"} over a same-named page key (${r.join(", ")}). A bare page NAME never overwrites a declared '/route'. This usually means a shared library ships a page under its export name that collides with one of your routes \u2014 add it to that library's ignoreList if you did not intend the collision.`),n},IC=t=>{Vf(t,t.sharedLibraries)};var BC={};B(BC,{default:()=>lZ,getActiveLang:()=>Gi,getLanguages:()=>mp,getLocalStateLang:()=>wp,getPendingLang:()=>gp,initPolyglot:()=>e_,loadTranslations:()=>qi,polyglotPlugin:()=>pl,setLang:()=>bp,trackLoadTranslations:()=>FC,translate:()=>yp,upsertTranslation:()=>_p});M();M();Mt();var JX="smbls_t_",QX="smbls_tv_",MC=t=>{let e=t&&t.window||(typeof window<"u"?window:null);return e?e.localStorage:null},dl={get(t,e){try{return MC(t)?.getItem(e)??null}catch{return null}},set(t,e,n){try{MC(t)?.setItem(e,n)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(t,e){try{MC(t)?.removeItem(e)}catch(n){console.warn("[polyglot] localStorage unavailable:",n.message)}}},Q3=new WeakMap,t4=t=>{let e=Q3.get(t);return e||(e={},Q3.set(t,e)),e},e4=new WeakMap,s4=(t,e)=>t&&typeof t=="object"?t:e&&typeof e=="object"?e:null,i4=t=>{let e=e4.get(t);return e||(e={seq:0,pending:vn(null),wake:null},e4.set(t,e)),e},n4=(t,e,n)=>new Promise(r=>{let o=null,s=()=>{o!==null&&clearTimeout(o),o=null,t.wake===s&&(t.wake=null),r()};t.wake=s,Promise.resolve(e).then(s,s),n>0&&(o=setTimeout(s,n))}),$C=(t,e)=>!!(t?.translations&&t.translations[e]),tZ=3e3,eZ=2147483647,nZ=t=>{let e=t?.fontWait;return e===!1?0:typeof e=="number"?e>0?Math.min(e,eZ):0:tZ},rZ=new RegExp("\\p{L}","gu"),oZ=(...t)=>{let e=new Set,n=(r,o)=>{if(typeof r=="string"){let s=r.match(rZ);if(s)for(let i=0;i<s.length;i++)e.add(s[i])}else if(r&&typeof r=="object"&&o<8)for(let s in r)n(r[s],o+1)};for(let r=0;r<t.length;r++)n(t[r],0);return Array.from(e).join("")},sZ=(t,e)=>{let n=t?.fonts;if(!e||!n||!t.body||typeof n.check!="function"||typeof n.load!="function")return null;try{let o=(t.defaultView||globalThis).getComputedStyle(t.body).fontFamily;if(!o)return null;let s="1em "+o;return n.check(s,e)?null:Promise.resolve(n.load(s,e)).then(()=>{},()=>{})}catch{return null}};function Gi(){let t=this?.context,e=t?.polyglot,n=this?.state?.root||t?.state?.root;return vr(n?.lang||t?.state?.lang,e)}function gp(){let t=this?.context,e=s4(t,this?.state?.root||t?.state?.root);return e?i4(e).pending.get():null}function mp(){let t=this?.context?.polyglot;return t?Be(t):[]}var t_=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let n=e.split("."),r=t;for(let o=0;o<n.length;o++){if(r==null)return;r=r[n[o]]}return r},r4=(t,e,n)=>{let r=e.lastIndexOf(".");if(r===-1)return t[e+"_"+n];let o=t_(t,e.substring(0,r));if(o!=null)return o[e.substring(r+1)+"_"+n]};function yp(t,e){if(!t)return"";let n=this?.context,r=n?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let l=r4(s,t,o);if(l!==void 0)return l}if(r?.translations){let l=r.translations[o];if(l){let f=t_(l,t);if(f!==void 0)return f}}let i=s?.root||n?.state?.root,a=i?.translations;if(a){let l=a[o];if(l){let f=t_(l,t);if(f!==void 0)return f}}let c=r?.defaultLang||"en";if(s){let l=r4(s,t,c);if(l!==void 0)return l}if(r?.translations){let l=r.translations[c];if(l){let f=t_(l,t);if(f!==void 0)return f}}return iZ(r,i,o)&&typeof va=="function"&&va(),t}var iZ=(t,e,n)=>!!t?.fetch&&!$C(e,n)&&!t._fetchFailed?.[n];async function qi(t,e){let n=this?.context,r=n?.polyglot,o=this?.state?.root||n?.state?.root;if(!r||!o)return;if(e&&e.inFlight===!0)return t4(o)[(r.storagePrefix||"smbls")+":"+t];let s=r.storagePrefix||JX,i=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):QX);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!o.translations?.[t]){let f=dl.get(n,s+t);if(f)try{let u=JSON.parse(f),d={translations:{...o.translations||{}}};d.translations[t]=u,o.update&&o.update(d)}catch(u){console.warn("[polyglot] Failed to apply language update:",u.message)}}let a=t4(o),c=(r.storagePrefix||"smbls")+":"+t;if(a[c])return a[c];let l=this;return a[c]=(async()=>{try{let f=r.fetch,u=parseInt(dl.get(n,i+t),10)||0,d,p,g;if(L(f)){let m=await f(t,u,l);if(!m||m.changed===!1)return;d=m.translations||m.data||m,p=m.version||0,g=!0}else if(k(f)){let m=l.getDB||(()=>n.fetch),y=L(m)?await m.call(l):n.fetch;if(!y)return;let x=f.rpc||f.from||"get_translations_if_changed",E={p_lang:t,p_cached_version:u,...f.params||{}},T=await y.rpc({from:x,params:E});if(T.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,T.error;let S=T.data;if(!S||!S.changed)return;d=S.translations||{},p=S.version||0,g=!0}else return;if(!g||!d)return;dl.set(n,s+t,JSON.stringify(d)),p&&dl.set(n,i+t,String(p));let h={translations:{...o.translations||{}}};h.translations[t]=d,o.update&&o.update(h)}catch(f){if(r.verbose!==!1){let u=f?.message||f?.details||(typeof f=="object"?JSON.stringify(f):String(f));console.warn("[polyglot] Failed to load translations for",t,"-",u)}}finally{delete a[c]}})(),a[c]}var NC=new WeakMap,o4=Symbol.for("@symbo.ls/polyglot:trackedLoadTranslations");function FC(t){if(!L(t)||t[o4]||t===qi)return t;let e=function(n,r){let o=this?.context,s=this?.state?.root||o?.state?.root,a=(o?.polyglot?.storagePrefix||"smbls")+":"+n;if(r&&r.inFlight===!0){let l=s&&NC.get(s);return l&&l[a]?l[a]:qi.call(this,n,r)}let c=t.call(this,n,r);if(s&&c&&typeof c.then=="function"){let l=NC.get(s);l||NC.set(s,l={});let f=Promise.resolve(c);l[a]=f;let u=()=>{l[a]===f&&delete l[a]};f.then(u,u)}return c};return e[o4]=!0,e}var aZ=(t,e,n)=>{let r=t.__ref;if(!r||r.contentManaged||n==null||typeof n=="object")return;let o=r.__textNode;if(!o||o.parentNode!==e)return;let s=String(n);o.nodeValue!==s&&(o.nodeValue=s)};async function bp(t,e){let n=this?.context,r=n?.polyglot,o=this?.state?.root||n?.state?.root,s=n?.document||globalThis.document;if(!o)return;e?.persist!==!1&&dl.set(n,Ea(r),t);let i=i4(s4(n,o)),a=++i.seq;i.wake&&i.wake();let c=()=>i.seq===a;if(this.call("getActiveLang")===t){i.pending.set(null),s?.documentElement&&(s.documentElement.lang=t);return}try{if(r?.fetch){let f=this.call("loadTranslations",t);if(!$C(o,t)){i.pending.set(t);let u=null;if(await n4(i,Promise.resolve(f).then(null,d=>{u=d}),0),!c())return;if(u)throw u;if(!$C(o,t)&&!r.translations?.[t])return}}let l=nZ(r);if(l>0&&s?.fonts&&s.documentElement?.lang!==t){let f=sZ(s,oZ(r?.translations?.[t],o.translations?.[t]));if(f&&(i.pending.set(t),await n4(i,f,l),!c()))return}i.pending.set(null),cZ(n,r,o,s,t)}finally{c()&&i.pending.set(null)}}function cZ(t,e,n,r,o){t?.state&&(t.state.lang=o);let s=e?.translations?.[o],i={lang:o},a=c=>ff(t,c,n);if(s&&typeof s=="object")for(let c in s){if(!a(c))continue;let l=s[c];(Array.isArray(l)||typeof l=="string"||typeof l=="number")&&(i[c]=l)}n.update&&n.update(i);for(let c in i)c!=="lang"&&Xn(t,c,i[c]);if(s&&typeof s=="object")for(let c in s){if(!a(c))continue;let l=s[c];if(l&&typeof l=="object"&&!Array.isArray(l)&&n[c]&&typeof n[c]=="object"&&!Array.isArray(n[c])){for(let f in l)n[c][f]=l[f];Xn(t,c,n[c])}}if(r&&s){let c=r.querySelectorAll("[data-key]");for(let l of c){let f=l.ref;if(!f)continue;let u=f.__ref?.__exec?.text;if(typeof u=="string"&&u.includes("{{"))try{aZ(f,l,f.call("replaceLiteralsWithObjectFields",u,f.state))}catch{}}}r?.documentElement&&(r.documentElement.lang=o)}async function _p(t,e,n){let r=this?.context,o=r?.polyglot,s=this?.state?.root||r?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=n),o?.translations?.[e]&&(o.translations[e][t]=n),o?.fetch&&k(o.fetch)){let i=this.getDB||(()=>r.fetch),a=L(i)?await i.call(this):r.fetch;if(!a)return;let c=o.fetch.table||"translations",l=await a.upsert({from:c,data:{key:t,lang:e,text:n}});if(l?.error)throw l.error;return l.data}}async function e_(){let t=this?.context,e=t?.polyglot;if(!e)return;let n=this?.state?.root||t?.state?.root;if(!n)return;let r=dl.get(t,Ea(e)),o=Es({polyglot:e,pathname:vs(t.window),stored:r,stateLang:n.lang||t?.state?.lang}),s=t?.document||globalThis.document;s?.documentElement&&(s.documentElement.lang=o),n.update&&n.lang!==o&&n.update({lang:o}),e.fetch&&!(e.translations&&e.translations[o])&&await this.call("loadTranslations",o)}function wp(t){try{let e=Gi.call(this),n=this?.state;if(!n)return"";let r=t.lastIndexOf(".");if(r===-1)return n[t+e]??"";let o=t.substring(0,r).split("."),s=n;for(let i=0;i<o.length;i++){if(s==null)return"";s=s[o[i]]}return s==null?"":s[t.substring(r+1)+e]??""}catch{return""}}var pl={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,e_.call(t))}},lZ=pl;var Sp={polyglot:yp,getLocalStateLang:wp,getActiveLang:Gi,getLang:Gi,setLang:bp,getPendingLang:gp,getLanguages:mp,loadTranslations:qi,upsertTranslation:_p};var UC={};B(UC,{SYSTEM_METRICS:()=>xp,capsizeHandler:()=>jC,capsizePlugin:()=>r_,computeCapsize:()=>a4,default:()=>fZ,resolveFontSizePx:()=>c4,resolveMetrics:()=>l4});var xp={arial:{capHeight:716,ascent:1854,descent:-434,lineGap:67,unitsPerEm:2048},helvetica:{capHeight:714,ascent:770,descent:-230,lineGap:0,unitsPerEm:1e3},"helvetica neue":{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3},georgia:{capHeight:1419,ascent:1878,descent:-449,lineGap:0,unitsPerEm:2048},"times new roman":{capHeight:1356,ascent:1825,descent:-443,lineGap:87,unitsPerEm:2048},"courier new":{capHeight:1170,ascent:1705,descent:-615,lineGap:0,unitsPerEm:2048},verdana:{capHeight:1489,ascent:2059,descent:-430,lineGap:0,unitsPerEm:2048},roboto:{capHeight:1456,ascent:1900,descent:-500,lineGap:0,unitsPerEm:2048},"open sans":{capHeight:1462,ascent:2189,descent:-600,lineGap:0,unitsPerEm:2048},inter:{capHeight:1490,ascent:2048,descent:-512,lineGap:0,unitsPerEm:2048},lato:{capHeight:1434,ascent:1974,descent:-426,lineGap:0,unitsPerEm:2e3},"source sans":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans pro":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans 3":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},montserrat:{capHeight:700,ascent:968,descent:-251,lineGap:0,unitsPerEm:1e3},poppins:{capHeight:700,ascent:1050,descent:-350,lineGap:100,unitsPerEm:1e3},raleway:{capHeight:710,ascent:1e3,descent:-250,lineGap:0,unitsPerEm:1e3},"dm sans":{capHeight:700,ascent:992,descent:-312,lineGap:0,unitsPerEm:1e3},nunito:{capHeight:705,ascent:1011,descent:-353,lineGap:0,unitsPerEm:1e3},"work sans":{capHeight:684,ascent:930,descent:-243,lineGap:0,unitsPerEm:1e3},manrope:{capHeight:708,ascent:980,descent:-300,lineGap:0,unitsPerEm:1e3},"ibm plex sans":{capHeight:698,ascent:1025,descent:-275,lineGap:0,unitsPerEm:1e3},"plus jakarta sans":{capHeight:720,ascent:1060,descent:-300,lineGap:0,unitsPerEm:1e3}},n_=t=>parseFloat(t.toFixed(4)),a4=(t,e,n)=>{let{ascent:r,descent:o,lineGap:s,unitsPerEm:i,capHeight:a}=e,c=Math.abs(o),l=r+c+s,f=n!==void 0?n:l/i*t,u=f/t,d=l/i,p=(r-a+s/2)/i-(u-d)/2,g=(c+s/2)/i-(u-d)/2;return{fontSize:`${n_(t/16)}rem`,lineHeight:`${n_(f)}px`,capHeightTrim:`${n_(-p)}em`,baselineTrim:`${n_(-g)}em`}},c4=(t,e)=>{if(typeof t=="number")return t;let n=e?.designSystem;if(!n)return null;let{typography:r}=n;if(r?.sequence){let s=String(t).toUpperCase(),i=r.sequence[s];if(i)return i.decimal||i.val}let o=parseFloat(t);return isNaN(o)?null:typeof t=="string"&&t.endsWith("rem")?o*(n.typography?.browserDefault||16):o},l4=(t,e)=>{let r=e?.designSystem?.font_family||{};if(t){let s=r[t];if(s?.metrics)return s.metrics;let i=String(t).toLowerCase().replace(/['"]/g,"").trim();if(xp[i])return xp[i]}let o=r.default||Object.keys(r)[0];if(o){let s=r[o];if(s?.metrics)return s.metrics;if(s?.value&&Array.isArray(s.value))for(let i of s.value){let a=i.toLowerCase().replace(/['"]/g,"").trim();if(xp[a])return xp[a]}}return null},jC=(t,e,n,r)=>{if(!t)return;let o=c4(e.fontSize,r);if(!o)return;let s=l4(e.fontFamily,r);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=a4(o,s,i),f={};return e.lineHeight||(f.lineHeight=a),f["::before"]={content:'""',marginBottom:c,display:"table"},f["::after"]={content:'""',marginTop:l,display:"table"},f},r_={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}},fZ=r_;var uZ="@symbo.ls/fetch:EARLY",dZ=()=>new Promise(t=>setTimeout(t,0)),VC=t=>{let e=typeof globalThis<"u"?globalThis[Symbol.for(uZ)]:null,n=e&&e.afterFirstView;return typeof n!="function"||e.afterFirstViewRan?null:(e.afterFirstViewRan=!0,Promise.resolve(t&&t.__firstNavigation).catch(()=>{}).then(dZ).then(()=>{try{n(e.ctx||{})}catch(r){console.error("[smbls] fetch.early afterFirstView failed:",r)}}))};var WC=t=>!!(t&&typeof t=="object"&&t.__isStub===!0),KC=t=>je(t)?t.library!==void 0?t.library:t.key??t.name:t,pZ=(t,e)=>{let n=e?.sharedLibraries,r=Array.isArray(n)?n.map(i=>typeof i=="string"?i:i?.key||i?.name):n&&typeof n=="object"?Object.keys(n):null,o=0,s=i=>{let a=o++;if(typeof i.__libraryKey=="string"&&i.__libraryKey)return i.__libraryKey;if(r&&r[a])return r[a];if(typeof i.__stubId=="string"){let c=i.__stubId.match(/^@symbo[-.]ls\/([^/]+)/);if(c)return c[1]}return null};return t.map(i=>{let a=KC(i);if(!WC(a))return i;let c=s(a);return c?je(i)?{...i,library:c}:c:null}).filter(Boolean)},qC=new WeakMap,hZ={lazy:!0,window:globalThis},f4=["components","pages","functions","methods","snippets"],gZ=f4.filter(t=>t!=="methods"),zC=t=>{if(!t||typeof t!="object")return!1;let e=new WeakSet,n=[t];for(;n.length;){let r=n.pop();if(!r||typeof r!="object"||e.has(r))continue;e.add(r);let o;try{o=Object.keys(r)}catch{continue}for(let s of o){let i;try{i=r[s]}catch{continue}if(typeof i=="function")return!0;i&&typeof i=="object"&&n.push(i)}}return!1},mZ=(t,e)=>{if(hs(e)||hs(t))return"boot-revived";if(zC(t))return"local";if(e&&typeof e=="object"){if(zC(e.app))return"local";for(let n of gZ)if(zC(e[n]))return"local"}return"raw-json"},u4=(t,e)=>{let n=e?t[e]:t;if(!k(n))return;let r=we(n,{},hZ);try{Object.assign(n,r)}catch(o){if(e)t[e]=r;else throw o}},yZ=t=>{if(!k(t)||hs(t))return t;for(let e of[...f4,"app"])u4(t,e);return ia(t)},bZ=(t,e)=>{if(!Array.isArray(t))return t;for(let n of t){let r=je(n)?n.library:n;k(r)&&!e.has(r)&&yZ(r)}return t},GC=new WeakMap,HC=t=>{let e=qC.get(t);e&&(qC.delete(t),V3(e))},d4=t=>t.notifications===!0||t.notifications!==!1&&!!t.editor&&t.editor.verbose===!0,p4=t=>t.sync!==!1&&Li(t)||d4(t),h4=t=>{let e={shorthand:null,analyze:null,inspect:null,fetch:null,sync:null,windows:null,dropdown:null,tooltip:null};for(let n of Lj(t))e[n]=me(n);return p4(t)&&(e.sync=me("sync")),e},YC=async(t,e={})=>{let n=e.symbolsConfig,r=n?.owner&&n?.key?`${n.owner}--${n.key}`:n?.key,o=e.key=e.key||r||(v(t)?t:"smblsapp");(!e.define||e.define===Hi)&&(e.define={...Hi}),e.cssPropsRegistry=xt,e.window=N3(e);let s=h4(e),i=mZ(t,e);if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__&&e.sharedLibraries&&e.sharedLibraries.length)IC(e);else if(e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(x=>{let E=KC(x);return typeof E=="string"||WC(E)})){e.sharedLibraries=pZ(e.sharedLibraries,e.symbolsConfig);let x=new Set(e.sharedLibraries.map(T=>KC(T)).filter(T=>k(T)&&!WC(T))),E=await Wf(e.sharedLibraries,{apiBaseUrl:Jb()});e.sharedLibraries=i==="raw-json"?E:bZ(E,x)}c3(e.sharedLibraries),IC(e)}Li(e)&&el(e,e.designSystem);let a=GC.get(e);a&&(GC.delete(e),Y3(a)&&(e.preparedDesignSystem=await a));let[c,l]=X3(o,e);if(e.designSystem=c,e.registry=l,tu(e,{apiBaseUrl:Jb()}),e.cases||(e.cases={}),e.shorthand){let y=await(s.shorthand||me("shorthand"));y&&y.shorthandPlugin.prepareContext(e)}let f=Z3(t,e);if(e.state=f,kf(f),e.pages=J3(t,e),e.components=$3(e),e.utils=F3(e),_o[e.packageManager]){let y=U3(e);y&&y.deferred?(y.blocking&&await DC({...e,dependencies:y.blocking}),qC.set(e,y.deferred)):e.dependencies=await DC(e)}if(e.methods=B3(e),e.routerOptions=PF(t,e),e.defaultExtends=[fy],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope=e.globalScope||{},e.plugins.some(y=>!y||typeof y!="object")){let y=e.plugins.filter(x=>!x||typeof x!="object");e.plugins=e.plugins.filter(x=>x&&typeof x=="object"),e.verbose!==!1&&console.warn(`[smbls] context.plugins carried ${y.length} non-plugin entr${y.length===1?"y":"ies"} (${y.map(x=>JSON.stringify(x)).join(", ")}) \u2014 dropped. A published project that imports a framework plugin it does not declare ships a stub phantom here; the runtime registers polyglot/helmet/fetch/... itself from the context config, so remove the import instead.`)}let u=e.globalScope;e.globalScope&&k(e.globalScope)&&(e.globalScope=gs(e.globalScope));let d=(y,x)=>{i==="raw-json"&&u4(y,x)};d(t),d(e,"components"),d(e,"pages"),d(e,"functions"),d(e,"methods"),d(e,"snippets"),d(e,"app"),jf(e,u),Uf(e);let p=y=>y&&typeof y.select=="function";if(e.fetch?.__resolved&&!p(e.fetch.__resolved)&&delete e.fetch.__resolved,e.db?.__resolved&&!p(e.db.__resolved)&&delete e.db.__resolved,e.polyglot&&!Xe(e,"polyglot")){e.plugins.push(pl);for(let y in Sp)typeof e.functions[y]!="function"&&(e.functions[y]=Sp[y])}if(e.polyglot&&e.functions&&typeof e.functions.loadTranslations=="function"&&(e.functions.loadTranslations=FC(e.functions.loadTranslations)),Xe(e,"helmet")||e.plugins.push(Yb),Xe(e,"inertOutside")||e.plugins.push(sy),e.fetch){let y=await(s.fetch||me("fetch"));if(y){Xe(e,"fetch")||e.plugins.push(y.fetchPlugin);let{fetchFunctions:x}=y;for(let E in x)typeof e.functions[E]!="function"&&(e.functions[E]=x[E])}}if(e.designSystem?.typography?.useCapsize!==!1&&!Xe(e,"capsize")&&(e.plugins.push(r_),e.cssPropsRegistry.useCapsize=jC),e.shorthand&&!Xe(e,"shorthand")){let y=await(s.shorthand||me("shorthand"));y&&e.plugins.push(y.shorthandPlugin)}if(e.analyze&&!Xe(e,"analyze")){let y=await(s.analyze||me("analyze"));if(y){let x=e.analyze===!0?{}:e.analyze;e.analyze=y.createAnalyzeState(x),e.plugins.push(y.analyzePlugin)}}let g=e.sync!==!1&&Li(e),h=p4(e)?await(s.sync||me("sync")):null;if(h&&g&&!Xe(e,"sync")&&e.plugins.push(h.syncPlugin),e.inspect&&!Xe(e,"inspect")){let y=await(s.inspect||me("inspect"));y&&e.plugins.push(y.inspectPlugin)}h&&d4(e)&&!Xe(e,"notifications")&&e.plugins.push(h.notificationsPlugin);let m=async y=>{if(e[y]===!1)return;let x=await(s[y]||me(y));if(!x)return;let{components:E,functions:T}=x;for(let S in E)k(e.components[S])||(e.components[S]=E[S]);for(let S in T)typeof e.functions[S]!="function"&&(e.functions[S]=T[S])};return await m("windows"),await m("dropdown"),await m("tooltip"),e},kp=async(t,e)=>{k(e)||(e={});let n=AF(e);h4(e);let r=G3(e);if(r&&GC.set(e,r),n&&(n.lease=EF(e),await hr(),!n.lease.live()))return Gc(k(t)?t:{});wr(t)?(e.parent=t,t={}):v(t)?(e.key=t,t={}):k(t)?t={...t}:t={};let o=e.window||(typeof window<"u"?window:null),s=E3(e,o);globalThis.__SMBLS_BUILD_DROP_F_prerender__&&s&&zt("prerender");let i=!globalThis.__SMBLS_BUILD_DROP_F_prerender__&&s?v3(e):null;if(await YC(t,e),e.useReset!==!1){let u=e.document||(typeof document<"u"?document:null);if(u){let d=u.head.querySelector("style[data-smbls]");d||(d=u.createElement("style"),d.setAttribute("data-smbls",""),u.head.appendChild(d));let p=d.sheet;if(p){try{p.insertRule("*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }",0)}catch{}try{p.insertRule("h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }",1)}catch{}}}}if(e.app&&k(e.app))for(let u in e.app)t[u]===void 0&&(t[u]=e.app[u]);t.extends=a3(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await z3({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e);for(let u of e.plugins)if(typeof u.beforeCreate=="function")try{u.beforeCreate(t,e)}catch(d){console.error(`[smbls] plugin "${u.name||"?"}" beforeCreate error:`,d)}let a=e.document;if(!a||!a.createElement)return HC(e),t;let c=e.parent||a.body,l={verbose:e.verbose,context:e,...e.domqlOptions};if(!globalThis.__SMBLS_BUILD_DROP_F_prerender__&&s){let u=await P3(Xt,t,c,e,o,i,l,n);return Kd(u)||(HC(e),VC(e)),u}let f=n?await CF(t,c,e,l,n):Xt(t,c,e.key,l);return f?(HC(e),VC(e),typeof window<"u"&&!e.document&&(window.__smblsApp=f),f):Gc(t)};var _Z=(t,e)=>{if(!k(e))return bt(t,{});let{state:n,...r}=e;return bt(t,r),n!==void 0&&(k(t.state)&&k(n)?uo(t.state,n):t.state===void 0&&(t.state=n)),t},XC=(t,e)=>i3(_Z(t===fl?{}:t,e)),wZ=t=>{if(typeof document>"u")return;let e=t.themeRoot||t.document&&t.document.documentElement||document.documentElement;if(!e||typeof e.setAttribute!="function")return;let n=t.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(n=s)}}catch{}let r=t.themeStorageKey;if(n==="auto"&&r&&typeof localStorage<"u")try{let s=localStorage.getItem(r);s&&(n=s)}catch{}let o=n==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():n;e.setAttribute("data-theme",o),t.globalTheme=n,t.themeRoot=e},SZ=()=>{if(typeof document>"u")return null;try{let t=document.querySelector('meta[name="symbols-runtime"]'),e=t&&t.getAttribute("content");return typeof e=="string"&&e?e:null}catch{return null}},g4=t=>{let e=SZ();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},ZC=(t,e=fl,n)=>{let r=XC(e,n);return g4(r),wZ(r),kp(t,r).then(s=>{if(Kd(s))return s.destroy=()=>Vi(s),s;if(YA(s,r),s.destroy=()=>Vi(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=qd(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},s.onCreate&&!s.__ref&&s.onCreate(s,s.state,s.context,r),s.context?.analyze?.activate)try{s.context.analyze.activate(s.context)}catch(i){console.error("[analyze] activate error:",i)}return s}).catch(s=>{throw console.error("[smbls] create error:",s),s})},xZ=(t,e=fl,n)=>{let r=ZC(t,e,n),o=XC(e,n),s=o.key;return s&&o.editor&&o.editor.async&&me("fetchOnCreate").then(i=>{i&&i.fetchAsync(r,s,{utils:Wd,...o})}),r},kZ=async(t,e=fl,n)=>{let r=XC(e,n);g4(r);let o=e.key;if(o&&r.editor){let i=await me("fetchOnCreate");i&&await i.fetchSync(o,r)}let s=await kp(t,r);return Kd(s)?(s.destroy=()=>Vi(s),s):(YA(s,r),s.destroy=()=>Vi(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=qd(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},r.onCreate&&await r.onCreate(s,s.state,s.context,r),s)},EZ=(t={},e=fl,n)=>ZC({deps:{isUndefined:Zt},...t},bt({domqlOptions:{onlyResolveExtends:!0}},e),n);Mt();M();Kh();var m4={"@symbo.ls/signal":xl,"@symbo.ls/scratch":sk,"@symbo.ls/element":iy,"@symbo.ls/css":gm,"@symbo.ls/utils":Na,"@symbo.ls/state":hE,"@symbo.ls/router":Uc,"@symbo.ls/polyglot":BC,"@symbo.ls/helmet":xC,"@symbo.ls/fetch":Sa,"@symbo.ls/capsize":UC,"@symbo.ls/shorthand":LT,"@symbo.ls/analyze":Jd,"@symbo.ls/inspect":tp,"@symbo.ls/channels":vC},y4=(t,e)=>{let n=t||(typeof globalThis<"u"?globalThis:{}),r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let o in m4)r[o]||(r[o]=m4[o]);if(e)for(let o in e)r[o]||(r[o]=e[o]);return r},b4=(t,e)=>{let n=t||(typeof globalThis<"u"?globalThis:null);if(!n||!e||typeof e!="object")return null;let r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let o in e){let s=e[o];if(typeof s!="function"||Object.prototype.hasOwnProperty.call(r,o))continue;let i=a=>(Object.defineProperty(r,o,{configurable:!0,enumerable:!0,writable:!0,value:a}),a);Object.defineProperty(r,o,{configurable:!0,enumerable:!0,get:()=>i(s()),set:i})}return r},_4=["@symbo.ls/sdk"],w4=(t,e)=>{let n=e||(typeof globalThis<"u"?globalThis:null);if(!n||!t||typeof t!="object")return null;let r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let o in t){let s=t[o];!s||typeof s!="object"&&typeof s!="function"||r[o]||(r[o]=s)}return r};var tO={};B(tO,{BUILD_DOMQL_SYSTEM_PROMPT:()=>D4,DEFAULT_MAX_TOKENS:()=>f_,DEFAULT_MODEL:()=>rs,DEFAULT_PROVIDER:()=>c_,DEFAULT_TEMPERATURE:()=>l_,MODEL_TIER_ALIASES:()=>QC,PROVIDER_MODELS:()=>x4,SIMONE_BASE_URL:()=>Ep,SIMONE_CHAT_PATH:()=>o_,SIMONE_CODE_PATH:()=>s_,SIMONE_CODE_SYMBOLS_PATH:()=>i_,SIMONE_HEALTH_PATH:()=>a_,SIMONE_TOOLS_PATH:()=>S4,WORKSPACE_SYSTEM_PROMPT:()=>L4,buildMessages:()=>T4,chat:()=>vp,health:()=>A4,parseSimoneResponse:()=>R4,resolveModel:()=>I4,streamChat:()=>vp,streamCode:()=>E4,streamCodeSymbols:()=>v4,toLegacyEnvelope:()=>P4});var Ep="https://symbols-service-production.up.railway.app",o_="/api/chat",s_="/api/code",i_="/api/code-symbols",a_="/api/health",S4="/api/tools",c_="openai-compatible",rs="claude-sonnet-4-6",l_=.7,f_=4096,x4={"openai-compatible":["claude-sonnet-4-6","claude-opus-4-6","gpt-4o","gpt-4o-mini","deepseek-chat"],anthropic:["claude-sonnet-4-6","claude-sonnet-4-5-20250929","claude-opus-4-1-20250805","claude-haiku-4-5-20251001"],openrouter:["google/gemini-3-pro-preview"],gemini:["gemini-3-pro-preview"]};function k4(t,e){return t?t.replace(/\/$/,"")+e:e}function vZ(t){if(!t.startsWith("data: "))return null;let e=t.slice(6);if(e==="[DONE]")return{done:!0};try{return{chunk:JSON.parse(e)}}catch{return{raw:e}}}async function vp(t,e={},n){let{baseUrl:r=Ep,path:o=o_,provider:s=c_,model:i=rs,temperature:a=.7,maxTokens:c=4096,effort:l,apiKeys:f,signal:u,headers:d}=e;if(!Array.isArray(t)||t.length===0)throw new TypeError("simone: messages must be a non-empty array");let p={messages:t,provider:s,model:i,temperature:a,maxTokens:c};l&&(p.effort=l),f&&(p.apiKeys=f);let g=await fetch(k4(r,o),{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream",...d},body:JSON.stringify(p),signal:u});if(!g.ok){let T=g.statusText;try{let w=await g.text();try{let b=JSON.parse(w);T=b.error||b.detail||T}catch{T=w||T}}catch{}let S=new Error(`simone: HTTP ${g.status} \u2014 ${T}`);throw S.status=g.status,S}if(!g.body||typeof g.body.getReader!="function"){let T=await g.text();return n&&n(T),{text:T,errors:[]}}let h=g.body.getReader(),m=new TextDecoder,y=[],x=[],E="";try{for(;;){let{done:T,value:S}=await h.read();if(T)break;E+=m.decode(S,{stream:!0});let w=E.indexOf(`
169
+ `);for(;w!==-1;){let b=E.slice(0,w).trim();if(E=E.slice(w+1),b){let _=vZ(b);if(_?.done)return{text:y.join(""),errors:x};let A=_?.chunk;A?.delta&&(y.push(A.delta),n&&n(A.delta)),A?.error&&x.push(A.error)}w=E.indexOf(`
170
+ `)}}return{text:y.join(""),errors:x}}finally{h.cancel().catch(()=>{})}}function E4(t,e={},n){return vp(t,{...e,path:s_},n)}function v4(t,e={},n){return vp(t,{...e,path:i_},n)}async function A4(t={}){let{baseUrl:e=Ep,signal:n,headers:r}=t,o=await fetch(k4(e,a_),{method:"GET",headers:r,signal:n});if(!o.ok)throw new Error(`simone health: HTTP ${o.status}`);return o.json()}function T4({system:t,history:e=[],user:n,context:r}){let o=[];t&&o.push({role:"system",content:t});for(let s of e)!s||!s.role||typeof s.content!="string"||!s.content||o.push({role:s.role,content:s.content});if(n){let s=n;if(r!=null){let i=typeof r=="string"?r:JSON.stringify(r,null,2);s=`${s}
171
171
 
172
172
  ---
173
173
  Context:
174
174
  \`\`\`json
175
175
  ${i}
176
- \`\`\``}o.push({role:"user",content:s})}return o}var Q3=/```(?<lang>[a-zA-Z0-9_+-]*)\n(?<code>[\s\S]*?)```/g,VX=new Set(["component","components","page","pages","function","method","state","theme","color","font","icon"]);function zX(t){let e=[];for(let n of t.matchAll(Q3))e.push({lang:(n.groups?.lang||"").toLowerCase(),code:n.groups?.code??""});return e}function HX(t){return t.replace(Q3,"").trim()}function $T(t){if(!t||!/[{[]/.test(t))return null;try{return JSON.parse(t)}catch{}try{return JSON.parse(t.replace(/,\s*([}\]])/g,"$1"))}catch{}return null}function J3(t){return!!t&&typeof t=="object"&&typeof t.type=="string"&&VX.has(t.type)}function t4(t){let e=(typeof t=="string"?t:"").trim();if(!e)return{kind:"text",text:"",message:""};let n=zX(e),r=n.filter(i=>/^(js|javascript|ts|typescript|jsx|tsx)$/.test(i.lang)),o=n.filter(i=>i.lang==="json"),s=HX(e);for(let i of o){let a=$T(i.code);if(J3(a))return{kind:"asset",text:s||a.description||"",asset:a,message:a.description||s||`Generated ${a.type}: ${a.title||a.key||""}`.trim()}}if(r.length>0){let i=r[0].code,a=$T("["+i+"]");return Array.isArray(a)&&a.length>1?{kind:"multi",text:s,assets:a,code:i,message:s||`Generated ${a.length} items`}:{kind:"component",text:s,code:i,message:s||"Generated a component"}}if(e.startsWith("{")){let i=$T(e);if(J3(i))return{kind:"asset",text:i.description||"",asset:i,message:i.description||`Generated ${i.type}: ${i.title||i.key||""}`.trim()}}return{kind:"text",text:e,message:e}}function e4(t){if(!t)return{code_response:{type:"error",content:"Empty response from assistant"}};switch(t.kind){case"asset":return{code_response:{type:"json_response",data:t.asset}};case"multi":return{code_response:{type:"symbols_component_code",component_code:t.code}};case"component":return{code_response:{type:"symbols_component_code",component_code:t.code,analysis_text:t.text}};default:return{code_response:{type:"plain_text_response",content:t.text||t.message||""}}}}var n4=["You are Simone, the Symbols.app assistant.","You help users build DOMQL v3 components, pages, and design-system entries.",'When the user asks for a component or page, return a single ```json fenced block whose body is one asset object with shape { type, key, title, description, value }. type is one of "component", "page", "function", "state", "color", "font", "icon", "theme".',"For multiple assets, return one ```js fenced block with comma-separated asset objects.","For general questions, reply with prose only."].join(" "),r4=["You are a DOMQL v3.14 code generator for the Symbols workspace.","Output EXECUTABLE DOMQL v3.14 for the requested page(s)/component(s) \u2014 never a description, never a plan, never an explanation.","Author data-first object schemas: child elements are UPPERCASE keys; styling lives in flat element props (NO attr/props/on wrappers); use design-system tokens (color/typography/spacing keys), never raw px/rem/hex/rgba; `extends` and `childExtends` are quoted strings; event handlers are flat (onClick, onInit) \u2014 never on:{} or props:{} wrappers.","OUTPUT FORMAT \u2014 pick ONE:","- SINGLE page/component: emit exactly one ```js fenced code block whose body is a single DOMQL object literal (an expression \u2014 start with `{`, no `export`, no variable assignment, no surrounding prose).",'- MULTIPLE pages/components: emit exactly one ```json fenced code block whose body is an object of the shape { "pages": { "PageKey": "<DOMQL object-literal source string>" }, "components": { "CompKey": "<DOMQL object-literal source string>" } }. Include only the sections you produce; each value is the DOMQL source for that key.',"Keys are PascalCase. Default to a single page unless the request clearly needs several distinct pages/components.","Emit ONLY the single fenced block. No text before or after it."].join(`
177
- `),FT={Starter:Zo,Free:Zo,Pro:"claude-opus-4-6"};function o4(t){return t?FT[t]||t:Zo}Ty(Vu);U3(void 0,{smbls:jT,"@symbo-ls/simone-server":BT});V3(void 0,{"@symbo.ls/windows":()=>({...FA,...NA}),"@symbo.ls/dropdown":()=>({...WA,...qA})});var s4=Symbol.for("smbls.serverUtils");globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__&&typeof globalThis[s4]!="function"&&(globalThis[s4]=()=>import("@symbo.ls/utils/serverUtils.js"));
176
+ \`\`\``}o.push({role:"user",content:s})}return o}var O4=/```(?<lang>[a-zA-Z0-9_+-]*)\n(?<code>[\s\S]*?)```/g,AZ=new Set(["component","components","page","pages","function","method","state","theme","color","font","icon"]);function TZ(t){let e=[];for(let n of t.matchAll(O4))e.push({lang:(n.groups?.lang||"").toLowerCase(),code:n.groups?.code??""});return e}function CZ(t){return t.replace(O4,"").trim()}function JC(t){if(!t||!/[{[]/.test(t))return null;try{return JSON.parse(t)}catch{}try{return JSON.parse(t.replace(/,\s*([}\]])/g,"$1"))}catch{}return null}function C4(t){return!!t&&typeof t=="object"&&typeof t.type=="string"&&AZ.has(t.type)}function R4(t){let e=(typeof t=="string"?t:"").trim();if(!e)return{kind:"text",text:"",message:""};let n=TZ(e),r=n.filter(i=>/^(js|javascript|ts|typescript|jsx|tsx)$/.test(i.lang)),o=n.filter(i=>i.lang==="json"),s=CZ(e);for(let i of o){let a=JC(i.code);if(C4(a))return{kind:"asset",text:s||a.description||"",asset:a,message:a.description||s||`Generated ${a.type}: ${a.title||a.key||""}`.trim()}}if(r.length>0){let i=r[0].code,a=JC("["+i+"]");return Array.isArray(a)&&a.length>1?{kind:"multi",text:s,assets:a,code:i,message:s||`Generated ${a.length} items`}:{kind:"component",text:s,code:i,message:s||"Generated a component"}}if(e.startsWith("{")){let i=JC(e);if(C4(i))return{kind:"asset",text:i.description||"",asset:i,message:i.description||`Generated ${i.type}: ${i.title||i.key||""}`.trim()}}return{kind:"text",text:e,message:e}}function P4(t){if(!t)return{code_response:{type:"error",content:"Empty response from assistant"}};switch(t.kind){case"asset":return{code_response:{type:"json_response",data:t.asset}};case"multi":return{code_response:{type:"symbols_component_code",component_code:t.code}};case"component":return{code_response:{type:"symbols_component_code",component_code:t.code,analysis_text:t.text}};default:return{code_response:{type:"plain_text_response",content:t.text||t.message||""}}}}var L4=["You are Simone, the Symbols.app assistant.","You help users build DOMQL v3 components, pages, and design-system entries.",'When the user asks for a component or page, return a single ```json fenced block whose body is one asset object with shape { type, key, title, description, value }. type is one of "component", "page", "function", "state", "color", "font", "icon", "theme".',"For multiple assets, return one ```js fenced block with comma-separated asset objects.","For general questions, reply with prose only."].join(" "),D4=["You are a DOMQL v3.14 code generator for the Symbols workspace.","Output EXECUTABLE DOMQL v3.14 for the requested page(s)/component(s) \u2014 never a description, never a plan, never an explanation.","Author data-first object schemas: child elements are UPPERCASE keys; styling lives in flat element props (NO attr/props/on wrappers); use design-system tokens (color/typography/spacing keys), never raw px/rem/hex/rgba; `extends` and `childExtends` are quoted strings; event handlers are flat (onClick, onInit) \u2014 never on:{} or props:{} wrappers.","OUTPUT FORMAT \u2014 pick ONE:","- SINGLE page/component: emit exactly one ```js fenced code block whose body is a single DOMQL object literal (an expression \u2014 start with `{`, no `export`, no variable assignment, no surrounding prose).",'- MULTIPLE pages/components: emit exactly one ```json fenced code block whose body is an object of the shape { "pages": { "PageKey": "<DOMQL object-literal source string>" }, "components": { "CompKey": "<DOMQL object-literal source string>" } }. Include only the sections you produce; each value is the DOMQL source for that key.',"Keys are PascalCase. Default to a single page unless the request clearly needs several distinct pages/components.","Emit ONLY the single fenced block. No text before or after it."].join(`
177
+ `),QC={Starter:rs,Free:rs,Pro:"claude-opus-4-6"};function I4(t){return t?QC[t]||t:rs}$y(Xu);y4(void 0,{smbls:eO,"@symbo-ls/simone-server":tO});b4(void 0,{"@symbo.ls/windows":()=>({...JA,...XA}),"@symbo.ls/dropdown":()=>({...sT,...aT})});var M4=Symbol.for("smbls.serverUtils");globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__&&typeof globalThis[M4]!="function"&&(globalThis[M4]=()=>import("@symbo.ls/utils/serverUtils.js"));
178
178
  //# sourceMappingURL=smbls.cjs.map