smbls 3.14.886 → 3.14.887

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 (48) hide show
  1. package/dist/production/smbls.core.chunk-GFBVJXLP.esm.js +28 -0
  2. package/dist/production/smbls.core.chunk-GFBVJXLP.esm.js.map +1 -0
  3. package/dist/production/{smbls.core.chunk-TQITYKD5.esm.js → smbls.core.chunk-P5JJWRYT.esm.js} +4 -4
  4. package/dist/production/smbls.core.chunk-P5JJWRYT.esm.js.map +1 -0
  5. package/dist/production/{smbls.core.dropdown-QSJB2Z5L.esm.js → smbls.core.dropdown-AYIPIKTP.esm.js} +2 -2
  6. package/dist/production/smbls.core.esm.js +1 -1
  7. package/dist/production/{smbls.core.inspect-TGR7IPJS.esm.js → smbls.core.inspect-V3GJJN35.esm.js} +2 -2
  8. package/dist/production/{smbls.core.lazyParts-3F6F6GIV.esm.js → smbls.core.lazyParts-2XIGVJCX.esm.js} +1 -1
  9. package/dist/production/{smbls.core.lazyParts-3F6F6GIV.esm.js.map → smbls.core.lazyParts-2XIGVJCX.esm.js.map} +1 -1
  10. package/dist/production/{smbls.core.sync-A3DEBFFW.esm.js → smbls.core.sync-6NCCEIPQ.esm.js} +2 -2
  11. package/dist/production/{smbls.core.windows-3AOSIWR4.esm.js → smbls.core.windows-ILH6CKYU.esm.js} +2 -2
  12. package/dist/production/smbls.esm.js +54 -54
  13. package/dist/production/smbls.esm.js.map +1 -1
  14. package/dist/smbls.cjs +46 -46
  15. package/dist/smbls.cjs.map +3 -3
  16. package/dist/smbls.core.chunk-IFDTZO3U.esm.js +28 -0
  17. package/dist/smbls.core.chunk-IFDTZO3U.esm.js.map +1 -0
  18. package/dist/{smbls.core.chunk-F5SLBNWC.esm.js → smbls.core.chunk-YDKCDGEA.esm.js} +4 -4
  19. package/dist/smbls.core.chunk-YDKCDGEA.esm.js.map +1 -0
  20. package/dist/{smbls.core.dropdown-ACGBLARJ.esm.js → smbls.core.dropdown-ISPUYMUC.esm.js} +2 -2
  21. package/dist/smbls.core.esm.js +1 -1
  22. package/dist/{smbls.core.inspect-RTQV6NFQ.esm.js → smbls.core.inspect-5AB7TOZL.esm.js} +2 -2
  23. package/dist/{smbls.core.lazyParts-NWDPLISQ.esm.js → smbls.core.lazyParts-FDRPM44Z.esm.js} +1 -1
  24. package/dist/{smbls.core.lazyParts-NWDPLISQ.esm.js.map → smbls.core.lazyParts-FDRPM44Z.esm.js.map} +1 -1
  25. package/dist/{smbls.core.sync-N3LQON3L.esm.js → smbls.core.sync-VY4E7CEU.esm.js} +2 -2
  26. package/dist/{smbls.core.windows-BRYVX6C4.esm.js → smbls.core.windows-WSYIFSBZ.esm.js} +2 -2
  27. package/dist/smbls.esm.js +46 -46
  28. package/dist/smbls.esm.js.map +1 -1
  29. package/dist/smbls.iife-prod-string.js +2 -2
  30. package/dist/smbls.iife-string.js +2 -2
  31. package/dist/smbls.iife.js +1 -1
  32. package/dist/smbls.iife.js.map +1 -1
  33. package/dist/smbls.tree-shake.json +6 -0
  34. package/package.json +2 -2
  35. package/dist/production/smbls.core.chunk-3G5DFN5M.esm.js +0 -28
  36. package/dist/production/smbls.core.chunk-3G5DFN5M.esm.js.map +0 -1
  37. package/dist/production/smbls.core.chunk-TQITYKD5.esm.js.map +0 -1
  38. package/dist/smbls.core.chunk-F5SLBNWC.esm.js.map +0 -1
  39. package/dist/smbls.core.chunk-T7BYTQOA.esm.js +0 -28
  40. package/dist/smbls.core.chunk-T7BYTQOA.esm.js.map +0 -1
  41. /package/dist/production/{smbls.core.dropdown-QSJB2Z5L.esm.js.map → smbls.core.dropdown-AYIPIKTP.esm.js.map} +0 -0
  42. /package/dist/production/{smbls.core.inspect-TGR7IPJS.esm.js.map → smbls.core.inspect-V3GJJN35.esm.js.map} +0 -0
  43. /package/dist/production/{smbls.core.sync-A3DEBFFW.esm.js.map → smbls.core.sync-6NCCEIPQ.esm.js.map} +0 -0
  44. /package/dist/production/{smbls.core.windows-3AOSIWR4.esm.js.map → smbls.core.windows-ILH6CKYU.esm.js.map} +0 -0
  45. /package/dist/{smbls.core.dropdown-ACGBLARJ.esm.js.map → smbls.core.dropdown-ISPUYMUC.esm.js.map} +0 -0
  46. /package/dist/{smbls.core.inspect-RTQV6NFQ.esm.js.map → smbls.core.inspect-5AB7TOZL.esm.js.map} +0 -0
  47. /package/dist/{smbls.core.sync-N3LQON3L.esm.js.map → smbls.core.sync-VY4E7CEU.esm.js.map} +0 -0
  48. /package/dist/{smbls.core.windows-BRYVX6C4.esm.js.map → smbls.core.windows-WSYIFSBZ.esm.js.map} +0 -0
@@ -0,0 +1,28 @@
1
+ function __smblsNs(c,a){for(var b in a)Object.defineProperty(c,b,{get:a[b],enumerable:!0});return c}import{$c as ms,Ad as mt,E as us,Ec as Ff,Fb as ds,Gb as ps,Hc as Ve,I as If,Ib as Bf,Ic as xe,Mc as jf,Nc as Wf,Ob as Cr,Pb as vr,Q as Lf,Qc as $f,R as Q,Rc as Uf,Sc as zf,Tb as lo,Tc as gs,Uc as Hf,Vc as _s,Wc as ys,Xc as uo,Yc as Vf,Zc as Gf,_b as Dt,ad as Kf,bc as Mf,bd as ot,cd as O,db as at,dd as Ge,eb as it,fb as X,hc as we,ic as fo,kb as Ar,l as Rf,od as D,pd as An,q as Df,qd as ke,rd as zt,sd as Er,td as qf,ud as Yf,vb as Pf,vd as ce,wd as It,xc as hs,xd as bs,yd as Ke,zc as Nf,zd as Lt}from"./smbls.core.chunk-YNNZ5SNI.esm.js";import{L as Tr,O as Ef,P as Of}from"./smbls.core.chunk-EZHRCBKB.esm.js";import{f as mr,h as P,i as df,j as se,l as as,m as pf,n as hf,o as Ue,p as gf,q as H,u as _f}from"./smbls.core.chunk-EPCSF55E.esm.js";import{Ba as ao,Ca as Af,Ea as He,I as bf,Ka as xr,R as fs,T as Sf,Wa as Cf,Xa as vf,Ya as co,ba as pt,d as j,e as L,g as nt,j as cs,ja as wf,ka as xf,kb as kr,l as ae,m as Se,ma as wr,n as Sr,oa as kf,p as so,qa as Tf,ya as Z,z as mf,za as Tn}from"./smbls.core.chunk-RW62KU27.esm.js";import{c as br,d as yf,j as ls,k as ze}from"./smbls.core.chunk-YXDZZRHE.esm.js";import{a as M}from"./smbls.core.chunk-WFARPHWF.esm.js";var n0=t=>{let{state:e,props:n,__ref:o}=t,r=n?.state||e;return so(r)("string","number")?(o.__state=r,{value:r}):r===!0?(o.__state=t.key,{}):r?(o.__hasRootState=!0,r):!1},Cb=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},vb=(t,e)=>{if(!t.includes("../"))return;let o=t.split("../").length-1;for(let r=0;r<o;r++){if(!e.parent)return null;e=e.parent}return e},Eb=(t,e,n={})=>{let o=L(t)?t.split("/"):[t],r=o.length-1;for(let i=0;i<r;i++){let s=o[i],a=o[i+1];if(s==="__proto__"||a==="__proto__")return;let l=e[s];l||(l=e[s]={}),l[a]||(l[a]={}),t=a,e=l}return n.returnParent?e:e[t]},Ob=(t,e,n={})=>{let r=t.__ref.__state;if(!Rb(t))return;let i=Cb(r,e.state),s=e.state;if(i)s=i,r=r.replaceAll("~/","");else{let a=vb(r,e.state);a&&(s=a,r=r.replaceAll("../",""))}if(s)return Eb(r,s,n)},o0=(t,e)=>{let n=t.__ref,o=Ob(t,e);if(o===void 0)return t.state;if(so(o)("object","array"))return He(o);if(so(o)("string","number","boolean"))return n.__stateType=typeof o,{value:o}},Rb=t=>{let{__ref:e}=t,n=e?.__state;return!!(n&&so(n)("number","string","boolean"))},r0=function(t){return ae(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},i0=(t,e)=>{if(!t)return e||{};let n=t.split("/"),o={},r=o,i=n.length-1;for(let s=0;s<=i;s++)r[n[s]]=s===i?e||{}:{},r=r[n[s]];return o},s0=(t,e)=>{let{__element:n}=e,o=n?.state;if(!o)return;let r=He(o,wr),i={[t.key]:r},s=j(o.__depends)?{...o.__depends,...i}:i;return Array.isArray(o)?bf(o,{...Object.getPrototypeOf(o),__depends:s}):Object.setPrototypeOf(o,{...Object.getPrototypeOf(o),__depends:s}),r},Db=new Set(["parent","root"]),Zf=new Set,Ib=t=>{Zf.has(t)||Zf.add(t)},Jf=(t,e,n,o)=>{if(t===e)return t;for(let r=0;r<o.length;r+=2)if(o[r]===t&&o[r+1]===e)return t;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r.charCodeAt(0)===95&&r.charCodeAt(1)===95||r==="constructor"||r==="prototype")continue;let i=n?n+"."+r:r;if(Db.has(r)){Ib(i);continue}let s=t[r],a=e[r];ae(s)&&ae(a)?(o.push(t,e),Jf(s,a,i,o),o.length-=2):s===void 0&&(t[r]=a)}return t},a0=(t,e)=>!ae(t)||!ae(e)?t:Jf(t,e,"",[]),c0=(t,e,n={})=>{let{overwrite:o}=n;if(!o)return;let r=o==="shallow";if(o==="merge"){Af(t,e,wr);return}(r?vf:co)(t,e,wr)},Xf="__polyglotSeededKeys",po=t=>{if(!j(t))return new Set;let e=t[Xf];if(!(e instanceof Set)){e=new Set;try{Object.defineProperty(t,Xf,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},tu=(t,e,n)=>po(t).has(e)?!0:!j(n)||n[e]===void 0,Qf="__polyglotSeededValues",eu=t=>{if(!j(t))return new Map;let e=t[Qf];if(!(e instanceof Map)){e=new Map;try{Object.defineProperty(t,Qf,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},nu=t=>{if(t===null||typeof t!="object")return typeof t+":"+String(t);try{return"json:"+JSON.stringify(t)}catch{return null}},l0=(t,e,n)=>{if(!po(t).has(e))return!1;let o=eu(t);if(!o.has(e))return!0;let r=j(n)||Array.isArray(n)?n[e]:void 0,i=nu(r);return i!==null&&i===o.get(e)},ou=(t,e,...n)=>(po(t).add(e),n.length&&eu(t).set(e,nu(n[0])),e);var ru=t=>"on"+t.charAt(0).toUpperCase()+t.slice(1),Or=(t,e,n)=>(t.error=n,ze("error",t,{hook:e,error:n})),Lb=(t,e,n,o,r,i)=>{if(t=ls(t,e),!!nt(t))try{let s=t.call(e,e,n||e.state,o||e.context,r);return s&&typeof s.then=="function"&&s.catch(a=>{Or(e,i,a)||(a instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",a.message):console.error("[DOMQL] Async event error:",a))}),s}catch(s){if(Or(e,i,s)||(s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s)),e.context?.strictMode)throw s}},Cn=(t,e,n)=>{if(!e)throw new Error("Element is required");ze(t,e,n);let o=ru(t),r=e[o];if(r){let{state:i,context:s}=e;return Lb(r,e,i,s,n,o)}},Pb=(t,e,n,o,r,i,s)=>{if(t=ls(t,n),!!nt(t))try{let a=t.call(n,e,n,o||n.state,r||n.context,i);return a&&typeof a.then=="function"&&a.catch(l=>{Or(n,s,l)||console.error("[DOMQL] Async event update error:",l)}),a}catch(a){if(Or(n,s,a)||console.error("[DOMQL] Event update error:",a),n.context?.strictMode)throw a}},iu=(t,e,n,o)=>{ze(t,n,e,o);let r=ru(t),i=n[r];if(i){let{state:s,context:a}=n;return Pb(i,e,n,s,a,o,r)}};var h0={},su={};var Te="production";function lu(t){let e=this,{__ref:n}=e,o=[].concat(t),r=n.root[o[0]];if(!o||!o.length)return console.log(o,"on",e.key,"is undefined");for(;r.key===o[0]&&(o.shift(),!!o.length);)if(r=r[o[0]],!r)return;return r}function k0(t){let e=this,{parent:n}=e;if(nt(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 T0(t){let e=this,{__ref:n}=e,o=n?.__children;if(o)for(let r=0;r<o.length;r++){let i=o[r],s=e[i];if(i===t)return s;if(nt(t)){let l=t(s,s.state,s.context);if(s.state&&l)return s}let a=s?.lookdown?.(t);if(a)return a}}function A0(t,e=[]){let n=this,{__ref:o}=n,r=o?.__children;if(r){for(let i=0;i<r.length;i++){let s=r[i],a=n[s];if(s===t)e.push(a);else if(nt(t)){let l=t(a,a.state,a.context);a.state&&l&&e.push(a)}a?.lookdownAll?.(t,e)}return e.length?e:void 0}}function Bb(t={}){let e=this;if(e.node?.style){for(let n in t){let o=t[n],r=e[n];if(j(o)&&r)Bb.call(r,o);else if(o!=null){let i=n.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),s=String(o).replace(/\s*!important\s*$/,"");e.node.style.setProperty(i,s,"important")}}return e}}function C0(t){let e=this;if(Cn("beforeRemove",e,t)===!1)return e;nt(e.node.remove)?e.node.remove():kr()||e.log(),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=mf(e.parent.__ref.__children,e.key)),Cn("remove",e,t)}function v0(t){return this[t]}function E0(t,e){let n=this;if(t)return n.update(t,e),n}function O0(t){return t?this.__ref&&this.__ref[t]:this.__ref}function R0(){let t=this.getRef("__children");return Array.isArray(t)?t.map(e=>this[e]):[]}function fu(){return this.getRef().path}var Rr=null,D0=t=>{Rr=t||null},ws=(t,e)=>{t&&e&&Rr===t&&(Rr=e)},au=()=>Rr||null;function uu(t){let e=null,n=o=>o.__element&&o.root?.isRootState;if(!this)e=au();else if(n(this))e=this.root;else if(this.__ref&&this.__ref.path){let o=this.state&&n(this.state),r=nt(this.state)&&this.parent.state&&n(this.parent.state);(o||r)&&(e=this.state.root||this.parent.state.root)}return e||(e=au()),t?e?.[t]:e}function du(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 pu(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function hu(t){let e=this.getRoot()?.context;return t?e[t]:e}function gu(t){let e=this.context;return t?e[t]:e}var I0=(t,e,n,o)=>Object.defineProperty(t,e,{get:n,set:o});function Mb(){let t=this,e=[];for(let n in t)!Object.prototype.hasOwnProperty.call(t,n)||wf.has(n)&&!xf.has(n)||e.push(n);return e}function Nb(t=[]){let e=this,n={},o=Mb.call(e),r=o.includes("children"),i=t.length?new Set(t):null;for(let s=0;s<o.length;s++){let a=o[s];if(i&&i.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||r&&a==="content")continue;let l=e[a];if(a==="state"){if(e.__ref&&!e.__ref.__hasRootState)continue;let c=nt(l&&l.parse)?l.parse():l;n[a]=nt(c)?c:JSON.parse(JSON.stringify(c||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;n[a]=JSON.parse(JSON.stringify(l||{}))}else if(a==="props"){let{__element:c,update:f,...u}=e[a];n[a]=u}else Se(l)&&Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=l)}return n}function cu(t=[],e=new WeakSet){let n=this;if(e.has(n))return;e.add(n);let o=Nb.call(n,t),r=t.length?new Set(t):null;for(let i in o){if(r&&r.has(i)||!Object.prototype.hasOwnProperty.call(n,i))continue;let s=o[i];Array.isArray(s)?o[i]=s.map(a=>ae(a)?cu.call(a,t,e):a):ae(s)&&(o[i]=cu.call(s,t,e))}return o}function xs(...t){if(Te!=="test"&&Te!=="development")return;let e=this,{__ref:n}=e;return console.groupCollapsed(e.key),t.length?t.forEach(o=>console.log(`%c${o}:
2
+ `,"font-weight: bold",e[o])):(console.log(n.path),e.keys().forEach(r=>console.log(`%c${r}:`,"font-weight: bold",e[r]))),console.log(e),console.groupEnd(e.key),e}function L0(...t){(Te==="test"||Te==="development")&&console.log(...t)}function _u(...t){(Te==="test"||Te==="development")&&console.warn(...t)}function Dr(...t){if(Te==="test"||Te==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&xs.call(this),new Error(...t)}}function yu(){let t=this,{key:e,parent:n}=t,{__children:o}=n.__ref,r=o.indexOf(e),i=o[r+1];return n[i]}function mu(t){let e=t||this,{key:n,parent:o}=e,{__children:r}=o.__ref;if(!r)return;let i=r.indexOf(n);return o[r[i-1]]}function bu(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let n=e.data.varCaches,o={},r;for(let i in t)t[i]!==n[i]&&(r=!0,o[i]=t[i]);return{changed:i=>{if(!r)return;let s=i(o,He(n));for(let a in o)n[a]=o[a];return s},timeout:(i,s)=>{if(!r)return;let a=setTimeout(()=>{i(o),clearTimeout(a)},s)}}}function P0(t,...e){let n=this.context,o=n.utils?.[t]||n.functions?.[t]||n.methods?.[t]||n.snippets?.[t];if(o&&!xr(o))try{let r=o.call(this,...e);return r&&typeof r.then=="function"&&r.catch(i=>{Dr.call(this,i)}),r}catch(r){if(Dr.call(this,r),n?.strictMode)throw r}}var Fb="[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.",ho=()=>import("./smbls.core.fetch-S64OGKYY.esm.js").catch(t=>{throw new Error(Fb,{cause:t})}),jb=t=>{let e=t&&t.plugins;if(e){for(let n of e)if(n&&typeof n.fetchSettled=="function")return!0}return!1};function Su(){let t=Wb(this);return jb(this&&this.context)?t.then(e=>e&&ho().then(n=>n.settledView(e,this)).catch(()=>e)):t}async function Wb(t){let e=t.context?.fetch;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:r}=await ho();await r(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:r}=await ho();await r(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let n=ho().then(({resolveDb:r})=>r(e));e.__resolving=n;let o=await n;if(e.__resolved=o,t.context.fetch=o,delete e.__resolving,o?.getSession){let{initAdapterAuth:r}=await ho();await r(o,t.context)}return o}function wu(t){let e=this,n=t||su.useStateQuery||e.context?.useStateQuery;if(!n)return null;let o={};if(Ss(e,o),n===!0)return o;let r=Kb[n];return r?r(o):o}var Ss=(t,e)=>{let n=t.__ref;if(!n)return;let o=n.__state;o&&typeof o=="string"&&$b(e,o);let r=n.__children;if(r)for(let a=0;a<r.length;a++){let l=t[r[a]];l&&l.__ref&&Ss(l,e)}let i=n.contentElementKey||"content",s=t[i];s&&s.__ref&&Ss(s,e)},$b=(t,e)=>{let o=e.replaceAll("../","").replaceAll("~/","").split("/"),r=t;for(let i=0;i<o.length;i++){let s=o[i];i===o.length-1?r[s]||(r[s]=!0):(r[s]===!0&&(r[s]={}),r[s]||(r[s]={}),r=r[s])}},xu=(t,e=0)=>{let n=" ".repeat(e),o=Object.entries(t);return o.length?o.map(([i,s])=>s===!0?`${n}${i}`:`${n}${i} {
3
+ ${xu(s,e+1)}
4
+ ${n}}`).join(`
5
+ `):""},Ub=t=>`{
6
+ ${xu(t,1)}
7
+ }`,zb=t=>{let e={fields:{},include:[]},n=(o,r)=>{let i=[];for(let s in o)if(o[s]===!0)i.push(s);else{let a=r?`${r}.${s}`:s;e.include.push(a),n(o[s],a)}i.length&&(e.fields[r||"_root"]=i)};return n(t,""),e},Hb=t=>{let e=i=>{let s=[],a=[];for(let l in i)if(i[l]===!0)s.push(l);else{let c=e(i[l]),f=[];c.select&&f.push(`$select=${c.select}`),c.expand&&f.push(`$expand=${c.expand}`),a.push(f.length?`${l}(${f.join(";")})`:l)}return{select:s.length?s.join(","):"",expand:a.length?a.join(","):""}},{select:n,expand:o}=e(t),r=[];return n&&r.push(`$select=${n}`),o&&r.push(`$expand=${o}`),r.join("&")},Vb=(t,e)=>{let n=[],o=[],r=new Set,i=(f,u,d)=>{r.add(u),d&&o.push(`LEFT JOIN ${u} ON ${u}.${d}_id = ${d}.id`);for(let p in f)f[p]===!0?n.push(`${u}.${p}`):i(f[p],p,u)},s=Object.keys(t);s.length===1&&t[s[0]]!==!0?i(t[s[0]],s[0],null):i(t,"_root",null);let a=[...r][0]||"_root",l=n.length?n.join(", "):"*",c=o.length?`
8
+ `+o.join(`
9
+ `):"";return`SELECT ${l}
10
+ FROM ${a}${c}`},Gb=t=>{let e=[],n=(o,r)=>{for(let i in o){let s=r?`${r}/${i}`:i;o[i]===!0?e.push(s):n(o[i],s)}};return n(t,""),e},Kb={graphql:Ub,"json-api":zb,odata:Hb,sql:Vb,paths:Gb};function B0(t,e){return!!(kf.has(t)||e?.context?.methods?.[t])}var Ir=Symbol.for("@symbo.ls/utils:textReady"),qb=()=>{let t=globalThis[Ir];if(!t){t={depth:0,ready:!0};try{Object.defineProperty(globalThis,Ir,{value:t,configurable:!0})}catch{globalThis[Ir]=t}}return t};function go(t){let e=qb(),n=e.ready;e.depth++,e.ready=!0;try{return{value:t(),ready:e.ready}}finally{e.depth--,e.ready=n}}function N0(){let t=globalThis[Ir];t&&t.depth>0&&(t.ready=!1)}var Ht=t=>{let e=t&&t.src;if(!e||typeof e!="string")return null;let n=t.context;if(!n)return null;let o=n.assets&&n.assets[e]||n.files&&n.files[e];if(!o)return null;if(typeof o=="string")return{src:o,type:null,variants:null};if(typeof o=="object"){if(typeof o.src=="string")return o;let r=o.content,i=r&&r.src;if(typeof i=="string")return{...o,src:i,type:o.type??r.type??null,variants:o.variants??r.variants??null}}return null},ks=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return"";let n=t.some(r=>typeof r.width=="number"),o=[];for(let r of t)n&&typeof r.width=="number"?o.push(`${r.src} ${r.width}w`):n||(r.scale===1&&e?o.push(r.src):r.scale&&r.scale!==1&&o.push(`${r.src} ${r.scale}x`));return o.join(", ")},ku=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(n=>n.format===t.type);return ks(e,{keepOneX:!1})},Tu=(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 o=[];for(let[a,l]of n)a!==t.type&&o.push({tag:"source",attr:{type:a,srcset:ks(l,{keepOneX:!0})}});let r=n.get(t.type)||[],i=ks(r,{keepOneX:!1}),s={src:t.src,alt:e||""};return i&&(s.srcset=i),[...o,{tag:"img",attr:s}]};var R=(t,e)=>e.split(" ").map(n=>t+"-"+n),Cs="top right bottom left",vs=Cs+" block block-start block-end inline inline-start inline-end",bt="start end",fe="width style color",Lr=t=>R(t,vs),Yb=(()=>{let t=R("border","width style color image");for(let e of vs.split(" "))t.push("border-"+e,...R("border-"+e,fe));return t})(),Au=t=>[...R("border-"+t,fe+" start end"),...R("border-"+t+"-start",fe),...R("border-"+t+"-end",fe)],V={animation:R("animation","name duration timing-function delay iteration-count direction fill-mode play-state timeline range range-start range-end"),background:R("background","image position position-x position-y size repeat origin clip attachment color"),border:Yb};for(let t of["width","style","color"])V["border-"+t]=vs.split(" ").map(e=>"border-"+e+"-"+t);for(let t of Cs.split(" "))V["border-"+t]=R("border-"+t,fe);V["border-block"]=Au("block");V["border-inline"]=Au("inline");Object.assign(V,{"border-image":R("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:R("column","width count"),"column-rule":R("column-rule",fe),container:R("container","name type"),"contain-intrinsic-size":R("contain-intrinsic","width height"),flex:R("flex","grow shrink basis"),"flex-flow":R("flex","direction wrap"),font:[...R("font","style variant weight stretch size"),"line-height",...R("font","family size-adjust kerning feature-settings variation-settings optical-sizing")],gap:["row-gap","column-gap"],grid:R("grid","template template-rows template-columns template-areas auto-rows auto-columns auto-flow"),"grid-template":R("grid-template","rows columns areas"),"grid-area":R("grid","row column row-start row-end column-start column-end"),"grid-row":R("grid-row",bt),"grid-column":R("grid-column",bt),inset:[...Cs.split(" "),...R("inset","block block-start block-end inline inline-start inline-end")],"inset-block":R("inset-block",bt),"inset-inline":R("inset-inline",bt),"list-style":R("list-style","type position image"),margin:Lr("margin"),"margin-block":R("margin-block",bt),"margin-inline":R("margin-inline",bt),mask:R("mask","image mode repeat position clip origin size composite"),offset:R("offset","position path distance rotate anchor"),outline:R("outline",fe),overflow:R("overflow","x y"),"overscroll-behavior":R("overscroll-behavior","x y"),padding:Lr("padding"),"padding-block":R("padding-block",bt),"padding-inline":R("padding-inline",bt)});for(let t of["content","items","self"])V["place-"+t]=["align-"+t,"justify-"+t];Object.assign(V,{"scroll-margin":Lr("scroll-margin"),"scroll-padding":Lr("scroll-padding"),"text-decoration":R("text-decoration","line style color thickness"),"text-emphasis":R("text-emphasis","style color"),transition:R("transition","property duration timing-function delay behavior")});var Zb="block-start block-end inline-start inline-end".split(" ");for(let t of Zb)V["border-"+t]=R("border-"+t,fe);for(let t of["block","inline"])for(let e of fe.split(" "))V["border-"+t+"-"+e]=R("border-"+t,bt.split(" ").map(n=>n+"-"+e).join(" "));Object.assign(V,{"animation-range":R("animation-range",bt),"background-position":R("background-position","x y"),"font-variant":R("font-variant","alternates caps east-asian emoji ligatures numeric position"),"font-synthesis":R("font-synthesis","weight style small-caps"),marker:R("marker","start mid end"),"position-try":R("position-try","order fallbacks"),"scroll-margin-block":R("scroll-margin-block",bt),"scroll-margin-inline":R("scroll-margin-inline",bt),"scroll-padding-block":R("scroll-padding-block",bt),"scroll-padding-inline":R("scroll-padding-inline",bt),"scroll-timeline":R("scroll-timeline","name axis"),"view-timeline":R("view-timeline","name axis inset"),"text-box":R("text-box","trim edge"),"text-wrap":R("text-wrap","mode style"),"white-space":["white-space-collapse","text-wrap-mode"]});V.font.push("font-language-override");var le=t=>"corner-"+t+"-shape";V["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(le);Object.assign(V,{"corner-top-shape":["top-left","top-right"].map(le),"corner-right-shape":["top-right","bottom-right"].map(le),"corner-bottom-shape":["bottom-left","bottom-right"].map(le),"corner-left-shape":["top-left","bottom-left"].map(le),"corner-block-start-shape":["start-start","start-end"].map(le),"corner-block-end-shape":["end-start","end-end"].map(le),"corner-inline-start-shape":["start-start","end-start"].map(le),"corner-inline-end-shape":["start-end","end-end"].map(le)});for(let t in V){let e=V[t],n=new Set(e);for(let o=0;o<e.length;o++){let r=V[e[o]];if(r)for(let i of r)n.has(i)||(n.add(i),e.push(i))}}var Zt={};for(let t in V)for(let e of V[t])(Zt[e]||(Zt[e]=[])).push(t);var Ts=new Map,Cu=t=>{let e=Ts.get(t);if(e!==void 0)return e;Ts.set(t,0),e=0;let n=Zt[t];if(n)for(let o=0;o<n.length;o++)e=Math.max(e,Cu(n[o])+1);return Ts.set(t,e),e};function Pr(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(Zt,e)?Cu(e):0}var Xb=/^(?: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)$/,vu=/^(?:border(?:-(?:top|right|bottom|left|block|inline)(?:-(?:start|end))?)?|outline|column-rule)$/,Qb=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","auto"]),As=t=>Q(String(t).replace(/\s*!important\s*$/,""));function Br(t,e,n){let o=V[t];if(!o||o.indexOf(n)===-1)return!1;if(Xb.test(t))return!0;if(!vu.test(t)||typeof e=="function"||e==null||n.indexOf("border-image")===0)return!1;let r=As(e);return r.length>=3?!0:/-style$/.test(n)&&r.some(i=>Qb.has(i.toLowerCase()))}var Jb=new Set(["thin","medium","thick"]),tS=t=>/^[+-]?\.?\d/.test(t)||Jb.has(t.toLowerCase())||/^(?:calc|min|max|clamp)\(/i.test(t)||/^var\(--(?:[a-zA-Z0-9]{1,6}-)?spacing-/.test(t),eS=t=>t==="transparent"||t==="currentcolor"||Object.prototype.hasOwnProperty.call(Df,t),nS=t=>If(t)||/^var\(--(?:(?!theme-|shadow-)[a-zA-Z0-9]{1,6}-)?color-/.test(t)||eS(t.toLowerCase()),oS=/-(width|style|color)$/;function Es(t,e,n){if(Br(t,e,n))return!0;let o=V[t];if(!o||o.indexOf(n)===-1||typeof e=="function"||e==null)return!1;if(vu.test(t)){if(n.indexOf("border-image")===0)return!1;let r=oS.exec(n);if(!r)return!1;let i=As(e);return i.length===1&&/^(?:0|none)$/i.test(i[0])?r[1]!=="color":r[1]==="width"&&i.some(tS)}if(t==="background"&&n==="background-color"){let r=As(e);return r.length===1&&nS(r[0])}return!1}var mo=new Map,rS=null,Os=null,iS=null;function sS(t){t.batchAtomicCss&&(Os=t.batchAtomicCss),t.compoundCssClass&&(iS=t.compoundCssClass)}var aS=new Set,Ou=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0);function cS(t){try{let e=X();e&&(e.__domDocument=t)}catch{}t&&aS.add(t)}function bo(){try{let t=X();if(t){if(Ou(t.__domDocument))return t.__domDocument;if(Ou(t.document))return t.document}}catch{}return typeof document<"u"?document:null}var St={atomic:0,variable:0,global:0,keyframes:0,duplicate:0,invalid:0,dropped:0};function Uu(){return{...St}}function lS(){for(let t in St)St[t]=0;Wr=!1}var Wr=!1,Fr=(t,e)=>`${t} ${e}${t===1?"":"s"}`;function fS(t){let e=Date.parse(t);if(!isFinite(e))return"";let n=Math.floor((Date.now()-e)/864e5);return n<1?" (today)":` (${Fr(n,"day")} ago)`}function uS(){try{let t=ES();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 dS(t,e){if(Wr)return!1;Wr=!0;let n="n/a \u2014 running from src/ (unbuilt), so no dist is in play",o="this IS the source",r="@symbo.ls/css";return console.error(`[@symbo.ls/css] CSS EMIT FAILURE (${t}) \u2014 the engine emitted ${Fr(St.variable,"variable rule")} and ${Fr(St.atomic,"atomic rule")}, while the design system held ${Fr(e,"CSS variable")}.
11
+ The document will render UNSTYLED and nothing else will report an error.
12
+ This is what a STALE dist/ looks like: an obsolete emitter against a current design system.
13
+ package : ${r}
14
+ built : ${n}
15
+ source : ${o}
16
+ emitted : ${JSON.stringify(St)}
17
+ sheets : the style[data-smbls] tiers currently hold ${uS()} rule(s)
18
+ FIX : cd smbls && npm run check:stale # every package whose src is newer than its dist
19
+ then rebuild the listed packages and clear the app's .parcel-cache
20
+ Do NOT trust any browser measurement taken on this page until that reads clean.`),!0}function zu(){try{let t=X(),e=t&&(t.CSS_VARS||t.cssVars);return e?Object.keys(e).length:0}catch{return 0}}function Rs(t){Wr||St.variable>0||St.atomic>0||Hu(Math.max(t,zu()))}function pS(t){let e=t&&(t.CSS_VARS||t.cssVars);return Hu(e?Object.keys(e).length:zu())}function Hu(t){let e=Uu();if(t===0)return{ok:!0,reason:"no-design-system",stats:e,varCount:t};if(!Us())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 dS(n,t),{ok:!1,reason:n,stats:e,varCount:t}}var hS={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 gS(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}var En=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Ru=new Map,Bt=t=>{if(En(t))return t;let e=Ru.get(t);return e===void 0&&(e=gS(t),Ru.set(t,e)),e},Du=new Map,js=t=>{if(En(t))return t;let e=Du.get(t);return e===void 0&&(e=t.replace(/-([a-z])/g,(n,o)=>o.toUpperCase()),Du.set(t,e)),e};function qe(t){let e=2166136261;for(let n=0;n<t.length;n++)e=Math.imul(e^t.charCodeAt(n),16777619);return(e>>>0).toString(36)}var _S=/^[a-z0-9-]+(?: [a-z0-9-]+)*$/,yS=/^var\(--[a-z0-9-]+\)$/;function mS(t){let e=String(t);if(e.length>20)return qe(e);if(yS.test(e))return"var"+e.slice(4,-1);if(_S.test(e)){let o=e.replace(/ /g,"_");return o.startsWith("var--")?`${o}-${qe(e)}`:o}let n=e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase();return n?`${n}-${qe(e)}`:qe(e)}var bS={"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 Ye(t,e){let n=bS[t];return n?`${t}:${e};${n}:${e};`:`${t}:${e};`}function Ds(t){let e="";for(let n in t){let o=t[n];if(typeof o!="object"||o===null)continue;let r="";for(let i in o)o[i]!=null&&(r+=Ye(Bt(i),o[i]));e+=`${n}{${r}}`}return e}function Is(t){return t.charCodeAt(0)===64&&!On(t)}function Iu(t){let e="";for(let n in t){let o=t[n];if(!Is(n)||typeof o!="object"||o===null)continue;let r="";for(let i in o){let s=o[i];s==null||typeof s=="object"||(r+=Ye(Bt(i),s))}e+=`${n}{${r}}`}return e}var SS="@media (hover: hover)",wS=/(?:^|[^\\]):hover(?![\w-])/;function Ws(){try{let t=X();if(t&&t.hoverMedia===!1)return!1}catch{}return!0}function Ze(t,e,n){return n===!1||!wS.test(e)||n===void 0&&!Ws()?t:`${SS}{${t}}`}var Vu=new Map;function xS(t,e,n,o){let r=mo.get(t);if(!r){let l=hS[e]||qe(e),c=mS(n);r=o?`_${o}_${l}-${c}`:`_${l}-${c}`,mo.set(t,r)}let s=typeof n=="string"&&(n.indexOf("}")!==-1||n.indexOf("{")!==-1)?null:`.${r}{${Ye(Bt(e),n)}}`,a={className:r,rule:s,tier:s===null?null:$s(s,!0,"atomic")};return Vu.set(t,a),a}function Lu(t,e,n){let o=(n?n+"":"")+t+":"+e,r=Vu.get(o)||xS(o,t,e,n);return r.rule!==null&&Pt(r.rule,void 0,"atomic",!0,r.tier),r.className}var Pu=new WeakMap,Bu=new WeakMap;function Pt(t,e,n,o,r){let i=r||$s(t,o,n);yo&&!e&&yo.push([t,n||"global",i]);let s=vS(e,i);if(!s)return St.dropped++,"dropped";let a=s.sheet,l=s.rules;if(l||(l=Pu.get(a),l||(l=new Set,Pu.set(a,l)),s.rules=l),l.has(t))return St.duplicate++,St[n||"global"]++,"duplicate";let c=Bu.get(a);if(c&&c.has(t))return St.invalid++,"invalid";try{a.insertRule(t,a.cssRules.length)}catch{return c||(c=new Set,Bu.set(a,c)),c.add(t),St.invalid++,"invalid"}return l.add(t),St[n||"global"]++,"inserted"}var wt="0:0",Ls="1:0",Gu="0:99",Mu=/\((max|min)-width:\s*([\d.]+)(px|em|rem)?\)/g;function $s(t,e,n){if(typeof t!="string"||!t)return wt;if(t.charCodeAt(0)===64){if(!t.startsWith("@media")&&!t.startsWith("@supports")&&!t.startsWith("@container"))return wt;let s=1/0,a=-1/0;Mu.lastIndex=0;let l;for(;l=Mu.exec(t);){let c=parseFloat(l[2])*(l[3]==="em"||l[3]==="rem"?16:1);l[1]==="max"?s=Math.min(s,c):a=Math.max(a,c)}return s!==1/0?"2:"+-s:a!==-1/0?"3:"+a:Ls}if(t.charCodeAt(0)!==46)return n==="atomic"&&!e?Gu:wt;if(!/^\.[\w-]+\{/.test(t))return Ls;if(!e)return wt;let o=t.indexOf("{"),r=t.indexOf(":",o);if(r===-1)return wt;let i=Pr(t.slice(o+1,r).trim());return i?"0:"+i:wt}var vn=null,kS=()=>{if(vn)return vn;let t=0;for(let e in Zt)t=Math.max(t,Pr(e));vn=[wt];for(let e=1;e<=t;e++)vn.push("0:"+e);return vn.push(Gu,Ls),vn},Nu=t=>{let e=t.indexOf(":");return[Number(t.slice(0,e)),Number(t.slice(e+1))]},Ku=(t,e)=>{let[n,o]=Nu(t),[r,i]=Nu(e);return n!==r?n-r:o-i},Fu=(t,e)=>Ku(t,e)<0,qu=t=>t.getAttribute("data-tier")||wt,TS=/^\d+:-?\d+(?:\.\d+)?$/;function AS(t){return!t||typeof t.hasAttribute!="function"||!t.hasAttribute("data-smbls")?null:qu(t)}function CS(t,e){let n=Array.from(t||[],(o,r)=>{let i=typeof e=="function"?e(o):null;return{item:o,i:r,tier:typeof i=="string"&&TS.test(i)?i:wt}});return n.sort((o,r)=>Ku(o.tier,r.tier)||o.i-r.i),n.map(o=>o.item)}var Ps=new WeakMap,jr=!1,_o=null,Bs=0;function vS(t,e){if(jr&&!t){let n=_o&&Ps.get(_o),o=n&&n.get(e);if(o&&o.epoch===Bs)return o;let r=$r(_o,e);return r&&(r.epoch=Bs),r}return $r(t||bo(),e)}function Us(t,e){let n=$r(t||bo(),e);return n?n.sheet:null}function $r(t,e){if(!t||!t.head)return null;let n=e||wt,o=Ps.get(t);o||(o=new Map,Ps.set(t,o));let r=o.get(n);if(r&&r.node.parentNode===t.head&&r.node.sheet===r.sheet)return r;if(n!==wt){let l=kS();for(let c=0;c<l.length&&Fu(l[c],n);c++)$r(t,l[c])}let i=n===wt?t.head.querySelector("style[data-smbls]:not([data-tier])"):t.head.querySelector(`style[data-smbls][data-tier="${n}"]`);if(!i){i=t.createElement("style"),i.setAttribute("data-smbls",""),n!==wt&&i.setAttribute("data-tier",n);let l=t.head.querySelectorAll("style[data-smbls]"),c=null;for(let u=0;u<l.length;u++)if(Fu(n,qu(l[u]))){c=l[u];break}let f=l.length?l[l.length-1]:null;if(c)t.head.insertBefore(i,c);else if(f)t.head.insertBefore(i,f.nextSibling);else{let u=t.head.querySelector('style[data-brender], style[data-emotion="smbls"]');u?t.head.insertBefore(i,u):t.head.appendChild(i)}}let s=i.sheet;if(!s)return o.delete(n),null;let a={sheet:s,node:i,rules:null,epoch:0};return o.set(n,a),n===wt&&(rS=s),a}function ES(t){let e=t||bo();if(!e||!e.head)return[];let n=[],o=e.head.querySelectorAll("style[data-smbls]");for(let r=0;r<o.length;r++)o[r].sheet&&n.push(o[r].sheet);return n}var OS=8,RS=t=>t.indexOf(`
21
+ `)===-1&&t.indexOf("\0")===-1;function Qe(t,e,n,o){if(!t||typeof t!="object")return"";if(jr)return ju(t,n,o);jr=!0,_o=bo(),Bs++;try{return ju(t,n,o)}finally{jr=!1,_o=null}}function ju(t,e,n){let o=!!(n&&n.state),r=null,i=0,s=[],a=[],l=Object.keys(t);for(let f=0;f<l.length;f++){let u=l[f],d=t[u];d==null||d===!1||d===""||(typeof d=="object"?a.push([u,d]):Os&&!e&&!En(u)&&RS(String(d))?(r||(r=[]),r.push(u,String(d)),i++):s.push(Lu(u,String(d),e)))}if(r&&i>=OS){let f=r.join("\0"),u=Os(f),d=u.indexOf("\0"),p=u.substring(0,d),g=u.substring(d+1);if(g){let h=g.split(`
22
+ `);for(let _=0;_<h.length;_++)h[_]&&Pt(h[_],void 0,"atomic",!0)}s.push(p)}else if(r)for(let f=0;f<r.length;f+=2)s.push(Lu(r[f],r[f+1],e));let c=[];for(let f=0;f<a.length;f++)c.push(PS(a[f][0],a[f][1],e,o));return s.concat(c).join(" ").trim()}var Wu=new Map,DS=/^&?:(hover|focus|focus-visible|focus-within|active)(?![\w-])/;function On(t){return/^@(media|supports|container)\b/.test(t)}function Xe(t){let e=[],n=0,o=0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);i===40?n++:i===41?n--:i===44&&n===0&&(e.push(t.slice(o,r).trim()),o=r+1)}return e.push(t.slice(o).trim()),e}function IS(t){return typeof t!="string"||!t||On(t)?!1:Xe(t).every(e=>DS.test(e))}var Yu=t=>{let e=Object.prototype.toString.call(t);return e==="[object Object]"||e==="[object Array]"},Ms=32,Ns=1024,$u=!1;function Nr(t,e,n){if($u)return;$u=!0;let o=[e,...n],r=o.length>12?[...o.slice(0,6),`\u2026${o.length-9} more\u2026`,...o.slice(-3)]:o}function LS(t){try{return JSON.stringify(t)}catch{let n=[],o=0;return JSON.stringify(t,function(r,i){if(!i||typeof i!="object")return i;for(;n.length&&n[n.length-1]!==this;)n.pop();if(!(n.length&&(n.includes(i)||!Yu(i)||n.length>Ms||++o>Ns)))return n.push(i),i})}}function PS(t,e,n,o){let r=LS(e),i=t.indexOf(":hover")!==-1||r.indexOf(":hover")!==-1,s=i&&Ws(),a=(n?n+"":"")+t+r+(i&&!s?"rawhover":"")+(o?"state":""),l=mo.get(a);if(l){let m=Wu.get(l);if(m)for(let S=0;S<m.length;S+=2)Pt(m[S],void 0,"atomic",void 0,m[S+1]);return l}l=n?`_${n}_c${qe(a)}`:`_c${qe(a)}`;let c=o?`.${l}.${l}`:`.${l}`,f=IS(t)?`${c}.${l}`:c,u="",d=[],p=m=>typeof m=="string"&&(m.indexOf("{")!==-1||m.indexOf("}")!==-1),g=new Set,h=0,_=(m,S)=>{g.add(S);let w="",x=Object.keys(S);for(let C=0;C<x.length;C++){let v=x[C],A=S[v];if(A!=null)if(typeof A=="object"){let B=[...m,v];g.has(A)?Nr("a style value that loops back to one of its own ancestors",t,B):Yu(A)?B.length>Ms?Nr(`a style block nested more than ${Ms} levels deep`,t,B):++h>Ns?Nr(`a style object with more than ${Ns} nested blocks`,t,B):_(B,A):Nr(`a ${Object.prototype.toString.call(A).slice(8,-1)} (not a style block)`,t,B)}else{if(p(A))continue;w+=Ye(Bt(v),A)}}g.delete(S),w&&(m.length===0?u+=w:d.push({chain:m,body:w}))};_([],e);let y=m=>m.startsWith(":")||m.startsWith("["),b=(m,S=!0)=>{let w=S&&m.length===1?f:c;if(!m.length)return w;let x=Xe(m[0]).map(C=>C.includes("&")?C.replace(/&/g,w):y(C)?`${w}${C}`:`${w} ${C}`);for(let C=1;C<m.length;C++){let v=Xe(m[C]),A=[];for(let B of x)for(let I of v)I.includes("&")?A.push(I.replace(/&/g,B)):y(I)?A.push(B+I):A.push(B+" "+I);x=A}return x.join(", ")},T=[],E=(m,S)=>{let w=m.filter(On),x=b(m.filter(A=>!On(A)),w.length===0),C=`${x}{${S}}`;for(let A=w.length-1;A>=0;A--)C=`${w[A]}{${C}}`;C=Ze(C,x,s);let v=$s(C,void 0,"atomic");T.push(C,v),Pt(C,void 0,"atomic",void 0,v)};u&&E([t],u);for(let m of d)E([t,...m.chain],m.body);return Wu.set(l,T),mo.set(a,l),l}var yo=null;function BS(t){let e=yo,n=[];yo=n;try{t()}finally{yo=e}return n}function MS(t){if(!Array.isArray(t))return;Us();let e=0;for(let n of t){if(!Array.isArray(n)||typeof n[0]!="string")continue;let o=n[1]||"global";o==="variable"&&e++,Pt(n[0],void 0,o,void 0,n[2]||void 0)}e>0&&Rs(e)}function Fs(t){if(t==null||typeof t!="string"&&typeof t!="object")return;if(Us(),typeof t=="string"){let i=t.indexOf("--")!==-1;Pt(t,void 0,i?"variable":"global"),i&&Rs(1);return}let e=Ws(),n=0,o=Object.keys(t),r=i=>{let s=i.match(/max-width:\s*(\d+)/);return s?parseInt(s[1]):0};o.sort((i,s)=>{let a=i.startsWith("@media"),l=s.startsWith("@media");return!a&&!l?0:a?l?r(s)-r(i):1:-1});for(let i of o){let s=t[i];if(i.startsWith("@keyframes")){let a=Ds(s);a&&Pt(`${i}{${a}}`,void 0,"keyframes");continue}if(On(i))for(let a in s){let l=s[a];if(a.startsWith("@keyframes")){let c=Ds(l);c&&Pt(`${i}{${a}{${c}}}`,void 0,"keyframes");continue}if(typeof l=="object"&&l!==null){let c="",f=0,u=a.charCodeAt(0)===64;for(let d in l){let p=l[d];p!=null&&(u&&typeof p=="object"||(En(d)&&f++,c+=Ye(Bt(d),p)))}u&&(c+=Iu(l)),n+=f,Pt(Ze(`${i}{${a}{${c}}}`,a,e),void 0,f?"variable":"global")}else if(l!=null){let c=En(a);c&&n++,Pt(`${i}{${Ye(Bt(a),l)}}`,void 0,c?"variable":"global")}}else{let a="",l=!1,c=0,f=i.charCodeAt(0)===64;for(let u in s){let d=s[u];if(d!=null)if(typeof d=="object"){if(f&&Is(u))continue;l=!0}else En(u)&&c++,a+=Ye(Bt(u),d)}if(f&&(a+=Iu(s)),n+=c,a&&Pt(Ze(`${i}{${a}}`,i,e),void 0,c?"variable":"global"),l){let u=[],d=[];for(let p in s)if(typeof s[p]=="object"&&s[p]!==null){if(f&&Is(p))continue;On(p)?u.push(p):d.push(p)}u.sort((p,g)=>{let h=_=>{let y=_.match(/max-width:\s*(\d+)/);return y?parseInt(y[1]):0};return h(g)-h(p)});for(let p of d)Fs({[`${i} ${p}`]:s[p]});for(let p of u)Fs({[p]:{[i]:s[p]}})}}}n>0&&Rs(n)}function Ur(t,e){return Pt(`@keyframes ${t}{${Ds(e)}}`,void 0,"keyframes"),t}function NS(){return mo.size}var ct=new Set(["extends","children","content","childrenAs","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","deferUntil","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","faceWait","srcObject","allowRuntimeTemplates","__name","__ref","__hash","__text","parent","node"]),jS={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},Je=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"]),zs=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"]),zr=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),Hs=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseenter","mouseleave","mouseover","mouseout","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointerover","pointerout","touchstart","touchend","touchmove","keydown","keyup","keypress","input","change","submit","reset","focus","blur","focusin","focusout","wheel","contextmenu","drag","dragstart","dragend","dragenter","dragleave","dragover","drop"]);var Ks=new WeakMap,WS={passive:!0},$S={passive:!0,capture:!0},Xu=(t,e)=>zr.has(t)?e?$S:WS:e||!1;function Qu(t){let e=Ks.get(t);return e||(e={handlers:new Map,installed:new Set},Ks.set(t,e)),e}function US(t,e){let n=Qu(e);if(n.installed.has(t))return;n.installed.add(t);let o=t==="focus"||t==="blur"||t==="focusin"||t==="focusout"||t==="mouseenter"||t==="mouseleave"||t==="pointerenter"||t==="pointerleave",r=t==="mouseenter"||t==="mouseleave"||t==="pointerenter"||t==="pointerleave";e.addEventListener(t,i=>{if(r){let a=i.target,l=n.handlers.get(t),c=l&&a?l.get(a):null;if(!c||i.relatedTarget&&typeof a.contains=="function"&&a.contains(i.relatedTarget))return;c(i);return}let s=i.target;for(;s&&s!==e;){let a=n.handlers.get(t);if(a){let l=a.get(s);if(l&&(l(i),i.cancelBubble))return}s=s.parentNode}},Xu(t,o))}function Ju(t,e,n,o){o||(o=e.ownerDocument?.documentElement||e.getRootNode());let r=Qu(o);US(t,o),r.handlers.has(t)||r.handlers.set(t,new WeakMap),r.handlers.get(t).set(e,n)}function td(t,e,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let o=Ks.get(n);if(!o)return;let r=o.handlers.get(t);r&&r.delete(e)}function Mt(t){if(t.charCodeAt(0)!==111||t.charCodeAt(1)!==110)return!1;let e=t.charCodeAt(2);return e>=65&&e<=90}function Hr(t){return t.charAt(2).toLowerCase()+t.slice(3)}var zS=/^[A-Za-z_$][\w$]*$/;function So(t,e){return typeof e!="string"||!zS.test(e)?e:function(o){return t.call(e,o)}}function HS(t){return Hs.has(t)&&!Je.has(t)}function Rn(t,e,n){let{context:o}=t,r=o?.designSystem;return i=>{r&&at(r);let s=!!r;try{let a=e.call(t,i,t,t.state,o);a&&typeof a.then=="function"&&(a.catch(l=>bs(t,n,l,!0)).finally(()=>{r&&it()}),s=!1)}catch(a){if(bs(t,n,a),o?.strictMode)throw a}finally{s&&it()}}}var ed=t=>!!t&&(t.capture===!0||typeof t.passive=="boolean"||t.once===!0);function VS(t,e){return ed(e)?{capture:e.capture===!0,passive:typeof e.passive=="boolean"?e.passive:zr.has(t),once:e.once===!0}:Xu(t,!1)}function GS(t,e,n){return o=>{let r=o.target;if(r&&r.nodeType!==1&&(r=r.parentElement),!r||typeof r.closest!="function")return;let i;try{i=r.closest(e)}catch{return}i&&t.contains(i)&&n(o)}}function qs(t,e,n,o,r){let{node:i,context:s}=e;if(!i)return;let a=Rn(e,n,r||"on"+t),l=o&&typeof o.selector=="string"&&o.selector;l&&(a=GS(i,l,a));let f=!zs.has(t)&&HS(t)&&!ed(o),u=f?null:VS(t,o);if(f){let d=s?.rootNode||i.ownerDocument?.documentElement;Ju(t,i,a,d)}else i.addEventListener(t,a,u);e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(f){let d=s?.rootNode||i.ownerDocument?.documentElement;td(t,i,d)}else i.removeEventListener(t,a,u)})}var Vs=[["onDocument","document"],["onWindow","window"],["onVisualViewport","visualViewport"],["onMediaQuery","mediaQuery"]];function Ys(t){if(typeof t!="string")return null;for(let e=0;e<Vs.length;e++){let n=Vs[e][0];if(t.length<=n.length||!t.startsWith(n))continue;let o=t.charCodeAt(n.length);if(!(o<65||o>90))return{target:Vs[e][1],eventName:t.slice(n.length).toLowerCase()}}return null}function KS(t,e,n){let o=e,r=!1,i,s=!1,a=null;return e&&typeof e=="object"&&typeof e!="function"&&(o=e.handler,r=!!e.capture,s=!!e.once,typeof e.passive=="boolean"&&(i=e.passive),typeof e.query=="string"&&(a=e.query)),o=So(t,o),typeof o!="function"?null:(i===void 0&&(i=zr.has(n)),{handler:o,capture:r,passive:i,once:s,query:a})}function qS(t,e,n){let o=t.node?.ownerDocument||t.context?.document||(typeof document<"u"?document:null);if(!o||typeof o.addEventListener!="function")return null;if(e==="document")return o;let r=o.defaultView||(typeof window<"u"?window:null);if(!r)return null;if(e==="window")return typeof r.addEventListener=="function"?r:null;if(e==="visualViewport"){let i=r.visualViewport;return i&&typeof i.addEventListener=="function"?i:null}if(e==="mediaQuery"){let i=n&&n.query;if(typeof i!="string"||!i.trim()||typeof r.matchMedia!="function")return null;try{return r.matchMedia(i)||null}catch{return null}}return null}var Gs=/^@media\s+/i,YS=/^[@[.#&:>*~+]/;function ZS(t,e){if(typeof e!="string")return null;let n=e.trim();if(!n)return null;let o=t.context?.designSystem?.media,r=s=>{let a=o&&typeof o=="object"?o[s]:void 0;return typeof a=="string"&&a.trim()?a.trim():null},i=n;if(n.charCodeAt(0)===64&&!Gs.test(n)){if(i=r(n.slice(1)),!i)return null}else i=r(n)||n;return Gs.test(i)?i.replace(Gs,"").trim()||null:YS.test(i)?(`${i}`,null):i}function XS(t,e,n,o){try{return t.addEventListener(e,n,o),!0}catch{return typeof t.addListener=="function"?(t.addListener(n),!0):!1}}function nd(t,e,n,o){try{t.removeEventListener(e,n,o)}catch{typeof t.removeListener=="function"&&t.removeListener(n)}}function Zs(t,e,n,o){if(e.__ref){if(Array.isArray(n)){if(t.target!=="mediaQuery")return;for(let i=0;i<n.length;i++)Zu(t,e,n[i],o);return}Zu(t,e,n,o)}}function Zu(t,e,n,o){let r=e.__ref,i=KS(e,n,t.eventName);if(!i||t.target==="mediaQuery"&&t.eventName!=="change"||t.target==="mediaQuery"&&(i.query=ZS(e,i.query),!i.query))return;let s=qS(e,t.target,i);if(!s)return;let a=t.target+":"+(i.query?i.query+":":"")+t.eventName+":"+(i.capture?1:0);if(r.__globalEvents&&r.__globalEvents.has(a))return;let l=Rn(e,i.handler,o||"on"+t.eventName),c=t.target==="window"&&t.eventName==="load",f=!1,u=g=>{if(ke(e)){if(c){if(f)return;f=!0}l(g)}},d={capture:i.capture,passive:i.passive,once:i.once};if(!XS(s,t.eventName,u,d))return;r.__globalEvents||(r.__globalEvents=new Map);let p={target:s,eventName:t.eventName,listener:u,options:d};r.__globalEvents.set(a,p),r.__eventCleanup||(r.__eventCleanup=[]),r.__eventCleanup.push(()=>{nd(s,t.eventName,u,d),r.__globalEvents&&r.__globalEvents.delete(a)}),c&&QS(e,a,p,()=>f)}function QS(t,e,n,o){let r=n.target.document;!r||r.readyState!=="complete"||zt(t,()=>queueMicrotask(()=>{let i=t.__ref;if(o()||!i||!i.__globalEvents||i.__globalEvents.get(e)!==n)return;let s=n.target,a=typeof s.Event=="function"?s.Event:typeof Event=="function"?Event:null;a&&(n.listener(new a("load")),n.options.once&&o()&&nd(s,"load",n.listener,n.options))}))}var sd=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],JS=["none","forwards","backwards","both"],tw=["normal","reverse","alternate","alternate-reverse"],ew=["running","paused"],nw=/^(?: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*\))$/,ow=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(o=>nw.test(o.replace(/\s+/g,"")))},od=t=>/^(?:\s*0[a-z%]*)+\s*$/.test(String(t).toLowerCase())||/^(none|initial|unset)$/.test(String(t).trim().toLowerCase()),rw={transform:ow,translate:od,rotate:t=>od(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},iw=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},sw=t=>{if(!j(t))return null;let e=null,n=-1;for(let o in t){let r=iw(o);r==null||!j(t[o])||r>=n&&(n=r,e=t[o])}return e},aw=t=>{let e=sw(t);if(!e)return!1;let n=Object.keys(e);if(!n.length)return!1;for(let o of n){let r=rw[o];if(!r)return!1;let i=e[o];if(i==null||typeof i=="object"||typeof i=="function"||!r(i))return!1}return!0},cw=(t,e)=>{if(j(t))return t;let{animation:n}=e.context&&e.context.designSystem||{},o=n&&n[t];return j(o)?o:null},lw=["reverse","alternate","alternate-reverse"],ad=(t,e,n)=>{let o=n||e.animationDirection;return o&&lw.includes(String(o))?"both":aw(cw(t,e))?"backwards":"both"},fw=0,rd=new Map,Xs=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{};if(j(t)){let r=JSON.stringify(t),i=rd.get(r);if(i)return i;let s=`smbls-anim-${fw++}`,a=Ur(s,t);return rd.set(r,a),a}let o=n&&n[t];return j(o)?Ur(t,o):t},cd=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)m?s$/i,uw=/^(?:\d+(?:\.\d*)?|\.\d+)$/,ld=/^(?:cubic-bezier|steps|linear)\(/,dw=/^(?:calc|min|max|clamp)\(/,pw=t=>t.includes("(")||t.startsWith("--"),hw=(t,e)=>{if(!Ar.test(t))return!1;let n=e&&e.sequence;if(!j(n))return!1;let o=t.charCodeAt(0)===45?t.slice(1):t;return!!(n[o]||o.length===2&&n[o[0]])},gw=t=>{if(!L(t))return!1;let e=t.trim();return sd.includes(e)||ld.test(e)||e.startsWith("var(")},_w=(t,e)=>!!e&&gw(e[t]||e[Rf(t)]),yw=["duration","timingFunction","delay","iterationCount","direction","fillMode","playState"],mw=t=>Q(String(t)),bw=(t,e,n)=>{let o={duration:null,delay:null,timingFunction:null,iterationCount:null,direction:null,fillMode:null,playState:null},r=null,i=[],s=[],a=(u,d)=>o[u]!=null?!1:(o[u]=d,!0),l=(u,d)=>{a(u,d)||i.push(d)};for(let u of mw(t))e&&e[u]?r=u:cd.test(u)||hw(u,n)?a("duration",u)||a("delay",u):sd.includes(u)||_w(u,n)?l("timingFunction",u):ld.test(u)?a("timingFunction",u):u==="infinite"?l("iterationCount",u):uw.test(u)?a("iterationCount",Number(u)):tw.includes(u)?l("direction",u):JS.includes(u)?l("fillMode",u):ew.includes(u)?l("playState",u):pw(u)?s.push(u):i.push(u);let c=r||i[0]||s.shift()||null,f=new Set;for(let u of s){let d=yw.find(p=>o[p]==null);if(!d)break;o[d]=u.startsWith("--")?`var(${u})`:u,f.add(d)}return{name:c,...o,opaqueSlots:f}},Sw=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{},{timing:o}=X()||{};return Lf(String(t)).map(r=>r.trim()).filter(Boolean).map(r=>bw(r,n,o))},id=(t,e)=>cd.test(t)||e&&!dw.test(t)&&!/^(?:var|env)\(/.test(t)?t:xe(t).timing||t,ww=(t,e)=>{let n=o=>t.opaqueSlots.has(o);return{animationName:t.name==null?void 0:Xs(t.name,e),animationDuration:t.duration!=null?id(t.duration,n("duration")):xe(e.animationDuration||"A").timing,animationDelay:t.delay!=null?id(t.delay,n("delay")):xe(e.animationDelay||"0s").timing,animationTimingFunction:t.timingFunction!=null?n("timingFunction")?t.timingFunction:Ve(t.timingFunction):Ve(e.animationTimingFunction||"ease"),animationFillMode:t.fillMode||e.animationFillMode||ad(t.name,e,t.direction),animationIterationCount:t.iterationCount!=null?t.iterationCount:e.animationIterationCount||1,animationPlayState:t.playState||e.animationPlayState,animationDirection:t.direction||e.animationDirection}},xw={animationName:"none",animationPlayState:"running",animationDirection:"normal"},kw=(t,e)=>{let n=t.map(r=>ww(r,e));if(n.length===1)return n[0];let o={};for(let r in n[0]){let i=n.map(s=>s[r]);i.every(s=>s==null)||(o[r]=i.map(s=>s??xw[r]).join(", "))}return o},fd={animation:(t,e)=>{if(t!=null){if(L(t)&&/[\s,]/.test(t)){let n=Sw(t,e);if(n.length)return kw(n,e)}return{animationName:Xs(t,e),animationDuration:xe(e.animationDuration||"A").timing,animationDelay:xe(e.animationDelay||"0s").timing,animationTimingFunction:Ve(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||ad(t,e),animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}}},animationName:(t,e)=>({animationName:Xs(t,e)}),animationDuration:t=>({animationDuration:xe(t).timing}),animationDelay:t=>({animationDelay:xe(t).timing}),animationTimingFunction:t=>({animationTimingFunction:Ve(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};var Vr=(t,e,n)=>{if(typeof e=="number"&&(e=String(e)),!L(e))return;let[o,r]=Q(e);return{...O(t+"Start",o,n),...O(t+"End",r||o,n)}},ud={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>O("height",t,e),width:(t,e)=>O("width",t,e),boxSizing:t=>Sr(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!L(t))return;let[e,n]=Q(t);return{...ot("height",e),...ot("width",n||e)}},inlineSize:(t,e)=>O("inlineSize",t,e),blockSize:(t,e)=>O("blockSize",t,e),minWidth:(t,e)=>O("minWidth",t,e),maxWidth:(t,e)=>O("maxWidth",t,e),widthRange:t=>{if(!L(t))return;let[e,n]=Q(t);return{...ot("minWidth",e),...ot("maxWidth",n||e)}},minHeight:(t,e)=>O("minHeight",t,e),maxHeight:(t,e)=>O("maxHeight",t,e),heightRange:t=>{if(!L(t))return;let[e,n]=Q(t);return{...ot("minHeight",e),...ot("maxHeight",n||e)}},size:t=>{if(!L(t))return;let[e,n]=Q(t);return{...O("inlineSize",e),...O("blockSize",n||e)}},minBlockSize:(t,e)=>O("minBlockSize",t,e),minInlineSize:(t,e)=>O("minInlineSize",t,e),maxBlockSize:(t,e)=>O("maxBlockSize",t,e),maxInlineSize:(t,e)=>O("maxInlineSize",t,e),minSize:t=>{if(!L(t))return;let[e,n]=Q(t);return{...ot("minInlineSize",e),...ot("minBlockSize",n||e)}},maxSize:t=>{if(!L(t))return;let[e,n]=Q(t);return{...ot("maxInlineSize",e),...ot("maxBlockSize",n||e)}},borderWidth:(t,e)=>O("borderWidth",t,e),borderTopWidth:(t,e)=>O("borderTopWidth",t,e),borderRightWidth:(t,e)=>O("borderRightWidth",t,e),borderBottomWidth:(t,e)=>O("borderBottomWidth",t,e),borderLeftWidth:(t,e)=>O("borderLeftWidth",t,e),textDecorationThickness:(t,e)=>O("textDecorationThickness",t,e),textUnderlineOffset:(t,e)=>O("textUnderlineOffset",t,e),padding:(t,e)=>O("padding",t,e),paddingInline:t=>{if(!L(t))return;let[e,n]=Q(t);return{...ot("paddingInlineStart",e),...ot("paddingInlineEnd",n||e)}},paddingBlock:t=>{if(!L(t))return;let[e,n]=Q(t);return{...ot("paddingBlockStart",e),...ot("paddingBlockEnd",n||e)}},paddingTop:(t,e)=>O("paddingBlockStart",t,e),paddingBottom:(t,e)=>O("paddingBlockEnd",t,e),paddingLeft:(t,e)=>O("paddingInlineStart",t,e),paddingRight:(t,e)=>O("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>O("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>O("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>O("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>O("paddingInlineEnd",t,e),margin:(t,e)=>O("margin",t,e),marginInline:t=>{if(!L(t))return;let[e,n]=Q(t);return{...ot("marginInlineStart",e),...ot("marginInlineEnd",n||e)}},marginBlock:t=>{if(!L(t))return;let[e,n]=Q(t);return{...ot("marginBlockStart",e),...ot("marginBlockEnd",n||e)}},marginTop:(t,e)=>O("marginBlockStart",t,e),marginBottom:(t,e)=>O("marginBlockEnd",t,e),marginLeft:(t,e)=>O("marginInlineStart",t,e),marginRight:(t,e)=>O("marginInlineEnd",t,e),marginInlineStart:(t,e)=>O("marginInlineStart",t,e),marginInlineEnd:(t,e)=>O("marginInlineEnd",t,e),marginBlockStart:(t,e)=>O("marginBlockStart",t,e),marginBlockEnd:(t,e)=>O("marginBlockEnd",t,e),scrollMargin:(t,e)=>O("scrollMargin",t,e),scrollMarginTop:(t,e)=>O("scrollMarginTop",t,e),scrollMarginRight:(t,e)=>O("scrollMarginRight",t,e),scrollMarginBottom:(t,e)=>O("scrollMarginBottom",t,e),scrollMarginLeft:(t,e)=>O("scrollMarginLeft",t,e),scrollMarginBlock:(t,e)=>Vr("scrollMarginBlock",t,e),scrollMarginInline:(t,e)=>Vr("scrollMarginInline",t,e),scrollMarginBlockStart:(t,e)=>O("scrollMarginBlockStart",t,e),scrollMarginBlockEnd:(t,e)=>O("scrollMarginBlockEnd",t,e),scrollMarginInlineStart:(t,e)=>O("scrollMarginInlineStart",t,e),scrollMarginInlineEnd:(t,e)=>O("scrollMarginInlineEnd",t,e),scrollPadding:(t,e)=>O("scrollPadding",t,e),scrollPaddingTop:(t,e)=>O("scrollPaddingTop",t,e),scrollPaddingRight:(t,e)=>O("scrollPaddingRight",t,e),scrollPaddingBottom:(t,e)=>O("scrollPaddingBottom",t,e),scrollPaddingLeft:(t,e)=>O("scrollPaddingLeft",t,e),scrollPaddingBlock:(t,e)=>Vr("scrollPaddingBlock",t,e),scrollPaddingInline:(t,e)=>Vr("scrollPaddingInline",t,e),scrollPaddingBlockStart:(t,e)=>O("scrollPaddingBlockStart",t,e),scrollPaddingBlockEnd:(t,e)=>O("scrollPaddingBlockEnd",t,e),scrollPaddingInlineStart:(t,e)=>O("scrollPaddingInlineStart",t,e),scrollPaddingInlineEnd:(t,e)=>O("scrollPaddingInlineEnd",t,e),gap:t=>({gap:Vf(t)}),columnGap:(t,e)=>fo(e,"columnGap",t),rowGap:(t,e)=>fo(e,"rowGap",t),flexWrap:t=>{if(t!=null)return{display:"flex",flexWrap:t}},flexFlow:(t,e)=>{let n=e.reverse;if(!L(t))return;let[o,r]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(o="row"),(t.startsWith("y")||t==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&n?"-reverse":"")+" "+(r||"")}},flexAlign:t=>{if(!L(t))return;let[e,n]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:n}},round:(t,e)=>Ge(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>Ge(t??e.round,e,"borderRadius"),borderTopLeftRadius:(t,e)=>Ge(t,e,"borderTopLeftRadius","borderTopLeftRadius"),borderTopRightRadius:(t,e)=>Ge(t,e,"borderTopRightRadius","borderTopRightRadius"),borderBottomLeftRadius:(t,e)=>Ge(t,e,"borderBottomLeftRadius","borderBottomLeftRadius"),borderBottomRightRadius:(t,e)=>Ge(t,e,"borderBottomRightRadius","borderBottomRightRadius"),backgroundSize:(t,e)=>({backgroundSize:uo(t,"backgroundSize",_s,e)}),backgroundPosition:(t,e)=>({backgroundPosition:uo(t,"backgroundPosition",ys,e)}),maskSize:(t,e)=>({maskSize:uo(t,"maskSize",_s,e)}),maskPosition:(t,e)=>({maskPosition:uo(t,"maskPosition",ys,e)})};var dd={fontSize:t=>Ff(t)||t,fontFamily:t=>({fontFamily:Nf(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 pd={overflow:t=>({overflow:t}),cursor:(t,e,n,o)=>{if(!t)return;let r=o.assets&&o.assets[t];if(r&&r.content)t=`url(${r.content.src})`;else{let i=o.files&&o.files[t];i&&i.content&&(t=`url(${i.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 hd={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:Q(t).map(n=>we(n,"k").k).join(" ")}},left:t=>we(t,"left"),top:t=>we(t,"top"),right:t=>we(t,"right"),bottom:t=>we(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=Q(t).map(n=>we(n,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=Q(t).map(n=>we(n,"k").k);return{left:e[0],right:e[1]||e[0]}}};var Gr=0,Qs=()=>{Gr++},Js=()=>{Gr>0&&Gr--},xt=({context:t,state:e})=>{let n=t?.designSystem,o=e?.root?.globalTheme||n?.globalTheme;return o&&o!=="auto"?o:Gr>0?null:n&&n.resolvedTheme||null},ht=(t,e)=>{if(e==null||e==="")return;if(!j(e))return{[t]:e};let n={},o=!1;for(let r in e){let i=e[r];if(!(i==null||i==="")){if(j(i)){let s=ht(t,i);s&&(n[r]=s,o=!0);continue}n[r]={[t]:i},o=!0}}return o?n:void 0},gd=t=>{let e={};for(let n in t){let o=t[n];e[n]=j(o)?gd(o):L(o)?o+" !important":o}return e},tn=t=>(e,n)=>{let o=n&&L(e)&&!X().useVariable,r=$f(e,o?xt(n):null);return j(r)?ht(t,r):{[t]:r}},_d={theme:(t,e)=>{if(t)return e.themeModifier?hs(t,`@${e.themeModifier}`):hs(t)},color:(t,e)=>{let n=xt(e);if(t)return ht("color",Dt(t,n))},background:(t,e)=>{let n=xt(e);if(t)return L(t)&&t.includes("gradient")&&t.includes("(")?{background:Mf(t,n)}:ht("background",Dt(t,n))},backgroundColor:(t,e)=>{let n=xt(e);if(t)return ht("backgroundColor",Dt(t,n))},backgroundImage:(t,e,n,o)=>{let r=xt(e);if(!t)return;let i=o.assets&&o.assets[t];if(i&&i.content)t=i.content.src;else{let s=o.files&&o.files[t];s&&s.content&&(t=s.content.src)}return ht("backgroundImage",Hf(t,r))},textStroke:t=>{let e=Uf(t);if(e!=null)return{WebkitTextStroke:e}},outline:tn("outline"),outlineWidth:(t,e)=>O("outlineWidth",t,e),outlineColor:(t,e)=>{let n=xt(e);if(t)return ht("outlineColor",Dt(t,n))},outlineOffset:(t,e)=>O("outlineOffset",t,e),border:tn("border"),borderColor:(t,e)=>{let n=xt(e);if(t)return ht("borderColor",Dt(t,n))},borderTopColor:(t,e)=>{let n=xt(e);if(t)return ht("borderTopColor",Dt(t,n))},borderBottomColor:(t,e)=>{let n=xt(e);if(t)return ht("borderBottomColor",Dt(t,n))},borderLeftColor:(t,e)=>{let n=xt(e);if(t)return ht("borderLeftColor",Dt(t,n))},borderRightColor:(t,e)=>{let n=xt(e);if(t)return ht("borderRightColor",Dt(t,n))},borderLeft:tn("borderLeft"),borderTop:tn("borderTop"),borderRight:tn("borderRight"),borderBottom:tn("borderBottom"),shadow:(t,e)=>{let n=xt(e);if(t)return ht("boxShadow",zf(t,n))},boxShadow:(t,e)=>{if(!L(t))return;let[n,o]=t.split("!importan"),r=xt(e),i=o?" !important":"",s=gs(n.trim(),r);return L(s)?{boxShadow:s+i}:ht("boxShadow",i?gd(s):s)},textShadow:(t,e)=>ht("textShadow",gs(t,e?xt(e):null)),columnRule:tn("columnRule")};var Kr={transition:t=>{let e=Kf(t);if(e!=null)return{transition:e}},transitionDuration:t=>({transitionDuration:ms(t)}),transitionDelay:t=>({transitionDelay:ms(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Ve(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};var yd={flow:(t,e)=>{let n=e.reverse;if(!L(t))return;let[o,r]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(o="row"),(t.startsWith("y")||t==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&n?"-reverse":"")+" "+(r||"")}},wrap:(t,e)=>{if(t!=null)return{display:"flex",flexWrap:t}},align:(t,e)=>{if(!L(t))return;let[n,o]=t.split(" ");return{display:"flex",alignItems:n,justifyContent:o}}};var Tw=/(^|[^\w.-])([A-Za-z_][\w-]*)/g,Aw=t=>{if(!L(t))return t;let e=X().sizes;return e?t.replace(Tw,(n,o,r)=>{let i=e[r];return i==null?n:o+String(i)}):t},Xt=t=>Aw(Gf(t)),md={gridTemplateColumns:t=>({gridTemplateColumns:Xt(t)}),gridTemplateRows:t=>({gridTemplateRows:Xt(t)}),gridAutoColumns:t=>({gridAutoColumns:Xt(t)}),gridAutoRows:t=>({gridAutoRows:Xt(t)}),area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:Xt(t)}),templateColumns:t=>({gridTemplateColumns:Xt(t)}),autoColumns:t=>({gridAutoColumns:Xt(t)}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:Xt(t)}),templateRows:t=>({gridTemplateRows:Xt(t)}),autoRows:t=>({gridAutoRows:Xt(t)}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var Cw="breakpoints",vw=new Set(["window","media"]),bd=/^-?[A-Za-z_][\w-]*$/,Sd=new Set(["none","and","or","not","initial","inherit","unset","revert","revert-layer","default"]),Ew=t=>{let e=t&&t.containerName;if(typeof e!="string")return null;let n=e.trim().split(/\s+/)[0];return n&&bd.test(n)&&!Sd.has(n)?n:null},wo=(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||vw.has(n)?null:n==="container"?Ew(e)||Cw:bd.test(n)&&!Sd.has(n)?n:null},Ow=/^@media\s+/i,Rw=/^(?:only\s+)?(?:screen|all)\s+and\s+/i,Dw=/(?:^|[^\w-])(?:(?:min|max)-)?(?:width|inline-size)(?![\w-])/i,Iw=/height|block-size|aspect-ratio|orientation|device-|resolution/i,wd=t=>{if(typeof t!="string")return null;let e=t.trim().replace(Ow,"").replace(Rw,"").trim();if(!e||e.indexOf(",")!==-1)return null;let n=e.split(/\s+(?:and|or)\s+/i);for(let o of n){let r=o.trim();if(r.charCodeAt(0)!==40||r.charCodeAt(r.length-1)!==41)return null;let i=r.slice(1,-1);if(i.indexOf("(")!==-1||i.indexOf(")")!==-1||!Dw.test(i)||Iw.test(i))return null}return e},xd={breakpointsFrom:(t,e)=>{let n=wo(t,e);if(!n)return;let o={},r=e&&e.container!=null;return!r&&(!e||e.containerType==null)&&(o.containerType="inline-size"),!r&&(!e||e.containerName==null)&&(o.containerName=n),o}};var kd={show:["display"],hide:["display"],boxSize:["height","width"],widthRange:["minWidth","maxWidth"],heightRange:["minHeight","maxHeight"],size:["inlineSize","blockSize"],minSize:["minInlineSize","minBlockSize"],maxSize:["maxInlineSize","maxBlockSize"],marginTop:["marginBlockStart"],marginBottom:["marginBlockEnd"],marginLeft:["marginInlineStart"],marginRight:["marginInlineEnd"],paddingTop:["paddingBlockStart"],paddingBottom:["paddingBlockEnd"],paddingLeft:["paddingInlineStart"],paddingRight:["paddingInlineEnd"],flexWrap:["display","flexWrap"],flexFlow:["display","flexFlow"],flexAlign:["display","alignItems","justifyContent"],round:["borderRadius"],flow:["display","flexFlow"],wrap:["display","flexWrap"],align:["display","alignItems","justifyContent"],fontWeight:["fontWeight","fontVariationSettings"],lineClamp:["display","WebkitBoxOrient","WebkitLineClamp","lineClamp","overflow"],transitionProperty:["transitionProperty","willChange"],area:["gridArea"],template:["gridTemplate"],templateAreas:["gridTemplateAreas"],column:["gridColumn"],columns:["gridTemplateColumns"],templateColumns:["gridTemplateColumns"],autoColumns:["gridAutoColumns"],columnStart:["gridColumnStart"],row:["gridRow"],rows:["gridTemplateRows"],templateRows:["gridTemplateRows"],autoRows:["gridAutoRows"],rowStart:["gridRowStart"],autoFlow:["gridAutoFlow"],verticalInset:["top","bottom"],horizontalInset:["left","right"],shadow:["boxShadow"],textStroke:["WebkitTextStroke"],breakpointsFrom:["containerType","containerName"]};var z={...fd,...ud,...dd,...pd,...hd,..._d,...Kr,...yd,...md,...xd};var q=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","scale","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"]);var Lw=new Set(["anchorName","anchorScope","animationTimeline","container","containerName","positionAnchor","positionTry","positionTryFallbacks","scrollTimeline","scrollTimelineName","timelineScope","viewTimeline","viewTimelineName","viewTransitionClass","viewTransitionName"]),qr=(t,e)=>typeof e=="string"&&e.charCodeAt(0)===45&&e.charCodeAt(1)===45&&!Lw.has(t)?`var(${e})`:e;var Pw=/^[a-z][0-9]?$/,Td=/var\(\s*(--[A-Za-z0-9-]+)/g,Bw=t=>{let e=new Set,n=new Set;if(!t||typeof t!="object")return{knownLetters:e,knownVars:n};for(let o in t){let r=t[o];if(!(!r||typeof r!="object")){if(r.sequence&&typeof r.sequence=="object")for(let i in r.sequence)e.add(i);if(r.vars&&typeof r.vars=="object")for(let i in r.vars)n.add(i)}}return{knownLetters:e,knownVars:n}},Mw=Object.prototype.propertyIsEnumerable,Ad=(t,e)=>{if(!t||typeof t!="object")return!1;for(let n in t){let o=t[n];if(!o||typeof o!="object")continue;let r=o.sequence;if(r&&typeof r=="object"&&Mw.call(r,e))return!0}return!1},ta=/[(),\s]+/,ea=(t,e)=>{let n=null,o=t.split(ta);for(let r=0;r<o.length;r++){let i=o[r];i&&e(i)&&(n||(n=[])).push(i)}return n},na=(t,e)=>Ar.test(t)&&e(t.charCodeAt(0)===45?t.slice(1):t),Nw=(t,e)=>{if(!e.size)return[];let n=r=>e.has(r),o=ea(t,r=>na(r,n));return o?[...new Set(o)]:[]},Fw=(t,e)=>{if(!e.size)return[];let n=[];Td.lastIndex=0;let o;for(;o=Td.exec(t);){let r=o[1];if(e.has(r))continue;let i=r.lastIndexOf("-");if(i===-1)continue;let s=r.slice(i+1);if(!Pw.test(s))continue;let a=r.slice(0,i+1)+s.toUpperCase();a!==r&&e.has(a)&&n.push({varName:r,corrected:a})}return n},Yr=new Set,Cd=(t,e,n)=>{};var Zr=kr(),jw=(t,e,n)=>{let o=e?.context?.designSystem;o&&at(o);try{let r={},i={},s=(a,l)=>{if(n.unpack){r={...r,...l};return}r[a]=l};for(let a in t){let l=t[a];if(l!==null)if(a==="class"&&L(l)){let c=Ww(l,e);c&&(n.unpack?ao(r,c):r.designSystemClass=c)}else if(a==="true"){let c=Tn(l,e);ao(r,vd(c,e))}else if(e.classlist?.[a]){let c=e.classlist[a],f=nt(c)?c(e,e.state,e.context):c;f&&s(a,f),!Zr&&j(r[a])&&(r[a].label=a)}else if(z[a]){let c=Tn(l,e);if(c===null)continue;cs(c)&&(c=c.reduce((u,d)=>ao(u,d),{}));let f=z[a](c,e,e.state,e.context);cs(f)&&(f=f.reduce((u,d)=>ao(u,d),{})),f&&s(a,f),!Zr&&j(r[a])&&(r[a].label=a)}else if(q.has(a)){let c=Tn(l,e);if(c===null)continue;c=qr(a,c),Zr||Cd(a,c,e),s(a,{[a]:c}),!Zr&&j(r[a])&&(r[a].label=a)}else i[a]=l}return[r,i]}finally{o&&it()}},Ww=(t,e)=>{if(!L(t))return;let n=e?.context?.designSystem?.class;if(!n)return;let o;for(let r of t.split(" ")){if(!r)continue;let i=n[r];if(!j(i))continue;let s=He(i);o=o?co(o,s):s}if(o)return Nt(o,e)},$w=(t,e)=>{let n={};for(let o in t){let r=Ed[o.slice(0,1)];if(r){let i=r(o,t[o],e);if(i)for(let s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]&&typeof n[s]=="object"&&typeof i[s]=="object"?co(n[s],i[s]):n[s]=i[s])}}return n},Nt=(t,e,n={unpack:!0})=>{let[o,r]=jw(t,e,n),i=$w(r,e),s=!1;for(let a in i){s=!0;break}if(s){if(n.unpack)return Cf(o,i);o._selectors=i}return o},dO=(t,e)=>{let n={};if(t.class)for(let o in t.class)n[o]=t.class[o](e);return n};var Uw=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,zw=(t,e,n)=>{let{context:o}=n;if(!o.designSystem?.media)return;let r=t.slice(1),i=o.designSystem.media[r],s=vr(i||t)?Cr(()=>Nt(e,n)):Nt(e,n);if(!i)return{[t]:s};if(/^@(media|supports|container)\b/.test(i))return{[i]:s};if(i==="print")return{"@media print":s};if(i[0]==="(")return{[`@media screen and ${i}`]:s};let a=i.match(Uw),l=a?a[1]||a[2]:r,c={[`${i} &`]:s};if(l==="dark"||l==="light"){let f=o.designSystem?.scopeSelector||":root",u=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;c[`@media (prefers-color-scheme: ${l})`]={[`${u} &`]:s}}return c},Od=(t,e,n)=>({[t]:Nt(e,n)}),xo=(t,e,n)=>{let o=`&${t}`,r=Nt(e,n);if(t.includes(",")&&r){let i={},s={};for(let a in r)typeof r[a]=="object"&&r[a]!==null?s[a]=r[a]:i[a]=r[a];if(Object.keys(s).length){let a=o.split(",").map(c=>c.trim()),l={};Object.keys(i).length&&(l[o]=i);for(let c in s){let f=a.map(u=>`${u} ${c}`).join(", ");l[f]=s[c]}return l}}return{[o]:r}},oa=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return nt(n)?n.call(e,e):!!n},Hw=(t,e,n)=>{let o=t.slice(1),r=oa(o,n);if(r===void 0&&(r=!!n[o]),!!r)return Nt(e,n)},Vw=(t,e,n)=>({[t]:e}),Gw=(t,e,n)=>{let o=t.slice(1),r=n[o]===!0||n.state?.[o];if(!r)if(typeof n[o]=="function")try{r=n[o](n,n.state,n.context)}catch{}else{let i=oa(o,n);i!==void 0&&(r=i)}if(r)return Nt(e,n)},Kw=(t,e,n)=>{let o=t.slice(1),r=n[o]===!0||n.state?.[o];if(!r)if(typeof n[o]=="function")try{r=n[o](n,n.state,n.context)}catch{}else{let i=oa(o,n);i!==void 0&&(r=i)}if(!r)return Nt(e,n)},vd=(t,e)=>Nt(t,e),Ed={"@":zw,":":xo,"[":xo,"*":xo,"+":xo,"~":xo,"&":Od,">":Od,$:Hw,"-":Vw,".":Gw,"!":Kw};var Rd=/\s*!important\s*$/,qw=()=>{let t;try{t=X()}catch{t=null}let e=t&&t.sizes&&typeof t.sizes=="object"?t.sizes:null,n=null,o=i=>{n||(n=new Map);let s=n.get(i);return s===void 0&&(s=Ad(t,i),n.set(i,s)),s},r=i=>Pf(e,i)!==void 0;return{isToken:i=>i.charCodeAt(0)!==35&&(na(i,o)||r(i))}},Yw=(t,e)=>{let n=String(t).split(ta);for(let o=0;o<n.length;o++)if(n[o]===e)return!0;return!1},Zw=(t,e)=>{let n=typeof globalThis<"u"?globalThis.CSS:void 0;if(!n||typeof n.supports!="function")return!1;try{return n.supports(Bt(t),e)}catch{return!1}},Dd=new Set,Xw=(t,e,n)=>{},Qw=(t,e)=>{if(!t||typeof t!="object")return!1;let n=!1;for(let o in t){let r=t[o];if(r!=null){if(typeof r=="object"||typeof r=="function")return!1;for(let i of e)if(Yw(r,i))return!1;n=!0}}return n},Jw=(t,e,n,o)=>{if(!L(e)||!e||t.charCodeAt(0)===45&&t.charCodeAt(1)===45)return null;let r=z[t];if(!r||!q.has(t))return null;let i=Rd.test(e),s=i?e.replace(Rd,""):e,a=ea(s,o.isToken);if(!a||Zw(t,s))return null;let l;try{l=r(s,n,n?.state,n?.context)}catch{l=null}if(Array.isArray(l)){let f={};for(let u of l)u&&typeof u=="object"&&Object.assign(f,u);l=f}if(!Qw(l,a))return Xw(n,t,e),null;let c={};for(let f in l){let u=l[f];u!=null&&(c[f]=i?String(u)+" !important":u)}return c},Id=(t,e,n)=>{let o={},r=!1;for(let i in t){let s=t[i];if(i.charCodeAt(0)===38&&s&&typeof s=="object"&&!Array.isArray(s)){let l=Id(s,e,n);l!==s&&(r=!0),o[i]=l;continue}let a=Jw(i,s,e,n);a?(r=!0,Object.assign(o,a)):o[i]=s}return r?o:t},Ld=(t,e)=>!t||typeof t!="object"||Array.isArray(t)?t:Id(t,e,qw());if(!V||!Zt)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 Xr=V,Ae=Zt,Qr=Br||(()=>!1),Pd=Es||Qr,Bd=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,ue=Bt||(t=>Bd(t)?t:t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())),ko=js||(t=>Bd(t)?t:t.replace(/-([a-z])/g,(e,n)=>n.toUpperCase()));function Nd(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 ia(t,e,n){Fd(t,e,n,nx)}function Fd(t,e,n,o){let r=Nd(e);if(!r.length)return;let i=t.context||n?.context||{},s=i.components||{};for(let a=0;a<r.length;a++){let l=jd(r[a],s,i,e);l&&l!==e&&Wd(t,l,r[a],n,new Set([e]),o)}}var tx=Symbol.for("smbls.shadowedComponents");function ex(t,e,n,o){let r=o&&o[tx],i=r?r.get(e):void 0,s=i?i.length+1:1,a=null,l=!1;for(let c=0;c<=s;c++){let f=c===0?t[e]:c===s?t[`smbls.${e}`]:i[c-1];if(f)if(f===n)l=!0;else{if(l)return f;a===null&&(a=f)}}return l?null:a}function jd(t,e,n,o){if(typeof t=="string"){if(t.includes(">")){let r=t.split(">").map(s=>s.trim()),i=e[r[0]]||e[`smbls.${r[0]}`];for(let s=1;s<r.length&&i;s++)i=i[r[s]];return i||null}return ex(e,t,o,n)}return typeof t=="object"&&t!==null?t:null}function Wd(t,e,n,o,r,i){if(r.has(e))return;r.add(e);let s=Nd(e);if(s.length){let a=t.context||o?.context||{},l=a.components||{};for(let c=0;c<s.length;c++){let f=jd(s[c],l,a,e);f&&Wd(t,f,s[c],o,r,i)}}i(t,e,o,n)}function $d(t,e,n){let o=t.context&&t.context.components||{},r=[];Fd(t,e,void 0,(s,a,l,c)=>{r.push(typeof c=="string"?c:c===o[n]||c===o["smbls."+n]?n:null)});let i=[];for(let s=r.length-1;s>=0;s--)r[s]!==null&&!i.includes(r[s])&&i.push(r[s]);return i}function nx(t,e,n){let o=sa(t);for(let r in e){if(r==="extends"||r==="extend")continue;let i=e[r];o&&o.mark(r);let s=D.chains;s!==null&&s(t,r,t[r],i)||(t[r]===void 0?i&&typeof i=="object"&&!Array.isArray(i)&&typeof i!="function"?t[r]={...i}:t[r]=i:typeof t[r]=="object"&&typeof i=="object"&&!Array.isArray(t[r])&&!Array.isArray(i)&&t[r]!==null&&i!==null?t[r]=vt(t[r],i):t[r]=i)}}var ra=class{constructor(){this.rank=0,this.ranks=null}mark(e){ox(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}},Jr=new Set;for(let t of[Ae,Xr])for(let e in t)Jr.add(e),Jr.add(ko(e));var Md=new Map;function ox(t){let e=t.charCodeAt(0);if(e>=65&&e<=90||e>=48&&e<=57)return!1;let n=Md.get(t);return n===void 0&&(n=!!z[t]||Jr.has(t)||t.indexOf("-")>=0&&!(t.charCodeAt(0)===45&&t.charCodeAt(1)===45)&&Jr.has(ue(t)),Md.set(t,n)),n}function sa(t){let e=t&&t.__ref;if(!e)return null;let n=e.__mergeLayer;return n||(n=e.__mergeLayer=new ra),n.rank++,n}function Ud(t){let e=t&&t.__ref&&t.__ref.__mergeLayer;if(!e||!e.ranks)return;let n;for(let o of e.ranks.values())if(n===void 0)n=o;else if(o!==n)return;e.ranks=null}function vt(t,e){let n={...t},o=D.chains;for(let r in e){let i=n[r],s=e[r];o!==null&&o(n,r,i,s)||(i&&s&&typeof i=="object"&&typeof s=="object"&&!Array.isArray(i)&&!Array.isArray(s)&&typeof i!="function"&&typeof s!="function"?n[r]=vt(i,s):n[r]=s)}return n}var Qt="http://www.w3.org/2000/svg",la=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"]),rx=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 aa(t){return rx.has(t)||la.has(t)}function Ce(t){return la.has(t)}function ve(t){let{tag:e,key:n}=t;if(typeof e=="function")try{e=e(t,t.state,t.context)}catch(i){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:`,i?.message||i)}if(e===!0&&(e=n),typeof e=="string"&&aa(e))return e;if(!n||typeof n!="string"||t.__ref&&t.__ref.__dataKey)return"div";let o=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template","th","tr","td","thead","tbody","tfoot","caption","col","colgroup"]),r=n.toLowerCase();return r.includes(".")&&(r=r.split(".")[0]),r.includes("_")&&(r=r.split("_")[0]),aa(r)&&!o.has(r)?r:"div"}var zd={};function ca(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(Ce(t)){let o=e?.parent;if(t==="svg"||o?.node?.namespaceURI===Qt)return n.createElementNS(Qt,t);if(t!=="svg")return n.createElement("div")}return n.createElement(t)}function To(t){let e=t.tag=ve(t),o=Ce(e)&&(e==="svg"||t.parent?.node?.namespaceURI===Qt)?"svg:"+e:e,r=t?.context?.document||globalThis.document,i=zd[o];if(i||(i=zd[o]=ca(e,t)),!i)return null;let s=r&&i.ownerDocument!==r?ca(e,t):i.cloneNode(!0);return e==="string"&&(s.nodeValue=t.text||""),s}function Ao(t,e){return e&&e.parentNode===t?e.nextSibling:t.firstChild}var ix=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function Vd(t,e,n){return mt(()=>Lt(t,()=>e.call(t,n,t,t.state,t.context)))}function Gd(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 Z("bridge",t);if(!("scrollHeight"in n))return;let o=e.__bridge={settled:!1,failed:!1,disposed:!1,destroyed:!1,instance:void 0,effect:null};e.contentManaged=!0;let r;try{r=Vd(t,t.onBridgeMount,n)}catch(i){if(o.failed=!0,It(t,"onBridgeMount",i),t.context?.strictMode)throw i;return}if(r&&typeof r.then=="function"){r.then(i=>Hd(t,o,i),i=>{o.failed=!0,It(t,"onBridgeMount",i)});return}Hd(t,o,r)}function Hd(t,e,n){if(e.settled=!0,e.instance=n,e.disposed){qd(t,e);return}if(Object.defineProperty(t,"bridge",{value:n,writable:!0,configurable:!0,enumerable:!1}),typeof t.onBridgeUpdate!="function")return;let o=t.__ref;e.effect=P(()=>{e.disposed||Lt(t,()=>{try{let r=t.onBridgeUpdate.call(t,e.instance,t,t.state,t.context);r&&typeof r.then=="function"&&r.catch(i=>It(t,"onBridgeUpdate",i))}catch(r){It(t,"onBridgeUpdate",r)}})},{depth:o.path.length,label:()=>o.path.join(".")+"::onBridgeUpdate"}),o.__effects.push(e.effect)}function Kd(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&&qd(t,e))}function qd(t,e){if(e.destroyed)return;e.destroyed=!0;let n=e.instance;if(e.instance=void 0,ix(t,"bridge")&&(t.bridge=void 0),typeof t.onBridgeDestroy=="function")try{let o=Vd(t,t.onBridgeDestroy,n);o&&typeof o.then=="function"&&o.catch(r=>It(t,"onBridgeDestroy",r))}catch(o){It(t,"onBridgeDestroy",o)}}function Dn(t){return t.__mount||(t.__mount={pending:0,tail:null,holder:null,waiters:null,chunkGen:0,attachLater:!1,held:!1})}function Co(t){let e=t.__mount;return e?e.pending:0}function vo(t){if(!t)return;let e=t.__ref;if(!e)return;if(e.__onConnected&&qf(t),se())return mt(()=>vo(t));e.__disposed=!0,(e.__faceWait||e.__faceWaitLate)&&D.faceWait!==null&&D.faceWait.dispose(t);let n=e.__if===!1&&!e.__ifInitialized;if(!n)try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(i){console.error("[smbls] onBeforeRemove error:",i)}if(e.__bridge&&(globalThis.__SMBLS_BUILD_DEFER_F_bridge__?An.bridge&&An.bridge.destroy(t):Kd(t)),e.__effects){for(let i=0;i<e.__effects.length;i++)e.__effects[i].dispose();e.__effects.length=0}if(typeof e.__releaseMedia=="function"&&(e.__releaseMedia(),e.__releaseMedia=null),e.__eventCleanup){for(let i=0;i<e.__eventCleanup.length;i++)e.__eventCleanup[i]();e.__eventCleanup.length=0}if(e.__children){let i=e.__children.slice();e.__children.length=0;for(let s=0;s<i.length;s++){let a=t[i[s]];a&&a.__ref&&vo(a)}}if(e.__ifParked&&e.__ifParked.size){let i=[...e.__ifParked];e.__ifParked.clear();for(let s=0;s<i.length;s++){let a=t[i[s]];a&&a.__ref&&a.parent===t&&vo(a)}}let o=D.hydration!==null?t.context?.__replacing:void 0;o&&D.hydration.releaseReplaced(o,t),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 i=t.parent.__ref.__children.indexOf(t.key);i!==-1&&t.parent.__ref.__children.splice(i,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(i){console.error("[smbls] onRemove error:",i)}e.__mount&&e.__mount.tail&&D.mount.abandon(t,e),t.node=null,t.parent=null,t.__ref=null}function fa(){vo(this)}function Xd(t,e,n){let o=t?.context?.analyze;if(!o||!o.emit||e==="warn"&&!o.shouldCapture("warnings")||e==="error"&&!o.shouldCapture("errors"))return;let r=n.map(i=>i?.message||(typeof i=="string"?i:null)).filter(Boolean).join(" ");o.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:e==="error"?"error":"warning",level:e,hook:e==="error"?"el.error":"el.warn",element:{key:t.key!=null?String(t.key):null,name:t.__name||null,tag:t.tag||null},message:r||null,args:n})}var Qd=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),ax=new Set,Jd=t=>Qd(ua,t)&&!(Tf||ax).has(t),Yd=new Set;function tp(t,e){Yd.has(t)||Yd.add(t)}function cx(...t){return Xd(this,"warn",t),_u.apply(this,t)}function lx(...t){return Xd(this,"error",t),Dr.apply(this,t)}var ua={update:pa,remove:fa,getDB:Su,getQuery:wu,getRootData:pu,getPath:fu,nextElement:yu,previousElement:mu,verbose:xs,warn:cx,error:lx,variables:bu,spotByPath:lu,set(t,e,n){let o=this.__ref;if(o){if(o.__setLocked){o.__setQueued={content:t,options:e};return}o.__setLocked=!0}let r,i=t!=null?D.hydration:null,s=i&&typeof i.handBack=="function"?this.context?.__hydration:null,a=s&&o?.__children&&this.content?.__ref?i.handBack(s,this.content):null;try{if(this.removeContent(),t!=null){let l=this.context?.__create;try{l&&(r=l(t,this,"content",e,n))}finally{a&&i.settleHandBack(s,a)}}this.__ref&&(this.__ref.contentManaged=!0)}finally{if(o){o.__setLocked=!1;let l=o.__setQueued;l&&(o.__setQueued=null,this.set(l.content,l.options))}}return r},reset(t){let e=this.context?.__create;if(!e)return this;let n=this.parent,o=this.key,r=this.parse();return this.remove(),e(r,n,o,t)},lookup(t){let e=this.parent;for(;e;){if(typeof t=="function"){if(t(e))return e}else if(typeof t=="string"){if(e.key===t)return e;if(e[t]&&e[t].__ref)return e[t]}e=e.parent}return null},whenConnected(t){return zt(this,t)},lookdown(t){let e=this.__ref;if(!e?.__children)return null;for(let n of e.__children){let o=this[n];if(!o)continue;if(typeof t=="function"){if(t(o))return o}else if(typeof t=="string"&&o.key===t)return o;let r=o.lookdown?.(t);if(r)return r}return null},lookdownAll(t,e=[]){let n=this.__ref;if(!n?.__children)return e;for(let o of n.__children){let r=this[o];r&&(typeof t=="function"?t(r)&&e.push(r):typeof t=="string"&&r.key===t&&e.push(r),r.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]):[]},getAdoption(){let t=this.__ref&&this.__ref.__adoption;if(t)return t;if(this.node)return null;let e=D.hydration;return e&&typeof e.foresee=="function"?e.foresee(this):null},getExtends(){let t=this.__ref,e=t&&(t.__mergedDefinition||t.origin);return e?$d(this,e,t.path[t.path.length-1]):[]},facesReady(){if(globalThis.__SMBLS_BUILD_DROP_F_faceWait__)return Promise.resolve(Z("faceWait",this)||[]);let t=D.faceWait;return t?t.ready(this):Promise.resolve([])},checkFaces(){if(globalThis.__SMBLS_BUILD_DROP_F_faceWait__){Z("faceWait",this);return}let t=D.faceWait;t&&t.recheck(this)},getRoot:du,getRootState:uu,getRootContext:hu,getContext:gu,parse(t){let e={},n=t?new Set(t):null,o=this.__ref?.__exec;for(let r in this)if(!(r==="parent"||r==="node"||r==="__ref")&&!n?.has(r)){if(o&&o[r]!==void 0){e[r]=o[r];continue}typeof this[r]!="function"&&(e[r]=this[r])}return e},parseDeep(t){let e=this.parse(t),n=this.__ref;if(n?.__children)for(let o of n.__children)this[o]?.parseDeep&&(e[o]=this[o].parseDeep(t));return e},keys(){return Object.keys(this)},log(...t){if(t.length){let e={};for(let 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 o=e.replace(/[A-Z]/g,i=>"-"+i.toLowerCase()),r=String(n).replace(/\s*!important\s*$/,"");this.node.style.setProperty(o,r,"important")}},call(t,...e){let n=this.context,o=Jd(t);o&&n?.methods?.[t]&&n.methods[t]!==this[t]&&tp(t,"el.call");let r=o?this[t]:n?.methods?.[t]||n?.functions?.[t]||n?.utils?.[t]||this[t];if(typeof r=="function"){let i=xr;return!i||!i(r)?r.call(this,...e):void 0}},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)}},da=new WeakMap;function fx(t){if(!t)return ua;let e=da.get(t);if(e)return e;e=Object.create(ua);let n=t.methods;if(n)for(let o in n)e[o]=n[o];return da.set(t,e),e}function ha(t){let e=fx(t.context);Object.setPrototypeOf(t,e)}function ga(t){if(!t)return!1;let e=da.get(t);if(!e)return!1;let n=t.methods;if(!n)return!1;for(let o in n){if(Jd(o)&&!Qd(e,o)){tp(o,"refreshContextProto");continue}e[o]=n[o]}return!0}var Eo=(t,e,n)=>{Object.defineProperty(t,e,{value:n,enumerable:!1,configurable:!0,writable:!0})},Vt=(t,e,n,{onlyIfAbsent:o}={})=>{Eo(t,"$"+e,n),!(o&&Object.prototype.hasOwnProperty.call(t,e))&&Eo(t,e,n)},_a=(t,e,...n)=>{if(!t)return;let o=t["$"+e];if(typeof o=="function")return o.apply(t,n);let r=t[e];if(typeof r=="function")return r.apply(t,n)},Ft=(t,e)=>{if(H(e)){let r=e.__raw||e;Vt(r,"toggle",function(i,s={}){e[i]=!e[i]},{onlyIfAbsent:!0}),Vt(r,"set",function(i,s={}){let a=e.__element;return typeof i=="object"&&i!==null&&a&&typeof a.onBeforeStateUpdate=="function"&&!s.preventBeforeStateUpdateListener&&a.onBeforeStateUpdate(a,e,a.context,{changes:i,options:s})===!1||(e.$clean({preventStateUpdate:!0}),typeof i=="object"&&i!==null&&e.$update(i,{...s,preventBeforeStateUpdateListener:!0})),e},{onlyIfAbsent:!0}),Vt(r,"setByPath",function(i,s,a={}){let l=i.split("."),c=e;for(let f=0;f<l.length-1;f++)c[l[f]]===void 0&&(c[l[f]]={}),c=c[l[f]];return c[l[l.length-1]]=s,e}),Vt(r,"getByPath",function(i){let s=i.split("."),a=e;for(let l=0;l<s.length;l++){if(a==null)return;a=a[s[l]]}return a}),Vt(r,"removeByPath",function(i,s={}){let a=i.split("."),l=e;for(let c=0;c<a.length-1;c++){if(l==null)return e;l=l[a[c]]}return l&&delete l[a[a.length-1]],e}),Vt(r,"reset",function(i={}){let s=e.$parse();return e.$set(s,i)}),Vt(r,"apply",function(i,s={}){if(typeof i=="function"){let a=i(e);return e.$update(a,s)}}),Vt(r,"applyFunction",function(i,s={}){if(typeof i=="function")return i(e),e.$update(e.$parse(),s)}),Vt(r,"rootUpdate",function(i,s={}){let a=e;for(;a?.parent&&H(a.parent);)a=a.parent;return _a(a,"update",i,s)}),Vt(r,"parentUpdate",function(i,s={}){if(e.parent)return _a(e.parent,"update",i,s)}),Vt(r,"quietReplace",function(i,s={}){return e.$replace(i,{quiet:!0,...s})}),Object.getOwnPropertyDescriptor(r,"root")||Object.defineProperty(r,"root",{get:function(){let i=e,s=H(i)?i:null;for(let a=0;a<64&&i?.parent&&i.parent!==i;a++)i=i.parent,H(i)&&(s=i);return s||i},enumerable:!1,configurable:!0});return}if(!e||typeof e!="object")return;let n=()=>{for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&delete e[r]},o={update(r){if(!r||typeof r!="object")return e;for(let i in r)e[i]=r[i];return e},apply(r){if(typeof r!="function")return e;let i=r(e);return i?e.$update(i):e},parse(){return{...e}},toggle(r){return e[r]=!e[r],e},set(r){if(!r||typeof r!="object")return e;n();for(let i in r)e[i]=r[i];return e},replace(r){return e.$set(r)},clean(){return n(),e}};Eo(e,"$settled",function(){return pf().then(()=>e)});for(let r in o)if(Eo(e,"$"+r,o[r]),typeof e[r]!="function"){if(Object.prototype.hasOwnProperty.call(e,r)){_f(r,"");continue}Eo(e,r,o[r])}};var ux=function(t,e,n){return t.state=ep(t,e,n),t.state},ep=function(t,e,n){let{__ref:o}=t,r=t.state;if(r==null||r===!1){let i=e?.state||{};return Ft(t,i),i}if(typeof r=="string")return o&&(o.__state=r),o.__stateType="string",dx(r,t,e);if(typeof r=="number"||typeof r=="boolean"){o&&(o.__state=r,o.__stateType=typeof r,o.__hasRootState=!0);let i=Ue({value:r});return i.__element=t,e?.state&&(i.parent=e.state),Ft(t,i),i}if(typeof r=="function"&&(r=r(t,e?.state)||{}),typeof r=="object"&&!H(r)){o&&(o.__hasRootState=!0),r.isRootState&&o&&(o.__hasRootState=!0);let i=Ue({...r});if(i.__element=t,!Object.getOwnPropertyDescriptor(i,"root")){let s=e?.state?.root||e?.state||i;Object.defineProperty(i,"root",{get:()=>s,enumerable:!1,configurable:!0})}return e?.state&&(i.parent=e.state,e.state.__children&&(e.state.__children[t.key]=i)),Ft(t,i),typeof t.onStateCreated=="function"&&t.onStateCreated(t,i,t.context,n),i}return H(r)?(r.__element=t,r):e?.state||{}};function ya(t,e){if(!e)return t;let n=e.split("/"),o=t;for(let r of n){if(o==null)return{};o=o[r]}return o??{}}function dx(t,e,n){if(!n?.state)return{};if(t===".")return n.state;if(t.startsWith("../")){let r=t.slice(3),i=n.state?.parent;return r&&i?ya(i,r):i??n.state??{}}if(t.startsWith("~/")){let r=n.state;for(;r?.parent;)r=r.parent;let i=t.slice(2);return i?ya(r,i):r??{}}let o=ya(n.state,t);if(o&&typeof o=="object"&&!H(o)&&!Object.getOwnPropertyDescriptor(o,"root")){let r=n.state?.root||n.state;Object.defineProperty(o,"root",{get:()=>r,enumerable:!1,configurable:!0})}return o}var px=(t,e)=>{if(!t)return op;let n=_x(t,e);return!n||!n.state?op:mx(n.state)},hx=()=>se()!=null,gx=128;function _x(t,e){let n=typeof e=="function"?e:typeof e=="string"?i=>!!i?.[e]:i=>!!i?.state,o=t,r=null;for(let i=0;i<gx&&o;i++){if(n(o)&&o.state)return o;if(o.state&&!r&&(r=o),!o.parent||o.parent===o)break;o=o.parent}return r}var yx={get(t,e){return t[e]}},np=new WeakMap,mx=t=>{let e=np.get(t);return e||(e=new Proxy(t,yx),np.set(t,e)),e},op=new Proxy(Object.create(null),{get(){},has(){return!1}});var mR=["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"],bx=["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"],Sx=["requiredExtensions","systemLanguage"],rp={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"]},wx=new Set(["linearGradient","radialGradient","stop","clipPath","mask","marker","pattern","filter","symbol"]),xx=()=>{let t={};for(let e in rp)t[e]=[...rp[e],...wx.has(e)?[]:Sx,...bx];return t},Ee={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","enterkeyhint","exportparts","headingoffset","headingreset","hidden","id","inputmode","lang","nonce","part","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"],...xx()},kx=["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"],fp=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,ip=new Map,Oe=t=>{let e=ip.get(t);return e===void 0&&(e=fp(t)||Tx(t),ip.set(t,e)),e},up=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"]),ma=new Set;for(let t in Ee)t==="default"||t==="aria"||t==="svg"||Ee[t].forEach(e=>{e.startsWith("on")||ma.add(e)});var dp=t=>{let e=t.charCodeAt(0);if(e<97||e>122||!/[A-Z]/.test(t))return null;let n=t.replace(/[A-Z]/g,r=>"-"+r.toLowerCase());if(ma.has(n))return n;let o=t.toLowerCase();return ma.has(o)?o:null},Tx=t=>up.has(t)?t.toLowerCase():dp(t),Ax=new Set(["draggable","contenteditable","spellcheck","autocorrect","writingsuggestions","translate"]),Cx=new Map([["autocorrect",["on","off"]],["translate",["yes","no"]]]),In=t=>typeof t=="string"&&(Ax.has(t)||t.startsWith("aria-")),de=(t,e)=>{if(e!==!0&&e!==!1)return e;if(In(t)){let n=Cx.get(t);return n?e?n[0]:n[1]:e?"true":"false"}return e===!0?"":e},sp=new Map,Gt=(t,e)=>{let n=Ee.default,o=Object.prototype.hasOwnProperty.call(Ee,t)?Ee[t]:null,r=o?o.length:-1,i=sp.get(t);(!i||i.def!==n||i.defLen!==n.length||i.own!==o||i.ownLen!==r)&&(i={def:n,defLen:n.length,own:o,ownLen:r,answers:new Map},sp.set(t,i));let s=i.answers.get(e);return s===void 0&&(s=vx(t,e),i.answers.set(e,s)),s},vx=(t,e)=>{if(e.startsWith("aria-")||e.startsWith("data-")||fp(e)||up.has(e)||Ee.default.includes(e))return!0;if(Object.prototype.hasOwnProperty.call(Ee,t)){let n=Ee[t];if(n.includes(e))return!0;let o=dp(e);return o!==null&&n.includes(o)}return!1},pp=t=>{if(!L(t))return!1;let e=t.toLowerCase();return kx.includes(e)},bR=(t,e,n)=>{let o={};for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(n&&r in n)continue;if(r==="aria"&&e[r]&&typeof e[r]=="object"){for(let a in e[r])Se(e[r][a])&&(o["aria-"+a]=e[r][a]);continue}if(r==="data"&&e[r]&&typeof e[r]=="object"){for(let a in e[r])if(Se(e[r][a])){let l=a.replace(/([A-Z])/g,c=>"-"+c.toLowerCase());o["data-"+l]=e[r][a]}continue}let i=Gt(t,r),s=pp(r);if(Se(e[r])&&(i||s)){let a=Oe(r)||r;o[a]=e[r]}}return o},SR=(t,e)=>{let n={};if(t.attr)for(let o in t.attr)n[o]=t.attr[o](e,e.state,e.context);if(t.aria&&typeof t.aria=="object")for(let o in t.aria){let r=t.aria[o];typeof r=="function"&&(n["aria-"+o]=r(e,e.state,e.context))}if(t.data&&typeof t.data=="object")for(let o in t.data){let r=t.data[o];if(typeof r=="function"){let i=o.replace(/([A-Z])/g,s=>"-"+s.toLowerCase());n["data-"+i]=r(e,e.state,e.context)}}return n},en=(t,e)=>{let n=t.call("exec",e,t);if(n)return L(n)&&n.includes("{{")&&(n=t.call("replaceLiteralsWithObjectFields",n)),n},ap=(t,e)=>{let n=(t.preSrc||"")+(en(t,e)||"");if(!n)return;try{return new URL(n),n}catch{}let{context:o}=t;if(!o.files&&!o.assets)return n;if(n.startsWith("/assets/")){let r=n.slice(8),i=o.assets&&(o.assets[n]||o.assets[r]);return i&&i.content?i.content.src:n}if(n.startsWith("/files/")){let r=n.slice(7),i=o.files&&(o.files[n]||o.files[r]);return i&&i.content?i.content.src:n}if(o.assets){let r=o.assets[n];if(r&&r.content)return r.content.src}if(o.files){let r=o.files[n];if(r&&r.content)return r.content.src}return n},cp=new WeakSet,ba=(t,e)=>{if(!L(e)||e.charAt(0)!=="/")return e;let n=e.charAt(1);if(n==="/"||n==="\\")return e;let o=t&&t.context;if(!o)return e;let{functions:r,snippets:i,utils:s}=o,a=r&&r.routerHref||i&&i.routerHref||s&&s.routerHref;if(!nt(a))return e;try{let l=a.call(t,e,t);return L(l)&&l?l:e}catch(l){return cp.has(a)||(cp.add(a),typeof console<"u"&&console.warn("[smbls] routerHref threw; links keep the href as written",l)),e}},Ex={a:!0,area:!0},nn={src:t=>ap(t,t.src),href:t=>{let e=en(t,t.href);return Ex[t.tag]?ba(t,e):e},action:t=>en(t,t.action),poster:t=>ap(t,t.poster),data:t=>en(t,t.data)},hp=t=>{let e=t.tag||"div",n={};for(let o in nn)if(t[o]!==void 0&&Gt(e,o)){let r=nn[o](t);r!==void 0&&(n[o]=r)}return n},lp=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return nt(n)?n.call(e,e):!!n},Ox=(t,e,n)=>{if(t==="$"){let r=lp(e,n);return r===void 0&&(r=!!n[e]),r}let o=n[e]===!0||n.state[e];if(!o){let r=lp(e,n);r!==void 0&&(o=r)}return t==="."?!!o:!o},Rx=new Set(["$",".","!"]),gp=(t,e,n,o=Ox)=>{let r={},i=(s,a,l,c)=>{let f=a;r[s]=u=>{if(o(l,c,u))return nt(f)?f(u,u.state,u.context):f}};for(let s in t){let a=s.charAt(0);if(!Rx.has(a))continue;let l=t[s];if(!l||typeof l!="object")continue;let c=s.slice(1);for(let f in l){if(n&&f in n)continue;if(f==="aria"&&l[f]&&typeof l[f]=="object"){for(let g in l[f])i("aria-"+g,l[f][g],a,c);continue}if(f==="data"&&l[f]&&typeof l[f]=="object"){for(let g in l[f]){let h=g.replace(/([A-Z])/g,_=>"-"+_.toLowerCase());i("data-"+h,l[f][g],a,c)}continue}let u=Gt(e,f),d=pp(f);if(!u&&!d)continue;let p=Oe(f)||f;i(p,l[f],a,c)}}return r};var ti="3.14.837";var _p="__SMBLS_ELEMENT_ID_ENGINE__",yp=(t,e,n)=>{let o=e||ti,r=n||(typeof globalThis<"u"?globalThis:null);if(!r)return t;let i=r[_p];return i&&i.engine&&i.version===o?i.engine:(i||(r[_p]={version:o,engine:t}),t)};var Dx=new Set(["rows","cols","wrap","fill","stroke","offset"]),ei=(t,e)=>Dx.has(e)&&Gt(t,e),Re=(t,e)=>!!(z[e]||q&&q.has(e))&&!ei(t,e);var Vp=yp({uniqId:1,scopedStyleId:0},ti),Pn=[],De=new Set,Fa=!1,Gp=0,Nn=null,Po=null;function jn(){return typeof Date<"u"&&typeof Date.now=="function"?Date.now():0}function Kp(){return typeof document<"u"&&document.visibilityState==="hidden"}var Ix=250,Lx=1e3;function Px(){return Po&&(Po!==(typeof requestAnimationFrame=="function"?requestAnimationFrame:null)||Kp())?!0:jn()-Gp>=Lx}function Bx(){if(Fa=!0,Gp=jn(),Po=null,typeof requestAnimationFrame!="function"){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(Io,0);Nn=t?()=>t(e):null;return}if(Kp()){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(Io,Ix);Nn=t?()=>t(e):null}else{let t=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:null;Po=requestAnimationFrame;let e=requestAnimationFrame(Io);Nn=t?()=>t(e):null}}function Uo(){if(Fa){if(!Px())return;let t=Nn;if(Nn=null,t)try{t()}catch{}}Bx()}var qp=300,Yp=15e4,Da=0;function Zp(){Da++;let t=!1;return()=>{t||(t=!0,!(--Da>0)&&(Pn.length||De.size)&&Uo())}}function Io(){if(Fa=!1,Nn=null,Po=null,Da>0||(!globalThis.__SMBLS_BUILD_DROP_F_autoGrow__&&De.size&&Wk(),!Pn.length))return;let t=Pn.splice(0,Pn.length);for(let e=0;e<t.length;e++){let n=t[e];if(n.node){if(!n.node.isConnected){let o=n.__ref||(n.__ref={});o.__mountAttempts=(o.__mountAttempts||0)+1,o.__mountFirstAttemptAt==null&&(o.__mountFirstAttemptAt=jn());let r=jn()-o.__mountFirstAttemptAt;o.__mountAttempts<=qp&&r<Yp?(Pn.push(n),Uo()):console.warn("[DOMQL] onMounted dropped after",o.__mountAttempts,"attempts /",r,"ms \u2014 node never connected:",n.key||n.tag||n);continue}typeof n.onBridgeMount=="function"&&(globalThis.__SMBLS_BUILD_DEFER_F_bridge__?An.bridge?An.bridge.mount(n):Z("bridge",n):Gd(n)),typeof n.onMounted=="function"&&gt("Mounted",n,n.__ref?.__mountOptions||{})}}}function ja(t,e){let n=!globalThis.__SMBLS_BUILD_DROP_F_autoGrow__&&t.__ref?.__autoGrow;n&&n.active&&$o(t,!0),!(typeof t.onMounted!="function"&&typeof t.onBridgeMount!="function")&&(t.__ref.__mountOptions=e,Pn.push(t),Uo())}function ii(t,e){typeof t.onContentUpdate=="function"&&(ce("contentUpdate",t,e),Lt(t,()=>{try{t.onContentUpdate(t,t.state,t.context,e)}catch(n){if(It(t,"onContentUpdate",n),t.context?.strictMode)throw n}}))}function Mx(t){return t.toLowerCase()}function Wn(t){let e=t.charCodeAt(0);return e===58||e===64||e===38||e===91||e===62||e===43||e===126||e===42}function si(t){if(typeof t=="string")return t||void 0;if(typeof t=="number"||typeof t=="bigint")return String(t)}function Xp(t,e,n,o){return ui(o,si(t)||(e&&typeof e=="object"?si(e.key):void 0)||String(n))}function ui(t,e){if(!t||typeof e!="string")return e;let n=e;for(;Nx(t,n);)n="$"+n;return n!==e&&void 0,n}function Nx(t,e){if(ct.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)}function Et(t,e,n,o={},r){if(se())return mt(()=>Et(t,e,n,o,r));if(t==null||t===!1)return null;let i=Xx(t),s=Qx(t);(typeof t=="string"||typeof t=="number")&&(t={text:t}),n=si(n);let a=si(t.key),l=Object.create(null);l.key=n||(a&&e?ui(e,a):a)||`_${Vp.uniqId++}`,l.parent=e||null,l.context=t.context||e?.context||o.context||{},l.context.__create||(l.context.__create=Et);let c=l.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||l,path:e?.__ref?.path?[...e.__ref.path,l.key]:[l.key],__dataKey:s,origin:t,__mount:null,__plainRows:null,__ifParked:null};i&&(c.__runtimeSource=i);let f=r;r&&(r.holdTail||r.deferAttach)&&(r.holdTail&&D.mount!==null&&D.mount.hold(l),r.deferAttach&&(Dn(c).attachLater=!0),f=void 0);let u=t;t=Jp(l,t,n,a,e,o);let d=$a(l,c);if(d!=null){let y;if(typeof d=="function")try{y=d(l,l.state,l.context)}catch(b){if(y=!1,c.__ifError=b,typeof console<"u"&&console.warn){let T=l.key||l.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${T} \u2014 treating as false:`,b?.message||b)}}else y=d;c.__if=!!y}if(c.__if)typeof d=="function"&&(c.__ifInitialized=!0);else{if(e){e[l.key]=l;let b=e.__ref;b&&(b.__ifParked||(b.__ifParked=new Set)).add(l.key)}let y=Ux(t,n,l.context?.components);return y.length&&(c.__ifLateMerge={definition:u,key:n,ownKey:a,names:y,options:o}),typeof d=="function"&&ch(l,c,d),l}l.tag||(l.tag=ve(l)),gt("Init",l,o);let p=D.hydration,g=l.node=p!==null&&p.adopt(l)||To(l);if(!g)return l;let h=p!==null?l.context?.__replacing:void 0;if(h&&p.markReplaced(h,l,g),l.tag==="fragment"){let b=(l.context?.document||globalThis.document).createComment("");g.appendChild(b),c.__fragmentAnchor=b}if(gt("AttachNode",l,o),g.setAttribute&&l.key&&g.getAttribute("data-key")!==String(l.key)&&g.setAttribute("data-key",l.key),e){let y=e[l.key];e[l.key]=l;let b=e.__ref?.__children;b&&(y===void 0||!b.includes(l.key))&&b.push(l.key)}g.setAttribute&&l.context?.scopeSelector&&l.context.scopeSelector!==":root"&&l.context.key&&l.key===l.context.key&&g.setAttribute("data-smbls-app",l.context.key),l.id&&g.setAttribute&&(g.id=l.id),Oh(l,o),ih(l),ah(l);try{Na(l,o)}catch(y){di(l,y)}let _=c.__mount;return _!==null&&_.pending>0?(_.attachLater||(o.mountWhole===!0&&!(r&&r.holdTail)&&Fx(l,e)?_.held=!0:$n(l,e,f)),_.tail=()=>D.mount.finish(l,o),l):(Fn(l,!0),(_===null||!_.attachLater)&&$n(l,e,f),Wa(l,o),l)}function zo(t){let e=t&&t.__ref&&t.__ref.__mount;return!e||!e.attachLater||(e.attachLater=!1,!t.node||t.__ref.__if===!1)?!1:($n(t,t.parent),!0)}function Fx(t,e){if(!e||e.tag==="fragment")return!1;let n=t.node;if(!n||n.nodeType===11)return!1;let o=e.node||(e.nodeType?e:null);return!!o&&n.parentNode!==o}function Qp(t){let e=t.__ref,n=e&&e.__mount;if(!n||!n.held||(n.held=!1,e.__if===!1))return;let o=t.node,r=t.parent;if(!o||!r)return;let i=r.__ref;if(!i){$n(t,r);return}let s=r.node;if(!s)return;let a=i.__children,l=a?a.lastIndexOf(t.key):-1,c;for(let f=l-1;f>=0;f--){let u=r[a[f]],d=u&&(he(u)||(u.tag==="fragment"&&u.__ref?u.__ref.__fragmentAnchor:null));if(d&&d.parentNode===s){c=d.nextSibling;break}}c===void 0&&(c=Ao(s,i.__textNode)),$n(t,r,c?{position:"before",node:c}:void 0)}function di(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?`
23
+ `+e.stack.split(`
24
+ `).slice(0,6).join(`
25
+ `):"")}Ke(t,{where:"createChildren",error:e})}var Sa=["Create","Complete","Render","RenderRouter"];function Wa(t,e){typeof t.html=="function"&&t.node&&!t.node.innerHTML&&Lt(t,()=>{try{let n=t.html(t,t.state,t.context);n!=null&&typeof n!="function"&&(t.node.innerHTML=n)}catch{}});for(let n=0;n<Sa.length;n++){if(gt(Sa[n],t,e),!t.__ref)return;Sa[n]==="Render"&&Ua(t)}if(t.__ref.__if!==!1&&ja(t,e),typeof t.onFrame=="function"){let n=t.onFrame,o=t.context?.designSystem,r=()=>{if(t.node){if(t.node.isConnected){o&&at(o);try{n(t,t.state,t.context)}catch(i){console.error("[DOMQL] onFrame error:",i)}finally{o&&it()}}requestAnimationFrame(r)}};requestAnimationFrame(r)}}function ai(t,e){let n=e&&e.__ref&&e.__ref.__mount;!n||!n.tail||n.holder||(n.holder=t,D.mount.hold(t))}var jx=new Set(["childProps","attr","style","scope","data","vars"]);function Jp(t,e,n,o,r,i){if(n&&!e.extends&&!e.extend){let h=n.indexOf("_"),_=n.indexOf("."),y=h>0?h:-1;if(_>0&&(y<0||_<y)&&(y=_),y>0){let b=n.substring(0,y),T=t.context?.components;T&&(T[b]||T["smbls."+b])&&(e={...e,extends:b})}}t.__ref&&(t.__ref.__mergeLayer=null),ia(t,e,i);let s=sa(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"){o&&(t.key=r?ui(r,o):o);continue}s&&s.mark(h),wa(t,h,e[h])}if(a)for(let h in a)wa(t,h,a[h]);let l=e.props;if(l&&typeof l=="object"){for(let h in l)wa(t,h,l[h]);if(s)for(let h in l)s.mark(h)}Ud(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 c=t.scope&&typeof t.scope=="object"?t.scope:null,f=r?.scope,u=t.context&&typeof t.context.globalScope=="object"&&t.context.globalScope||null,d=f||u||null;if(e.scope!==void 0||c){let h={};c&&Object.assign(h,c),e.scope!==void 0&&Object.assign(h,e.scope),t.scope=gf(h,d)}else d&&(t.scope=d);e.if!==void 0&&(t.if=e.if);let p=t.__ref,g=Jx(t,p&&p.__runtimeSource);return p&&(p.__declaredArrays=g||void 0),p&&e!==p.origin&&(p.__mergedDefinition=e),ha(t),zx(t,r,e,i),e}function wa(t,e,n){let o=t[e],r=D.chains;if(r!==null&&r(t,e,o,n))return;let i=o&&n&&typeof o=="object"&&typeof n=="object"&&!Array.isArray(o)&&!Array.isArray(n);i&&e.charCodeAt(0)>=65&&e.charCodeAt(0)<=90?t[e]=vt(o,n):i&&jx.has(e)?t[e]={...o,...n}:i&&Wn(e)?t[e]=vt(o,n):t[e]=n}var Wx=new Set(["key","parent","context","__ref"]);function $x(t,e){for(let o of Object.keys(t))Wx.has(o)||delete t[o];let n=e.definition;if(!n.extends&&!n.extend&&typeof e.key=="string"){let o=t.context?.components||{},r=o[e.key]||o["smbls."+e.key];r&&(n={...n,extends:r})}mt(()=>Jp(t,n,e.key,e.ownKey,t.parent,e.options))}function Ux(t,e,n){let o=n||{},r=a=>!!(o[a]||o["smbls."+a]),i=[],s=[];if(t.extends&&s.push(...Array.isArray(t.extends)?t.extends:[t.extends]),t.extend&&s.push(...Array.isArray(t.extend)?t.extend:[t.extend]),s.length){for(let a of s){if(typeof a!="string")continue;let l=a.includes(">")?a.split(">")[0].trim():a;r(l)||i.push(l)}return i}if(typeof e=="string"&&/^[A-Z]/.test(e)){let a=-1,l=e.indexOf("_"),c=e.indexOf(".");l>0&&(a=l),c>0&&(a<0||c<a)&&(a=c);let f=a>0?e.substring(0,a):e;r(f)||i.push(f)}return i}function xa(t,e,n){if(typeof t.onStateInit!="function"&&!Yf(t,"stateInit"))return;let o=t.state;t.state=e;try{gt("StateInit",t,n)}finally{t.state=o}}var ka=t=>({isDataOnlyKey:e=>po(t).has(e)});function zx(t,e,n,o){let r=!e,i=n.state&&typeof n.state=="object"&&!Array.isArray(n.state)&&Object.keys(n.state).length===0,s=r&&i&&t.context?.state,a=n.state!==void 0&&!s?n.state:t.state&&!H(t.state)?t.state:void 0;if(a==null){if(e?.state)t.state=e.state,Ft(t,t.state);else if(t.context?.state){let l=t.context.state,c={...l},f=t.context?.polyglot;if(f?.translations){let u=t.context,d=fs(l.lang,f),p=new Set,g=(y,b)=>{p.has(y)||tu(u,y,c)&&(c[y]=b,p.add(y),ou(u,y,b))},h=f.translations[d];if(h&&typeof h=="object")for(let y in h)g(y,h[y]);let _=new Set(Sf(f,!1));for(let y in f.translations)_.has(y)||g(y,f.translations[y])}H(c)||xa(t,c,o),t.state=H(c)?c:Ue(c,ka(t.context)),t.state.__element=t,t.state.root=t.state,Ft(t,t.state),ws?.(l,t.state),gt("StateCreated",t,o)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),Ft(t,t.state);return}if(typeof a=="string"){if(t.state=eh(a,e),t.state&&typeof t.state=="object"&&!H(t.state)){let l=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:l,enumerable:!1,configurable:!0,writable:!0})}Ft(t,t.state),Vx(t,a,e),gt("StateCreated",t,o);return}if(typeof a=="function"){let l=a(t,e?.state);if(H(l))t.state=l;else{let c=l||{};xa(t,c,o),t.state=Ue(c,e?.state?void 0:ka(t.context))}}else if(H(a))t.state=a;else{let l={...a};xa(t,l,o),t.state=Ue(l,e?.state?void 0:ka(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,Ft(t,t.state),ws?.(a,t.state),gt("StateCreated",t,o)}function mp(t,e){if(!e)return t;let n=e.split("/"),o=t;for(let r of n){if(o==null)return{};o=o[r]}return o??{}}function th(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 eh(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")||t.startsWith("~/")){let[r,i]=th(t,e);return i?mp(r,i):r??{}}if(e.state?.[t]!==void 0)return e.state[t];let n=mp(e.state,t);if(n!=null&&Object.keys(n).length>0)return n;let o=e.context?.polyglot;if(o?.translations){let r=fs(e.state?.root?.lang,o),i=o.translations[r];if(i?.[t]!==void 0)return i[t];if(o.translations[t]!==void 0)return o.translations[t]}return{}}function Hx(t,e){let[n,o]=th(t,e);if(!o||!n||typeof n!="object")return;let r=n[o];if(r!==void 0||o.indexOf("/")===-1)return r;let i=n;for(let s of o.split("/")){if(i==null||typeof i!="object")return;i=i[s]}return i}function Vx(t,e,n){let o=t.__ref;if(!o||!n||e==="."||!H(n.state))return;o.__stateBinding&&o.__stateBinding.dispose();let r=mt(()=>P(()=>{let i=Hx(e,n);!i||typeof i!="object"||i===t.state||mt(()=>nh(t,t.state,i,!0))},{depth:o.path?o.path.length:0,label:$(o,"state")}));r._isStateBinding=!0,o.__stateBinding=r,o.__effects&&o.__effects.push(r)}function nh(t,e,n,o){let r=t.__ref;if(!r)return;if(o||t.state===e){t.state=n,o&&Ft(t,n),Sp(r);let s=r.__children;if(s)for(let a=0;a<s.length;a++){let l=t[s[a]];l&&l.__ref&&l.parent===t&&nh(l,e,n,!1)}return}if(r.__stateBinding){r.__stateBinding._notify();return}let i=t.state;i&&typeof i=="object"&&i.parent===e&&(i.parent=n,Sp(r))}function bp(t,e){let n=t.__ifParked;if(!n||!n.size)return e;for(let o of n)e.includes(o)||e.push(o);return e}function Sp(t){let e=t.__effects;if(e)for(let n=0;n<e.length;n++){let o=e[n];o&&!o._disposed&&!o._isStateBinding&&!o._isSubscribeToEffect&&typeof o._notify=="function"&&o._notify()}}function Gx(t){let e=t.__ref,n=t.tag||"div",o=t.context?.designSystem,r=[],i=Object.keys(t);for(let s=0;s<i.length;s++){let a=i[s];if(typeof t[a]!="function"||ct.has(a))continue;let l=a.charCodeAt(0);l>=65&&l<=90||Mt(a)||z[a]||q&&q.has(a)||l!==45&&(Gt(n,a)||r.push({prop:a,fn:t[a]}))}for(let s=0;s<r.length;s++){let{prop:a,fn:l}=r[s];e.__exec[a]=l,Object.defineProperty(t,a,{get(){o&&at(o);try{return l(t,t.state,t.context)}catch{return}finally{o&&it()}},set(c){delete e.__exec[a],Object.defineProperty(t,a,{value:c,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function Kx(t,e){if(!(!Array.isArray(e)||e.length===0))for(let n=0;n<e.length;n++){let o=e[n];try{typeof o=="function"?o(t,t.state,t.context):typeof o=="string"&&t.state?.[o]}catch{}}}function J(t,e,n){return!Array.isArray(e)||e.length===0?n:function(...o){return Kx(t,e),n.apply(this,o)}}function Ln(t,e){if(!(!t||Array.isArray(t)||typeof t!="object"))return t[e]}function $(t,e){return()=>t.path.join(".")+"::"+e}var wp=/(['"`])((?:\\.|(?!\1)[^\\])*)\1/g,xp=new WeakMap,qx=t=>{let e=xp.get(t);if(e!==void 0)return e;e=null;let n;try{n=String(t)}catch{n=""}if(n.includes("{{")){wp.lastIndex=0;let o;for(;(o=wp.exec(n))!==null;)o[2].includes("{{")&&(e||(e=[])).push(o[2])}return xp.set(t,e),e},Yx=(t,e)=>{let n=qx(t);if(n)for(let o=0;o<n.length;o++)e.add(n[o])},Zx=(t,e)=>!Mt(t)&&!Re(e,t),Ta=(t,e,n,o,r)=>{if(typeof e=="string"){!r&&e.includes("{{")&&n.add(e);return}typeof e=="function"&&Zx(t,o)&&Yx(e,n)},Ia=new WeakMap,Bo=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Mo=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)?vt(t,e):t},No=(t,e)=>t&&e?vt(t,e):t||e||null,oh=(t,e)=>{let n=t.__ref&&t.__ref.__runtimeSource;return!!n&&Bo(n,e)},Ie=(t,e)=>oh(t,e)?Mo(t.__ref.__runtimeSource[e]):null,sn=(t,e)=>(e&&t&&typeof t=="object"&&Ia.set(t,e),t),Xx=t=>{if(!t||typeof t!="object")return;let e=Ia.get(t);return e&&Ia.delete(t),e},La=new WeakSet,Fo=t=>(t&&typeof t=="object"&&La.add(t),t),Qx=t=>!t||typeof t!="object"||!La.has(t)?!1:(La.delete(t),!0),Pa=(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 o=0;o<t.length;o++)Pa(t[o],e,n);return}if(!t.__ref)for(let o of Object.keys(t)){if(o==="state")continue;let r=Object.getOwnPropertyDescriptor(t,o);r&&"value"in r&&Pa(r.value,e,n)}}},Jx=(t,e)=>{let n=null;for(let o of Object.keys(t)){if(ct.has(o)||e&&Bo(e,o))continue;let r=Object.getOwnPropertyDescriptor(t,o),i=r&&r.value;if(!Array.isArray(i))continue;let s=new Set;Pa(i,s,new Set),s.size&&(n||(n=new Map),n.set(i,s))}return n},kp=(t,e)=>{if(Array.isArray(e))for(let n=t;n;n=n.parent){let o=n.__ref&&n.__ref.__declaredArrays,r=o&&o.get(e);if(!r)continue;let i=t.__ref;i.__authoredTemplates||(i.__authoredTemplates=new Set);for(let s of r)i.__authoredTemplates.add(s);return}},rh=["attr","aria","data","metadata"],tk=t=>{if(rh.includes(t))return!0;let e=t.charCodeAt(0);return e===46||e===33||e===64},ek=(t,e)=>{let n=new Set,o=t.tag||"div";for(let r of Object.keys(t)){let i=Object.getOwnPropertyDescriptor(t,r),s=i&&i.value,a=!!e&&Bo(e,r);if(s&&typeof s=="object"&&!Array.isArray(s)){if(!tk(r))continue;let l=a?e[r]:null,c=l&&typeof l=="object"?l:null,f=r.charCodeAt(0)===46||r.charCodeAt(0)===33;for(let u in s){let d=a&&(!c||Bo(c,u)),p=s[u];if(f&&p&&typeof p=="object"&&!Array.isArray(p)&&rh.includes(u)){for(let g in p)Ta(g,p[g],n,o,d);continue}Ta(u,p,n,o,d)}continue}Ta(r,s,n,o,a)}return n};function ih(t,e){let n=t.__ref,o=!!(e&&e.skipIfEffect),r=ek(t,n.__runtimeSource);if(n.__authoredTemplates)for(let c of r)n.__authoredTemplates.add(c);else n.__authoredTemplates=r;if(Gx(t),typeof t.text=="function"){let c=t.text,f=J(t,t.textDeps,c),u=()=>{let p=f(t,t.state,t.context);return t.node&&typeof p=="string"&&p.includes("{{")&&(p=pt.call(t,p,t.state)),p},d=P(()=>{if(!n.contentManaged)try{let p=Ap(t,n,u);if(p===kt)return;t.node&&p!=null&&typeof p!="function"&&typeof p!="object"&&an(t,p)}catch(p){}},{depth:n.path.length,label:$(n,"text")});n.__effects.push(d),n.__exec.text=c}else if(typeof t.text=="string"&&t.text.includes("{{")){let c=t.text,f=()=>pt.call(t,c,t.state),u=P(()=>{if(n.contentManaged)return;let d=Ap(t,n,f);d!==kt&&(d!=null&&(t.text=d),t.node&&an(t,d??""))},{depth:n.path.length,label:$(n,"text")});n.__effects.push(u),n.__exec.text=c}let i=t.tag||"div";for(let c of Object.keys(t))if(typeof t[c]=="function"&&!ct.has(c)&&!Mt(c)&&!n.__exec[c]&&!ei(i,c)){if(z[c]){let f=t[c],u=J(t,t[c+"Deps"],f),d=c,p,g=null,h=null,_,y=()=>{for(let E of h)t.node.classList.remove(E);h=null,_=void 0},b=()=>{dh(t,d,g,null),ni(t,d,null),g=null},T=P(()=>{let E=t.context?.designSystem;E&&at(E);try{let m=u(t,t.state,t.context);Qs();let S;try{S=z[d](m,t,t.state,t.context)}finally{Js()}if(Array.isArray(S)){let w={};for(let x of S)if(x)for(let C in x)w[C]=x[C];S=w}if(d==="show"||d==="hide"){t.node&&li(t,d,!!(S&&S.display),!0);return}if(S&&t.node&&rk(S)){let w=Bn(S);if(w===null||w!==_){_=w;let x=Qe(Le(t,S),null,t.context?.cssPrefix),C=x?x.split(" ").filter(Boolean):null;if(t.node.classList){if(h)for(let v of h)t.node.classList.remove(v);if(C&&C.length)for(let v of C)t.node.classList.add(v);h=C}}g&&b(),p=void 0}else if(S&&t.node){h&&y();let w=Bn(S);if(w===null||w!==p||!Mn(t.node,g,t)){p=w;let x=vp(t,S,g,d);g=Do(t.node,x,t),ni(t,d,g)}}else t.node&&(h&&y(),g&&b(),p=void 0)}finally{E&&it()}},{depth:n.path.length,label:$(n,d)});n.__effects.push(T),n.__exec[c]=f}else if(q&&q.has(c)){let f=t[c],u=J(t,t[c+"Deps"],f),d=c,p,g=null,h=P(()=>{let _=t.context?.designSystem;_&&at(_);try{let y=u(t,t.state,t.context);if(t.node)if(y!=null){let b=d+":"+String(y);if(b!==p||!Mn(t.node,g,t)){p=b;let T={[d]:gi(d,y)},E=vp(t,T);g=Do(t.node,E,t),ni(t,d,g)}}else p=void 0,g=null,ni(t,d,null),d==="display"?Ho(t,""):t.node.style[d]=""}finally{_&&it()}},{depth:n.path.length,label:$(n,d)});n.__effects.push(h),n.__exec[c]=f}else if(c.charCodeAt(0)===45){let f=t[c];hh(t,c,f,t[c+"Deps"],c),n.__exec[c]=f}}if(ak(t),typeof t.html=="function"){let c=t.html,f=J(t,t.htmlDeps,c),u=P(()=>{Lt(t,()=>{let d=f(t,t.state,t.context);t.node&&d!=null&&typeof d!="function"&&(t.node.innerHTML=d)})},{depth:n.path.length,label:$(n,"html")});n.__effects.push(u),n.__exec.html=c}if(typeof t.value=="function"){let c=t.value,f=J(t,t.valueDeps,c),u=()=>{let p=f(t,t.state,t.context);return typeof p=="string"&&p.includes("{{")&&(p=pt.call(t,p,t.state)),p},d=P(()=>{try{let p=Jt(t,n,"value",u);if(p===kt)return;Cp(t,p)}catch(p){}},{depth:n.path.length,label:$(n,"value")});n.__effects.push(d),n.__exec.value=c}else if(typeof t.value=="string"&&t.value.includes("{{")){let c=t.value,f=()=>pt.call(t,c,t.state),u=P(()=>{try{let d=Jt(t,n,"value",f);if(d===kt)return;Cp(t,d)}catch(d){}},{depth:n.path.length,label:$(n,"value")});n.__effects.push(u),n.__exec.value=c}if(typeof t.style=="function"){let c=t.style,f=J(t,t.styleDeps,c),u,d=null,p,g,h,_,y=P(()=>{let b=f(t,t.state,t.context),T=t.context&&t.context.designSystem,E;if(b&&typeof b=="object"&&b===p&&T===h){let S=Bn(b);E=S!==null&&S===g?_:rn(t,b),g=S}else E=rn(t,b),g=void 0;p=b,h=T,_=E;let m=Bn(E);(m===null||m!==u||!Mn(t.node,d,t))&&(u=m,Ba(t.node,d,E,t),ee(t.node,E,t),d=Do(t.node,E,t))},{depth:n.path.length,label:$(n,"style")});n.__effects.push(y),n.__exec.style=c}else if(t.style&&typeof t.style=="object")for(let c in t.style){let f=t.style[c];if(typeof f!="function")continue;let u=J(t,Ln(t.styleDeps,c),f),d,p=null,g=P(()=>{try{let h=u(t,t.state,t.context);if(t.node){let _=c+":"+String(h);if(_!==d||!Mn(t.node,p,t)){d=_;let y=rn(t,{[c]:h});Ba(t.node,p,Object.assign({},y,{[c]:""}),t),ee(t.node,y,t),p=Do(t.node,y,t)}}}catch(h){""+c}},{depth:n.path.length,label:$(n,"style."+c)});n.__effects.push(g)}if(t.attr&&typeof t.attr=="object"){for(let c in t.attr)if(typeof t.attr[c]=="function"){let f=J(t,Ln(t.attrDeps,c),t.attr[c]),u=c,d=u.toLowerCase(),p=()=>{let h=f(t,t.state,t.context);return typeof h=="string"&&h.includes("{{")&&(h=pt.call(t,h,t.state)),h},g=P(()=>{try{let h=Jt(t,n,d,p);if(h===kt)return;t.node?.setAttribute&&on(t.node,u,h)}catch(h){""+u}},{depth:n.path.length,label:$(n,"attr."+u)});g._attrName=u.toLowerCase(),n.__effects.push(g)}else if(typeof t.attr[c]=="string"&&t.attr[c].includes("{{")){let f=t.attr[c],u=c,d=u.toLowerCase(),p=()=>pt.call(t,f,t.state),g=P(()=>{try{let h=Jt(t,n,d,p);if(h===kt||!t.node||!t.node.setAttribute)return;t.node.setAttribute(u,de(u,h??""))}catch(h){""+u}},{depth:n.path.length,label:$(n,"attr."+u)});g._attrName=u.toLowerCase(),n.__effects.push(g)}}if(t.aria&&typeof t.aria=="object")for(let c in t.aria){let f=t.aria[c];if(typeof f=="string"&&f.includes("{{")){let h=f,_="aria-"+c.replace(/[A-Z]/g,T=>"-"+T.toLowerCase()),y=()=>pt.call(t,h,t.state),b=P(()=>{try{let T=Jt(t,n,_,y);if(T===kt||!t.node||!t.node.setAttribute)return;t.node.setAttribute(_,de(_,T??""))}catch(T){""+c}},{depth:n.path.length,label:$(n,"aria."+c)});b._attrName=_,n.__effects.push(b);continue}if(typeof f!="function")continue;let u=J(t,Ln(t.ariaDeps,c),t.aria[c]),d="aria-"+c.replace(/[A-Z]/g,h=>"-"+h.toLowerCase()),p=()=>u(t,t.state,t.context),g=P(()=>{try{let h=Jt(t,n,d,p);if(h===kt||!t.node?.setAttribute)return;on(t.node,d,h)}catch(h){""+c}},{depth:n.path.length,label:$(n,"aria."+c)});g._attrName=d,n.__effects.push(g)}if(t.data&&typeof t.data=="object")for(let c in t.data){let f=t.data[c];if(typeof f=="string"&&f.includes("{{")){let _=f,y="data-"+c.replace(/[A-Z]/g,E=>"-"+E.toLowerCase()),b=()=>pt.call(t,_,t.state),T=P(()=>{try{let E=Jt(t,n,y,b);if(E===kt||!t.node||!t.node.setAttribute)return;t.node.setAttribute(y,E??"")}catch(E){""+c}},{depth:n.path.length,label:$(n,"data."+c)});T._attrName=y,n.__effects.push(T);continue}if(typeof f!="function")continue;let u=J(t,Ln(t.dataDeps,c),t.data[c]),p="data-"+c.replace(/[A-Z]/g,_=>"-"+_.toLowerCase()),g=()=>u(t,t.state,t.context),h=P(()=>{try{let _=Jt(t,n,p,g);if(_===kt||!t.node?.setAttribute)return;_==null||_===!1?t.node.removeAttribute(p):typeof _!="function"&&typeof _!="object"&&t.node.setAttribute(p,_===!0?"":_)}catch(_){""+c}},{depth:n.path.length,label:$(n,"data."+c)});h._attrName=p,n.__effects.push(h)}let s=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(s)for(let c in s){if(typeof s[c]!="function")continue;let f=J(t,Ln(t.classDeps,c),s[c]),u=P(()=>{try{let d=f(t,t.state,t.context);if(!t.node?.classList)return;typeof d=="string"?t.node.classList.add(d):d?t.node.classList.add(c):t.node.classList.remove(c)}catch(d){""+c}},{depth:n.path.length,label:$(n,"class."+c)});n.__effects.push(u)}let a=o?null:$a(t,n);typeof a=="function"&&ch(t,n,a);for(let c of Object.keys(t)){if(ct.has(c)||typeof t[c]!="function")continue;let f=c.charCodeAt(0);if(f>=65&&f<=90||Mt(c))continue;let u=t[c];n.__exec[c]=u;let d=t.tag||"div";if(Gt(d,c)&&!Re(d,c)){let p=Oe(c)||c,g=J(t,t[c+"Deps"],u),h=p.toLowerCase(),_=()=>{let b=g(t,t.state,t.context);return typeof b=="string"&&b.includes("{{")&&(b=pt.call(t,b,t.state)),b},y=P(()=>{try{let b=Jt(t,n,h,_);if(b===kt)return;let T=nn[c];if(T&&b!=null){let E=T(t);E!==void 0&&(b=E)}t.node?.setAttribute&&on(t.node,p,b,!0)}catch(b){}},{depth:n.path.length,label:$(n,c)});y._attrName=p.toLowerCase(),n.__effects.push(y)}}let l=t.tag||"div";for(let c of Object.keys(t)){if(ct.has(c))continue;let f=t[c];if(typeof f!="string"||!f.includes("{{"))continue;let u=c.charCodeAt(0);if(u>=65&&u<=90||Mt(c)||Re(l,c)||nn[c]||!Gt(l,c))continue;let d=Oe(c)||c,p=d.toLowerCase(),g=()=>pt.call(t,f,t.state),h=P(()=>{try{let _=Jt(t,n,p,g);if(_===kt||!t.node||!t.node.setAttribute)return;t.node.setAttribute(d,de(d,_??""))}catch(_){}},{depth:n.path.length,label:$(n,c)});h._attrName=d.toLowerCase(),n.__effects.push(h)}if(hk(t),Dk(t),typeof t.onStateUpdate=="function"&&Array.isArray(t.stateDeps)){let c=t.onStateUpdate,f=t.stateDeps,u=!1,d=[],p=P(()=>{let g=[];for(let y=0;y<f.length;y++){let b=f[y];try{g[y]=typeof b=="function"?b(t,t.state,t.context):t.state?.[b]}catch{g[y]=void 0}}if(!u){u=!0,d=g;return}let h=g.length!==d.length;for(let y=0;!h&&y<g.length;y++)g[y]!==d[y]&&(h=!0);let _=d;d=g,h&&Lt(t,()=>{try{c(t,t.state,t.context,{prev:_,next:g})}catch(y){if(It(t,"onStateUpdate",y),t.context?.strictMode)throw y}})},{depth:n.path.length,label:$(n,"onStateUpdate")});n.__effects.push(p)}Ak(t)}function sh(t){let e=t.__ref.__mount;if(e!==null&&e.attachLater)return;let n=t.parent,o=n?.node;if(!o||!t.node){$n(t,t.parent);return}let r=null,i=Object.keys(n),s=i.indexOf(t.key);for(let l=s+1;l<i.length;l++){let c=n[i[l]];if(c?.node?.parentNode===o){r=c.node;break}}t.node.parentNode===o&&t.node.nextSibling===r||(r?o.insertBefore(t.node,r):o.appendChild(t.node)),Er()}function ah(t){lh(t),Fk(t),Th(t),Zk(t),Yk(t)}function $a(t,e){let n=t.deferUntil;if(typeof n!="function"||e.__deferOpen)return t.if;let o=t.if;return(r,i,s)=>{if(!e.__deferOpen){let a;try{a=n(r,i,s)}catch(l){let c=e.__deferUntilError===void 0;if(e.__deferUntilError=l,c&&typeof console<"u"&&console.warn){let f=r.key||r.tag||"?";console.warn(`[smbls] \`deferUntil:\` threw on ${f} \u2014 treating as false:`,l?.message||l)}return!1}if(!a)return!1;e.__deferOpen=!0}return o==null?!0:typeof o=="function"?o(r,i,s):o}}function Tp(t,e){e||sh(t),gt("Create",t,{}),gt("Complete",t,{}),gt("Render",t,{}),Ua(t),gt("RenderRouter",t,{}),e||ja(t,{})}function ch(t,e,n){let o=J(t,t.ifDeps,n),r=P(()=>{let i=!e.__ifInitialized&&e.__ifLateMerge;if(i){let c=t.context?.components||{};if(i.names.some(f=>c[f]||c["smbls."+f])){e.__ifLateMerge=null,$x(t,i);let f=$a(t,e);o=J(t,t.ifDeps,typeof f=="function"?f:n)}}let s;try{s=o(t,t.state,t.context)}catch(c){if(s=!1,e.__ifError=c,typeof console<"u"&&console.warn){let f=t.key||t.tag||"?";console.warn(`[smbls] \`if:\` reactive effect threw on ${f} \u2014 treating as false:`,c?.message||c)}return}let a=e.__if;e.__if=!!s;let l=e.__mount;if(!(!a&&e.__if&&l!==null&&l.held)){if(a&&!e.__if&&t.node&&!(l!==null&&l.held)){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=To(t)),t.node&&(t.node.ref=t),sh(t),lh(t),Th(t),gt("Render",t,{}),Ua(t),ja(t,{});else{e.__ifInitialized=!0,e.__ifLateMerge=null,t.tag||(t.tag=ve(t)),gt("Init",t,{});let c=D.hydration;if(!t.node){t.node=c!==null&&c.adopt(t)||To(t);let f=c!==null&&t.node?t.context?.__replacing:void 0;f&&c.markReplaced(f,t,t.node)}if(!t.node)return;if(t.node.ref=t,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 u=(t.context?.document||globalThis.document).createComment("");t.node.appendChild(u),e.__fragmentAnchor=u}if(gt("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),Oh(t,{}),ih(t,{skipIfEffect:!0}),ah(t),t.yieldChildren&&D.mount!==null&&D.mount.open(t,Na,Tp))return;Na(t,{}),Tp(t)}}},{depth:e.path.length,label:$(e,"if")});e.__effects.push(r)}var kt=Symbol("builtTextKept");function Ap(t,e,n){let o=e.__builtText;if(!o)return n();if(o.parentNode!==t.node||typeof go!="function")return e.__builtText=null,n();let{value:r,ready:i}=go(n);return i?r:kt}function Jt(t,e,n,o){let r=e.__builtAttrs;if(!r||!r.values.has(n))return o();let i=t.node;if(i!==r.node||typeof go!="function")return e.__builtAttrs=null,o();let{value:s,ready:a}=go(o);return a?(r.values.delete(n),r.values.size||(e.__builtAttrs=null),s):(i.setAttribute(n,r.values.get(n)),kt)}function an(t,e){let n=t.node;if(!n)return;t.__ref&&t.__ref.__builtText&&(t.__ref.__builtText=null);let o=e==null||typeof e=="object"?"":String(e);if(t.tag==="string"){n.nodeValue!==o&&(n.nodeValue=o);return}let r=t.__ref,i=r?r.__textNode:null;if(i&&i.parentNode!==n&&(i=null),!i){let a=n.firstChild;a&&a.nodeType===3&&(i=a)}i?i.nodeValue!==o&&(i.nodeValue=o):n.firstChild?(i=(n.ownerDocument||t.context?.document||globalThis.document).createTextNode(o),n.insertBefore(i,n.firstChild)):(n.textContent=o,i=n.firstChild&&n.firstChild.nodeType===3?n.firstChild:null),r&&(r.__textNode=i||null);let s=D.faceWait;s!==null&&s.active&&s.text(t)}function Ua(t){let e=D.faceWait;e!==null&&e.rendered(t)}function nk(t,e){return e!=="checked"||!t||t.tagName!=="INPUT"?null:t.hasAttribute("checked")}function ok(t,e){if(e===null)return;let n=t.hasAttribute("checked");n!==e&&t.checked!==n&&(t.checked=n)}function on(t,e,n,o){n==null||n===!1&&!In(e)?ci(t,e,null):typeof n=="function"||typeof n=="object"||(o&&e==="src"&&"src"in t?t.src=n:ci(t,e,de(e,n)))}function ci(t,e,n){let o=nk(t,e);n==null?t.removeAttribute(e):t.setAttribute(e,n),ok(t,o)}function Cp(t,e){let n=t.node;if(!n||!("value"in n))return;let o=e==null?"":String(e);if(n.value===o)return;let r=n.ownerDocument,i=!!r&&r.activeElement===n,s=i&&typeof n.selectionStart=="number"?n.selectionStart:null,a=i&&typeof n.selectionEnd=="number"?n.selectionEnd:null;if(n.value=o,i&&s!=null&&a!=null)try{n.setSelectionRange(s,a)}catch{}let l=t.__ref&&t.__ref.__autoGrow;l&&l.active&&l.resize()}function lh(t){let{node:e}=t;if(e){if((typeof t.text=="string"&&!t.text.includes("{{")||typeof t.text=="number")&&an(t,t.text),Ch(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 o in t.style)if(typeof t.style[o]=="function"){n={};for(let r in t.style)typeof t.style[r]!="function"&&(n[r]=t.style[r]);break}ee(e,rn(t,n),t)}if(t.attr&&typeof t.attr=="object")for(let n in t.attr){let o=t.attr[n];typeof o=="function"||typeof o=="object"||o!=null&&(typeof o=="string"&&o.includes("{{")||o===!1&&!In(n)||e.setAttribute&&e.setAttribute(n,de(n,o)))}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 o=t.data[n];typeof o=="function"||typeof o=="object"||o==null||o===!1||typeof o=="string"&&o.includes("{{")||e.dataset&&(e.dataset[n]=o===!0?"":o)}if(t.classlist||t.class){let n=t.classlist||t.class;if(typeof n=="string")n.split(" ").forEach(o=>o&&e.classList.add(o));else if(typeof n=="object")for(let o in n){let r=typeof n[o]=="function"?n[o](t,t.state,t.context):n[o];r&&e.classList.add(typeof r=="string"?r:o)}}}}function Bn(t){if(t==null||typeof t!="object")return"s:"+String(t);try{return"o:"+JSON.stringify(t)}catch{return null}}function rk(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 Do(t,e,n){if(!t||!t.style||!e)return null;let o=t.style,r=[];for(let i in e){if(e[i]==null||i.charAt(0)==="&")continue;let a=pe(i);r.push(a,Un(n,o,a),Va(n,o,a))}return r}function fh(t,e){return typeof t.getPropertyValue=="function"?t.getPropertyValue(e):""}function uh(t,e){return typeof t.getPropertyPriority=="function"?t.getPropertyPriority(e):""}function pe(t){return ue(t)}function Ba(t,e,n,o){if(!t||!t.style||!e||!e.length)return;let r=t.style,i=new Set;if(n&&typeof n=="object")for(let s in n)n[s]==null||s.charAt(0)==="&"||i.add(pe(s));for(let s=0;s<e.length;s+=3){let a=e[s];i.has(a)||Un(o,r,a)===e[s+1]&&(o&&a==="display"?Ho(o,""):typeof r.removeProperty=="function"&&r.removeProperty(a))}}function ni(t,e,n){let o=t.__ref;o&&(n?(o.__heldInline||(o.__heldInline=new Map)).set(e,n):o.__heldInline&&o.__heldInline.delete(e))}function ik(t,e,n){if(t.__heldInline){for(let[o,r]of t.__heldInline)if(o!==e){for(let i=0;i<r.length;i+=3)if(r[i]===n)return!0}}return!1}function dh(t,e,n,o){let r=t.__ref,i=t.node;if(!r||!n||!i||!i.style)return;let s=r.__inlineCssKeys,a=null;for(let u=0;u<n.length;u+=3){let d=n[u];o&&o.has(d)||ik(r,e,d)||(a||(a=[]),a.push(u),s&&s.delete(d))}if(!a)return;let l=s&&za(t,s),c=i.style,f=[];for(let u of a){let d=n[u];l&&l[d]!==void 0||Un(t,c,d)===n[u+1]&&f.push(d)}for(let u of f)u==="display"?Ho(t,""):typeof c.removeProperty=="function"&&c.removeProperty(u)}function sk(t,e,n){let o=[];for(let s=0;s<e.length;s+=3)o.push(e[s]);let r=!1;for(let s in n){let a=Ae[s];o.some(l=>a.includes(l))&&(r=!0,o.includes(s)||o.push(s))}if(!r)return;let i=t.node.style;e.length=0;for(let s of o)e.push(s,Un(t,i,s),Va(t,i,s))}function Mn(t,e,n){if(!e||!t||!t.style)return!1;let o=t.style;for(let r=0;r<e.length;r+=3)if(Un(n,o,e[r])!==e[r+1]||Va(n,o,e[r])!==e[r+2])return!1;return!0}var jo=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,ph=t=>typeof t=="number"||t===!0||typeof t=="string"&&t!=="",pi=t=>jo(t)?t:"--"+t;function hi(t,e){if(!ne(t))return null;let n=null;for(let o of Object.keys(t)){if(!o)continue;let r=t[o];if(typeof r=="function"){if(!e)continue;r=r(e,e.state,e.context)}ph(r)&&(n||(n={}),n[pi(o)]=r)}return n}function hh(t,e,n,o,r){gh(t,r,J(t,o,n),i=>ph(i)?{[e]:i}:null)}function gh(t,e,n,o,r){let i=t.__ref,s,a=null,l=P(()=>{Lt(t,()=>{try{let c=o(n(t,t.state,t.context)),f=t.node;if(!f||!f.style)return;let u=Bn(c);(u===null||u!==s||!Mn(f,a))&&(s=u,Ba(f,a,c),c&&ee(f,Le(t,c)),a=c?Do(f,c):null,r&&r(c))}catch(c){}})},{depth:i.path.length,label:$(i,e)});i.__effects.push(l)}function ak(t){let e=t.__ref,n=t.vars;if(typeof n=="function"){ck(t,n),e.__exec.vars=n;return}if(ne(n))for(let o of Object.keys(n)){let r=n[o];!o||typeof r!="function"||hh(t,pi(o),r,Ln(t.varsDeps,o),"vars."+o)}}function ck(t,e){let n=t.__ref;gh(t,"vars",J(t,t.varsDeps,e),o=>hi(o),o=>{n.__varsInline=o?new Set(Object.keys(o)):null})}function lk(t,e){if(typeof t[e]=="function"&&(Re(t.tag||"div",e)||e.charCodeAt(0)===45))return!0;if(!jo(e))return!1;let n=t.vars;if(typeof n=="function"){let o=t.__ref&&t.__ref.__varsInline;return!!(o&&o.has(e))}if(!ne(n))return!1;for(let o of Object.keys(n))if(typeof n[o]=="function"&&pi(o)===e)return!0;return!1}function fk(t){let e=null;for(let n in t)t[n]!=null&&n.charAt(0)!=="&"&&(e||(e=new Set),e.add(pe(n)));return e}function uk(t,e,n,o){let r=t.__ref;if(!r)return;let i=null;if(n)for(let s of n){if(o&&o.has(s))continue;let a=e[s];if(a==null||typeof a=="object")continue;let l=pe(s);Ae[l]&&(i||(i={}),i[l]=a)}r.__declaredLonghands=i}function za(t,e){let n=t.__ref,o=n&&n.__declaredLonghands;if(!o||!e)return null;let r=null;for(let i in o){if(e.has(i))continue;let s=Ae[i],a=!1;for(let l=0;l<s.length;l++)if(e.has(s[l])){a=!0;break}a&&(r||(r={}),r[i]=o[i])}return r}function vp(t,e,n,o){let r=t.node,i=fk(e),s=i&&za(t,i);if(n&&dh(t,o,n,s?new Set([...i,...Object.keys(s)]):i),ee(r,e,t),!i)return e;let a=t.__ref;if(a)if(a.__inlineCssKeys)for(let l of i)a.__inlineCssKeys.add(l);else a.__inlineCssKeys=new Set(i);return s?(ee(r,Le(t,s)),Object.assign({},e,s)):e}function dk(t){let e=t.__ref;if(!e||!e.__inlineCssKeys||!e.__declaredLonghands)return;let n=za(t,e.__inlineCssKeys);if(!n)return;let o=[];if(e.__heldInline)for(let r of e.__heldInline.values())Mn(t.node,r,t)&&o.push(r);ee(t.node,Le(t,n));for(let r of o)sk(t,r,n)}function rn(t,e){return!e||typeof e!="object"?e:Lt(t,()=>{try{return Ld(e,t)}catch{return e}})}var _h="none",Ha=t=>!!(t&&t.__hiddenBy&&t.__hiddenBy.size),Ep=t=>fh(t,"display")===_h&&uh(t,"display")==="important";function yh(t,e){e?t.setProperty("display",e[0],e[1]):typeof t.removeProperty=="function"?t.removeProperty("display"):t.display=""}function li(t,e,n,o){let r=t.__ref,i=t.node;if(!r||!i||!i.style)return;let s=r.__hiddenBy,a=!!(s&&s.size);n?(s||(s=r.__hiddenBy=new Set),s.add(e)):s&&s.delete(e);let l=i.style;s&&s.size?Ep(l)||l.setProperty("display",_h,"important"):(a||o&&Ep(l))&&yh(l,r.__shownDisplay||null)}function Ho(t,e,n){let o=t.__ref,r=e?[String(e),n||""]:null;o&&(o.__shownDisplay=r);let i=t.node;!i||!i.style||Ha(o)||yh(i.style,r)}function Un(t,e,n){let o=n==="display"&&t&&t.__ref;return Ha(o)?o.__shownDisplay?o.__shownDisplay[0]:"":fh(e,n)}function Va(t,e,n){let o=n==="display"&&t&&t.__ref;return Ha(o)?o.__shownDisplay?o.__shownDisplay[1]:"":uh(e,n)}function ee(t,e,n){if(!t||!e||!t.style)return;n&&(e=Le(n,e));let o=null;for(let r in e){let i=e[r];if(i!=null){if(r.charAt(0)==="&"&&typeof i=="object"){o||(o={}),o[r]=i;continue}try{let s=String(i);if(typeof i=="object"&&s==="[object Object]")continue;let a=ue(r),l=s.trim(),c=/\s*!important\s*$/.test(l),f=l.replace(/\s*!important\s*$/,"");if(n&&a==="display"){Ho(n,f,c?"important":"");continue}t.style.setProperty(a,f,c?"important":"")}catch{}}}o&&pk(t,o)}function pk(t,e){let n=`_ds${Vp.scopedStyleId++}`;t.classList.add(n);let o=t.ownerDocument,r=o.querySelector("style[data-smbls-scoped]");r||(r=o.createElement("style"),r.setAttribute("data-smbls-scoped",""),o.head.appendChild(r));let i="";for(let s in e){let a="."+n,l=Xe(s.replace(/&/g,a)).map(f=>f.includes(a)?f:a+f).join(", "),c=e[s];if(typeof c=="object"){let f="",u="";for(let d in c){let p=c[d];if(typeof p=="object"){let g=Xe(l),h=d.includes("&")?g.map(y=>d.replace(/&/g,y)).join(", "):g.map(y=>`${y} ${d}`).join(", "),_="";for(let y in p)_+=`${pe(y)}: ${p[y]};`;u+=Ze(`${h} { ${_} }`,h)+`
26
+ `}else f+=`${pe(d)}: ${p};`}f&&(i+=Ze(`${l} { ${f} }`,l)+`
27
+ `),u&&(i+=u)}}i&&(r.textContent+=i)}function hk(t){let e=t.subscribeTo,n=typeof e=="function",o=e;if(n)try{o=e(t,t.state,t.context)}catch{o=null}if(!Array.isArray(o)||o.length===0)return;let r=t.__ref;for(let i=0;i<o.length;i++){let s=o[i];if(typeof s!="string"||s.length===0)continue;let a=s.split("."),l=a[0],c=a.slice(1),f={value:!1},u=P(()=>{let d=t.state&&(H(t.state)?t.state.root:null);if(!d||!H(d))return;let p=d;p=p[l];for(let h=0;h<c.length&&!(p==null||typeof p!="object");h++)if(H(p))p=p[c[h]];else break;if(!f.value)return;let g=!1;if(typeof t.onBeforeUpdate=="function"&&Lt(t,()=>{try{if(yi(r)){let h=t.onBeforeUpdate(t,t.state,t.context,{updateBySubscription:!0});h&&typeof h.then=="function"?h.then(()=>te(r,!1),_=>{te(r,!0),ce("error",t,{hook:"onBeforeUpdate",error:_})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",_)}):(te(r,!1),h===!1&&(g=!0))}}catch(h){te(r,!0),ce("error",t,{hook:"onBeforeUpdate",error:h})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",h)}}),!g&&t.node&&r.__effects)for(let h=0;h<r.__effects.length;h++){let _=r.__effects[h];_&&_!==u&&!_._disposed&&!_._isSubscribeToEffect&&typeof _._execute=="function"&&_._execute()}!g&&typeof t.onUpdate=="function"&&Lt(t,()=>{try{t.onUpdate(t,t.state,t.context)}catch(h){ce("error",t,{hook:"onUpdate",error:h})||console.error("[DOMQL] subscribeTo onUpdate error:",h)}})},{depth:r.path.length,label:$(r,"subscribeTo("+s+")")});f.value=!0,u._isSubscribeToEffect=!0,r.__effects.push(u)}}function Ga(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 Ka(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 o=Sh(e);if(o){let r=wd(n);if(r)return`@container ${o} ${r}`}}return/^@(media|supports|container)\b/.test(n)?n:`@media ${n}`}function qa(t,e,n,o,r){let i=r||_k(t);return vr(t)?Cr(()=>Wo(e,n,!1,o,i)):Wo(e,n,!1,o,i)}var gk=/(::[a-z-]+(?:\([^()]*\))?|:(?:before|after|first-line|first-letter))(?::[a-z-]+(?:\([^()]*\))?)*\s*$/i;function _k(t){if(typeof t!="string"||t.charCodeAt(0)===64)return null;let e=t.match(gk);return e?e[1]:null}var yk=/^::(?:-webkit-scrollbar|part\()/i,mk=/^(?::[a-z-]+(?:\([^()]*\))?)+$/i;function bk(t){let e=[],n=0,o=0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);i===40?n++:i===41?n--:i===44&&n===0&&(e.push(t.slice(o,r)),o=r+1)}return e.push(t.slice(o)),e}function mh(t,e){if(t.charCodeAt(0)===64)return!0;let n=yk.test(e);for(let o of bk(t)){let r=o.trim(),i=r.lastIndexOf("&"),s=i===-1?r:r.slice(i+1);if(!(i!==-1&&s==="")&&!(n&&mk.test(s)))return!1}return!0}function bh(t,e){let n=null;for(let o in t){let r=t[o];if(!ne(r))continue;let i=mh(o,e)?bh(r,e):void 0;i!==r&&(n||(n={...t}),i===void 0?delete n[o]:n[o]=i)}return n||t}function Sh(t){let e=t.__ref;if(e&&e.__breakpointContainer!==void 0)return e.__breakpointContainer;let n=null;for(let o=t.parent;o&&typeof o=="object";o=o.parent){let r=o.breakpointsFrom;if(r!=null&&r!==!1){n=wo(r,o);break}}return e&&(e.__breakpointContainer=n),n}function Le(t,e){let n=D.containerVw;return n!==null&&n.on&&e&&Sh(t)?n.lengths(e):e}function Sk(t,e){return globalThis.__SMBLS_BUILD_DROP_F_containerVw__?Z("containerVw",t):D.containerVw!==null&&D.containerVw.scope(t,e)}var Op=new Map;function wk(t){let e=Op.get(t);if(e)return e;e=[];let n=o=>{if(o)for(let r of o)e.push(ko(r))};return n(Ae[t]),n(Xr[t]),Op.set(t,e),e}function Lo(t,e,n){return lk(t,e)||!!(n&&n.has(e))}var oi;function gi(t,e){if(oi===void 0){let n=qr;oi=typeof n=="function"?n:null}return oi?oi(t,e):e}var Oo=null;function xk(t){if(!Oo){Oo=new Map;let e=kd;if(e){for(let n of Object.keys(e))if(!(n==="hide"||n==="show"))for(let o of e[n]){if(o===n)continue;let r=Oo.get(o);r||Oo.set(o,r=[]),r.push(n)}}}return Oo.get(t)}function Rp(t,e,n){if(Lo(t,e,n))return!0;let o=xk(e);if(o){for(let r=0;r<o.length;r++)if(Lo(t,o[r],n))return!0}return!1}function kk(t,e,n){if(Rp(t,e,n))return!0;let o=wk(pe(e));for(let r=0;r<o.length;r++)if(Rp(t,o[r],n))return!0;return!1}function Wo(t,e,n,o,r){let i={},s=new Set,a=(c,f,u)=>{if(r&&ne(f)){if(!mh(c,r))return;f=bh(f,r)}let d=!Object.prototype.hasOwnProperty.call(i,c);i[c]=f,d&&(u||kk(e,c,o))&&s.add(c)},l=(c,f,u)=>{if(z[c]){let d=z[c](f,e,e.state,e.context);if(d){let p=Array.isArray(d)?d:[d];for(let g of p)if(g)for(let h of Object.keys(g))a(h,g[h],u)}}else a(c,q&&q.has(c)?gi(c,f):f,u)};for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let f=t[c];if(typeof f=="function"&&(f=f(e,e.state,e.context)),!(f==null||typeof f=="function")){if(typeof f=="object"&&!Array.isArray(f)){if(c==="style"){for(let p in f){let g=f[p];typeof g=="function"&&(g=g(e,e.state,e.context)),!(g==null||typeof g=="function")&&l(p,g,Lo(e,p,o))}continue}if(c==="vars"){let p=hi(f,e);if(p)for(let g in p)l(g,p[g],Lo(e,g,o));continue}if(Ga(c,e)){let p=Wo(f,e,!1,o,r);Object.keys(p).length&&(i[`[data-theme="${c.slice(1)}"] &`]=p);continue}if(/^[A-Z][A-Za-z0-9]*$/.test(c))continue;let u=Ka(c,e),d=qa(u,f,e,o,r);Object.keys(d).length&&(i[u]=d);continue}l(c,f,Lo(e,c,o))}}if(n)for(let c in i)s.add(c);for(let c of s){let f=i[c];typeof f=="string"&&!f.includes("!important")&&(i[c]=f+" !important")}return i}var ne=t=>!!t&&typeof t=="object"&&!Array.isArray(t);function wh(t,e){for(let n in e){let o=e[n];t[n]=ne(o)?wh(ne(t[n])?t[n]:{},o):o}return t}function Tk(t,e){if(!ne(e))return;let n;for(let o of t.split(" ")){let r=o?e[o]:null;ne(r)&&(n=wh(n||{},r))}return n}function Ya(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)&&Ya(t[n],e+1))return!0}return!1}function xh(t,e,n){if(!e||typeof e!="object"||Array.isArray(e))return null;if(Ga(t,n)){let i=Wo(e,n,!1);return Object.keys(i).length?{cssProp:`[data-theme="${t.slice(1)}"] &`,block:i}:null}let o=Ka(t,n),r=qa(o,e,n);return Object.keys(r).length?{cssProp:o,block:r}:null}function Ak(t){let e=t.__ref;for(let n of Object.keys(t)){if(!Wn(n))continue;let o=t[n];if(!o||typeof o!="object"||Array.isArray(o)||!Ya(o))continue;let r=null,i,s=P(()=>{if(!t.node)return;let a=t.context?.designSystem;a&&at(a);let l,c=!1;try{let f=xh(n,o,t),u=f?Bn(f.block)+"::"+f.cssProp:null;if(u!==null&&u===i)c=!0;else if(i=u,f){let d=Qe(Le(t,{[f.cssProp]:f.block}),null,t.context?.cssPrefix);l=d?d.split(" ").filter(Boolean):null}else l=null}finally{a&&it()}if(!(c||!t.node.classList)){if(r)for(let f of r)t.node.classList.remove(f);if(l&&l.length)for(let f of l)t.node.classList.add(f);r=l}},{depth:e.path.length,label:$(e,"cssBlock("+n+")")});e.__effects.push(s)}}var Ck=()=>!0,vk=(t,e)=>Wn(t)&&e&&typeof e=="object"&&!Array.isArray(e)?!0:!!z[t]||!!(q&&q.has(t))||jo(t)||t==="vars";function Ek(t,e,n){let o={},r=!1;for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&(a!=="data"&&a!=="aria"&&(vk(a,n[a])||ct.has(a))?o[a]=!0:r=!0);if(!r)return null;let i=gp({[e]:n},t.tag||"div",o,Ck),s=null;for(let a in i)/^on/i.test(a)||(s||(s={}),s[a]=i[a]);return s}function Dp(t,e,n,o,r,i){let s=t.node,a=null,l=c=>{(a||(a=[])).push(c)};for(let c in o){let f=e.owners.get(c),u=f===n;if(!i&&f!==void 0&&!u)continue;let d;try{d=o[c](t)}catch(g){t.__ref,""+n+c,u&&l(c);continue}if(typeof d=="string"&&d.includes("{{")&&(d=pt.call(t,d,t.state)),u&&s.getAttribute(c)!==e.written.get(c)){l(c);continue}if(d==null||typeof d=="object"||typeof d=="function"){u&&kh(s,e,c);continue}let p=d===!1&&!In(c)?null:String(de(c,d));l(c),!(u&&p===e.written.get(c))&&(f===void 0&&e.base.set(c,s.getAttribute(c)),ci(s,c,p),e.owners.set(c,n),e.written.set(c,p))}r.appliedAttrs=a}function kh(t,e,n){t.getAttribute(n)===e.written.get(n)&&ci(t,n,e.base.get(n)),e.owners.delete(n),e.base.delete(n),e.written.delete(n)}function Ok(t,e,n,o){let r=o.appliedAttrs;if(o.appliedAttrs=null,!!r)for(let i of r)e.owners.get(i)===n&&kh(t.node,e,i)}function Th(t){let e=t.__ref&&t.__ref.__conditionalAttrs,n=t.node;if(!(!e||!e.owners.size||!n||!n.getAttribute))for(let o of e.owners.keys()){let r=e.written.get(o),i=n.getAttribute(o);i!==r&&(e.base.set(o,i),r==null?n.removeAttribute(o):n.setAttribute(o,r))}}var Aa,Rk=()=>Aa===void 0?Aa=!1:Aa;function Ip(t,e){let n=hf;typeof n=="function"?t.untrackedReads+=n(e):e()}function Dk(t){let e=t.__ref;e.__conditionalRunners=[];let n=null,o=new Map;for(let r of Object.keys(t)){let i=r.charAt(0);if(i!=="."&&i!=="!")continue;let s=r.slice(1);if(!s)continue;if(/[:@\s>~+[\]]/.test(s)){if(typeof console<"u"&&console.warn){let _=s.split(/[:@\s>~+[\]]/)[0]}continue}let a=t[r];if(!a||typeof a!="object")continue;let l=i==="!",c={lastMatch:!1,appliedKeys:null,appliedClasses:null,appliedAttrs:null,hides:!1,probe:!1,untrackedReads:0},f=Ek(t,r,a);f&&!n&&(n=e.__conditionalAttrs={owners:new Map,base:new Map,written:new Map});let u=new Set;for(let _ in a){if(!Object.prototype.hasOwnProperty.call(a,_))continue;let y=a[_];if(!(Wn(_)&&y&&typeof y=="object"&&!Array.isArray(y))){if(_==="vars"&&ne(y)){for(let b of Object.keys(y))b&&u.add(pi(b));continue}u.add(_)}}let d=()=>{let _,y=c.probe,b;if(y?Ip(c,()=>{b=t[s]}):b=t[s],b===void 0){let m=!!t.state&&s in t.state,S=t.state?t.state[s]:void 0;if(m||S!==void 0)_=S;else{let w=t.context?.cases?.[s];if(w===void 0)return;try{_=typeof w=="function"?w.call(t,t):w}catch(x){_=!1,e.__conditionalError=x,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${r}\` case fn threw on ${t.key||"?"} \u2014 treating as false:`,x?.message||x)}}}else if(typeof b=="function")try{y?Ip(c,()=>{_=b(t,t.state,t.context)}):_=b(t,t.state,t.context)}catch(m){_=!1,e.__conditionalError=m,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${r}\` predicate threw on ${t.key||"?"} \u2014 treating as false:`,m?.message||m)}else _=b;y&&(c.probe=!1);let T=l?!_:!!_;if(!t.node)return;let E=t.context?.designSystem;if(T===c.lastMatch){if(T&&f&&t.node.setAttribute){E&&at(E);try{Dp(t,n,r,f,c,!1)}finally{E&&it()}}return}c.lastMatch=T,E&&at(E);try{if(T){let m={},S={},w=!1,x=!1;for(let v in a){if(!Object.prototype.hasOwnProperty.call(a,v))continue;let A=a[v];if(Wn(v)&&A&&typeof A=="object"&&!Array.isArray(A)){if(Ga(v,t)){let I=Wo(A,t,!1,u);Object.keys(I).length&&(S[`[data-theme="${v.slice(1)}"] &`]=I,w=!0)}else{let I=Ka(v,t),F=qa(I,A,t,u);Object.keys(F).length&&(S[I]=F,w=!0)}continue}let B=typeof A=="function"?A(t,t.state,t.context):A;if(B!=null){if(v==="hide"||v==="show"){let I=z[v](B,t,t.state,t.context);I&&I.display&&(x=!0)}else if(z[v]){let I=z[v](B,t,t.state,t.context);if(I){let F=Array.isArray(I)?I:[I];for(let Sn of F)Sn&&Object.assign(m,Sn)}}else if(q&&q.has(v))m[v]=gi(v,B);else if(jo(v))m[v]=B;else if(v==="vars"){let I=hi(B,t);I&&Object.assign(m,I)}}}(x||c.hides)&&(c.hides=x,li(t,r,x));let C=Object.keys(m);if(C.length){ee(t.node,m,t);for(let v of C){let A=o.get(v);A||(A=[],o.set(v,A));let B=A.findIndex(I=>I.key===r);B!==-1&&A.splice(B,1),A.push({key:r,value:m[v]})}c.appliedKeys=C}else c.appliedKeys=null;if(w){let v=Qe(Le(t,S),null,t.context?.cssPrefix,{state:!0}),A=v?v.split(" ").filter(Boolean):[];if(A.length&&t.node.classList){for(let B of A)t.node.classList.add(B);c.appliedClasses=A}else c.appliedClasses=null}else if(c.appliedClasses){for(let v of c.appliedClasses)t.node.classList.remove(v);c.appliedClasses=null}f&&t.node.setAttribute&&Dp(t,n,r,f,c,!0)}else{if(c.appliedAttrs&&Ok(t,n,r,c),c.appliedKeys){for(let m of c.appliedKeys){let S=o.get(m);if(!S)continue;let w=S.findIndex(x=>x.key===r);if(w!==-1)if(S.splice(w,1),S.length){let x=S[S.length-1].value,C=ue(m),v=String(x).trim().replace(/\s*!important\s*$/,"");Un(t,t.node.style,C)!==v&&ee(t.node,{[m]:x},t)}else o.delete(m),jo(m)?t.node.style.removeProperty(m):ue(m)==="display"?Ho(t,""):t.node.style[m]=""}c.appliedKeys=null}if(c.hides&&(c.hides=!1,li(t,r,!1)),c.appliedClasses){for(let m of c.appliedClasses)t.node.classList.remove(m);c.appliedClasses=null}}}finally{E&&it()}};e.__conditionalRunners.push(d);let p=t[s+"Deps"],g=J(t,p,d);Rk()&&typeof(e.__exec&&e.__exec[s]||t[s])=="function"&&!(Array.isArray(p)&&p.length===0)&&(c.probe=!0);let h=P(g,{depth:e.path.length,label:$(e,"conditional("+r+")")});c.probe&&(c.probe=!1),c.untrackedReads>0&&h._sources.size,e.__effects.push(h)}}var Ca=new WeakSet,va=new WeakMap;function Ik(t){let e=va.get(t);if(e==="painted")return!1;if(e===void 0){va.set(t,"open");let n=t.defaultView,o=()=>{va.set(t,"painted")};n&&typeof n.requestAnimationFrame=="function"?n.requestAnimationFrame(o):setTimeout(o,0)}return!0}var Ea=new WeakSet;function Lk(t){if(Ea.has(t))return;Ea.add(t);let e=()=>{Ea.delete(t);let o=t.body||t.documentElement;o&&o.offsetWidth},n=t.defaultView;n&&typeof n.requestAnimationFrame=="function"?n.requestAnimationFrame(e):setTimeout(e,0)}var ri;function Pk(t){if(ri!==void 0)return ri;let e=t.defaultView&&t.defaultView.navigator||(typeof navigator<"u"?navigator:null);if(!e||typeof e.vendor!="string")return!0;let n=typeof e.userAgent=="string"?e.userAgent:"",o=e.vendor==="Google Inc.",r=e.vendor===""&&/\bGecko\/\d/.test(n)&&/\bFirefox\//.test(n);return ri=!(o||r),ri}function Bk(t,e){let n=t.ownerDocument;if(n&&Pk(n)&&!Ik(n)){if(D.hydration!==null&&e&&e.context&&e.context.__hydration){Lk(n);return}Ca.has(n)||(Ca.add(n),queueMicrotask(()=>{Ca.delete(n);let o=n.body||n.documentElement;o&&o.offsetWidth}))}}var Oa=new WeakSet,Lp=!1;function Pp(t){return t.startsWith("[data-theme=")||t.startsWith("[data-skin=")||t.startsWith("@media")&&(t.includes("prefers-color-scheme")||t.includes("prefers-reduced-transparency"))}function Ma(t,e){let n={...t};for(let o in e){let r=e[o],i=n[o];n[o]=r&&typeof r=="object"&&i&&typeof i=="object"?Ma(i,r):r}return n}function Ah(t,e){let n={};for(let o in t){let r=t[o];if(r&&typeof r=="object"){let i=Ah(r,e);Object.keys(i).length&&(n[o]=i)}else e(o)||(n[o]=r)}return n}function Bp(t,e,n){let o=Za(t);if(!o)return!1;for(let r=0;r<o.length;r+=3){let i=o[r+1];if(!n.has(i))continue;let s=e[i];if(!(s==null||typeof s=="object")&&Pd(o[r],s,o[r+2]))return!0}return!1}function Mk(t,e,n){let o=1/0,r=-1/0;for(let s of e.values())s<o&&(o=s),s>r&&(r=s);if(n)for(let s of n.values())s>r&&(r=s);if(r<=o)return null;let i=null;for(let[s,a]of e){if(a===r)continue;let l=Za(s);if(l)for(let c=0;c<l.length;c+=3){let f=l[c],u=l[c+1],d=l[c+2],p=t[u]!=null?e.get(u):void 0,g=n&&n.get(f),h=p!==void 0&&p>a&&Qr(f,t[u],d),_=!h&&g!==void 0&&g>a&&Qr(f,void 0,d);if(h||_){h&&delete t[s],i||(i=new Set),i.add(s);break}}}return i}var Mp=new Map;function Za(t){let e=Mp.get(t);if(e!==void 0)return e;let n=pe(t),o=Ae[n];if(e=null,Array.isArray(o)){e=[];for(let r of o)e.push(r,ko(r),n)}return Mp.set(t,e),e}var Nk=new Set(["page","zoom"]);function Ch(t){let{node:e}=t;if(!e)return;if(Lp||(Lp=!0,Qe({display:"none"})),Oa.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}Oa.add(t);let n=t.context?.designSystem;n&&at(n),Qs();try{let o={},r=!1,i=[],s=null,a=null,l=null,c=null,f=t.__ref&&t.__ref.__mergeLayer,u,d=null,p=null,g=!1,h=(m,S)=>{if(S&&typeof S=="object"&&Pp(m)){l||(l={});let w=l[m];w&&(S=Ma(w,S)),l[m]=S}else(S===null||typeof S!="object")&&(c||(c=new Set),c.add(m),u!==void 0&&(d||(d=new Map),d.set(m,u)));o[m]=S};if(Object.prototype.hasOwnProperty.call(t,"theme")&&typeof t.theme!="function"&&z.theme){let m=z.theme(t.theme,t,t.state,t.context);if(m){let S=w=>{for(let x in w){let C=w[x];C&&typeof C=="object"?Pp(x)&&(s||(s={}),s[x]=C):Za(x)&&(a||(a=[])).push(x),o[x]=C}};if(Array.isArray(m))for(let w of m)w&&S(w);else S(m);r=!0}}let _=(m,S)=>{if(m==="vars"){let w=hi(S);if(w){for(let x in w)h(x,w[x]);r=!0}return}if(m==="hide"||m==="show"){let w=z[m](S,t,t.state,t.context);w&&w.display&&(g=!0);return}if(z[m]){let w=z[m](S,t,t.state,t.context);if(w){if(Array.isArray(w)){for(let x of w)if(x)for(let C in x)h(C,x[C])}else for(let x in w)h(x,w[x]);r=!0}}else if(q&&q.has(m))S!=null&&typeof S!="object"&&(h(m,gi(m,S)),r=!0);else if(m.charCodeAt(0)===45)S!=null&&typeof S!="object"&&(h(m,S),r=!0);else if(Wn(m)){if(S&&typeof S=="object"&&!Array.isArray(S)){if(Ya(S))return;let w=xh(m,S,t);w&&(h(w.cssProp,w.block),r=!0)}}else(typeof S=="string"||typeof S=="number")&&Nk.has(m)};if(typeof t.class=="string"){let m=Tk(t.class,t.context?.designSystem?.class);if(m)for(let S in m)_(S,m[S])}let y=c?new Set(c):null,b=t.tag||"div";for(let m of Object.keys(t)){if(typeof t[m]=="function"){let w=f&&f.get(m);w!==void 0&&Re(b,m)&&(p||(p=new Map),p.set(pe(m),w));continue}if(u=f?f.get(m):void 0,m==="vars"){_(m,t[m]);continue}if(ct.has(m)||m==="theme")continue;let S=m.charCodeAt(0);S>=65&&S<=90||Mt(m)||ei(b,m)||_(m,t[m])}u=void 0;let T=d?Mk(o,d,p):null;if(a&&c)for(let m of a)c.has(m)||!(m in o)||Bp(m,o,c)&&delete o[m];if(s){let m=c?S=>c.has(S)||Bp(S,o,c):null;for(let S in s){let w=m?Ah(s[S],m):s[S];l&&l[S]&&(w=Ma(w,l[S])),Object.keys(w).length?o[S]=w:delete o[S]}}if(uk(t,o,c,T?new Set([...y||[],...T]):y),li(t,"static",g),t.breakpointsFrom!=null&&Sk(t,o)&&(r=!0),r){o.display&&String(o.display).includes("!important")&&(ee(e,{display:o.display},t),delete o.display);let m=t.display!=null&&typeof t.display!="function"?t.display:t.hide===!0||t.show===!1?"none":null;typeof m=="string"&&m!==""&&o.display&&o.display!==m&&(o.display=m);let S=Qe(Le(t,o),null,t.context?.cssPrefix);if(i=S?S.split(" ").filter(Boolean):[],S&&e.classList){let w=i,x=!1;for(let C of w)e.classList.add(C),x||(C.charCodeAt(0)===95&&C.charCodeAt(1)===99||C.charCodeAt(0)===95&&C.indexOf("_c",1)!==-1)&&(x=!0);x&&Bk(e,t)}}let E=t.__ref;if(E){let m=E.__staticCssClasses;if(m&&e.classList){let S=new Set(i);for(let w of m)S.has(w)||e.classList.remove(w)}E.__staticCssClasses=i}dk(t)}finally{Js(),n&&it(),Oa.delete(t)}}var Xa=t=>!!z[t]||!!(q&&q.has(t))||typeof t=="string"&&t.charCodeAt(0)===45;function Qa(t){t&&t.node&&Ch(t)}function Fk(t){let{node:e}=t;if(!e||!e.setAttribute)return;if(t.aria&&typeof t.aria=="object")for(let r in t.aria){let i=t.aria[r];if(typeof i=="function"||typeof i=="object"||i==null||typeof i=="string"&&i.includes("{{"))continue;let s="aria-"+r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());e.setAttribute(s,de(s,i))}let n=hp(t);for(let r in n){let i=n[r];i!=null&&i!==!1&&typeof i!="function"&&typeof i!="object"&&e.setAttribute(r,i===!0?"":i)}let o=t.tag||"div";for(let r of Object.keys(t)){if(typeof t[r]=="function"||ct.has(r)||r==="on"||n[r]!==void 0)continue;let i=r.charCodeAt(0);if(!(i>=65&&i<=90)&&!Mt(r)&&!Re(o,r)&&Gt(o,r)){let s=t[r];if(s==null)continue;if(typeof s=="string"&&s.includes("{{")){if(!nn[r])continue;s=pt.call(t,s,t.state)}if(s==null||typeof s=="function"||typeof s=="object"||s===!1&&!In(Oe(r)||r))continue;let a=Oe(r)||r;e.setAttribute(a,de(a,s))}}}function Ja(t,e){let{node:n}=t;if(!n||!n.setAttribute)return;let o=e.charCodeAt(0);if(o>=65&&o<=90||Mt(e))return;let r=t.tag||"div";if(Re(r,e)||!Gt(r,e))return;let i=Oe(e)||e,s=i.toLowerCase(),a=t.__ref&&t.__ref.__effects,l=!1;if(a)for(let u=0;u<a.length;u++){let d=a[u];d&&d._attrName===s&&!d._disposed&&typeof d._execute=="function"&&(l=!0,d._execute())}if(l)return;let c=t[e],f=nn[e];if(f&&c!=null){let u=f(t);u!==void 0&&(c=u)}typeof c=="string"&&c.includes("{{")&&(c=pt.call(t,c,t.state)),on(n,i,c)}function jk(t,e){let n=t.node,o=t.__ref,r=o.__autoGrow;if(!e){if(r&&r.active){try{n.removeEventListener("input",r.resize)}catch{}Fp(r),De.delete(t),n.style.height="",r.appliedMax!=null&&n.style.maxHeight===r.appliedMax&&(n.style.maxHeight=""),Wp(n,r,!1),r.active=!1,r.appliedMax=null,r.lastMeasure=0}return}r||(r=o.__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){$o(t,!0);return}if(!(n.scrollHeight>0)){r.awaitingLayout=!0,Np(t,r);return}r.awaitingLayout=!1;let s=Uk(n),a=zk(s),l=n.style.height;n.style.height="0px",a&&Ra(n);let c=n.scrollHeight;if(!(c>0)){n.style.height=l,a&&Ra(n);return}let f=Hk(n,s),u=f!=null&&c<f?f:c,d=Kk(s),p=d!=null&&u>d;n.style.height=Gk(p?d:u,s)+"px",a&&Ra(n),Wp(n,r,p),r.lastMeasure=c,r.lastWidth=n.clientWidth,Np(t,r)}},o.__eventCleanup||(o.__eventCleanup=[]),o.__eventCleanup.push(()=>{try{n.removeEventListener("input",r.resize)}catch{}Fp(r),De.delete(t)})),r.active||(n.addEventListener("input",r.resize),r.active=!0,$k(t,r));let i=typeof e=="object"&&e.max!=null?String(e.max):null;i!==r.appliedMax&&(i==null?r.appliedMax!=null&&n.style.maxHeight===r.appliedMax&&(n.style.maxHeight=""):n.style.maxHeight=i,r.appliedMax=i),r.resize()}function $o(t,e){let n=t.__ref?.__autoGrow;n&&(e&&(n.attachAttempts=0,n.firstAttemptAt=null),De.add(t),Uo())}function Wk(){let t=Array.from(De);De.clear();for(let e=0;e<t.length;e++){let n=t[e],o=n.node,r=n.__ref?.__autoGrow;if(!(!o||!r||!r.active)){if(!o.isConnected){r.firstAttemptAt==null&&(r.firstAttemptAt=jn()),r.attachAttempts+=1,r.attachAttempts<=qp&&jn()-r.firstAttemptAt<Yp&&(De.add(n),Uo());continue}r.attachAttempts=0,r.firstAttemptAt=null,r.resize()}}}function Np(t,e){if(e.watch)return;let n=t.node;if(!n)return;let o=n.ownerDocument&&n.ownerDocument.defaultView,r=o&&o.ResizeObserver||(typeof ResizeObserver=="function"?ResizeObserver:null);if(typeof r!="function")return;let i=()=>{if(!e.active||!n.isConnected||!(n.scrollHeight>0))return;if(e.awaitingLayout){e.awaitingLayout=!1,$o(t,!0);return}let a=n.clientWidth;e.lastWidth!=null&&Math.abs(a-e.lastWidth)<.5||(e.lastWidth=a,$o(t,!0))},s;try{s=new r(i),s.observe(n)}catch{return}e.watch=s}function Fp(t){let e=t.watch;if(e){t.watch=null;try{e.disconnect()}catch{}}}function $k(t,e){if(e.fontsHooked)return;e.fontsHooked=!0;let n=t.node&&t.node.ownerDocument,o=n&&n.fonts&&n.fonts.ready;!o||typeof o.then!="function"||o.then(()=>{e.active&&t.node&&$o(t,!0)},()=>{})}function Uk(t){let e=t.ownerDocument&&t.ownerDocument.defaultView;try{return e&&e.getComputedStyle?e.getComputedStyle(t):null}catch{return null}}var cn=t=>typeof t=="string"&&/^\s*-?\d*\.?\d+px\s*$/.test(t)?parseFloat(t):null,tc=t=>(cn(t.paddingTop)||0)+(cn(t.paddingBottom)||0),vh=t=>(cn(t.borderTopWidth)||0)+(cn(t.borderBottomWidth)||0);function zk(t){if(!t)return!1;let e=String(t.transitionProperty||"").split(","),n=String(t.transitionDuration||"0s").split(",");for(let o=0;o<e.length;o++){let r=e[o].trim();if(!(r!=="all"&&r!=="height")&&parseFloat(n[o%n.length])>0)return!0}return!1}function Ra(t){if(typeof t.getAnimations!="function")return;let e;try{e=t.getAnimations()}catch{return}for(let n=0;n<e.length;n++){let o=e[n];if(o&&o.transitionProperty==="height")try{o.cancel()}catch{}}}function Hk(t,e){if(!e||!t.hasAttribute||!t.hasAttribute("rows"))return null;let n=parseInt(t.getAttribute("rows"),10);if(!(n>0))return null;let o=cn(e.lineHeight)||Vk(t,e);return o>0?n*o+tc(e):null}var Ro=["fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontFamily","lineHeight","letterSpacing"],jp=new WeakMap;function Vk(t,e){let n=t.ownerDocument,o=n&&(n.body||n.documentElement);if(!o||!n.createElement)return null;let r=jp.get(n);r||(r=new Map,jp.set(n,r));let i=Ro.map(c=>e[c]||"").join("|");if(r.has(i))return r.get(i);let s=n.createElement("textarea");s.rows=1,s.setAttribute("aria-hidden","true"),s.tabIndex=-1;let a=s.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 c=0;c<Ro.length;c++)e[Ro[c]]&&(a[Ro[c]]=e[Ro[c]]);let l=0;try{o.appendChild(s),l=s.clientHeight}catch{l=0}finally{s.parentNode&&s.parentNode.removeChild(s)}return l>0?(r.set(i,l),l):null}function Gk(t,e){return e?e.boxSizing==="border-box"?t+vh(e):e.boxSizing==="content-box"?Math.max(0,t-tc(e)):t:t}function Kk(t){if(!t)return null;let e=cn(t.maxHeight);if(e==null||!(e>0))return null;let n=tc(t),o=vh(t),r=t.boxSizing==="border-box"?e-o:e+n,i=cn(t.lineHeight);if(!(i>0))return r;let s=Math.floor((r-n)/i+1e-6);return s>=1?s*i+n:r}function Wp(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 $p=["srcObject","muted"],qk=(t,e)=>t==="muted"?e===!0||e===""||e==="true"||e==="muted":e??null;function Yk(t){let e=t.node,n=t.__ref;if(!(!e||!n))for(let o=0;o<$p.length;o++){let r=$p[o],i=t[r];if(i===void 0||!(r in e))continue;let s=a=>{let l=qk(r,a);if(e[r]!==l)try{e[r]=l}catch(c){}};if(typeof i=="function"){let a=J(t,t[r+"Deps"],i),l=P(()=>{try{s(a(t,t.state,t.context))}catch(c){}},{depth:n.path.length,label:$(n,r)});n.__effects.push(l),n.__exec[r]=i}else s(i);r==="srcObject"&&(n.__releaseMedia=()=>{try{e.srcObject!=null&&(e.srcObject=null)}catch{}})}}function Zk(t){if(!t.autoGrow)return;if(globalThis.__SMBLS_BUILD_DROP_F_autoGrow__)return Z("autoGrow",t);let e=t.node;if(!e||e.tagName!=="TEXTAREA")return;let n=t.__ref,o=t.autoGrow,r=typeof o=="function"?J(t,t.autoGrowDeps,o):null,i=P(()=>{let s=t.autoGrow,a=s;if(typeof s=="function")try{a=(s===o&&r?r:s)(t,t.state,t.context)}catch{a=null}jk(t,a)},{depth:n.path.length,label:$(n,"autoGrow")});n.__effects||(n.__effects=[]),n.__effects.push(i),r&&(n.__exec.autoGrow=o)}var Eh=new Set(["onSwipe","onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown"]);function Oh(t,e){let n=!1;for(let o of Object.keys(t)){if(!Mt(o)||Eh.has(o))continue;if(o==="onInView"||o==="onLeaveView"){n=!0;continue}let r=Ys(o);if(r){Zs(r,t,t[o],o);continue}let i=t[o],s=null;if(i&&typeof i=="object"&&!Array.isArray(i)&&(s=i,i=s.handler),i=So(t,i),typeof i!="function")continue;let a=Hr(o);Je.has(a)||qs(Mx(a),t,i,s,o)}Xk(t),n&&D.viewEvents&&D.viewEvents(t)}function Xk(t){let e=t.node;if(!e||!e.addEventListener)return;let n={},o=!1;for(let d of Eh){let p=t[d];typeof p=="function"&&(n[d]=Rn(t,p,d),o=!0)}if(!o)return;let r=typeof t.swipeThreshold=="number"?t.swipeThreshold:40,i=typeof t.swipeMaxDuration=="number"?t.swipeMaxDuration:600,s=0,a=0,l=0,c=!1,f=d=>{let p=d.touches&&d.touches[0]||d.changedTouches&&d.changedTouches[0];p&&(s=p.clientX,a=p.clientY,l=Date.now(),c=!0)},u=d=>{if(!c)return;c=!1;let p=d.changedTouches&&d.changedTouches[0]||d.touches&&d.touches[0];if(!p)return;let g=p.clientX-s,h=p.clientY-a,_=Date.now()-l;if(_>i)return;let y=Math.abs(g),b=Math.abs(h);if(Math.max(y,b)<r)return;let T;if(y>b*1.2)T=g<0?"left":"right";else if(b>y*1.2)T=h<0?"up":"down";else return;let E="onSwipe"+T.charAt(0).toUpperCase()+T.slice(1),m=n[E],S=n.onSwipe;m&&m(d),S&&S({direction:T,dx:g,dy:h,dt:_,event:d})};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 ec(t,e,n,o,r,i,s,a){let l=e;(typeof l=="string"||typeof l=="number")&&(l={text:l});let c=o;if(typeof o=="function")try{c=o(t,l)}catch{c=null}let f=typeof o=="function"?Mo(c):r;if(a&&!s&&(f=No(f,Mo(e))),s){let u=e;(typeof e=="string"||typeof e=="number")&&(u={value:e,text:e}),l=c?{...c,state:u}:{state:u}}else c&&(l=vt(c,l));return l=Vo(l,i),{def:l,key:Xp(l?.key,e,n,t),supplied:f,props:c}}function Vo(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],o=Array.isArray(e)?e:[e];return{...t,extends:[...o,...n]}}var he=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},Rh=(t,e)=>e?e.nextSibling:Ao(t.node,t.__ref.__textNode),_i=(t,e,n)=>{let o=Rh(t,n);return e!==o&&t.node.insertBefore(e,o),e},Go=(t,e)=>{let n=Rh(t,e);return n?{position:"before",node:n}:void 0};function nc(t,e,n){let o=null;for(let r=0;r<e.length;r++){if(n&&n.has(e[r]))continue;let i=he(t[e[r]]);i&&(o=_i(t,i,o))}}function Up(t,e,n,o){let r=D.rows,i=r!==null&&t.childrenAs!=="state"&&t.tag!=="fragment"?r.track(t):null,s=oc(t,e,n,o,!0,i);return t.__ref.__plainRows=i&&(s||e==null||e===!1)?i:null,s}function oc(t,e,n,o,r,i){if(!e||!t.node)return;let s=t.childExtends,a=Ie(t,"childProps"),l=t.__ref,c=D.mount,f=o>0&&t.tag!=="fragment"&&l?o:0;if(Array.isArray(e)){let u=t.childProps,d=t.childrenAs==="state",p=(g,h)=>{let _=ec(t,e[g],g,u,a,s,d,r);i&&i.add(_.key,e[g],_,u,s);try{let y=Et(Fo(sn(_.def,_.supplied)),t,_.key,n,h);return!y&&i&&i.none(_.key),ai(t,y),y}catch(y){if(i&&i.failed(_.key),typeof console<"u"&&console.error){let b=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${_.key}" failed to construct at ${b} (initial render, skipping this row):`,y?.message||y)}return Ke(t,{where:"child",key:_.key,error:y}),null}};if(!f){for(let g=0;g<e.length&&!(l&&l.__disposed);g++)p(g);return!0}return c.rows(t,e.length,p,f),!0}if(typeof e=="string"){let u=eh(e,t);if(Array.isArray(u))return oc(t,u,n,o,!0,i)}if(typeof e=="object"){let u=(p,g)=>{if(ct.has(p))return!1;let h=e[p];if(h==null||h===!1)return!1;let _=r?No(a,Mo(h)):a;(typeof h=="string"||typeof h=="number")&&(h={text:h}),t.childProps&&(h=vt(t.childProps,h)),h=Vo(h,s);let y=ui(t,p),b=sn(h,_),T=Et(r?Fo(b):b,t,y,n,g);return ai(t,T),T};if(!f){for(let p in e)u(p);return}let d=[];for(let p in e)d.push(p);c.rows(t,d.length,(p,g)=>u(d[p],g),f)}}function Fn(t,e){let n=t.node;if(!n||n.tagName!=="SELECT")return;let o=n.options;if(!o||!o.length)return;let r=t.__ref,i=r&&r.__exec&&r.__exec.value,s=typeof i=="function",a=t.value!=null&&typeof t.value!="function";if(s||a){let f;if(s)try{f=i(t,t.state,t.context)}catch{return}else f=t.value,typeof f=="string"&&f.includes("{{")&&(f=pt.call(t,f,t.state));let u=f==null?"":String(f);n.value!==u&&(n.value=u);return}let l=e||!(r&&r.__selectSynced);if(r&&(r.__selectSynced=!0),!l)return;let c=-1;for(let f=0;f<o.length;f++)o[f].defaultSelected&&(c=f);c>=0&&n.selectedIndex!==c&&(n.selectedIndex=c)}function Na(t,e){let{children:n,content:o}=t,r=t.childExtends,i=typeof n=="function",s=i||oh(t,"children");if(typeof n=="function"){let u=n,d=t.__ref,p=!1,g,h=J(t,t.childrenDeps,u),_=P(()=>{let y=p;p=!0;let b;try{b=h(t,t.state,t.context)}catch(v){if(typeof console<"u"&&console.error){let A=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] \`children:\` factory threw at ${A}${y?"":" (initial run, treating as empty)"}:`,v?.message||v)}Ke(t,{where:"children",error:v});return}if(!y){g=b;return}if(b===t.children)return;kp(t,b),t.children=b,d.__mount&&d.__mount.chunkGen++;let T=typeof t.onContentUpdate=="function",E=T?[]:null,m=T?[]:null,S=T?[]:null;if(Array.isArray(b)&&t.childrenAs==="state"){let v=t.childProps,A=[],B=new Map;for(let K=0;K<b.length;K++){let lt=b[K],Y=v;if(typeof v=="function")try{Y=v(t,lt)}catch{Y=null}let Ct=Xp(Y&&Y.key,lt,K,t);A.push(Ct),B.set(Ct,{rawChild:lt,childProps:Y})}let I=new Set(A),F=bp(d,d.__children.slice());for(let K of F)if(!I.has(K)){let lt=t[K];lt?.remove&&lt.remove(),delete t[K],m&&m.push(K)}let Sn=t.childExtends,ie=!(t.tag==="fragment")&&!!t.node,wn=null,me=new Set;for(let K of A){let lt=B.get(K),Y=lt.rawChild,Ct=t[K];if(Ct&&Ct.state){if(Y&&typeof Y=="object"){let U=Ct.state,rt=U.$replace||U.replace,yt=U.$update||U.update;try{if(typeof rt=="function")rt.call(U,Y);else if(typeof yt=="function"){for(let st in U)if(!(st==="__element"||st==="root"||st==="parent"||st==="update")&&!Object.prototype.hasOwnProperty.call(Y,st))try{U[st]=void 0}catch{}yt.call(U,Y)}else for(let st in Y)U[st]=Y[st]}catch(st){if(typeof console<"u"&&console.error){let Yt=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${K}" failed to patch at ${Yt} (reconcile, keeping its previous data for this pass):`,st?.message||st)}}}if(S&&S.push(K),ie){let U=he(Ct);U&&(wn=_i(t,U,wn))}continue}let xn=Y;(typeof Y=="string"||typeof Y=="number")&&(xn={value:Y,text:Y});let kn=lt.childProps,N=Vo(kn?{...kn,state:xn}:{state:xn},Sn),et=typeof v=="function"?Mo(kn):Ie(t,"childProps"),$e;try{let U=ie?Go(t,wn):void 0;$e=Et(Fo(sn(N,et)),t,K,e,U)}catch(U){if(typeof console<"u"&&console.error){let rt=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${K}" failed to construct at ${rt} (reconcile, skipping this row):`,U?.message||U)}Ke(t,{where:"child",key:K,error:U}),me.add(K);continue}if(d.__disposed)return;if(ie){let U=he($e);U&&(wn=U)}E&&E.push(K)}ie&&nc(t,A,me.size?me:null),d.__children=me.size?A.filter(K=>!me.has(K)):A,T&&(E.length||m.length)&&ii(t,{added:E,removed:m,kept:S}),Fn(t,!1);return}if(t.childrenAs!=="state"&&d.__plainRows&&D.rows.reconcile(t,d,b,e,T)){Fn(t,!1);return}let C=T?[...d.__children]:null;for(let v of bp(d,[...d.__children])){let A=t[v];A?.remove&&A.remove(),delete t[v]}d.__children=[],Up(t,b,e,0),Fn(t,!1),T&&ii(t,{added:[...d.__children],removed:C,kept:[]})},{depth:d.path.length,label:$(d,"children")});d.__effects.push(_),n=g,kp(t,n),t.children=n}let a=D.mount,l=a!==null?a.budgetOf(t,e):0,c=Co(t.__ref),f=i?Up(t,n,e,l):oc(t,n,e,l,s);if(l&&Co(t.__ref)>c){a.defer(t,l,()=>zp(t,e,n,o,r,f,l));return}zp(t,e,n,o,r,f,l)}function zp(t,e,n,o,r,i,s){let a=Co(t.__ref);if(o!=null&&!(o&&o.__ref)){let l=o;typeof l=="string"||typeof l=="number"?l={text:l}:typeof l!="object"&&(l={}),t.childProps&&(l=vt(t.childProps,l)),l=Vo(l,r);let c=No(Ie(t,"childProps"),Ie(t,"content"));ai(t,Et(sn(l,c),t,"content",e))}if(!(n&&!i)){if(s&&Co(t.__ref)>a){D.mount.defer(t,s,()=>Hp(t,e,r,s));return}Hp(t,e,r,s)}}function Hp(t,e,n,o){let r=t.context?.components||{},i=t.__ref&&t.__ref.__runtimeSource,s=i?{}:null;{let c=Object.keys(t);for(let f=0;f<c.length;f++){let u=c[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<c.length;g++){let h=c[g],_=h.charCodeAt(0);if(_>=65&&_<=90||ct.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],s&&Bo(i,h)&&(s[d]||(s[d]={}),s[d][h]=i[h]))}t[d]&&typeof t[d]=="object"?t[d]={...p,...t[d]}:t[d]=p}}let a=Object.keys(t),l=c=>{if(ct.has(c)||typeof t[c]!="object"||t[c]===null)return!1;let f=c.charCodeAt(0);if(f<65||f>90)return!1;let u=t[c];if(u.__ref)return!1;if(!u.extends&&!u.extend){let p=r[c]||r[`smbls.${c}`];p&&(u={...u,extends:p})}t.childProps&&(u=vt(t.childProps,u)),u=Vo(u,n);let d=i?No(Ie(t,"childProps"),No(s[c]||null,Ie(t,c))):null;ai(t,Et(sn(u,d),t,c,e))};if(!o){for(let c of a)l(c);return}D.mount.run(t,a.length,c=>l(a[c]),o)}function $n(t,e,n){let{node:o}=t;if(!o)return;o.ref=t;let r=e?.tag==="fragment"?e.__ref?.__fragmentAnchor:null;if(r){let l=r.parentNode;if(l){if(n?.position==="before"&&n.node)l.insertBefore(o,n.node);else if(n?.position==="after"&&n.node){let c=n.node.nextSibling;l.insertBefore(o,c||r)}else l.insertBefore(o,r);Er();return}}let i=e?.node||(e?.nodeType?e:null);if(!i)return;if(!n&&D.hydration!==null){let l=t.context&&t.context.__hydration;if(l&&D.hydration.place(l,t,e,i,o))return}let s=n?.node,a=o.parentNode===i;if(s&&s.parentNode!==i)(!a||o.nextSibling)&&i.appendChild(o);else if(n?.position==="before"&&s)s!==o&&(!a||o.nextSibling!==s)&&i.insertBefore(o,s);else if(n?.position==="after"&&n.node){let l=n.node.nextSibling;l===o||(l?i.insertBefore(o,l):i.appendChild(o))}else(!a||o.nextSibling)&&i.appendChild(o);Er()}var fi=3;function yi(t){return!t||t.__inBeforeUpdate||(t.__beforeUpdateFailCount||0)>=fi?!1:(t.__inBeforeUpdate=!0,!0)}function te(t,e){t&&(t.__inBeforeUpdate=!1,e?(t.__beforeUpdateFailCount=(t.__beforeUpdateFailCount||0)+1,t.__beforeUpdateFailCount===fi&&typeof console<"u"&&console.error&&console.error(`[DOMQL] onBeforeUpdate failed ${fi}x in a row on this element \u2014 pausing automatic retries until a future prop/state change re-arms it.`)):t.__beforeUpdateFailCount=0)}function gt(t,e,n){let o=t.charAt(0).toLowerCase()+t.slice(1);ce(o,e,n);let r="on"+t,i=e[r];if(typeof i=="function"){let l=t==="Render"?"__inRender":t==="RenderRouter"?"__inRenderRouter":null;if(l){if(e.__ref[l])return!0;e.__ref[l]=!0}let c=e.context?.designSystem;c&&at(c);let f=!!l;try{let u=i(e,e.state,e.context,n);if(u&&typeof u.then=="function"){let d=e.__ref;return u.catch(p=>{It(e,r,p)}).finally(()=>{l&&d&&(d[l]=!1)}),f=!1,!0}if(u===!1)return!1}catch(u){if(It(e,r,u),e.context?.strictMode)throw u}finally{c&&it(),f&&e.__ref&&(e.__ref[l]=!1)}}return!0}function pa(t={},e={}){let n=this,o=n.__ref;if(!o)return;if((typeof t=="string"||typeof t=="number")&&(t={text:t}),!e.preventListeners&&typeof n.onBeforeUpdate=="function"&&yi(o))try{let a=n.onBeforeUpdate(n,n.state,n.context,e);if(a&&typeof a.then=="function")a.then(()=>te(o,!1),l=>{te(o,!0),ce("error",n,{hook:"onBeforeUpdate",error:l})||console.error("[DOMQL] onBeforeUpdate error:",l)});else if(te(o,!1),a===!1)return n}catch(a){throw te(o,!0),a}let r=!t||Object.keys(t).length===0,i=[],s=!1;df(()=>{if(t.state&&H(n.state)&&n.state.$update(t.state),t.text!==void 0&&(n.text=t.text,!o.__exec.text&&n.node&&an(n,t.text??"")),t.html!==void 0&&(n.html=t.html,!o.__exec.html&&n.node&&(n.node.innerHTML=t.html)),t.style&&n.node?.style){if(!o.__exec.style){let a=rn(n,t.style);for(let l in a){let c=a[l];if(c==null)continue;let f=ue(l),u=String(c).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 l=t.attr[a];on(n.node,a,l)}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},s=!0}for(let a in t){if(ct.has(a)||a==="state")continue;let l=t[a],c=n[a];if(c&&c.__ref&&typeof c.update=="function")c.update(l,e);else if(typeof l=="object"&&l!==null){let f=a.charCodeAt(0);f>=65&&f<=90&&Et(l,n,a,e)}else a!=="text"&&a!=="html"&&a!=="style"&&a!=="attr"&&a!=="data"&&(n[a]=l,typeof l!="function"&&i.push(a))}});for(let a=0;a<i.length;a++)Ja(n,i[a]);if(n.node){let a=s;for(let l=0;!a&&l<i.length;l++)Xa(i[l])&&(a=!0);a&&Qa(n)}if(n.node&&r&&o.__effects&&o.__effects.length)for(let a=0;a<o.__effects.length;a++){let l=o.__effects[a];l&&!l._disposed&&!l._isSubscribeToEffect&&typeof l._execute=="function"&&l._execute()}else if(n.node&&o.__conditionalRunners)for(let a of o.__conditionalRunners)a();return ce("update",n),!e.preventListeners&&typeof n.onUpdate=="function"&&n.onUpdate(n,n.state,n.context,e),n}var rc=Symbol("handlerChain.none"),Qk=new Set(["inView","leaveView"]),Jk=new Set(["bridgeMount","bridgeUpdate","bridgeDestroy"]),zn=new WeakMap,Dh=new WeakMap,cc=!1,ic=t=>t!==null&&typeof t=="object"&&t.always===!0;function tT(t){let e=Hr(t);return Qk.has(e)?!0:Je.has(e)&&!Jk.has(e)}var Ih=new Set;function eT(t){Ih.has(t)}function sc(t){return t&&typeof t=="object"?{handler:t.handler,options:t}:{handler:t,options:null}}function Ko(t,e){let n={always:t,own:e,list:e?t.concat(e):t,next:null,prims:null,cleared:null},o=function(...i){return rT(n,this,i)};return zn.set(o,n),cc=!0,o}function ac(t){let e=Dh.get(t);return e||(e=Ko([sc(t)],null),Dh.set(t,e)),e}function nT(t,e){let n=zn.get(t);if(e==null||e===!1)return n.own?n.cleared||(n.cleared=Ko(n.always,null)):t;if(typeof e!="object"&&typeof e!="function"){let s=n.prims||(n.prims=new Map),a=s.get(e);return a||s.set(e,a=Ko(n.always,sc(e))),a}let o=n.next||(n.next=new WeakMap),r=o.get(e);if(r)return r;let i=ic(e)?zn.get(ac(e)):typeof e=="function"?zn.get(e):void 0;return r=i?Ko(n.always.concat(i.always),i.own):Ko(n.always,sc(e)),o.set(e,r),r}function oT(t,e,n){let o=ic(e),r=!o&&cc&&typeof e=="function"&&zn.has(e);if(!o&&!r&&!ic(n))return rc;if(!tT(t))return eT(t),rc;let i=o?ac(e):r?e:null;return i?nT(i,n):ac(n)}function Lh(t,e,n,o){if(!Mt(e))return!1;let r=oT(e,n,o);return r===rc?!1:(t[e]=r,!0)}function lc(t){if(typeof t=="function"){let e=cc?zn.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 rT(t,e,n){let o=t.list,r,i=!1,s=null,a=!1,l;for(let c=0;c<o.length;c++){let f=o[c].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,l=d);continue}u===!1?i=!0:u&&typeof u.then=="function"&&(s||(s=[])).push(u),r=u}if(a){if(s)for(let c of s)c.then(null,f=>console.error("[smbls] lifecycle handler error:",f));throw l}return i?!1:s?s.length===1?s[0]:iT(s):r}function iT(t){return Promise.allSettled(t).then(e=>{let n=null;for(let o of e)o.status==="rejected"&&(n?console.error("[smbls] lifecycle handler error:",o.reason):n=o);if(n)throw n.reason})}var sT=1e-6,Ph=new WeakMap;function aT(t,e,n){let o=t.defaultView,r=o&&o.IntersectionObserver;if(typeof r!="function")return null;let i=Ph.get(t);i||Ph.set(t,i=new Map);let s=e+"|"+n,a=i.get(s);if(a)return a;a={id:s,byKey:i,threshold:e,targets:new Map,observer:null};try{let l=n?{threshold:e,rootMargin:n}:{threshold:e};a.observer=new r(c=>cT(a,c),l)}catch{return null}return i.set(s,a),a}function cT(t,e){for(let n=0;n<e.length;n++){let o=e[n],r=t.targets.get(o.target);if(!r)continue;let i=!!o.isIntersecting&&o.intersectionRatio>=t.threshold-sT;if(i===r.inView)continue;r.inView=i;let s=i?"in":"leave",a=r.subs.slice();for(let l=0;l<a.length;l++){let c=a[l];if(!(c.kind!==s||c.dead)){c.once&&Mh(t,r,c);try{c.run(o)}catch(f){lT(f)}}}}}function lT(t){typeof globalThis.reportError=="function"?globalThis.reportError(t):queueMicrotask(()=>{throw t})}function Mh(t,e,n){if(n.dead)return;n.dead=!0;let o=e.subs.indexOf(n);o!==-1&&e.subs.splice(o,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 Bh(t,e,n,o,r){let i=So(t,r.handler),s=r.options;if(typeof i!="function")return;let a=s&&s.threshold,l=typeof a=="number"&&a>=0&&a<=1?a:0,c=s&&typeof s.rootMargin=="string"?s.rootMargin.trim():"",f=aT(n,l,c);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=Rn(t,i,o==="in"?"onInView":"onLeaveView"),p={kind:o,once:!!(s&&s.once===!0),run:d,dead:!1};u.subs.push(p);let g=t.__ref;g.__eventCleanup||(g.__eventCleanup=[]),g.__eventCleanup.push(()=>Mh(f,u,p))}function Nh(t){if(globalThis.__SMBLS_BUILD_DROP_F_viewEvents__)return Z("viewEvents",t);let e=t.node;if(!e||e.nodeType!==1)return;let n=e.ownerDocument,o=n&&n.defaultView;if(!o||typeof o.IntersectionObserver!="function")return;let r=lc(t.onInView);for(let s=0;s<r.length;s++)Bh(t,e,n,"in",r[s]);let i=lc(t.onLeaveView);for(let s=0;s<i.length;s++)Bh(t,e,n,"leave",i[s])}var qo=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),$h=1e3,Uh=24,fc=Object.freeze({}),pc=Object.freeze({}),Hn=0,mi=t=>{if(H(t)||qo(t,"__ref"))return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};function uc(t,e,n){if(t===null||typeof t!="object")return t;if(--Hn<0||e>Uh){Hn=-1;return}if(Array.isArray(t)){let r=new Array(t.length);for(let i=0;i<t.length;i++)r[i]=n?t[i]:uc(t[i],e+1,!1);return r}if(n||!mi(t))return t;let o={};for(let r in t)qo(t,r)&&(o[r]=uc(t[r],e+1,r==="extends"||r==="childExtends"));return o}function Fh(t){Hn=$h;let e;try{e=uc(t,0,!1)}catch{return fc}return Hn<0?fc:e}function dc(t,e,n,o){if(t===e)return!0;if(t===null||typeof t!="object"||e===null||typeof e!="object"||--Hn<0||n>Uh)return!1;if(Array.isArray(t)){if(!Array.isArray(e)||e.length!==t.length)return!1;for(let i=0;i<t.length;i++)if(o?t[i]!==e[i]:!dc(t[i],e[i],n+1,!1))return!1;return!0}if(o||Array.isArray(e)||!mi(t)||!mi(e))return!1;let r=0;for(let i in t)if(qo(t,i)&&(r++,!qo(e,i)||!dc(t[i],e[i],n+1,i==="extends"||i==="childExtends")))return!1;for(let i in e)qo(e,i)&&r--;return r===0}function jh(t,e){if(e===fc||e===pc)return!1;Hn=$h;try{return dc(t,e,0,!1)}catch{return!1}}var bi=t=>se()?mt(()=>Fh(t)):Fh(t),Wh=(t,e)=>se()?mt(()=>jh(t,e)):jh(t,e);function zh(t,e,n,o){let r=t;return r&&typeof r=="object"&&!Array.isArray(r)&&!mi(r)&&(o||n&&!r.ignoreChildExtends)&&(r=o?vt({},r):{...r}),typeof e=="function"?{item:r,props:o}:r}var Hh=t=>({childProps:typeof t.childProps=="function"?void 0:t.childProps,childExtends:t.childExtends}),Si=class{constructor(e,n){this.shared=e,this.rows=n}add(e,n,o,r,i){this.rows.set(e,bi(zh(n,r,i,o.props)))}failed(e){this.rows.set(e,pc)}none(e){this.rows.delete(e)}},fT=Object.freeze([]);function uT(t,e,n,o,r){let i=e.__plainRows.rows,s=e.__plainRows.shared,a=Hh(t),l=Wh(a,s),c=t.childProps,f=Ie(t,"childProps"),u=t.childExtends,d=new Array(n.length),p=new Map;for(let w=0;w<n.length;w++){let x=ec(t,n[w],w,c,f,u,!1,!0);if(p.has(x.key))return!1;p.set(x.key,x),d[w]=x}for(let w=0;w<d.length;w++){let x=d[w];x.input=zh(n[w],c,u,x.props);let C=l?i.get(x.key):void 0;if(C===void 0)continue;let v=t[x.key];v&&v.__ref&&v.parent===t&&Wh(x.input,C)&&(x.kept=!0,x.snap=C)}let g=r?[]:null;for(let w of i.keys()){let x=p.get(w);if(x&&x.kept)continue;let C=t[w];C?.remove&&C.remove(),delete t[w],g&&g.push(w)}let h=r?[]:null,_=r?[]:null,y=new Map,b=null,T=null;for(let w=0;w<d.length;w++){let x=d[w];if(x.kept){y.set(x.key,x.snap),_&&_.push(x.key);let A=he(t[x.key]);A&&(T=_i(t,A,T));continue}y.set(x.key,bi(x.input));let C;try{let A=Go(t,T);C=Et(Fo(sn(x.def,x.supplied)),t,x.key,o,A)}catch(A){if(y.set(x.key,pc),b||(b=new Set),b.add(x.key),typeof console<"u"&&console.error){let B=e.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${x.key}" failed to construct at ${B} (re-run, skipping this row):`,A?.message||A)}Ke(t,{where:"child",key:x.key,error:A});continue}if(e.__disposed)return!0;if(!C){y.delete(x.key);continue}let v=he(C);v&&(T=v),h&&h.push(x.key)}e.__plainRows=new Si(l?s:bi(a),y);let E=Array.from(y.keys());nc(t,E,b);let m=new Set(e.__children),S=[];for(let w=0;w<E.length;w++)m.has(E[w])&&S.push(E[w]);for(let w of e.__children)y.has(w)||S.push(w);return e.__children=S,r&&(h.length||g.length)&&ii(t,{added:h,removed:g,kept:_}),!0}var Vh={track:t=>new Si(bi(Hh(t)),new Map),reconcile(t,e,n,o,r){let i=Array.isArray(n)?n:n==null||n===!1?fT:null;return!!i&&uT(t,e,i,o,r)}};var dT=new Set(["src","srcset"]),pT=new Set(["class","style","id","data-br"]),hT=new Set(["sizes","loading","fetchpriority","decoding","crossorigin","referrerpolicy","width","height"]),gT=new Set(["sizes","media","type","width","height"]),_T=t=>t==="img"?hT:t==="source"?gT:null,yT=t=>t.charCodeAt(0)===97&&t.startsWith("aria-")||t.charCodeAt(0)===100&&t.startsWith("data-")&&t!=="data-br"&&t!=="data-key",Gh=(t,e)=>{for(let n of e){let o=t.nodes.get(n.target);o&&(o.delete(n.attributeName),o.size||t.nodes.delete(n.target))}},mT=(t,e,n)=>{let o=t.built;if(!o){let r=e.ownerDocument&&e.ownerDocument.defaultView&&e.ownerDocument.defaultView.MutationObserver||(typeof MutationObserver=="function"?MutationObserver:null);if(!r)return!1;let i=new Map;o=t.built={nodes:i,observer:null},o.observer=new r(s=>Gh(o,s))}return o.nodes.set(e,new Set(n)),o.observer.observe(e,{attributes:!0,attributeFilter:n}),!0};function Kh(t){let e=t&&t.built;if(!e)return 0;t.built=null,Gh(e,e.observer.takeRecords()),e.observer.disconnect();let n=0;for(let[o,r]of e.nodes)for(let i of r)o.hasAttribute(i)&&(o.removeAttribute(i),n++);return e.nodes.clear(),n}function qh(t){let e=t?.context?.__hydration;if(!e)return null;let n=t.tag=ve(t);if(n==="string"||n==="fragment")return null;let o=Tr(t),r=e.registry[o===""?"__root":o],i=r!==void 0?e.nodes[r]:null;if(!i||i.nodeType!==1||e.claimed.has(i))return r!==void 0&&e.misses++,null;let s=Ce(n)&&(n==="svg"||t.parent?.node?.namespaceURI===Qt),a=Ce(n)&&!s&&n!=="svg"?"div":n,l=s?i.namespaceURI===Qt:i.namespaceURI!==Qt;if(i.localName!==a||!l)return e.misses++,null;e.claimed.add(i),e.adopted++,t.__ref&&(t.__ref.__adoption="adopted");let c=e.pending;if(c&&c.delete(i)){let p=i.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=_T(i.localName);for(let p of Array.from(i.getAttributeNames?i.getAttributeNames():[]))dT.has(p)||p==="data-key"||(pT.has(p)||(u||(u=new Map)).set(p,i.getAttribute(p)),!(d&&d.has(p))&&(yT(p)?(f||(f=[])).push(p):i.removeAttribute(p)));if(f&&!mT(e,i,f))for(let p of f)i.removeAttribute(p);if(u&&t.__ref&&(t.__ref.__builtAttrs={node:i,values:u}),c){let p=0,g=0,h=i.firstChild,_=t.text!=null&&h&&h.nodeType===3&&!c.has(h)?h:null;_&&t.__ref&&(t.__ref.__builtText=_);for(let y=i.firstChild;y;){let b=y.nextSibling;y!==_&&!c.has(y)&&(y.nodeType===3?p++:y.nodeType!==8&&g++,i.removeChild(y)),y=b}(g||p>(t.text!=null&&!_?1:0))&&(e.whole||(e.whole=new Set)).add(t)}else for(;i.firstChild;)i.removeChild(i.firstChild);return i.localName==="img"&&i.complete&&i.naturalWidth>0&&ST(i),i}var bT=500;function ST(t){let e=!1,n=!1,o=r=>{r.isTrusted&&(n?r.stopImmediatePropagation():e=!0,t.removeEventListener("load",o,!0))};t.addEventListener("load",o,!0),setTimeout(()=>{if(!e){if(!(t.complete&&t.naturalWidth>0)){t.removeEventListener("load",o,!0);return}n=!0,t.dispatchEvent(new Event("load")),setTimeout(()=>t.removeEventListener("load",o,!0),bT)}},0)}function wT(t,e,n,o,r){if(r.parentNode===o&&t.claimed.has(r))return!0;let i=t.pendingIn;if(!i||!i.has(o))return!1;let s,a=n&&n.__ref,l=a&&a.__children,c=l?l.lastIndexOf(e.key):-1;for(let f=c-1;f>=0;f--){let u=n[l[f]],d=u&&u.node;if(d&&d!==r&&d.parentNode===o){s=d.nextSibling;break}}return s===void 0&&(s=Ao(o,a&&a.__textNode)),s===r||o.insertBefore(r,s),!0}function xT(t,e){let n=t.whole;if(!n)return!1;if(n.has(e))return!0;let o=e.parent;return!o||!n.has(o)?!1:(n.add(e),!0)}function kT(t,e){let n=e&&e.__ref,o=e&&e.node;if(!n||!o||!t.pending||!t.claimed.has(o))return null;let r=o.parentNode;return r?(t.claimed.delete(o),t.adopted--,t.pending.add(o),t.pendingIn.set(r,(t.pendingIn.get(r)||0)+1),n.__keepNode=!0,o):null}function TT(t,e){if(!e||!t.pending||!t.pending.delete(e))return;let n=e.parentNode;if(n){let o=(t.pendingIn.get(n)||1)-1;o>0?t.pendingIn.set(n,o):t.pendingIn.delete(n),e.remove()}}var Kt="\0",Yo="#";function AT(t){let e=new Set,n=new Map,o=(r,i)=>{let s=r.getAttribute("data-key"),a=s===null?i:i?i+Kt+s:Yo;if(a){let l=a+Kt+r.localName,c=n.get(l)||0;n.set(l,c+1),e.add(l+Kt+c)}for(let l of r.children)o(l,a)};for(let r of t||[])r&&r.nodeType===1&&o(r,"");return{places:e,chains:new WeakMap,taken:new Map,slots:new WeakMap}}var Yh=t=>{let e=[];for(let n=t;n;n=n.parent){let o=n.node,r=o&&o.nodeType===1?o.getAttribute("data-key"):null;r!==null&&e.push(r)}return e.length?(e.pop(),e.length?Yo+Kt+e.reverse().join(Kt):Yo):""};function CT(t,e,n){let o=e.parent,r=o?t.chains.get(o):"";r===void 0&&(r=Yh(o));let i=n.nodeType===1&&e.key?r?r+Kt+e.key:Yo:r;if(t.chains.set(e,i),n.nodeType!==1||!i)return;let s=i+Kt+n.localName,a=t.taken.get(s);a||t.taken.set(s,a=new Set);let l=0;for(;a.has(l);)l++;a.add(l),t.slots.set(e,[s,l]),t.places.has(s+Kt+l)&&e.__ref&&(e.__ref.__adoption="replaced")}function vT(t){let e=t&&t.context;if(!e||!e.__hydration&&!e.__replacing)return null;let n=typeof t.tag=="string"?t.tag:ve(t);if(n==="string"||n==="fragment")return null;let o=Ce(n)&&(n==="svg"||t.parent?.node?.namespaceURI===Qt),r=Ce(n)&&!o&&n!=="svg"?"div":n,i=e.__hydration;if(i){let g=Tr(t),h=i.registry[g===""?"__root":g],_=h!==void 0?i.nodes[h]:null;if(!_||_.nodeType!==1||i.claimed.has(_))return null;let y=o?_.namespaceURI===Qt:_.namespaceURI!==Qt;return _.localName===r&&y?"adopted":null}let s=e.__replacing;if(!t.key)return null;let a=t.parent,l=a?s.chains.get(a):"";l===void 0&&(l=Yh(a));let c=l?l+Kt+t.key:Yo,f=o?r:String(r).toLowerCase(),u=c+Kt+f,d=s.taken.get(u),p=0;for(;d&&d.has(p);)p++;return s.places.has(u+Kt+p)?"replaced":null}function ET(t,e){let n=t.slots.get(e);if(!n)return;t.slots.delete(e);let o=t.taken.get(n[0]);o&&o.delete(n[1])}var Zh={adopt:qh,place:wT,whole:xT,settle:Kh,handBack:kT,settleHandBack:TT,markReplaced:CT,releaseReplaced:ET,foresee:vT};var Kn=50;function qn(t){return t===!0?Kn:typeof t=="number"&&t>0?t:0}var qt=[],Gn=!1,Pe=0,ge=Kn,Qo=!1,xi=[],ki=typeof performance<"u"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),wi=[],Zo=null;function OT(t){if(!Zo){let e=new MessageChannel;e.port1.onmessage=()=>{let n=wi.shift();!wi.length&&typeof e.port1.unref=="function"&&e.port1.unref(),n&&n()},Zo=e}wi.push(t),wi.length===1&&typeof Zo.port1.ref=="function"&&Zo.port1.ref(),Zo.port2.postMessage(0)}function yc(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"){OT(t);return}setTimeout(t,0)}function RT(){return new Promise(t=>yc(t))}var Xo=0,gc=0,_c=0,Vn=0;function mc(){Xo=0,gc=Pe,_c=0,Vn=0}function Xh(){if(!Pe)return!1;if(Xo++,Vn>0)return Vn--,!1;let t=ki(),e=t-Pe,n=e/Xo,o=(t-gc)/(Xo-_c),r=o>n?o:n;gc=t,_c=Xo;let i=ge-e-r;return i<=0?(Qo=!0,!0):(Vn=r>0?Math.floor(i/r/2):0,!1)}var ln=0;function Qh(t=Kn){ln===0&&!Pe?(Pe=ki(),Qo=!1,ge=t,mc()):t<ge&&(ge=t,Vn=0),ln++}var Ot=null,hc=!1,DT=typeof queueMicrotask=="function"?queueMicrotask:t=>Promise.resolve().then(t);function bc(){Pe=0,Qo=!1,ge=Kn,mc()}function IT(){hc||(hc=!0,DT(()=>{hc=!1,ln===0&&bc()}))}function Jh(){ln>0&&ln--,!(ln!==0||Ot!==null)&&(Gn?IT():bc())}function Sc(t,e=Kn,n=null){let o={fn:t,budget:e,lease:n};Ot?Ot.push(o):qt.push(o),Gn||(Gn=!0,yc(eg))}function wc(t){let e=t&&t.context;return e&&e.__mountLease||null}function tg(t){if(!t)return;let e=0;for(let n=0;n<qt.length;n++){let o=qt[n];o.lease!==t&&(qt[e++]=o)}if(qt.length=e,Ot){let n=0;for(let o=0;o<Ot.length;o++)Ot[o].lease!==t&&(Ot[n++]=Ot[o]);Ot.length=n}typeof t.lost=="function"&&t.lost()}function LT(t){if(t.lease!==null&&!t.lease.live()){tg(t.lease);return}let e=Ot;Ot=[];try{t.fn()}catch(n){typeof console<"u"&&console.error&&console.error("[smbls] deferred mount chunk failed:",n?.message||n)}finally{let n=Ot;Ot=e,n.length&&qt.unshift(...n)}}function Ti(){return!Gn&&!qt.length?Promise.resolve():new Promise(t=>xi.push(t))}function Jo(){return!Gn&&!qt.length}function PT(){if(!xi.length)return;let t=xi;xi=[];for(let e=0;e<t.length;e++)t[e]()}function eg(){for(Pe=ki(),Qo=!1,ge=1/0,mc();qt.length;){let t=qt.shift();if(t.budget<ge&&(ge=t.budget,Vn=0),LT(t),Qo||ki()-Pe>=ge)break}if(ln=0,bc(),qt.length){yc(eg);return}Gn=!1,PT()}function Ai(t){Dn(t.__ref).pending++}function jt(t){let e=t&&t.__ref,n=e&&e.__mount;if(!n||!(n.pending>0)||--n.pending>0||e.__disposed)return;let o=n.tail;o&&(n.tail=null,o())}function xc(t){let e=t&&t.__ref&&t.__ref.__mount;return!!(e&&e.tail)}function kc(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 Ci(t,e=t&&t.__ref){let n=e&&e.__mount,o=n&&n.waiters;if(o){n.waiters=null;for(let r=0;r<o.length;r++)o[r](t)}}function ng(t,e=t&&t.__ref){let n=e&&e.__mount;if(!n||!n.tail)return;n.tail=null,n.pending=0;let o=n.holder;n.holder=null,Ci(t,e),o&&jt(o)}function og(t,e){let n=e&&e.mountYield;if(!n&&!t.yieldChildren)return 0;let o=D.hydration!==null&&t.context?t.context.__hydration:null;if(o&&D.hydration.whole(o,t))return 0;let r=n?qn(n):0,i=qn(t.yieldChildren);return r&&i?r<i?r:i:r||i}function rg(t,e,n,o,r){Qh(o);try{ig(t,t.__ref,0,e,n,o,r,!1)}finally{Jh()}}function ig(t,e,n,o,r,i,s,a){try{for(let l=n;l<o;l++){let c=e.__mount,f=c?c.pending:0;if(r(l)===!1)continue;if(e.__disposed)break;let u=Xh(),d=e.__mount;if(l+1<o&&(u||(d?d.pending:0)>f)){s&&s.onSuspend&&s.onSuspend(),a||Ai(t);let p=l+1;Sc(()=>BT(t,e,p,o,r,i,s),i,wc(t));return}}}catch(l){if(!a)throw l;di(t,l)}a&&jt(t)}function BT(t,e,n,o,r,i,s){if(e.__disposed||s&&s.isStale&&s.isStale()){jt(t);return}ig(t,e,n,o,r,i,s,!0)}function MT(t,e,n){Ai(t),Sc(()=>{try{let o=t.__ref;o&&!o.__disposed&&n()}catch(o){di(t,o)}finally{jt(t)}},e,wc(t))}function NT(t,e,n,o){let r=t.__ref,i=Dn(r),s=++i.chunkGen,a=t.node,l=[],c=!1;rg(t,e,f=>{let u=n(f,c?Go(t,FT(a,l)):void 0),d=sg(u);return d?l.push(d):u&&u.__ref.__mount&&u.__ref.__mount.held&&l.push(u),u},o,{isStale:()=>i.chunkGen!==s,onSuspend:()=>{c=!0}})}function sg(t){let e=he(t);if(e)return e;let n=t&&t.__ref;return n&&n.__if!==!1&&t.tag==="fragment"&&n.__fragmentAnchor||null}function FT(t,e){for(let n=e.length-1;n>=0;n--){let o=e[n].__ref?sg(e[n]):e[n];if(o&&o.parentNode===t)return o}return null}function jT(t,e){let n=t.__ref;try{Fn(t,!0),Qp(t),Wa(t,e)}finally{Ci(t,n);let o=n.__mount,r=o&&o.holder;r&&(o.holder=null,jt(r))}}function WT(t,e,n){let o=og(t,null);if(!o)return!1;let r={mountYield:o};e(t,r);let i=t.__ref.__mount;return!i||!(i.pending>0)?(r.mountYield=void 0,n(t),!0):(i.held=!0,i.tail=()=>{let s=t.__ref;i.held=!1,r.mountYield=void 0;try{n(t,s.__if===!1)}finally{Ci(t,s)}},!0)}var ag={open:WT,budgetOf:og,run:rg,rows:NT,defer:MT,hold:Ai,finish:jT,abandon:ng};var vi="--smbls-cvw",$T=/(^|[^\w.-])(-?(?:\d+\.?\d*|\.\d+))[sld]?vw\b/g,lg=/\d[sld]?vw\b/,fg=t=>t.replace($T,"$1calc($2 * var("+vi+"))"),ug=t=>{if(typeof t=="string")return lg.test(t)?fg(t):t;if(!t||typeof t!="object"||Array.isArray(t))return t;let e=null;for(let n in t){let o=t[n],r=n===vi?o:ug(o);r!==o&&((e||(e=Object.assign({},t)))[n]=r)}return e||t},UT=t=>{let e=X().cssVars||{},n={[vi]:t},o=[];for(let r in e){let i=e[r];typeof i=="string"&&lg.test(i)&&(n[r]=fg(i),o.push(r))}for(let r=0;r<o.length;r++){let i="var("+o[r];for(let s in e){let a=e[s];!(s in n)&&typeof a=="string"&&(a.includes(i+")")||a.includes(i+","))&&(n[s]=a,o.push(s))}}return n},cg=new WeakSet,dg={on:!1,lengths:ug,scope(t,e){let n=t.breakpointsFrom,o="1cqi";if(wo(n,t)){this.on=!0;let r=t.node&&t.node.ownerDocument&&t.node.ownerDocument.defaultView||globalThis;if(!cg.has(r)){cg.add(r);try{r.CSS.registerProperty({name:vi,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;o="1vw"}return e["& > *"]=Object.assign(UT(o),e["& > *"]),!0}};var Bi=3e3,fn="data-smbls-face-wait",er="data-smbls-face-gate",zT="firstView",HT=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","math","emoji","fangsong","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","inherit","initial","unset","revert"]),pg=new WeakMap,Zn=new Set,Ri=!1,Di=0,Lc=t=>String(t||"").trim().replace(/^(["'])(.*)\1$/,"$2").toLowerCase(),Pc=t=>t&&t.defaultView||null;function Mi(t){if(!t)return null;let e=pg.get(t);if(e!==void 0)return e;let n=Pc(t),o=t.fonts;return e=n&&o&&typeof o.forEach=="function"&&typeof n.getComputedStyle=="function"?{doc:t,win:n,fonts:o,waits:new Map,watches:new Map,links:null,observer:null,attributes:null,fontKeys:null,written:null,sheet:null,inline:null,inlineKey:"",table:null,tableSize:0}:null,pg.set(t,e),e}var Xn=t=>{let e=t&&t.node;return e&&e.ownerDocument||t?.context?.document||(typeof document<"u"?document:null)},VT=t=>{let e=[];for(let n of String(t||"U+0-10FFFF").split(",")){let o=/U\+([0-9A-F?]+)(?:-([0-9A-F]+))?/i.exec(n);if(!o)continue;let r=parseInt(o[1].replace(/\?/g,"0"),16),i=parseInt(o[2]||o[1].replace(/\?/g,"F"),16);e.push([r,i])}return e.length?e:[[0,1114111]]},wg=t=>t==="bold"?700:t==="normal"||t==="bolder"||t==="lighter"?400:Number(t)||400,xg=t=>{let e=String(t||"400").trim().split(/\s+/).map(wg);return[e[0],e[1]===void 0?e[0]:e[1]]},Bc=t=>{let e=String(t||"normal").trim().toLowerCase();return e.startsWith("italic")?"italic":e.startsWith("oblique")?"oblique":"normal"},tr=(t,e)=>{let n=new RegExp(`(?:^|[;{\\s])${e}\\s*:\\s*([^;}]+)`,"i").exec(t);return n?n[1].trim():""},kg=(t,e,n,o)=>Lc(t)+"|"+xg(e).join("-")+"|"+Bc(n)+"|"+String(o||"U+0-10FFFF").replace(/\s+/g,"").toUpperCase(),hg=new WeakMap;function GT(t){let e=hg.get(t);if(e===void 0){let n=t.cssText||"";e=(t.type===5||/^\s*@font-face/i.test(n))&&/url\(\s*['"]?data:/i.test(tr(n,"src"))?kg(tr(n,"font-family"),tr(n,"font-weight"),tr(n,"font-style"),tr(n,"unicode-range")):"",hg.set(t,e)}return e}function KT(t){let e=t.doc.styleSheets,n=(e?e.length:0)+":"+(t.fonts.size||0);if(t.inline&&t.inlineKey===n)return t.inline;let o=new Set;for(let r=0;e&&r<e.length;r++){let i;try{i=e[r].cssRules}catch{continue}for(let s=0;i&&s<i.length;s++){let a=i[s];if(typeof a.type=="number"&&a.type!==5)continue;let l=GT(a);l&&o.add(l)}}return t.inline=o,t.inlineKey=n,o}function Ac(t){let e=t.fonts.size||0;if(t.table&&t.tableSize===e)return t.table;let n=new Map,o=0;t.fonts.forEach(i=>{let s=Lc(i.family),a={face:i,order:o++,ranges:VT(i.unicodeRange),weight:xg(i.weight),style:Bc(i.style),key:kg(i.family,i.weight,i.style,i.unicodeRange)},l=n.get(s);l?l.push(a):n.set(s,[a])}),t.table=n,t.tableSize=e;let r=()=>{t.table===n&&(t.table=null)};return typeof queueMicrotask=="function"?queueMicrotask(r):Promise.resolve().then(r),n}var qT={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]};function gg(t,[e,n]){if(t>=e&&t<=n)return 0;let o=n<t,r=o?t-n:e-t;return t>=400&&t<=500?!o&&e<=500?1e3+r:o?2e3+r:3e3+r:t<400?o?1e3+r:2e3+r:o?2e3+r:1e3+r}function YT(t,e,n){let o=e.weight+"|"+e.style,r=n.get(o);if(r)return r;let i=t;for(let l of qT[e.style]){let c=t.filter(f=>f.style===l);if(c.length){i=c;break}}let s=1/0;for(let l of i)s=Math.min(s,gg(e.weight,l.weight));let a=i.filter(l=>gg(e.weight,l.weight)===s);return n.set(o,a),a}var ZT=(t,e)=>t.ranges.some(([n,o])=>e>=n&&e<=o);function XT(t,e,n,o,r,i,s){for(let a of n){if(HT.has(a))return null;let l=e.get(a);if(!l){i.missing=!0;continue}let c=s.get(a);c||s.set(a,c=new Map);let f=YT(l,o,c).filter(p=>ZT(p,r));if(!f.length)continue;if(f.length===1)return f[0].face;let u=KT(t);return(f.find(p=>u.has(p.key))||f[f.length-1]).face}return null}function QT(t,e){let n=[];if(!t||!t.childNodes)return n;if(!e){for(let i of t.childNodes)i.nodeType===3&&i.nodeValue&&n.push(i);return n}let o=t.ownerDocument;if(o&&typeof o.createTreeWalker=="function"){let i=o.createTreeWalker(t,4);for(let s=i.nextNode();s;s=i.nextNode())s.nodeValue&&n.push(s);return n}let r=i=>{for(let s of i.childNodes)s.nodeType===3?s.nodeValue&&n.push(s):r(s)};return r(t),n}var Tg=t=>t.fontFamily+"|"+t.fontWeight+"|"+t.fontStyle;function Ag(t,e){let n=t.win.getComputedStyle(e);return{key:Tg(n),stack:String(n.fontFamily||"").split(",").map(Lc).filter(Boolean),want:{weight:wg(String(n.fontWeight||"400")),style:Bc(n.fontStyle)}}}function Oi(t,e,n,o=Ac(t),r=null){let i={missing:!1},s=new Set,a=new Map;r&&a.set(e,r);let l=new Map;for(let c of QT(e,n)){let f=c.parentNode;if(!f||f.nodeType!==1)continue;let u=a.get(f);if(u||(u=Ag(t,f),a.set(f,u)),!u.stack.length)continue;let d=new Set;for(let p of c.nodeValue){let g=p.codePointAt(0);if(g<32||d.has(g))continue;d.add(g);let h=XT(t,o,u.stack,u.want,g,i,l);h&&s.add(h)}}return{faces:[...s],missing:i.missing}}var Cg=(t,e)=>e.status==="loaded"||!!(t.waits.get(e)||{}).done;function Cc(t,e){let n=t.waits.get(e);return n||(n={done:!1,promise:null},t.waits.set(e,n),n.promise=new Promise(o=>{let r=()=>{n.done=!0,o()};t.win.setTimeout(r,Bi);try{Promise.resolve(e.load()).then(r,r)}catch{r()}})),n.promise}function Ii(t){if(t.links&&t.links.done)return null;let e=t.doc.querySelectorAll?t.doc.querySelectorAll('link[rel="stylesheet"][data-smbls-font]'):[],n=[];for(let o of e)!o.sheet&&!o.hasAttribute("data-smbls-font-done")&&n.push(o);if(!n.length)return null;if(!t.links){let o=t.links={done:!1,promise:null};o.promise=new Promise(r=>{let i=()=>{o.done=!0,r()};t.win.setTimeout(i,Bi);let s=n.length,a=()=>{--s<=0&&i()};for(let l of n)l.addEventListener("load",a,{once:!0}),l.addEventListener("error",a,{once:!0})})}return t.links.promise}function vg(t){if(t.sheet)return;let e=t.doc,n=e.createElement("style");n.setAttribute(fn,""),(e.head||e.documentElement).appendChild(n);let o=n.sheet,r=[`[${fn}="wait"]{visibility:hidden}`,`@media print{[${fn}="wait"]{visibility:visible}}`];if(o&&typeof o.insertRule=="function")for(let i of r)try{o.insertRule(i,o.cssRules.length)}catch{}else n.textContent=r.join("");t.sheet=n}var un=null;function vc(t,e){if(un)return void un.push(()=>vc(t,e));let n=e.node;!n||!n.setAttribute||(vg(t),n.getAttribute(fn)!=="wait"&&n.setAttribute(fn,"wait"))}function or(t){if(un)return void un.push(()=>or(t));let e=t.node;e&&e.removeAttribute&&e.hasAttribute&&e.hasAttribute(fn)&&e.removeAttribute(fn)}var Eg=(t,e)=>{try{return t.win.getComputedStyle(e).display==="contents"}catch{return!1}};function Og(t,e){if(typeof e.checkVisibility=="function"){if(e.checkVisibility())return!0}else if(typeof e.getClientRects!="function"||e.getClientRects().length>0)return!0;if(!Eg(t,e))return!1;let n=t.doc;if(typeof n.createRange!="function")return!0;let o=n.createRange();return o.selectNodeContents(e),typeof o.getClientRects!="function"||o.getClientRects().length>0}function JT(t,e){let n=t.win.ResizeObserver;return typeof n!="function"?!1:(t.observer||(t.observer=new n(o=>{let r=[];for(let i of o){let s=i.target&&i.target.__smblsFaceWait;if(!s){t.observer.unobserve(i.target);continue}Og(t,i.target)&&(t.observer.unobserve(i.target),i.target.__smblsFaceWait=null,r.push(s))}r.length&&Lg(r)})),e.node.__smblsFaceWait=e,t.observer.observe(e.node),!0)}var tA=["class","style","lang"],dn=new Set,Ec=new Set,eA=(t,e)=>{try{return Tg(t.win.getComputedStyle(e))}catch{return""}};function nA(t,e){if(dn.size){for(let n of e){let o=n.target;o&&o.nodeType===1&&t.written.add(o)}t.written.size&&(Pi.add(t),Pg(t.win))}}var _g=t=>!!(t.__ref&&t.__ref.__faceWaitSeen)&&!Zn.has(t);function oA(t){let e=t.written;if(t.written=new Set,!dn.size||!e.size||!t.fontKeys)return;let n=new Map,o=(i,s)=>{if(!_g(s))return;let a=n.get(i);a?a.push(s):n.set(i,[s])};for(let i of e)for(let s=i;s&&s.nodeType===1;s=s.parentNode){let a=s.__smblsFaceArm;a&&(s===i||a.__ref?.__faceWait==="tree")&&o(i,a)}for(let i of dn)if(!(!i.node||!_g(i)))for(let s=i.node.parentNode;s&&s.nodeType===1;s=s.parentNode)e.has(s)&&o(s,i);if(!n.size)return;let r=new Set;for(let[i,s]of n){let a=eA(t,i);if(t.fontKeys.get(i)!==a){t.fontKeys.set(i,a);for(let l of s)r.add(l)}}for(let i of r)Be(i)}function rA(t){if(t.attributes)return;let e=t.win.MutationObserver,n=t.doc.documentElement;typeof e!="function"||!n||(t.fontKeys=new WeakMap,t.written=new Set,t.attributes=new e(o=>{try{nA(t,o)}catch{}}),t.attributes.observe(n,{attributes:!0,subtree:!0,attributeFilter:tA}),Ec.add(t))}function iA(){for(let t of Ec)t.attributes.disconnect(),Pi.delete(t),t.written=null,t.attributes=null,t.fontKeys=null;Ec.clear()}var Rg=new Set,Dg=t=>t.performance&&typeof t.performance.now=="function"?t.performance.now():Date.now();function sA(t){if(ke(t)){let e=Pc(Xn(t)),n=e&&e.performance,o=!1;try{o=!!n&&typeof n.getEntriesByType=="function"&&n.getEntriesByType("paint").length>0}catch{}if(o){let r=Mi(Xn(t));r&&r.gate===void 0&&(r.gate=null);return}}zt(t,()=>cA(t))}function aA(t,e){let n=e.context;if(!n||n.prerendered||e.__ref&&e.__ref.__adoption)return!1;let o=t.doc.documentElement;if(!o||o.hasAttribute("data-smbls-paint-wait"))return!1;let r=e.node;return!r||r.nodeType!==1||typeof r.setAttribute!="function"?!1:typeof t.win.requestAnimationFrame=="function"&&typeof t.win.ResizeObserver=="function"}function cA(t){let e=Mi(Xn(t));if(!e||e.gate!==void 0)return;if(!aA(e,t)){e.gate=null;return}let n=e.gate={open:!0,top:t,node:t.node,timer:0,observer:null,at:Dg(e.win),waiting:!1};Rg.add(e),vg(e);let o=e.sheet.sheet,r=[`[${er}]>*{opacity:0!important}`,`@media print{[${er}]>*{opacity:1!important}}`];if(o&&typeof o.insertRule=="function")for(let i of r)try{o.insertRule(i,o.cssRules.length)}catch{}else e.sheet.textContent+=r.join("");n.node.setAttribute(er,""),n.timer=e.win.setTimeout(()=>Nc(e),Bi),n.observer=new e.win.ResizeObserver(()=>lA(e)),Mc(e)}function Mc(t){let e=t.gate,n=e.top&&e.top.node;if(!n||n!==e.node||!n.isConnected)return Nc(t);let o=t.doc.documentElement;e.observer.unobserve(o),e.observer.observe(o)}function yg(t){let e=t.gate;t.win.requestAnimationFrame(()=>{e.open&&Mc(t)})}function lA(t){let e=t.gate;if(!e||!e.open||e.waiting)return;if(!Jo()||fA(t))return yg(t);let n=t.fonts,o=n.status==="loading"&&n.ready&&typeof n.ready.then=="function"?n.ready:null;if(!o&&!globalThis.__SMBLS_BUILD_DROP_F_faceWaitLinks__&&(o=Ii(t)),o){e.waiting=!0;let r=()=>{e.waiting=!1,e.open&&Mc(t)};o.then(r,r);return}Nc(t)}function fA(t){let e=t.gate,n=e.top.node;if(!n||Dg(t.win)-e.at>Mg)return!1;try{let o=t.win.getComputedStyle(n);if(o.visibility==="hidden"||o.display!=="contents"&&typeof n.checkVisibility=="function"&&!n.checkVisibility())return!0;for(let r=n;r&&r.nodeType===1;r=r.parentNode)if(Number((r===n?o:t.win.getComputedStyle(r)).opacity)===0)return!0}catch{}return!1}function Nc(t){let e=t.gate;if(!e||!e.open)return;e.open=!1,Rg.delete(t),t.win.clearTimeout(e.timer),e.observer&&e.observer.disconnect();let n=e.node;n&&n.hasAttribute&&n.hasAttribute(er)&&n.removeAttribute(er),e.top=null,e.node=null,e.observer=null}function uA(t){let e=t.faceWait;if(typeof e=="function")try{e=e(t,t.state,t.context)}catch{e=void 0}if(e===!0)return"tree";if(e===!1||t.tag==="string"||t.context?.designSystem?.faceWait!==!0)return null;let n=t.__ref&&t.__ref.__textNode;return n&&n.nodeValue?"own":"late"}var Ig=0;function Ei(t,e){!t.__faceWaitLate!=!e&&(t.__faceWaitLate=e||null,Ig+=e?1:-1)}function mg(t){let e=t.__ref;if(!e||!e.__faceWait)return;if(!ke(t)){e.__faceWaitConnect||(e.__faceWaitConnect=!0,zt(t,()=>{e.__faceWaitConnect=!1,Be(t)}));return}let n=Mi(Xn(t));if(!n)return;let o=t.node;rA(n);let r=null;try{r=Ag(n,o)}catch{}n.fontKeys&&n.fontKeys.set(o,r?r.key:"");let{faces:i,missing:s}=Oi(n,o,e.__faceWait==="tree",dA(n),r),a=i.filter(f=>!Cg(n,f)),l=!globalThis.__SMBLS_BUILD_DROP_F_faceWaitLinks__&&s?Ii(n):null;if(!a.length&&!l)return or(t);if(!Og(n,o)&&JT(n,t)){Eg(n,o)||vc(n,t);return}vc(n,t);let c=e.__faceWaitToken=(e.__faceWaitToken||0)+1;Promise.all([...a.map(f=>Cc(n,f)),l]).then(()=>{e.__faceWaitToken===c&&e.__faceWait&&Be(t)})}var nr=null;function dA(t){if(!nr)return Ac(t);let e=nr.get(t);return e||nr.set(t,e=Ac(t)),e}function Lg(t){if(un){for(let n of t)try{mg(n)}catch{or(n)}return}nr=new Map;let e=un=[];try{for(let n of t)try{mg(n)}catch{or(n)}}finally{nr=null,un=null;for(let n of e)try{n()}catch{}}}function Oc(){Ri=!1;let t=[...Zn];Zn.clear(),t.length&&Lg(t)}var Li=new Map,Rc=!1,Dc=new Set,pA=(t,e)=>typeof t.requestAnimationFrame=="function"?t.requestAnimationFrame(e):-t.setTimeout(e,16);var Pi=new Set;function hA(t,e){let n=t.MessageChannel||(typeof MessageChannel=="function"?MessageChannel:null);if(n){let o=new n;o.port1.onmessage=()=>{o.port1.close(),e()},o.port2.postMessage(0);return}t.setTimeout(e,0)}function Pg(t){!t||Li.has(t)||Li.set(t,pA(t,()=>gA(t)))}function gA(t){Li.delete(t),Rc=!0;try{for(let e of[...Pi]){Pi.delete(e);try{e.written&&oA(e)}catch{}}Oc()}finally{Rc=!1}typeof t.requestAnimationFrame=="function"&&(Dc.add(t),hA(t,()=>{Dc.delete(t)})),Zn.size&&Bg()}var _A=t=>!!t&&typeof t.requestAnimationFrame=="function"&&!(t.document&&t.document.visibilityState==="hidden");function Bg(){Ri||(Ri=!0,typeof queueMicrotask=="function"?queueMicrotask(Oc):Promise.resolve().then(Oc))}function Be(t){if(Zn.add(t),Rc||Ri)return;let e=Pc(Xn(t));if(!Li.has(e)){if(!Dc.has(e)&&_A(e))return Pg(e);Bg()}}var Mg=1e4,bg=200,yA=t=>!!t.loaded&&typeof t.loaded.then=="function",Sg=(t,e)=>{let n=t.watches.get(e);return n||(n=new Promise(o=>{let r=Math.ceil(Mg/bg),i=()=>{if(e.status==="loaded")return o(e);if(r--<=0)return o(null);t.win.setTimeout(i,bg)};i()}),t.watches.set(e,n),n)},Yn=(t,e=[],n=null)=>{let o=e.filter(r=>r.status!=="loaded"&&(r.status==="error"?!!n:yA(r)));return Object.defineProperty(t,"late",{value:o.length?Promise.all(o.map(r=>r.status==="error"?Sg(n,r):r.loaded.then(()=>r,()=>n?Sg(n,r):null))).then(r=>r.filter(Boolean)):null}),t};function mA(t){return new Promise(e=>{try{let n=Xn(t),o=Mi(n);if(!o||!t.node)return e(Yn([]));let r=()=>{let{faces:a}=Oi(o,t.node,!0);return Yn(a.filter(l=>l.status==="loaded"),a,o)},i=()=>{let{faces:a,missing:l}=Oi(o,t.node,!0);if(!a.length&&!l)return e(Yn([]));let c=a.filter(d=>d.status!=="loaded");if(!c.length&&!(!globalThis.__SMBLS_BUILD_DROP_F_faceWaitLinks__&&l&&Ii(o)))return e(Yn(a));if(t.__ref&&t.__ref.__adoption==="adopted"&&"__smblsFacesReady"in o.win){Promise.resolve(o.win.__smblsFacesReady).then(()=>e(r()),()=>e(r()));return}let u=!globalThis.__SMBLS_BUILD_DROP_F_faceWaitLinks__&&l?Ii(o):null;Promise.all([...c.map(d=>Cc(o,d)),u]).then(()=>{if(!u)return e(r());let d=Oi(o,t.node,!0).faces.filter(p=>!Cg(o,p));Promise.all(d.map(p=>Cc(o,p))).then(()=>e(r()))},()=>e(r()))};if(ke(t))return i();let s=!1;o.win.setTimeout(()=>{s||(s=!0,e(Yn([])))},Bi),zt(t,()=>{s||(s=!0,i())})}catch{e(Yn([]))}})}var Ng={get active(){return Di>0||Ic>0||Ig>0},rendered(t){let e=t.__ref;if(!e)return;(!t.parent||!t.parent.__ref)&&t.context?.designSystem?.faceWait===zT&&(t.context.key===void 0||t.key===t.context.key)&&(globalThis.__SMBLS_BUILD_DROP_F_faceWaitFirstView__?Z("faceWaitFirstView",t):sA(t));let n=uA(t);if(n==="late"?(Ei(e,!0),n=null):e.__faceWaitLate&&Ei(e,!1),!(!n&&!e.__faceWait)){if(n!==e.__faceWait&&Tc(t,n),!n)return or(t);if(e.__adoption==="adopted"&&!e.__faceWaitSeen){e.__faceWaitSeen=!0;return}e.__faceWaitSeen=!0,Be(t)}},text(t){let e=t.__ref;if(e&&e.__faceWaitLate){let n=e.__textNode;n&&n.nodeValue&&(Ei(e,!1),Tc(t,"own"),e.__faceWaitSeen=!0,Be(t))}else e&&e.__faceWait&&e.__faceWaitSeen&&Be(t);if(Di)for(let n=t.parent;n;n=n.parent){let o=n.__ref;o&&o.__faceWait==="tree"&&o.__faceWaitSeen&&Be(n)}},ready:mA,recheck(t){let e=t&&t.node;for(let n of dn)(n===t||e&&n.node&&e.contains(n.node))&&(n.__ref&&(n.__ref.__faceWaitSeen=!0),Be(n))},dispose(t){let e=t.__ref;e&&e.__faceWait&&Tc(t,null),e&&e.__faceWaitLate&&Ei(e,!1),Zn.delete(t)}},Ic=0;function Tc(t,e){let n=t.__ref,o=n.__faceWait;o==="tree"?Di--:o==="own"&&Ic--,e==="tree"?Di++:e==="own"&&Ic++,n.__faceWait=e||null;let r=t.node;e?(dn.add(t),r&&(r.__smblsFaceArm=t)):(dn.delete(t),n.__faceWaitToken=(n.__faceWaitToken||0)+1,r&&r.__smblsFaceWait&&(r.__smblsFaceWait=null),r&&r.__smblsFaceArm===t&&(r.__smblsFaceArm=null),dn.size||iA())}function Fg(){D.viewEvents=Nh,D.chains=Lh,D.rows=Vh,D.hydration=globalThis.__SMBLS_BUILD_DROP_F_prerender__?null:Zh,D.mount=ag,D.containerVw=globalThis.__SMBLS_BUILD_DROP_F_containerVw__?null:dg,D.faceWait=globalThis.__SMBLS_BUILD_DROP_F_faceWait__?null:Ng}Fg();var pn="inertOutside",SA=new Set(["SCRIPT","STYLE","LINK","META","TEMPLATE","NOSCRIPT","BASE","TITLE"]),wA='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',xA={attributes:!0,attributeFilter:["inert"]},kA=16,jg=new WeakMap,Wg=new WeakMap,rr=new Set,$g=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function Me(t){try{return mt(t)}catch(e){console.error("[smbls] inertOutside:",e)}}function Ug(t){let e=()=>Me(t);typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)}function TA(t){if(!t||!t.defaultView||!("activeElement"in t))return null;let e=jg.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,rounds:0,lost:!1,cooling:!1,yielded:new WeakSet,gaveWay:!1},e.observer=new n(o=>Me(()=>Ni(e,o))),jg.set(t,e),e)}function Gg(t){t.cooling||(t.cooling=!0,setTimeout(()=>{t.cooling=!1,t.rounds=0,t.lost=!1},0))}function AA(t){return Gg(t),++t.rounds>kA}function Fc(t,e){let n=t.element.node;return!!n&&n.nodeType===1&&n.isConnected&&n.ownerDocument===e}function CA(t){let e=t.activeElement;return e&&e!==t.body&&e!==t.documentElement?e:null}var zg=t=>!!(t.closest&&t.closest("[inert]"));function vA(t){let e=t.ownerDocument,n=new Set,o=[];for(let r=t;r!==e.body;r=r.parentNode){let i=r.parentNode;if(!i||i.nodeType!==1||i===e.documentElement)break;o.push(i);for(let s=i.firstElementChild;s;s=s.nextElementSibling)s!==r&&!SA.has(s.tagName)&&n.add(s)}return{outside:n,parents:o}}function Hg(t,e){for(let n=0;n<e.length;n++){let{type:o,target:r}=e[n];o==="attributes"&&t.held.has(r)&&t.held.set(r,!r.hasAttribute("inert"))}}function Ni(t,e){let{doc:n,held:o,observer:r}=t;e&&Hg(t,e),Hg(t,r.takeRecords());let i=t.top,s=[];for(let d of t.layers){let p=Fc(d,n);p&&!d.live&&(s.push(d),d.returnFocus=CA(n)),d.live=p}s.length&&(t.layers=t.layers.filter(d=>!s.includes(d)).concat(s));let a=null;for(let d=t.layers.length-1;d>=0&&!a;d--)t.layers[d].live&&(a=t.layers[d]);t.top=a,!a&&t.gaveWay&&(t.yielded=new WeakSet,t.gaveWay=!1);let{outside:l,parents:c}=a?vA(a.element.node):{outside:new Set,parents:[]};for(let[d,p]of o)l.has(d)||(p&&(d.removeAttribute("inert"),d.isConnected||(t.lost=!0,Gg(t))),o.delete(d));let f;for(let d of l)if(!t.yielded.has(d)){if(d.hasAttribute("inert")){o.has(d)||o.set(d,!1);continue}if(f===void 0&&(f=!!e&&AA(t)),f&&(o.has(d)?o.get(d):t.lost)){o.delete(d),t.yielded.add(d);continue}d.setAttribute("inert",""),o.set(d,!0)}f&&(t.gaveWay=!0,t.rounds=0),r.takeRecords(),r.disconnect();for(let d of c)r.observe(d,{childList:!0});for(let d of o.keys())r.observe(d,xA);t.layers.some(d=>!d.live)?rr.add(t):rr.delete(t);for(let d of t.layers)!d.live&&!d.connecting&&!ke(d.element)&&(d.connecting=!0,zt(d.element,()=>Me(()=>{d.connecting=!1,d.declared&&!d.live&&Fc(d,t.doc)&&Ni(t)})));if(a===i)return;let u=i&&!(i.declared&&i.live)?i:null;if(a&&s.includes(a))u&&u.returnFocus&&(a.returnFocus=u.returnFocus),Ug(()=>Kg(t,a));else if(u){let d=u.returnFocus;Ug(()=>EA(t,u,d))}u&&(u.returnFocus=null)}function Kg(t,e){let n=e.element.node;if(t.top!==e||!n||!n.isConnected)return;let o=t.doc,r=o.activeElement;if(r&&n.contains(r))return;let i=new Set,s=(a,l)=>{if(i.has(a)||(i.add(a),a.matches(":disabled")))return!1;let c=l&&a.getAttribute("tabindex");return c&&parseInt(c,10)<0?!1:(a.focus(),o.activeElement===a)};for(let a of n.querySelectorAll("[autofocus]"))if(s(a,!1))return;for(let a of n.querySelectorAll(wA))if(s(a,!0))return;r&&r!==o.body&&typeof r.blur=="function"&&r.blur()}function EA(t,e,n){if(e.declared&&e.live)return;let o=t.doc,r=o.activeElement,i=e.element.node;(!r||r===o.body||i&&i.contains(r)||zg(r))&&(n&&n.isConnected&&n.ownerDocument===o&&!zg(n)&&(n.focus({preventScroll:!0}),o.activeElement===n)||t.top&&Kg(t,t.top))}function jc(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 o=n.layers.indexOf(t);o!==-1&&n.layers.splice(o,1)}Ni(n)}function qg(t){let e=t[pn];if(typeof e=="function")try{e=e(t,t.state,t.context)}catch{e=!1}return!!e}function Vg(t){let e=Wg.get(t);if(e)return e;let n=t.__ref,o=t.node;if(!n||!o||o.nodeType!==1)return null;let r=TA(o.ownerDocument);if(!r)return null;e={element:t,manager:r,declared:!1,live:!1,connecting:!1,returnFocus:null},Wg.set(t,e);let i=P(()=>{let s=qg(t);Me(()=>jc(e,s))},{depth:n.path.length,label:()=>n.path.join(".")+"::"+pn});return n.__effects||(n.__effects=[]),n.__effects.push(i),n.__eventCleanup||(n.__eventCleanup=[]),n.__eventCleanup.push(()=>Me(()=>jc(e,!1))),e}function OA(){for(let t of rr){if(!t.doc.defaultView){rr.delete(t);continue}t.layers.some(e=>!e.live&&Fc(e,t.doc))&&Ni(t)}}var RA={name:pn,create(t){if($g(t,pn)){if(globalThis.__SMBLS_BUILD_DROP_F_inertOutside__)return Z(pn,t);Me(()=>Vg(t))}},render(){globalThis.__SMBLS_BUILD_DROP_F_inertOutside__||rr.size&&Me(OA)},update(t){if($g(t,pn)){if(globalThis.__SMBLS_BUILD_DROP_F_inertOutside__)return Z(pn,t);Me(()=>{let e=Vg(t);e&&jc(e,qg(t))})}}};var vC=/*@__PURE__*/__smblsNs({},{default:()=>CC,getActiveRoute:()=>V_,lastLevel:()=>cl,lastPathname:()=>fr,loadLazy:()=>C_,matchRoute:()=>j_,parseQuery:()=>$_,parseRoutePattern:()=>sl,resolveRouterElement:()=>H_,router:()=>Fe,runGuards:()=>lC,saveScrollPosition:()=>f_});var Wc="__smblsRouter",$c=new WeakMap,IA=0,Uc=()=>Date.now().toString(36)+(++IA).toString(36)+Math.random().toString(36).slice(2,6),zc=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},_e=t=>{try{return t.state}catch{return}},sr=t=>{try{let{pathname:e,search:n,hash:o}=t.location;return e+n+o}catch{return null}},Qg=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null},Jg=t=>{let e=Qg(t)?t[Wc]:null;return e&&typeof e.key=="string"&&typeof e.chain=="string"&&Number.isInteger(e.index)?e:null},Hc=(t,e)=>t==null?{[Wc]:e}:Qg(t)?{...t,[Wc]:e}:null,Vc=()=>({key:Uc(),index:0,chain:Uc()}),Qn=(t,e)=>{let n=Jg(e);return{key:n?n.key:null,index:n?n.index:null,chain:n?n.chain:null,url:sr(t),state:e}},t_=(t,e)=>{let n=Jg(t);return e.key?!!n&&n.key===e.key:!n&&t===e.state},ir=(t,e,n)=>!!n&&sr(t)===n.url&&t_(e,n),Gc=(t,e,n)=>({...t,url:e,state:n}),Kc=(t,e)=>{let n=_e(e),o=Qn(t,n);if(o.key)return o;let r=Vc(),i=Hc(n,r);if(!i)return o;try{e.replaceState(i,null)}catch{return o}return Gc(r,o.url,i)},LA=(t,e)=>{let n=$c.get(t);return!n&&e&&(n={current:null,pending:null,expect:null,seq:0,pops:new WeakMap,positions:null,scrollNode:null,restore:null},$c.set(t,n)),n||null},e_="smbls.router.scroll",Yg=100,PA=1e3,Zg=["wheel","touchstart","keydown","pointerdown"],n_=t=>{try{return t.sessionStorage||null}catch{return null}},o_=t=>{try{let e=JSON.parse(t.getItem(e_)||"[]");return Array.isArray(e)?e.filter(n=>Array.isArray(n)&&typeof n[0]=="string"):[]}catch{return[]}},r_=(t,e)=>{if(!t.positions){t.positions=new Map;let n=n_(e);if(n)for(let[o,r]of o_(n))r&&Number.isFinite(r.top)&&Number.isFinite(r.left)&&t.positions.set(o,{top:r.top,left:r.left})}return t.positions},qc=(t,e,n,o)=>{let r=r_(t,e);r.delete(n),r.set(n,{top:Math.round(Number(o.scrollTop)||0),left:Math.round(Number(o.scrollLeft)||0)}),r.size>Yg&&r.delete(r.keys().next().value);let i=n_(e);if(i)try{let s=new Map(o_(i));for(let[a,l]of r)s.delete(a),s.set(a,l);i.setItem(e_,JSON.stringify(Array.from(s).slice(-Yg)))}catch{}},Xg=(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)},BA=(t,e,n,o,r,i,s)=>{n.restore&&n.restore.end("replaced"),n.restore=o;let a=typeof s=="number"&&s>=0?s:PA,l=()=>Math.max(0,(Number(r.scrollHeight)||0)-(Number(r.clientHeight)||0)),c=(h,_)=>{typeof r.scrollTo=="function"?r.scrollTo({top:h,left:_,behavior:"instant"}):(r.scrollTop=h,r.scrollLeft=_)},f=typeof t.addEventListener=="function",u=()=>o.end("visitor");if(o.end=h=>{if(!o.outcome&&(o.outcome=h,f))for(let _ of Zg)t.removeEventListener(_,u,!0)},l()>=i.top-1)return c(i.top,i.left),o.end("placed");Number(r.scrollTop)>0&&c(0,0);let d=Number(r.scrollTop)||0,p=Date.now();if(f)for(let h of Zg)t.addEventListener(h,u,{capture:!0,passive:!0});let g=()=>{if(o.outcome)return;if(n.seq!==o.seq)return o.end("overtaken");if(Math.abs((Number(r.scrollTop)||0)-d)>1)return o.end("visitor");let h=l()>=i.top-1;if(!h&&Date.now()-p<a)return Xg(t,e,g);c(Math.min(i.top,l()),i.left),o.end(h?"placed":"clamped")};Xg(t,e,g)},MA=(t,e)=>{let{win:n,history:o,track:r}=t,i=r.pops.get(e);if(i)return i;let s=Qn(n,_e(o)),a=r.expect;r.expect=null;let l;if(a&&s.key===a.key&&s.url===a.url)l={echo:!0};else{let c=r.current,f=!!(s.key&&c&&c.key===s.key),u=f?null:c;u&&u.key&&t.scrollNode&&qc(r,n,u.key,t.scrollNode),l={to:s,from:u,stay:f,seq:r.seq,settled:!1,committed:!1},r.pending=l}return r.pops.set(e,l),l},NA=t=>{let{win:e,history:n,track:o}=t,r=_e(n);if(o.pending&&ir(e,r,o.pending.to)||o.expect&&ir(e,r,o.expect.away))return;let i=o.current;if(i&&(i.key?t_(r,i):ir(e,r,i))){i.url=sr(e),i.state=r;return}o.current=t.restore?Kc(e,n):Qn(e,r),o.pending=null,o.seq++},i_=(t,e,n)=>{let o=e.scrollRestoration==="restore",r=zc(t),i=o||Array.isArray(e.guards)&&e.guards.length>0,s=r&&LA(r,i);if(!s)return null;let a={win:t,history:r,track:s,restore:o,scrollNode:o&&n?n:null,pop:null};a.scrollNode&&(s.scrollNode=a.scrollNode);let l=e.event;return l&&l.type==="popstate"?a.pop=MA(a,l):NA(a),a},Fi=(t,e)=>{e.settled=!0,t.pending===e&&(t.pending=null)},Yc=t=>{let e=t&&t.pop;if(!e||e.echo)return!0;if(e.settled)return e.committed;let{win:n,history:o,track:r}=t;return Fi(r,e),r.seq!==e.seq||!ir(n,_e(o),e.to)?!1:(r.current=t.restore&&!e.to.key?Kc(n,o):e.to,r.seq++,e.committed=!0,!0)},s_=t=>{let e=t&&t.pop;e&&!e.echo&&!e.settled&&Fi(t.track,e)},FA=(t,e,n)=>{try{t.addEventListener("popstate",()=>{e.expect===n&&(e.expect=null)},{once:!0})}catch{}},Zc=(t,e)=>{let n=t&&t.pop;if(!n||n.echo||n.settled)return;let{win:o,history:r,track:i}=t;Fi(i,n);let s=n.from;if(!s||i.seq!==n.seq||!ir(o,_e(r),n.to))return;let a=n.to;if(!e&&s.key&&a.key&&s.chain===a.chain&&s.index!==a.index){let f=i.expect={key:s.key,url:s.url,away:a};FA(o,i,f);try{r.go(s.index-a.index)}catch{i.expect=null}return}let l=Vc(),c=Hc(s.state,l);try{r.replaceState(c||s.state,null,s.url)}catch{return}i.current=c?Gc(l,s.url,c):Qn(o,_e(r)),i.seq++},a_=(t,e)=>{let n=sr(e);t&&n!==null&&(t.__routerAddress=n)},Xc=(t,e,n)=>{let o=t&&t.pop;if(o&&!o.echo&&o.from)return Zc(t,!0);o&&!o.settled&&Fi(t.track,o);let r=zc(n),i=e&&e.__routerAddress;if(!(!r||!i||i===sr(n)))try{r.replaceState(_e(r),null,i)}catch{}},c_=(t,e,n,o,r=t&&t.win)=>{if(!t){try{o?r.history.replaceState(e,null,n):r.history.pushState(e,null,n)}catch{}return}let{history:i,track:s}=t,a=s.current;!o&&a&&a.key&&t.scrollNode&&qc(s,r,a.key,t.scrollNode);let l=o?Qn(r,_e(i)):Kc(r,i),c=l.key?o?{key:l.key,index:l.index,chain:l.chain}:{key:Uc(),index:l.index+1,chain:l.chain}:Vc(),f=Hc(e,c);try{o?i.replaceState(f||e,null,n):i.pushState(f||e,null,n)}catch{return}s.current=f?Gc(c,n,f):Qn(r,_e(i)),s.pending=null,s.expect=null,s.seq++},l_=(t,e,n,o)=>{if(!t||!t.restore||!e)return!1;let r=t.pop;if(r?r.stay||!r.committed:!n.initialRender)return!1;let{win:i,track:s}=t,a=s.current,l=a&&a.key&&r_(s,i).get(a.key);if(!l)return!1;let c=s.restore;return!!c&&c.key===a.key&&(r?c.pop===r:!c.pop&&c.seq===s.seq)&&c.outcome==="visitor"||BA(i,o,s,{key:a.key,pop:r,seq:s.seq,outcome:null},e,l,n.scrollRestoreTimeout),!0},f_=t=>{let e=zc(t),n=e&&$c.get(e);!n||!n.scrollNode||!n.current||!n.current.key||qc(n,t,n.current.key,n.scrollNode)};var h_=["components","functions","methods","snippets"],g_=new Set(["pages",...h_]),Qc=new Set(["default","__esModule"]),Ne=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),tt=t=>!!t&&typeof t=="object"&&!Array.isArray(t),ji=new WeakMap,u_=new WeakMap,Jc=new WeakMap,d_=new Set,ar=(t,e=console.warn)=>{d_.has(t)||(d_.add(t),e(t))},__=t=>tt(t&&t.lazy),y_=(t,e)=>{let n=t&&t.lazy;return tt(n)&&Ne(n,e)?n[e]:void 0},cr=(t,e)=>{let n=y_(t,e);return tt(n)&&Ne(n,"load")?n.load:n},jA=(t,e)=>{let n=y_(t,e);return tt(n)&&typeof n.when=="function"?n.when:null},WA=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},tl=(t,e)=>{let n=ji.get(t);n||(ji.set(t,n=new Map),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{for(let r of n.values())r.disposed=!0,r.waiting.clear();ji.delete(t)}));let o=n.get(e);return o||(o={status:"idle",attempts:0,promise:null,failure:null,disposed:!1,pages:null,waiting:new Set,maps:new Set},n.set(e,o)),o},m_=(t,e)=>!__(e)||!tt(t)||!Ne(t,"lazy")?null:typeof t.lazy=="string"&&t.lazy?t.lazy:null,$i=t=>!globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__&&!!t&&typeof t=="object"&&Jc.has(t),b_=(t,e)=>(t&&t.lazy&&typeof t.lazy=="object"&&Z("lazyRoutes",e),null),S_=t=>t&&(t.status==="error"||t.status==="reload"||t.status==="waiting")?t.status:"loading",$A=(t,e)=>typeof cr(t,e)!="function"?"error":S_(ji.get(t)?.get(e)),UA=(t,e)=>{let n=u_.get(t);if(n&&n.group===e)return n;let{lazy:o,state:r,...i}=t,s=r==null||tt(r)||typeof r=="function";s?i.state=(l,c)=>{let f=typeof r=="function"?r(l,c):r;return{...tt(f)?f:null,lazyStatus:$A(l.context,e)}}:i.state=r;let a={definition:i,group:e,hasStatus:s};return u_.set(t,a),Jc.set(i,a),a},zA=t=>t.__ref&&t.__ref.contentElementKey||"content",Jn=(t,e)=>{let n=t&&t.__ref&&t.__ref.__routerRendered,o=n&&$i(n.content)?Jc.get(n.content):null;return!o||o.group!==e?null:{record:o,page:t[zA(t)]}},Wi=(t,e,n)=>{let o=Jn(t,e);if(!o||!o.record.hasStatus)return;let r=o.page&&o.page.state;if(!(!r||typeof r.update!="function"||r.lazyStatus===n))try{r.update({lazyStatus:n})}catch(i){console.error(`[smbls/router] lazy group "${e}": could not show the "${n}" status on its placeholder`,i)}},HA=t=>tt(t)?!Object.keys(t).some(n=>g_.has(n))&&tt(t.default)?t.default:t:{},VA=t=>{let e={};if(!tt(t))return e;for(let n of Object.keys(t)){if(Qc.has(n))continue;let o=n.charCodeAt(0)===47,r=o?n:"/"+(n==="index"?"":n);(o||!Ne(e,r))&&(e[r]=t[n])}return e},w_=(t,e,n,o,r)=>{if(!tt(t))return 0;let i=0;for(let s of Object.keys(t))m_(t[s],o)===e&&(i++,Ne(n,s)?t[s]=n[s]:delete t[s]);for(let s of Object.keys(n))Ne(t,s)?t[s]!==n[s]&&r.push(`pages['${s}']`):t[s]=n[s];return i},p_=(t,e,n)=>{let o=t[e];if(!tt(o)){t[e]={...n};return}try{for(let r in n)o[r]=n[r];if(Object.keys(n).every(r=>o[r]===n[r]))return}catch{}t[e]={...o,...n}},GA=t=>{let e=t.__ref&&t.__ref.origin;if(!tt(e))return[];let n=[].concat(e.extends||[],e.extend||[]);if(n.length)return n.filter(i=>typeof i=="string").map(i=>(i.includes(">")?i.split(">")[0]:i).trim());let o=t.key;if(typeof o!="string"||!/^[A-Z]/.test(o))return[];let r=[o.indexOf("_"),o.indexOf(".")].filter(i=>i>0);return[r.length?o.slice(0,Math.min(...r)):o]},KA=(t,e,n,o)=>{let r=new Set;for(let s of o.waiting){let a=Jn(s,e);a&&a.page&&r.add(a.page)}let i=s=>{let a=s&&s.__ref&&s.__ref.__children;if(Array.isArray(a))for(let l of a){let c=s[l];if(!(!c||!c.__ref||r.has(c)||!c.node)){for(let f of GA(c)){if(!n.has(f))continue;let u=(c.__ref.path||[c.key]).join(" \u203A ");ar(`[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.`)}i(c)}}};i(t)},qA=(t,e,n,o)=>{let r=t.context,i=HA(n),s=!1,a=[],l=new Set;if(s)for(let p of Object.keys(i))g_.has(p)||Qc.has(p)||ar(`[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 c=!1;for(let p of h_){let g=i[p];if(!tt(g))continue;let h=tt(r[p])?r[p]:{},_={};for(let b of Object.keys(g))if(!Qc.has(b)){if(Ne(h,b)){h[b]!==g[b]&&a.push(`${p}.${b}`);continue}_[b]=g[b]}let y=Object.keys(_);if(y.length&&(p_(r,p,_),p==="components"&&y.forEach(b=>l.add(b)),p==="methods"&&(c=!0),(p==="functions"||p==="snippets")&&tt(r.utils))){let b={};for(let T of y)Ne(r.utils,T)||(b[T]=_[T]);Object.keys(b).length&&p_(r,"utils",b)}}c&&ga(r);let f=VA(i.pages);o.pages=f;let u=null;try{u=typeof t.getRoot=="function"?t.getRoot():null}catch{}let d=new Set;tt(r.pages)&&d.add(r.pages),u&&tt(u.routes)&&d.add(u.routes);for(let p of o.maps)d.add(p);for(let p of o.waiting)tt(p.routes)&&d.add(p.routes);for(let p of d)w_(p,e,f,r,a);s&&a.length&&ar(`[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\`.`),s&&l.size&&u&&KA(u,e,l,o)},x_=(t,e)=>{let n=t&&t.__ref,o=n&&n.__lazyRoute;if(!o||o.group!==e||(n.__lazyRoute=null,typeof t.set!="function")||!Jn(t,e))return;let r=()=>o.rerender({pushState:!1,replace:!1,scrollToTop:!1,guards:[],lazy:{group:e,status:"loaded"}}),i=()=>{o.first&&!Jn(t,e)&&k_(t.context,e)};Promise.resolve().then(r).then(i).catch(s=>console.error(`[smbls/router] lazy group "${e}" loaded, but its route failed to render`,s))},lr=t=>!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function",YA=(t,e,n)=>!!t&&(lr(e)&&e===t.returned||!!n&&typeof n=="object"&&n===t.error),el=(t,e)=>{let n=t.context,o=tl(n,e);if(o.status==="loading"||o.status==="loaded")return o.promise;let r=cr(n,e),i=jA(n,e),s=o.failure;o.status="loading";let a,l=!1,c=!1,f=()=>i?i(t):!0,u=p=>{if(p===!1)throw c=!0,WA(e);return a=r(o.attempts++)},d=Promise.resolve().then(f).then(u).then(p=>{l=!0,o.disposed||qA(t,e,p,o)}).then(()=>{o.status="loaded",o.failure=null;let p=[...o.waiting];o.waiting.clear();for(let g of p)x_(g,e)},p=>{if(c){if(o.status="waiting",o.promise=null,o.disposed)throw p;for(let h of[...o.waiting])Jn(h,e)?Wi(h,e,"waiting"):o.waiting.delete(h);throw p}let g=!l&&YA(s,a,p);if(o.failure=l?null:{returned:a,error:p},o.status=g?"reload":"error",o.promise=null,o.disposed)throw p;g?ar(`[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[...o.waiting])Jn(h,e)?Wi(h,e,o.status):o.waiting.delete(h);throw p});d.catch(()=>{}),o.promise=d;for(let p of o.waiting)Wi(p,e,"loading");return d},ZA=(t,e)=>{let n=t&&t.lazyFirstView;return n===!0||Array.isArray(n)&&n.includes(e)},k_=(t,e)=>{t&&(t.__lazyFirstViews||(t.__lazyFirstViews=new Set),t.__lazyFirstViews.add(e))},XA=(t,e)=>{let n=t.context,o=()=>(k_(n,e),!0),r=()=>!1;return Promise.resolve(el(t,e)).then(o,r)},T_=(t,e,n,o=null)=>{let r=e&&e.context;if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__)return b_(r,e);let i=m_(t,r);if(!i)return null;let s=tl(r,i);if(tt(n)&&s.maps.add(n),s.status==="loaded"&&w_(n,i,s.pages||{},r,[])>0)return{rematch:!0};let a=typeof cr(r,i)=="function";if(a&&o&&o.initialRender&&!o.__lazyAwaited&&ZA(r,i))return{wait:XA(e,i),group:i};let l=o&&o.__lazyAwaited&&(s.status==="error"||s.status==="reload"||s.status==="waiting");return a&&!l?el(e,i):ar(`[smbls/router] a route names lazy group "${i}", which context.lazy does not declare as a loader (\`lazy: { ${i}: () => import('./\u2026') }\`) \u2014 it shows its placeholder in the error state.`,console.error),{content:UA(t,i).definition,group:i,status:a?"loading":"error",first:!!(o&&o.initialRender)}},A_=(t,e,n)=>{if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__||!e||!e.group||e.status==="error")return;let o=t.context,r=t.__ref;if(!r||typeof cr(o,e.group)!="function")return;let i=tl(o,e.group);if(r.__lazyRoute={group:e.group,rerender:n,first:!!e.first},Wi(t,e.group,S_(i)),i.status==="loaded"){let s=()=>x_(t,e.group);Promise.resolve().then(s);return}i.waiting.add(t)};function C_(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(b_(n,e));let o=cr(n,t);return typeof o!="function"?(o===void 0&&__(n),Promise.resolve()):el(e,t)}var QA=(t,e,n)=>({...t.context&&t.context.domqlOptions,...e.mountOptions,contentElementKey:n}),v_=(t,e,n)=>{let o=n.mountOptions;if(!o)return;let r=e.context&&e.context.domqlOptions;for(let i in o)t[i]=r&&i in r?r[i]:void 0},P_=t=>{let e=qn;return typeof e=="function"?e(t.mountYield)>0:t.mountYield===!0},JA=t=>{let e=t&&t.context&&t.context.__hydration;return!!e&&e.adopted>0},tC=t=>{let e=xc;return typeof e!="function"||!e(t)?null:kc(t)},il=Object.freeze({holdTail:!0}),eC=t=>typeof t.holdPage=="function"&&typeof jt=="function",B_=(t,e)=>{let n=()=>jt(t);lr(e)?e.then(n,n):n()},nC=(t,e)=>{let n=null;try{n=t.holdPage(e)}catch{}B_(e,n)},M_=Object.freeze({holdTail:!0,deferAttach:!0}),oC=(t,e,n,o)=>{let r=t.firstView;if(!r||typeof jt!="function"||typeof zo!="function")return null;if(!r.committed)return il;if(!P_(o))return null;let i=e.node;return!e[n]&&i&&i.isConnected?M_:(o.mountYield=void 0,null)},rC=async()=>{await Ti();let t=Jo;if(typeof t=="function")for(;!t();)await Ti()},iC=(t,e,n,o)=>{if(e===il){t.firstView.page=n,B_(n,t.firstView.commit);return}e===M_&&rC().then(()=>{n.__ref&&o()&&zo(n),jt(n)})},N_=/^:(.+)/,F_=/^\*$/,E_=new Map,sl=t=>{let e=E_.get(t);if(e)return e;let n=t.replace(/^\//,"").split("/"),o=[],r=!1;for(let s=0;s<n.length;s++){let a=n[s].match(N_);a?o.push({index:s,name:a[1]}):F_.test(n[s])&&(r=!0)}let i={segments:n,params:o,hasWildcard:r,pattern:t};return E_.set(t,i),i},j_=(t,e,n=0)=>{let r=t.replace(/^\//,"").split("/").filter(Boolean).slice(n),i="/"+(r[0]||"");if(!e)return{key:null,content:null,params:{},routePath:i};let s=null,a=-1,l={};for(let c in e){if(c==="/*")continue;let f=sl(c),u=sC(r,f);u>a&&(a=u,s=c,l=W_(r,f))}return!s&&e["/*"]&&(s="/*"),{key:s,content:s?e[s]:null,params:l,routePath:i}},sC=(t,e)=>{let{segments:n,hasWildcard:o}=e;if(!o&&n.length!==t.length&&n.length!==1&&n.length>t.length)return-1;let r=0,i=Math.min(n.length,t.length);for(let s=0;s<i;s++)if(n[s]===t[s])r+=3;else if(N_.test(n[s]))r+=1;else if(F_.test(n[s]))r+=.5;else return-1;return r},aC=t=>{try{return decodeURIComponent(t)}catch{return t}},W_=(t,e)=>{let n={};for(let{index:o,name:r}of e.params)t[o]&&(n[r]=aC(t[o]));return n},$_=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((o,r)=>{e[r]!==void 0?(Array.isArray(e[r])||(e[r]=[e[r]]),e[r].push(o)):e[r]=o}),e},ol=t=>!!t&&typeof t=="object"&&typeof t.route=="string",O_=t=>t===!1||typeof t=="string"||ol(t)?t:void 0,cC=10,al=(t,e,n=0)=>{for(let o=n;o<t.length;o++){let r=t[o](e);if(lr(r))return Promise.resolve(r).then(s=>{let a=O_(s);return a===void 0?al(t,e,o+1):a});let i=O_(r);if(i!==void 0)return i}return!0},lC=async(t,e)=>!t||!t.length?!0:al(t,e),R_=(t,e,n,o)=>{if(typeof t!="string"||!n||!Object.prototype.hasOwnProperty.call(n,t))return null;let r=n[t];if(!r)return null;let i=e.replace(/^\//,"").split("/").filter(Boolean).slice(o||0);return{route:t,content:r,params:t==="/*"?{}:W_(i,sl(t))}},fC=(t,e)=>{if(globalThis.__SMBLS_BUILD_DROP_F_routeHead__)return t!==e&&rl(t)===rl(e)&&Z("routeHead"),t===e;let n=Ef;return typeof n=="function"?n(t,e):t===e},rl=t=>j(t)&&L(t.extends)&&Object.keys(t).every(e=>e==="extends"||e==="metadata"||e==="helmet")?t.extends:t,U_=(t,e,n=0)=>[].concat(t.extends||[],t.extend||[]).reduce((o,r)=>{let i=L(r)?e&&e[r]:r;if(!i||typeof i!="object"||n>7)return o;let s=i.metadata!==void 0?i.metadata:U_(i,e,n+1);return s!==void 0?s:o},void 0),uC=(t,e)=>rl(t)!==t||t.metadata===void 0||j(t.metadata)&&j(U_(t,e&&e.context&&e.context.components)),z_=(t,e)=>{let n=Of;if(typeof n=="function")return n(t,e&&e.context&&e.context.components)},dC=(t,e,n)=>{if(!e||typeof e!="object"||e.metadata===void 0&&e.helmet===void 0)return t;if(globalThis.__SMBLS_BUILD_DROP_F_routeHead__)return uC(e,n)&&Z("routeHead",n),t;let o=z_(e,n);return o!==void 0&&o!==e.metadata&&(t.metadata=o),t},pC=(t,e)=>{globalThis.__SMBLS_BUILD_DROP_F_routeHead__||!t||typeof t!="object"||!t.__ref||ze("routeHead",t,z_(e,t),e)},H_=(t,e)=>{if(!e)return t;let n=Array.isArray(e)?e:e.split("."),o=t;for(let r of n){if(!o||!o[r])return null;o=o[r]}return o},hC=(t,e)=>{let n=e.customRouterElement;if(!n||!t.__ref||t.__ref.root!==t)return t;let o=H_(t,n);return!o||o===t?t:(t.routes&&(o.routes=t.routes),o)},V_=(t=0,e)=>{e||(e=typeof br<"u"?br.location.pathname:"/");let o=e.split("/")[t+1];if(o)return`/${o}`},fr,cl=0,D_=0,nl=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,gC=t=>t&&(t.scrollingElement||t.documentElement)||null,G_={level:cl,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},K_=(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},q_=t=>{let e=t.__routeExit;e&&(t.__routeExit=null,e.abort())},_C=(t,e,n,o,r,i,s)=>{let a=e.__routeExit;if(a&&a.page===n)return a.wait;if(q_(e),!n||!n.node||typeof t.onRouteExit>"u"||!K_(i,s))return null;let l=typeof r=="number"&&r>=0?r:G_.exitTimeout,c=typeof AbortController=="function"?new AbortController:null,f={...o,page:n,timeout:l,signal:c?c.signal:void 0},u;try{u=Cn("routeExit",t,f)}catch{return null}if(!u||typeof u.then!="function")return null;let d={page:n,abort:()=>{c&&!c.signal.aborted&&c.abort()}};return d.wait=new Promise(p=>{let g=setTimeout(()=>{d.abort(),p()},l),h=()=>{clearTimeout(g),p()};u.then(h,h)}),e.__routeExit=d,d.wait},ur=new WeakMap,yC=t=>t===!0?{}:t&&typeof t=="object"&&!Array.isArray(t)?t:null,mC=(t,e,n,o)=>{let r=yC(t.transition);return!r||!e||$i(e.content)||!n||typeof n.startViewTransition!="function"||ur.get(n)>0||!K_(n,o)?null:r},bC=t=>{let e=t.__routeTransition;if(!(!e||e.updating))try{e.transition.skipTransition()}catch{}},SC=t=>{let e=typeof t.types=="string"?[t.types]:t.types;return Array.isArray(e)?e.filter(n=>typeof n=="string"&&n):[]},wC=t=>{try{let e=t&&t.ViewTransition;return!!e&&"types"in e.prototype}catch{return!1}},xC=100,kC=1e3,I_=(t,e)=>t===!1?1/0:typeof t=="number"&&t>=0?t:e,L_=t=>{let e=t&&t.performance;return e&&typeof e.now=="function"?e.now():Date.now()},TC=t=>{t&&typeof t.then=="function"&&t.then(null,()=>{})},AC=(t,e,n,o,r,i,s)=>{let a=t.node,l=a&&a.style,c=typeof n.name=="string"&&n.name?n.name:null,f=e.__routeTransition,u={transition:null,updating:!1,name:c,previousName:f&&f.name&&l?f.previousName:l&&l.viewTransitionName||""},d=()=>{if(e.__routerNavSeq===i){u.updating=!0,u.swapStarted=L_(r),ur.set(o,(ur.get(o)||0)+1);try{return s()}finally{ur.set(o,ur.get(o)-1),u.updating=!1}}},p=()=>{c&&l&&l.viewTransitionName===c&&(l.viewTransitionName=u.previousName)};c&&l&&(l.viewTransitionName=c);let g=SC(n),h=null;try{h=g.length&&wC(r)?o.startViewTransition({update:d,types:g}):o.startViewTransition(d)}catch{}if(!h)return p(),null;u.transition=h,e.__routeTransition=u,TC(h.ready);let _=!1,y=null,b=()=>{_=!0,y!==null&&(r.clearTimeout(y),y=null),e.__routeTransition===u&&(e.__routeTransition=null,p())},T=()=>{if(!(_||e.__routeTransition!==u))try{h.skipTransition()}catch{}};h.finished&&typeof h.finished.then=="function"?h.finished.then(b,b):b();let E=I_(n.swapBudget,xC),m=I_(n.timeout,kC);m!==1/0&&h.ready&&typeof h.ready.then=="function"&&r&&typeof r.setTimeout=="function"&&h.ready.then(()=>{_||(y=r.setTimeout(()=>{y=null,T()},m))},()=>{});let S=h.updateCallbackDone;return!S||typeof S.then!="function"?Promise.resolve():(E!==1/0&&S.then(()=>{u.swapStarted!==void 0&&L_(r)-u.swapStarted>E&&T()},()=>{}),S)},Fe=async(t,e,n={},o={})=>{let r=e||void 0,i=r?.context?.window||br,s=r?.context?.document||yf,a={...G_,...r.context.routerOptions,...o};cl=a.lastLevel,r=hC(r,a);let l=!(o&&o.render===!1),c=r.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||"content");let f=c.contentElementKey||a.contentElementKey||"content",u=i.location.origin!=="null"?i.location.origin:"http://localhost";t=nl(t);let d=typeof i.URL=="function"?i.URL:typeof globalThis<"u"&&globalThis.URL||URL,p=new d(u+t),{pathname:g,search:h,hash:_}=p,y=$_(h),b=r.node,T=_&&_!==i.location.hash.slice(1),E=g!==fr,m=fr,S=++D_;fr=g;let w=()=>{D_===S&&(fr=m)},x=c.__routerRendered,C,v,A,B;if(a.useParamsMatching){let N=j_(g,r.routes,a.level);C=N.key,v=N.routePath,A=N.content,B=N.params}else{C=V_(a.level,g),v=C;let N=r.routes;A=N?N[C||"/"]||N["/*"]:null,B={}}if(o&&o.route!=null){let N=R_(o.route,g,r.routes,a.level);!N&&a.silent,C=N?N.route:o.route,A=N?N.content:null,B=N?N.params:{}}a.scrollNode===void 0&&(a.scrollNode=gC(s));let I=a.scrollToNode?b:a.scrollNode;if(r.state?.root?.debugging){r.state.root.debugging=!1;return}let F=i_(i,a,I);if(F&&F.pop&&F.pop.echo)return;if(!A){w(),a.onNotFound?a.onNotFound({pathname:g,route:C,element:r}):(a.silent||console.warn("[smbls/router] no content matched for path",g,"\u2014 available routes:",Object.keys(r.routes||{})),a.event&&a.event.type==="popstate"&&Xc(F,c,i));return}let Sn=o&&o.lazy?c.__routerStartSeq:c.__routerStartSeq=(c.__routerStartSeq||0)+1;if(a.guards&&a.guards.length){let N={pathname:g,route:C,params:B,query:y,hash:_,element:r,state:n},et=al(a.guards,N);if(lr(et)&&(et=await et,c.__routerStartSeq!==Sn)){w(),s_(F);return}if(et===!1){w(),Zc(F);return}let $e=rt=>{let yt=new d(u+nl(rt));return yt.pathname===g&&yt.search===h&&yt.hash===_},U=typeof et=="string"?et:ol(et)&&typeof et.path=="string"&&!$e(et.path)?et.path:null;if(ol(et)&&U===null){let rt=R_(et.route,g,r.routes,a.level);if(!rt){a.silent,w(),a.onNotFound?a.onNotFound({pathname:g,route:et.route,element:r}):a.event&&a.event.type==="popstate"&&Xc(F,c,i);return}C=rt.route,A=rt.content,B=rt.params,o={...o,route:rt.route}}else if(U!==null){let rt=!!(F&&F.pop);if(rt&&!Yc(F))return;let yt=[...o&&o.__redirectChain||[],g],st=new d(u+nl(U)).pathname,Yt=yt.includes(st)||yt.length>=cC;Yt&&a.silent;let ft={...o,__redirectChain:yt};return Yt&&(ft.guards=[]),typeof et=="string"?delete ft.route:ft.route=et.route,rt&&(ft.event=void 0),delete ft.render,(rt||a.initialRender)&&(ft.pushState=!0,ft.replace=!0),Fe(U,e,n,ft)}}let Rt=l?T_(A,r,r.routes,a):null;if(Rt&&Rt.rematch)return Fe(t,r,n,o);if(Rt&&Rt.wait){let N=c.__routerNavSeq;return await Rt.wait,c.__routerNavSeq!==N||typeof r?.set!="function"?void 0:Fe(t,r,n,{...o,guards:[],__lazyAwaited:!0})}Rt&&(A=Rt.content,a.lazy={group:Rt.group,status:Rt.status});let ie=c.__routerNavSeq=(c.__routerNavSeq||0)+1,wn=!x||x.content!==A||x.route!==C,me=!!x&&fC(x.content,A),lt=!(!l||a.keepSamePage===!0&&me&&a.force!==!0)&&(E||wn||a.force===!0);if(lt&&x&&!$i(x.content)){let N=_C(r,c,r[f],{from:x.route,to:C,pathname:g,params:B,query:y,hash:_},a.exitTimeout,s,i);if(N&&(await N,c.__routerNavSeq!==ie||(c.__routeExit&&c.__routeExit.wait===N&&(c.__routeExit=null),typeof r?.set!="function")))return}else q_(c);let Y=lt?mC(a,x,s,i):null;if(lt&&bC(c),a.pushState){let N=g+(h||"")+(_||"");c_(F,n,N,a.replace,i)}else F&&Yc(F);a_(c,i);let Ct=QA(r,a,f),xn=()=>{let N=lt?oC(a,r,f,Ct):null,et=(!!x||P_(Ct))&&!!I&&I.scrollTop===0&&!I.scrollLeft,$e=!x&&!!a.initialRender&&!!I&&JA(r)&&(Number(I.scrollTop)>0||Number(I.scrollLeft)>0),rt=E||!T?{route:C,routePath:v,hash:_,params:B,query:y,debugging:!1}:{params:B,query:y};a.updateState&&r.state.update(rt,{preventContentUpdate:!0});let yt=null;if(lt){f&&a.removeOldElement&&r[f].remove();let Yt=r.__ref?.origin?.content,ft={};if(Yt)for(let ut in Yt){let dt=Yt[ut];ut==="__ref"||ut==="props"||ut==="node"||ut==="parent"||ut==="key"||(typeof dt=="string"||typeof dt=="number"||typeof dt=="boolean"||typeof dt=="object"&&dt!==null&&!dt.node&&!dt.__ref)&&(ft[ut]=dt)}let be=dC({...ft,...typeof A=="object"?A:{extends:A}},A,r);a.useFragment&&(be.tag="fragment");let io={content:A,route:C},ss=c.__routerRendered;try{if(typeof r?.set!="function")return;c.__routerRendered=io;let ut=!N&&eC(a),dt=r.set(be,Ct,N||(ut?il:void 0));dt&&N?iC(a,N,dt,()=>c.__routerNavSeq===ie):dt&&ut&&nC(a,dt),yt=tC(r[f])}catch(ut){c.__routerRendered===io&&(c.__routerRendered=ss),console.error("[smbls/router] failed to render route content",g,ut);try{ze("renderError",r,{where:"route",route:g,error:ut})}catch(dt){console.error("[smbls/router] renderError hook threw:",dt)}}}else me&&x.route!==C&&c.__routerRendered===x&&(c.__routerRendered={content:A,route:C},A!==x.content&&pC(r[f],A));let st=()=>{let Yt=!E&&T,ft=!l||l_(F,I,a,s);if(!ft&&!$e&&a.scrollToTop&&!Yt&&!et&&I?.scrollTo&&I.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!ft&&!$e&&a.scrollToNode&&A[f]?.node?.scrollTo&&A[f].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!ft&&_){let be=s.getElementById(_.slice(1));if(be&&I?.scrollTo){let io=i.getComputedStyle?i.getComputedStyle(be):null,ss=io&&parseFloat(io.scrollMarginTop)||0,ut=be.getBoundingClientRect().top+I.scrollTop-ss-(a.scrollToOffset||0);I.scrollTo({...a.scrollToOptions||{},top:ut,left:0})}}Rt&&A_(r,Rt,be=>Fe(t,r,n,{...o,...be})),Cn("routeChanged",r,a)};if(yt)return yt.then(()=>{v_(Ct,r,a),c.__routerNavSeq===ie&&st()});v_(Ct,r,a),st()},kn=Y?AC(r,c,Y,s,i,ie,xn):null;if(kn){await kn;return}return xn()},CC=Fe;var EC=t=>{for(let e in t)Object.freeze(t[e]);return Object.freeze(t)},ll=EC({en:{"dialog.title":"Title","dialog.close":"Close","dialog.cancel":"Cancel","dialog.ok":"OK","dialog.confirm":"Confirm","dialog.confirmTitle":"Are you sure?","dialog.confirmMessage":"This action cannot be undone.","dialog.alertTitle":"Notice","dialog.promptTitle":"Enter a value"},ka:{"dialog.title":"\u10E1\u10D0\u10D7\u10D0\u10E3\u10E0\u10D8","dialog.close":"\u10D3\u10D0\u10EE\u10E3\u10E0\u10D5\u10D0","dialog.cancel":"\u10D2\u10D0\u10E3\u10E5\u10DB\u10D4\u10D1\u10D0","dialog.ok":"\u10D9\u10D0\u10E0\u10D2\u10D8","dialog.confirm":"\u10D3\u10D0\u10D3\u10D0\u10E1\u10E2\u10E3\u10E0\u10D4\u10D1\u10D0","dialog.confirmTitle":"\u10D3\u10D0\u10E0\u10EC\u10DB\u10E3\u10DC\u10D4\u10D1\u10E3\u10DA\u10D8 \u10EE\u10D0\u10E0\u10D7?","dialog.confirmMessage":"\u10D0\u10DB \u10DB\u10DD\u10E5\u10DB\u10D4\u10D3\u10D4\u10D1\u10D8\u10E1 \u10D2\u10D0\u10E3\u10E5\u10DB\u10D4\u10D1\u10D0 \u10E8\u10D4\u10E3\u10EB\u10DA\u10D4\u10D1\u10D4\u10DA\u10D8\u10D0.","dialog.alertTitle":"\u10E8\u10D4\u10E2\u10E7\u10DD\u10D1\u10D8\u10DC\u10D4\u10D1\u10D0","dialog.promptTitle":"\u10E8\u10D4\u10D8\u10E7\u10D5\u10D0\u10DC\u10D4\u10D7 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"}}),Y_=(t,e)=>typeof t=="string"&&t!==""&&t!==e,Z_=["methods","functions","utils"],X_=(t,e)=>{let n=t&&t.context;if(!n)return!1;for(let o=0;o<Z_.length;o++){let r=n[Z_[o]];if(r&&typeof r[e]=="function")return!0}return!1},OC=(t,e)=>typeof t=="string"&&Object.prototype.hasOwnProperty.call(ll,t)?ll[t][e]:void 0;function dr(t,e){if(X_(t,"polyglot")){let r=t.call("polyglot",e);if(Y_(r,e))return r}let n=X_(t,"getActiveLang")?t.call("getActiveLang"):void 0,o=OC(n,e);return Y_(o,e)?o:ll.en[e]||""}var Xv=/*@__PURE__*/__smblsNs({},{A:()=>bm,AssetPicture:()=>my,Audio:()=>wy,Avatar:()=>Vm,B:()=>Wy,Block:()=>ey,Box:()=>zy,Br:()=>Vy,Bridge:()=>Jy,Button:()=>km,ButtonSet:()=>vm,COMPONENTS:()=>Ab,Caption:()=>Dy,Checkbox:()=>nm,CheckboxHgroup:()=>om,Circle:()=>gy,CircleButton:()=>Am,Clickable:()=>dy,Data:()=>Uy,Dialog:()=>Im,DialogFooter:()=>Pm,DialogHeader:()=>Lm,Dropdown:()=>mb,DropdownDisclosure:()=>wb,DropdownList:()=>bb,DropdownParent:()=>Sb,DropdownParentFocus:()=>xb,DropdownSiblingFocus:()=>kb,FileIcon:()=>ym,FilePick:()=>wm,Flex:()=>oy,Focusable:()=>py,FocusableComponent:()=>hy,Footnote:()=>jy,Form:()=>ly,Grid:()=>iy,Gutter:()=>ay,H1:()=>Ty,H2:()=>Ay,H3:()=>Cy,H4:()=>vy,H5:()=>Ey,H6:()=>Oy,Headline:()=>Ny,Hgroup:()=>Zy,HgroupButton:()=>Qy,HgroupRows:()=>Xy,Hoverable:()=>uy,Hr:()=>Hy,I:()=>$y,Icon:()=>gm,IconButton:()=>Em,IconText:()=>_m,Iframe:()=>fy,Img:()=>cy,Inline:()=>ny,InlineFlex:()=>ry,InlineGrid:()=>sy,Input:()=>tm,Italic:()=>By,KangorooButton:()=>Cm,Li:()=>Gy,Link:()=>Fl,Notification:()=>Tb,NumberInput:()=>em,Ol:()=>qy,P:()=>Ry,Picture:()=>yy,Radio:()=>rm,RadioHgroup:()=>im,Range:()=>Gm,RouteLink:()=>Sm,RouterLink:()=>jl,SHAPES:()=>zi,Select:()=>xm,Shape:()=>yl,Span:()=>ky,SquareButton:()=>Tm,Strong:()=>Iy,Subhead:()=>Fy,Svg:()=>by,Text:()=>xy,Textarea:()=>cm,TextareaWithButton:()=>lm,Theme:()=>_y,Title:()=>My,Toggle:()=>sm,ToggleHgroup:()=>am,Tooltip:()=>Um,TooltipHidden:()=>zm,TooltipLayer:()=>Zl,TooltipParent:()=>Hm,U:()=>Ly,Ul:()=>Ky,Underline:()=>Py,Video:()=>Sy,depth:()=>Hi,focusableRingEnabled:()=>je,focusableRingToken:()=>gl,focusableRingValue:()=>oe,getSystemGlobalTheme:()=>pr});var ul=/*@__PURE__*/__smblsNs({},{Block:()=>ey,Flex:()=>oy,Grid:()=>iy,Gutter:()=>ay,Inline:()=>ny,InlineFlex:()=>ry,InlineGrid:()=>sy});var Q_=new Set,RC=t=>t==="icon"?"build.treeShakeIcons":"build.treeShakeComponents",fl=(t,e,n)=>{let o=t+":"+e;if(Q_.has(o)||(Q_.add(o),typeof console>"u"||!console.error))return;let r=n&&n.__ref&&n.__ref.path,i=r&&r.length?` (at <${r.join(".")}>)`:"",s=RC(t);console.error(`[smbls] ${t==="icon"?"Icon":"Component"} "${e}"${i} is not in this build: symbols.json ${s} left it out because the project source never names it. Add "${e}" to ${s}.keep.`)},k=t=>({onInit:{always:!0,handler:e=>fl("component",t,e)}}),J_=new Set,PI=t=>{for(let e of t)e&&J_.add(e)},ty=t=>J_.has(t);var ey=globalThis.__SMBLS_BUILD_DROP_C_Block__?k("Block"):{display:"block"},ny=globalThis.__SMBLS_BUILD_DROP_C_Inline__?k("Inline"):{display:"inline"},oy=globalThis.__SMBLS_BUILD_DROP_C_Flex__?k("Flex"):{display:"flex"},ry=globalThis.__SMBLS_BUILD_DROP_C_InlineFlex__?k("InlineFlex"):{display:"inline-flex"},iy=globalThis.__SMBLS_BUILD_DROP_C_Grid__?k("Grid"):{display:"grid"},sy=globalThis.__SMBLS_BUILD_DROP_C_InlineGrid__?k("InlineGrid"):{display:"inline-grid"},ay=globalThis.__SMBLS_BUILD_DROP_C_Gutter__?k("Gutter"):{boxSize:"C1"};var dl=/*@__PURE__*/__smblsNs({},{Img:()=>cy});var cy={tag:"img",attr:{title:t=>t.title,alt:t=>t.alt!=null?t.alt:t.title||"",src:t=>{let e=Ht(t);return e&&e.src||t.src},srcset:t=>{let e=Ht(t);return(e?ku(e):"")||t.srcset||t.srcSet}}};var pl=/*@__PURE__*/__smblsNs({},{Form:()=>ly});var ly=globalThis.__SMBLS_BUILD_DROP_C_Form__?k("Form"):{tag:"form"};var hl=/*@__PURE__*/__smblsNs({},{Iframe:()=>fy});var fy=globalThis.__SMBLS_BUILD_DROP_C_Iframe__?k("Iframe"):{tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var _l=/*@__PURE__*/__smblsNs({},{Clickable:()=>dy,Focusable:()=>py,FocusableComponent:()=>hy,Hoverable:()=>uy,focusableRingEnabled:()=>je,focusableRingToken:()=>gl,focusableRingValue:()=>oe});var DC={appearance:"none",fontFamily:"inherit"},uy=globalThis.__SMBLS_BUILD_DROP_C_Hoverable__?k("Hoverable"):{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}}},dy=globalThis.__SMBLS_BUILD_DROP_C_Clickable__?k("Clickable"):{extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}};function je(t){let e=t.context&&t.context.designSystem;return!e||e.focusableRing!==!1}function gl(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 o=n.outline||void 0,r=n.outlineOffset!=null&&n.outlineOffset!==""?n.outlineOffset:void 0;return o||r!==void 0?{outline:o,outlineOffset:r}:null}function oe(t,e,n){let o=gl(t);return o&&o[e]!==void 0?o[e]:n}var py=globalThis.__SMBLS_BUILD_DROP_C_Focusable__?k("Focusable"):{border:"none",outline:t=>je(t)?"solid 0 currentColor":"none",":focus-visible":{opacity:1,outline:t=>je(t)?oe(t,"outline","solid X currentColor"):"none",outlineOffset:t=>je(t)?oe(t,"outlineOffset"):void 0}},hy=globalThis.__SMBLS_BUILD_DROP_C_FocusableComponent__?k("FocusableComponent"):{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:DC};var Sl=/*@__PURE__*/__smblsNs({},{Picture:()=>yy});var bl=/*@__PURE__*/__smblsNs({},{Theme:()=>_y,getSystemGlobalTheme:()=>pr});var ml=/*@__PURE__*/__smblsNs({},{Circle:()=>gy,SHAPES:()=>zi,Shape:()=>yl,default:()=>IC,depth:()=>Hi});var Wt=X(),Hi={4:{boxShadow:`rgba(0,0,0,.10) 0 2${Wt.unit.default} 4${Wt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${Wt.unit.default} 6${Wt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${Wt.unit.default} 10${Wt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${Wt.unit.default} 16${Wt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${Wt.unit.default} 26${Wt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${Wt.unit.default} 42${Wt.unit.default}`}},to=t=>lo(t.shapeDirectionColor)||lo(t.borderColor)||lo(t.backgroundColor)||lo(t.background),Ui=t=>{let e=Kr.transition(t.transition,t);return e&&e.transition},zi={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:to(t),transition:Ui(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:to(t),transition:Ui(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:to(t),transition:Ui(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:Ui(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${to(t)} 25%, transparent 25%), linear-gradient(315deg, ${to(t)} 25%, transparent 25%)`},"&:after":{background:to(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)"}}}},yl={deps:{exec:Tn,getSpacingBasedOnRatio:fo,getMediaColor:Dt},classlist:{shape:t=>t.deps.exec(zi[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=zi[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}}},gy=globalThis.__SMBLS_BUILD_DROP_C_Circle__?k("Circle"):{round:"100%"},IC=yl;var pr=({context:t,state:e})=>{let n=e&&e.root,o=n&&n.globalTheme||t.designSystem&&t.designSystem.globalTheme;return o==="auto"?null:o},_y=globalThis.__SMBLS_BUILD_DROP_C_Theme__?k("Theme"):{deps:{depth:Hi},classlist:{depth:t=>!Sr(t.depth)&&t.deps.depth[t.depth]}};var yy=globalThis.__SMBLS_BUILD_DROP_C_Picture__?k("Picture"):{deps:{getSystemGlobalTheme:pr},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:pr},tag:"source",attr:{media:t=>{let{key:e,context:n,deps:o}=t,{media:r}=n.designSystem,i=o.getSystemGlobalTheme(t),s=(t.media||e).slice(1);return s===i?"(min-width: 0px)":s==="dark"||s==="light"?"(max-width: 0px)":r[s]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(t,e)=>t.parent?.src||e.src}};var wl=/*@__PURE__*/__smblsNs({},{AssetPicture:()=>my});var my=globalThis.__SMBLS_BUILD_DROP_C_AssetPicture__?k("AssetPicture"):{tag:"picture",children:t=>{let e=Ht(t);if(e)return Tu(e,t.alt)}};var xl=/*@__PURE__*/__smblsNs({},{Svg:()=>by});var LC=t=>t.startsWith(ds)?t.slice(ds.length):t,by={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:o}=e,r=n&&n.svg,i=t.spriteId||n&&n.useSvgSprite,s=t.call("exec",t.src,t),a=d=>`<use xlink:href="#${d?ps(d):""}" />`;if(typeof s=="string"){let d=s.match(/^\s*<symbol\b[^>]*\bid="([^"]+)"/);if(d){let p=LC(d[1]),g=Bf(p,s),h=e.document||(typeof document<"u"?document:null);if(!(h&&typeof h.getElementById=="function"&&h.getElementById(ps(p)))){let y=o&&o.scratchSystem&&o.scratchSystem.appendSVGSprite;n&&!n.__svgCache&&(n.__svgCache={}),typeof y=="function"?y({[p]:g},{document:h}):o&&typeof o.init=="function"&&o.init({svg:{[p]:g}},{document:h,emotion:e.emotion})}return a(p)}}if(!i&&s)return s;let l=t.spriteId;if(l)return a(l);if(r&&r[s])return a(s);let c=Symbol.for(s),f=r[c];if(f&&r[f])return a(f);if(!s)return a("");if(typeof s=="string"&&!s.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${s}" \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: { '${s}': '<svg>...</svg>' } }).`),a("");let u=0;for(let d=0;d<s.length;d++)u=(u<<5)-u+s.charCodeAt(d)|0;return f=r[c]=`svg-${(u>>>0).toString(36)}`,o.init({svg:{[f]:s}},{document:e.document,emotion:e.emotion}),a(f)}};var kl=/*@__PURE__*/__smblsNs({},{Video:()=>Sy});var Sy=globalThis.__SMBLS_BUILD_DROP_C_Video__?k("Video"):{tag:"video",controls:!0,attr:{src:t=>{let e=Ht(t);return e&&e.src||t.src}},children:t=>{let e=Ht(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 Tl=/*@__PURE__*/__smblsNs({},{Audio:()=>wy});var wy=globalThis.__SMBLS_BUILD_DROP_C_Audio__?k("Audio"):{tag:"audio",controls:!0,attr:{src:t=>{let e=Ht(t);return e&&e.src||t.src}},children:t=>{let e=Ht(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 Al=/*@__PURE__*/__smblsNs({},{B:()=>Wy,Caption:()=>Dy,Data:()=>Uy,Footnote:()=>jy,H1:()=>Ty,H2:()=>Ay,H3:()=>Cy,H4:()=>vy,H5:()=>Ey,H6:()=>Oy,Headline:()=>Ny,I:()=>$y,Italic:()=>By,P:()=>Ry,Span:()=>ky,Strong:()=>Iy,Subhead:()=>Fy,Text:()=>xy,Title:()=>My,U:()=>Ly,Underline:()=>Py});var xy=globalThis.__SMBLS_BUILD_DROP_C_Text__?k("Text"):{},ky=globalThis.__SMBLS_BUILD_DROP_C_Span__?k("Span"):{tag:"span"},Ty=globalThis.__SMBLS_BUILD_DROP_C_H1__?k("H1"):{tag:"h1"},Ay=globalThis.__SMBLS_BUILD_DROP_C_H2__?k("H2"):{tag:"h2"},Cy=globalThis.__SMBLS_BUILD_DROP_C_H3__?k("H3"):{tag:"h3"},vy=globalThis.__SMBLS_BUILD_DROP_C_H4__?k("H4"):{tag:"h4"},Ey=globalThis.__SMBLS_BUILD_DROP_C_H5__?k("H5"):{tag:"h5"},Oy=globalThis.__SMBLS_BUILD_DROP_C_H6__?k("H6"):{tag:"h6"},Ry=globalThis.__SMBLS_BUILD_DROP_C_P__?k("P"):{tag:"p"},Dy=globalThis.__SMBLS_BUILD_DROP_C_Caption__?k("Caption"):{tag:"caption"},Iy=globalThis.__SMBLS_BUILD_DROP_C_Strong__?k("Strong"):{tag:"strong",fontWeight:"700"},Ly=globalThis.__SMBLS_BUILD_DROP_C_U__?k("U"):{tag:"u"},Py=globalThis.__SMBLS_BUILD_DROP_C_Underline__?k("Underline"):{tag:"u"},By=globalThis.__SMBLS_BUILD_DROP_C_Italic__?k("Italic"):{tag:"i"},My=globalThis.__SMBLS_BUILD_DROP_C_Title__?k("Title"):{},Ny=globalThis.__SMBLS_BUILD_DROP_C_Headline__?k("Headline"):{tag:"h6",fontSize:"B",fontWeight:500},Fy=globalThis.__SMBLS_BUILD_DROP_C_Subhead__?k("Subhead"):{tag:"span",fontSize:"Z1"},jy=globalThis.__SMBLS_BUILD_DROP_C_Footnote__?k("Footnote"):{tag:"span",fontSize:"Z"},Wy=globalThis.__SMBLS_BUILD_DROP_C_B__?k("B"):{tag:"b"},$y=globalThis.__SMBLS_BUILD_DROP_C_I__?k("I"):{tag:"i"},Uy=globalThis.__SMBLS_BUILD_DROP_C_Data__?k("Data"):{tag:"data"};var Cl=/*@__PURE__*/__smblsNs({},{Box:()=>zy,Br:()=>Vy,Hr:()=>Hy,Li:()=>Gy,Ol:()=>qy,Ul:()=>Ky});var PC=t=>{if(!t.context)return;let{props:e,__ref:n}=t,o=Nt(e,t,{unpack:!1});n.__class=o},zy=globalThis.__SMBLS_BUILD_DROP_C_Box__?k("Box"):{extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:PC},Hy=globalThis.__SMBLS_BUILD_DROP_C_Hr__?k("Hr"):{tag:"hr",margin:"C1 0"},Vy=globalThis.__SMBLS_BUILD_DROP_C_Br__?k("Br"):{tag:"br"},Gy=globalThis.__SMBLS_BUILD_DROP_C_Li__?k("Li"):{tag:"li"},Ky=globalThis.__SMBLS_BUILD_DROP_C_Ul__?k("Ul"):{tag:"ul",childExtends:{extends:"Li"}},qy=globalThis.__SMBLS_BUILD_DROP_C_Ol__?k("Ol"):{tag:"ol",childExtends:{extends:"Li"}};var vl=/*@__PURE__*/__smblsNs({},{Hgroup:()=>Zy,HgroupButton:()=>Qy,HgroupRows:()=>Xy});var Yy=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},Zy=globalThis.__SMBLS_BUILD_DROP_C_Hgroup__?k("Hgroup"):{display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:Yy,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:Yy,margin:"0",color:"paragraph"}},Xy=globalThis.__SMBLS_BUILD_DROP_C_HgroupRows__?k("HgroupRows"):{extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},Qy=globalThis.__SMBLS_BUILD_DROP_C_HgroupButton__?k("HgroupButton"):{extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var El=/*@__PURE__*/__smblsNs({},{Bridge:()=>Jy});var Jy=globalThis.__SMBLS_BUILD_DROP_C_Bridge__?k("Bridge"):{tag:"div"};var Ol=/*@__PURE__*/__smblsNs({},{Input:()=>tm});var tm={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 Rl=/*@__PURE__*/__smblsNs({},{NumberInput:()=>em});var em={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 Dl=/*@__PURE__*/__smblsNs({},{Checkbox:()=>nm,CheckboxHgroup:()=>om});var nm={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=>oe(t,"outline","solid X currentColor"),outlineOffset:t=>oe(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"}}},om=globalThis.__SMBLS_BUILD_DROP_C_CheckboxHgroup__?k("CheckboxHgroup"):{display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Il=/*@__PURE__*/__smblsNs({},{Radio:()=>rm,RadioHgroup:()=>im});var rm=globalThis.__SMBLS_BUILD_DROP_C_Radio__?k("Radio"):{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}},im=globalThis.__SMBLS_BUILD_DROP_C_RadioHgroup__?k("RadioHgroup"):{extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Ll=/*@__PURE__*/__smblsNs({},{Toggle:()=>sm,ToggleHgroup:()=>am});var sm={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}},am=globalThis.__SMBLS_BUILD_DROP_C_ToggleHgroup__?k("ToggleHgroup"):{extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Pl=/*@__PURE__*/__smblsNs({},{Textarea:()=>cm,TextareaWithButton:()=>lm});var cm=globalThis.__SMBLS_BUILD_DROP_C_Textarea__?k("Textarea"):{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"}},lm=globalThis.__SMBLS_BUILD_DROP_C_TextareaWithButton__?k("TextareaWithButton"):{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 Nl=/*@__PURE__*/__smblsNs({},{FileIcon:()=>ym,Icon:()=>gm,IconText:()=>_m});var fm=new Set,um=(t,e)=>{if(!fm.has(t)&&(fm.add(t),typeof console<"u"&&console.warn)){let n=e&&e.__ref&&e.__ref.path,o=n&&n.length?` at <${n.join(".")}>`:"";console.warn(`[Icon] Unknown icon name "${t}"${o} \u2014 not registered in designSystem.icons, rendering the noIcon placeholder. Fix the name or register the icon in the design system.`)}},dm=(t,e)=>{let n=t.find(o=>o&&ty(o));return n?(fl("icon",n,e),!0):!1},pm=new WeakMap,BC=t=>{let e=pm.get(t);return e||(e={pending:new Map,waiting:new Map,failed:new Set},pm.set(t,e)),e},MC=(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},NC=(t,e,n)=>{let o=n&&n.context&&n.context.document||(typeof document<"u"?document:null);at(t);try{let r=X();r&&!r.__svgCache&&(r.__svgCache={}),t.__svgCache||(t.__svgCache={});let i={};for(let s in e){let a=jf(e[s],s);a&&(t.icons[s]=a,i[s]=a)}return t.useIconSprite&&o&&Object.keys(i).length&&Wf(i,{document:o}),Object.keys(i).length>0}finally{it()}},FC=(t,e,n,o,r)=>{let i=t&&t.designSystem,s=i&&i.iconsLoader;if(typeof s!="function"||!i.icons)return!1;let a=BC(i);if(a.failed.has(e))return!1;let l=a.waiting.get(e);if(l||(l=new Set,a.waiting.set(e,l)),l.add(r),a.pending.has(e))return!0;let c=()=>s(e,t),f=Promise.resolve().then(c).then(u=>{let d=MC(u,n);return d?NC(i,d,o):!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},jC="0 0 24 24",WC=/<(symbol|svg)\b[^>]*>/i,$C={viewBox:/\sviewBox\s*=\s*(?:"([^"]*)"|'([^']*)')/i,width:/\swidth\s*=\s*(?:"([^"]*)"|'([^']*)')/i,height:/\sheight\s*=\s*(?:"([^"]*)"|'([^']*)')/i},Bl=(t,e)=>{let n=t.match($C[e]);return n?n[1]!==void 0?n[1]:n[2]:void 0},hm=t=>{let e=typeof t=="string"&&t.match(/^\s*(\d*\.?\d+)\s*(?:px)?\s*$/);return e?Number(e[1]):void 0},UC=(t,e)=>{if(typeof t!="string")return;let n=t.match(WC);if(!n)return;let o=(Bl(n[0],"viewBox")||"").trim().split(/[\s,]+/).map(Number),r=o.length===4&&o[2]>0&&o[3]>0?[o[2],o[3]]:void 0,i=hm(Bl(n[0],"width")),s=hm(Bl(n[0],"height")),a=i>0&&s>0?[i,s]:void 0,l=n[1].toLowerCase()==="symbol"||e?r||a:a||r;return l?`0 0 ${l[0]} ${l[1]}`:void 0},Ml=t=>{let e=t.call("exec",t.viewBox,t);if(e)return e;let n=t.context&&t.context.designSystem,o=!!(t.spriteId||n&&n.useSvgSprite);return UC(t.call("exec",t.src,t),o)||jC},gm={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(t,e,n)=>{let{parent:o}=t,{icons:r,useIconSprite:i,verbose:s}=n&&n.designSystem,{toCamelCase:a}=n&&n.utils,l=!1,c=(h,_)=>{try{return{value:t.call("exec",h,_)}}catch(y){if(t.__ref&&(t.__ref.__iconNameError=y),!l&&typeof console<"u"&&console.warn){l=!0;let b=t.__ref&&t.__ref.path,T=b&&b.length?` at <${b.join(".")}>`:"";console.warn(`[Icon] name/icon factory threw${T} \u2014 treated as no name (a painted glyph stays):`,y&&y.message||y)}return{threw:!0}}},f=(h,_)=>{let{semanticIcons:y}=_&&_.designSystem,{toCamelCase:b}=_&&_.utils,E=b(h).split(/([a-z])([A-Z])/g),m=E[1]?E[0]:h.split(".")[0].split(" ")[0],S=y&&y[m];if(S){let w=h.includes(".")?"sfsymbols."+h.split(".").slice(1).join("."):"sfsymbols";return h=S[w]||S[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:_}=h,y=c(h.name||h.icon||_,h);if(y.threw)return{name:_,threw:!0};let b=y.value;return h.call("isString",b)&&b.includes("{{")&&(b=h.call("replaceLiteralsWithObjectFields",b)),{name:h.call("isString",b)?b:_}},d=t.src,p,g=()=>{let h=u(t);if(h.threw&&t.node&&t.node.innerHTML)return;let _=h.name,y=_;if(_.includes(" ")){let I=_.split(" ");_=I[0]+I.slice(1).map(F=>F.charAt(0).toUpperCase()+F.slice(1)).join("")}let b=a(_),T=b.split(/([a-z])([A-Z])/g),E=f(y,n);if(E){Object.assign(t,E);return}let m,S=t[".isActive"];S&&(S.name||S.icon)&&t.isActive&&(m=c(S.name||S.icon,t).value);let w=o&&o[".isActive"];w&&w.icon&&o.isActive&&(m=c(w.icon||w.Icon.name||w.Icon.icon,t).value),t.call("isString",m)&&m.includes("{{")&&(m=t.call("replaceLiteralsWithObjectFields",m));let x;r[m]&&(x=m),r[b]?x=b:r[T[0]+T[1]]?x=T[0]+T[1]:r[T[0]]?x=T[0]:s&&t.warn("Can't find icon:",_,x);let C=r[x],v=o&&o.src||d;!C&&!v&&(FC(n,y,b,t,F=>{if(!(p&&p._disposed)){if(!F)return globalThis.__SMBLS_BUILD_DROP_ICONS__&&dm([m,b,T[0]+T[1],T[0]],t)||um(y,t);g()}})||globalThis.__SMBLS_BUILD_DROP_ICONS__&&dm([m,b,T[0]+T[1],T[0]],t)||um(y,t));let A=i&&x,B=C||v||r.noIcon;if(!(t.spriteId===A&&t.src===B&&t.node&&t.node.innerHTML)){if(t.spriteId=A,t.src=B,typeof t.html=="function"&&t.node){let I=t.context&&t.context.designSystem;I&&at(I);try{let F=t.html(t,t.state,t.context);F!=null&&typeof F!="function"&&(t.node.innerHTML=F)}finally{I&&it()}}t.node&&t.attr&&t.attr.viewBox===Ml&&t.node.setAttribute("viewBox",Ml(t))}};p=P(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:Ml,"aria-hidden":t=>t.ariaLabel||t.role==="img"?null:"true",focusable:"false"}},_m=globalThis.__SMBLS_BUILD_DROP_C_IconText__?k("IconText"):{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},ym={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"document"}};var Wl=/*@__PURE__*/__smblsNs({},{A:()=>bm,Link:()=>Fl,RouteLink:()=>Sm,RouterLink:()=>jl});var zC=(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 o=n.getAttribute("target");return o&&o.toLowerCase()!=="_self"?!0:n.hasAttribute("download")},HC=(t,e)=>{let n=t.slice(1),o=e.node&&e.node.ownerDocument,r=n&&o?o.getElementById(n):null;r&&(typeof r.scrollIntoView=="function"&&r.scrollIntoView(),typeof r.focus=="function"&&(r.hasAttribute("tabindex")||r.setAttribute("tabindex","-1"),r.focus()))},mm=(t,e,n)=>{let{context:o}=e,{href:r,scrollToTop:i,stopPropagation:s}=e,a=e.call("exec",r,e);if(e.call("isString",a)&&a.includes("{{")&&(a=e.call("replaceLiteralsWithObjectFields",a)),s&&t.stopPropagation(),!a||zC(t,e))return;if(a.startsWith("#")){t.preventDefault(),HC(a,e);return}let{utils:l,snippets:c,functions:f,routerOptions:u}=o,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("."),_=d;for(let y of h){if(!_||!_[y]){_=null;break}_=_[y]}_&&(g=_,d.routes&&(g.routes=d.routes))}(f.router||c.router||l.router||Fe)(a,g,{},{scrollToOptions:{behavior:"instant"},scrollToTop:e.call("isDefined",i)?i:!0,...u,...e.routerOptions})}catch(g){console.warn(g)}}},Fl={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>ba(t,en(t,t.href)||en(t,t.call("exec",t,t).href)),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:mm},bm=globalThis.__SMBLS_BUILD_DROP_C_A__?k("A"):{extends:"Link"},jl={onClick:mm},Sm=globalThis.__SMBLS_BUILD_DROP_C_RouteLink__?k("RouteLink"):{extends:[Fl,jl]};var $l=/*@__PURE__*/__smblsNs({},{FilePick:()=>wm});var VC=65279,GC=t=>({name:String(t.name||""),size:Number(t.size)||0,type:String(t.type||"")}),KC=(t,e)=>{if(typeof t.arrayBuffer=="function")return t.arrayBuffer();let n=e&&e.FileReader;return n?new Promise((o,r)=>{let i=new n;i.onload=()=>o(i.result),i.onerror=()=>r(i.error||new Error("read")),i.readAsArrayBuffer(t)}):Promise.reject(new Error("no file reader"))},qC=(t,e,n)=>{let o=n&&n.TextDecoder||globalThis.TextDecoder,r=new o(e||"utf-8",{fatal:!0,ignoreBOM:!0}).decode(t instanceof ArrayBuffer||ArrayBuffer.isView(t)?t:new Uint8Array(t));return r.charCodeAt(0)===VC?r.slice(1):r},YC=async(t,{maxBytes:e,encoding:n,win:o}={})=>{let r=GC(t);if(typeof e=="number"&&e>=0&&r.size>e)return{...r,over:!0};let i;try{i=await KC(t,o)}catch{return{...r,error:"read"}}try{return{...r,text:qC(i,n,o)}}catch{return{...r,error:"decode"}}},ZC=/^[A-Za-z_$][\w$]*$/,XC=(t,e)=>{let n=t.onFileText;return typeof n=="string"&&ZC.test(n)?t.call(n,e):iu("fileText",e,t)},QC=async(t,e)=>{let n=e.parent,o=t&&t.target,r=o&&o.files,i=r&&r.length?r[0]:null;if(o&&(o.value=""),!i)return;let s=o.ownerDocument&&o.ownerDocument.defaultView,a=await YC(i,{maxBytes:n.maxBytes,encoding:n.encoding,win:s});return XC(n,a)},wm=globalThis.__SMBLS_BUILD_DROP_C_FilePick__?k("FilePick"):{tag:"label",position:"relative",cursor:"pointer",":focus-within":{outline:t=>je(t)?oe(t,"outline","solid X currentColor"):"none",outlineOffset:t=>je(t)?oe(t,"outlineOffset"):void 0},Input:{type:"file",position:"absolute",opacity:"0",width:"1px",height:"1px",margin:"-1px",padding:"0",overflow:"hidden",clip:"rect(0, 0, 0, 0)",attr:{accept:t=>t.parent.accept,disabled:t=>t.parent.disabled||null},onKeydown:(t,e)=>{t.key!=="Enter"||t.defaultPrevented||(t.preventDefault(),e.node&&typeof e.node.click=="function"&&e.node.click())},onChange:(t,e)=>QC(t,e)}};var Ul=/*@__PURE__*/__smblsNs({},{Select:()=>xm});var xm=globalThis.__SMBLS_BUILD_DROP_C_Select__?k("Select"):{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 zl=/*@__PURE__*/__smblsNs({},{Button:()=>km,ButtonSet:()=>vm,CircleButton:()=>Am,IconButton:()=>Em,KangorooButton:()=>Cm,SquareButton:()=>Tm});var km=globalThis.__SMBLS_BUILD_DROP_C_Button__?k("Button"):{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)},Tm=globalThis.__SMBLS_BUILD_DROP_C_SquareButton__?k("SquareButton"):{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"},Am=globalThis.__SMBLS_BUILD_DROP_C_CircleButton__?k("CircleButton"):{extends:"SquareButton",round:"C"},Cm=globalThis.__SMBLS_BUILD_DROP_C_KangorooButton__?k("KangorooButton"):{extends:"Button",childExtends:"IconText"},vm=globalThis.__SMBLS_BUILD_DROP_C_ButtonSet__?k("ButtonSet"):{tag:"nav",display:"flex",childExtends:"SquareButton"},Em={extends:["SquareButton","ClickableItem"],round:"Z"};var Vl=/*@__PURE__*/__smblsNs({},{Dialog:()=>Im,DialogFooter:()=>Pm,DialogHeader:()=>Lm});var JC={ok:1,cancel:1},hn=new WeakMap,tv=0,$t=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},Hl=t=>{let e=hn.get(t);return e||(e={id:"smbls-dialog-"+ ++tv,want:void 0,waiting:!1},hn.set(t,e)),e},hr=(t,e,n,o)=>t[e]!==void 0||n!==void 0&&t[n]!==void 0||!!t.attr&&typeof t.attr=="object"&&t.attr[e]!==void 0||o!==void 0&&!!t.aria&&typeof t.aria=="object"&&t.aria[o]!==void 0,eo=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},Om=t=>{let e=hn.get(t),n=$t(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},Rm=t=>{queueMicrotask(()=>{if(Om(t))return;let e=hn.get(t);!e||e.waiting||typeof t.whenConnected!="function"||(e.waiting=!0,t.whenConnected(()=>{e.waiting=!1,Om(t)}))})},ev=t=>{let e=t.__ref;if(!e||!$t(t)||!Object.prototype.hasOwnProperty.call(t,"modal")||hr(t,"data-dialog"))return;let n=P(()=>{let o=t.modal,r=$t(t);if(!r)return;if(o==null){eo(r,"data-dialog",null);return}eo(r,"data-dialog","modal");let i=Hl(t),s=!!o;i.want!==s&&(i.want=s,Rm(t))},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(n)},nv=t=>t.dialogTitle===!0,ov=t=>{for(let e=t;e;e=e.parent)if(e.tag==="dialog")return e;return null},Dm=t=>{let e=ov(t);return!e||!e.locked},rv=t=>t.key==="Escape"||t.key==="Esc",iv=t=>{let e=t.__ref,n=$t(t);if(!e||!n||!Object.prototype.hasOwnProperty.call(t,"locked"))return;let o=Hl(t),r=!hr(t,"closedby","closedBy"),i=P(()=>{let c=!!t.locked,f=$t(t);f&&r&&eo(f,"closedby",c?"none":null)},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(i);let s=c=>{t.locked&&c.preventDefault()},a=t.context&&t.context.window||n.ownerDocument.defaultView,l=c=>{let f=$t(t);f&&f.open&&f.isConnected&&rv(c)&&t.locked&&c.preventDefault()};n.addEventListener("cancel",s),a&&a.addEventListener("keydown",l),o.unlock=()=>{n.removeEventListener("cancel",s),a&&a.removeEventListener("keydown",l)}},sv=t=>{let e=$t(t);if(!e||e.hasAttribute("aria-labelledby")||e.hasAttribute("aria-label")||hr(t,"aria-labelledby","ariaLabelledby","labelledby"))return;let n=typeof t.lookdown=="function"?t.lookdown(nv):null,o=$t(n);if(!o)return;let r=o.getAttribute("id");if(!r){if(hr(n,"id"))return;r=Hl(t).id+"-title",eo(o,"id",r)}eo(e,"aria-labelledby",r)},av=(t,e)=>{let n=$t(e),o=t.target;if(!n||t.defaultPrevented||!o||typeof o.closest!="function")return;let r=o.closest("[data-dialog-action]");if(!r||!n.contains(r))return;let i=r.getAttribute("data-dialog-action");if(JC[i]!==1)return;let s=n.ownerDocument.defaultView,a=new s.Event(i,{cancelable:!0});n.dispatchEvent(a),!a.defaultPrevented&&n.open&&typeof n.close=="function"&&n.close(i)},cv=t=>{let e=hn.get(t);e&&e.unlock&&(e.unlock(),e.unlock=null);let n=$t(t);e&&e.want!==void 0&&n&&n.open&&typeof n.close=="function"&&n.close()},lv=t=>{let e=hn.get(t),n=$t(t);e&&e.want!==void 0&&n&&!n.isConnected&&n.hasAttribute("open")&&n.removeAttribute("open")},fv=t=>{let e=hn.get(t);e&&e.want&&Rm(t)},uv=t=>{let e=$t(t);if(!e||!Object.prototype.hasOwnProperty.call(t,"modal")||hr(t,"data-dialog"))return;let n=t.modal;if(typeof n=="function")try{n=n(t,t.state)}catch{return}n!=null&&eo(e,"data-dialog","modal")},Im=globalThis.__SMBLS_BUILD_DROP_C_Dialog__?k("Dialog"):{display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2",'[data-dialog="modal"]:not([open])':{display:"none"},onAttachNode:{always:!0,handler:t=>uv(t)},onComplete:{always:!0,handler:t=>{ev(t),iv(t),sv(t)}},onRender:{always:!0,handler:t=>fv(t)},onClick:(t,e)=>av(t,e),onBeforeRemove:{always:!0,handler:t=>cv(t)},onRemove:{always:!0,handler:t=>lv(t)}},Lm=globalThis.__SMBLS_BUILD_DROP_C_DialogHeader__?k("DialogHeader"):{extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{dialogTitle:!0,text:t=>dr(t,"dialog.title")},SquareButton:{if:Dm,icon:"x",theme:"transparent",aria:{label:t=>dr(t,"dialog.close")},data:{dialogAction:"cancel"}}},Paragraph:{color:"caption"}},Pm=globalThis.__SMBLS_BUILD_DROP_C_DialogFooter__?k("DialogFooter"):{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:Dm,text:t=>dr(t,"dialog.cancel"),data:{dialogAction:"cancel"}},Ok:{text:t=>dr(t,"dialog.ok"),data:{dialogAction:"ok"}}};var Xl=/*@__PURE__*/__smblsNs({},{Tooltip:()=>Um,TooltipHidden:()=>zm,TooltipLayer:()=>Zl,TooltipParent:()=>Hm});var dv='[data-tooltip]:not([data-tooltip=""])',Bm={top:1,bottom:1,left:1,right:1},Gl={top:"bottom",bottom:"top",left:"right",right:"left"},gn=6,Mm=new WeakMap,pv=0,Tt=t=>{let e=Mm.get(t);return e||(e={id:"smbls-tooltip-"+ ++pv,hover:null,focus:null,shown:null,dismissed:null,showTimer:null,hideTimer:null},Mm.set(t,e)),e},Kl=t=>{let e=t&&t.nodeType!==1?t.parentElement:t;return e&&typeof e.closest=="function"?e:null},hv=t=>{let e=t.parent&&t.parent.node;return e&&e.nodeType===1?e:null},gv=t=>{for(let e=t.firstElementChild;e;e=e.nextElementSibling)if(e.hasAttribute("data-tooltip-layer"))return!0;return!1},Nm=(t,e)=>{let n=hv(t);if(!e||!n)return null;let o;try{o=e.closest(dv)}catch{return null}if(!o||!n.contains(o))return null;for(let r=o;r&&r!==n;r=r.parentElement)if(gv(r))return null;return o},_v=(t,e)=>!!(e&&t.node&&t.node.contains(e)),yv=t=>{try{return t.matches(":focus-visible")}catch{return!0}},Fm=(t,e)=>typeof t=="number"&&t>=0?t:e,Ki=t=>{t.showTimer&&(clearTimeout(t.showTimer),t.showTimer=null),t.hideTimer&&(clearTimeout(t.hideTimer),t.hideTimer=null)},ql=t=>!!(t.node&&t.node.isConnected&&t.state&&typeof t.state.update=="function"),$m=t=>{if(typeof t.checkVisibility=="function")return t.checkVisibility()!==!1;let e=t.ownerDocument&&t.ownerDocument.defaultView;if(!e||typeof e.getComputedStyle!="function")return!0;for(let n=t;n&&n.nodeType===1;n=n.parentElement)if(e.getComputedStyle(n).display==="none")return!1;return!0},mv=(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(" "))},Yl=(t,e)=>{if(!t||typeof t.getAttribute!="function")return;let n=t.getAttribute("aria-describedby");if(n==null)return;let o=n.split(/\s+/).filter(r=>r&&r!==e);o.length?t.setAttribute("aria-describedby",o.join(" ")):t.removeAttribute("aria-describedby")},bv=(t,e,n,o,r)=>{let i={top:t.top,bottom:r-t.bottom,left:t.left,right:o-t.right},s=f=>(f==="top"||f==="bottom"?e.height:e.width)+gn;i[n]<s(n)&&i[Gl[n]]>=s(Gl[n])&&(n=Gl[n]);let a,l;n==="top"||n==="bottom"?(a=t.left+(t.width-e.width)/2,l=n==="bottom"?t.bottom+gn:t.top-e.height-gn):(l=t.top+(t.height-e.height)/2,a=n==="right"?t.right+gn:t.left-e.width-gn);let c=(f,u)=>Math.max(gn,Math.min(u-gn,f));return{left:c(a,o-e.width),top:c(l,r-e.height),side:n}},Sv=t=>{let e=t.ownerDocument,n=e&&e.defaultView,o=e&&e.documentElement;return{width:o&&o.clientWidth||n&&n.innerWidth||0,height:o&&o.clientHeight||n&&n.innerHeight||0}},wv=t=>(t.title||"")+(t.description||""),Gi=(t,e=0)=>{let o=Tt(t).shown;if(!o||!ql(t))return;if(!o.isConnected){no(t);return}let r=t.node;if(!$m(r)){no(t);return}let i=t.state;if(r.textContent!==wv(i)){e<3&&setTimeout(()=>Gi(t,e+1),0);return}let s=o.getBoundingClientRect(),a=r.getBoundingClientRect(),l=a.left-(i.x||0),c=a.top-(i.y||0),f=Sv(r),u=o.getAttribute("data-tooltip-placement"),d=Bm[u]?u:Bm[t.tooltipPlacement]?t.tooltipPlacement:"bottom",p=bv(s,{width:a.width,height:a.height},d,f.width,f.height);i.update({x:Math.round(p.left-l),y:Math.round(p.top-c),side:p.side,placed:!0})},xv=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},jm=(t,e)=>{let n=Tt(t);if(Ki(n),!(!ql(t)||!e.isConnected)){if(!$m(t.node)){no(t);return}n.shown&&n.shown!==e&&Yl(n.shown,n.id),n.shown=e,mv(e,n.id),t.state.update({open:!0,placed:!1,title:e.getAttribute("data-tooltip")||"",description:e.getAttribute("data-tooltip-description")||""}),xv(()=>Gi(t))}};function no(t){let e=Tt(t);Ki(e),e.shown&&Yl(e.shown,e.id),e.shown=null,ql(t)&&t.state.open&&t.state.update({open:!1})}var Vi=(t,e)=>{let n=Tt(t);n.dismissed&&n.dismissed!==n.hover&&n.dismissed!==n.focus&&(n.dismissed=null);let o=n.hover&&n.hover!==n.dismissed?n.hover:n.focus&&n.focus!==n.dismissed?n.focus:null;if(o===n.shown){Ki(n);return}if(!o){if(n.showTimer&&(clearTimeout(n.showTimer),n.showTimer=null),!n.shown||n.hideTimer)return;if(e){no(t);return}n.hideTimer=setTimeout(()=>{n.hideTimer=null,no(t)},Fm(t.tooltipHideDelay,100));return}if(n.hideTimer&&(clearTimeout(n.hideTimer),n.hideTimer=null),e||n.shown){jm(t,o);return}n.showTimer&&clearTimeout(n.showTimer),n.showTimer=setTimeout(()=>{n.showTimer=null,jm(t,o)},Fm(t.tooltipDelay,250))},Wm=t=>{let e=Tt(t);e.shown&&(e.dismissed=e.shown,no(t))},Zl=globalThis.__SMBLS_BUILD_DROP_C_TooltipLayer__?k("TooltipLayer"):{role:"tooltip",id:t=>Tt(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=Tt(e),o=Kl(t.target),r=_v(e,o)?n.shown:Nm(e,o);r===n.hover&&(r||!n.shown)||(n.hover=r,Vi(e,!1))}},onDocumentPointerout:{capture:!0,passive:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=Tt(e);n.hover&&(n.hover=null,Vi(e,!1))}},onDocumentPointerdown:{capture:!0,passive:!0,handler:(t,e)=>{let n=Tt(e),o=Kl(t.target);n.shown&&o&&n.shown.contains(o)&&Wm(e)}},onDocumentFocusin:{capture:!0,handler:(t,e)=>{let n=Tt(e),o=Kl(t.target),r=o&&yv(o)?Nm(e,o):null;r!==n.focus&&(n.focus=r,Vi(e,!0))}},onDocumentFocusout:{capture:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=Tt(e);n.focus&&(n.focus=null,Vi(e,!0))}},onDocumentKeydown:{capture:!0,handler:(t,e)=>{(t.key==="Escape"||t.key==="Esc")&&Wm(e)}},onDocumentScroll:{capture:!0,passive:!0,handler:(t,e)=>{Tt(e).shown&&Gi(e)}},onWindowResize:(t,e)=>{Tt(e).shown&&Gi(e)},onBeforeRemove:t=>{let e=Tt(t);Ki(e),e.shown&&Yl(e.shown,e.id),e.shown=e.hover=e.focus=e.dismissed=null}};var Um=globalThis.__SMBLS_BUILD_DROP_C_Tooltip__?k("Tooltip"):{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=>Se(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)}},zm=globalThis.__SMBLS_BUILD_DROP_C_TooltipHidden__?k("TooltipHidden"):{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)}},Hm=globalThis.__SMBLS_BUILD_DROP_C_TooltipParent__?k("TooltipParent"):{position:"relative",zIndex:999,onInit:t=>{let{Tooltip:e,TooltipHidden:n}=t,o=e||n;if(!o)return;let r=o&&o[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":r||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var Ql=/*@__PURE__*/__smblsNs({},{Avatar:()=>Vm});var kv=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)},Vm=globalThis.__SMBLS_BUILD_DROP_C_Avatar__?k("Avatar"):{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=kv(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 Jl=/*@__PURE__*/__smblsNs({},{Range:()=>Gm});var Gm={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:us("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:us("#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 o=t.call("exec",t[e],t);return(t.call("isFunction",o)?o(t,t.state):o!==void 0?o: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 ff=/*@__PURE__*/__smblsNs({},{Dropdown:()=>mb,DropdownDisclosure:()=>wb,DropdownList:()=>bb,DropdownParent:()=>Sb,DropdownParentFocus:()=>xb,DropdownSiblingFocus:()=>kb});var Ji="hover",Zm="focus",gr="sibling",ye="disclosure",Km={menu:1,listbox:1,tree:1,grid:1,dialog:1},Tv={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},Av={BUTTON:1,INPUT:1,SELECT:1,TEXTAREA:1},Cv='button, a[href], [role^="menuitem"], [role="option"]',vv={ArrowDown:1,Down:1,ArrowUp:-1,Up:-1,Home:"first",End:"last"},Yi=new WeakMap,Zi=new WeakMap,Xi=new WeakMap,ef=new WeakMap,Xm=new WeakSet,Ev=0,W=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},oo=(t,e)=>{let n=W(t);return n?n.getAttribute(e):null},G=(t,e)=>{let n=W(t);return!!n&&!!e&&(n===e||n.contains(e))},tf=t=>{let e=W(t);return!!e&&e.hasAttribute("dropdown")},nf=t=>{let e=W(t);return!!e&&e.tagName==="BUTTON"},qi=t=>nf(t)||oo(t,"role")==="button",qm=t=>{let e=W(t);return!!e&&Tv[e.tagName]===1&&!e.isContentEditable},Qm=t=>{let e=W(t);return!!e&&!e.disabled&&!e.hidden&&e.getAttribute("aria-disabled")!=="true"},_r=t=>{let e=oo(t,"role");return!!e&&e.indexOf("menuitem")===0&&Qm(t)},Ov=t=>{let e=W(t);if(!e||!Qm(t))return!1;if(Av[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},_n=t=>t&&typeof t.getChildren=="function"?t.getChildren():[],At=t=>t&&typeof t.dropdownMode=="string"?t.dropdownMode:null,of=t=>{let e=t&&t.Input_trigger;return e&&e.__ref?e:null},Jm={tabindex:"tabIndex","aria-expanded":"ariaExpanded","aria-haspopup":"ariaHaspopup","aria-controls":"ariaControls","aria-labelledby":"ariaLabelledby","aria-label":"ariaLabel","aria-hidden":"ariaHidden"},tb=(t,e)=>{if(t[e]!==void 0)return!0;let n=Jm[e];if(n!==void 0&&t[n]!==void 0)return!0;let o=t.attr;if(o&&typeof o=="object"&&o[e]!==void 0)return!0;if(e.indexOf("aria-")===0){let r=t.aria;if(r&&typeof r=="object"&&r[e.slice(5)]!==void 0)return!0}return!1},Rv=(t,e)=>{let n=Jm[e],o=t.attr;return typeof t[e]=="function"||n!==void 0&&typeof t[n]=="function"||!!o&&typeof o=="object"&&typeof o[e]=="function"},re=(t,e,n)=>!e.hasAttribute(n)&&!tb(t,n),We=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},Dv=(t,e)=>{let n=W(t);if(n)for(let o in e)We(n,o,e[o])},Qi=t=>{let e=W(t);return!e||typeof e.focus!="function"?!1:(e.focus(),e.ownerDocument.activeElement===e)},Iv=t=>{let e=Yi.get(t);return e||(e={id:"smbls-dropdown-"+ ++Ev,open:null,trigger:null,panel:null,popup:null,popupRole:null,owns:!1,pressedOpen:!1,written:null,outside:null,outsideDoc:null},Yi.set(t,e)),e},Ym=(t,e)=>!!e&&!!W(e)&&!!t&&t[e.key]===e,Lv=(t,e)=>{let n=null,o=null;if(e===gr){let i=t.parent?_n(t.parent):[];for(let s=i.indexOf(t)+1;s>0&&s<i.length&&i[s];s++)if(tf(i[s])){n=i[s];break}return(qi(t)||qm(t))&&(o=t),{panel:n,trigger:o}}let r=_n(t);for(let i=0;i<r.length;i++)if(tf(r[i])){n=r[i];break}if(qi(t))return{panel:n,trigger:t};for(let i=0;i<r.length;i++){let s=r[i];if(!(!W(s)||s.key==="Input_trigger"||tf(s))){(qi(s)||qm(s))&&(o=s);break}}return{panel:n,trigger:o}},Pv=t=>{let e=oo(t,"role");if(e&&Km[e]===1)return{el:t,role:e};let n=_n(t);for(let o=0;o<n.length;o++){let r=oo(n[o],"role");if(r&&Km[r]===1)return{el:n[o],role:r}}return null},Ut=t=>{let e=At(t);if(!e||!W(t))return null;let n=Iv(t);if(n.trigger){let p=e===gr?t.parent:t;if((n.trigger===t||Ym(t,n.trigger))&&Ym(p,n.panel))return n}let{panel:o,trigger:r}=Lv(t,e);if(!o||!r)return n.trigger=n.panel=n.popup=null,null;n.trigger=r,n.panel=o;let i=e===ye?null:Pv(o);n.popup=i?i.el:null,n.popupRole=i?i.role:null;let s=W(r),a={},l=s.getAttribute("id");n.popupRole==="menu"&&!l&&re(r,s,"id")&&(a.id=l=n.id+"-trigger"),qi(r)||(re(r,s,"role")&&(a.role="button"),re(r,s,"tabindex")&&(a.tabindex="0")),n.popupRole&&re(r,s,"aria-haspopup")&&(a["aria-haspopup"]=n.popupRole);let c=W(o),f=c.getAttribute("id");if(!f&&re(o,c,"id")&&(f=n.id+"-panel",We(c,"id",f)),f&&re(r,s,"aria-controls")&&(a["aria-controls"]=f),n.owns=re(r,s,"aria-expanded"),n.written={open:null,expanded:null},n.owns&&(n.written.expanded=ts(t,n)?"true":"false",a["aria-expanded"]=n.written.expanded),Dv(r,a),n.popupRole==="menu"&&l){let p=W(n.popup);re(n.popup,p,"aria-label")&&re(n.popup,p,"aria-labelledby")&&We(p,"aria-labelledby",l)}r!==t&&e===Zm&&oo(t,"tabindex")==="0"&&!Rv(t,"tabindex")&&We(W(t),"tabindex","-1");let u=of(t),d=W(u);return d&&!d.hasAttribute("tabindex")&&(tb(u,"tabindex")||We(d,"tabindex","-1"),re(u,d,"aria-hidden")&&We(d,"aria-hidden","true")),yn(t,n),n},eb=t=>{let e=W(t),n=e&&e.ownerDocument.activeElement;return n&&n!==e.ownerDocument.body?n:null},nb=t=>G(t,eb(t)),ts=(t,e,n)=>{if(e.open!==null)return e.open;let o=At(t);return n||o===Ji||o===ye?!1:nb(t)},yn=(t,e,n)=>{let o=e.open===null?null:String(e.open);if(e.written.open!==o){e.written.open=o;let i=W(t);i&&We(i,"data-dropdown-open",o)}if(!e.owns)return;let r=ts(t,e,n)?"true":"false";if(e.written.expanded!==r){e.written.expanded=r;let i=W(e.trigger);i&&We(i,"aria-expanded",r)}},bn=t=>{let e=Zi.get(t);return e||(e={stop:null,stopItem:null,chosen:!1,ready:!1,settling:!1,checks:null,checkRows:null,owned:!1},Zi.set(t,e)),e},ob=(t,e)=>{if(t.stopItem===e&&t.stop===e.key)return;let n=t.stopItem&&Xi.get(t.stopItem);t.stop=e.key,t.stopItem=e,n&&n.set(!1);let o=Xi.get(e);o&&o.set(!0)},rb=(t,e)=>{let n=bn(t);n.chosen=!0,ob(n,e)},ib=t=>{let e=bn(t);if(e.settling=!1,e.chosen)return;let n=_n(t);for(let o=0;o<n.length;o++)if(_r(n[o])){ob(e,n[o]);return}},sb=(t,e)=>{if(!e||!e.contains(t))return!1;let n=[];for(let r=t;r!==e;r=r.parentElement)n.push(r);n.push(e);let o=!1;for(let r=n.length-1;r>=0;r--){let i=typeof n[r].getAnimations=="function"?n[r].getAnimations():[];for(let s=0;s<i.length;s++)i[s].transitionProperty==="visibility"&&(i[s].finish(),o=!0)}return o},ab=(t,e)=>{let n=W(t);if(!n)return;let o=n.ownerDocument.activeElement,r=Qi(t);!r&&e&&n.ownerDocument.activeElement===o&&sb(n,W(e))&&(r=Qi(t));let i=t.parent;r&&i&&Zi.has(i)&&rb(i,t)},Bv=t=>{let e=t.popupRole==="menu"?t.popup:t.panel;return!e||typeof e.lookdownAll!="function"?[]:e.lookdownAll(t.popupRole==="menu"?_r:Ov)},Mv=(t,e,n)=>{if(n==="trigger"){let i=eb(t);(!G(t,i)&&!G(e.panel,i)||G(of(t),i))&&Qi(e.trigger);return}let o=Bv(e);if(!o.length)return;let r=n==="last"?o[o.length-1]:null;if(!r)for(let i=0;i<o.length&&!r;i++)oo(o[i],"aria-checked")==="true"&&(r=o[i]);ab(r||o[0],e.panel)},rf=(t,e,n)=>{let o=W(t),r=o&&o.ownerDocument;n&&!e.outside&&r?(e.outside=i=>{if(!W(t)||!W(t).isConnected){rf(t,e,!1);return}G(t,i.target)||G(e.panel,i.target)||_t(t,e,!1)},e.outsideDoc=r,r.addEventListener("pointerdown",e.outside,!0)):!n&&e.outside&&(e.outsideDoc.removeEventListener("pointerdown",e.outside,!0),e.outside=e.outsideDoc=null)},cb=(t,e)=>{let n=W(t),o=n&&n.ownerDocument&&n.ownerDocument.defaultView;if(!o||typeof o.Event!="function")return;let r=new o.Event("toggle");Object.defineProperty(r,"newState",{value:e?"open":"closed"}),Object.defineProperty(r,"oldState",{value:e?"closed":"open"}),n.dispatchEvent(r)},ro=(t,e,n)=>{let o=e.open===!0;if(e.open=!0,yn(t,e),At(t)===ye){rf(t,e,!0);let r=W(e.panel);r&&sb(r,r),o||cb(t,!0)}n&&Mv(t,e,n)},_t=(t,e,n)=>{let o=e.open===!0;e.open=!1,yn(t,e),e.outside&&rf(t,e,!1),n&&Qi(e.trigger),o&&At(t)===ye&&cb(t,!1)},Nv=t=>{let e=t.__ref;if(!e||At(t)!==ye||!Object.prototype.hasOwnProperty.call(t,"open"))return;let n=P(()=>{let o=t.open;o!=null&&as(()=>{let r=Ut(t);!r||!!o==(r.open===!0)||(o?ro(t,r,null):_t(t,r,nb(t)))})},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(n)},es=(t,e,n)=>e.trigger===t?!G(e.panel,n):G(e.trigger,n)?!0:G(of(t),n),sf=(t,e)=>{let n=e&&typeof e.closest=="function"?e.closest(Cv):null;return!!n&&G(t,n)},lb=(t,e,n)=>{let o=t.key;o==="Escape"||o==="Esc"?(t.preventDefault(),_t(e,n,!0)):o==="Tab"&&n.popupRole==="menu"&&G(n.popup,t.target)&&_t(e,n,!1)},ns=t=>{At(t)===gr&&t.parent&&Xm.add(t.parent),Ut(t),Nv(t)},os=(t,e)=>{let n=Ut(e);n&&(n.pressedOpen=ts(e,n))},Fv=(t,e)=>{let n=Yi.get(e);!n||!n.trigger||n.open!==!1||At(e)!==Ji||(n.open=null,yn(e,n))},rs=(t,e)=>{if(At(e)===ye){Wv(t,e);return}if(t.defaultPrevented)return;let n=Ut(e);if(!n)return;let o=t.target;if(G(n.panel,o)){if(At(e)!==Ji||!sf(n.panel,o))return;(n.open===!0||t.detail===0)&&_t(e,n,!0);return}if(!es(e,n,o))return;let r=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,r?_t(e,n,!0):ro(e,n,n.popupRole==="menu"?"first":"trigger")},is=(t,e)=>{if(t.defaultPrevented)return;if(At(e)===ye){$v(t,e);return}let n=Ut(e);if(!n)return;let o=t.target;if(G(n.panel,o)){lb(t,e,n);return}if(!es(e,n,o))return;let r=t.key;if(r==="ArrowDown"||r==="Down"||r==="ArrowUp"||r==="Up")t.preventDefault(),ro(e,n,r==="ArrowUp"||r==="Up"?"last":"first");else if(r==="Escape"||r==="Esc"){if(!ts(e,n))return;t.preventDefault(),_t(e,n,!1)}else(r==="Enter"||r===" "||r==="Spacebar")&&!nf(n.trigger)&&(t.preventDefault(),n.open===!0?_t(e,n,!0):ro(e,n,n.popupRole==="menu"?"first":"trigger"))},jv=t=>!!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey),Wv=(t,e)=>{let n=Ut(e);if(!n)return;let o=t.target;if(G(n.panel,o)){n.open===!0&&!jv(t)&&e.keepOpen!==!0&&sf(n.panel,o)&&_t(e,n,!0);return}if(t.defaultPrevented||!es(e,n,o))return;let r=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,r?_t(e,n,!0):ro(e,n,"trigger")},$v=(t,e)=>{let n=Ut(e);if(!n)return;let o=t.key;if(o==="Escape"||o==="Esc"){if(n.open!==!0)return;t.preventDefault(),_t(e,n,!0);return}(o==="Enter"||o===" "||o==="Spacebar")&&!nf(n.trigger)&&!G(n.panel,t.target)&&es(e,n,t.target)&&(t.preventDefault(),n.open===!0?_t(e,n,!0):ro(e,n,"trigger"))},af=(t,e)=>{let n=Ut(e);n&&(n.open===null&&G(n.panel,t.target)&&(n.open=!0),yn(e,n))},yr=(t,e)=>{let n=Yi.get(e);if(!n||!n.trigger)return;let o=t.relatedTarget;if(At(e)===ye){n.open===!0&&o&&!G(e,o)&&!G(n.panel,o)&&_t(e,n,!1);return}if(o&&(G(e,o)||G(n.panel,o))){n.open===null&&G(n.panel,o)&&(n.open=!0,yn(e,n));return}n.open=null,yn(e,n,!0)},fb=t=>{let e=t.parent;if(!e||!Xm.has(e))return null;let n=_n(e);for(let o=n.indexOf(t)-1;o>=0&&n[o];o--)if(At(n[o])===gr)return n[o];return null},cf=t=>{let e=fb(t),n=e?Ut(e):null;return n&&n.panel===t?{ctrl:e,rec:n}:null},ub=t=>{let e=fb(t);e&&Ut(e)},db=(t,e)=>{if(t.defaultPrevented)return;let n=cf(e);n&&lb(t,n.ctrl,n.rec)},pb=(t,e)=>{if(t.defaultPrevented||!sf(e,t.target))return;let n=cf(e);n&&_t(n.ctrl,n.rec,!0)},hb=(t,e)=>{let n=cf(e);n&&yr(t,n.ctrl)},Uv=(t,e)=>{let n=e.parent,o=At(n)?Ut(n):null;if(o&&o.panel===e){_t(n,o,!0);return}let r=W(e),i=r&&r.ownerDocument.activeElement;i&&typeof i.blur=="function"&&i.blur()},gb=(t,e)=>{if(At(e.parent)&&Ut(e.parent))return;let n=W(e);n&&n===n.ownerDocument.activeElement&&n.blur()},zv=(t,e)=>{if(t.defaultPrevented)return;let n=vv[t.key];if(!n)return;let o=typeof e.lookdownAll=="function"?e.lookdownAll(_r):[];if(!o.length)return;let r=-1;for(let s=0;s<o.length&&r===-1;s++)G(o[s],t.target)&&(r=s);let i;n==="first"?i=0:n==="last"?i=o.length-1:r===-1?i=n>0?0:o.length-1:i=(r+n+o.length)%o.length,t.preventDefault(),ab(o[i])},Hv=(t,e)=>{let n=_n(e);for(let o=0;o<n.length;o++)if(G(n[o],t.target)){_r(n[o])&&rb(e,n[o]);return}},Vv=t=>{let e=t.parent;if(!e)return"0";let n=bn(e),o=Xi.get(t);if(!o){n.stop===null&&(n.stop=t.key);let r=n.stop===t.key;r&&(n.stopItem=t),n.ready&&!n.chosen&&!n.settling&&(n.settling=!0,queueMicrotask(()=>ib(e))),o=mr(r),Xi.set(t,o)}return o.get()?"0":"-1"},Gv=t=>{ub(t);let e=bn(t);e.ready=!0,!(e.stopItem&&e.stopItem.parent===t&&_r(e.stopItem))&&ib(t)},Kv=t=>{let e=ef.get(t),n=!e;n&&(e={tick:mr(0),seen:0,checked:!1},ef.set(t,e));let o=e.tick.get();return o===e.seen&&(e.checked=!!as(()=>t.isActive)),e.seen=o,n&&t.parent&&Yv(t.parent),e.checked?"true":"false"},qv=(t,e)=>{if(e.checkRows.get(),!t.node){yb(t);return}let n=_n(t);for(let o=0;o<n.length;o++){let r=ef.get(n[o]);if(!r)continue;let i=!!n[o].isActive;i!==r.checked&&(r.checked=i,r.tick.set(r.tick.peek()+1))}},_b=t=>{let e=bn(t);e.checks||(e.checkRows||(e.checkRows=mr(0)),e.checks=P(()=>qv(t,e),{label:"DropdownList.checks"}))},yb=t=>{let e=Zi.get(t);!e||!e.checks||(e.checks.dispose(),e.checks=null)},Yv=t=>{let e=bn(t);e.checks?e.checkRows.set(e.checkRows.peek()+1):e.owned||_b(t)},Zv=t=>{bn(t).owned=!0},mn={transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"},lf={opacity:0,visibility:"hidden"},mb=globalThis.__SMBLS_BUILD_DROP_C_Dropdown__?k("Dropdown"):{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:ub},onKeydown:db,onClick:pb,onFocusout:hb},bb=globalThis.__SMBLS_BUILD_DROP_C_DropdownList__?k("DropdownList"):{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)=>{zv(t,e),db(t,e)},onInit:{always:!0,handler:Zv},onComplete:{always:!0,handler:Gv},onRender:{always:!0,handler:_b},onBeforeRemove:{always:!0,handler:yb},onFocusin:Hv,onClick:pb,onFocusout:hb,childExtends:{extends:"Button",state:{},role:"menuitemradio",tabindex:t=>Vv(t),aria:{checked:t=>Kv(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"}}},Sb=globalThis.__SMBLS_BUILD_DROP_C_DropdownParent__?k("DropdownParent"):{position:"relative",zIndex:999,dropdownMode:Ji,":hover":{zIndex:1e3,"& [dropdown]":{...mn}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...mn}},'[data-dropdown-open="false"]:hover':{"& [dropdown]":{...lf}},onComplete:{always:!0,handler:ns},onPointerdown:os,onPointerenter:Fv,onClick:rs,onKeydown:is,onFocusin:af,onFocusout:yr},wb=globalThis.__SMBLS_BUILD_DROP_C_DropdownDisclosure__?k("DropdownDisclosure"):{position:"relative",dropdownMode:ye,'[data-dropdown-open="true"]':{zIndex:1e3,"& > [dropdown]":{...mn}},onComplete:{always:!0,handler:ns},onPointerdown:os,onClick:rs,onKeydown:is,onFocusout:yr},xb=globalThis.__SMBLS_BUILD_DROP_C_DropdownParentFocus__?k("DropdownParentFocus"):{position:"relative",tabindex:"0",dropdownMode:Zm,":focus-within":{zIndex:1e3,"& [dropdown]":{...mn}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...mn}},'[data-dropdown-open="false"]:focus-within':{"& [dropdown]":{...lf}},onComplete:{always:!0,handler:ns},onPointerdown:os,onClick:rs,onKeydown:is,onFocusin:af,onFocusout:yr,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>gb(t,e)},Dropdown:{onClick:(t,e)=>Uv(t,e)}},kb=globalThis.__SMBLS_BUILD_DROP_C_DropdownSiblingFocus__?k("DropdownSiblingFocus"):{position:"relative",tabindex:"0",dropdownMode:gr,":focus-within":{zIndex:1e3,"& ~ [dropdown]":{...mn}},'[data-dropdown-open="true"]':{zIndex:1e3,"& ~ [dropdown]":{...mn}},'[data-dropdown-open="false"]:focus-within':{"& ~ [dropdown]":{...lf}},onComplete:{always:!0,handler:ns},onPointerdown:os,onClick:rs,onKeydown:is,onFocusin:af,onFocusout:yr,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>gb(t,e)}};var uf=/*@__PURE__*/__smblsNs({},{Notification:()=>Tb});var Tb=globalThis.__SMBLS_BUILD_DROP_C_Notification__?k("Notification"):{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 Ab=Object.assign({},ul,dl,pl,hl,_l,Sl,wl,xl,ml,kl,Tl,bl,Al,Cl,vl,El,Ol,Rl,Dl,Il,Ll,Pl,Nl,Wl,$l,Ul,zl,Vl,Xl,Ql,Jl,ff,uf);export{n0 as a,Cb as b,vb as c,Eb as d,Ob as e,o0 as f,Rb as g,r0 as h,i0 as i,s0 as j,Db as k,a0 as l,c0 as m,po as n,tu as o,l0 as p,ou as q,Lb as r,Cn as s,Pb as t,iu as u,h0 as v,su as w,lu as x,k0 as y,T0 as z,A0 as A,Bb as B,C0 as C,v0 as D,E0 as E,O0 as F,R0 as G,fu as H,D0 as I,ws as J,uu as K,du as L,pu as M,hu as N,gu as O,I0 as P,Mb as Q,Nb as R,cu as S,xs as T,L0 as U,_u as V,Dr as W,yu as X,mu as Y,bu as Z,P0 as _,Su as $,wu as aa,B0 as ba,go as ca,N0 as da,Ht as ea,ks as fa,ku as ga,Tu as ha,V as ia,Zt as ja,Pr as ka,Br as la,Es as ma,sS as na,cS as oa,bo as pa,Uu as qa,lS as ra,pS as sa,Bt as ta,js as ua,Ze as va,AS as wa,CS as xa,Qe as ya,Xe as za,BS as Aa,MS as Ba,Fs as Ca,Ur as Da,NS as Ea,ct as Fa,jS as Ga,Je as Ha,Hs as Ia,Ju as Ja,td as Ka,qs as La,fd as Ma,ud as Na,dd as Oa,pd as Pa,hd as Qa,Qs as Ra,Js as Sa,xt as Ta,_d as Ua,Kr as Va,yd as Wa,Aw as Xa,md as Ya,Cw as Za,wo as _a,wd as $a,xd as ab,kd as bb,z as cb,q as db,Lw as eb,qr as fb,vd as gb,Ed as hb,jw as ib,Ww as jb,$w as kb,Nt as lb,dO as mb,Ld as nb,ia as ob,la as pb,aa as qb,Ce as rb,ve as sb,ca as tb,To as ub,pa as vb,vo as wb,fa as xb,ha as yb,ga as zb,_a as Ab,Ft as Bb,ux as Cb,ep as Db,px as Eb,hx as Fb,mR as Gb,Ee as Hb,kx as Ib,Oe as Jb,Tx as Kb,In as Lb,de as Mb,Gt as Nb,pp as Ob,bR as Pb,SR as Qb,en as Rb,ap as Sb,ba as Tb,nn as Ub,hp as Vb,gp as Wb,Zp as Xb,Et as Yb,zo as Zb,Kh as _b,AT as $b,qn as ac,RT as bc,tg as cc,Ti as dc,Jo as ec,kc as fc,RA as gc,PI as hc,zy as ic,f_ as jc,C_ as kc,sl as lc,j_ as mc,$_ as nc,lC as oc,H_ as pc,V_ as qc,fr as rc,cl as sc,Fe as tc,vC as uc,ll as vc,dr as wc,Ab as xc,Xv as yc};
28
+ //# sourceMappingURL=smbls.core.chunk-GFBVJXLP.esm.js.map